@chekinapp/ui 0.0.74 → 0.0.76

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.d.cts CHANGED
@@ -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
@@ -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 w-full flex-col", className), children: [
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-1.5", className), ...props, children: [
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
  ),
@@ -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, Fragment as Fragment10, useEffect as useEffect27, useRef as useRef18 } from "react";
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();
@@ -8237,7 +8232,7 @@ var SignatureCanvas = forwardRef40(
8237
8232
  "mx-auto 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: breakIntoLines(t("signature_placeholder_text"))
8235
+ children: /* @__PURE__ */ jsx102(Trans, { i18nKey: "signature_placeholder_text" })
8241
8236
  }
8242
8237
  )
8243
8238
  ]