@chekinapp/ui 0.0.68 → 0.0.70
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/index.cjs +15 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +15 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -7708,7 +7708,7 @@ var SectionGroupItem = ({
|
|
|
7708
7708
|
return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("section", { className: cn("flex flex-col gap-5", className), children: [
|
|
7709
7709
|
divider && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: cn("h-px w-full bg-[var(--section-group-divider-bg)]") }),
|
|
7710
7710
|
(title || subtitle) && /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "flex flex-col gap-1 px-8", children: [
|
|
7711
|
-
title && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("h3", { className: "text-
|
|
7711
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("h3", { className: "text-base font-semibold leading-6 text-[var(--section-group-muted-text)]", children: title }),
|
|
7712
7712
|
subtitle && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("p", { className: "text-sm font-medium leading-6 text-[var(--section-group-muted-text)]", children: subtitle })
|
|
7713
7713
|
] }),
|
|
7714
7714
|
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: cn("flex flex-col gap-4 px-8", contentClassName), children })
|
|
@@ -9759,6 +9759,7 @@ var getValueArray = (value) => {
|
|
|
9759
9759
|
return [];
|
|
9760
9760
|
};
|
|
9761
9761
|
var convertStringToValue = (stringValue, option) => {
|
|
9762
|
+
console.log(stringValue, option);
|
|
9762
9763
|
if (option) {
|
|
9763
9764
|
return option.value;
|
|
9764
9765
|
}
|
|
@@ -9817,6 +9818,9 @@ function TogglesInternal({
|
|
|
9817
9818
|
const singleValue = Array.isArray(newValue) ? newValue[0] : newValue;
|
|
9818
9819
|
const option = options.find((opt) => String(opt.value) === singleValue);
|
|
9819
9820
|
const typedValue = convertStringToValue(singleValue, option);
|
|
9821
|
+
{
|
|
9822
|
+
console.log("typedValues", typedValue);
|
|
9823
|
+
}
|
|
9820
9824
|
onChange?.(
|
|
9821
9825
|
typedValue,
|
|
9822
9826
|
{}
|
|
@@ -13693,7 +13697,7 @@ function Fieldset({
|
|
|
13693
13697
|
className: cn(
|
|
13694
13698
|
"absolute box-border inline-flex max-w-full cursor-text items-center pl-[3px] pr-5 transition-all duration-100 ease-in",
|
|
13695
13699
|
"left-[13px] text-[var(--chekin-color-gray-1)]",
|
|
13696
|
-
isEmpty && !isFocused ? "top-[14px]" : "top-[-
|
|
13700
|
+
isEmpty && !isFocused ? "top-[14px]" : "top-[-10px] !pl-1 !pr-[22px]",
|
|
13697
13701
|
isFocused && "text-[var(--chekin-color-brand-blue)]",
|
|
13698
13702
|
raised && invalid && "text-[var(--error-message-color)]",
|
|
13699
13703
|
readOnly && "cursor-default",
|
|
@@ -13856,7 +13860,7 @@ var DashboardInput = React53.forwardRef(
|
|
|
13856
13860
|
className: cn(
|
|
13857
13861
|
"relative block min-h-[68px]",
|
|
13858
13862
|
disabled && "cursor-not-allowed opacity-50",
|
|
13859
|
-
loading && "cursor-progress",
|
|
13863
|
+
loading && "cursor-progress opacity-50",
|
|
13860
13864
|
wrapperClassName,
|
|
13861
13865
|
className
|
|
13862
13866
|
),
|
|
@@ -13895,7 +13899,10 @@ var DashboardInput = React53.forwardRef(
|
|
|
13895
13899
|
labelId: `${inputId}-label`,
|
|
13896
13900
|
legend: typeof label === "string" ? label : void 0,
|
|
13897
13901
|
label,
|
|
13898
|
-
tooltip
|
|
13902
|
+
tooltip,
|
|
13903
|
+
labelClassName: cn({
|
|
13904
|
+
"pl-[28px]": !!leftIcon
|
|
13905
|
+
})
|
|
13899
13906
|
}
|
|
13900
13907
|
),
|
|
13901
13908
|
leftIcon && /* @__PURE__ */ (0, import_jsx_runtime155.jsx)("span", { className: "pointer-events-none absolute left-0 top-0 flex h-full max-w-10 items-center justify-center text-[var(--chekin-color-gray-2)]", children: /* @__PURE__ */ (0, import_jsx_runtime155.jsx)("span", { className: "flex h-full w-10 items-center justify-center", children: leftIcon }) }),
|
|
@@ -13938,7 +13945,7 @@ var DashboardInput = React53.forwardRef(
|
|
|
13938
13945
|
),
|
|
13939
13946
|
sign && /* @__PURE__ */ (0, import_jsx_runtime155.jsx)("span", { className: "pointer-events-none absolute right-[14px] top-0 flex h-full items-center text-[18px] font-medium leading-6 text-[var(--chekin-color-brand-navy)]", children: sign }),
|
|
13940
13947
|
trailingAdornment && /* @__PURE__ */ (0, import_jsx_runtime155.jsx)("span", { className: "pointer-events-none absolute right-[14px] top-0 flex h-full items-center", children: trailingAdornment }),
|
|
13941
|
-
onReset && /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(
|
|
13948
|
+
onReset && !isEmpty && /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(
|
|
13942
13949
|
"button",
|
|
13943
13950
|
{
|
|
13944
13951
|
type: "button",
|
|
@@ -13954,13 +13961,13 @@ var DashboardInput = React53.forwardRef(
|
|
|
13954
13961
|
{
|
|
13955
13962
|
type: "button",
|
|
13956
13963
|
onClick: togglePasswordReveal,
|
|
13957
|
-
className: "absolute right-[14px] top-[
|
|
13964
|
+
className: "absolute right-[14px] top-[18px] flex h-[13px] w-[21px] cursor-pointer items-center justify-center border-0 bg-transparent p-0 hover:opacity-85",
|
|
13958
13965
|
"aria-label": isPasswordRevealed ? "Hide password" : "Show password",
|
|
13959
13966
|
children: /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(
|
|
13960
13967
|
import_lucide_react46.Eye,
|
|
13961
13968
|
{
|
|
13969
|
+
size: 20,
|
|
13962
13970
|
className: cn(
|
|
13963
|
-
"h-[13px] w-[21px]",
|
|
13964
13971
|
isPasswordRevealed ? "text-[#fc98dd]" : "text-[var(--chekin-color-gray-2)]"
|
|
13965
13972
|
)
|
|
13966
13973
|
}
|
|
@@ -13968,7 +13975,7 @@ var DashboardInput = React53.forwardRef(
|
|
|
13968
13975
|
}
|
|
13969
13976
|
)
|
|
13970
13977
|
] }),
|
|
13971
|
-
type === "number" && showNumberButtons && /* @__PURE__ */ (0, import_jsx_runtime155.jsxs)("div", { className: "absolute right-[18px] top-[
|
|
13978
|
+
type === "number" && showNumberButtons && /* @__PURE__ */ (0, import_jsx_runtime155.jsxs)("div", { className: "absolute right-[18px] top-[13px] inline-flex items-center text-right", children: [
|
|
13972
13979
|
/* @__PURE__ */ (0, import_jsx_runtime155.jsx)(
|
|
13973
13980
|
"button",
|
|
13974
13981
|
{
|