@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 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 w-full flex-col", className), children: [
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-1.5", className), ...props, children: [
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
  ),
@@ -4439,20 +4439,20 @@ var HALO_ICON_STATUS = {
4439
4439
  var import_jsx_runtime51 = require("react/jsx-runtime");
4440
4440
  var statusStyles = {
4441
4441
  [HALO_ICON_STATUS.inactive]: {
4442
- background: "bg-[var(--chekin-color-surface-input-empty)]",
4443
- color: "text-[var(--chekin-color-gray-2)]"
4442
+ background: "bg-[#f4f6f8]",
4443
+ color: "text-[#9696b9]"
4444
4444
  },
4445
4445
  [HALO_ICON_STATUS.active]: {
4446
- background: "bg-[var(--chekin-color-surface-autocomplete)]",
4447
- color: "text-[var(--chekin-color-brand-blue)]"
4446
+ background: "bg-[#eff6ff]",
4447
+ color: "text-[#385cf8]"
4448
4448
  },
4449
4449
  [HALO_ICON_STATUS.success]: {
4450
4450
  background: "bg-[#e8fcf7]",
4451
4451
  color: "text-[#2bc29f]"
4452
4452
  },
4453
4453
  [HALO_ICON_STATUS.danger]: {
4454
- background: "bg-[#ffe2ed]",
4455
- color: "text-[var(--error-message-color)]"
4454
+ background: "bg-[#fff5f9]",
4455
+ color: "text-[#ff2467]"
4456
4456
  }
4457
4457
  };
4458
4458
  var HaloIcon = (0, import_react42.forwardRef)(
@@ -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)();
@@ -8594,7 +8589,7 @@ var SignatureCanvas = (0, import_react69.forwardRef)(
8594
8589
  type: "button",
8595
8590
  className: cn(
8596
8591
  "absolute left-0 top-0 z-10 flex h-[174px] w-[250px] flex-col items-center",
8597
- "justify-between rounded border-0 bg-[var(--signature-canvas-placeholder-bg)] px-0 pb-11 pt-10",
8592
+ "justify-between rounded border-0 bg-[var(--signature-canvas-placeholder-bg)] px-0 pb-7 pt-10",
8598
8593
  "cursor-pointer select-none"
8599
8594
  ),
8600
8595
  onClick: onEnable,
@@ -8605,10 +8600,10 @@ var SignatureCanvas = (0, import_react69.forwardRef)(
8605
8600
  "span",
8606
8601
  {
8607
8602
  className: cn(
8608
- "mx-auto max-w-[154px] break-words text-center text-sm font-medium uppercase",
8603
+ "mx-auto mt-2 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: breakIntoLines(t("signature_placeholder_text"))
8606
+ children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_react_i18next16.Trans, { i18nKey: "signature_placeholder_text" })
8612
8607
  }
8613
8608
  )
8614
8609
  ]
@@ -10239,15 +10234,15 @@ function UploadedFilesList({
10239
10234
  return /* @__PURE__ */ (0, import_jsx_runtime131.jsx)("div", { className: cn("flex flex-wrap gap-2.5", className), children: files.map((file, index) => /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(
10240
10235
  "div",
10241
10236
  {
10242
- className: "flex cursor-default items-center gap-2 rounded border border-[var(--chekin-color-gray-2)] bg-[var(--chekin-color-surface-pressed)] py-1.5 pl-3 pr-1.5",
10237
+ className: "flex cursor-default items-center gap-2 rounded border border-[#acacd5] bg-[#f0f0f8] py-1.5 pl-3 pr-1.5",
10243
10238
  children: [
10244
- /* @__PURE__ */ (0, import_jsx_runtime131.jsx)("span", { className: "text-nowrap text-sm font-medium leading-5 text-[var(--chekin-color-brand-navy)]", children: file.name }),
10239
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsx)("span", { className: "text-nowrap text-sm font-medium leading-5 text-[#161643]", children: file.name }),
10245
10240
  /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
10246
10241
  "button",
10247
10242
  {
10248
10243
  type: "button",
10249
10244
  onClick: () => onRemoveFile(file.name),
10250
- className: "flex h-[18px] w-[18px] shrink-0 cursor-pointer items-center justify-center rounded bg-[var(--chekin-color-gray-1)] transition-all hover:shadow-md active:opacity-95",
10245
+ 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",
10251
10246
  "aria-label": `Remove ${file.name}`,
10252
10247
  children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(import_lucide_react37.X, { className: "h-3.5 w-3.5 text-white", strokeWidth: 3 })
10253
10248
  }
@@ -14828,7 +14823,9 @@ function DashboardMultiSelectInternal({
14828
14823
  }, [isOpen, filteredOptions]);
14829
14824
  React58.useEffect(() => {
14830
14825
  if (!isOpen || !isMobile2) return;
14831
- const frame = window.requestAnimationFrame(() => mobileSearchInputRef.current?.focus());
14826
+ const frame = window.requestAnimationFrame(
14827
+ () => mobileSearchInputRef.current?.focus()
14828
+ );
14832
14829
  return () => window.cancelAnimationFrame(frame);
14833
14830
  }, [isOpen, isMobile2]);
14834
14831
  const openMenu = () => {
@@ -16761,7 +16758,13 @@ var DashboardDateRangePicker = React66.forwardRef(function DashboardDateRangePic
16761
16758
  const normalizedMaxDate = React66.useMemo(() => toDate(maxDate), [maxDate]);
16762
16759
  const formatter = React66.useMemo(() => formatDate(displayFormat), [displayFormat]);
16763
16760
  const parser = React66.useMemo(() => parseDate(displayFormat), [displayFormat]);
16764
- const { fromText, toText, setFromText, setToText, handleFromBlur, handleToBlur } = useRangeTextInputs({ value, format: formatter, parse: parser, onCommit: commit, onBlur });
16761
+ const { fromText, toText, setFromText, setToText, handleFromBlur, handleToBlur } = useRangeTextInputs({
16762
+ value,
16763
+ format: formatter,
16764
+ parse: parser,
16765
+ onCommit: commit,
16766
+ onBlur
16767
+ });
16765
16768
  const { month, setMonth, syncMonthToValue } = useRangeMonthSync(value);
16766
16769
  const [isOpen, setIsOpen] = React66.useState(false);
16767
16770
  const [focusedInput, setFocusedInput] = React66.useState(null);
@@ -16844,7 +16847,15 @@ var DashboardDateRangePicker = React66.forwardRef(function DashboardDateRangePic
16844
16847
  open: openCalendar,
16845
16848
  close: closeCalendar
16846
16849
  }),
16847
- [closeCalendar, commit, formatter, openCalendar, setFromText, setToText, syncMonthToValue]
16850
+ [
16851
+ closeCalendar,
16852
+ commit,
16853
+ formatter,
16854
+ openCalendar,
16855
+ setFromText,
16856
+ setToText,
16857
+ syncMonthToValue
16858
+ ]
16848
16859
  );
16849
16860
  return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
16850
16861
  "div",
@@ -17271,15 +17282,7 @@ var DashboardFileInput = React69.forwardRef(
17271
17282
  onClick: handleClear,
17272
17283
  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]",
17273
17284
  "aria-label": t("remove_file"),
17274
- children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(
17275
- import_lucide_react53.SquareX,
17276
- {
17277
- size: 15,
17278
- fill: "#9696b9",
17279
- color: "#f8f8f8",
17280
- strokeWidth: 1.8
17281
- }
17282
- )
17285
+ children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(import_lucide_react53.SquareX, { size: 15, fill: "#9696b9", color: "#f8f8f8", strokeWidth: 1.8 })
17283
17286
  }
17284
17287
  )
17285
17288
  ]