@chekinapp/ui 0.0.75 → 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.cjs +6 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +8 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1763,7 +1763,7 @@ var Checkbox = React9.forwardRef(
|
|
|
1763
1763
|
const errorId = error ? `${checkboxId}-error` : void 0;
|
|
1764
1764
|
const descriptionId = supportingText ? `${checkboxId}-desc` : void 0;
|
|
1765
1765
|
const ariaDescribedBy = errorId || descriptionId || void 0;
|
|
1766
|
-
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: cn("flex
|
|
1766
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: cn("flex flex-col", className), children: [
|
|
1767
1767
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
1768
1768
|
"div",
|
|
1769
1769
|
{
|
|
@@ -2515,7 +2515,7 @@ function CopyLinkButton({
|
|
|
2515
2515
|
// src/copy-string/CopyString.tsx
|
|
2516
2516
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
2517
2517
|
function CopyString({ value = "", className, ...props }) {
|
|
2518
|
-
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: cn("flex w-fit items-center gap-
|
|
2518
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: cn("flex w-fit items-center gap-2", className), ...props, children: [
|
|
2519
2519
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "copy-string_value w-full overflow-hidden text-ellipsis whitespace-nowrap text-left", children: value }),
|
|
2520
2520
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(CopyIcon, { textToCopy: value })
|
|
2521
2521
|
] });
|
|
@@ -4271,7 +4271,7 @@ var CustomCheckboxDropdownGroup = (0, import_react40.forwardRef)(({ options, val
|
|
|
4271
4271
|
id: `checkbox-${option.value}`,
|
|
4272
4272
|
value: checked,
|
|
4273
4273
|
disabled: option.disabled,
|
|
4274
|
-
className: cn(option.disabled && "cursor-not-allowed opacity-50")
|
|
4274
|
+
className: cn(option.disabled && "cursor-not-allowed opacity-50 w-auto")
|
|
4275
4275
|
},
|
|
4276
4276
|
option.value
|
|
4277
4277
|
),
|
|
@@ -5556,7 +5556,8 @@ var translation_default2 = {
|
|
|
5556
5556
|
date_range_min_days_error_one: "Range must be at least {{count}} day",
|
|
5557
5557
|
date_range_min_days_error_other: "Range must be at least {{count}} days",
|
|
5558
5558
|
past_dates: "Date cannot be before {{minDate}}",
|
|
5559
|
-
future_dates: "Date cannot be after {{maxDate}}"
|
|
5559
|
+
future_dates: "Date cannot be after {{maxDate}}",
|
|
5560
|
+
signature_placeholder_text: "Sign inside this box.<br/> Use your finger.<br/> Tap to start."
|
|
5560
5561
|
};
|
|
5561
5562
|
|
|
5562
5563
|
// src/locales/es/translation.json
|
|
@@ -8568,12 +8569,6 @@ var SIGNATURE_PROPS = {
|
|
|
8568
8569
|
maxWidth: 1.5,
|
|
8569
8570
|
dotSize: 1
|
|
8570
8571
|
};
|
|
8571
|
-
function breakIntoLines(text = "") {
|
|
8572
|
-
return text.split("\n").map((line, index) => /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_react69.Fragment, { children: [
|
|
8573
|
-
line,
|
|
8574
|
-
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)("br", {})
|
|
8575
|
-
] }, index));
|
|
8576
|
-
}
|
|
8577
8572
|
var SignatureCanvas = (0, import_react69.forwardRef)(
|
|
8578
8573
|
({ onClear, hasSignature, onEnd, onEnable, className, enabled }, ref) => {
|
|
8579
8574
|
const { t } = (0, import_react_i18next16.useTranslation)();
|
|
@@ -8608,7 +8603,7 @@ var SignatureCanvas = (0, import_react69.forwardRef)(
|
|
|
8608
8603
|
"mx-auto max-w-[154px] break-words text-center text-sm font-medium uppercase",
|
|
8609
8604
|
"text-[var(--signature-canvas-placeholder-text)] opacity-[0.55]"
|
|
8610
8605
|
),
|
|
8611
|
-
children:
|
|
8606
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_react_i18next16.Trans, { i18nKey: "signature_placeholder_text" })
|
|
8612
8607
|
}
|
|
8613
8608
|
)
|
|
8614
8609
|
]
|