hplx-react-elements-dev 1.0.35 → 1.0.37
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
|
@@ -1949,19 +1949,19 @@ var getVariantClassName = function getVariantClassName(variant) {
|
|
|
1949
1949
|
|
|
1950
1950
|
switch (variant) {
|
|
1951
1951
|
case "Regular":
|
|
1952
|
-
className = "font-inter-0";
|
|
1952
|
+
className = "hplxt-font-inter-0";
|
|
1953
1953
|
break;
|
|
1954
1954
|
|
|
1955
1955
|
case "Medium":
|
|
1956
|
-
className = "font-inter-1";
|
|
1956
|
+
className = "hplxt-font-inter-1";
|
|
1957
1957
|
break;
|
|
1958
1958
|
|
|
1959
1959
|
case "Semibold":
|
|
1960
|
-
className = "font-inter-2";
|
|
1960
|
+
className = "hplxt-font-inter-2";
|
|
1961
1961
|
break;
|
|
1962
1962
|
|
|
1963
1963
|
case "Bold":
|
|
1964
|
-
className = "font-inter-3";
|
|
1964
|
+
className = "hplxt-font-inter-3";
|
|
1965
1965
|
break;
|
|
1966
1966
|
|
|
1967
1967
|
default:
|
|
@@ -1977,51 +1977,51 @@ var getTypeClassName = function getTypeClassName(type) {
|
|
|
1977
1977
|
|
|
1978
1978
|
switch (type) {
|
|
1979
1979
|
case "Display 2xl":
|
|
1980
|
-
className = "font-inter leading-0 text-10 tracking-0";
|
|
1980
|
+
className = "hplxt-font-inter hplxt-leading-0 hplxt-text-10 hplxt-tracking-0";
|
|
1981
1981
|
break;
|
|
1982
1982
|
|
|
1983
1983
|
case "Display xl":
|
|
1984
|
-
className = "font-inter leading-1 text-9 tracking-0";
|
|
1984
|
+
className = "hplxt-font-inter hplxt-leading-1 hplxt-text-9 hplxt-tracking-0";
|
|
1985
1985
|
break;
|
|
1986
1986
|
|
|
1987
1987
|
case "Display lg":
|
|
1988
|
-
className = "font-inter leading-2 text-8 tracking-0";
|
|
1988
|
+
className = "hplxt-font-inter hplxt-leading-2 hplxt-text-8 hplxt-tracking-0";
|
|
1989
1989
|
break;
|
|
1990
1990
|
|
|
1991
1991
|
case "Display md":
|
|
1992
|
-
className = "font-inter leading-3 text-7 tracking-0";
|
|
1992
|
+
className = "hplxt-font-inter hplxt-leading-3 hplxt-text-7 hplxt-tracking-0";
|
|
1993
1993
|
break;
|
|
1994
1994
|
|
|
1995
1995
|
case "Display sm":
|
|
1996
|
-
className = "font-inter leading-4 text-6 tracking-1";
|
|
1996
|
+
className = "hplxt-font-inter hplxt-leading-4 hplxt-text-6 hplxt-tracking-1";
|
|
1997
1997
|
break;
|
|
1998
1998
|
|
|
1999
1999
|
case "Display xs":
|
|
2000
|
-
className = "font-inter leading-5 text-5 tracking-1";
|
|
2000
|
+
className = "hplxt-font-inter hplxt-leading-5 hplxt-text-5 hplxt-tracking-1";
|
|
2001
2001
|
break;
|
|
2002
2002
|
|
|
2003
2003
|
case "Text xl":
|
|
2004
|
-
className = "font-inter leading-7 text-4 tracking-1";
|
|
2004
|
+
className = "hplxt-font-inter hplxt-leading-7 hplxt-text-4 hplxt-tracking-1";
|
|
2005
2005
|
break;
|
|
2006
2006
|
|
|
2007
2007
|
case "Text lg":
|
|
2008
|
-
className = "font-inter leading-8 text-3 tracking-1";
|
|
2008
|
+
className = "hplxt-font-inter hplxt-leading-8 hplxt-text-3 hplxt-tracking-1";
|
|
2009
2009
|
break;
|
|
2010
2010
|
|
|
2011
2011
|
case "Text md":
|
|
2012
|
-
className = "font-inter leading-9 text-2 tracking-1";
|
|
2012
|
+
className = "hplxt-font-inter hplxt-leading-9 hplxt-text-2 hplxt-tracking-1";
|
|
2013
2013
|
break;
|
|
2014
2014
|
|
|
2015
2015
|
case "Text sm":
|
|
2016
|
-
className = "font-inter leading-10 text-1 tracking-1";
|
|
2016
|
+
className = "hplxt-font-inter hplxt-leading-10 hplxt-text-1 hplxt-tracking-1";
|
|
2017
2017
|
break;
|
|
2018
2018
|
|
|
2019
2019
|
case "Text xs":
|
|
2020
|
-
className = "font-inter leading-11 text-0 tracking-1";
|
|
2020
|
+
className = "hplxt-font-inter hplxt-leading-11 hplxt-text-0 hplxt-tracking-1";
|
|
2021
2021
|
break;
|
|
2022
2022
|
|
|
2023
2023
|
default:
|
|
2024
|
-
className = "font-inter";
|
|
2024
|
+
className = "hplxt-font-inter";
|
|
2025
2025
|
}
|
|
2026
2026
|
|
|
2027
2027
|
return className;
|
|
@@ -2071,18 +2071,18 @@ var DropdownItems = function DropdownItems(_a) {
|
|
|
2071
2071
|
onClick: function onClick() {
|
|
2072
2072
|
!disabled && onSelect && onSelect(value);
|
|
2073
2073
|
},
|
|
2074
|
-
className: "h-10 flex items-center px-2 ".concat(disabled ? "cursor-not-allowed" : "hover:bg-Gray-50 cursor-pointer"),
|
|
2074
|
+
className: "hplxt-h-10 hplxt-flex hplxt-items-center hplxt-px-2 ".concat(disabled ? "hplxt-cursor-not-allowed" : "hover:hplxt-bg-Gray-50 hplxt-cursor-pointer"),
|
|
2075
2075
|
onMouseEnter: onMouseEnterHandler,
|
|
2076
2076
|
onMouseLeave: onMouseLeaveHandler
|
|
2077
2077
|
}, {
|
|
2078
2078
|
children: [Boolean(start_icon) && jsxRuntime.exports.jsx("div", __assign({
|
|
2079
|
-
className: "mr-2 ".concat(disabled ? "text-Gray-200" : hover ? "text-Gray-700" : "text-Gray-500")
|
|
2079
|
+
className: "hplxt-mr-2 ".concat(disabled ? "hplxt-text-Gray-200" : hover ? "hplxt-text-Gray-700" : "hplxt-text-Gray-500")
|
|
2080
2080
|
}, {
|
|
2081
2081
|
children: jsxRuntime.exports.jsx("span", {
|
|
2082
2082
|
className: start_icon
|
|
2083
2083
|
})
|
|
2084
2084
|
})), jsxRuntime.exports.jsx("div", __assign({
|
|
2085
|
-
className: "flex-1 ".concat(disabled ? "text-Gray-200" : "text-Gray-700", " ").concat(className)
|
|
2085
|
+
className: "hplxt-flex-1 ".concat(disabled ? "hplxt-text-Gray-200" : "hplxt-text-Gray-700", " ").concat(className)
|
|
2086
2086
|
}, {
|
|
2087
2087
|
children: jsxRuntime.exports.jsx(Typography, __assign({
|
|
2088
2088
|
variant: hover && !disabled ? "Medium" : "Regular",
|
|
@@ -2091,7 +2091,7 @@ var DropdownItems = function DropdownItems(_a) {
|
|
|
2091
2091
|
children: label
|
|
2092
2092
|
}))
|
|
2093
2093
|
})), Boolean(end_icon) && jsxRuntime.exports.jsx("div", __assign({
|
|
2094
|
-
className: "ml-2 ".concat(!disabled && (hover || active) ? "text-Primary-700" : "text-Gray-200")
|
|
2094
|
+
className: "hplxt-ml-2 ".concat(!disabled && (hover || active) ? "hplxt-text-Primary-700" : "hplxt-text-Gray-200")
|
|
2095
2095
|
}, {
|
|
2096
2096
|
children: jsxRuntime.exports.jsx("span", {
|
|
2097
2097
|
className: end_icon
|
|
@@ -2126,30 +2126,30 @@ var InputField = function InputField(_a) {
|
|
|
2126
2126
|
_g = _a.isSuffixEditable,
|
|
2127
2127
|
isSuffixEditable = _g === void 0 ? false : _g,
|
|
2128
2128
|
suffixPlaceholder = _a.suffixPlaceholder,
|
|
2129
|
+
fieldColor = _a.fieldColor,
|
|
2129
2130
|
_h = _a.handleSuffixClick,
|
|
2130
2131
|
handleSuffixClick = _h === void 0 ? function (_) {} : _h;
|
|
2131
|
-
_a.handleSuffixValChange;
|
|
2132
2132
|
|
|
2133
|
-
var
|
|
2134
|
-
disabled =
|
|
2135
|
-
onFocus =
|
|
2136
|
-
onBlur =
|
|
2133
|
+
var _j = inputProps || {},
|
|
2134
|
+
disabled = _j.disabled,
|
|
2135
|
+
onFocus = _j.onFocus,
|
|
2136
|
+
onBlur = _j.onBlur;
|
|
2137
2137
|
|
|
2138
|
-
var
|
|
2139
|
-
active =
|
|
2140
|
-
setActive =
|
|
2138
|
+
var _k = useState(false),
|
|
2139
|
+
active = _k[0],
|
|
2140
|
+
setActive = _k[1];
|
|
2141
2141
|
|
|
2142
|
-
var
|
|
2143
|
-
showSuffixDropdown =
|
|
2144
|
-
setShowSuffixDropdown =
|
|
2142
|
+
var _l = useState(false),
|
|
2143
|
+
showSuffixDropdown = _l[0],
|
|
2144
|
+
setShowSuffixDropdown = _l[1];
|
|
2145
2145
|
|
|
2146
|
-
var
|
|
2147
|
-
suffixValue =
|
|
2148
|
-
setSuffixValue =
|
|
2146
|
+
var _m = useState(""),
|
|
2147
|
+
suffixValue = _m[0],
|
|
2148
|
+
setSuffixValue = _m[1];
|
|
2149
2149
|
|
|
2150
|
-
var
|
|
2151
|
-
suffixFilterList =
|
|
2152
|
-
setSuffixFilterList =
|
|
2150
|
+
var _o = useState([]),
|
|
2151
|
+
suffixFilterList = _o[0],
|
|
2152
|
+
setSuffixFilterList = _o[1];
|
|
2153
2153
|
|
|
2154
2154
|
var wrapperRef = useRef(null);
|
|
2155
2155
|
useEffect(function () {
|
|
@@ -2198,13 +2198,13 @@ var InputField = function InputField(_a) {
|
|
|
2198
2198
|
}); // console.log("Input Field",suffixDropdown)
|
|
2199
2199
|
|
|
2200
2200
|
return jsxRuntime.exports.jsxs("div", __assign({
|
|
2201
|
-
className: "inputfield
|
|
2201
|
+
className: "inputfield "
|
|
2202
2202
|
}, {
|
|
2203
2203
|
children: [jsxRuntime.exports.jsxs("div", __assign({
|
|
2204
|
-
className: "flex justify-between"
|
|
2204
|
+
className: "hplxt-flex hplxt-justify-between"
|
|
2205
2205
|
}, {
|
|
2206
2206
|
children: [Boolean(label) && jsxRuntime.exports.jsx("div", __assign({
|
|
2207
|
-
className: "".concat(labelColor ? labelColor : "text-Gray-700", " mb-1")
|
|
2207
|
+
className: "".concat(labelColor ? labelColor : "hplxt-text-Gray-700", " hplxt-mb-1")
|
|
2208
2208
|
}, {
|
|
2209
2209
|
children: jsxRuntime.exports.jsx(Typography, __assign({
|
|
2210
2210
|
type: "".concat(labelSize ? labelSize : "Text sm"),
|
|
@@ -2213,7 +2213,7 @@ var InputField = function InputField(_a) {
|
|
|
2213
2213
|
children: label
|
|
2214
2214
|
}))
|
|
2215
2215
|
})), Boolean(char_count) && jsxRuntime.exports.jsx("div", __assign({
|
|
2216
|
-
className: "text-Gray-700 mb-1"
|
|
2216
|
+
className: "hplxt-text-Gray-700 hplxt-mb-1"
|
|
2217
2217
|
}, {
|
|
2218
2218
|
children: jsxRuntime.exports.jsx(Typography, __assign({
|
|
2219
2219
|
type: "Text sm",
|
|
@@ -2228,11 +2228,11 @@ var InputField = function InputField(_a) {
|
|
|
2228
2228
|
}, {
|
|
2229
2229
|
children: jsxRuntime.exports.jsxs("div", __assign({
|
|
2230
2230
|
"data-setid": "error-msg",
|
|
2231
|
-
className: "flex ".concat(isborderRequired ? "border-1 shadow-xs rounded-lg" : "", " overflow-hidden placeholder:text-Gray-500 ").concat(errorMsg ? "border-Error-300" : "border-Gray-300", " ").concat(height ? height : "h-10", " ").concat(disabled ? "bg-Gray-50" : "bg-White ".concat(errorMsg ? "hover:shadow-xs-error ".concat(active && "shadow-xs-error") : " ".concat(isborderRequired ? "hover:border-Primary-300 hover:shadow-xs-primary ".concat(active && "border-Primary-300 shadow-xs-primary") : " ")))
|
|
2231
|
+
className: "hplxt-flex ".concat(isborderRequired ? "hplxt-border-1 hplxt-shadow-xs hplxt-rounded-lg" : "", " hplxt-overflow-hidden placeholder:hplxt-text-Gray-500 ").concat(errorMsg ? "hplxt-border-Error-300" : "hplxt-border-Gray-300", " ").concat(height ? height : "hplxt-h-10", " ").concat(disabled ? "hplxt-bg-Gray-50" : "".concat(fieldColor ? fieldColor : "hplxt-bg-White", " ").concat(errorMsg ? "hover:hplxt-shadow-xs-error ".concat(active && "hplxt-shadow-xs-error") : " ".concat(isborderRequired ? "hover:hplxt-border-Primary-300 hover:hplxt-shadow-xs-primary ".concat(active && "hplxt-border-Primary-300 hplxt-shadow-xs-primary") : " ")))
|
|
2232
2232
|
}, {
|
|
2233
2233
|
children: [Boolean(prefix) && jsxRuntime.exports.jsx("div", __assign({
|
|
2234
2234
|
"data-testid": "input-prefix",
|
|
2235
|
-
className: "bg-Gray-50 border-r-1 border-r-Gray-300 text-Gray-500 flex items-center px-3"
|
|
2235
|
+
className: "".concat(fieldColor ? fieldColor : "hplxt-bg-Gray-50", " hplxt-border-r-1 hplxt-border-r-Gray-300 hplxt-text-Gray-500 hplxt-flex hplxt-items-center hplxt-px-3")
|
|
2236
2236
|
}, {
|
|
2237
2237
|
children: jsxRuntime.exports.jsx(Typography, __assign({
|
|
2238
2238
|
type: "Text md",
|
|
@@ -2241,27 +2241,30 @@ var InputField = function InputField(_a) {
|
|
|
2241
2241
|
children: prefix
|
|
2242
2242
|
}))
|
|
2243
2243
|
})), Boolean(start_icon) && jsxRuntime.exports.jsx("div", __assign({
|
|
2244
|
-
className: "text-Gray-500 flex items-center pl-2"
|
|
2244
|
+
className: "hplxt-text-Gray-500 hplxt-flex hplxt-items-center hplxt-pl-2"
|
|
2245
2245
|
}, {
|
|
2246
2246
|
children: jsxRuntime.exports.jsx("span", {
|
|
2247
2247
|
className: start_icon
|
|
2248
2248
|
})
|
|
2249
2249
|
})), jsxRuntime.exports.jsx("input", __assign({
|
|
2250
2250
|
type: "text",
|
|
2251
|
-
|
|
2251
|
+
style: {
|
|
2252
|
+
background: "".concat(fieldColor === null || fieldColor === void 0 ? void 0 : fieldColor.split("-")[1])
|
|
2253
|
+
},
|
|
2254
|
+
className: "hplxt-flex-1 hplxt-pl-[14px] ".concat(fieldColor, " hplxt-pr-[12px] hplxt-py-1 focus-visible:hplxt-outline-0 hplxt-border-0 focus:hplxt-border-0"),
|
|
2252
2255
|
"data-testid": "text-input"
|
|
2253
2256
|
}, inputProps, {
|
|
2254
2257
|
onFocus: handleFocus,
|
|
2255
2258
|
onBlur: handleBlur
|
|
2256
2259
|
})), Boolean(end_icon) && jsxRuntime.exports.jsx("div", __assign({
|
|
2257
|
-
className: "text-Gray-500 flex items-center pr-2"
|
|
2260
|
+
className: "hplxt-text-Gray-500 hplxt-flex hplxt-items-center hplxt-pr-2"
|
|
2258
2261
|
}, {
|
|
2259
2262
|
children: jsxRuntime.exports.jsx("span", {
|
|
2260
2263
|
className: end_icon
|
|
2261
2264
|
})
|
|
2262
2265
|
})), Boolean(suffix) && !isSuffixEditable && jsxRuntime.exports.jsx("div", __assign({
|
|
2263
2266
|
"data-testid": "input-suffix",
|
|
2264
|
-
className: "bg-Gray-50 border-l-1 border-l-Gray-300 text-Gray-500 flex items-center pr-3 pl-[14px]",
|
|
2267
|
+
className: "".concat(fieldColor ? fieldColor : "hplxt-bg-Gray-50", " hplxt-border-l-1 hplxt-border-l-Gray-300 hplxt-text-Gray-500 hplxt-flex hplxt-items-center hplxt-pr-3 hplxt-pl-[14px]"),
|
|
2265
2268
|
onClick: function onClick() {
|
|
2266
2269
|
return setShowSuffixDropdown(true);
|
|
2267
2270
|
}
|
|
@@ -2275,14 +2278,14 @@ var InputField = function InputField(_a) {
|
|
|
2275
2278
|
})), isSuffixEditable && jsxRuntime.exports.jsxs("div", {
|
|
2276
2279
|
children: [jsxRuntime.exports.jsx("div", __assign({
|
|
2277
2280
|
"data-testid": "input-suffix",
|
|
2278
|
-
className: "bg-Gray-50 border-l-1 border-l-Gray-300 text-Gray-500 flex items-center pr-3 pl-[14px]",
|
|
2281
|
+
className: "".concat(fieldColor ? fieldColor : "hplxt-bg-Gray-50", " hplxt-bg-none hplxt-border-l-1 hplxt-border-l-Gray-300 hplxt-text-Gray-500 hplxt-flex hplxt-items-center hplxt-pr-3 hplxt-pl-[14px]"),
|
|
2279
2282
|
onClick: function onClick() {
|
|
2280
2283
|
return setShowSuffixDropdown(true);
|
|
2281
2284
|
}
|
|
2282
2285
|
}, {
|
|
2283
2286
|
children: isSuffixEditable && jsxRuntime.exports.jsx("input", __assign({
|
|
2284
2287
|
type: "text",
|
|
2285
|
-
className: "flex-1 pl-[4px] w-36 pr-[1px] bg-Gray-50 py-2 focus-visible:outline-0 border-0 focus:border-0",
|
|
2288
|
+
className: "hplxt-flex-1 hplxt-pl-[4px] hplxt-w-36 hplxt-pr-[1px] hplxt-bg-Gray-50 hplxt-py-2 focus-visible:hplxt-outline-0 hplxt-border-0 focus:hplxt-border-0",
|
|
2286
2289
|
"data-testid": "text-input",
|
|
2287
2290
|
placeholder: suffixPlaceholder
|
|
2288
2291
|
}, suffixInputProps, {
|
|
@@ -2293,20 +2296,19 @@ var InputField = function InputField(_a) {
|
|
|
2293
2296
|
}))
|
|
2294
2297
|
})), showSuffixDropdown && jsxRuntime.exports.jsx("div", __assign({
|
|
2295
2298
|
ref: wrapperRef,
|
|
2296
|
-
className: "absolute mt-1 min-w-max rounded-lg bg-White overflow-y-auto shadow-md z-10 max-h-80 "
|
|
2299
|
+
className: "hplxt-absolute hplxt-mt-1 hplxt-min-w-max hplxt-rounded-lg ".concat(fieldColor ? fieldColor : "hplxt-bg-White", " hplxt-overflow-y-auto hplxt-shadow-md hplxt-z-10 hplxt-max-h-80 ")
|
|
2297
2300
|
}, {
|
|
2298
2301
|
children: suffixFilterList && suffixFilterList.length > 0 && jsxRuntime.exports.jsx("div", {
|
|
2299
2302
|
children: (suffixFilterList === null || suffixFilterList === void 0 ? void 0 : suffixFilterList.constructor) === Array && suffixFilterList.length ? suffixFilterList.map(function (option) {
|
|
2300
|
-
|
|
2301
|
-
|
|
2303
|
+
// const { ...restOptions } = option || {}
|
|
2302
2304
|
return jsxRuntime.exports.jsx(DropdownItems, __assign({
|
|
2305
|
+
className: "hplxt-text-Primary-700"
|
|
2306
|
+
}, option, {
|
|
2303
2307
|
label: option["label"],
|
|
2304
|
-
className: "text-Primary-700"
|
|
2305
|
-
}, restOptions, {
|
|
2306
2308
|
onSelect: function onSelect() {
|
|
2307
|
-
setSuffixValue(
|
|
2309
|
+
setSuffixValue(option.label);
|
|
2308
2310
|
setShowSuffixDropdown(false);
|
|
2309
|
-
handleSuffixClick(
|
|
2311
|
+
handleSuffixClick(option);
|
|
2310
2312
|
}
|
|
2311
2313
|
}));
|
|
2312
2314
|
}) : null
|
|
@@ -2314,7 +2316,7 @@ var InputField = function InputField(_a) {
|
|
|
2314
2316
|
}))]
|
|
2315
2317
|
}), Boolean(suffixButton) && jsxRuntime.exports.jsx("div", __assign({
|
|
2316
2318
|
"data-testid": "input-suffixButton",
|
|
2317
|
-
className: " flex items-center px-1"
|
|
2319
|
+
className: " hplxt-flex hplxt-items-center hplxt-px-1"
|
|
2318
2320
|
}, {
|
|
2319
2321
|
children: jsxRuntime.exports.jsx(Typography, __assign({
|
|
2320
2322
|
type: "Text md",
|
|
@@ -2325,7 +2327,7 @@ var InputField = function InputField(_a) {
|
|
|
2325
2327
|
}))]
|
|
2326
2328
|
}))
|
|
2327
2329
|
})), (Boolean(hint_text) || Boolean(errorMsg)) && jsxRuntime.exports.jsx("div", __assign({
|
|
2328
|
-
className: "".concat(errorMsg ? "text-Error-500" : "text-Gray-500 mt-1")
|
|
2330
|
+
className: "".concat(errorMsg ? "hplxt-text-Error-500" : "hplxt-text-Gray-500 hplxt-mt-1")
|
|
2329
2331
|
}, {
|
|
2330
2332
|
children: jsxRuntime.exports.jsx(Typography, __assign({
|
|
2331
2333
|
type: "Text sm",
|
|
@@ -2409,10 +2411,10 @@ var InputFieldSplit = function InputFieldSplit(_a) {
|
|
|
2409
2411
|
className: "inputfieldsplit"
|
|
2410
2412
|
}, {
|
|
2411
2413
|
children: [jsxRuntime.exports.jsxs("div", __assign({
|
|
2412
|
-
className: "flex justify-between"
|
|
2414
|
+
className: "hplxt-flex hplxt-justify-between"
|
|
2413
2415
|
}, {
|
|
2414
2416
|
children: [Boolean(label) && jsxRuntime.exports.jsx("div", __assign({
|
|
2415
|
-
className: "".concat(labelColor ? labelColor : "text-Gray-700", " mb-1")
|
|
2417
|
+
className: "".concat(labelColor ? labelColor : "hplxt-text-Gray-700", " hplxt-mb-1")
|
|
2416
2418
|
}, {
|
|
2417
2419
|
children: jsxRuntime.exports.jsx(Typography, __assign({
|
|
2418
2420
|
type: "".concat(labelSize ? labelSize : "Text sm"),
|
|
@@ -2421,7 +2423,7 @@ var InputFieldSplit = function InputFieldSplit(_a) {
|
|
|
2421
2423
|
children: label
|
|
2422
2424
|
}))
|
|
2423
2425
|
})), Boolean(char_count) && jsxRuntime.exports.jsx("div", __assign({
|
|
2424
|
-
className: "text-Gray-700 mb-1"
|
|
2426
|
+
className: "hplxt-text-Gray-700 hplxt-mb-1"
|
|
2425
2427
|
}, {
|
|
2426
2428
|
children: jsxRuntime.exports.jsx(Typography, __assign({
|
|
2427
2429
|
type: "Text sm",
|
|
@@ -2435,11 +2437,11 @@ var InputFieldSplit = function InputFieldSplit(_a) {
|
|
|
2435
2437
|
type: "Text md"
|
|
2436
2438
|
}, {
|
|
2437
2439
|
children: jsxRuntime.exports.jsxs("div", __assign({
|
|
2438
|
-
className: "flex border-1 overflow-hidden placeholder:text-Gray-500 ".concat(errorMsg ? "border-Error-300" : "border-Gray-300", " shadow-xs rounded-lg ").concat(height ? height : "h-10", " ").concat(disabled ? "bg-Gray-50" : "bg-White ".concat(errorMsg ? "hover:shadow-xs-error ".concat((active[fieldNames[0]] || active[fieldNames[1]]) && "shadow-xs-error") : "hover:border-Primary-300 hover:shadow-xs-primary ".concat((active[fieldNames[0]] || active[fieldNames[1]]) && "border-Primary-300 shadow-xs-primary")))
|
|
2440
|
+
className: "hplxt-flex hplxt-border-1 hplxt-overflow-hidden placeholder:hplxt-text-Gray-500 ".concat(errorMsg ? "hplxt-border-Error-300" : "hplxt-border-Gray-300", " hplxt-shadow-xs hplxt-rounded-lg ").concat(height ? height : "hplxt-h-10", " ").concat(disabled ? "hplxt-bg-Gray-50" : "hplxt-bg-White ".concat(errorMsg ? "hover:hplxt-shadow-xs-error ".concat((active[fieldNames[0]] || active[fieldNames[1]]) && "hplxt-shadow-xs-error") : "hover:hplxt-border-Primary-300 hover:hplxt-shadow-xs-primary ".concat((active[fieldNames[0]] || active[fieldNames[1]]) && "hplxt-border-Primary-300 hplxt-shadow-xs-primary")))
|
|
2439
2441
|
}, {
|
|
2440
2442
|
children: [Boolean(prefix) && jsxRuntime.exports.jsx("div", __assign({
|
|
2441
2443
|
"data-testid": "input-prefix",
|
|
2442
|
-
className: "bg-Gray-50 border-r-1 border-r-Gray-300 text-Gray-500 flex items-center px-3"
|
|
2444
|
+
className: "hplxt-bg-Gray-50 hplxt-border-r-1 hplxt-border-r-Gray-300 hplxt-text-Gray-500 hplxt-flex hplxt-items-center hplxt-px-3"
|
|
2443
2445
|
}, {
|
|
2444
2446
|
children: jsxRuntime.exports.jsx(Typography, __assign({
|
|
2445
2447
|
type: "Text md",
|
|
@@ -2448,17 +2450,17 @@ var InputFieldSplit = function InputFieldSplit(_a) {
|
|
|
2448
2450
|
children: prefix
|
|
2449
2451
|
}))
|
|
2450
2452
|
})), Boolean(start_icon) && jsxRuntime.exports.jsx("div", __assign({
|
|
2451
|
-
className: "text-Gray-500 flex items-center pl-2"
|
|
2453
|
+
className: "hplxt-text-Gray-500 hplxt-flex hplxt-items-center hplxt-pl-2"
|
|
2452
2454
|
}, {
|
|
2453
2455
|
children: jsxRuntime.exports.jsx("span", {
|
|
2454
2456
|
className: start_icon
|
|
2455
2457
|
})
|
|
2456
2458
|
})), jsxRuntime.exports.jsxs("div", __assign({
|
|
2457
|
-
className: "flex-1 relative flex min-w-105"
|
|
2459
|
+
className: "hplxt-flex-1 hplxt-relative hplxt-flex hplxt-min-w-105"
|
|
2458
2460
|
}, {
|
|
2459
2461
|
children: [jsxRuntime.exports.jsx("input", __assign({
|
|
2460
2462
|
type: "text",
|
|
2461
|
-
className: "pl-[14px] py-1 focus-visible:outline-0 absolute top-0 bottom-0 left-0 right-1/2 mr-2 border-0 focus:border-0"
|
|
2463
|
+
className: "hplxt-pl-[14px] hplxt-py-1 focus-visible:hplxt-outline-0 hplxt-absolute hplxt-top-0 hplxt-bottom-0 hplxt-left-0 hplxt-right-1/2 hplxt-mr-2 hplxt-border-0 focus:hplxt-border-0"
|
|
2462
2464
|
}, inputProps, {
|
|
2463
2465
|
value: value && value[fieldNames[0]],
|
|
2464
2466
|
onChange: handleChange(fieldNames[0]),
|
|
@@ -2466,18 +2468,18 @@ var InputFieldSplit = function InputFieldSplit(_a) {
|
|
|
2466
2468
|
onBlur: handleBlur(fieldNames[0]),
|
|
2467
2469
|
"data-testid": "text1-input"
|
|
2468
2470
|
})), jsxRuntime.exports.jsx("div", __assign({
|
|
2469
|
-
className: "flex-1 flex justify-center items-center"
|
|
2471
|
+
className: "hplxt-flex-1 hplxt-flex hplxt-justify-center hplxt-items-center"
|
|
2470
2472
|
}, {
|
|
2471
2473
|
children: jsxRuntime.exports.jsx(Typography, __assign({
|
|
2472
2474
|
type: "Text md",
|
|
2473
2475
|
variant: "Regular",
|
|
2474
|
-
className: "text-Gray-300"
|
|
2476
|
+
className: "hplxt-text-Gray-300"
|
|
2475
2477
|
}, {
|
|
2476
2478
|
children: "/"
|
|
2477
2479
|
}))
|
|
2478
2480
|
})), jsxRuntime.exports.jsx("input", __assign({
|
|
2479
2481
|
type: "text",
|
|
2480
|
-
className: "pr-2 py-1 focus-visible:outline-0 absolute top-0 bottom-0 left-1/2 right-0 ml-2 border-0 focus:border-0"
|
|
2482
|
+
className: "hplxt-pr-2 hplxt-py-1 focus-visible:hplxt-outline-0 hplxt-absolute hplxt-top-0 hplxt-bottom-0 hplxt-left-1/2 hplxt-right-0 hplxt-ml-2 hplxt-border-0 focus:hplxt-border-0"
|
|
2481
2483
|
}, inputProps, {
|
|
2482
2484
|
value: value && value[fieldNames[1]],
|
|
2483
2485
|
onChange: handleChange(fieldNames[1]),
|
|
@@ -2486,14 +2488,14 @@ var InputFieldSplit = function InputFieldSplit(_a) {
|
|
|
2486
2488
|
"data-testid": "text2-input"
|
|
2487
2489
|
}))]
|
|
2488
2490
|
})), Boolean(end_icon) && jsxRuntime.exports.jsx("div", __assign({
|
|
2489
|
-
className: "text-Gray-500 flex items-center pr-2"
|
|
2491
|
+
className: "hplxt-text-Gray-500 hplxt-flex hplxt-items-center hplxt-pr-2"
|
|
2490
2492
|
}, {
|
|
2491
2493
|
children: jsxRuntime.exports.jsx("span", {
|
|
2492
2494
|
className: end_icon
|
|
2493
2495
|
})
|
|
2494
2496
|
})), Boolean(suffix) && jsxRuntime.exports.jsx("div", __assign({
|
|
2495
2497
|
"data-testid": "input-suffix",
|
|
2496
|
-
className: "bg-Gray-50 border-l-1 border-l-Gray-300 text-Gray-500 flex items-center pr-3 pl-[14px]"
|
|
2498
|
+
className: "hplxt-bg-Gray-50 hplxt-border-l-1 hplxt-border-l-Gray-300 hplxt-text-Gray-500 hplxt-flex hplxt-items-center hplxt-pr-3 hplxt-pl-[14px]"
|
|
2497
2499
|
}, {
|
|
2498
2500
|
children: jsxRuntime.exports.jsx(Typography, __assign({
|
|
2499
2501
|
type: "Text md",
|
|
@@ -2504,7 +2506,7 @@ var InputFieldSplit = function InputFieldSplit(_a) {
|
|
|
2504
2506
|
}))]
|
|
2505
2507
|
}))
|
|
2506
2508
|
})), (Boolean(hint_text) || Boolean(errorMsg)) && jsxRuntime.exports.jsx("div", __assign({
|
|
2507
|
-
className: "".concat(errorMsg ? "text-Error-500" : "text-Gray-500 mt-1")
|
|
2509
|
+
className: "".concat(errorMsg ? "hplxt-text-Error-500" : "hplxt-text-Gray-500 hplxt-mt-1")
|
|
2508
2510
|
}, {
|
|
2509
2511
|
children: jsxRuntime.exports.jsx(Typography, __assign({
|
|
2510
2512
|
type: "Text sm",
|
|
@@ -2529,7 +2531,7 @@ var TextAreaField = function TextAreaField(_a) {
|
|
|
2529
2531
|
errorMsg = _c === void 0 ? "" : _c,
|
|
2530
2532
|
inputProps = _a.inputProps,
|
|
2531
2533
|
_d = _a.height,
|
|
2532
|
-
height = _d === void 0 ? "h-32" : _d;
|
|
2534
|
+
height = _d === void 0 ? "hplxt-h-32" : _d;
|
|
2533
2535
|
|
|
2534
2536
|
var _e = inputProps || {},
|
|
2535
2537
|
disabled = _e.disabled,
|
|
@@ -2554,7 +2556,7 @@ var TextAreaField = function TextAreaField(_a) {
|
|
|
2554
2556
|
className: "textfield"
|
|
2555
2557
|
}, {
|
|
2556
2558
|
children: [Boolean(label) && jsxRuntime.exports.jsx("div", __assign({
|
|
2557
|
-
className: "text-Gray-700 mb-1"
|
|
2559
|
+
className: "hplxt-text-Gray-700 hplxt-mb-1"
|
|
2558
2560
|
}, {
|
|
2559
2561
|
children: jsxRuntime.exports.jsx(Typography, __assign({
|
|
2560
2562
|
type: "Text sm",
|
|
@@ -2567,17 +2569,17 @@ var TextAreaField = function TextAreaField(_a) {
|
|
|
2567
2569
|
type: "Text md"
|
|
2568
2570
|
}, {
|
|
2569
2571
|
children: jsxRuntime.exports.jsx("div", __assign({
|
|
2570
|
-
className: "flex border-1 overflow-hidden placeholder:text-Gray-500 ".concat(errorMsg ? "border-Error-300" : "border-Gray-300", " shadow-xs rounded-lg ").concat(height, " ").concat(disabled ? "bg-Gray-50" : "bg-White ".concat(errorMsg ? "hover:shadow-xs-error ".concat(active && "shadow-xs-error") : "hover:border-Primary-300 hover:shadow-xs-primary ".concat(active && "border-Primary-300 shadow-xs-primary")))
|
|
2572
|
+
className: "hplxt-flex hplxt-border-1 hplxt-overflow-hidden placeholder:hplxt-text-Gray-500 ".concat(errorMsg ? "hplxt-border-Error-300" : "hplxt-border-Gray-300", " hplxt-shadow-xs hplxt-rounded-lg ").concat(height, " ").concat(disabled ? "hplxt-bg-Gray-50" : "hplxt-bg-White ".concat(errorMsg ? "hover:hplxt-shadow-xs-error ".concat(active && "hplxt-shadow-xs-error") : "hover:hplxt-border-Primary-300 hover:hplxt-shadow-xs-primary ".concat(active && "hplxt-border-Primary-300 hplxt-shadow-xs-primary")))
|
|
2571
2573
|
}, {
|
|
2572
2574
|
children: jsxRuntime.exports.jsx("textarea", __assign({
|
|
2573
|
-
className: "flex-1 px-2 py-2 focus-visible:outline-0 border-0 focus:border-0"
|
|
2575
|
+
className: "hplxt-flex-1 hplxt-px-2 hplxt-py-2 focus-visible:hplxt-outline-0 hplxt-border-0 focus:hplxt-border-0"
|
|
2574
2576
|
}, inputProps, {
|
|
2575
2577
|
onFocus: handleFocus,
|
|
2576
2578
|
onBlur: handleBlur
|
|
2577
2579
|
}))
|
|
2578
2580
|
}))
|
|
2579
2581
|
})), (Boolean(hint_text) || Boolean(errorMsg)) && jsxRuntime.exports.jsx("div", __assign({
|
|
2580
|
-
className: "".concat(errorMsg ? "text-Error-500" : "text-Gray-500 mt-1")
|
|
2582
|
+
className: "".concat(errorMsg ? "hplxt-text-Error-500" : "hplxt-text-Gray-500 hplxt-mt-1")
|
|
2581
2583
|
}, {
|
|
2582
2584
|
children: jsxRuntime.exports.jsx(Typography, __assign({
|
|
2583
2585
|
type: "Text sm",
|
|
@@ -2598,15 +2600,15 @@ var getSizeClassName$6 = function getSizeClassName(size) {
|
|
|
2598
2600
|
|
|
2599
2601
|
switch (size) {
|
|
2600
2602
|
case "sm":
|
|
2601
|
-
className = "w-16 h-16";
|
|
2603
|
+
className = "hplxt-w-16 hplxt-h-16";
|
|
2602
2604
|
break;
|
|
2603
2605
|
|
|
2604
2606
|
case "md":
|
|
2605
|
-
className = "w-20 h-20";
|
|
2607
|
+
className = "hplxt-w-20 hplxt-h-20";
|
|
2606
2608
|
break;
|
|
2607
2609
|
|
|
2608
2610
|
case "lg":
|
|
2609
|
-
className = "w-24 h-24";
|
|
2611
|
+
className = "hplxt-w-24 hplxt-h-24";
|
|
2610
2612
|
break;
|
|
2611
2613
|
|
|
2612
2614
|
default:
|
|
@@ -2654,7 +2656,7 @@ var OtpField = function OtpField(_a) {
|
|
|
2654
2656
|
className: "otpfield"
|
|
2655
2657
|
}, {
|
|
2656
2658
|
children: [Boolean(label) && jsxRuntime.exports.jsx("div", __assign({
|
|
2657
|
-
className: "text-Gray-700 mb-1"
|
|
2659
|
+
className: "hplxt-text-Gray-700 hplxt-mb-1"
|
|
2658
2660
|
}, {
|
|
2659
2661
|
children: jsxRuntime.exports.jsx(Typography, __assign({
|
|
2660
2662
|
type: "Text sm",
|
|
@@ -2663,24 +2665,24 @@ var OtpField = function OtpField(_a) {
|
|
|
2663
2665
|
children: label
|
|
2664
2666
|
}))
|
|
2665
2667
|
})), jsxRuntime.exports.jsxs("div", __assign({
|
|
2666
|
-
className: "relative inline-block"
|
|
2668
|
+
className: "hplxt-relative hplxt-inline-block"
|
|
2667
2669
|
}, {
|
|
2668
2670
|
children: [jsxRuntime.exports.jsx("input", __assign({
|
|
2669
2671
|
type: "text",
|
|
2670
|
-
className: "absolute top-0 bottom-0 left-0 right-0 opacity-0 border-0 focus:border-0",
|
|
2672
|
+
className: "hplxt-absolute hplxt-top-0 hplxt-bottom-0 hplxt-left-0 hplxt-right-0 hplxt-opacity-0 hplxt-border-0 focus:hplxt-border-0",
|
|
2671
2673
|
maxLength: digits
|
|
2672
2674
|
}, inputProps, {
|
|
2673
2675
|
onFocus: handleFocus,
|
|
2674
2676
|
onBlur: handleBlur
|
|
2675
2677
|
})), jsxRuntime.exports.jsx("div", __assign({
|
|
2676
|
-
className: "flex pointer-events-none"
|
|
2678
|
+
className: "hplxt-flex hplxt-pointer-events-none"
|
|
2677
2679
|
}, {
|
|
2678
2680
|
children: Array(digits).fill("").map(function (_, index) {
|
|
2679
2681
|
return jsxRuntime.exports.jsxs("div", __assign({
|
|
2680
|
-
className: "flex items-center justify-center"
|
|
2682
|
+
className: "hplxt-flex hplxt-items-center hplxt-justify-center"
|
|
2681
2683
|
}, {
|
|
2682
2684
|
children: [digits === 6 && index === 3 && jsxRuntime.exports.jsx("div", __assign({
|
|
2683
|
-
className: "text-Gray-300"
|
|
2685
|
+
className: "hplxt-text-Gray-300"
|
|
2684
2686
|
}, {
|
|
2685
2687
|
children: jsxRuntime.exports.jsx(Typography, __assign({
|
|
2686
2688
|
type: "Display xl",
|
|
@@ -2689,7 +2691,7 @@ var OtpField = function OtpField(_a) {
|
|
|
2689
2691
|
children: "-"
|
|
2690
2692
|
}))
|
|
2691
2693
|
})), jsxRuntime.exports.jsx("div", __assign({
|
|
2692
|
-
className: "flex items-center justify-center border-1 ".concat(errorMsg ? "border-Error-300" : "border-Gray-300", " ").concat(disabled ? "bg-Gray-50" : typeof value === "string" && value.length === index && "bg-White ".concat(errorMsg ? "hover:shadow-xs-error ".concat(active && "shadow-xs-error") : "hover:border-Primary-300 hover:shadow-xs-primary ".concat(active && "border-Primary-300 shadow-xs-primary")), " rounded-lg mx-1 ").concat(getSizeClassName$6(size))
|
|
2694
|
+
className: "hplxt-flex hplxt-items-center hplxt-justify-center hplxt-border-1 ".concat(errorMsg ? "hplxt-border-Error-300" : "hplxt-border-Gray-300", " ").concat(disabled ? "hplxt-bg-Gray-50" : typeof value === "string" && value.length === index && "hplxt-bg-White ".concat(errorMsg ? "hover:hplxt-shadow-xs-error ".concat(active && "hplxt-shadow-xs-error") : "hover:hplxt-border-Primary-300 hover:hplxt-shadow-xs-primary ".concat(active && "hplxt-border-Primary-300 hplxt-shadow-xs-primary")), " hplxt-rounded-lg hplxt-mx-1 ").concat(getSizeClassName$6(size))
|
|
2693
2695
|
}, {
|
|
2694
2696
|
children: typeof value === "string" && !!value[index] ? jsxRuntime.exports.jsx(Typography, __assign({
|
|
2695
2697
|
type: size === "lg" ? "Display xl" : "Display lg",
|
|
@@ -2697,7 +2699,7 @@ var OtpField = function OtpField(_a) {
|
|
|
2697
2699
|
}, {
|
|
2698
2700
|
children: value[index]
|
|
2699
2701
|
})) : jsxRuntime.exports.jsx("div", __assign({
|
|
2700
|
-
className: "text-Gray-300"
|
|
2702
|
+
className: "hplxt-text-Gray-300"
|
|
2701
2703
|
}, {
|
|
2702
2704
|
children: jsxRuntime.exports.jsx(Typography, __assign({
|
|
2703
2705
|
type: size === "lg" ? "Display xl" : "Display lg",
|
|
@@ -2711,7 +2713,7 @@ var OtpField = function OtpField(_a) {
|
|
|
2711
2713
|
})
|
|
2712
2714
|
}))]
|
|
2713
2715
|
})), (Boolean(hint_text) || Boolean(errorMsg)) && jsxRuntime.exports.jsx("div", __assign({
|
|
2714
|
-
className: "".concat(errorMsg ? "text-Error-500" : "text-Gray-500 mt-1")
|
|
2716
|
+
className: "".concat(errorMsg ? "hplxt-text-Error-500" : "hplxt-text-Gray-500 hplxt-mt-1")
|
|
2715
2717
|
}, {
|
|
2716
2718
|
children: jsxRuntime.exports.jsx(Typography, __assign({
|
|
2717
2719
|
type: "Text sm",
|
|
@@ -2759,7 +2761,7 @@ var ButtonGroups = function ButtonGroups(_a) {
|
|
|
2759
2761
|
};
|
|
2760
2762
|
|
|
2761
2763
|
return jsxRuntime.exports.jsx("div", __assign({
|
|
2762
|
-
className: "border-1 border-Gray-300 rounded-lg flex overflow-hidden"
|
|
2764
|
+
className: "hplxt-border-1 hplxt-border-Gray-300 hplxt-rounded-lg hplxt-flex hplxt-overflow-hidden"
|
|
2763
2765
|
}, {
|
|
2764
2766
|
children: !!options && options.constructor === Array && options.map(function (option, index) {
|
|
2765
2767
|
var _a = option || {},
|
|
@@ -2775,17 +2777,17 @@ var ButtonGroups = function ButtonGroups(_a) {
|
|
|
2775
2777
|
disabled: disabled,
|
|
2776
2778
|
onMouseEnter: onMouseEnterHandler(index),
|
|
2777
2779
|
onMouseLeave: onMouseLeaveHandler,
|
|
2778
|
-
className: "flex items-center justify-center flex-1 h-10\n ".concat(!disabled && isSelected ? "bg-Primary-50" : "bg-White", "\n ").concat(index + 1 !== options.length && "border-r-1 border-Gray-300"),
|
|
2780
|
+
className: "hplxt-flex hplxt-items-center hplxt-justify-center hplxt-flex-1 hplxt-h-10\n ".concat(!disabled && isSelected ? "hplxt-bg-Primary-50" : "hplxt-bg-White", "\n ").concat(index + 1 !== options.length && "hplxt-border-r-1 hplxt-border-Gray-300"),
|
|
2779
2781
|
onClick: handleChange(buttonValue)
|
|
2780
2782
|
}, ButtonGroupsProps, {
|
|
2781
2783
|
children: [Boolean(start_icon) && jsxRuntime.exports.jsx("div", __assign({
|
|
2782
|
-
className: "flex items-center pl-2 ".concat(!label && "pr-2", " ").concat(disabled ? "text-Gray-300" : isSelected ? "text-Primary-700" : isHovered ? "text-Gray-800" : "text-Gray-500")
|
|
2784
|
+
className: "hplxt-flex hplxt-items-center hplxt-pl-2 ".concat(!label && "hplxt-pr-2", " ").concat(disabled ? "hplxt-text-Gray-300" : isSelected ? "hplxt-text-Primary-700" : isHovered ? "hplxt-text-Gray-800" : "hplxt-text-Gray-500")
|
|
2783
2785
|
}, {
|
|
2784
2786
|
children: jsxRuntime.exports.jsx("span", {
|
|
2785
2787
|
className: start_icon
|
|
2786
2788
|
})
|
|
2787
2789
|
})), Boolean(label) && jsxRuntime.exports.jsx("div", __assign({
|
|
2788
|
-
className: "px-2 ".concat(disabled ? "text-Gray-300" : isSelected ? "text-Primary-700" : isHovered ? "text-Gray-800" : "text-Gray-700")
|
|
2790
|
+
className: "hplxt-px-2 ".concat(disabled ? "hplxt-text-Gray-300" : isSelected ? "hplxt-text-Primary-700" : isHovered ? "hplxt-text-Gray-800" : "hplxt-text-Gray-700")
|
|
2789
2791
|
}, {
|
|
2790
2792
|
children: jsxRuntime.exports.jsx(Typography, __assign({
|
|
2791
2793
|
variant: "Medium",
|
|
@@ -2794,7 +2796,7 @@ var ButtonGroups = function ButtonGroups(_a) {
|
|
|
2794
2796
|
children: label
|
|
2795
2797
|
}))
|
|
2796
2798
|
})), Boolean(end_icon) && jsxRuntime.exports.jsx("div", __assign({
|
|
2797
|
-
className: "flex items-center pr-2 ".concat(!label && "pl-2", " ").concat(disabled ? "text-Gray-300" : isSelected ? "text-Primary-700" : isHovered ? "text-Gray-800" : "text-Gray-500")
|
|
2799
|
+
className: "hplxt-flex hplxt-items-center hplxt-pr-2 ".concat(!label && "hplxt-pl-2", " ").concat(disabled ? "hplxt-text-Gray-300" : isSelected ? "hplxt-text-Primary-700" : isHovered ? "hplxt-text-Gray-800" : "hplxt-text-Gray-500")
|
|
2798
2800
|
}, {
|
|
2799
2801
|
children: jsxRuntime.exports.jsx("span", {
|
|
2800
2802
|
className: end_icon
|
|
@@ -2810,31 +2812,31 @@ var getVariantPlacement = function getVariantPlacement(variant) {
|
|
|
2810
2812
|
|
|
2811
2813
|
switch (variant) {
|
|
2812
2814
|
case "Bottom":
|
|
2813
|
-
placement = "absolute block z-10 top-full left-1/2 translate-x-[-50%]";
|
|
2815
|
+
placement = "hplxt-absolute hplxt-block hplxt-z-10 hplxt-top-full hplxt-left-1/2 hplxt-translate-x-[-50%]";
|
|
2814
2816
|
break;
|
|
2815
2817
|
|
|
2816
2818
|
case "Left":
|
|
2817
|
-
placement = "absolute block z-10 right-full top-1/2 translate-y-[-50%]";
|
|
2819
|
+
placement = "hplxt-absolute hplxt-block hplxt-z-10 hplxt-right-full hplxt-top-1/2 hplxt-translate-y-[-50%]";
|
|
2818
2820
|
break;
|
|
2819
2821
|
|
|
2820
2822
|
case "Right":
|
|
2821
|
-
placement = "absolute block z-10 left-full top-1/2 translate-y-[-50%]";
|
|
2823
|
+
placement = "hplxt-absolute hplxt-block hplxt-z-10 hplxt-left-full hplxt-top-1/2 hplxt-translate-y-[-50%]";
|
|
2822
2824
|
break;
|
|
2823
2825
|
|
|
2824
2826
|
case "Top":
|
|
2825
|
-
placement = "absolute block z-10 bottom-full left-1/2 translate-x-[-50%]";
|
|
2827
|
+
placement = "hplxt-absolute hplxt-block hplxt-z-10 hplxt-bottom-full hplxt-left-1/2 hplxt-translate-x-[-50%]";
|
|
2826
2828
|
break;
|
|
2827
2829
|
|
|
2828
2830
|
case "Top end":
|
|
2829
|
-
placement = "absolute block z-10 bottom-full left-full";
|
|
2831
|
+
placement = "hplxt-absolute hplxt-block hplxt-z-10 hplxt-bottom-full hplxt-left-full";
|
|
2830
2832
|
break;
|
|
2831
2833
|
|
|
2832
2834
|
case "Top start":
|
|
2833
|
-
placement = "absolute block z-10 bottom-full left-0";
|
|
2835
|
+
placement = "hplxt-absolute hplxt-block hplxt-z-10 hplxt-bottom-full hplxt-left-0";
|
|
2834
2836
|
break;
|
|
2835
2837
|
|
|
2836
2838
|
default:
|
|
2837
|
-
placement = "absolute block z-10 bottom-full left-1/2 translate-x-[-50%]";
|
|
2839
|
+
placement = "hplxt-absolute hplxt-block hplxt-z-10 hplxt-bottom-full hplxt-left-1/2 hplxt-translate-x-[-50%]";
|
|
2838
2840
|
break;
|
|
2839
2841
|
}
|
|
2840
2842
|
|
|
@@ -2846,31 +2848,31 @@ var getVariantMessagePlacement = function getVariantMessagePlacement(variant) {
|
|
|
2846
2848
|
|
|
2847
2849
|
switch (variant) {
|
|
2848
2850
|
case "Bottom":
|
|
2849
|
-
placement = "mt-3 ";
|
|
2851
|
+
placement = "hplxt-mt-3 ";
|
|
2850
2852
|
break;
|
|
2851
2853
|
|
|
2852
2854
|
case "Left":
|
|
2853
|
-
placement = "mr-3";
|
|
2855
|
+
placement = "hplxt-mr-3";
|
|
2854
2856
|
break;
|
|
2855
2857
|
|
|
2856
2858
|
case "Right":
|
|
2857
|
-
placement = "ml-3";
|
|
2859
|
+
placement = "hplxt-ml-3";
|
|
2858
2860
|
break;
|
|
2859
2861
|
|
|
2860
2862
|
case "Top":
|
|
2861
|
-
placement = "mb-3";
|
|
2863
|
+
placement = "hplxt-mb-3";
|
|
2862
2864
|
break;
|
|
2863
2865
|
|
|
2864
2866
|
case "Top end":
|
|
2865
|
-
placement = "mb-3 -ml-4";
|
|
2867
|
+
placement = "hplxt-mb-3 -hplxt-ml-4";
|
|
2866
2868
|
break;
|
|
2867
2869
|
|
|
2868
2870
|
case "Top start":
|
|
2869
|
-
placement = "mb-3 -ml-4";
|
|
2871
|
+
placement = "hplxt-mb-3 -hplxt-ml-4";
|
|
2870
2872
|
break;
|
|
2871
2873
|
|
|
2872
2874
|
default:
|
|
2873
|
-
placement = "mb-3";
|
|
2875
|
+
placement = "hplxt-mb-3";
|
|
2874
2876
|
break;
|
|
2875
2877
|
}
|
|
2876
2878
|
|
|
@@ -2882,31 +2884,31 @@ var getVariantArrowPlacement = function getVariantArrowPlacement(variant) {
|
|
|
2882
2884
|
|
|
2883
2885
|
switch (variant) {
|
|
2884
2886
|
case "Bottom":
|
|
2885
|
-
placement = "top-2 left-1/2 translate-x-[-50%]";
|
|
2887
|
+
placement = "hplxt-top-2 hplxt-left-1/2 hplxt-translate-x-[-50%]";
|
|
2886
2888
|
break;
|
|
2887
2889
|
|
|
2888
2890
|
case "Left":
|
|
2889
|
-
placement = "right-2 top-1/2 translate-y-[-50%]";
|
|
2891
|
+
placement = "hplxt-right-2 hplxt-top-1/2 hplxt-translate-y-[-50%]";
|
|
2890
2892
|
break;
|
|
2891
2893
|
|
|
2892
2894
|
case "Right":
|
|
2893
|
-
placement = "left-2 top-1/2 translate-y-[-50%]";
|
|
2895
|
+
placement = "hplxt-left-2 hplxt-top-1/2 hplxt-translate-y-[-50%]";
|
|
2894
2896
|
break;
|
|
2895
2897
|
|
|
2896
2898
|
case "Top":
|
|
2897
|
-
placement = "bottom-2 left-1/2 translate-x-[-50%]";
|
|
2899
|
+
placement = "hplxt-bottom-2 hplxt-left-1/2 hplxt-translate-x-[-50%]";
|
|
2898
2900
|
break;
|
|
2899
2901
|
|
|
2900
2902
|
case "Top start":
|
|
2901
|
-
placement = "bottom-2 -left-1.5";
|
|
2903
|
+
placement = "hplxt-bottom-2 -hplxt-left-1.5";
|
|
2902
2904
|
break;
|
|
2903
2905
|
|
|
2904
2906
|
case "Top end":
|
|
2905
|
-
placement = "bottom-2 -left-1.5";
|
|
2907
|
+
placement = "hplxt-bottom-2 -hplxt-left-1.5";
|
|
2906
2908
|
break;
|
|
2907
2909
|
|
|
2908
2910
|
default:
|
|
2909
|
-
placement = "hidden";
|
|
2911
|
+
placement = "hplxt-hidden";
|
|
2910
2912
|
break;
|
|
2911
2913
|
}
|
|
2912
2914
|
|
|
@@ -2918,15 +2920,15 @@ var getTheme = function getTheme(theme) {
|
|
|
2918
2920
|
|
|
2919
2921
|
switch (theme) {
|
|
2920
2922
|
case "dark":
|
|
2921
|
-
t = "text-White bg-Gray-900";
|
|
2923
|
+
t = "hplxt-text-White hplxt-bg-Gray-900";
|
|
2922
2924
|
break;
|
|
2923
2925
|
|
|
2924
2926
|
case "light":
|
|
2925
|
-
t = "bg-White text:Gray-700";
|
|
2927
|
+
t = "hplxt-bg-White text:hplxt-Gray-700";
|
|
2926
2928
|
break;
|
|
2927
2929
|
|
|
2928
2930
|
default:
|
|
2929
|
-
t = "bg-White text:Gray-700";
|
|
2931
|
+
t = "hplxt-bg-White text:hplxt-Gray-700";
|
|
2930
2932
|
break;
|
|
2931
2933
|
}
|
|
2932
2934
|
|
|
@@ -2948,7 +2950,7 @@ var Tooltip = function Tooltip(props) {
|
|
|
2948
2950
|
supportingText = _b.supportingText;
|
|
2949
2951
|
|
|
2950
2952
|
return jsxRuntime.exports.jsxs("div", __assign({
|
|
2951
|
-
className: "relative inline-block",
|
|
2953
|
+
className: "hplxt-relative hplxt-inline-block",
|
|
2952
2954
|
onMouseEnter: function onMouseEnter() {
|
|
2953
2955
|
return setActive(true);
|
|
2954
2956
|
},
|
|
@@ -2957,11 +2959,11 @@ var Tooltip = function Tooltip(props) {
|
|
|
2957
2959
|
}
|
|
2958
2960
|
}, {
|
|
2959
2961
|
children: [children, jsxRuntime.exports.jsxs("div", __assign({
|
|
2960
|
-
className: "w-max text-left max-w-xs ".concat(getVariantPlacement(variant))
|
|
2962
|
+
className: "hplxt-w-max hplxt-text-left hplxt-max-w-xs ".concat(getVariantPlacement(variant))
|
|
2961
2963
|
}, {
|
|
2962
2964
|
children: [// using short circuit operator to show the tooltip //{`${getVariantMessagePlacement(variant)}`}
|
|
2963
2965
|
active && (text || supportingText) && jsxRuntime.exports.jsxs("div", __assign({
|
|
2964
|
-
className: "px-3 py-2 shadow-lg rounded-lg ".concat(getTheme(theme), " ").concat(getVariantMessagePlacement(variant))
|
|
2966
|
+
className: "hplxt-px-3 hplxt-py-2 hplxt-shadow-lg hplxt-rounded-lg ".concat(getTheme(theme), " ").concat(getVariantMessagePlacement(variant))
|
|
2965
2967
|
}, {
|
|
2966
2968
|
children: [jsxRuntime.exports.jsx(Typography, __assign({
|
|
2967
2969
|
variant: "Medium",
|
|
@@ -2976,7 +2978,7 @@ var Tooltip = function Tooltip(props) {
|
|
|
2976
2978
|
}))]
|
|
2977
2979
|
})), // using short circuit operator to show the tooltip arrow
|
|
2978
2980
|
active && variant && (text || supportingText) && jsxRuntime.exports.jsx("div", {
|
|
2979
|
-
className: "absolute w-3 h-3 rotate-45 ".concat(getTheme(theme), " ").concat(getVariantArrowPlacement(variant))
|
|
2981
|
+
className: "hplxt-absolute hplxt-w-3 hplxt-h-3 hplxt-rotate-45 ".concat(getTheme(theme), " ").concat(getVariantArrowPlacement(variant))
|
|
2980
2982
|
})]
|
|
2981
2983
|
}))]
|
|
2982
2984
|
}));
|
|
@@ -3011,13 +3013,13 @@ var ProgressBar = function ProgressBar(_a) {
|
|
|
3011
3013
|
}
|
|
3012
3014
|
}, [hovered]);
|
|
3013
3015
|
return jsxRuntime.exports.jsxs("div", __assign({
|
|
3014
|
-
className: "flex ".concat(label === "Bottom" ? "flex-col" : "flex-row items-center")
|
|
3016
|
+
className: "hplxt-flex ".concat(label === "Bottom" ? "hplxt-flex-col" : "hplxt-flex-row hplxt-items-center")
|
|
3015
3017
|
}, {
|
|
3016
3018
|
children: [jsxRuntime.exports.jsxs("div", __assign({}, ProgressBarProps, {
|
|
3017
|
-
className: "w-full h-2 rounded relative"
|
|
3019
|
+
className: "hplxt-w-full hplxt-h-2 hplxt-rounded hplxt-relative"
|
|
3018
3020
|
}, {
|
|
3019
3021
|
children: [jsxRuntime.exports.jsx("div", {
|
|
3020
|
-
className: "absolute top-0 left-0 right-0 bg-Primary-50 bottom-0"
|
|
3022
|
+
className: "hplxt-absolute hplxt-top-0 hplxt-left-0 hplxt-right-0 hplxt-bg-Primary-50 hplxt-bottom-0"
|
|
3021
3023
|
}), jsxRuntime.exports.jsx("div", __assign({
|
|
3022
3024
|
"data-testid": "progressbar",
|
|
3023
3025
|
onMouseEnter: function onMouseEnter() {
|
|
@@ -3029,7 +3031,7 @@ var ProgressBar = function ProgressBar(_a) {
|
|
|
3029
3031
|
style: {
|
|
3030
3032
|
right: "".concat(100 - progress, "%")
|
|
3031
3033
|
},
|
|
3032
|
-
className: "absolute top-0 left-0 bottom-0 bg-Primary-600 ease-linear duration-200 rounded flex justify-end"
|
|
3034
|
+
className: "hplxt-absolute hplxt-top-0 hplxt-left-0 hplxt-bottom-0 hplxt-bg-Primary-600 hplxt-ease-linear hplxt-duration-200 hplxt-rounded hplxt-flex hplxt-justify-end"
|
|
3033
3035
|
}, {
|
|
3034
3036
|
children: (label === "Top floating" || label === "Bottom floating") && jsxRuntime.exports.jsx(Tooltip, __assign({
|
|
3035
3037
|
"data-testid": "tooltip",
|
|
@@ -3037,13 +3039,13 @@ var ProgressBar = function ProgressBar(_a) {
|
|
|
3037
3039
|
text: "".concat(progress, "%")
|
|
3038
3040
|
}, {
|
|
3039
3041
|
children: jsxRuntime.exports.jsx("div", {
|
|
3040
|
-
className: "w-2 h-2",
|
|
3042
|
+
className: "hplxt-w-2 hplxt-h-2",
|
|
3041
3043
|
ref: tooltipRef
|
|
3042
3044
|
})
|
|
3043
3045
|
}))
|
|
3044
3046
|
}))]
|
|
3045
3047
|
})), label === "Right" && jsxRuntime.exports.jsx("div", __assign({
|
|
3046
|
-
className: "ml-2 w-10"
|
|
3048
|
+
className: "hplxt-ml-2 hplxt-w-10"
|
|
3047
3049
|
}, {
|
|
3048
3050
|
children: jsxRuntime.exports.jsxs(Typography, __assign({
|
|
3049
3051
|
type: "Text sm",
|
|
@@ -3052,7 +3054,7 @@ var ProgressBar = function ProgressBar(_a) {
|
|
|
3052
3054
|
children: [progress, "%"]
|
|
3053
3055
|
}))
|
|
3054
3056
|
})), label === "Bottom" && jsxRuntime.exports.jsx("div", __assign({
|
|
3055
|
-
className: "ml-auto"
|
|
3057
|
+
className: "hplxt-ml-auto"
|
|
3056
3058
|
}, {
|
|
3057
3059
|
children: jsxRuntime.exports.jsxs(Typography, __assign({
|
|
3058
3060
|
type: "Text sm",
|
|
@@ -3147,21 +3149,21 @@ var ProgressCircle = function ProgressCircle(_a) {
|
|
|
3147
3149
|
dashOffset = dashArray * ((100 - (shape === "Half circle" ? progress / 2 : progress)) / 100);
|
|
3148
3150
|
return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment, {
|
|
3149
3151
|
children: jsxRuntime.exports.jsxs("div", __assign({
|
|
3150
|
-
className: "relative",
|
|
3152
|
+
className: "hplxt-relative",
|
|
3151
3153
|
style: {
|
|
3152
3154
|
width: sizeNumber,
|
|
3153
3155
|
height: shape === "Half circle" ? sizeNumber / 2 + trackWidth / 2 : sizeNumber
|
|
3154
3156
|
}
|
|
3155
3157
|
}, {
|
|
3156
3158
|
children: [jsxRuntime.exports.jsxs("svg", __assign({
|
|
3157
|
-
className: shape === "Half circle" ? "-rotate-180" : "-rotate-90",
|
|
3159
|
+
className: shape === "Half circle" ? "-hplxt-rotate-180" : "-hplxt-rotate-90",
|
|
3158
3160
|
style: {
|
|
3159
3161
|
width: sizeNumber,
|
|
3160
3162
|
height: shape === "Half circle" ? sizeNumber / 2 + trackWidth / 2 : sizeNumber
|
|
3161
3163
|
}
|
|
3162
3164
|
}, {
|
|
3163
3165
|
children: [jsxRuntime.exports.jsx("circle", {
|
|
3164
|
-
className: "stroke-Primary-50",
|
|
3166
|
+
className: "hplxt-stroke-Primary-50",
|
|
3165
3167
|
cx: center,
|
|
3166
3168
|
cy: shape === "Half circle" ? trackWidth / 2 : center,
|
|
3167
3169
|
fill: "transparent",
|
|
@@ -3171,7 +3173,7 @@ var ProgressCircle = function ProgressCircle(_a) {
|
|
|
3171
3173
|
strokeDashoffset: shape === "Half circle" ? dashArray / 2 : dashArray * 2,
|
|
3172
3174
|
strokeLinecap: "round"
|
|
3173
3175
|
}), jsxRuntime.exports.jsx("circle", {
|
|
3174
|
-
className: "".concat(spinnerMode && shape !== "Half circle" ? "animate-spin origin-center" : "ease-linear duration-200", " stroke-Primary-600"),
|
|
3176
|
+
className: "".concat(spinnerMode && shape !== "Half circle" ? "hplxt-animate-spin hplxt-origin-center" : "hplxt-ease-linear hplxt-duration-200", " hplxt-stroke-Primary-600"),
|
|
3175
3177
|
cx: center,
|
|
3176
3178
|
cy: shape === "Half circle" ? trackWidth / 2 : center,
|
|
3177
3179
|
fill: "transparent",
|
|
@@ -3182,10 +3184,10 @@ var ProgressCircle = function ProgressCircle(_a) {
|
|
|
3182
3184
|
strokeLinecap: "round"
|
|
3183
3185
|
})]
|
|
3184
3186
|
})), jsxRuntime.exports.jsxs("div", __assign({
|
|
3185
|
-
className: "absolute ".concat(shape === "Half circle" ? "bottom-0" : "top-1/2 translate-y-[-50%]", " left-1/2 translate-x-[-50%] text-center")
|
|
3187
|
+
className: "hplxt-absolute ".concat(shape === "Half circle" ? "hplxt-bottom-0" : "hplxt-top-1/2 hplxt-translate-y-[-50%]", " hplxt-left-1/2 hplxt-translate-x-[-50%] hplxt-text-center")
|
|
3186
3188
|
}, {
|
|
3187
3189
|
children: [Boolean(label) && size !== "xxs" && jsxRuntime.exports.jsx("div", __assign({
|
|
3188
|
-
className: "text-Gray-500"
|
|
3190
|
+
className: "hplxt-text-Gray-500"
|
|
3189
3191
|
}, {
|
|
3190
3192
|
children: jsxRuntime.exports.jsx(Typography, __assign({
|
|
3191
3193
|
variant: "Medium",
|
|
@@ -3194,7 +3196,7 @@ var ProgressCircle = function ProgressCircle(_a) {
|
|
|
3194
3196
|
children: label
|
|
3195
3197
|
}))
|
|
3196
3198
|
})), (!spinnerMode || shape === "Half circle") && jsxRuntime.exports.jsx("div", __assign({
|
|
3197
|
-
className: "text-Gray-900"
|
|
3199
|
+
className: "hplxt-text-Gray-900"
|
|
3198
3200
|
}, {
|
|
3199
3201
|
children: jsxRuntime.exports.jsx(Typography, __assign({
|
|
3200
3202
|
type: textType,
|
|
@@ -3250,39 +3252,39 @@ if (NOT_GENERIC || INCORRECT_NAME) {
|
|
|
3250
3252
|
var getHierarchyClassName = function getHierarchyClassName(hierarchy, disabled) {
|
|
3251
3253
|
switch (hierarchy) {
|
|
3252
3254
|
case "Primary":
|
|
3253
|
-
return disabled ? "bg-Primary-200 text-White content-center" //Disabled Primary Button
|
|
3254
|
-
: "bg-Primary-600 active:bg-Primary-600 hover:bg-Primary-700 focus:outline-bg-Primary-200 focus:ring shadow-xs text-White";
|
|
3255
|
+
return disabled ? "hplxt-bg-Primary-200 hplxt-text-White hplxt-content-center" //Disabled Primary Button
|
|
3256
|
+
: "hplxt-bg-Primary-600 active:hplxt-bg-Primary-600 hover:hplxt-bg-Primary-700 focus:hplxt-outline-bg-Primary-200 focus:hplxt-ring hplxt-shadow-xs hplxt-text-White";
|
|
3255
3257
|
|
|
3256
3258
|
case "Secondary":
|
|
3257
|
-
return disabled ? "bg-Primary-25 text-Primary-300" //Disabled Secondary Button
|
|
3258
|
-
: "bg-Primary-50 active:bg-Primary-50 hover:bg-Primary-100 focus:outline-bg-Primary-200 focus:ring shadow-xs text-Primary-700";
|
|
3259
|
+
return disabled ? "hplxt-bg-Primary-25 hplxt-text-Primary-300" //Disabled Secondary Button
|
|
3260
|
+
: "hplxt-bg-Primary-50 active:hplxt-bg-Primary-50 hover:hplxt-bg-Primary-100 focus:hplxt-outline-bg-Primary-200 focus:hplxt-ring hplxt-shadow-xs hplxt-text-Primary-700";
|
|
3259
3261
|
|
|
3260
3262
|
case "Secondary-Grey":
|
|
3261
|
-
return disabled ? "bg-White text-Gray-300 border-solid border border-Gray-200" //Disabled Secondary-Grey Button
|
|
3262
|
-
: "bg-white border-solid border border-Gray-300 active:bg-white hover:bg-Gray-25 focus shadow-xs text-Gray-700";
|
|
3263
|
+
return disabled ? "hplxt-bg-White hplxt-text-Gray-300 hplxt-border-solid hplxt-border hplxt-border-Gray-200" //Disabled Secondary-Grey Button
|
|
3264
|
+
: "hplxt-bg-white hplxt-border-solid hplxt-border hplxt-border-Gray-300 active:hplxt-bg-white hover:hplxt-bg-Gray-25 focus hplxt-shadow-xs hplxt-text-Gray-700";
|
|
3263
3265
|
|
|
3264
3266
|
case "Secondary-Grey-Dashed":
|
|
3265
|
-
return disabled ? "bg-White text-Gray-300 border-solid border border-Gray-200" //Disabled Secondary-Grey Button
|
|
3266
|
-
: "bg-Gray-25 border-dashed border border-Gray-200 focus shadow-xs text-Gray-700";
|
|
3267
|
+
return disabled ? "hplxt-bg-White hplxt-text-Gray-300 hplxt-border-solid hplxt-border hplxt-border-Gray-200" //Disabled Secondary-Grey Button
|
|
3268
|
+
: "hplxt-bg-Gray-25 hplxt-border-dashed hplxt-border hplxt-border-Gray-200 focus hplxt-shadow-xs hplxt-text-Gray-700";
|
|
3267
3269
|
|
|
3268
3270
|
case "Tertiary":
|
|
3269
|
-
return disabled ? "text-Gray-300" //Disabled Tertiary Button
|
|
3270
|
-
: "active:bg-white hover:bg-Primary-50 focus text-Primary-700";
|
|
3271
|
+
return disabled ? "hplxt-text-Gray-300" //Disabled Tertiary Button
|
|
3272
|
+
: "active:hplxt-bg-white hover:hplxt-bg-Primary-50 focus hplxt-text-Primary-700";
|
|
3271
3273
|
|
|
3272
3274
|
case "Tertiary-Grey":
|
|
3273
|
-
return disabled ? "text-Gray-300" //Disabled Tertiary-Grey Button
|
|
3274
|
-
: "active:bg-white hover:bg-Gray-50 focus text-Gray-700";
|
|
3275
|
+
return disabled ? "hplxt-text-Gray-300" //Disabled Tertiary-Grey Button
|
|
3276
|
+
: "active:hplxt-bg-white hover:hplxt-bg-Gray-50 focus hplxt-text-Gray-700";
|
|
3275
3277
|
|
|
3276
3278
|
case "Link-Colour":
|
|
3277
|
-
return disabled ? "text-Gray-300" //Disabled Link-Colour Button
|
|
3278
|
-
: "text-Primary-700 active:bg-white hover:text-Primary-800 focus:text-Primary-700 ";
|
|
3279
|
+
return disabled ? "hplxt-text-Gray-300" //Disabled Link-Colour Button
|
|
3280
|
+
: "hplxt-text-Primary-700 active:hplxt-bg-white hover:hplxt-text-Primary-800 focus:hplxt-text-Primary-700 ";
|
|
3279
3281
|
|
|
3280
3282
|
case "Link-Grey":
|
|
3281
|
-
return disabled ? "text-Gray-300" //Disabled Link-Grey Button
|
|
3282
|
-
: "text-Gray-500 active:bg-white hover:text-Gray-700";
|
|
3283
|
+
return disabled ? "hplxt-text-Gray-300" //Disabled Link-Grey Button
|
|
3284
|
+
: "hplxt-text-Gray-500 active:hplxt-bg-white hover:hplxt-text-Gray-700";
|
|
3283
3285
|
|
|
3284
3286
|
default:
|
|
3285
|
-
return "bg-Primary-600 active:bg-Primary-600 hover:bg-Primary-700 focus:outline-bg-Primary-200 focus:ring shadow-xs text-White";
|
|
3287
|
+
return "hplxt-bg-Primary-600 active:hplxt-bg-Primary-600 hover:hplxt-bg-Primary-700 focus:hplxt-outline-bg-Primary-200 focus:hplxt-ring hplxt-shadow-xs hplxt-text-White";
|
|
3286
3288
|
}
|
|
3287
3289
|
}; //getSizeClassName is used to get the size of the button
|
|
3288
3290
|
|
|
@@ -3313,22 +3315,22 @@ var getSizeClassName$5 = function getSizeClassName(size) {
|
|
|
3313
3315
|
var getPaddingClassName$3 = function getPaddingClassName(size, icon, iconFile) {
|
|
3314
3316
|
switch (size) {
|
|
3315
3317
|
case "sm":
|
|
3316
|
-
return icon && iconFile && icon === "Only" ? "h-8 w-[34px] px-[5.8px]" : "h-8 px-4";
|
|
3318
|
+
return icon && iconFile && icon === "Only" ? "hplxt-h-8 hplxt-w-[34px] hplxt-px-[5.8px]" : "hplxt-h-8 hplxt-px-4";
|
|
3317
3319
|
|
|
3318
3320
|
case "md":
|
|
3319
|
-
return icon && iconFile && icon === "Only" ? "h-9 w-[42px] px-[9.8px]" : "h-9 px-4";
|
|
3321
|
+
return icon && iconFile && icon === "Only" ? "hplxt-h-9 hplxt-w-[42px] hplxt-px-[9.8px]" : "hplxt-h-9 hplxt-px-4";
|
|
3320
3322
|
|
|
3321
3323
|
case "lg":
|
|
3322
|
-
return icon && iconFile && icon === "Only" ? "h-10 w-[42px] px-[9.8px]" : "h-10 px-4";
|
|
3324
|
+
return icon && iconFile && icon === "Only" ? "hplxt-h-10 hplxt-w-[42px] hplxt-px-[9.8px]" : "hplxt-h-10 hplxt-px-4";
|
|
3323
3325
|
|
|
3324
3326
|
case "xl":
|
|
3325
|
-
return icon && iconFile && icon === "Only" ? "h-11 w-[46px] px-[11.8px]" : "h-11 px-4";
|
|
3327
|
+
return icon && iconFile && icon === "Only" ? "hplxt-h-11 hplxt-w-[46px] hplxt-px-[11.8px]" : "hplxt-h-11 hplxt-px-4";
|
|
3326
3328
|
|
|
3327
3329
|
case "2xl":
|
|
3328
|
-
return icon && iconFile && icon === "Only" ? "h-12 w-[50px] px-[13.8px]" : "h-12 px-4";
|
|
3330
|
+
return icon && iconFile && icon === "Only" ? "hplxt-h-12 hplxt-w-[50px] hplxt-px-[13.8px]" : "hplxt-h-12 hplxt-px-4";
|
|
3329
3331
|
|
|
3330
3332
|
default:
|
|
3331
|
-
return icon && iconFile && icon === "Only" ? "h-8 w-[34px] px-[5.8px]" : "h-8 px-4";
|
|
3333
|
+
return icon && iconFile && icon === "Only" ? "hplxt-h-8 hplxt-w-[34px] hplxt-px-[5.8px]" : "hplxt-h-8 hplxt-px-4";
|
|
3332
3334
|
}
|
|
3333
3335
|
};
|
|
3334
3336
|
|
|
@@ -3345,7 +3347,7 @@ var Button = function Button(_a) {
|
|
|
3345
3347
|
buttonProps = __rest(_a, ["hierarchy", "size", "textField", "icon", "iconFile", "disabled", "children", "className"]);
|
|
3346
3348
|
|
|
3347
3349
|
return jsxRuntime.exports.jsxs("button", __assign({
|
|
3348
|
-
className: "truncate text-center inline-flex items-center ".concat(getHierarchyClassName(hierarchy, disabled), " ").concat(getPaddingClassName$3(size, icon, iconFile), " rounded-lg ").concat(className),
|
|
3350
|
+
className: "hplxt-truncate hplxt-text-center hplxt-inline-flex hplxt-items-center ".concat(getHierarchyClassName(hierarchy, disabled), " ").concat(getPaddingClassName$3(size, icon, iconFile), " hplxt-rounded-lg ").concat(className),
|
|
3349
3351
|
disabled: disabled
|
|
3350
3352
|
}, buttonProps, {
|
|
3351
3353
|
children: [icon && iconFile && icon === "Left" && jsxRuntime.exports.jsx("span", {
|
|
@@ -3380,18 +3382,18 @@ var getSizeClassName$4 = function getSizeClassName(size) {
|
|
|
3380
3382
|
var getPaddingClassName$2 = function getPaddingClassName(size) {
|
|
3381
3383
|
switch (size) {
|
|
3382
3384
|
case "sm":
|
|
3383
|
-
return "w-4 h-4 mr-2 gap-1 text-[14px] rounded-[4px]";
|
|
3385
|
+
return "hplxt-w-4 hplxt-h-4 hplxt-mr-2 hplxt-gap-1 hplxt-text-[14px] hplxt-rounded-[4px]";
|
|
3384
3386
|
|
|
3385
3387
|
case "md":
|
|
3386
|
-
return "w-5 h-5 mr-3 gap-2 text-[18px] rounded-[6px]";
|
|
3388
|
+
return "hplxt-w-5 hplxt-h-5 hplxt-mr-3 hplxt-gap-2 hplxt-text-[18px] hplxt-rounded-[6px]";
|
|
3387
3389
|
|
|
3388
3390
|
default:
|
|
3389
|
-
return "gap-1";
|
|
3391
|
+
return "hplxt-gap-1";
|
|
3390
3392
|
}
|
|
3391
3393
|
};
|
|
3392
3394
|
|
|
3393
3395
|
var getLabelStyle$2 = function getLabelStyle(disabled) {
|
|
3394
|
-
return disabled ? "flex flex-col text-Gray-300" : "flex flex-col text-Gray-700";
|
|
3396
|
+
return disabled ? "hplxt-flex hplxt-flex-col hplxt-text-Gray-300" : "hplxt-flex hplxt-flex-col hplxt-text-Gray-700";
|
|
3395
3397
|
};
|
|
3396
3398
|
|
|
3397
3399
|
var Checkbox = function Checkbox(_a) {
|
|
@@ -3416,11 +3418,11 @@ var Checkbox = function Checkbox(_a) {
|
|
|
3416
3418
|
};
|
|
3417
3419
|
|
|
3418
3420
|
return jsxRuntime.exports.jsxs("div", __assign({
|
|
3419
|
-
className: "flex"
|
|
3421
|
+
className: "hplxt-flex"
|
|
3420
3422
|
}, {
|
|
3421
3423
|
children: [jsxRuntime.exports.jsx("div", {
|
|
3422
3424
|
"data-testid": "box",
|
|
3423
|
-
className: "".concat(disabled ? "".concat(getPaddingClassName$2(size), " text-Gray-200 bg-Gray-100 border-1 border-Gray-200") : "".concat(isChecked ? "hx_checkmark text-Primary-600 border-Primary-600 bg-Primary-50" : "bg-Gray-100 border-Gray-300", " ").concat(getPaddingClassName$2(size), " flex justify-center items-center border-1 hover:text-Primary-600 hover:border-Primary-600 hover:bg-Primary-50 active:ring-4 active:ring-Primary-100"), "}"),
|
|
3425
|
+
className: "".concat(disabled ? "".concat(getPaddingClassName$2(size), " hplxt-text-Gray-200 hplxt-bg-Gray-100 hplxt-border-1 hplxt-border-Gray-200") : "".concat(isChecked ? "hx_checkmark hplxt-text-Primary-600 hplxt-border-Primary-600 hplxt-bg-Primary-50" : "hplxt-bg-Gray-100 hplxt-border-Gray-300", " ").concat(getPaddingClassName$2(size), " hplxt-flex hplxt-justify-center hplxt-items-center hplxt-border-1 hover:hplxt-text-Primary-600 hover:hplxt-border-Primary-600 hover:hplxt-bg-Primary-50 active:hplxt-ring-4 active:hplxt-ring-Primary-100"), "}"),
|
|
3424
3426
|
onClick: disabled ? undefined : OnButtonClick,
|
|
3425
3427
|
style: {
|
|
3426
3428
|
fontWeight: 1000
|
|
@@ -3453,42 +3455,42 @@ var getSize = function getSize(size) {
|
|
|
3453
3455
|
|
|
3454
3456
|
switch (size) {
|
|
3455
3457
|
case "Display xs":
|
|
3456
|
-
s = "w-16 h-16";
|
|
3458
|
+
s = "hplxt-w-16 hplxt-h-16";
|
|
3457
3459
|
p = 32;
|
|
3458
3460
|
break;
|
|
3459
3461
|
|
|
3460
3462
|
case "Text xl":
|
|
3461
|
-
s = "w-14 h-14";
|
|
3463
|
+
s = "hplxt-w-14 hplxt-h-14";
|
|
3462
3464
|
p = 28;
|
|
3463
3465
|
break;
|
|
3464
3466
|
|
|
3465
3467
|
case "Text lg":
|
|
3466
|
-
s = "w-12 h-12";
|
|
3468
|
+
s = "hplxt-w-12 hplxt-h-12";
|
|
3467
3469
|
p = 24;
|
|
3468
3470
|
break;
|
|
3469
3471
|
|
|
3470
3472
|
case "Text md":
|
|
3471
|
-
s = "w-10 h-10";
|
|
3473
|
+
s = "hplxt-w-10 hplxt-h-10";
|
|
3472
3474
|
p = 20;
|
|
3473
3475
|
break;
|
|
3474
3476
|
|
|
3475
3477
|
case "Text sm":
|
|
3476
|
-
s = "w-8 h-8";
|
|
3478
|
+
s = "hplxt-w-8 hplxt-h-8";
|
|
3477
3479
|
p = 16;
|
|
3478
3480
|
break;
|
|
3479
3481
|
|
|
3480
3482
|
case "Text xs":
|
|
3481
|
-
s = "w-6 h-6";
|
|
3483
|
+
s = "hplxt-w-6 hplxt-h-6";
|
|
3482
3484
|
p = 12;
|
|
3483
3485
|
break;
|
|
3484
3486
|
|
|
3485
3487
|
case "Text xxs":
|
|
3486
|
-
s = "w-4 h-4";
|
|
3488
|
+
s = "hplxt-w-4 hplxt-h-4";
|
|
3487
3489
|
p = 8;
|
|
3488
3490
|
break;
|
|
3489
3491
|
|
|
3490
3492
|
default:
|
|
3491
|
-
s = "w-10 h-10";
|
|
3493
|
+
s = "hplxt-w-10 hplxt-h-10";
|
|
3492
3494
|
p = 20;
|
|
3493
3495
|
break;
|
|
3494
3496
|
}
|
|
@@ -3505,42 +3507,42 @@ var getStatusSize = function getStatusSize(size) {
|
|
|
3505
3507
|
|
|
3506
3508
|
switch (size) {
|
|
3507
3509
|
case "Display xs":
|
|
3508
|
-
s = "w-5 h-5";
|
|
3510
|
+
s = "hplxt-w-5 hplxt-h-5";
|
|
3509
3511
|
p = 10;
|
|
3510
3512
|
break;
|
|
3511
3513
|
|
|
3512
3514
|
case "Text xl":
|
|
3513
|
-
s = "w-[18px] h-[18px]";
|
|
3515
|
+
s = "hplxt-w-[18px] hplxt-h-[18px]";
|
|
3514
3516
|
p = 9;
|
|
3515
3517
|
break;
|
|
3516
3518
|
|
|
3517
3519
|
case "Text lg":
|
|
3518
|
-
s = "w-4 h-4";
|
|
3520
|
+
s = "hplxt-w-4 hplxt-h-4";
|
|
3519
3521
|
p = 8;
|
|
3520
3522
|
break;
|
|
3521
3523
|
|
|
3522
3524
|
case "Text md":
|
|
3523
|
-
s = "w-3.5 h-3.5";
|
|
3525
|
+
s = "hplxt-w-3.5 hplxt-h-3.5";
|
|
3524
3526
|
p = 7;
|
|
3525
3527
|
break;
|
|
3526
3528
|
|
|
3527
3529
|
case "Text sm":
|
|
3528
|
-
s = "w-3 h-3";
|
|
3530
|
+
s = "hplxt-w-3 hplxt-h-3";
|
|
3529
3531
|
p = 6;
|
|
3530
3532
|
break;
|
|
3531
3533
|
|
|
3532
3534
|
case "Text xs":
|
|
3533
|
-
s = "w-2.5 h-2.5";
|
|
3535
|
+
s = "hplxt-w-2.5 hplxt-h-2.5";
|
|
3534
3536
|
p = 5;
|
|
3535
3537
|
break;
|
|
3536
3538
|
|
|
3537
3539
|
case "Text xxs":
|
|
3538
|
-
s = "w-2 h-2";
|
|
3540
|
+
s = "hplxt-w-2 hplxt-h-2";
|
|
3539
3541
|
p = 4;
|
|
3540
3542
|
break;
|
|
3541
3543
|
|
|
3542
3544
|
default:
|
|
3543
|
-
s = "w-3.5 h-3.5";
|
|
3545
|
+
s = "hplxt-w-3.5 hplxt-h-3.5";
|
|
3544
3546
|
p = 7;
|
|
3545
3547
|
break;
|
|
3546
3548
|
}
|
|
@@ -3562,7 +3564,7 @@ function Status(props) {
|
|
|
3562
3564
|
if (statusIcon === "online") {
|
|
3563
3565
|
return jsxRuntime.exports.jsx("div", {
|
|
3564
3566
|
"data-testid": "status-online",
|
|
3565
|
-
className: "".concat(sizeClassName, " rounded-full bg-Success-500 border-White border-1")
|
|
3567
|
+
className: "".concat(sizeClassName, " hplxt-rounded-full hplxt-bg-Success-500 hplxt-border-White hplxt-border-1")
|
|
3566
3568
|
});
|
|
3567
3569
|
} // Offline status
|
|
3568
3570
|
|
|
@@ -3570,7 +3572,7 @@ function Status(props) {
|
|
|
3570
3572
|
if (statusIcon === "offline") {
|
|
3571
3573
|
return jsxRuntime.exports.jsx("div", {
|
|
3572
3574
|
"data-testid": "status-offline",
|
|
3573
|
-
className: "".concat(sizeClassName, " rounded-full bg-Gray-300 border-White border-1")
|
|
3575
|
+
className: "".concat(sizeClassName, " hplxt-rounded-full hplxt-bg-Gray-300 hplxt-border-White hplxt-border-1")
|
|
3574
3576
|
});
|
|
3575
3577
|
} // Healthplix company logo
|
|
3576
3578
|
|
|
@@ -3608,7 +3610,7 @@ function Icon(props) {
|
|
|
3608
3610
|
if (placeholder === true && text === false) {
|
|
3609
3611
|
return jsxRuntime.exports.jsx("div", {
|
|
3610
3612
|
"data-testid": "icon-abstract",
|
|
3611
|
-
className: "hx_person text-Primary-700"
|
|
3613
|
+
className: "hx_person hplxt-text-Primary-700"
|
|
3612
3614
|
});
|
|
3613
3615
|
} //actual user image
|
|
3614
3616
|
|
|
@@ -3621,12 +3623,12 @@ function Icon(props) {
|
|
|
3621
3623
|
|
|
3622
3624
|
return hasError ? jsxRuntime.exports.jsx("div", {
|
|
3623
3625
|
"data-testid": "icon-abstract",
|
|
3624
|
-
className: "hx_person text-Primary-700"
|
|
3626
|
+
className: "hx_person hplxt-text-Primary-700"
|
|
3625
3627
|
}) : jsxRuntime.exports.jsx("img", {
|
|
3626
3628
|
"data-testid": "icon-img",
|
|
3627
3629
|
src: url,
|
|
3628
3630
|
alt: name,
|
|
3629
|
-
className: "w-[100%] h-[100%]",
|
|
3631
|
+
className: "hplxt-w-[100%] hplxt-h-[100%]",
|
|
3630
3632
|
onError: function onError() {
|
|
3631
3633
|
return setHasError_1(true);
|
|
3632
3634
|
}
|
|
@@ -3637,12 +3639,12 @@ function Icon(props) {
|
|
|
3637
3639
|
if (name !== "" && text === true && placeholder === false) {
|
|
3638
3640
|
return jsxRuntime.exports.jsx(Typography, __assign({
|
|
3639
3641
|
"data-testid": "icon-initial",
|
|
3640
|
-
className: "uppercase",
|
|
3642
|
+
className: "hplxt-uppercase",
|
|
3641
3643
|
variant: "Medium",
|
|
3642
3644
|
type: size
|
|
3643
3645
|
}, {
|
|
3644
3646
|
children: jsxRuntime.exports.jsx("div", __assign({
|
|
3645
|
-
className: "text-Primary-600"
|
|
3647
|
+
className: "hplxt-text-Primary-600"
|
|
3646
3648
|
}, {
|
|
3647
3649
|
children: name.split(" ").map(function (n) {
|
|
3648
3650
|
return n[0];
|
|
@@ -3652,7 +3654,7 @@ function Icon(props) {
|
|
|
3652
3654
|
} else {
|
|
3653
3655
|
return jsxRuntime.exports.jsx("div", {
|
|
3654
3656
|
"data-testid": "icon-abstract",
|
|
3655
|
-
className: "hx_person text-Primary-700"
|
|
3657
|
+
className: "hx_person hplxt-text-Primary-700"
|
|
3656
3658
|
});
|
|
3657
3659
|
}
|
|
3658
3660
|
}
|
|
@@ -3660,7 +3662,7 @@ function Icon(props) {
|
|
|
3660
3662
|
var Avatar = function Avatar(props) {
|
|
3661
3663
|
var _a = props || {},
|
|
3662
3664
|
_b = _a.shape,
|
|
3663
|
-
shape = _b === void 0 ? "rounded-full" : _b,
|
|
3665
|
+
shape = _b === void 0 ? "hplxt-rounded-full" : _b,
|
|
3664
3666
|
_c = _a.name,
|
|
3665
3667
|
name = _c === void 0 ? "" : _c,
|
|
3666
3668
|
_d = _a.url,
|
|
@@ -3681,10 +3683,10 @@ var Avatar = function Avatar(props) {
|
|
|
3681
3683
|
|
|
3682
3684
|
var sizeStatusClassName = getStatusSize(size).s;
|
|
3683
3685
|
return jsxRuntime.exports.jsxs("div", __assign({
|
|
3684
|
-
className: "relative inline-block"
|
|
3686
|
+
className: "hplxt-relative hplxt-inline-block"
|
|
3685
3687
|
}, {
|
|
3686
3688
|
children: [jsxRuntime.exports.jsx("div", __assign({
|
|
3687
|
-
className: "".concat(sizeClassName, " ").concat(shape, " flex justify-center items-center bg-Primary-50 active:ring-4 active:ring-Primary-100 overflow-hidden")
|
|
3689
|
+
className: "".concat(sizeClassName, " ").concat(shape, " hplxt-flex hplxt-justify-center hplxt-items-center hplxt-bg-Primary-50 active:hplxt-ring-4 active:hplxt-ring-Primary-100 hplxt-overflow-hidden")
|
|
3688
3690
|
}, {
|
|
3689
3691
|
children: jsxRuntime.exports.jsx(Icon, {
|
|
3690
3692
|
text: text,
|
|
@@ -3694,10 +3696,10 @@ var Avatar = function Avatar(props) {
|
|
|
3694
3696
|
size: size
|
|
3695
3697
|
})
|
|
3696
3698
|
})), jsxRuntime.exports.jsx("div", __assign({
|
|
3697
|
-
className: " absolute ",
|
|
3699
|
+
className: " hplxt-absolute ",
|
|
3698
3700
|
style: {
|
|
3699
|
-
bottom: shape !== "rounded-full" ? 0 : sizePixels - 4 + sizePixels * Math.cos(ICON_ANGLE * Math.PI / 180),
|
|
3700
|
-
left: shape !== "rounded-full" ? 2 * sizePixels * Math.sin(ICON_ANGLE * Math.PI / 180) : sizePixels - 4 + sizePixels * Math.sin(ICON_ANGLE * Math.PI / 180)
|
|
3701
|
+
bottom: shape !== "hplxt-rounded-full" ? 0 : sizePixels - 4 + sizePixels * Math.cos(ICON_ANGLE * Math.PI / 180),
|
|
3702
|
+
left: shape !== "hplxt-rounded-full" ? 2 * sizePixels * Math.sin(ICON_ANGLE * Math.PI / 180) : sizePixels - 4 + sizePixels * Math.sin(ICON_ANGLE * Math.PI / 180)
|
|
3701
3703
|
}
|
|
3702
3704
|
}, {
|
|
3703
3705
|
children: jsxRuntime.exports.jsx(Status, {
|
|
@@ -3715,59 +3717,59 @@ var getColourClassName = function getColourClassName(colour) {
|
|
|
3715
3717
|
|
|
3716
3718
|
switch (colour) {
|
|
3717
3719
|
case "Gray":
|
|
3718
|
-
className = "bg-Gray-100 text-Gray-700 ";
|
|
3720
|
+
className = "hplxt-bg-Gray-100 hplxt-text-Gray-700 ";
|
|
3719
3721
|
break;
|
|
3720
3722
|
|
|
3721
3723
|
case "Primary":
|
|
3722
|
-
className = "bg-Primary-50 text-Primary-700";
|
|
3724
|
+
className = "hplxt-bg-Primary-50 hplxt-text-Primary-700";
|
|
3723
3725
|
break;
|
|
3724
3726
|
|
|
3725
3727
|
case "Error":
|
|
3726
|
-
className = "bg-Error-50 text-Error-700";
|
|
3728
|
+
className = "hplxt-bg-Error-50 hplxt-text-Error-700";
|
|
3727
3729
|
break;
|
|
3728
3730
|
|
|
3729
3731
|
case "Warning":
|
|
3730
|
-
className = "bg-Warning-50 text-Warning-700";
|
|
3732
|
+
className = "hplxt-bg-Warning-50 hplxt-text-Warning-700";
|
|
3731
3733
|
break;
|
|
3732
3734
|
|
|
3733
3735
|
case "Success":
|
|
3734
|
-
className = "bg-Success-50 text-Success-700";
|
|
3736
|
+
className = "hplxt-bg-Success-50 hplxt-text-Success-700";
|
|
3735
3737
|
break;
|
|
3736
3738
|
|
|
3737
3739
|
case "BlueGray":
|
|
3738
|
-
className = "bg-Blue_gray-50 text-Blue_gray-700";
|
|
3740
|
+
className = "hplxt-bg-Blue_gray-50 hplxt-text-Blue_gray-700";
|
|
3739
3741
|
break;
|
|
3740
3742
|
|
|
3741
3743
|
case "Default":
|
|
3742
|
-
className = "bg-Blue_light-50 text-Blue_light-700 ";
|
|
3744
|
+
className = "hplxt-bg-Blue_light-50 hplxt-text-Blue_light-700 ";
|
|
3743
3745
|
break;
|
|
3744
3746
|
|
|
3745
3747
|
case "Blue":
|
|
3746
|
-
className = "bg-Blue-50 text-Blue-700";
|
|
3748
|
+
className = "hplxt-bg-Blue-50 hplxt-text-Blue-700";
|
|
3747
3749
|
break;
|
|
3748
3750
|
|
|
3749
3751
|
case "Indigo":
|
|
3750
|
-
className = "bg-Indigo-50 text-Indigo-700";
|
|
3752
|
+
className = "hplxt-bg-Indigo-50 hplxt-text-Indigo-700";
|
|
3751
3753
|
break;
|
|
3752
3754
|
|
|
3753
3755
|
case "Purple":
|
|
3754
|
-
className = "bg-Purple-50 text-Purple-700";
|
|
3756
|
+
className = "hplxt-bg-Purple-50 hplxt-text-Purple-700";
|
|
3755
3757
|
break;
|
|
3756
3758
|
|
|
3757
3759
|
case "Pink":
|
|
3758
|
-
className = "bg-Pink-50 text-Pink-700";
|
|
3760
|
+
className = "hplxt-bg-Pink-50 hplxt-text-Pink-700";
|
|
3759
3761
|
break;
|
|
3760
3762
|
|
|
3761
3763
|
case "Rose":
|
|
3762
|
-
className = "bg-Rose-50 text-Rose-700";
|
|
3764
|
+
className = "hplxt-bg-Rose-50 hplxt-text-Rose-700";
|
|
3763
3765
|
break;
|
|
3764
3766
|
|
|
3765
3767
|
case "Orange":
|
|
3766
|
-
className = "bg-Orange-50 text-Orange-700";
|
|
3768
|
+
className = "hplxt-bg-Orange-50 hplxt-text-Orange-700";
|
|
3767
3769
|
break;
|
|
3768
3770
|
|
|
3769
3771
|
default:
|
|
3770
|
-
className = "bg-Blue_light-50 text-Blue_light-700";
|
|
3772
|
+
className = "hplxt-bg-Blue_light-50 hplxt-text-Blue_light-700";
|
|
3771
3773
|
break;
|
|
3772
3774
|
}
|
|
3773
3775
|
|
|
@@ -3778,13 +3780,13 @@ var getColourClassName1 = function getColourClassName1(colour, theme) {
|
|
|
3778
3780
|
case "Gray":
|
|
3779
3781
|
switch (theme) {
|
|
3780
3782
|
case "Dark":
|
|
3781
|
-
return "bg-Gray-50 text-Gray-700 ";
|
|
3783
|
+
return "hplxt-bg-Gray-50 hplxt-text-Gray-700 ";
|
|
3782
3784
|
|
|
3783
3785
|
case "Medium":
|
|
3784
|
-
return "bg-Gray-100 text-Gray-700";
|
|
3786
|
+
return "hplxt-bg-Gray-100 hplxt-text-Gray-700";
|
|
3785
3787
|
|
|
3786
3788
|
case "Light":
|
|
3787
|
-
return "bg-Gray-50 text-Gray-700";
|
|
3789
|
+
return "hplxt-bg-Gray-50 hplxt-text-Gray-700";
|
|
3788
3790
|
|
|
3789
3791
|
default:
|
|
3790
3792
|
return "";
|
|
@@ -3793,13 +3795,13 @@ var getColourClassName1 = function getColourClassName1(colour, theme) {
|
|
|
3793
3795
|
case "Primary":
|
|
3794
3796
|
switch (theme) {
|
|
3795
3797
|
case "Dark":
|
|
3796
|
-
return "bg-Primary-50 text-Primary-700";
|
|
3798
|
+
return "hplxt-bg-Primary-50 hplxt-text-Primary-700";
|
|
3797
3799
|
|
|
3798
3800
|
case "Medium":
|
|
3799
|
-
return "bg-Primary-100 text-Primary-700";
|
|
3801
|
+
return "hplxt-bg-Primary-100 hplxt-text-Primary-700";
|
|
3800
3802
|
|
|
3801
3803
|
case "Light":
|
|
3802
|
-
return "bg-Primary-50 text-Primary-700";
|
|
3804
|
+
return "hplxt-bg-Primary-50 hplxt-text-Primary-700";
|
|
3803
3805
|
|
|
3804
3806
|
default:
|
|
3805
3807
|
return "";
|
|
@@ -3808,13 +3810,13 @@ var getColourClassName1 = function getColourClassName1(colour, theme) {
|
|
|
3808
3810
|
case "Error":
|
|
3809
3811
|
switch (theme) {
|
|
3810
3812
|
case "Dark":
|
|
3811
|
-
return "bg-Error-50 text-Error-700";
|
|
3813
|
+
return "hplxt-bg-Error-50 hplxt-text-Error-700";
|
|
3812
3814
|
|
|
3813
3815
|
case "Medium":
|
|
3814
|
-
return "bg-Error-100 text-Error-700";
|
|
3816
|
+
return "hplxt-bg-Error-100 hplxt-text-Error-700";
|
|
3815
3817
|
|
|
3816
3818
|
case "Light":
|
|
3817
|
-
return "bg-Error-50 text-Error-700";
|
|
3819
|
+
return "hplxt-bg-Error-50 hplxt-text-Error-700";
|
|
3818
3820
|
|
|
3819
3821
|
default:
|
|
3820
3822
|
return "";
|
|
@@ -3823,13 +3825,13 @@ var getColourClassName1 = function getColourClassName1(colour, theme) {
|
|
|
3823
3825
|
case "Warning":
|
|
3824
3826
|
switch (theme) {
|
|
3825
3827
|
case "Dark":
|
|
3826
|
-
return "bg-Warning-50 text-Warning-700";
|
|
3828
|
+
return "hplxt-bg-Warning-50 hplxt-text-Warning-700";
|
|
3827
3829
|
|
|
3828
3830
|
case "Medium":
|
|
3829
|
-
return "bg-Warning-100 text-Warning-700";
|
|
3831
|
+
return "hplxt-bg-Warning-100 hplxt-text-Warning-700";
|
|
3830
3832
|
|
|
3831
3833
|
case "Light":
|
|
3832
|
-
return "bg-Warning-50 text-Warning-700";
|
|
3834
|
+
return "hplxt-bg-Warning-50 hplxt-text-Warning-700";
|
|
3833
3835
|
|
|
3834
3836
|
default:
|
|
3835
3837
|
return "";
|
|
@@ -3838,20 +3840,20 @@ var getColourClassName1 = function getColourClassName1(colour, theme) {
|
|
|
3838
3840
|
case "Success":
|
|
3839
3841
|
switch (theme) {
|
|
3840
3842
|
case "Dark":
|
|
3841
|
-
return "bg-Success-50 text-Success-700";
|
|
3843
|
+
return "hplxt-bg-Success-50 hplxt-text-Success-700";
|
|
3842
3844
|
|
|
3843
3845
|
case "Medium":
|
|
3844
|
-
return "bg-Success-100 text-Success-700";
|
|
3846
|
+
return "hplxt-bg-Success-100 hplxt-text-Success-700";
|
|
3845
3847
|
|
|
3846
3848
|
case "Light":
|
|
3847
|
-
return "bg-Success-50 text-Success-700";
|
|
3849
|
+
return "hplxt-bg-Success-50 hplxt-text-Success-700";
|
|
3848
3850
|
|
|
3849
3851
|
default:
|
|
3850
3852
|
return "";
|
|
3851
3853
|
}
|
|
3852
3854
|
|
|
3853
3855
|
default:
|
|
3854
|
-
return "bg-Primary-100 text-Primary-700";
|
|
3856
|
+
return "hplxt-bg-Primary-100 hplxt-text-Primary-700";
|
|
3855
3857
|
}
|
|
3856
3858
|
};
|
|
3857
3859
|
var getColourClassName2 = function getColourClassName2(colour, theme) {
|
|
@@ -3859,13 +3861,13 @@ var getColourClassName2 = function getColourClassName2(colour, theme) {
|
|
|
3859
3861
|
case "Gray":
|
|
3860
3862
|
switch (theme) {
|
|
3861
3863
|
case "Dark":
|
|
3862
|
-
return "bg-Gray-600 text-White";
|
|
3864
|
+
return "hplxt-bg-Gray-600 hplxt-text-White";
|
|
3863
3865
|
|
|
3864
3866
|
case "Medium":
|
|
3865
|
-
return "bg-Gray-50 text-Gray700";
|
|
3867
|
+
return "hplxt-bg-Gray-50 hplxt-text-Gray700";
|
|
3866
3868
|
|
|
3867
3869
|
case "Light":
|
|
3868
|
-
return "bg-White text-Gray700";
|
|
3870
|
+
return "hplxt-bg-White hplxt-text-Gray700";
|
|
3869
3871
|
|
|
3870
3872
|
default:
|
|
3871
3873
|
return "";
|
|
@@ -3874,13 +3876,13 @@ var getColourClassName2 = function getColourClassName2(colour, theme) {
|
|
|
3874
3876
|
case "Primary":
|
|
3875
3877
|
switch (theme) {
|
|
3876
3878
|
case "Dark":
|
|
3877
|
-
return "bg-Primary-600 text-White";
|
|
3879
|
+
return "hplxt-bg-Primary-600 hplxt-text-White";
|
|
3878
3880
|
|
|
3879
3881
|
case "Medium":
|
|
3880
|
-
return "bg-Primary-50 text-Primary-700";
|
|
3882
|
+
return "hplxt-bg-Primary-50 hplxt-text-Primary-700";
|
|
3881
3883
|
|
|
3882
3884
|
case "Light":
|
|
3883
|
-
return "bg-White text-Primary-700";
|
|
3885
|
+
return "hplxt-bg-White hplxt-text-Primary-700";
|
|
3884
3886
|
|
|
3885
3887
|
default:
|
|
3886
3888
|
return "";
|
|
@@ -3889,13 +3891,13 @@ var getColourClassName2 = function getColourClassName2(colour, theme) {
|
|
|
3889
3891
|
case "Error":
|
|
3890
3892
|
switch (theme) {
|
|
3891
3893
|
case "Dark":
|
|
3892
|
-
return "bg-Error-600 text-White";
|
|
3894
|
+
return "hplxt-bg-Error-600 hplxt-text-White";
|
|
3893
3895
|
|
|
3894
3896
|
case "Medium":
|
|
3895
|
-
return "bg-Error-50 text-Error-700";
|
|
3897
|
+
return "hplxt-bg-Error-50 hplxt-text-Error-700";
|
|
3896
3898
|
|
|
3897
3899
|
case "Light":
|
|
3898
|
-
return "bg-White text-Error-700";
|
|
3900
|
+
return "hplxt-bg-White hplxt-text-Error-700";
|
|
3899
3901
|
|
|
3900
3902
|
default:
|
|
3901
3903
|
return "";
|
|
@@ -3904,13 +3906,13 @@ var getColourClassName2 = function getColourClassName2(colour, theme) {
|
|
|
3904
3906
|
case "Warning":
|
|
3905
3907
|
switch (theme) {
|
|
3906
3908
|
case "Dark":
|
|
3907
|
-
return "bg-Warning-600 text-White";
|
|
3909
|
+
return "hplxt-bg-Warning-600 hplxt-text-White";
|
|
3908
3910
|
|
|
3909
3911
|
case "Medium":
|
|
3910
|
-
return "bg-Warning-50 text-Warning-700";
|
|
3912
|
+
return "hplxt-bg-Warning-50 hplxt-text-Warning-700";
|
|
3911
3913
|
|
|
3912
3914
|
case "Light":
|
|
3913
|
-
return "bg-White text-Warning-700";
|
|
3915
|
+
return "hplxt-bg-White hplxt-text-Warning-700";
|
|
3914
3916
|
|
|
3915
3917
|
default:
|
|
3916
3918
|
return "";
|
|
@@ -3919,20 +3921,20 @@ var getColourClassName2 = function getColourClassName2(colour, theme) {
|
|
|
3919
3921
|
case "Success":
|
|
3920
3922
|
switch (theme) {
|
|
3921
3923
|
case "Dark":
|
|
3922
|
-
return "bg-Success-600 text-White";
|
|
3924
|
+
return "hplxt-bg-Success-600 hplxt-text-White";
|
|
3923
3925
|
|
|
3924
3926
|
case "Medium":
|
|
3925
|
-
return "bg-Success-50 text-Success-700";
|
|
3927
|
+
return "hplxt-bg-Success-50 hplxt-text-Success-700";
|
|
3926
3928
|
|
|
3927
3929
|
case "Light":
|
|
3928
|
-
return "bg-White text-Success-700";
|
|
3930
|
+
return "hplxt-bg-White hplxt-text-Success-700";
|
|
3929
3931
|
|
|
3930
3932
|
default:
|
|
3931
3933
|
return "";
|
|
3932
3934
|
}
|
|
3933
3935
|
|
|
3934
3936
|
default:
|
|
3935
|
-
return "bg-Primary-50 text-Primary-700";
|
|
3937
|
+
return "hplxt-bg-Primary-50 hplxt-text-Primary-700";
|
|
3936
3938
|
}
|
|
3937
3939
|
};
|
|
3938
3940
|
|
|
@@ -3941,23 +3943,23 @@ var getColourClassName2 = function getColourClassName2(colour, theme) {
|
|
|
3941
3943
|
// lg-Large,
|
|
3942
3944
|
|
|
3943
3945
|
var getPaddingClassName$1 = function getPaddingClassName(size) {
|
|
3944
|
-
var className = "flex flex-row px-2 rounded-full justify-content-center items-center ";
|
|
3946
|
+
var className = "hplxt-flex hplxt-flex-row hplxt-px-2 hplxt-rounded-full hplxt-justify-content-center hplxt-items-center ";
|
|
3945
3947
|
|
|
3946
3948
|
switch (size) {
|
|
3947
3949
|
case "sm":
|
|
3948
|
-
className = className + "h-[22px]";
|
|
3950
|
+
className = className + "hplxt-h-[22px]";
|
|
3949
3951
|
break;
|
|
3950
3952
|
|
|
3951
3953
|
case "md":
|
|
3952
|
-
className = className + "h-6";
|
|
3954
|
+
className = className + "hplxt-h-6";
|
|
3953
3955
|
break;
|
|
3954
3956
|
|
|
3955
3957
|
case "lg":
|
|
3956
|
-
className = className + "h-7 ";
|
|
3958
|
+
className = className + "hplxt-h-7 ";
|
|
3957
3959
|
break;
|
|
3958
3960
|
|
|
3959
3961
|
default:
|
|
3960
|
-
className = className + "h-6 ";
|
|
3962
|
+
className = className + "hplxt-h-6 ";
|
|
3961
3963
|
break;
|
|
3962
3964
|
}
|
|
3963
3965
|
|
|
@@ -4011,7 +4013,7 @@ var Badge = function Badge(_a) {
|
|
|
4011
4013
|
children: [jsxRuntime.exports.jsx("div", {
|
|
4012
4014
|
children: iconFile === "avatar" && icon === "Only" && jsxRuntime.exports.jsx("div", __assign({
|
|
4013
4015
|
"data-testid": "badge-avatar",
|
|
4014
|
-
className: "flex rounded-full my-auto mx-auto px-0.5 relative items-center "
|
|
4016
|
+
className: "hplxt-flex hplxt-rounded-full hplxt-my-auto hplxt-mx-auto hplxt-px-0.5 hplxt-relative hplxt-items-center "
|
|
4015
4017
|
}, {
|
|
4016
4018
|
children: jsxRuntime.exports.jsx(Avatar, {
|
|
4017
4019
|
url: "https://images.unsplash.com/photo-1438761681033-6461ffad8d80",
|
|
@@ -4075,10 +4077,10 @@ var DropdownField = function DropdownField(_a) {
|
|
|
4075
4077
|
|
|
4076
4078
|
return jsxRuntime.exports.jsxs("div", {
|
|
4077
4079
|
children: [jsxRuntime.exports.jsx("div", __assign({
|
|
4078
|
-
className: "flex justify-between"
|
|
4080
|
+
className: "hplxt-flex hplxt-justify-between"
|
|
4079
4081
|
}, {
|
|
4080
4082
|
children: Boolean(label) && jsxRuntime.exports.jsx("div", __assign({
|
|
4081
|
-
className: "text-Gray-700 mb-1"
|
|
4083
|
+
className: "hplxt-text-Gray-700 hplxt-mb-1"
|
|
4082
4084
|
}, {
|
|
4083
4085
|
children: jsxRuntime.exports.jsx(Typography, __assign({
|
|
4084
4086
|
type: "Text sm",
|
|
@@ -4088,14 +4090,14 @@ var DropdownField = function DropdownField(_a) {
|
|
|
4088
4090
|
}))
|
|
4089
4091
|
}))
|
|
4090
4092
|
})), jsxRuntime.exports.jsxs("div", __assign({
|
|
4091
|
-
className: "relative block"
|
|
4093
|
+
className: "hplxt-relative hplxt-block"
|
|
4092
4094
|
}, {
|
|
4093
4095
|
children: [jsxRuntime.exports.jsxs("div", __assign({
|
|
4094
4096
|
onClick: handleFieldClick,
|
|
4095
|
-
className: "flex-1 flex items-center pl-2 placeholder:text-Gray-500 justify-between border-1 ".concat(errorMsg ? "border-Error-300" : "border-Gray-300", " shadow-xs rounded-lg h-10 ").concat(disabled ? "bg-Gray-50 cursor-not-allowed" : "bg-White cursor-pointer ".concat(errorMsg ? "hover:shadow-xs-error" : "".concat(openDropdown ? "border-Primary-300 shadow-xs-primary" : "", " hover:border-Primary-300 hover:shadow-xs-primary")))
|
|
4097
|
+
className: "hplxt-flex-1 hplxt-flex hplxt-items-center hplxt-pl-2 placeholder:hplxt-text-Gray-500 hplxt-justify-between hplxt-border-1 ".concat(errorMsg ? "hplxt-border-Error-300" : "hplxt-border-Gray-300", " hplxt-shadow-xs hplxt-rounded-lg hplxt-h-10 ").concat(disabled ? "hplxt-bg-Gray-50 hplxt-cursor-not-allowed" : "hplxt-bg-White hplxt-cursor-pointer ".concat(errorMsg ? "hover:hplxt-shadow-xs-error" : "".concat(openDropdown ? "hplxt-border-Primary-300 hplxt-shadow-xs-primary" : "", " hover:hplxt-border-Primary-300 hover:hplxt-shadow-xs-primary")))
|
|
4096
4098
|
}, {
|
|
4097
4099
|
children: [!!value ? jsxRuntime.exports.jsx("div", __assign({
|
|
4098
|
-
className: "text-Gray-900"
|
|
4100
|
+
className: "hplxt-text-Gray-900"
|
|
4099
4101
|
}, {
|
|
4100
4102
|
children: jsxRuntime.exports.jsx(Typography, __assign({
|
|
4101
4103
|
"data-testid": "dropdown-selected-value",
|
|
@@ -4105,7 +4107,7 @@ var DropdownField = function DropdownField(_a) {
|
|
|
4105
4107
|
children: value["label"] || value["value"]
|
|
4106
4108
|
}))
|
|
4107
4109
|
})) : jsxRuntime.exports.jsx("div", __assign({
|
|
4108
|
-
className: "text-Gray-500"
|
|
4110
|
+
className: "hplxt-text-Gray-500"
|
|
4109
4111
|
}, {
|
|
4110
4112
|
children: jsxRuntime.exports.jsx(Typography, __assign({
|
|
4111
4113
|
variant: "Regular",
|
|
@@ -4114,7 +4116,7 @@ var DropdownField = function DropdownField(_a) {
|
|
|
4114
4116
|
children: placeholder
|
|
4115
4117
|
}))
|
|
4116
4118
|
})), Boolean(end_icon) && jsxRuntime.exports.jsx("div", __assign({
|
|
4117
|
-
className: "text-Gray-500 flex items-center mr-2 ease-linear duration-300 ".concat(end_icon === "hx_down" && openDropdown && "rotate-180"),
|
|
4119
|
+
className: "hplxt-text-Gray-500 hplxt-flex hplxt-items-center hplxt-mr-2 hplxt-ease-linear hplxt-duration-300 ".concat(end_icon === "hx_down" && openDropdown && "hplxt-rotate-180"),
|
|
4118
4120
|
"data-testid": "dropdown-selected-icon"
|
|
4119
4121
|
}, {
|
|
4120
4122
|
children: jsxRuntime.exports.jsx("span", {
|
|
@@ -4122,7 +4124,7 @@ var DropdownField = function DropdownField(_a) {
|
|
|
4122
4124
|
})
|
|
4123
4125
|
}))]
|
|
4124
4126
|
})), jsxRuntime.exports.jsx("div", __assign({
|
|
4125
|
-
className: "absolute mt-1 left-0 right-0 min-w-max rounded-lg bg-White overflow-y-scroll shadow-md z-10 max-h-80 ".concat(openDropdown ? "block" : "hidden")
|
|
4127
|
+
className: "hplxt-absolute hplxt-mt-1 hplxt-left-0 hplxt-right-0 hplxt-min-w-max hplxt-rounded-lg hplxt-bg-White hplxt-overflow-y-scroll hplxt-shadow-md hplxt-z-10 hplxt-max-h-80 ".concat(openDropdown ? "hplxt-block" : "hplxt-hidden")
|
|
4126
4128
|
}, {
|
|
4127
4129
|
children: (options === null || options === void 0 ? void 0 : options.constructor) === Array && options.length ? options.map(function (option) {
|
|
4128
4130
|
var _a = option || {},
|
|
@@ -4139,10 +4141,10 @@ var DropdownField = function DropdownField(_a) {
|
|
|
4139
4141
|
}
|
|
4140
4142
|
}));
|
|
4141
4143
|
}) : jsxRuntime.exports.jsx("div", __assign({
|
|
4142
|
-
className: "h-10 flex items-center px-2"
|
|
4144
|
+
className: "hplxt-h-10 hplxt-flex hplxt-items-center hplxt-px-2"
|
|
4143
4145
|
}, {
|
|
4144
4146
|
children: jsxRuntime.exports.jsx("div", __assign({
|
|
4145
|
-
className: "flex-1 text-Gray-700"
|
|
4147
|
+
className: "hplxt-flex-1 hplxt-text-Gray-700"
|
|
4146
4148
|
}, {
|
|
4147
4149
|
children: jsxRuntime.exports.jsx(Typography, __assign({
|
|
4148
4150
|
variant: "Regular",
|
|
@@ -4154,7 +4156,7 @@ var DropdownField = function DropdownField(_a) {
|
|
|
4154
4156
|
}))
|
|
4155
4157
|
}))]
|
|
4156
4158
|
})), (Boolean(hint_text) || Boolean(errorMsg)) && jsxRuntime.exports.jsx("div", __assign({
|
|
4157
|
-
className: "".concat(errorMsg ? "text-Error-500" : "text-Gray-500 mt-1")
|
|
4159
|
+
className: "".concat(errorMsg ? "hplxt-text-Error-500" : "hplxt-text-Gray-500 hplxt-mt-1")
|
|
4158
4160
|
}, {
|
|
4159
4161
|
children: jsxRuntime.exports.jsx(Typography, __assign({
|
|
4160
4162
|
type: "Text sm",
|
|
@@ -4178,14 +4180,14 @@ var Card = function Card(_a) {
|
|
|
4178
4180
|
};
|
|
4179
4181
|
|
|
4180
4182
|
return jsxRuntime.exports.jsxs("div", __assign({
|
|
4181
|
-
className: "relative flex flex-col h-100 "
|
|
4183
|
+
className: "hplxt-relative hplxt-flex hplxt-flex-col hplxt-h-100 "
|
|
4182
4184
|
}, {
|
|
4183
4185
|
children: [jsxRuntime.exports.jsx("div", __assign({
|
|
4184
|
-
className: "w-full flex p-4 items-center text-center bg-Gray-100 h-20 absolute top-0"
|
|
4186
|
+
className: "hplxt-w-full hplxt-flex hplxt-p-4 hplxt-items-center hplxt-text-center hplxt-bg-Gray-100 hplxt-h-20 hplxt-absolute hplxt-top-0"
|
|
4185
4187
|
}, {
|
|
4186
4188
|
children: title
|
|
4187
4189
|
})), jsxRuntime.exports.jsx("div", __assign({
|
|
4188
|
-
className: "overflow-y-scroll h-80 my-20"
|
|
4190
|
+
className: "hplxt-overflow-y-scroll hplxt-h-80 hplxt-my-20"
|
|
4189
4191
|
}, {
|
|
4190
4192
|
children: jsxRuntime.exports.jsxs("div", {
|
|
4191
4193
|
children: [jsxRuntime.exports.jsx("h3", {
|
|
@@ -4223,7 +4225,7 @@ var Card = function Card(_a) {
|
|
|
4223
4225
|
})]
|
|
4224
4226
|
})
|
|
4225
4227
|
})), jsxRuntime.exports.jsxs("div", __assign({
|
|
4226
|
-
className: "w-full flex p-4 items-center text-center border-t border-Gray-200 h-20 absolute bottom-0"
|
|
4228
|
+
className: "hplxt-w-full hplxt-flex hplxt-p-4 hplxt-items-center hplxt-text-center hplxt-border-t hplxt-border-Gray-200 hplxt-h-20 hplxt-absolute hplxt-bottom-0"
|
|
4227
4229
|
}, {
|
|
4228
4230
|
children: ["footer", jsxRuntime.exports.jsx(Button, {
|
|
4229
4231
|
hierarchy: "Primary",
|
|
@@ -4239,19 +4241,19 @@ var Card = function Card(_a) {
|
|
|
4239
4241
|
var getPostionClassName = function getPostionClassName(directionClass) {
|
|
4240
4242
|
switch (directionClass) {
|
|
4241
4243
|
case "lefttrue":
|
|
4242
|
-
return "w-72 -mr-72";
|
|
4244
|
+
return "hplxt-w-72 -hplxt-mr-72";
|
|
4243
4245
|
|
|
4244
4246
|
case "leftfalse":
|
|
4245
|
-
return "w-16 -mr-16";
|
|
4247
|
+
return "hplxt-w-16 -hplxt-mr-16";
|
|
4246
4248
|
|
|
4247
4249
|
case "righttrue":
|
|
4248
|
-
return "w-72";
|
|
4250
|
+
return "hplxt-w-72";
|
|
4249
4251
|
|
|
4250
4252
|
case "rightfalse":
|
|
4251
|
-
return "w-16";
|
|
4253
|
+
return "hplxt-w-16";
|
|
4252
4254
|
|
|
4253
4255
|
default:
|
|
4254
|
-
return "w-72 -ml-72 left-full";
|
|
4256
|
+
return "hplxt-w-72 -hplxt-ml-72 hplxt-left-full";
|
|
4255
4257
|
}
|
|
4256
4258
|
};
|
|
4257
4259
|
|
|
@@ -4303,10 +4305,10 @@ var CollapsibleCard = function CollapsibleCard(props) {
|
|
|
4303
4305
|
};
|
|
4304
4306
|
|
|
4305
4307
|
var getIconClass = function getIconClass() {
|
|
4306
|
-
var clsName = "mt-2 absolute cursor-pointer items-center text-center right-2 top-0";
|
|
4308
|
+
var clsName = "hplxt-mt-2 hplxt-absolute hplxt-cursor-pointer hplxt-items-center hplxt-text-center hplxt-right-2 hplxt-top-0";
|
|
4307
4309
|
|
|
4308
4310
|
if (disabled) {
|
|
4309
|
-
clsName += " hidden";
|
|
4311
|
+
clsName += " hplxt-hidden";
|
|
4310
4312
|
}
|
|
4311
4313
|
|
|
4312
4314
|
if (direction === "right") {
|
|
@@ -4316,7 +4318,7 @@ var CollapsibleCard = function CollapsibleCard(props) {
|
|
|
4316
4318
|
}
|
|
4317
4319
|
|
|
4318
4320
|
if (!active) {
|
|
4319
|
-
clsName += " rotate-180 overflow-hidden";
|
|
4321
|
+
clsName += " hplxt-rotate-180 hplxt-overflow-hidden";
|
|
4320
4322
|
}
|
|
4321
4323
|
|
|
4322
4324
|
return clsName;
|
|
@@ -4324,10 +4326,10 @@ var CollapsibleCard = function CollapsibleCard(props) {
|
|
|
4324
4326
|
|
|
4325
4327
|
if (direction === "up" || direction === "down") {
|
|
4326
4328
|
return jsxRuntime.exports.jsxs("div", __assign({
|
|
4327
|
-
className: "flex m-5 ".concat(direction === "down" ? "flex-col" : "flex-col-reverse")
|
|
4329
|
+
className: "hplxt-flex hplxt-m-5 ".concat(direction === "down" ? "hplxt-flex-col" : "hplxt-flex-col-reverse")
|
|
4328
4330
|
}, {
|
|
4329
4331
|
children: [jsxRuntime.exports.jsxs("div", __assign({
|
|
4330
|
-
className: "flex flex-1 flex-row items-center"
|
|
4332
|
+
className: "hplxt-flex hplxt-flex-1 hplxt-flex-row hplxt-items-center"
|
|
4331
4333
|
}, {
|
|
4332
4334
|
children: [jsxRuntime.exports.jsx(Tooltip, __assign({
|
|
4333
4335
|
variant: "Top",
|
|
@@ -4349,14 +4351,14 @@ var CollapsibleCard = function CollapsibleCard(props) {
|
|
|
4349
4351
|
onAnimationEnd: function onAnimationEnd() {
|
|
4350
4352
|
console.log("onAnimationEnd called");
|
|
4351
4353
|
},
|
|
4352
|
-
className: "".concat(active ? "max-h-[1000px] overflow-visible" : "max-h-0 overflow-hidden", " ").concat(active ? "p-5" : "p-0", " transition-all duration-500 ease-in-out mt-5 ").concat(getWidth(width), " ").concat(getHeight(height), " text-ellipsis")
|
|
4354
|
+
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")
|
|
4353
4355
|
}, {
|
|
4354
4356
|
children: [header && jsxRuntime.exports.jsx("div", __assign({
|
|
4355
|
-
className: "flex flex-1 m-1 p-4"
|
|
4357
|
+
className: "hplxt-flex hplxt-flex-1 hplxt-m-1 hplxt-p-4"
|
|
4356
4358
|
}, {
|
|
4357
4359
|
children: header
|
|
4358
4360
|
})), children, footer && jsxRuntime.exports.jsx("div", __assign({
|
|
4359
|
-
className: "flex flex-1 m-1 p-4"
|
|
4361
|
+
className: "hplxt-flex hplxt-flex-1 hplxt-m-1 hplxt-p-4"
|
|
4360
4362
|
}, {
|
|
4361
4363
|
children: footer
|
|
4362
4364
|
}))]
|
|
@@ -4364,17 +4366,17 @@ var CollapsibleCard = function CollapsibleCard(props) {
|
|
|
4364
4366
|
}));
|
|
4365
4367
|
} else {
|
|
4366
4368
|
return jsxRuntime.exports.jsx("div", __assign({
|
|
4367
|
-
className: "flex"
|
|
4369
|
+
className: "hplxt-flex"
|
|
4368
4370
|
}, {
|
|
4369
4371
|
children: jsxRuntime.exports.jsxs("div", __assign({
|
|
4370
|
-
className: "".concat(getPostionClassName(direction + active), " duration-300 bg-Gray-100 relative")
|
|
4372
|
+
className: "".concat(getPostionClassName(direction + active), " hplxt-duration-300 hplxt-bg-Gray-100 hplxt-relative")
|
|
4371
4373
|
}, {
|
|
4372
4374
|
children: [jsxRuntime.exports.jsx("div", {
|
|
4373
4375
|
"data-testid": "CollapseIcon",
|
|
4374
|
-
// className={`${disabled ? "hidden" : ""} ${
|
|
4376
|
+
// className={`${disabled ? "hplxt-hidden" : ""} ${
|
|
4375
4377
|
// direction === "right" ? "hx_right" : "hx_left"
|
|
4376
|
-
// } mt-2 absolute cursor-pointer items-center text-center right-[10px] top-0 ${
|
|
4377
|
-
// !active && "rotate-180 overflow-hidden"
|
|
4378
|
+
// } hplxt-mt-2 hplxt-absolute hplxt-cursor-pointer hplxt-items-center hplxt-text-center hplxt-right-[10px] hplxt-top-0 ${
|
|
4379
|
+
// !active && "hplxt-rotate-180 hplxt-overflow-hidden"
|
|
4378
4380
|
// }`}
|
|
4379
4381
|
className: getIconClass(),
|
|
4380
4382
|
onClick: function onClick() {
|
|
@@ -4386,11 +4388,11 @@ var CollapsibleCard = function CollapsibleCard(props) {
|
|
|
4386
4388
|
}
|
|
4387
4389
|
}), active && jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, {
|
|
4388
4390
|
children: [jsxRuntime.exports.jsx("div", __assign({
|
|
4389
|
-
className: "flex flex-1 m-1 p-4"
|
|
4391
|
+
className: "hplxt-flex hplxt-flex-1 hplxt-m-1 hplxt-p-4"
|
|
4390
4392
|
}, {
|
|
4391
4393
|
children: header
|
|
4392
4394
|
})), children, jsxRuntime.exports.jsx("div", __assign({
|
|
4393
|
-
className: "flex flex-1 m-1 p-4"
|
|
4395
|
+
className: "hplxt-flex hplxt-flex-1 hplxt-m-1 hplxt-p-4"
|
|
4394
4396
|
}, {
|
|
4395
4397
|
children: footer
|
|
4396
4398
|
}))]
|
|
@@ -4416,30 +4418,30 @@ var getSizeClassName$2 = function getSizeClassName(size) {
|
|
|
4416
4418
|
var getPaddingClassName = function getPaddingClassName(size, disabled) {
|
|
4417
4419
|
switch (size) {
|
|
4418
4420
|
case "sm":
|
|
4419
|
-
return disabled ? "flex w-4 h-4 bg-white border border-Gray-300 border-Gray-300 rounded-full cursor-pointer focus:outline-none bg-Gray-200 p-2 " : "flex w-4 h-4 bg-white border border-Gray-300 hover:border-Primary-600 peer-checked:border-Primary-600 rounded-full cursor-pointer focus:outline-none hover:bg-Primary-50 peer-checked:bg-Primary-600 p-2 peer-checked:ring-2 ring-Primary-300 peer-checked:border-transparent ";
|
|
4421
|
+
return disabled ? "hplxt-flex hplxt-w-4 hplxt-h-4 hplxt-bg-white hplxt-border hplxt-border-Gray-300 hplxt-border-Gray-300 hplxt-rounded-full hplxt-cursor-pointer focus:hplxt-outline-none hplxt-bg-Gray-200 hplxt-p-2 " : "hplxt-flex hplxt-w-4 hplxt-h-4 hplxt-bg-white hplxt-border hplxt-border-Gray-300 hover:hplxt-border-Primary-600 peer-checked:hplxt-border-Primary-600 hplxt-rounded-full hplxt-cursor-pointer focus:hplxt-outline-none hover:hplxt-bg-Primary-50 peer-checked:hplxt-bg-Primary-600 hplxt-p-2 peer-checked:hplxt-ring-2 hplxt-ring-Primary-300 peer-checked:hplxt-border-transparent ";
|
|
4420
4422
|
|
|
4421
4423
|
case "md":
|
|
4422
|
-
return disabled ? "flex w-5 h-5 bg-white border border-Gray-300 border-Gray-300 rounded-full cursor-pointer focus:outline-none bg-Gray-200 p-2 " : "flex w-5 h-5 bg-white border border-Gray-300 hover:border-Primary-600 peer-checked:border-Primary-600 rounded-full cursor-pointer focus:outline-none hover:bg-Primary-50 peer-checked:bg-Primary-600 p-2 peer-checked:ring-2 peer-checked:border-transparent ";
|
|
4424
|
+
return disabled ? "hplxt-flex hplxt-w-5 hplxt-h-5 hplxt-bg-white hplxt-border hplxt-border-Gray-300 hplxt-border-Gray-300 hplxt-rounded-full hplxt-cursor-pointer focus:hplxt-outline-none hplxt-bg-Gray-200 hplxt-p-2 " : "hplxt-flex hplxt-w-5 hplxt-h-5 hplxt-bg-white hplxt-border hplxt-border-Gray-300 hover:hplxt-border-Primary-600 peer-checked:hplxt-border-Primary-600 hplxt-rounded-full hplxt-cursor-pointer focus:hplxt-outline-none hover:hplxt-bg-Primary-50 peer-checked:hplxt-bg-Primary-600 hplxt-p-2 peer-checked:hplxt-ring-2 peer-checked:hplxt-border-transparent ";
|
|
4423
4425
|
|
|
4424
4426
|
default:
|
|
4425
|
-
return "flex w-4 h-4 bg-white border border-Gray-300 hover:border-Primary-600 peer-checked:border-Primary-600 rounded-full cursor-pointer focus:outline-none hover:bg-Primary-50 peer-checked:bg-Primary-600 p-2 peer-checked:ring-2 ring-Primary-300 peer-checked:border-transparent ";
|
|
4427
|
+
return "hplxt-flex hplxt-w-4 hplxt-h-4 hplxt-bg-white hplxt-border hplxt-border-Gray-300 hover:hplxt-border-Primary-600 peer-checked:hplxt-border-Primary-600 hplxt-rounded-full hplxt-cursor-pointer focus:hplxt-outline-none hover:hplxt-bg-Primary-50 peer-checked:hplxt-bg-Primary-600 hplxt-p-2 peer-checked:hplxt-ring-2 hplxt-ring-Primary-300 peer-checked:hplxt-border-transparent ";
|
|
4426
4428
|
}
|
|
4427
4429
|
};
|
|
4428
4430
|
|
|
4429
4431
|
var getLabelStyle$1 = function getLabelStyle(disabled) {
|
|
4430
|
-
return disabled ? "flex flex-col text-Gray-300" : "flex flex-col text-Gray-700";
|
|
4432
|
+
return disabled ? "hplxt-flex hplxt-flex-col hplxt-text-Gray-300" : "hplxt-flex hplxt-flex-col hplxt-text-Gray-700";
|
|
4431
4433
|
};
|
|
4432
4434
|
|
|
4433
4435
|
var getIconTypeClassName = function getIconTypeClassName(iconfile, size, disabled) {
|
|
4434
4436
|
switch (iconfile) {
|
|
4435
4437
|
case "dot":
|
|
4436
|
-
return size === "sm" ? disabled ? "ring-4 p-1 ring-Gray-50 bg-Gray-300 -ml-[13px] mt-[4.95px] w-2 h-2 rounded-full peer-checked:block" : "hidden ring-4 p-1 ring-Primary-50 -ml-[13px] mt-[4.95px] w-2 h-2 rounded-full peer-checked:block" : disabled ? "ring-4 p-1 ring-Gray-50 bg-Gray-300 -ml-[14px] mt-[6px] w-2 h-2 rounded-full peer-checked:block" : "hidden ring-4 p-1 ring-Primary-50 -ml-[14px] mt-[6px] w-2 h-2 rounded-full peer-checked:block";
|
|
4438
|
+
return size === "sm" ? disabled ? "hplxt-ring-4 hplxt-p-1 hplxt-ring-Gray-50 hplxt-bg-Gray-300 -hplxt-ml-[13px] hplxt-mt-[4.95px] hplxt-w-2 hplxt-h-2 hplxt-rounded-full peer-checked:hplxt-block" : "hplxt-hidden hplxt-ring-4 hplxt-p-1 hplxt-ring-Primary-50 -hplxt-ml-[13px] hplxt-mt-[4.95px] hplxt-w-2 hplxt-h-2 hplxt-rounded-full peer-checked:hplxt-block" : disabled ? "hplxt-ring-4 hplxt-p-1 hplxt-ring-Gray-50 hplxt-bg-Gray-300 -hplxt-ml-[14px] hplxt-mt-[6px] hplxt-w-2 hplxt-h-2 hplxt-rounded-full peer-checked:hplxt-block" : "hplxt-hidden hplxt-ring-4 hplxt-p-1 hplxt-ring-Primary-50 -hplxt-ml-[14px] hplxt-mt-[6px] hplxt-w-2 hplxt-h-2 hplxt-rounded-full peer-checked:hplxt-block";
|
|
4437
4439
|
|
|
4438
4440
|
case "checkmark":
|
|
4439
|
-
return size === "sm" ? disabled ? "hx_checkmark text-[12px] -ml-[17px] mt-[3px] text-White peer-checked:block " : "hidden hx_checkmark text-[12px] -ml-[17px] mt-[3px] text-White peer-checked:block" : disabled ? "hx_checkmark -ml-[21px] mt-[2px] text-White peer-checked:block " : "hidden hx_checkmark -ml-[21px] mt-[2px] text-White peer-checked:block";
|
|
4441
|
+
return size === "sm" ? disabled ? "hx_checkmark hplxt-text-[12px] -hplxt-ml-[17px] hplxt-mt-[3px] hplxt-text-White peer-checked:hplxt-block " : "hplxt-hidden hx_checkmark hplxt-text-[12px] -hplxt-ml-[17px] hplxt-mt-[3px] hplxt-text-White peer-checked:hplxt-block" : disabled ? "hx_checkmark -hplxt-ml-[21px] hplxt-mt-[2px] hplxt-text-White peer-checked:hplxt-block " : "hplxt-hidden hx_checkmark -hplxt-ml-[21px] hplxt-mt-[2px] hplxt-text-White peer-checked:hplxt-block";
|
|
4440
4442
|
|
|
4441
4443
|
default:
|
|
4442
|
-
return size === "sm" ? "hidden ring-4 p-1 ring-Primary-50 -ml-[13px] mt-[4.95px] w-2 h-2 rounded-full peer-checked:block" : "hidden ring-4 p-1 ring-Primary-50 -ml-[14px] mt-[6px] w-2 h-2 rounded-full peer-checked:block";
|
|
4444
|
+
return size === "sm" ? "hplxt-hidden hplxt-ring-4 hplxt-p-1 hplxt-ring-Primary-50 -hplxt-ml-[13px] hplxt-mt-[4.95px] hplxt-w-2 hplxt-h-2 hplxt-rounded-full peer-checked:hplxt-block" : "hplxt-hidden hplxt-ring-4 hplxt-p-1 hplxt-ring-Primary-50 -hplxt-ml-[14px] hplxt-mt-[6px] hplxt-w-2 hplxt-h-2 hplxt-rounded-full peer-checked:hplxt-block";
|
|
4443
4445
|
}
|
|
4444
4446
|
};
|
|
4445
4447
|
|
|
@@ -4454,10 +4456,10 @@ var RadioBtn = function RadioBtn(_a) {
|
|
|
4454
4456
|
className: "radiobutton"
|
|
4455
4457
|
}, {
|
|
4456
4458
|
children: jsxRuntime.exports.jsxs("div", __assign({
|
|
4457
|
-
className: "p-4 flex flex-row flex-1 "
|
|
4459
|
+
className: "hplxt-p-4 hplxt-flex hplxt-flex-row hplxt-flex-1 "
|
|
4458
4460
|
}, {
|
|
4459
4461
|
children: [jsxRuntime.exports.jsx("input", {
|
|
4460
|
-
className: "sr-only peer border-0 focus:border-0",
|
|
4462
|
+
className: "hplxt-sr-only hplxt-peer hplxt-border-0 focus:hplxt-border-0",
|
|
4461
4463
|
type: "radio",
|
|
4462
4464
|
value: "first",
|
|
4463
4465
|
name: "radioBtn",
|
|
@@ -4470,7 +4472,7 @@ var RadioBtn = function RadioBtn(_a) {
|
|
|
4470
4472
|
}), jsxRuntime.exports.jsx("div", {
|
|
4471
4473
|
className: "".concat(getIconTypeClassName(iconfile, size, disabled))
|
|
4472
4474
|
}), jsxRuntime.exports.jsxs("label", __assign({
|
|
4473
|
-
className: " mx-4 ".concat(getLabelStyle$1(disabled), " "),
|
|
4475
|
+
className: " hplxt-mx-4 ".concat(getLabelStyle$1(disabled), " "),
|
|
4474
4476
|
htmlFor: id
|
|
4475
4477
|
}, {
|
|
4476
4478
|
children: [jsxRuntime.exports.jsx(Typography, __assign({
|
|
@@ -4505,31 +4507,31 @@ var getSizeClassName$1 = function getSizeClassName(size) {
|
|
|
4505
4507
|
var getToggleSizeClassName = function getToggleSizeClassName(size, disabled) {
|
|
4506
4508
|
switch (size) {
|
|
4507
4509
|
case "sm":
|
|
4508
|
-
return disabled ? "bg-Gray-200 md:w-9 md:h-5 w-5 h-4" : "md:w-9 md:h-5 w-5 h-4";
|
|
4510
|
+
return disabled ? "hplxt-bg-Gray-200 md:hplxt-w-9 md:hplxt-h-5 hplxt-w-5 hplxt-h-4" : "md:hplxt-w-9 md:hplxt-h-5 hplxt-w-5 hplxt-h-4";
|
|
4509
4511
|
|
|
4510
4512
|
case "md":
|
|
4511
|
-
return disabled ? "md:w-11 md:h-6 w-6 h-5 bg-Gray-200" : "md:w-11 md:h-6 w-6 h-5";
|
|
4513
|
+
return disabled ? "md:hplxt-w-11 md:hplxt-h-6 hplxt-w-6 hplxt-h-5 hplxt-bg-Gray-200" : "md:hplxt-w-11 md:hplxt-h-6 hplxt-w-6 hplxt-h-5";
|
|
4512
4514
|
|
|
4513
4515
|
default:
|
|
4514
|
-
return "md:w-9 md:h-5 w-5 h-4";
|
|
4516
|
+
return "md:hplxt-w-9 md:hplxt-h-5 hplxt-w-5 hplxt-h-4";
|
|
4515
4517
|
}
|
|
4516
4518
|
};
|
|
4517
4519
|
|
|
4518
4520
|
var getThemeClassName = function getThemeClassName(theme, toggled, disabled) {
|
|
4519
4521
|
switch (theme) {
|
|
4520
4522
|
case "Dark":
|
|
4521
|
-
return disabled ? toggled ? "bg-Gray-200" : "bg-Gray-200" : toggled ? "bg-Primary-600" : "bg-Gray-200";
|
|
4523
|
+
return disabled ? toggled ? "hplxt-bg-Gray-200" : "hplxt-bg-Gray-200" : toggled ? "hplxt-bg-Primary-600" : "hplxt-bg-Gray-200";
|
|
4522
4524
|
|
|
4523
4525
|
case "Light":
|
|
4524
|
-
return disabled ? toggled ? "bg-Gray-200" : "bg-Gray-50" : toggled ? "bg-Primary-200" : "bg-Primary-50";
|
|
4526
|
+
return disabled ? toggled ? "hplxt-bg-Gray-200" : "hplxt-bg-Gray-50" : toggled ? "hplxt-bg-Primary-200" : "hplxt-bg-Primary-50";
|
|
4525
4527
|
|
|
4526
4528
|
default:
|
|
4527
|
-
return toggled ? "bg-Primary-600" : "bg-Gray-200";
|
|
4529
|
+
return toggled ? "hplxt-bg-Primary-600" : "hplxt-bg-Gray-200";
|
|
4528
4530
|
}
|
|
4529
4531
|
};
|
|
4530
4532
|
|
|
4531
4533
|
var getLabelStyle = function getLabelStyle(disabled) {
|
|
4532
|
-
return disabled ? "flex flex-col text-Gray-300 " : "flex flex-col text-Gray-700";
|
|
4534
|
+
return disabled ? "hplxt-flex hplxt-flex-col hplxt-text-Gray-300 " : "hplxt-flex hplxt-flex-col hplxt-text-Gray-700";
|
|
4533
4535
|
};
|
|
4534
4536
|
|
|
4535
4537
|
var ToggleSwitch = function ToggleSwitch(_a) {
|
|
@@ -4542,9 +4544,9 @@ var ToggleSwitch = function ToggleSwitch(_a) {
|
|
|
4542
4544
|
_b = _a.onClick,
|
|
4543
4545
|
onClick = _b === void 0 ? function () {} : _b,
|
|
4544
4546
|
isToggled = _a.isToggled;
|
|
4545
|
-
var toggleClass = size === "sm" ? "transform translate-x-[14px]" : "transform translate-x-[18px]";
|
|
4547
|
+
var toggleClass = size === "sm" ? "hplxt-transform hplxt-translate-x-[14px]" : "hplxt-transform hplxt-translate-x-[18px]";
|
|
4546
4548
|
return jsxRuntime.exports.jsxs("div", __assign({
|
|
4547
|
-
className: "flex flex-row items-center p-2"
|
|
4549
|
+
className: "hplxt-flex hplxt-flex-row hplxt-items-center hplxt-p-2"
|
|
4548
4550
|
}, {
|
|
4549
4551
|
children: [jsxRuntime.exports.jsx("button", __assign({
|
|
4550
4552
|
onClick: onClick,
|
|
@@ -4552,13 +4554,13 @@ var ToggleSwitch = function ToggleSwitch(_a) {
|
|
|
4552
4554
|
id: id,
|
|
4553
4555
|
"data-testid": id,
|
|
4554
4556
|
defaultChecked: isToggled,
|
|
4555
|
-
className: "".concat(getToggleSizeClassName(size, disabled), " flex items-center ").concat(getThemeClassName(theme, isToggled, disabled), " rounded-full p-1 cursor-pointer focus:ring-4 ring-Primary-100")
|
|
4557
|
+
className: "".concat(getToggleSizeClassName(size, disabled), " hplxt-flex hplxt-items-center ").concat(getThemeClassName(theme, isToggled, disabled), " hplxt-rounded-full hplxt-p-1 hplxt-cursor-pointer focus:hplxt-ring-4 hplxt-ring-Primary-100")
|
|
4556
4558
|
}, {
|
|
4557
4559
|
children: jsxRuntime.exports.jsx("div", {
|
|
4558
|
-
className: "bg-White\n ".concat(size === "sm" ? "md:
|
|
4560
|
+
className: "hplxt-bg-White\n ".concat(size === "sm" ? "md:hplxt-w-4 md:hplxt-h-4" : "md:hplxt-w-5 md:hplxt-h-5", " hplxt-rounded-full hplxt-shadow-md hplxt-transition hplxt-transform\n ").concat(isToggled ? toggleClass : null)
|
|
4559
4561
|
})
|
|
4560
4562
|
})), jsxRuntime.exports.jsxs("label", __assign({
|
|
4561
|
-
className: " mx-5 ".concat(getLabelStyle(disabled), " "),
|
|
4563
|
+
className: " hplxt-mx-5 ".concat(getLabelStyle(disabled), " "),
|
|
4562
4564
|
htmlFor: id
|
|
4563
4565
|
}, {
|
|
4564
4566
|
children: [jsxRuntime.exports.jsx(Typography, __assign({
|
|
@@ -4578,7 +4580,7 @@ var ToggleSwitch = function ToggleSwitch(_a) {
|
|
|
4578
4580
|
|
|
4579
4581
|
function Checkmark(disabled, size, isActive) {
|
|
4580
4582
|
return jsxRuntime.exports.jsx("div", {
|
|
4581
|
-
className: "".concat(size === "sm" ? "w-4 h-4" : "w-5 h-5", " ").concat(isActive ? "hx_checkmark bg-Primary-600" : "", " ").concat(disabled ? "" : "group-hover:border-Primary-600 group-active:ring-4 group-active:ring-Primary-100", " absolute flex m-4 top-0 right-0 my-auto bottom-0 rounded-full justify-center items-center border-1 border-Gray-300 text-White "),
|
|
4583
|
+
className: "".concat(size === "sm" ? "hplxt-w-4 hplxt-h-4" : "hplxt-w-5 hplxt-h-5", " ").concat(isActive ? "hx_checkmark hplxt-bg-Primary-600" : "", " ").concat(disabled ? "" : "group-hover:hplxt-border-Primary-600 group-active:hplxt-ring-4 group-active:hplxt-ring-Primary-100", " hplxt-absolute hplxt-flex hplxt-m-4 hplxt-top-0 hplxt-right-0 hplxt-my-auto hplxt-bottom-0 hplxt-rounded-full hplxt-justify-center hplxt-items-center hplxt-border-1 hplxt-border-Gray-300 hplxt-text-White "),
|
|
4582
4584
|
style: {
|
|
4583
4585
|
fontSize: size === "sm" ? 12 : 16,
|
|
4584
4586
|
fontWeight: 1000
|
|
@@ -4606,26 +4608,26 @@ var CheckboxGroupItem = function CheckboxGroupItem(_a) {
|
|
|
4606
4608
|
switch (variant) {
|
|
4607
4609
|
case "Icon Simple":
|
|
4608
4610
|
return jsxRuntime.exports.jsx("div", __assign({
|
|
4609
|
-
className: "relative group",
|
|
4611
|
+
className: "hplxt-relative hplxt-group",
|
|
4610
4612
|
onClick: disabled ? undefined : onClick
|
|
4611
4613
|
}, {
|
|
4612
4614
|
children: jsxRuntime.exports.jsxs("div", __assign({
|
|
4613
|
-
className: "".concat(disabled ? "bg-Gray-50" : "".concat(isActive ? "bg-Primary-50 border-Primary-300 hover:border-Primary-500" : "hover:border-Primary-300", " active:ring-4 active:ring-Primary-100"), " flex items-center gap-4 p-4 border-1 border-Gray-200 rounded-lg ")
|
|
4615
|
+
className: "".concat(disabled ? "hplxt-bg-Gray-50" : "".concat(isActive ? "hplxt-bg-Primary-50 hplxt-border-Primary-300 hover:hplxt-border-Primary-500" : "hover:hplxt-border-Primary-300", " active:hplxt-ring-4 active:hplxt-ring-Primary-100"), " hplxt-flex hplxt-items-center hplxt-gap-4 hplxt-p-4 hplxt-border-1 hplxt-border-Gray-200 hplxt-rounded-lg ")
|
|
4614
4616
|
}, {
|
|
4615
4617
|
children: [jsxRuntime.exports.jsx("div", {
|
|
4616
|
-
className: "".concat(icon_name, " ").concat(disabled ? "border-6 border-Gray-50 bg-Gray-100 text-Gray-300" : "border-4 border-Primary-50 bg-Primary-100 text-Primary-600", " ").concat(size === "sm" ? "w-8 h-8" : "w-10 h-10", " flex justify-center items-center rounded-full"),
|
|
4618
|
+
className: "".concat(icon_name, " ").concat(disabled ? "hplxt-border-6 hplxt-border-Gray-50 hplxt-bg-Gray-100 hplxt-text-Gray-300" : "hplxt-border-4 hplxt-border-Primary-50 hplxt-bg-Primary-100 hplxt-text-Primary-600", " ").concat(size === "sm" ? "hplxt-w-8 hplxt-h-8" : "hplxt-w-10 hplxt-h-10", " hplxt-flex hplxt-justify-center hplxt-items-center hplxt-rounded-full"),
|
|
4617
4619
|
style: {
|
|
4618
4620
|
fontWeight: 1000
|
|
4619
4621
|
}
|
|
4620
4622
|
}), jsxRuntime.exports.jsxs(Typography, __assign({
|
|
4621
4623
|
variant: "Medium",
|
|
4622
4624
|
type: "Text ".concat(size),
|
|
4623
|
-
className: "".concat(isActive ? "text-Primary-800" : "text-Gray-700")
|
|
4625
|
+
className: "".concat(isActive ? "hplxt-text-Primary-800" : "hplxt-text-Gray-700")
|
|
4624
4626
|
}, {
|
|
4625
4627
|
children: [plan_name, " ", " ", jsxRuntime.exports.jsxs(Typography, __assign({
|
|
4626
4628
|
variant: "Regular",
|
|
4627
4629
|
type: "Text ".concat(size),
|
|
4628
|
-
className: "".concat(isActive ? "text-Primary-600" : "text-Gray-500", " inline")
|
|
4630
|
+
className: "".concat(isActive ? "hplxt-text-Primary-600" : "hplxt-text-Gray-500", " hplxt-inline")
|
|
4629
4631
|
}, {
|
|
4630
4632
|
children: [monthly_cost, "/month", jsxRuntime.exports.jsx("br", {}), plan_details]
|
|
4631
4633
|
}))]
|
|
@@ -4636,60 +4638,60 @@ var CheckboxGroupItem = function CheckboxGroupItem(_a) {
|
|
|
4636
4638
|
|
|
4637
4639
|
case "Icon Card":
|
|
4638
4640
|
return jsxRuntime.exports.jsx("div", __assign({
|
|
4639
|
-
className: "relative group",
|
|
4641
|
+
className: "hplxt-relative hplxt-group",
|
|
4640
4642
|
onClick: disabled ? undefined : onClick
|
|
4641
4643
|
}, {
|
|
4642
4644
|
children: jsxRuntime.exports.jsxs("div", __assign({
|
|
4643
|
-
className: "flex flex-col ".concat(disabled ? "bg-Gray-50" : "".concat(isActive ? "bg-White border-Primary-300 hover:border-Primary-500" : "hover:border-Primary-300", " active:ring-4 active:ring-Primary-100"), " border-1 border-Gray-200 rounded-lg ")
|
|
4645
|
+
className: "hplxt-flex hplxt-flex-col ".concat(disabled ? "hplxt-bg-Gray-50" : "".concat(isActive ? "hplxt-bg-White hplxt-border-Primary-300 hover:hplxt-border-Primary-500" : "hover:hplxt-border-Primary-300", " active:hplxt-ring-4 active:hplxt-ring-Primary-100"), " hplxt-border-1 hplxt-border-Gray-200 hplxt-rounded-lg ")
|
|
4644
4646
|
}, {
|
|
4645
4647
|
children: [jsxRuntime.exports.jsx("div", __assign({
|
|
4646
|
-
className: "border-b border-Gray-200 ".concat(disabled ? "bg-Gray-50" : "".concat(isActive ? "bg-Primary-50 border-Primary-300 group-hover:border-Primary-500 text-Primary-800" : "text-Gray-700 group-hover:border-Primary-300", " "))
|
|
4648
|
+
className: "hplxt-border-b hplxt-border-Gray-200 ".concat(disabled ? "hplxt-bg-Gray-50" : "".concat(isActive ? "hplxt-bg-Primary-50 hplxt-border-Primary-300 group-hover:hplxt-border-Primary-500 hplxt-text-Primary-800" : "hplxt-text-Gray-700 group-hover:hplxt-border-Primary-300", " "))
|
|
4647
4649
|
}, {
|
|
4648
4650
|
children: jsxRuntime.exports.jsxs("div", __assign({
|
|
4649
|
-
className: "flex m-2 "
|
|
4651
|
+
className: "hplxt-flex hplxt-m-2 "
|
|
4650
4652
|
}, {
|
|
4651
4653
|
children: [jsxRuntime.exports.jsx("div", {
|
|
4652
|
-
className: " ".concat(icon_name, " ").concat(disabled ? "border-6 border-Gray-50 bg-Gray-100 text-Gray-300" : "border-4 border-Primary-50 bg-Primary-100 text-Primary-600", " ").concat(size === "sm" ? "w-8 h-8" : "w-10 h-10", " flex justify-center items-center rounded-full"),
|
|
4654
|
+
className: " ".concat(icon_name, " ").concat(disabled ? "hplxt-border-6 hplxt-border-Gray-50 hplxt-bg-Gray-100 hplxt-text-Gray-300" : "hplxt-border-4 hplxt-border-Primary-50 hplxt-bg-Primary-100 hplxt-text-Primary-600", " ").concat(size === "sm" ? "hplxt-w-8 hplxt-h-8" : "hplxt-w-10 hplxt-h-10", " hplxt-flex hplxt-justify-center hplxt-items-center hplxt-rounded-full"),
|
|
4653
4655
|
style: {
|
|
4654
4656
|
fontWeight: 1000
|
|
4655
4657
|
}
|
|
4656
4658
|
}), jsxRuntime.exports.jsx(Typography, __assign({
|
|
4657
4659
|
variant: "Medium",
|
|
4658
4660
|
type: "Text ".concat(size === "sm" ? "md" : "lg"),
|
|
4659
|
-
className: "flex p-2 ".concat(disabled ? "bg-Gray-50 text-Gray-700" : "".concat(isActive ? "bg-Primary-50 border-Primary-300 group-hover:border-Primary-500 text-Primary-800" : " group-hover:border-Primary-300"))
|
|
4661
|
+
className: "hplxt-flex hplxt-p-2 ".concat(disabled ? "hplxt-bg-Gray-50 hplxt-text-Gray-700" : "".concat(isActive ? "hplxt-bg-Primary-50 hplxt-border-Primary-300 group-hover:hplxt-border-Primary-500 hplxt-text-Primary-800" : " group-hover:hplxt-border-Primary-300"))
|
|
4660
4662
|
}, {
|
|
4661
4663
|
children: plan_name
|
|
4662
4664
|
})), jsxRuntime.exports.jsx("div", __assign({
|
|
4663
|
-
className: " absolute p-4 right-0"
|
|
4665
|
+
className: " hplxt-absolute hplxt-p-4 hplxt-right-0"
|
|
4664
4666
|
}, {
|
|
4665
4667
|
children: Checkmark(disabled, size, isActive)
|
|
4666
4668
|
}))]
|
|
4667
4669
|
}))
|
|
4668
4670
|
})), jsxRuntime.exports.jsxs("div", __assign({
|
|
4669
|
-
className: "p-4"
|
|
4671
|
+
className: "hplxt-p-4"
|
|
4670
4672
|
}, {
|
|
4671
4673
|
children: [limited && jsxRuntime.exports.jsx(Typography, __assign({
|
|
4672
4674
|
variant: "Medium",
|
|
4673
4675
|
type: "Text ".concat(size === "sm" ? "xs" : "sm"),
|
|
4674
|
-
className: "absolute right-0 mr-4 ".concat(disabled ? "bg-Gray-100 text-Gray-700" : "bg-Success-50 text-Success-700", " rounded-2xl px-2 py-1")
|
|
4676
|
+
className: "hplxt-absolute hplxt-right-0 hplxt-mr-4 ".concat(disabled ? "hplxt-bg-Gray-100 hplxt-text-Gray-700" : "hplxt-bg-Success-50 hplxt-text-Success-700", " hplxt-rounded-2xl hplxt-px-2 hplxt-py-1")
|
|
4675
4677
|
}, {
|
|
4676
4678
|
children: "Limited time only"
|
|
4677
4679
|
})), jsxRuntime.exports.jsx(Typography, __assign({
|
|
4678
4680
|
variant: "".concat(size === "sm" ? "Semibold" : "Medium"),
|
|
4679
4681
|
type: "Display ".concat(size === "sm" ? "xs" : "sm"),
|
|
4680
|
-
className: "inline-flex text-Gray-700 "
|
|
4682
|
+
className: "hplxt-inline-flex hplxt-text-Gray-700 "
|
|
4681
4683
|
}, {
|
|
4682
4684
|
children: monthly_cost
|
|
4683
4685
|
})), jsxRuntime.exports.jsx(Typography, __assign({
|
|
4684
4686
|
variant: "Regular",
|
|
4685
4687
|
type: "Text ".concat(size),
|
|
4686
|
-
className: " inline-flex text-Gray-500"
|
|
4688
|
+
className: " hplxt-inline-flex hplxt-text-Gray-500"
|
|
4687
4689
|
}, {
|
|
4688
4690
|
children: "per month"
|
|
4689
4691
|
})), jsxRuntime.exports.jsx(Typography, __assign({
|
|
4690
4692
|
variant: "Regular",
|
|
4691
4693
|
type: "Text ".concat(size),
|
|
4692
|
-
className: " text-Gray-500"
|
|
4694
|
+
className: " hplxt-text-Gray-500"
|
|
4693
4695
|
}, {
|
|
4694
4696
|
children: plan_details
|
|
4695
4697
|
}))]
|
|
@@ -4700,11 +4702,11 @@ var CheckboxGroupItem = function CheckboxGroupItem(_a) {
|
|
|
4700
4702
|
|
|
4701
4703
|
case "Avatar":
|
|
4702
4704
|
return jsxRuntime.exports.jsxs("div", __assign({
|
|
4703
|
-
className: "relative group",
|
|
4705
|
+
className: "hplxt-relative hplxt-group",
|
|
4704
4706
|
onClick: disabled ? undefined : onClick
|
|
4705
4707
|
}, {
|
|
4706
4708
|
children: [jsxRuntime.exports.jsxs("div", __assign({
|
|
4707
|
-
className: "".concat(disabled ? "bg-Gray-50" : "".concat(isActive ? "bg-Primary-50 border-Primary-300 hover:border-Primary-500" : "hover:border-Primary-300", " active:ring-4 active:ring-Primary-100"), " flex items-center gap-4 p-4 border-1 border-Gray-200 rounded-lg ")
|
|
4709
|
+
className: "".concat(disabled ? "hplxt-bg-Gray-50" : "".concat(isActive ? "hplxt-bg-Primary-50 hplxt-border-Primary-300 hover:hplxt-border-Primary-500" : "hover:hplxt-border-Primary-300", " active:hplxt-ring-4 active:hplxt-ring-Primary-100"), " hplxt-flex hplxt-items-center hplxt-gap-4 hplxt-p-4 hplxt-border-1 hplxt-border-Gray-200 hplxt-rounded-lg ")
|
|
4708
4710
|
}, {
|
|
4709
4711
|
children: [jsxRuntime.exports.jsx(Avatar, {
|
|
4710
4712
|
url: icon_name,
|
|
@@ -4714,12 +4716,12 @@ var CheckboxGroupItem = function CheckboxGroupItem(_a) {
|
|
|
4714
4716
|
}), jsxRuntime.exports.jsxs(Typography, __assign({
|
|
4715
4717
|
variant: "Medium",
|
|
4716
4718
|
type: "Text ".concat(size),
|
|
4717
|
-
className: "".concat(isActive ? "text-Primary-800" : "text-Gray-700")
|
|
4719
|
+
className: "".concat(isActive ? "hplxt-text-Primary-800" : "hplxt-text-Gray-700")
|
|
4718
4720
|
}, {
|
|
4719
4721
|
children: [plan_name, " ", " ", jsxRuntime.exports.jsxs(Typography, __assign({
|
|
4720
4722
|
variant: "Regular",
|
|
4721
4723
|
type: "Text ".concat(size),
|
|
4722
|
-
className: "".concat(isActive ? "text-Primary-600" : "text-Gray-500", " inline")
|
|
4724
|
+
className: "".concat(isActive ? "hplxt-text-Primary-600" : "hplxt-text-Gray-500", " hplxt-inline")
|
|
4723
4725
|
}, {
|
|
4724
4726
|
children: [monthly_cost, jsxRuntime.exports.jsx("br", {}), plan_details]
|
|
4725
4727
|
}))]
|
|
@@ -4730,28 +4732,28 @@ var CheckboxGroupItem = function CheckboxGroupItem(_a) {
|
|
|
4730
4732
|
case "Payment icon":
|
|
4731
4733
|
return jsxRuntime.exports.jsxs("div", __assign({
|
|
4732
4734
|
"data-testid": "payment-".concat(plan_name),
|
|
4733
|
-
className: "relative group",
|
|
4735
|
+
className: "hplxt-relative hplxt-group",
|
|
4734
4736
|
onClick: disabled ? undefined : onClick
|
|
4735
4737
|
}, {
|
|
4736
4738
|
children: [jsxRuntime.exports.jsxs("div", __assign({
|
|
4737
|
-
className: "".concat(disabled ? "bg-Gray-50" : "".concat(isActive ? "bg-Primary-50 border-Primary-300 hover:border-Primary-500" : "hover:border-Primary-300", " active:ring-4 active:ring-Primary-100"), " flex items-center gap-4 p-4 border-1 border-Gray-200 rounded-lg ")
|
|
4739
|
+
className: "".concat(disabled ? "hplxt-bg-Gray-50" : "".concat(isActive ? "hplxt-bg-Primary-50 hplxt-border-Primary-300 hover:hplxt-border-Primary-500" : "hover:hplxt-border-Primary-300", " active:hplxt-ring-4 active:hplxt-ring-Primary-100"), " hplxt-flex hplxt-items-center hplxt-gap-4 hplxt-p-4 hplxt-border-1 hplxt-border-Gray-200 hplxt-rounded-lg ")
|
|
4738
4740
|
}, {
|
|
4739
4741
|
children: [jsxRuntime.exports.jsx("div", {
|
|
4740
4742
|
"data-testid": "payment-icon",
|
|
4741
|
-
className: "".concat(icon_name, " ").concat(disabled ? "border-6 border-Gray-50 bg-Gray-100 text-Gray-300" : "border-4 border-Primary-50 bg-Primary-100 text-Primary-600", " ").concat(size === "sm" ? "w-8 h-8" : "w-10 h-10", " flex justify-center items-center rounded-full"),
|
|
4743
|
+
className: "".concat(icon_name, " ").concat(disabled ? "hplxt-border-6 hplxt-border-Gray-50 hplxt-bg-Gray-100 hplxt-text-Gray-300" : "hplxt-border-4 hplxt-border-Primary-50 hplxt-bg-Primary-100 hplxt-text-Primary-600", " ").concat(size === "sm" ? "hplxt-w-8 hplxt-h-8" : "hplxt-w-10 hplxt-h-10", " hplxt-flex hplxt-justify-center hplxt-items-center hplxt-rounded-full"),
|
|
4742
4744
|
style: {
|
|
4743
4745
|
fontWeight: 1000
|
|
4744
4746
|
}
|
|
4745
4747
|
}), jsxRuntime.exports.jsxs(Typography, __assign({
|
|
4746
4748
|
variant: "Medium",
|
|
4747
4749
|
type: "Text ".concat(size),
|
|
4748
|
-
className: "".concat(isActive ? "text-Primary-800" : "text-Gray-700")
|
|
4750
|
+
className: "".concat(isActive ? "hplxt-text-Primary-800" : "hplxt-text-Gray-700")
|
|
4749
4751
|
}, {
|
|
4750
4752
|
children: [plan_name, " ", "ending in ", " ", monthly_cost, jsxRuntime.exports.jsx(Typography, __assign({
|
|
4751
4753
|
"data-testid": "plan-details",
|
|
4752
4754
|
variant: "Regular",
|
|
4753
4755
|
type: "Text ".concat(size),
|
|
4754
|
-
className: "".concat(isActive ? "text-Primary-600" : "text-Gray-500")
|
|
4756
|
+
className: "".concat(isActive ? "hplxt-text-Primary-600" : "hplxt-text-Gray-500")
|
|
4755
4757
|
}, {
|
|
4756
4758
|
children: plan_details
|
|
4757
4759
|
})), jsxRuntime.exports.jsx("div", __assign({
|
|
@@ -4764,7 +4766,7 @@ var CheckboxGroupItem = function CheckboxGroupItem(_a) {
|
|
|
4764
4766
|
"data-testid": "set-as-default",
|
|
4765
4767
|
variant: "Medium",
|
|
4766
4768
|
type: "Text sm",
|
|
4767
|
-
className: "".concat(isActive ? "text-Primary-600" : "text-Gray-500", " inline gap-4")
|
|
4769
|
+
className: "".concat(isActive ? "hplxt-text-Primary-600" : "hplxt-text-Gray-500", " hplxt-inline hplxt-gap-4")
|
|
4768
4770
|
}, {
|
|
4769
4771
|
children: "Set as default"
|
|
4770
4772
|
}))
|
|
@@ -4778,7 +4780,7 @@ var CheckboxGroupItem = function CheckboxGroupItem(_a) {
|
|
|
4778
4780
|
"data-testid": "edit",
|
|
4779
4781
|
variant: "Medium",
|
|
4780
4782
|
type: "Text sm",
|
|
4781
|
-
className: "inline text-Primary-700"
|
|
4783
|
+
className: "hplxt-inline hplxt-text-Primary-700"
|
|
4782
4784
|
}, {
|
|
4783
4785
|
children: "Edit"
|
|
4784
4786
|
}))
|
|
@@ -4790,30 +4792,30 @@ var CheckboxGroupItem = function CheckboxGroupItem(_a) {
|
|
|
4790
4792
|
|
|
4791
4793
|
case "Radio button":
|
|
4792
4794
|
return jsxRuntime.exports.jsxs("div", __assign({
|
|
4793
|
-
className: "relative group",
|
|
4795
|
+
className: "hplxt-relative hplxt-group",
|
|
4794
4796
|
onClick: disabled ? undefined : onClick
|
|
4795
4797
|
}, {
|
|
4796
4798
|
children: [jsxRuntime.exports.jsx("div", __assign({
|
|
4797
|
-
className: "".concat(disabled ? "bg-Gray-50" : "".concat(isActive ? "bg-Primary-50 border-Primary-300 hover:border-Primary-500" : "hover:border-Primary-300", " active:ring-4 active:ring-Primary-100"), " flex items-center gap-4 p-4 border-1 border-Gray-200 rounded-lg ")
|
|
4799
|
+
className: "".concat(disabled ? "hplxt-bg-Gray-50" : "".concat(isActive ? "hplxt-bg-Primary-50 hplxt-border-Primary-300 hover:hplxt-border-Primary-500" : "hover:hplxt-border-Primary-300", " active:hplxt-ring-4 active:hplxt-ring-Primary-100"), " hplxt-flex hplxt-items-center hplxt-gap-4 hplxt-p-4 hplxt-border-1 hplxt-border-Gray-200 hplxt-rounded-lg ")
|
|
4798
4800
|
}, {
|
|
4799
4801
|
children: jsxRuntime.exports.jsxs(Typography, __assign({
|
|
4800
4802
|
variant: "Medium",
|
|
4801
4803
|
type: "Text ".concat(size),
|
|
4802
|
-
className: "".concat(isActive ? "text-Primary-800" : "text-Gray-700", " ml-8")
|
|
4804
|
+
className: "".concat(isActive ? "hplxt-text-Primary-800" : "hplxt-text-Gray-700", " hplxt-ml-8")
|
|
4803
4805
|
}, {
|
|
4804
4806
|
children: [plan_name, " ", " ", jsxRuntime.exports.jsxs(Typography, __assign({
|
|
4805
4807
|
variant: "Regular",
|
|
4806
4808
|
type: "Text ".concat(size),
|
|
4807
|
-
className: "".concat(isActive ? "text-Primary-600" : "text-Gray-500", " inline")
|
|
4809
|
+
className: "".concat(isActive ? "hplxt-text-Primary-600" : "hplxt-text-Gray-500", " hplxt-inline")
|
|
4808
4810
|
}, {
|
|
4809
4811
|
children: [monthly_cost, "/month", jsxRuntime.exports.jsx("br", {}), plan_details]
|
|
4810
4812
|
}))]
|
|
4811
4813
|
}))
|
|
4812
4814
|
})), jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, {
|
|
4813
4815
|
children: [jsxRuntime.exports.jsx("div", {
|
|
4814
|
-
className: "".concat(size === "sm" ? "w-4 h-4" : "w-5 h-5", " ").concat(disabled ? "" : "".concat(isActive ? "border-Primary-600" : "", " group-active:ring-4 group-active ring-Primary-100 group-hover:bg-Primary-50 group-hover:border-Primary-600"), " absolute flex m-4 top-0 left-0 my-auto bottom-0 rounded-full border-1 border-Gray-300 ")
|
|
4816
|
+
className: "".concat(size === "sm" ? "hplxt-w-4 hplxt-h-4" : "hplxt-w-5 hplxt-h-5", " ").concat(disabled ? "" : "".concat(isActive ? "hplxt-border-Primary-600" : "", " group-active:hplxt-ring-4 group-active hplxt-ring-Primary-100 group-hover:hplxt-bg-Primary-50 group-hover:hplxt-border-Primary-600"), " hplxt-absolute hplxt-flex hplxt-m-4 hplxt-top-0 hplxt-left-0 hplxt-my-auto hplxt-bottom-0 hplxt-rounded-full hplxt-border-1 hplxt-border-Gray-300 ")
|
|
4815
4817
|
}), jsxRuntime.exports.jsx("div", {
|
|
4816
|
-
className: "".concat(size === "sm" ? "w-[7px] h-[7px] m-[20.5px]" : "w-2 h-2 m-[22px]", " ").concat(isActive ? "scale-100 border-Primary-600" : "scale-0", " absolute flex m-4 top-0 left-0 my-auto bottom-0 rounded-full justify-center items-center bg-Primary-600 "),
|
|
4818
|
+
className: "".concat(size === "sm" ? "hplxt-w-[7px] hplxt-h-[7px] hplxt-m-[20.5px]" : "hplxt-w-2 hplxt-h-2 hplxt-m-[22px]", " ").concat(isActive ? "hplxt-scale-100 hplxt-border-Primary-600" : "hplxt-scale-0", " hplxt-absolute hplxt-flex hplxt-m-4 hplxt-top-0 hplxt-left-0 hplxt-my-auto hplxt-bottom-0 hplxt-rounded-full hplxt-justify-center hplxt-items-center hplxt-bg-Primary-600 "),
|
|
4817
4819
|
style: {
|
|
4818
4820
|
fontSize: size === "sm" ? 12 : 16,
|
|
4819
4821
|
fontWeight: 1000
|
|
@@ -4824,27 +4826,27 @@ var CheckboxGroupItem = function CheckboxGroupItem(_a) {
|
|
|
4824
4826
|
|
|
4825
4827
|
case "Checkbox":
|
|
4826
4828
|
return jsxRuntime.exports.jsxs("div", __assign({
|
|
4827
|
-
className: "relative group",
|
|
4829
|
+
className: "hplxt-relative hplxt-group",
|
|
4828
4830
|
onClick: disabled ? undefined : onClick
|
|
4829
4831
|
}, {
|
|
4830
4832
|
children: [jsxRuntime.exports.jsx("div", __assign({
|
|
4831
|
-
className: "".concat(disabled ? "bg-Gray-50" : "".concat(isActive ? "bg-Primary-50 border-Primary-300 hover:border-Primary-500" : "hover:border-Primary-300", " active:ring-4 active:ring-Primary-100"), " flex items-center gap-4 p-4 border-1 border-Gray-200 rounded-lg ")
|
|
4833
|
+
className: "".concat(disabled ? "hplxt-bg-Gray-50" : "".concat(isActive ? "hplxt-bg-Primary-50 hplxt-border-Primary-300 hover:hplxt-border-Primary-500" : "hover:hplxt-border-Primary-300", " active:hplxt-ring-4 active:hplxt-ring-Primary-100"), " hplxt-flex hplxt-items-center hplxt-gap-4 hplxt-p-4 hplxt-border-1 hplxt-border-Gray-200 hplxt-rounded-lg ")
|
|
4832
4834
|
}, {
|
|
4833
4835
|
children: jsxRuntime.exports.jsxs(Typography, __assign({
|
|
4834
4836
|
variant: "Medium",
|
|
4835
4837
|
type: "Text ".concat(size),
|
|
4836
|
-
className: "".concat(isActive ? "text-Primary-800" : "text-Gray-700", " ml-8")
|
|
4838
|
+
className: "".concat(isActive ? "hplxt-text-Primary-800" : "hplxt-text-Gray-700", " hplxt-ml-8")
|
|
4837
4839
|
}, {
|
|
4838
4840
|
children: [plan_name, " ", " ", jsxRuntime.exports.jsxs(Typography, __assign({
|
|
4839
4841
|
variant: "Regular",
|
|
4840
4842
|
type: "Text ".concat(size),
|
|
4841
|
-
className: "".concat(isActive ? "text-Primary-600" : "text-Gray-500", " inline")
|
|
4843
|
+
className: "".concat(isActive ? "hplxt-text-Primary-600" : "hplxt-text-Gray-500", " hplxt-inline")
|
|
4842
4844
|
}, {
|
|
4843
4845
|
children: [monthly_cost, "/month", jsxRuntime.exports.jsx("br", {}), plan_details]
|
|
4844
4846
|
}))]
|
|
4845
4847
|
}))
|
|
4846
4848
|
})), jsxRuntime.exports.jsx("div", {
|
|
4847
|
-
className: "".concat(size === "sm" ? "w-4 h-4 rounded-[4px]" : "w-5 h-5 rounded-md", " ").concat(isActive ? "hx_checkmark text-Primary-600 border-Primary-600 bg-Primary-50" : "", " ").concat(disabled ? "" : "group-hover:border-Primary-600 group-active:ring-4 group-active:ring-Primary-100", " absolute flex m-4 top-0 left-0 my-auto bottom-0 rounded-full justify-center items-center border-1 border-Gray-300"),
|
|
4849
|
+
className: "".concat(size === "sm" ? "hplxt-w-4 hplxt-h-4 hplxt-rounded-[4px]" : "hplxt-w-5 hplxt-h-5 hplxt-rounded-md", " ").concat(isActive ? "hx_checkmark hplxt-text-Primary-600 hplxt-border-Primary-600 hplxt-bg-Primary-50" : "", " ").concat(disabled ? "" : "group-hover:hplxt-border-Primary-600 group-active:hplxt-ring-4 group-active:hplxt-ring-Primary-100", " hplxt-absolute hplxt-flex hplxt-m-4 hplxt-top-0 hplxt-left-0 hplxt-my-auto hplxt-bottom-0 hplxt-rounded-full hplxt-justify-center hplxt-items-center hplxt-border-1 hplxt-border-Gray-300"),
|
|
4848
4850
|
style: {
|
|
4849
4851
|
fontSize: size === "sm" ? 16 : 20,
|
|
4850
4852
|
fontWeight: 1000
|
|
@@ -4874,7 +4876,7 @@ var CheckboxGroup = function CheckboxGroup(_a) {
|
|
|
4874
4876
|
};
|
|
4875
4877
|
|
|
4876
4878
|
return jsxRuntime.exports.jsx("div", __assign({
|
|
4877
|
-
className: "flex flex-col gap-2"
|
|
4879
|
+
className: "hplxt-flex hplxt-flex-col hplxt-gap-2"
|
|
4878
4880
|
}, {
|
|
4879
4881
|
children: (options === null || options === void 0 ? void 0 : options.constructor) === Array && options.length ? options.map(function (option, index) {
|
|
4880
4882
|
var _a = option || {};
|
|
@@ -4896,57 +4898,57 @@ var CheckboxGroup = function CheckboxGroup(_a) {
|
|
|
4896
4898
|
var getLeftPositionClassName = function getLeftPositionClassName(minValue) {
|
|
4897
4899
|
switch (minValue) {
|
|
4898
4900
|
case "0":
|
|
4899
|
-
return "flex ml-0";
|
|
4901
|
+
return "hplxt-flex hplxt-ml-0";
|
|
4900
4902
|
|
|
4901
4903
|
case "25":
|
|
4902
|
-
return "flex ml-[65px]";
|
|
4904
|
+
return "hplxt-flex hplxt-ml-[65px]";
|
|
4903
4905
|
|
|
4904
4906
|
case "50":
|
|
4905
|
-
return "flex ml-[140px]";
|
|
4907
|
+
return "hplxt-flex hplxt-ml-[140px]";
|
|
4906
4908
|
|
|
4907
4909
|
case "75":
|
|
4908
|
-
return "flex ml-[215px]";
|
|
4910
|
+
return "hplxt-flex hplxt-ml-[215px]";
|
|
4909
4911
|
|
|
4910
4912
|
default:
|
|
4911
|
-
return "flex ml-0";
|
|
4913
|
+
return "hplxt-flex hplxt-ml-0";
|
|
4912
4914
|
}
|
|
4913
4915
|
};
|
|
4914
4916
|
|
|
4915
4917
|
var getRightPositionClassName = function getRightPositionClassName(maxValue) {
|
|
4916
4918
|
switch (maxValue) {
|
|
4917
4919
|
case "25":
|
|
4918
|
-
return "flex ml-[65px]";
|
|
4920
|
+
return "hplxt-flex hplxt-ml-[65px]";
|
|
4919
4921
|
|
|
4920
4922
|
case "50":
|
|
4921
|
-
return "flex ml-[140px]";
|
|
4923
|
+
return "hplxt-flex hplxt-ml-[140px]";
|
|
4922
4924
|
|
|
4923
4925
|
case "75":
|
|
4924
|
-
return "flex ml-[215px]";
|
|
4926
|
+
return "hplxt-flex hplxt-ml-[215px]";
|
|
4925
4927
|
|
|
4926
4928
|
case "100":
|
|
4927
|
-
return "flex ml-[290px]";
|
|
4929
|
+
return "hplxt-flex hplxt-ml-[290px]";
|
|
4928
4930
|
|
|
4929
4931
|
default:
|
|
4930
|
-
return "flex ml-[65px]";
|
|
4932
|
+
return "hplxt-flex hplxt-ml-[65px]";
|
|
4931
4933
|
}
|
|
4932
4934
|
};
|
|
4933
4935
|
|
|
4934
4936
|
var getLabelClassName = function getLabelClassName(position) {
|
|
4935
4937
|
switch (position) {
|
|
4936
4938
|
case "topFloating":
|
|
4937
|
-
return "absolute -mt-6 py-1 px-2 text-[12px] text-Gray-700 bg-White shadow-xl rounded-lg";
|
|
4939
|
+
return "hplxt-absolute -hplxt-mt-6 hplxt-py-1 hplxt-px-2 hplxt-text-[12px] hplxt-text-Gray-700 hplxt-bg-White hplxt-shadow-xl hplxt-rounded-lg";
|
|
4938
4940
|
|
|
4939
4941
|
case "bottomFloating":
|
|
4940
|
-
return "absolute mt-8 py-1 px-2 text-[12px] text-Gray-700 bg-White shadow-xl rounded-lg";
|
|
4942
|
+
return "hplxt-absolute hplxt-mt-8 hplxt-py-1 hplxt-px-2 hplxt-text-[12px] hplxt-text-Gray-700 hplxt-bg-White hplxt-shadow-xl hplxt-rounded-lg";
|
|
4941
4943
|
|
|
4942
4944
|
case "labelBottom":
|
|
4943
|
-
return "absolute mt-8 py-1 px-2 text-[16px] text-Gray-700 ";
|
|
4945
|
+
return "hplxt-absolute hplxt-mt-8 hplxt-py-1 hplxt-px-2 hplxt-text-[16px] hplxt-text-Gray-700 ";
|
|
4944
4946
|
|
|
4945
4947
|
case "noLabel":
|
|
4946
|
-
return "hidden";
|
|
4948
|
+
return "hplxt-hidden";
|
|
4947
4949
|
|
|
4948
4950
|
default:
|
|
4949
|
-
return "absolute mt-8 py-1 px-2 text-[12px] text-Gray-700 bg-White shadow-xl rounded-lg";
|
|
4951
|
+
return "hplxt-absolute hplxt-mt-8 hplxt-py-1 hplxt-px-2 hplxt-text-[12px] hplxt-text-Gray-700 hplxt-bg-White hplxt-shadow-xl hplxt-rounded-lg";
|
|
4950
4952
|
}
|
|
4951
4953
|
};
|
|
4952
4954
|
|
|
@@ -4977,10 +4979,10 @@ var Slider = function Slider(_a) {
|
|
|
4977
4979
|
className: "slider"
|
|
4978
4980
|
}, {
|
|
4979
4981
|
children: jsxRuntime.exports.jsxs("div", __assign({
|
|
4980
|
-
className: "flex flex-col w-96 px-8 py-4"
|
|
4982
|
+
className: "hplxt-flex hplxt-flex-col hplxt-w-96 hplxt-px-8 hplxt-py-4"
|
|
4981
4983
|
}, {
|
|
4982
4984
|
children: [jsxRuntime.exports.jsxs("div", __assign({
|
|
4983
|
-
className: "relative my-4 "
|
|
4985
|
+
className: "hplxt-relative hplxt-my-4 "
|
|
4984
4986
|
}, {
|
|
4985
4987
|
children: [jsxRuntime.exports.jsx("div", __assign({
|
|
4986
4988
|
className: "".concat(getLeftPositionClassName(minValue), " ")
|
|
@@ -5000,18 +5002,18 @@ var Slider = function Slider(_a) {
|
|
|
5000
5002
|
}))
|
|
5001
5003
|
}))]
|
|
5002
5004
|
})), jsxRuntime.exports.jsxs("div", __assign({
|
|
5003
|
-
className: "mb-4"
|
|
5005
|
+
className: "hplxt-mb-4"
|
|
5004
5006
|
}, {
|
|
5005
5007
|
children: [jsxRuntime.exports.jsx("div", __assign({
|
|
5006
|
-
className: "slider relative h-2 rounded-md bg-Gray-200"
|
|
5008
|
+
className: "slider hplxt-relative hplxt-h-2 hplxt-rounded-md hplxt-bg-Gray-200"
|
|
5007
5009
|
}, {
|
|
5008
5010
|
children: jsxRuntime.exports.jsx("div", {
|
|
5009
|
-
className: "progress absolute h-2 bg-Primary-600 rounded",
|
|
5011
|
+
className: "progress hplxt-absolute hplxt-h-2 hplxt-bg-Primary-600 hplxt-rounded",
|
|
5010
5012
|
ref: progressRef
|
|
5011
5013
|
})
|
|
5012
5014
|
})), jsxRuntime.exports.jsxs("div", __assign({
|
|
5013
5015
|
"data-testid": "Slider",
|
|
5014
|
-
className: "range-input relative"
|
|
5016
|
+
className: "range-input hplxt-relative"
|
|
5015
5017
|
}, {
|
|
5016
5018
|
children: [jsxRuntime.exports.jsx("input", {
|
|
5017
5019
|
onChange: function onChange(e) {
|
|
@@ -5022,7 +5024,7 @@ var Slider = function Slider(_a) {
|
|
|
5022
5024
|
step: 25,
|
|
5023
5025
|
max: max,
|
|
5024
5026
|
value: minValue,
|
|
5025
|
-
className: "range-min absolute w-full -top-2 h-2 bg-transparent appearance-none bg-Black/0 accent-White border-0 focus:border-0"
|
|
5027
|
+
className: "range-min hplxt-absolute hplxt-w-full -hplxt-top-2 hplxt-h-2 hplxt-bg-transparent hplxt-appearance-none hplxt-bg-Black/0 hplxt-accent-White hplxt-border-0 focus:hplxt-border-0"
|
|
5026
5028
|
}), jsxRuntime.exports.jsx("input", {
|
|
5027
5029
|
onChange: function onChange(e) {
|
|
5028
5030
|
setMaxValue(e.target.value);
|
|
@@ -5032,7 +5034,7 @@ var Slider = function Slider(_a) {
|
|
|
5032
5034
|
step: 25,
|
|
5033
5035
|
max: max,
|
|
5034
5036
|
value: maxValue,
|
|
5035
|
-
className: "range-max absolute w-full -top-2 h-2 bg-transparent appearance-none bg-Black/0 accent-White border-0 focus:border-0"
|
|
5037
|
+
className: "range-max hplxt-absolute hplxt-w-full -hplxt-top-2 hplxt-h-2 hplxt-bg-transparent hplxt-appearance-none hplxt-bg-Black/0 hplxt-accent-White hplxt-border-0 focus:hplxt-border-0"
|
|
5036
5038
|
})]
|
|
5037
5039
|
}))]
|
|
5038
5040
|
}))]
|
|
@@ -5044,19 +5046,19 @@ var Slider = function Slider(_a) {
|
|
|
5044
5046
|
// lg-Large,
|
|
5045
5047
|
|
|
5046
5048
|
var getPaddingClassName1 = function getPaddingClassName1(size) {
|
|
5047
|
-
var className = "flex flex-row px-2 rounded-2xl justify-content-center items-center ";
|
|
5049
|
+
var className = "hplxt-flex hplxt-flex-row hplxt-px-2 hplxt-rounded-2xl hplxt-justify-content-center hplxt-items-center ";
|
|
5048
5050
|
|
|
5049
5051
|
switch (size) {
|
|
5050
5052
|
case "md":
|
|
5051
|
-
className = className + "h-[30px]";
|
|
5053
|
+
className = className + "hplxt-h-[30px]";
|
|
5052
5054
|
break;
|
|
5053
5055
|
|
|
5054
5056
|
case "lg":
|
|
5055
|
-
className = className + "h-8 ";
|
|
5057
|
+
className = className + "hplxt-h-8 ";
|
|
5056
5058
|
break;
|
|
5057
5059
|
|
|
5058
5060
|
default:
|
|
5059
|
-
className = className + "h-[30px] ";
|
|
5061
|
+
className = className + "hplxt-h-[30px] ";
|
|
5060
5062
|
break;
|
|
5061
5063
|
}
|
|
5062
5064
|
|
|
@@ -5064,19 +5066,19 @@ var getPaddingClassName1 = function getPaddingClassName1(size) {
|
|
|
5064
5066
|
};
|
|
5065
5067
|
|
|
5066
5068
|
var getPaddingClassName2 = function getPaddingClassName2(size) {
|
|
5067
|
-
var className = "flex flex-row px-2 mx-1 rounded-2xl justify-content-center items-center ";
|
|
5069
|
+
var className = "hplxt-flex hplxt-flex-row hplxt-px-2 hplxt-mx-1 hplxt-rounded-2xl hplxt-justify-content-center hplxt-items-center ";
|
|
5068
5070
|
|
|
5069
5071
|
switch (size) {
|
|
5070
5072
|
case "md":
|
|
5071
|
-
className = className + "h-[22px]";
|
|
5073
|
+
className = className + "hplxt-h-[22px]";
|
|
5072
5074
|
break;
|
|
5073
5075
|
|
|
5074
5076
|
case "lg":
|
|
5075
|
-
className = className + "h-6 ";
|
|
5077
|
+
className = className + "hplxt-h-6 ";
|
|
5076
5078
|
break;
|
|
5077
5079
|
|
|
5078
5080
|
default:
|
|
5079
|
-
className = className + "h-[22px] ";
|
|
5081
|
+
className = className + "hplxt-h-[22px] ";
|
|
5080
5082
|
break;
|
|
5081
5083
|
}
|
|
5082
5084
|
|
|
@@ -5202,7 +5204,7 @@ var AddSuggestion = function AddSuggestion(_a) {
|
|
|
5202
5204
|
_l = _a.onSuggestionClick,
|
|
5203
5205
|
onSuggestionClick = _l === void 0 ? function (_selectedValue) {} : _l,
|
|
5204
5206
|
_m = _a.height,
|
|
5205
|
-
height = _m === void 0 ? "h-32" : _m,
|
|
5207
|
+
height = _m === void 0 ? "hplxt-h-32" : _m,
|
|
5206
5208
|
_o = _a.hint_text_icon,
|
|
5207
5209
|
hint_text_icon = _o === void 0 ? "" : _o,
|
|
5208
5210
|
hint_text = _a.hint_text,
|
|
@@ -5283,7 +5285,7 @@ var AddSuggestion = function AddSuggestion(_a) {
|
|
|
5283
5285
|
};
|
|
5284
5286
|
});
|
|
5285
5287
|
return jsxRuntime.exports.jsxs("div", __assign({
|
|
5286
|
-
className: "input__wrapper relative"
|
|
5288
|
+
className: "input__wrapper hplxt-relative"
|
|
5287
5289
|
}, {
|
|
5288
5290
|
children: [isInputField ? jsxRuntime.exports.jsx(InputField, {
|
|
5289
5291
|
label: label,
|
|
@@ -5324,14 +5326,14 @@ var AddSuggestion = function AddSuggestion(_a) {
|
|
|
5324
5326
|
})
|
|
5325
5327
|
}), showDropdown && jsxRuntime.exports.jsx("div", __assign({
|
|
5326
5328
|
ref: wrapperRef,
|
|
5327
|
-
className: "absolute mt-1 min-w-max rounded-lg bg-White overflow-y-auto shadow-md z-10 max-h-80 "
|
|
5329
|
+
className: "hplxt-absolute hplxt-mt-1 hplxt-min-w-max hplxt-rounded-lg hplxt-bg-White hplxt-overflow-y-auto hplxt-shadow-md hplxt-z-10 hplxt-max-h-80 "
|
|
5328
5330
|
}, {
|
|
5329
5331
|
children: suggestionArr && suggestionArr.length > 0 && jsxRuntime.exports.jsx("div", {
|
|
5330
5332
|
children: (suggestionArr === null || suggestionArr === void 0 ? void 0 : suggestionArr.constructor) === Array && suggestionArr.length ? suggestionArr.map(function (option) {
|
|
5331
5333
|
var restOptions = __rest(option || {}, []);
|
|
5332
5334
|
|
|
5333
5335
|
return jsxRuntime.exports.jsx(DropdownItems, __assign({
|
|
5334
|
-
className: "text-Primary-700"
|
|
5336
|
+
className: "hplxt-text-Primary-700"
|
|
5335
5337
|
}, restOptions, {
|
|
5336
5338
|
onSelect: function onSelect() {
|
|
5337
5339
|
return handleSuggestionClick(restOptions);
|
|
@@ -5407,29 +5409,29 @@ var Toast = function Toast(props) {
|
|
|
5407
5409
|
var getTypeColor = function getTypeColor(color) {
|
|
5408
5410
|
switch (color) {
|
|
5409
5411
|
case "Success":
|
|
5410
|
-
return "text-Gray-700 bg-Success-100";
|
|
5412
|
+
return "hplxt-text-Gray-700 hplxt-bg-Success-100";
|
|
5411
5413
|
|
|
5412
5414
|
case "Error":
|
|
5413
|
-
return "text-Error-600 bg-Error-100";
|
|
5415
|
+
return "hplxt-text-Error-600 hplxt-bg-Error-100";
|
|
5414
5416
|
|
|
5415
5417
|
default:
|
|
5416
|
-
return "text-Gray-700 bg-Error-100";
|
|
5418
|
+
return "hplxt-text-Gray-700 hplxt-bg-Error-100";
|
|
5417
5419
|
}
|
|
5418
5420
|
};
|
|
5419
5421
|
|
|
5420
5422
|
return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment, {
|
|
5421
5423
|
children: jsxRuntime.exports.jsxs("div", __assign({
|
|
5422
|
-
className: "px-2 py-1.5 w-72 h-15 rounded ".concat(getTypeColor(toastDetails === null || toastDetails === void 0 ? void 0 : toastDetails.type))
|
|
5424
|
+
className: "hplxt-px-2 hplxt-py-1.5 hplxt-w-72 hplxt-h-15 hplxt-rounded ".concat(getTypeColor(toastDetails === null || toastDetails === void 0 ? void 0 : toastDetails.type))
|
|
5423
5425
|
}, {
|
|
5424
5426
|
children: [jsxRuntime.exports.jsxs("div", __assign({
|
|
5425
|
-
className: "flex flex-row items-center justify-between"
|
|
5427
|
+
className: "hplxt-flex hplxt-flex-row hplxt-items-center hplxt-justify-between"
|
|
5426
5428
|
}, {
|
|
5427
5429
|
children: [jsxRuntime.exports.jsx("div", __assign({
|
|
5428
5430
|
className: ""
|
|
5429
5431
|
}, {
|
|
5430
5432
|
children: toastDetails === null || toastDetails === void 0 ? void 0 : toastDetails.title
|
|
5431
5433
|
})), jsxRuntime.exports.jsx("div", {
|
|
5432
|
-
className: "hx_close-circle cursor-pointer",
|
|
5434
|
+
className: "hx_close-circle hplxt-cursor-pointer",
|
|
5433
5435
|
onClick: clearToast
|
|
5434
5436
|
})]
|
|
5435
5437
|
})), jsxRuntime.exports.jsx("div", __assign({
|
|
@@ -5438,7 +5440,7 @@ var Toast = function Toast(props) {
|
|
|
5438
5440
|
children: jsxRuntime.exports.jsx(Typography, __assign({
|
|
5439
5441
|
variant: "Regular",
|
|
5440
5442
|
type: "Text sm",
|
|
5441
|
-
className: "text-Gray-500"
|
|
5443
|
+
className: "hplxt-text-Gray-500"
|
|
5442
5444
|
}, {
|
|
5443
5445
|
children: toastDetails === null || toastDetails === void 0 ? void 0 : toastDetails.description
|
|
5444
5446
|
}))
|
|
@@ -5470,7 +5472,7 @@ var MessageToast = function MessageToast(_a) {
|
|
|
5470
5472
|
setList = _b[1];
|
|
5471
5473
|
|
|
5472
5474
|
return jsxRuntime.exports.jsx("div", __assign({
|
|
5473
|
-
className: "fixed z-90 bottom-10 right-8 flex flex-col justify-center items-center"
|
|
5475
|
+
className: "hplxt-fixed hplxt-z-90 hplxt-bottom-10 hplxt-right-8 hplxt-flex hplxt-flex-col hplxt-justify-center hplxt-items-center"
|
|
5474
5476
|
}, {
|
|
5475
5477
|
children: list.map(function (item) {
|
|
5476
5478
|
return jsxRuntime.exports.jsx(Toast, {
|
|
@@ -5593,18 +5595,18 @@ var NestedDropdownItem = function NestedDropdownItem(_a) {
|
|
|
5593
5595
|
onClick: function onClick() {
|
|
5594
5596
|
!disabled && onSelect && onSelect(value);
|
|
5595
5597
|
},
|
|
5596
|
-
className: "relative h-10 flex items-center px-2 ".concat(disabled ? "cursor-not-allowed" : "hover:bg-Gray-50 cursor-pointer"),
|
|
5598
|
+
className: "hplxt-relative hplxt-h-10 hplxt-flex hplxt-items-center hplxt-px-2 ".concat(disabled ? "hplxt-cursor-not-allowed" : "hover:hplxt-bg-Gray-50 hplxt-cursor-pointer"),
|
|
5597
5599
|
onMouseEnter: onMouseEnterHandler,
|
|
5598
5600
|
onMouseLeave: onMouseLeaveHandler
|
|
5599
5601
|
}, {
|
|
5600
5602
|
children: [Boolean(start_icon) && jsxRuntime.exports.jsx("div", __assign({
|
|
5601
|
-
className: "mr-2 ".concat(disabled ? "text-Gray-200" : hover ? "text-Gray-700" : "text-Gray-500")
|
|
5603
|
+
className: "hplxt-mr-2 ".concat(disabled ? "hplxt-text-Gray-200" : hover ? "hplxt-text-Gray-700" : "hplxt-text-Gray-500")
|
|
5602
5604
|
}, {
|
|
5603
5605
|
children: jsxRuntime.exports.jsx("span", {
|
|
5604
5606
|
className: start_icon
|
|
5605
5607
|
})
|
|
5606
5608
|
})), jsxRuntime.exports.jsx("div", __assign({
|
|
5607
|
-
className: "flex-1 ".concat(disabled ? "text-Gray-200" : "text-Gray-700")
|
|
5609
|
+
className: "hplxt-flex-1 ".concat(disabled ? "hplxt-text-Gray-200" : "hplxt-text-Gray-700")
|
|
5608
5610
|
}, {
|
|
5609
5611
|
children: jsxRuntime.exports.jsx(Typography, __assign({
|
|
5610
5612
|
variant: hover && !disabled ? "Medium" : "Regular",
|
|
@@ -5613,7 +5615,7 @@ var NestedDropdownItem = function NestedDropdownItem(_a) {
|
|
|
5613
5615
|
children: label
|
|
5614
5616
|
}))
|
|
5615
5617
|
})), Boolean(end_icon) && jsxRuntime.exports.jsx("div", __assign({
|
|
5616
|
-
className: "ml-2 ".concat(!disabled && (hover || active) ? "text-Primary-700" : "text-Gray-200")
|
|
5618
|
+
className: "hplxt-ml-2 ".concat(!disabled && (hover || active) ? "hplxt-text-Primary-700" : "hplxt-text-Gray-200")
|
|
5617
5619
|
}, {
|
|
5618
5620
|
children: jsxRuntime.exports.jsx("span", {
|
|
5619
5621
|
className: end_icon
|
|
@@ -5750,7 +5752,7 @@ var NestedDropdown = function NestedDropdown(_a) {
|
|
|
5750
5752
|
top: "".concat(res.topPosVal, "px"),
|
|
5751
5753
|
left: "".concat(res.leftPosVal, "px")
|
|
5752
5754
|
},
|
|
5753
|
-
className: "absolute pr-16 pl-6 py-2 z-10 bg-White border-1 border-Gray-200 shadow-lg whitespace-nowrap\t left-[400px]"
|
|
5755
|
+
className: "hplxt-absolute hplxt-pr-16 hplxt-pl-6 hplxt-py-2 hplxt-z-10 hplxt-bg-White hplxt-border-1 hplxt-border-Gray-200 hplxt-shadow-lg hplxt-whitespace-nowrap\t hplxt-left-[400px]"
|
|
5754
5756
|
}, {
|
|
5755
5757
|
children: nestedDropdown
|
|
5756
5758
|
}));
|
|
@@ -5784,10 +5786,10 @@ var NestedDropdown = function NestedDropdown(_a) {
|
|
|
5784
5786
|
|
|
5785
5787
|
return jsxRuntime.exports.jsxs("div", {
|
|
5786
5788
|
children: [jsxRuntime.exports.jsx("div", __assign({
|
|
5787
|
-
className: "relative flex justify-between"
|
|
5789
|
+
className: "hplxt-relative hplxt-flex hplxt-justify-between"
|
|
5788
5790
|
}, {
|
|
5789
5791
|
children: Boolean(label) && jsxRuntime.exports.jsx("div", __assign({
|
|
5790
|
-
className: "text-Gray-700 mb-1"
|
|
5792
|
+
className: "hplxt-text-Gray-700 hplxt-mb-1"
|
|
5791
5793
|
}, {
|
|
5792
5794
|
children: jsxRuntime.exports.jsx(Typography, __assign({
|
|
5793
5795
|
type: "Text sm",
|
|
@@ -5797,13 +5799,13 @@ var NestedDropdown = function NestedDropdown(_a) {
|
|
|
5797
5799
|
}))
|
|
5798
5800
|
}))
|
|
5799
5801
|
})), jsxRuntime.exports.jsxs("div", __assign({
|
|
5800
|
-
className: "relative block"
|
|
5802
|
+
className: "hplxt-relative hplxt-block"
|
|
5801
5803
|
}, {
|
|
5802
5804
|
children: [jsxRuntime.exports.jsxs("div", __assign({
|
|
5803
5805
|
className: "".concat(className)
|
|
5804
5806
|
}, {
|
|
5805
5807
|
children: [value && ("label" in value || "value" in value) ? jsxRuntime.exports.jsx("div", __assign({
|
|
5806
|
-
className: "text-Gray-900"
|
|
5808
|
+
className: "hplxt-text-Gray-900"
|
|
5807
5809
|
}, {
|
|
5808
5810
|
children: jsxRuntime.exports.jsx(Typography, __assign({
|
|
5809
5811
|
"data-testid": "nested-dropdown-selected-value",
|
|
@@ -5813,7 +5815,7 @@ var NestedDropdown = function NestedDropdown(_a) {
|
|
|
5813
5815
|
children: value["label"] || value["value"]
|
|
5814
5816
|
}))
|
|
5815
5817
|
})) : jsxRuntime.exports.jsx("div", __assign({
|
|
5816
|
-
className: "text-Gray-500"
|
|
5818
|
+
className: "hplxt-text-Gray-500"
|
|
5817
5819
|
}, {
|
|
5818
5820
|
children: jsxRuntime.exports.jsx(Typography, __assign({
|
|
5819
5821
|
variant: "Regular",
|
|
@@ -5830,19 +5832,19 @@ var NestedDropdown = function NestedDropdown(_a) {
|
|
|
5830
5832
|
}
|
|
5831
5833
|
})]
|
|
5832
5834
|
})), jsxRuntime.exports.jsxs("div", __assign({
|
|
5833
|
-
className: "relative ".concat(className)
|
|
5835
|
+
className: "hplxt-relative ".concat(className)
|
|
5834
5836
|
}, {
|
|
5835
5837
|
children: [jsxRuntime.exports.jsx("div", __assign({
|
|
5836
5838
|
ref: dropdownRef,
|
|
5837
|
-
className: "".concat(className, " absolute mt-1 left-0 right-0 min-w-max rounded-lg bg-White overflow-y-scroll shadow-md z-10 max-h-80 ").concat(openDropdown ? "block" : "hidden"),
|
|
5839
|
+
className: "".concat(className, " hplxt-absolute hplxt-mt-1 hplxt-left-0 hplxt-right-0 hplxt-min-w-max hplxt-rounded-lg hplxt-bg-White hplxt-overflow-y-scroll hplxt-shadow-md hplxt-z-10 hplxt-max-h-80 ").concat(openDropdown ? "hplxt-block" : "hplxt-hidden"),
|
|
5838
5840
|
onScroll: handleDropdownScroll
|
|
5839
5841
|
}, {
|
|
5840
5842
|
children: jsxRuntime.exports.jsx("div", {
|
|
5841
5843
|
children: (nestDropdownOption === null || nestDropdownOption === void 0 ? void 0 : nestDropdownOption.constructor) === Array && nestDropdownOption.length ? renderDropdownOption() : jsxRuntime.exports.jsx("div", __assign({
|
|
5842
|
-
className: "h-10 flex items-center px-2"
|
|
5844
|
+
className: "hplxt-h-10 hplxt-flex hplxt-items-center hplxt-px-2"
|
|
5843
5845
|
}, {
|
|
5844
5846
|
children: jsxRuntime.exports.jsx("div", __assign({
|
|
5845
|
-
className: "flex-1 text-Gray-700"
|
|
5847
|
+
className: "hplxt-flex-1 hplxt-text-Gray-700"
|
|
5846
5848
|
}, {
|
|
5847
5849
|
children: jsxRuntime.exports.jsx(Typography, __assign({
|
|
5848
5850
|
variant: "Regular",
|
|
@@ -5856,7 +5858,7 @@ var NestedDropdown = function NestedDropdown(_a) {
|
|
|
5856
5858
|
})), isShowMedAd && openDropdown && ((_b = medicineAdData === null || medicineAdData === void 0 ? void 0 : medicineAdData.nestedOptionData) === null || _b === void 0 ? void 0 : _b.length) > 0 && renderNestedDropdown()]
|
|
5857
5859
|
}))]
|
|
5858
5860
|
})), (Boolean(hint_text) || Boolean(errorMsg)) && jsxRuntime.exports.jsx("div", __assign({
|
|
5859
|
-
className: "".concat(errorMsg ? "text-Error-500" : "text-Gray-500 mt-1")
|
|
5861
|
+
className: "".concat(errorMsg ? "hplxt-text-Error-500" : "hplxt-text-Gray-500 hplxt-mt-1")
|
|
5860
5862
|
}, {
|
|
5861
5863
|
children: jsxRuntime.exports.jsx(Typography, __assign({
|
|
5862
5864
|
type: "Text sm",
|
|
@@ -16883,6 +16885,7 @@ var DatePicker = function DatePicker(_a) {
|
|
|
16883
16885
|
dateVar = _a.dateVar,
|
|
16884
16886
|
minDate = _a.minDate,
|
|
16885
16887
|
maxDate = _a.maxDate,
|
|
16888
|
+
fieldColor = _a.fieldColor,
|
|
16886
16889
|
_c = _a.isborderRequired,
|
|
16887
16890
|
isborderRequired = _c === void 0 ? true : _c;
|
|
16888
16891
|
|
|
@@ -16919,22 +16922,23 @@ var DatePicker = function DatePicker(_a) {
|
|
|
16919
16922
|
};
|
|
16920
16923
|
}, [clicked]);
|
|
16921
16924
|
return jsxRuntime.exports.jsxs("div", __assign({
|
|
16922
|
-
className: "
|
|
16925
|
+
className: ""
|
|
16923
16926
|
}, {
|
|
16924
16927
|
children: [jsxRuntime.exports.jsx("div", __assign({
|
|
16925
|
-
className: "relative w-[189px]"
|
|
16928
|
+
className: "hplxt-relative hplxt-w-[189px]"
|
|
16926
16929
|
}, {
|
|
16927
16930
|
children: jsxRuntime.exports.jsx(InputField, {
|
|
16928
16931
|
isborderRequired: isborderRequired,
|
|
16929
|
-
start_icon: "hx_calendar",
|
|
16932
|
+
start_icon: "hx_calendar hplxt-text-4",
|
|
16930
16933
|
inputProps: {
|
|
16931
16934
|
placeholder: "Select date",
|
|
16932
16935
|
onClick: inputClick,
|
|
16933
16936
|
value: date ? dayjs(date).format("MMM DD, YYYY") : selectDate === null || selectDate === void 0 ? void 0 : selectDate.toString()
|
|
16934
|
-
}
|
|
16937
|
+
},
|
|
16938
|
+
fieldColor: fieldColor
|
|
16935
16939
|
})
|
|
16936
16940
|
})), jsxRuntime.exports.jsx("div", __assign({
|
|
16937
|
-
className: "absolute mt-1 z-10
|
|
16941
|
+
className: "hplxt-absolute hplxt-mt-1 hplxt-z-10"
|
|
16938
16942
|
}, {
|
|
16939
16943
|
children: clicked ? jsxRuntime.exports.jsx(dist.Calendar, {
|
|
16940
16944
|
date: dayjs(date).isValid() ? date : new Date(),
|