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