@chekinapp/ui 0.0.75 → 0.0.77
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 +37 -34
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -6
- package/dist/index.d.ts +8 -6
- package/dist/index.js +39 -36
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -555,20 +555,20 @@ declare const FramedIcon: React$1.ForwardRefExoticComponent<FramedIconProps & Re
|
|
|
555
555
|
|
|
556
556
|
declare const statusStyles: {
|
|
557
557
|
readonly INACTIVE: {
|
|
558
|
-
readonly background: "bg-[
|
|
559
|
-
readonly color: "text-[
|
|
558
|
+
readonly background: "bg-[#f4f6f8]";
|
|
559
|
+
readonly color: "text-[#9696b9]";
|
|
560
560
|
};
|
|
561
561
|
readonly ACTIVE: {
|
|
562
|
-
readonly background: "bg-[
|
|
563
|
-
readonly color: "text-[
|
|
562
|
+
readonly background: "bg-[#eff6ff]";
|
|
563
|
+
readonly color: "text-[#385cf8]";
|
|
564
564
|
};
|
|
565
565
|
readonly SUCCESS: {
|
|
566
566
|
readonly background: "bg-[#e8fcf7]";
|
|
567
567
|
readonly color: "text-[#2bc29f]";
|
|
568
568
|
};
|
|
569
569
|
readonly DANGER: {
|
|
570
|
-
readonly background: "bg-[#
|
|
571
|
-
readonly color: "text-[
|
|
570
|
+
readonly background: "bg-[#fff5f9]";
|
|
571
|
+
readonly color: "text-[#ff2467]";
|
|
572
572
|
};
|
|
573
573
|
};
|
|
574
574
|
interface HaloIconProps extends PropsWithChildren {
|
|
@@ -794,6 +794,7 @@ declare const uiKitTranslations: {
|
|
|
794
794
|
date_range_min_days_error_other: string;
|
|
795
795
|
past_dates: string;
|
|
796
796
|
future_dates: string;
|
|
797
|
+
signature_placeholder_text: string;
|
|
797
798
|
};
|
|
798
799
|
readonly es: {
|
|
799
800
|
verified: string;
|
|
@@ -1227,6 +1228,7 @@ declare const uiKitI18nResources: {
|
|
|
1227
1228
|
date_range_min_days_error_other: string;
|
|
1228
1229
|
past_dates: string;
|
|
1229
1230
|
future_dates: string;
|
|
1231
|
+
signature_placeholder_text: string;
|
|
1230
1232
|
};
|
|
1231
1233
|
};
|
|
1232
1234
|
readonly es: {
|
package/dist/index.d.ts
CHANGED
|
@@ -555,20 +555,20 @@ declare const FramedIcon: React$1.ForwardRefExoticComponent<FramedIconProps & Re
|
|
|
555
555
|
|
|
556
556
|
declare const statusStyles: {
|
|
557
557
|
readonly INACTIVE: {
|
|
558
|
-
readonly background: "bg-[
|
|
559
|
-
readonly color: "text-[
|
|
558
|
+
readonly background: "bg-[#f4f6f8]";
|
|
559
|
+
readonly color: "text-[#9696b9]";
|
|
560
560
|
};
|
|
561
561
|
readonly ACTIVE: {
|
|
562
|
-
readonly background: "bg-[
|
|
563
|
-
readonly color: "text-[
|
|
562
|
+
readonly background: "bg-[#eff6ff]";
|
|
563
|
+
readonly color: "text-[#385cf8]";
|
|
564
564
|
};
|
|
565
565
|
readonly SUCCESS: {
|
|
566
566
|
readonly background: "bg-[#e8fcf7]";
|
|
567
567
|
readonly color: "text-[#2bc29f]";
|
|
568
568
|
};
|
|
569
569
|
readonly DANGER: {
|
|
570
|
-
readonly background: "bg-[#
|
|
571
|
-
readonly color: "text-[
|
|
570
|
+
readonly background: "bg-[#fff5f9]";
|
|
571
|
+
readonly color: "text-[#ff2467]";
|
|
572
572
|
};
|
|
573
573
|
};
|
|
574
574
|
interface HaloIconProps extends PropsWithChildren {
|
|
@@ -794,6 +794,7 @@ declare const uiKitTranslations: {
|
|
|
794
794
|
date_range_min_days_error_other: string;
|
|
795
795
|
past_dates: string;
|
|
796
796
|
future_dates: string;
|
|
797
|
+
signature_placeholder_text: string;
|
|
797
798
|
};
|
|
798
799
|
readonly es: {
|
|
799
800
|
verified: string;
|
|
@@ -1227,6 +1228,7 @@ declare const uiKitI18nResources: {
|
|
|
1227
1228
|
date_range_min_days_error_other: string;
|
|
1228
1229
|
past_dates: string;
|
|
1229
1230
|
future_dates: string;
|
|
1231
|
+
signature_placeholder_text: string;
|
|
1230
1232
|
};
|
|
1231
1233
|
};
|
|
1232
1234
|
readonly es: {
|
package/dist/index.js
CHANGED
|
@@ -1377,7 +1377,7 @@ var Checkbox = React9.forwardRef(
|
|
|
1377
1377
|
const errorId = error ? `${checkboxId}-error` : void 0;
|
|
1378
1378
|
const descriptionId = supportingText ? `${checkboxId}-desc` : void 0;
|
|
1379
1379
|
const ariaDescribedBy = errorId || descriptionId || void 0;
|
|
1380
|
-
return /* @__PURE__ */ jsxs13("div", { className: cn("flex
|
|
1380
|
+
return /* @__PURE__ */ jsxs13("div", { className: cn("flex flex-col", className), children: [
|
|
1381
1381
|
/* @__PURE__ */ jsxs13(
|
|
1382
1382
|
"div",
|
|
1383
1383
|
{
|
|
@@ -2129,7 +2129,7 @@ function CopyLinkButton({
|
|
|
2129
2129
|
// src/copy-string/CopyString.tsx
|
|
2130
2130
|
import { jsx as jsx30, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2131
2131
|
function CopyString({ value = "", className, ...props }) {
|
|
2132
|
-
return /* @__PURE__ */ jsxs22("div", { className: cn("flex w-fit items-center gap-
|
|
2132
|
+
return /* @__PURE__ */ jsxs22("div", { className: cn("flex w-fit items-center gap-2", className), ...props, children: [
|
|
2133
2133
|
/* @__PURE__ */ jsx30("div", { className: "copy-string_value w-full overflow-hidden text-ellipsis whitespace-nowrap text-left", children: value }),
|
|
2134
2134
|
/* @__PURE__ */ jsx30(CopyIcon, { textToCopy: value })
|
|
2135
2135
|
] });
|
|
@@ -3891,7 +3891,7 @@ var CustomCheckboxDropdownGroup = forwardRef20(({ options, value = [], onChange,
|
|
|
3891
3891
|
id: `checkbox-${option.value}`,
|
|
3892
3892
|
value: checked,
|
|
3893
3893
|
disabled: option.disabled,
|
|
3894
|
-
className: cn(option.disabled && "cursor-not-allowed opacity-50")
|
|
3894
|
+
className: cn(option.disabled && "cursor-not-allowed opacity-50 w-auto")
|
|
3895
3895
|
},
|
|
3896
3896
|
option.value
|
|
3897
3897
|
),
|
|
@@ -4059,20 +4059,20 @@ var HALO_ICON_STATUS = {
|
|
|
4059
4059
|
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
4060
4060
|
var statusStyles = {
|
|
4061
4061
|
[HALO_ICON_STATUS.inactive]: {
|
|
4062
|
-
background: "bg-[
|
|
4063
|
-
color: "text-[
|
|
4062
|
+
background: "bg-[#f4f6f8]",
|
|
4063
|
+
color: "text-[#9696b9]"
|
|
4064
4064
|
},
|
|
4065
4065
|
[HALO_ICON_STATUS.active]: {
|
|
4066
|
-
background: "bg-[
|
|
4067
|
-
color: "text-[
|
|
4066
|
+
background: "bg-[#eff6ff]",
|
|
4067
|
+
color: "text-[#385cf8]"
|
|
4068
4068
|
},
|
|
4069
4069
|
[HALO_ICON_STATUS.success]: {
|
|
4070
4070
|
background: "bg-[#e8fcf7]",
|
|
4071
4071
|
color: "text-[#2bc29f]"
|
|
4072
4072
|
},
|
|
4073
4073
|
[HALO_ICON_STATUS.danger]: {
|
|
4074
|
-
background: "bg-[#
|
|
4075
|
-
color: "text-[
|
|
4074
|
+
background: "bg-[#fff5f9]",
|
|
4075
|
+
color: "text-[#ff2467]"
|
|
4076
4076
|
}
|
|
4077
4077
|
};
|
|
4078
4078
|
var HaloIcon = forwardRef21(
|
|
@@ -5185,7 +5185,8 @@ var translation_default2 = {
|
|
|
5185
5185
|
date_range_min_days_error_one: "Range must be at least {{count}} day",
|
|
5186
5186
|
date_range_min_days_error_other: "Range must be at least {{count}} days",
|
|
5187
5187
|
past_dates: "Date cannot be before {{minDate}}",
|
|
5188
|
-
future_dates: "Date cannot be after {{maxDate}}"
|
|
5188
|
+
future_dates: "Date cannot be after {{maxDate}}",
|
|
5189
|
+
signature_placeholder_text: "Sign inside this box.<br/> Use your finger.<br/> Tap to start."
|
|
5189
5190
|
};
|
|
5190
5191
|
|
|
5191
5192
|
// src/locales/es/translation.json
|
|
@@ -8169,8 +8170,8 @@ var VALUE_PART = 1;
|
|
|
8169
8170
|
var getSidebarState = (stateName) => document.cookie.split("; ").find((row) => row.startsWith(`${stateName}=`))?.split("=")[VALUE_PART] === "true";
|
|
8170
8171
|
|
|
8171
8172
|
// src/signature-canvas/SignatureCanvas.tsx
|
|
8172
|
-
import { forwardRef as forwardRef40,
|
|
8173
|
-
import { useTranslation as useTranslation16 } from "react-i18next";
|
|
8173
|
+
import { forwardRef as forwardRef40, useEffect as useEffect27, useRef as useRef18 } from "react";
|
|
8174
|
+
import { Trans, useTranslation as useTranslation16 } from "react-i18next";
|
|
8174
8175
|
import ReactSignatureCanvas from "react-signature-pad-wrapper";
|
|
8175
8176
|
|
|
8176
8177
|
// src/assets/icons/sign-finger.svg
|
|
@@ -8197,12 +8198,6 @@ var SIGNATURE_PROPS = {
|
|
|
8197
8198
|
maxWidth: 1.5,
|
|
8198
8199
|
dotSize: 1
|
|
8199
8200
|
};
|
|
8200
|
-
function breakIntoLines(text = "") {
|
|
8201
|
-
return text.split("\n").map((line, index) => /* @__PURE__ */ jsxs62(Fragment10, { children: [
|
|
8202
|
-
line,
|
|
8203
|
-
/* @__PURE__ */ jsx102("br", {})
|
|
8204
|
-
] }, index));
|
|
8205
|
-
}
|
|
8206
8201
|
var SignatureCanvas = forwardRef40(
|
|
8207
8202
|
({ onClear, hasSignature, onEnd, onEnable, className, enabled }, ref) => {
|
|
8208
8203
|
const { t } = useTranslation16();
|
|
@@ -8223,7 +8218,7 @@ var SignatureCanvas = forwardRef40(
|
|
|
8223
8218
|
type: "button",
|
|
8224
8219
|
className: cn(
|
|
8225
8220
|
"absolute left-0 top-0 z-10 flex h-[174px] w-[250px] flex-col items-center",
|
|
8226
|
-
"justify-between rounded border-0 bg-[var(--signature-canvas-placeholder-bg)] px-0 pb-
|
|
8221
|
+
"justify-between rounded border-0 bg-[var(--signature-canvas-placeholder-bg)] px-0 pb-7 pt-10",
|
|
8227
8222
|
"cursor-pointer select-none"
|
|
8228
8223
|
),
|
|
8229
8224
|
onClick: onEnable,
|
|
@@ -8234,10 +8229,10 @@ var SignatureCanvas = forwardRef40(
|
|
|
8234
8229
|
"span",
|
|
8235
8230
|
{
|
|
8236
8231
|
className: cn(
|
|
8237
|
-
"mx-auto max-w-[154px] break-words text-center text-sm font-medium uppercase",
|
|
8232
|
+
"mx-auto mt-2 max-w-[154px] break-words text-center text-sm font-medium uppercase",
|
|
8238
8233
|
"text-[var(--signature-canvas-placeholder-text)] opacity-[0.55]"
|
|
8239
8234
|
),
|
|
8240
|
-
children:
|
|
8235
|
+
children: /* @__PURE__ */ jsx102(Trans, { i18nKey: "signature_placeholder_text" })
|
|
8241
8236
|
}
|
|
8242
8237
|
)
|
|
8243
8238
|
]
|
|
@@ -9875,15 +9870,15 @@ function UploadedFilesList({
|
|
|
9875
9870
|
return /* @__PURE__ */ jsx129("div", { className: cn("flex flex-wrap gap-2.5", className), children: files.map((file, index) => /* @__PURE__ */ jsxs77(
|
|
9876
9871
|
"div",
|
|
9877
9872
|
{
|
|
9878
|
-
className: "flex cursor-default items-center gap-2 rounded border border-[
|
|
9873
|
+
className: "flex cursor-default items-center gap-2 rounded border border-[#acacd5] bg-[#f0f0f8] py-1.5 pl-3 pr-1.5",
|
|
9879
9874
|
children: [
|
|
9880
|
-
/* @__PURE__ */ jsx129("span", { className: "text-nowrap text-sm font-medium leading-5 text-[
|
|
9875
|
+
/* @__PURE__ */ jsx129("span", { className: "text-nowrap text-sm font-medium leading-5 text-[#161643]", children: file.name }),
|
|
9881
9876
|
/* @__PURE__ */ jsx129(
|
|
9882
9877
|
"button",
|
|
9883
9878
|
{
|
|
9884
9879
|
type: "button",
|
|
9885
9880
|
onClick: () => onRemoveFile(file.name),
|
|
9886
|
-
className: "flex h-[18px] w-[18px] shrink-0 cursor-pointer items-center justify-center rounded bg-[
|
|
9881
|
+
className: "flex h-[18px] w-[18px] shrink-0 cursor-pointer items-center justify-center rounded bg-[#6b6b95] transition-all hover:shadow-md active:opacity-95",
|
|
9887
9882
|
"aria-label": `Remove ${file.name}`,
|
|
9888
9883
|
children: /* @__PURE__ */ jsx129(X6, { className: "h-3.5 w-3.5 text-white", strokeWidth: 3 })
|
|
9889
9884
|
}
|
|
@@ -14475,7 +14470,9 @@ function DashboardMultiSelectInternal({
|
|
|
14475
14470
|
}, [isOpen, filteredOptions]);
|
|
14476
14471
|
React58.useEffect(() => {
|
|
14477
14472
|
if (!isOpen || !isMobile2) return;
|
|
14478
|
-
const frame = window.requestAnimationFrame(
|
|
14473
|
+
const frame = window.requestAnimationFrame(
|
|
14474
|
+
() => mobileSearchInputRef.current?.focus()
|
|
14475
|
+
);
|
|
14479
14476
|
return () => window.cancelAnimationFrame(frame);
|
|
14480
14477
|
}, [isOpen, isMobile2]);
|
|
14481
14478
|
const openMenu = () => {
|
|
@@ -16410,7 +16407,13 @@ var DashboardDateRangePicker = React66.forwardRef(function DashboardDateRangePic
|
|
|
16410
16407
|
const normalizedMaxDate = React66.useMemo(() => toDate(maxDate), [maxDate]);
|
|
16411
16408
|
const formatter = React66.useMemo(() => formatDate(displayFormat), [displayFormat]);
|
|
16412
16409
|
const parser = React66.useMemo(() => parseDate(displayFormat), [displayFormat]);
|
|
16413
|
-
const { fromText, toText, setFromText, setToText, handleFromBlur, handleToBlur } = useRangeTextInputs({
|
|
16410
|
+
const { fromText, toText, setFromText, setToText, handleFromBlur, handleToBlur } = useRangeTextInputs({
|
|
16411
|
+
value,
|
|
16412
|
+
format: formatter,
|
|
16413
|
+
parse: parser,
|
|
16414
|
+
onCommit: commit,
|
|
16415
|
+
onBlur
|
|
16416
|
+
});
|
|
16414
16417
|
const { month, setMonth, syncMonthToValue } = useRangeMonthSync(value);
|
|
16415
16418
|
const [isOpen, setIsOpen] = React66.useState(false);
|
|
16416
16419
|
const [focusedInput, setFocusedInput] = React66.useState(null);
|
|
@@ -16493,7 +16496,15 @@ var DashboardDateRangePicker = React66.forwardRef(function DashboardDateRangePic
|
|
|
16493
16496
|
open: openCalendar,
|
|
16494
16497
|
close: closeCalendar
|
|
16495
16498
|
}),
|
|
16496
|
-
[
|
|
16499
|
+
[
|
|
16500
|
+
closeCalendar,
|
|
16501
|
+
commit,
|
|
16502
|
+
formatter,
|
|
16503
|
+
openCalendar,
|
|
16504
|
+
setFromText,
|
|
16505
|
+
setToText,
|
|
16506
|
+
syncMonthToValue
|
|
16507
|
+
]
|
|
16497
16508
|
);
|
|
16498
16509
|
return /* @__PURE__ */ jsx169(
|
|
16499
16510
|
"div",
|
|
@@ -16923,15 +16934,7 @@ var DashboardFileInput = React69.forwardRef(
|
|
|
16923
16934
|
onClick: handleClear,
|
|
16924
16935
|
className: "ml-2 flex h-[15px] w-[15px] items-center justify-center rounded-[3px] border-0 bg-transparent p-0 text-[#9696b9] outline-none hover:shadow-[0_3px_3px_#0f477734]",
|
|
16925
16936
|
"aria-label": t("remove_file"),
|
|
16926
|
-
children: /* @__PURE__ */ jsx171(
|
|
16927
|
-
SquareX5,
|
|
16928
|
-
{
|
|
16929
|
-
size: 15,
|
|
16930
|
-
fill: "#9696b9",
|
|
16931
|
-
color: "#f8f8f8",
|
|
16932
|
-
strokeWidth: 1.8
|
|
16933
|
-
}
|
|
16934
|
-
)
|
|
16937
|
+
children: /* @__PURE__ */ jsx171(SquareX5, { size: 15, fill: "#9696b9", color: "#f8f8f8", strokeWidth: 1.8 })
|
|
16935
16938
|
}
|
|
16936
16939
|
)
|
|
16937
16940
|
]
|