@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.js
CHANGED
|
@@ -7348,7 +7348,7 @@ var SectionGroupItem = ({
|
|
|
7348
7348
|
return /* @__PURE__ */ jsxs59("section", { className: cn("flex flex-col gap-5", className), children: [
|
|
7349
7349
|
divider && /* @__PURE__ */ jsx97("div", { className: cn("h-px w-full bg-[var(--section-group-divider-bg)]") }),
|
|
7350
7350
|
(title || subtitle) && /* @__PURE__ */ jsxs59("div", { className: "flex flex-col gap-1 px-8", children: [
|
|
7351
|
-
title && /* @__PURE__ */ jsx97("h3", { className: "text-
|
|
7351
|
+
title && /* @__PURE__ */ jsx97("h3", { className: "text-base font-semibold leading-6 text-[var(--section-group-muted-text)]", children: title }),
|
|
7352
7352
|
subtitle && /* @__PURE__ */ jsx97("p", { className: "text-sm font-medium leading-6 text-[var(--section-group-muted-text)]", children: subtitle })
|
|
7353
7353
|
] }),
|
|
7354
7354
|
/* @__PURE__ */ jsx97("div", { className: cn("flex flex-col gap-4 px-8", contentClassName), children })
|
|
@@ -9406,6 +9406,7 @@ var getValueArray = (value) => {
|
|
|
9406
9406
|
return [];
|
|
9407
9407
|
};
|
|
9408
9408
|
var convertStringToValue = (stringValue, option) => {
|
|
9409
|
+
console.log(stringValue, option);
|
|
9409
9410
|
if (option) {
|
|
9410
9411
|
return option.value;
|
|
9411
9412
|
}
|
|
@@ -9464,6 +9465,9 @@ function TogglesInternal({
|
|
|
9464
9465
|
const singleValue = Array.isArray(newValue) ? newValue[0] : newValue;
|
|
9465
9466
|
const option = options.find((opt) => String(opt.value) === singleValue);
|
|
9466
9467
|
const typedValue = convertStringToValue(singleValue, option);
|
|
9468
|
+
{
|
|
9469
|
+
console.log("typedValues", typedValue);
|
|
9470
|
+
}
|
|
9467
9471
|
onChange?.(
|
|
9468
9472
|
typedValue,
|
|
9469
9473
|
{}
|
|
@@ -13351,7 +13355,7 @@ function Fieldset({
|
|
|
13351
13355
|
className: cn(
|
|
13352
13356
|
"absolute box-border inline-flex max-w-full cursor-text items-center pl-[3px] pr-5 transition-all duration-100 ease-in",
|
|
13353
13357
|
"left-[13px] text-[var(--chekin-color-gray-1)]",
|
|
13354
|
-
isEmpty && !isFocused ? "top-[14px]" : "top-[-
|
|
13358
|
+
isEmpty && !isFocused ? "top-[14px]" : "top-[-10px] !pl-1 !pr-[22px]",
|
|
13355
13359
|
isFocused && "text-[var(--chekin-color-brand-blue)]",
|
|
13356
13360
|
raised && invalid && "text-[var(--error-message-color)]",
|
|
13357
13361
|
readOnly && "cursor-default",
|
|
@@ -13514,7 +13518,7 @@ var DashboardInput = React53.forwardRef(
|
|
|
13514
13518
|
className: cn(
|
|
13515
13519
|
"relative block min-h-[68px]",
|
|
13516
13520
|
disabled && "cursor-not-allowed opacity-50",
|
|
13517
|
-
loading && "cursor-progress",
|
|
13521
|
+
loading && "cursor-progress opacity-50",
|
|
13518
13522
|
wrapperClassName,
|
|
13519
13523
|
className
|
|
13520
13524
|
),
|
|
@@ -13553,7 +13557,10 @@ var DashboardInput = React53.forwardRef(
|
|
|
13553
13557
|
labelId: `${inputId}-label`,
|
|
13554
13558
|
legend: typeof label === "string" ? label : void 0,
|
|
13555
13559
|
label,
|
|
13556
|
-
tooltip
|
|
13560
|
+
tooltip,
|
|
13561
|
+
labelClassName: cn({
|
|
13562
|
+
"pl-[28px]": !!leftIcon
|
|
13563
|
+
})
|
|
13557
13564
|
}
|
|
13558
13565
|
),
|
|
13559
13566
|
leftIcon && /* @__PURE__ */ jsx153("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__ */ jsx153("span", { className: "flex h-full w-10 items-center justify-center", children: leftIcon }) }),
|
|
@@ -13596,7 +13603,7 @@ var DashboardInput = React53.forwardRef(
|
|
|
13596
13603
|
),
|
|
13597
13604
|
sign && /* @__PURE__ */ jsx153("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 }),
|
|
13598
13605
|
trailingAdornment && /* @__PURE__ */ jsx153("span", { className: "pointer-events-none absolute right-[14px] top-0 flex h-full items-center", children: trailingAdornment }),
|
|
13599
|
-
onReset && /* @__PURE__ */ jsx153(
|
|
13606
|
+
onReset && !isEmpty && /* @__PURE__ */ jsx153(
|
|
13600
13607
|
"button",
|
|
13601
13608
|
{
|
|
13602
13609
|
type: "button",
|
|
@@ -13612,13 +13619,13 @@ var DashboardInput = React53.forwardRef(
|
|
|
13612
13619
|
{
|
|
13613
13620
|
type: "button",
|
|
13614
13621
|
onClick: togglePasswordReveal,
|
|
13615
|
-
className: "absolute right-[14px] top-[
|
|
13622
|
+
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",
|
|
13616
13623
|
"aria-label": isPasswordRevealed ? "Hide password" : "Show password",
|
|
13617
13624
|
children: /* @__PURE__ */ jsx153(
|
|
13618
13625
|
Eye,
|
|
13619
13626
|
{
|
|
13627
|
+
size: 20,
|
|
13620
13628
|
className: cn(
|
|
13621
|
-
"h-[13px] w-[21px]",
|
|
13622
13629
|
isPasswordRevealed ? "text-[#fc98dd]" : "text-[var(--chekin-color-gray-2)]"
|
|
13623
13630
|
)
|
|
13624
13631
|
}
|
|
@@ -13626,7 +13633,7 @@ var DashboardInput = React53.forwardRef(
|
|
|
13626
13633
|
}
|
|
13627
13634
|
)
|
|
13628
13635
|
] }),
|
|
13629
|
-
type === "number" && showNumberButtons && /* @__PURE__ */ jsxs97("div", { className: "absolute right-[18px] top-[
|
|
13636
|
+
type === "number" && showNumberButtons && /* @__PURE__ */ jsxs97("div", { className: "absolute right-[18px] top-[13px] inline-flex items-center text-right", children: [
|
|
13630
13637
|
/* @__PURE__ */ jsx153(
|
|
13631
13638
|
"button",
|
|
13632
13639
|
{
|