@chekinapp/ui 0.0.38 → 0.0.41
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 +64 -49
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -2
- package/dist/index.d.ts +14 -2
- package/dist/index.js +64 -49
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -54,14 +54,14 @@ declare enum AlertSize {
|
|
|
54
54
|
L = "L"
|
|
55
55
|
}
|
|
56
56
|
interface AlertBoxProps {
|
|
57
|
-
|
|
57
|
+
children: React$1.ReactNode;
|
|
58
58
|
type?: AlertType;
|
|
59
59
|
size?: AlertSize;
|
|
60
60
|
withIcon?: boolean;
|
|
61
61
|
className?: string;
|
|
62
62
|
customIcon?: React$1.ReactNode;
|
|
63
63
|
}
|
|
64
|
-
declare function AlertBox({
|
|
64
|
+
declare function AlertBox({ children, className, withIcon, size, type, customIcon, }: AlertBoxProps): react_jsx_runtime.JSX.Element;
|
|
65
65
|
declare namespace AlertBox {
|
|
66
66
|
var displayName: string;
|
|
67
67
|
}
|
|
@@ -792,6 +792,7 @@ declare const uiKitTranslations: {
|
|
|
792
792
|
would_you_like_to_save_them: string;
|
|
793
793
|
save: string;
|
|
794
794
|
dont_save: string;
|
|
795
|
+
copied_exclamation: string;
|
|
795
796
|
};
|
|
796
797
|
readonly es: {
|
|
797
798
|
verified: string;
|
|
@@ -858,6 +859,7 @@ declare const uiKitTranslations: {
|
|
|
858
859
|
would_you_like_to_save_them: string;
|
|
859
860
|
save: string;
|
|
860
861
|
dont_save: string;
|
|
862
|
+
copied_exclamation: string;
|
|
861
863
|
};
|
|
862
864
|
readonly fr: {
|
|
863
865
|
verified: string;
|
|
@@ -924,6 +926,7 @@ declare const uiKitTranslations: {
|
|
|
924
926
|
would_you_like_to_save_them: string;
|
|
925
927
|
save: string;
|
|
926
928
|
dont_save: string;
|
|
929
|
+
copied_exclamation: string;
|
|
927
930
|
};
|
|
928
931
|
readonly de: {
|
|
929
932
|
verified: string;
|
|
@@ -990,6 +993,7 @@ declare const uiKitTranslations: {
|
|
|
990
993
|
would_you_like_to_save_them: string;
|
|
991
994
|
save: string;
|
|
992
995
|
dont_save: string;
|
|
996
|
+
copied_exclamation: string;
|
|
993
997
|
};
|
|
994
998
|
readonly it: {
|
|
995
999
|
verified: string;
|
|
@@ -1056,6 +1060,7 @@ declare const uiKitTranslations: {
|
|
|
1056
1060
|
would_you_like_to_save_them: string;
|
|
1057
1061
|
save: string;
|
|
1058
1062
|
dont_save: string;
|
|
1063
|
+
copied_exclamation: string;
|
|
1059
1064
|
};
|
|
1060
1065
|
readonly pt: {
|
|
1061
1066
|
verified: string;
|
|
@@ -1122,6 +1127,7 @@ declare const uiKitTranslations: {
|
|
|
1122
1127
|
would_you_like_to_save_them: string;
|
|
1123
1128
|
save: string;
|
|
1124
1129
|
dont_save: string;
|
|
1130
|
+
copied_exclamation: string;
|
|
1125
1131
|
};
|
|
1126
1132
|
};
|
|
1127
1133
|
declare const uiKitI18nResources: {
|
|
@@ -1191,6 +1197,7 @@ declare const uiKitI18nResources: {
|
|
|
1191
1197
|
would_you_like_to_save_them: string;
|
|
1192
1198
|
save: string;
|
|
1193
1199
|
dont_save: string;
|
|
1200
|
+
copied_exclamation: string;
|
|
1194
1201
|
};
|
|
1195
1202
|
};
|
|
1196
1203
|
readonly es: {
|
|
@@ -1259,6 +1266,7 @@ declare const uiKitI18nResources: {
|
|
|
1259
1266
|
would_you_like_to_save_them: string;
|
|
1260
1267
|
save: string;
|
|
1261
1268
|
dont_save: string;
|
|
1269
|
+
copied_exclamation: string;
|
|
1262
1270
|
};
|
|
1263
1271
|
};
|
|
1264
1272
|
readonly fr: {
|
|
@@ -1327,6 +1335,7 @@ declare const uiKitI18nResources: {
|
|
|
1327
1335
|
would_you_like_to_save_them: string;
|
|
1328
1336
|
save: string;
|
|
1329
1337
|
dont_save: string;
|
|
1338
|
+
copied_exclamation: string;
|
|
1330
1339
|
};
|
|
1331
1340
|
};
|
|
1332
1341
|
readonly de: {
|
|
@@ -1395,6 +1404,7 @@ declare const uiKitI18nResources: {
|
|
|
1395
1404
|
would_you_like_to_save_them: string;
|
|
1396
1405
|
save: string;
|
|
1397
1406
|
dont_save: string;
|
|
1407
|
+
copied_exclamation: string;
|
|
1398
1408
|
};
|
|
1399
1409
|
};
|
|
1400
1410
|
readonly it: {
|
|
@@ -1463,6 +1473,7 @@ declare const uiKitI18nResources: {
|
|
|
1463
1473
|
would_you_like_to_save_them: string;
|
|
1464
1474
|
save: string;
|
|
1465
1475
|
dont_save: string;
|
|
1476
|
+
copied_exclamation: string;
|
|
1466
1477
|
};
|
|
1467
1478
|
};
|
|
1468
1479
|
readonly pt: {
|
|
@@ -1531,6 +1542,7 @@ declare const uiKitI18nResources: {
|
|
|
1531
1542
|
would_you_like_to_save_them: string;
|
|
1532
1543
|
save: string;
|
|
1533
1544
|
dont_save: string;
|
|
1545
|
+
copied_exclamation: string;
|
|
1534
1546
|
};
|
|
1535
1547
|
};
|
|
1536
1548
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -54,14 +54,14 @@ declare enum AlertSize {
|
|
|
54
54
|
L = "L"
|
|
55
55
|
}
|
|
56
56
|
interface AlertBoxProps {
|
|
57
|
-
|
|
57
|
+
children: React$1.ReactNode;
|
|
58
58
|
type?: AlertType;
|
|
59
59
|
size?: AlertSize;
|
|
60
60
|
withIcon?: boolean;
|
|
61
61
|
className?: string;
|
|
62
62
|
customIcon?: React$1.ReactNode;
|
|
63
63
|
}
|
|
64
|
-
declare function AlertBox({
|
|
64
|
+
declare function AlertBox({ children, className, withIcon, size, type, customIcon, }: AlertBoxProps): react_jsx_runtime.JSX.Element;
|
|
65
65
|
declare namespace AlertBox {
|
|
66
66
|
var displayName: string;
|
|
67
67
|
}
|
|
@@ -792,6 +792,7 @@ declare const uiKitTranslations: {
|
|
|
792
792
|
would_you_like_to_save_them: string;
|
|
793
793
|
save: string;
|
|
794
794
|
dont_save: string;
|
|
795
|
+
copied_exclamation: string;
|
|
795
796
|
};
|
|
796
797
|
readonly es: {
|
|
797
798
|
verified: string;
|
|
@@ -858,6 +859,7 @@ declare const uiKitTranslations: {
|
|
|
858
859
|
would_you_like_to_save_them: string;
|
|
859
860
|
save: string;
|
|
860
861
|
dont_save: string;
|
|
862
|
+
copied_exclamation: string;
|
|
861
863
|
};
|
|
862
864
|
readonly fr: {
|
|
863
865
|
verified: string;
|
|
@@ -924,6 +926,7 @@ declare const uiKitTranslations: {
|
|
|
924
926
|
would_you_like_to_save_them: string;
|
|
925
927
|
save: string;
|
|
926
928
|
dont_save: string;
|
|
929
|
+
copied_exclamation: string;
|
|
927
930
|
};
|
|
928
931
|
readonly de: {
|
|
929
932
|
verified: string;
|
|
@@ -990,6 +993,7 @@ declare const uiKitTranslations: {
|
|
|
990
993
|
would_you_like_to_save_them: string;
|
|
991
994
|
save: string;
|
|
992
995
|
dont_save: string;
|
|
996
|
+
copied_exclamation: string;
|
|
993
997
|
};
|
|
994
998
|
readonly it: {
|
|
995
999
|
verified: string;
|
|
@@ -1056,6 +1060,7 @@ declare const uiKitTranslations: {
|
|
|
1056
1060
|
would_you_like_to_save_them: string;
|
|
1057
1061
|
save: string;
|
|
1058
1062
|
dont_save: string;
|
|
1063
|
+
copied_exclamation: string;
|
|
1059
1064
|
};
|
|
1060
1065
|
readonly pt: {
|
|
1061
1066
|
verified: string;
|
|
@@ -1122,6 +1127,7 @@ declare const uiKitTranslations: {
|
|
|
1122
1127
|
would_you_like_to_save_them: string;
|
|
1123
1128
|
save: string;
|
|
1124
1129
|
dont_save: string;
|
|
1130
|
+
copied_exclamation: string;
|
|
1125
1131
|
};
|
|
1126
1132
|
};
|
|
1127
1133
|
declare const uiKitI18nResources: {
|
|
@@ -1191,6 +1197,7 @@ declare const uiKitI18nResources: {
|
|
|
1191
1197
|
would_you_like_to_save_them: string;
|
|
1192
1198
|
save: string;
|
|
1193
1199
|
dont_save: string;
|
|
1200
|
+
copied_exclamation: string;
|
|
1194
1201
|
};
|
|
1195
1202
|
};
|
|
1196
1203
|
readonly es: {
|
|
@@ -1259,6 +1266,7 @@ declare const uiKitI18nResources: {
|
|
|
1259
1266
|
would_you_like_to_save_them: string;
|
|
1260
1267
|
save: string;
|
|
1261
1268
|
dont_save: string;
|
|
1269
|
+
copied_exclamation: string;
|
|
1262
1270
|
};
|
|
1263
1271
|
};
|
|
1264
1272
|
readonly fr: {
|
|
@@ -1327,6 +1335,7 @@ declare const uiKitI18nResources: {
|
|
|
1327
1335
|
would_you_like_to_save_them: string;
|
|
1328
1336
|
save: string;
|
|
1329
1337
|
dont_save: string;
|
|
1338
|
+
copied_exclamation: string;
|
|
1330
1339
|
};
|
|
1331
1340
|
};
|
|
1332
1341
|
readonly de: {
|
|
@@ -1395,6 +1404,7 @@ declare const uiKitI18nResources: {
|
|
|
1395
1404
|
would_you_like_to_save_them: string;
|
|
1396
1405
|
save: string;
|
|
1397
1406
|
dont_save: string;
|
|
1407
|
+
copied_exclamation: string;
|
|
1398
1408
|
};
|
|
1399
1409
|
};
|
|
1400
1410
|
readonly it: {
|
|
@@ -1463,6 +1473,7 @@ declare const uiKitI18nResources: {
|
|
|
1463
1473
|
would_you_like_to_save_them: string;
|
|
1464
1474
|
save: string;
|
|
1465
1475
|
dont_save: string;
|
|
1476
|
+
copied_exclamation: string;
|
|
1466
1477
|
};
|
|
1467
1478
|
};
|
|
1468
1479
|
readonly pt: {
|
|
@@ -1531,6 +1542,7 @@ declare const uiKitI18nResources: {
|
|
|
1531
1542
|
would_you_like_to_save_them: string;
|
|
1532
1543
|
save: string;
|
|
1533
1544
|
dont_save: string;
|
|
1545
|
+
copied_exclamation: string;
|
|
1534
1546
|
};
|
|
1535
1547
|
};
|
|
1536
1548
|
};
|
package/dist/index.js
CHANGED
|
@@ -141,7 +141,7 @@ var typeStyles = {
|
|
|
141
141
|
["LIGHT" /* LIGHT */]: ""
|
|
142
142
|
};
|
|
143
143
|
function AlertBox({
|
|
144
|
-
|
|
144
|
+
children,
|
|
145
145
|
className = "",
|
|
146
146
|
withIcon = true,
|
|
147
147
|
size = "L" /* L */,
|
|
@@ -161,7 +161,7 @@ function AlertBox({
|
|
|
161
161
|
),
|
|
162
162
|
children: [
|
|
163
163
|
isIconVisible && (customIcon || getIcon(type)),
|
|
164
|
-
/* @__PURE__ */ jsx2("div", { className: "max-w-4xl text-left font-medium lg:max-w-full", children
|
|
164
|
+
/* @__PURE__ */ jsx2("div", { className: "max-w-4xl text-left font-medium lg:max-w-full", children })
|
|
165
165
|
]
|
|
166
166
|
}
|
|
167
167
|
);
|
|
@@ -1802,6 +1802,9 @@ function CopyIcon({
|
|
|
1802
1802
|
] }) });
|
|
1803
1803
|
}
|
|
1804
1804
|
|
|
1805
|
+
// src/copy-link-button/CopyLinkButton.tsx
|
|
1806
|
+
import { useTranslation as useTranslation5 } from "react-i18next";
|
|
1807
|
+
|
|
1805
1808
|
// src/hooks/use-copy-to-clipboard.ts
|
|
1806
1809
|
import { useEffect as useEffect3, useRef as useRef2, useState as useState4 } from "react";
|
|
1807
1810
|
|
|
@@ -1879,6 +1882,7 @@ function CopyLinkButton({
|
|
|
1879
1882
|
variant = "outline",
|
|
1880
1883
|
size = "sm"
|
|
1881
1884
|
}) {
|
|
1885
|
+
const { t } = useTranslation5();
|
|
1882
1886
|
const { isCopied, copy } = useCopyToClipboard({ value: link, onCopiedLink });
|
|
1883
1887
|
return /* @__PURE__ */ jsxs19(
|
|
1884
1888
|
Button,
|
|
@@ -1890,14 +1894,14 @@ function CopyLinkButton({
|
|
|
1890
1894
|
size,
|
|
1891
1895
|
children: [
|
|
1892
1896
|
leftAddon,
|
|
1893
|
-
isCopied ? copiedExclamationText || labelText : labelText
|
|
1897
|
+
isCopied ? copiedExclamationText || t("copied_exclamation") || labelText : labelText
|
|
1894
1898
|
]
|
|
1895
1899
|
}
|
|
1896
1900
|
);
|
|
1897
1901
|
}
|
|
1898
1902
|
|
|
1899
1903
|
// src/data-table/DataTable.tsx
|
|
1900
|
-
import { useTranslation as
|
|
1904
|
+
import { useTranslation as useTranslation6 } from "react-i18next";
|
|
1901
1905
|
import {
|
|
1902
1906
|
flexRender,
|
|
1903
1907
|
getCoreRowModel,
|
|
@@ -2021,7 +2025,7 @@ TableCaption.displayName = "TableCaption";
|
|
|
2021
2025
|
// src/data-table/DataTable.tsx
|
|
2022
2026
|
import { jsx as jsx28, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2023
2027
|
function DataTable({ columns, data }) {
|
|
2024
|
-
const { t } =
|
|
2028
|
+
const { t } = useTranslation6();
|
|
2025
2029
|
const table = useReactTable({
|
|
2026
2030
|
data,
|
|
2027
2031
|
columns,
|
|
@@ -2989,7 +2993,7 @@ var DefaultSelectTrigger = React13.forwardRef(
|
|
|
2989
2993
|
DefaultSelectTrigger.displayName = "SelectTrigger";
|
|
2990
2994
|
|
|
2991
2995
|
// src/download-entry-forms-button/DownloadEntryFormsButton.tsx
|
|
2992
|
-
import { useTranslation as
|
|
2996
|
+
import { useTranslation as useTranslation7 } from "react-i18next";
|
|
2993
2997
|
import { Download } from "lucide-react";
|
|
2994
2998
|
import { jsx as jsx32, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
2995
2999
|
function DownloadEntryFormsButton({
|
|
@@ -2999,7 +3003,7 @@ function DownloadEntryFormsButton({
|
|
|
2999
3003
|
onClick,
|
|
3000
3004
|
label
|
|
3001
3005
|
}) {
|
|
3002
|
-
const { t } =
|
|
3006
|
+
const { t } = useTranslation7();
|
|
3003
3007
|
return /* @__PURE__ */ jsx32("div", { className: cn("flex", className), children: /* @__PURE__ */ jsxs24(Tooltip, { children: [
|
|
3004
3008
|
/* @__PURE__ */ jsx32(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxs24(
|
|
3005
3009
|
Button,
|
|
@@ -3514,7 +3518,7 @@ function EmptyMedia({
|
|
|
3514
3518
|
|
|
3515
3519
|
// src/empty-section-placeholder/EmptySectionPlaceholder.tsx
|
|
3516
3520
|
import { Tag } from "lucide-react";
|
|
3517
|
-
import { useTranslation as
|
|
3521
|
+
import { useTranslation as useTranslation8 } from "react-i18next";
|
|
3518
3522
|
|
|
3519
3523
|
// src/halo-icon/HaloIcon.tsx
|
|
3520
3524
|
import { forwardRef as forwardRef19 } from "react";
|
|
@@ -3586,7 +3590,7 @@ function EmptySectionPlaceholder({
|
|
|
3586
3590
|
icon,
|
|
3587
3591
|
className
|
|
3588
3592
|
}) {
|
|
3589
|
-
const { t } =
|
|
3593
|
+
const { t } = useTranslation8();
|
|
3590
3594
|
return /* @__PURE__ */ jsxs30(
|
|
3591
3595
|
"div",
|
|
3592
3596
|
{
|
|
@@ -3647,7 +3651,7 @@ var ExternalLink = React15.forwardRef(
|
|
|
3647
3651
|
ExternalLink.displayName = "ExternalLink";
|
|
3648
3652
|
|
|
3649
3653
|
// src/feature-card/FeatureCard.tsx
|
|
3650
|
-
import { useTranslation as
|
|
3654
|
+
import { useTranslation as useTranslation10 } from "react-i18next";
|
|
3651
3655
|
import { Play as Play3 } from "lucide-react";
|
|
3652
3656
|
|
|
3653
3657
|
// src/switch/Switch.tsx
|
|
@@ -3729,7 +3733,7 @@ Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
|
3729
3733
|
|
|
3730
3734
|
// src/video-player/VideoPlayer.tsx
|
|
3731
3735
|
import { useEffect as useEffect18, useRef as useRef12, useState as useState13 } from "react";
|
|
3732
|
-
import { useTranslation as
|
|
3736
|
+
import { useTranslation as useTranslation9 } from "react-i18next";
|
|
3733
3737
|
import {
|
|
3734
3738
|
Loader2,
|
|
3735
3739
|
Maximize,
|
|
@@ -3751,7 +3755,7 @@ function VideoPlayer({
|
|
|
3751
3755
|
isFullScreen = false,
|
|
3752
3756
|
autoPlay = false
|
|
3753
3757
|
}) {
|
|
3754
|
-
const { t } =
|
|
3758
|
+
const { t } = useTranslation9();
|
|
3755
3759
|
const videoRef = useRef12(null);
|
|
3756
3760
|
const iframeRef = useRef12(null);
|
|
3757
3761
|
const containerRef = useRef12(null);
|
|
@@ -4055,7 +4059,7 @@ function FeatureCard({
|
|
|
4055
4059
|
disabled = false,
|
|
4056
4060
|
comingSoon = false
|
|
4057
4061
|
}) {
|
|
4058
|
-
const { t } =
|
|
4062
|
+
const { t } = useTranslation10();
|
|
4059
4063
|
const {
|
|
4060
4064
|
isOpen: isVideoTutorialOpen,
|
|
4061
4065
|
openModal: openVideoTutorial,
|
|
@@ -4233,7 +4237,7 @@ import {
|
|
|
4233
4237
|
useId as useId4,
|
|
4234
4238
|
useState as useState14
|
|
4235
4239
|
} from "react";
|
|
4236
|
-
import { useTranslation as
|
|
4240
|
+
import { useTranslation as useTranslation11 } from "react-i18next";
|
|
4237
4241
|
import { jsx as jsx56, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
4238
4242
|
var FreeTextField = forwardRef23(
|
|
4239
4243
|
({
|
|
@@ -4256,7 +4260,7 @@ var FreeTextField = forwardRef23(
|
|
|
4256
4260
|
disabled,
|
|
4257
4261
|
...inputProps
|
|
4258
4262
|
}, ref) => {
|
|
4259
|
-
const { t } =
|
|
4263
|
+
const { t } = useTranslation11();
|
|
4260
4264
|
const inputId = useId4();
|
|
4261
4265
|
const [internalValue, setInternalValue] = useState14(defaultValue ?? "");
|
|
4262
4266
|
const [isFocused, setIsFocused] = useState14(false);
|
|
@@ -5124,7 +5128,8 @@ var translation_default = {
|
|
|
5124
5128
|
you_have_made_changes: "You have made changes",
|
|
5125
5129
|
would_you_like_to_save_them: "Would you like to save them?",
|
|
5126
5130
|
save: "Save",
|
|
5127
|
-
dont_save: "Don't save"
|
|
5131
|
+
dont_save: "Don't save",
|
|
5132
|
+
copied_exclamation: "Kopiert!"
|
|
5128
5133
|
};
|
|
5129
5134
|
|
|
5130
5135
|
// src/locales/en/translation.json
|
|
@@ -5192,7 +5197,8 @@ var translation_default2 = {
|
|
|
5192
5197
|
you_have_made_changes: "You have made changes",
|
|
5193
5198
|
would_you_like_to_save_them: "Would you like to save them?",
|
|
5194
5199
|
save: "Save",
|
|
5195
|
-
dont_save: "Don't save"
|
|
5200
|
+
dont_save: "Don't save",
|
|
5201
|
+
copied_exclamation: "Copied!"
|
|
5196
5202
|
};
|
|
5197
5203
|
|
|
5198
5204
|
// src/locales/es/translation.json
|
|
@@ -5260,7 +5266,8 @@ var translation_default3 = {
|
|
|
5260
5266
|
you_have_made_changes: "You have made changes",
|
|
5261
5267
|
would_you_like_to_save_them: "Would you like to save them?",
|
|
5262
5268
|
save: "Save",
|
|
5263
|
-
dont_save: "Don't save"
|
|
5269
|
+
dont_save: "Don't save",
|
|
5270
|
+
copied_exclamation: "\xA1Copiado!"
|
|
5264
5271
|
};
|
|
5265
5272
|
|
|
5266
5273
|
// src/locales/fr/translation.json
|
|
@@ -5328,7 +5335,8 @@ var translation_default4 = {
|
|
|
5328
5335
|
you_have_made_changes: "You have made changes",
|
|
5329
5336
|
would_you_like_to_save_them: "Would you like to save them?",
|
|
5330
5337
|
save: "Save",
|
|
5331
|
-
dont_save: "Don't save"
|
|
5338
|
+
dont_save: "Don't save",
|
|
5339
|
+
copied_exclamation: "Copi\xE9 !"
|
|
5332
5340
|
};
|
|
5333
5341
|
|
|
5334
5342
|
// src/locales/it/translation.json
|
|
@@ -5396,7 +5404,8 @@ var translation_default5 = {
|
|
|
5396
5404
|
you_have_made_changes: "You have made changes",
|
|
5397
5405
|
would_you_like_to_save_them: "Would you like to save them?",
|
|
5398
5406
|
save: "Save",
|
|
5399
|
-
dont_save: "Don't save"
|
|
5407
|
+
dont_save: "Don't save",
|
|
5408
|
+
copied_exclamation: "Copiato!"
|
|
5400
5409
|
};
|
|
5401
5410
|
|
|
5402
5411
|
// src/locales/pt/translation.json
|
|
@@ -5464,7 +5473,8 @@ var translation_default6 = {
|
|
|
5464
5473
|
you_have_made_changes: "You have made changes",
|
|
5465
5474
|
would_you_like_to_save_them: "Would you like to save them?",
|
|
5466
5475
|
save: "Save",
|
|
5467
|
-
dont_save: "Don't save"
|
|
5476
|
+
dont_save: "Don't save",
|
|
5477
|
+
copied_exclamation: "Copiado!"
|
|
5468
5478
|
};
|
|
5469
5479
|
|
|
5470
5480
|
// src/i18n/resources.ts
|
|
@@ -5486,7 +5496,7 @@ var uiKitI18nResources = {
|
|
|
5486
5496
|
};
|
|
5487
5497
|
|
|
5488
5498
|
// src/iv-status-badge/IVStatusBadge.tsx
|
|
5489
|
-
import { useTranslation as
|
|
5499
|
+
import { useTranslation as useTranslation12 } from "react-i18next";
|
|
5490
5500
|
import { AlertCircleIcon, CheckIcon, ClockIcon } from "lucide-react";
|
|
5491
5501
|
import { jsx as jsx67, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
5492
5502
|
var IV_BADGE_STATUS = {
|
|
@@ -5495,7 +5505,7 @@ var IV_BADGE_STATUS = {
|
|
|
5495
5505
|
failed: "failed"
|
|
5496
5506
|
};
|
|
5497
5507
|
function IVStatusBadge({ status, size = "md", className = "" }) {
|
|
5498
|
-
const { t } =
|
|
5508
|
+
const { t } = useTranslation12();
|
|
5499
5509
|
const iconSize = size === "sm" ? "h-3 w-3" : "h-3.5 w-3.5";
|
|
5500
5510
|
const textSize = size === "sm" ? "text-xs" : "text-sm";
|
|
5501
5511
|
const baseClassName = "inline-flex items-center gap-1 rounded-full border px-3 py-1 shadow-sm";
|
|
@@ -5628,10 +5638,10 @@ function LargeModal({
|
|
|
5628
5638
|
|
|
5629
5639
|
// src/learn-more-button/LearnMoreButton.tsx
|
|
5630
5640
|
import { BookOpenIcon } from "lucide-react";
|
|
5631
|
-
import { useTranslation as
|
|
5641
|
+
import { useTranslation as useTranslation13 } from "react-i18next";
|
|
5632
5642
|
import { jsx as jsx69, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
5633
5643
|
function LearnMoreButton({ label, ...props }) {
|
|
5634
|
-
const { t } =
|
|
5644
|
+
const { t } = useTranslation13();
|
|
5635
5645
|
return /* @__PURE__ */ jsxs43(Button, { variant: "link", ...props, children: [
|
|
5636
5646
|
/* @__PURE__ */ jsx69(BookOpenIcon, { className: "size-5 text-[var(--button-link-text)]" }),
|
|
5637
5647
|
label || t("learn_more")
|
|
@@ -5665,10 +5675,10 @@ var Link = memo3(LinkInternal);
|
|
|
5665
5675
|
// src/image-full-screen-view/ImageFullScreenView.tsx
|
|
5666
5676
|
import { useState as useState18 } from "react";
|
|
5667
5677
|
import { RotateCw, X as X4, ZoomIn, ZoomOut } from "lucide-react";
|
|
5668
|
-
import { useTranslation as
|
|
5678
|
+
import { useTranslation as useTranslation14 } from "react-i18next";
|
|
5669
5679
|
import { jsx as jsx71, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
5670
5680
|
function ImageFullScreenView({ src, alt, onClose }) {
|
|
5671
|
-
const { t } =
|
|
5681
|
+
const { t } = useTranslation14();
|
|
5672
5682
|
const [scale, setScale] = useState18(1);
|
|
5673
5683
|
const [rotation, setRotation] = useState18(0);
|
|
5674
5684
|
useClickEscape({ onClick: onClose });
|
|
@@ -5759,7 +5769,7 @@ function ImageFullScreenView({ src, alt, onClose }) {
|
|
|
5759
5769
|
|
|
5760
5770
|
// src/loader/Loader.tsx
|
|
5761
5771
|
import { Loader2 as Loader22 } from "lucide-react";
|
|
5762
|
-
import { useTranslation as
|
|
5772
|
+
import { useTranslation as useTranslation15 } from "react-i18next";
|
|
5763
5773
|
import { jsx as jsx72, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
5764
5774
|
function Loader({
|
|
5765
5775
|
size = "md",
|
|
@@ -5768,7 +5778,7 @@ function Loader({
|
|
|
5768
5778
|
showText = true,
|
|
5769
5779
|
variant = "primary"
|
|
5770
5780
|
}) {
|
|
5771
|
-
const { t } =
|
|
5781
|
+
const { t } = useTranslation15();
|
|
5772
5782
|
const sizeClasses3 = {
|
|
5773
5783
|
sm: "h-4 w-4",
|
|
5774
5784
|
md: "h-8 w-8",
|
|
@@ -6025,10 +6035,10 @@ function OverlayLoader({
|
|
|
6025
6035
|
}
|
|
6026
6036
|
|
|
6027
6037
|
// src/page-loader/PageLoader.tsx
|
|
6028
|
-
import { useTranslation as
|
|
6038
|
+
import { useTranslation as useTranslation16 } from "react-i18next";
|
|
6029
6039
|
import { jsx as jsx77, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
6030
6040
|
function PageLoader({ className, description, ...props }) {
|
|
6031
|
-
const { t } =
|
|
6041
|
+
const { t } = useTranslation16();
|
|
6032
6042
|
return /* @__PURE__ */ jsx77(
|
|
6033
6043
|
"div",
|
|
6034
6044
|
{
|
|
@@ -6042,7 +6052,7 @@ function PageLoader({ className, description, ...props }) {
|
|
|
6042
6052
|
}
|
|
6043
6053
|
|
|
6044
6054
|
// src/pagination/Pagination.tsx
|
|
6045
|
-
import { useTranslation as
|
|
6055
|
+
import { useTranslation as useTranslation17 } from "react-i18next";
|
|
6046
6056
|
import { ChevronLeft as ChevronLeft2, ChevronRight as ChevronRight4, ChevronsLeft, ChevronsRight } from "lucide-react";
|
|
6047
6057
|
|
|
6048
6058
|
// src/select/Select.tsx
|
|
@@ -6465,7 +6475,7 @@ function Pagination({
|
|
|
6465
6475
|
totalItems = 0,
|
|
6466
6476
|
className
|
|
6467
6477
|
}) {
|
|
6468
|
-
const { t } =
|
|
6478
|
+
const { t } = useTranslation17();
|
|
6469
6479
|
const isSimpleVariant = variant === "simple";
|
|
6470
6480
|
const startItem = totalItems === 0 ? 0 : (page - 1) * pageSize + 1;
|
|
6471
6481
|
const endItem = Math.min(page * pageSize, totalItems);
|
|
@@ -6918,7 +6928,7 @@ function RatingRadioGroup({
|
|
|
6918
6928
|
// src/rating-stars/RatingStars.tsx
|
|
6919
6929
|
import * as React24 from "react";
|
|
6920
6930
|
import { Star as Star2 } from "lucide-react";
|
|
6921
|
-
import { useTranslation as
|
|
6931
|
+
import { useTranslation as useTranslation18 } from "react-i18next";
|
|
6922
6932
|
import { jsx as jsx90, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
6923
6933
|
function RatingStars({
|
|
6924
6934
|
rating,
|
|
@@ -6933,7 +6943,7 @@ function RatingStars({
|
|
|
6933
6943
|
filledColor = "#ffb700",
|
|
6934
6944
|
emptyColor = "var(--chekin-color-gray-3)"
|
|
6935
6945
|
}) {
|
|
6936
|
-
const { t } =
|
|
6946
|
+
const { t } = useTranslation18();
|
|
6937
6947
|
const normalizedRating = Math.max(0, Math.min(maxRating, rating));
|
|
6938
6948
|
const stars = Array.from({ length: maxRating }, (_, index) => index + 1);
|
|
6939
6949
|
const componentId = React24.useId();
|
|
@@ -7018,7 +7028,7 @@ function SearchButton({ onClick, className, icon, ariaLabel }) {
|
|
|
7018
7028
|
|
|
7019
7029
|
// src/search-input/SearchInput.tsx
|
|
7020
7030
|
import { Loader2 as Loader23, Search as Search2, X as X6 } from "lucide-react";
|
|
7021
|
-
import { useTranslation as
|
|
7031
|
+
import { useTranslation as useTranslation19 } from "react-i18next";
|
|
7022
7032
|
import { jsx as jsx93, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
7023
7033
|
function SearchInput({
|
|
7024
7034
|
disabled,
|
|
@@ -7033,7 +7043,7 @@ function SearchInput({
|
|
|
7033
7043
|
className,
|
|
7034
7044
|
...props
|
|
7035
7045
|
}) {
|
|
7036
|
-
const { t } =
|
|
7046
|
+
const { t } = useTranslation19();
|
|
7037
7047
|
const placeholderText = placeholder || `${t("search_property")}...`;
|
|
7038
7048
|
const isBlocked = Boolean(disabled) || Boolean(loading);
|
|
7039
7049
|
const optionalLabel = optional ? typeof optional === "string" ? optional : t("optional") : void 0;
|
|
@@ -8336,7 +8346,7 @@ var SmallGridSingleItem = memo5(
|
|
|
8336
8346
|
SmallGridSingleItem.displayName = "SmallGridSingleItem";
|
|
8337
8347
|
|
|
8338
8348
|
// src/sorting-action/SortingAction.tsx
|
|
8339
|
-
import { useTranslation as
|
|
8349
|
+
import { useTranslation as useTranslation20 } from "react-i18next";
|
|
8340
8350
|
import { ArrowDown, ArrowDownUpIcon, ArrowUp, Minus as Minus2 } from "lucide-react";
|
|
8341
8351
|
import { jsx as jsx105, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
8342
8352
|
function SortingAction({
|
|
@@ -8347,7 +8357,7 @@ function SortingAction({
|
|
|
8347
8357
|
variant = "by_other",
|
|
8348
8358
|
onOpenChange
|
|
8349
8359
|
}) {
|
|
8350
|
-
const { t } =
|
|
8360
|
+
const { t } = useTranslation20();
|
|
8351
8361
|
return /* @__PURE__ */ jsxs69(DropdownMenu, { open, onOpenChange, children: [
|
|
8352
8362
|
/* @__PURE__ */ jsx105(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx105(
|
|
8353
8363
|
"button",
|
|
@@ -8396,7 +8406,7 @@ function SortingAction({
|
|
|
8396
8406
|
|
|
8397
8407
|
// src/status-button/StatusButton.tsx
|
|
8398
8408
|
import { useMemo as useMemo5 } from "react";
|
|
8399
|
-
import { useTranslation as
|
|
8409
|
+
import { useTranslation as useTranslation21 } from "react-i18next";
|
|
8400
8410
|
import { AlertCircle as AlertCircle2, CheckCircle, Loader2 as Loader24 } from "lucide-react";
|
|
8401
8411
|
import { jsx as jsx106, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
8402
8412
|
function StatusButton({
|
|
@@ -8412,7 +8422,7 @@ function StatusButton({
|
|
|
8412
8422
|
variant = "default",
|
|
8413
8423
|
...props
|
|
8414
8424
|
}) {
|
|
8415
|
-
const { t } =
|
|
8425
|
+
const { t } = useTranslation21();
|
|
8416
8426
|
const configMap = useMemo5(() => {
|
|
8417
8427
|
const defaultLoadingConfig = {
|
|
8418
8428
|
text: loadingText ?? `${t("saving")}...`,
|
|
@@ -9054,7 +9064,7 @@ var Toggles = forwardRef45(TogglesInternal);
|
|
|
9054
9064
|
import * as React29 from "react";
|
|
9055
9065
|
import * as LabelPrimitive2 from "@radix-ui/react-label";
|
|
9056
9066
|
import { cva as cva14 } from "class-variance-authority";
|
|
9057
|
-
import { useTranslation as
|
|
9067
|
+
import { useTranslation as useTranslation22 } from "react-i18next";
|
|
9058
9068
|
|
|
9059
9069
|
// src/text-field/EndIcon.tsx
|
|
9060
9070
|
import { jsx as jsx117 } from "react/jsx-runtime";
|
|
@@ -9184,7 +9194,7 @@ var TextField = React29.forwardRef(
|
|
|
9184
9194
|
readOnly,
|
|
9185
9195
|
...props
|
|
9186
9196
|
}, ref) => {
|
|
9187
|
-
const { t } =
|
|
9197
|
+
const { t } = useTranslation22();
|
|
9188
9198
|
const hasError = Boolean(error);
|
|
9189
9199
|
const autoId = React29.useId();
|
|
9190
9200
|
const inputId = props.id || autoId;
|
|
@@ -10287,7 +10297,7 @@ var DEVICE = {
|
|
|
10287
10297
|
// src/field-trigger/FieldTrigger.tsx
|
|
10288
10298
|
import * as React32 from "react";
|
|
10289
10299
|
import { Loader2 as Loader25 } from "lucide-react";
|
|
10290
|
-
import { useTranslation as
|
|
10300
|
+
import { useTranslation as useTranslation23 } from "react-i18next";
|
|
10291
10301
|
|
|
10292
10302
|
// src/field-error-message/FieldErrorMessage.tsx
|
|
10293
10303
|
import { AlertCircle as AlertCircle3 } from "lucide-react";
|
|
@@ -10360,7 +10370,7 @@ var FieldTrigger = React32.forwardRef(
|
|
|
10360
10370
|
onKeyDown,
|
|
10361
10371
|
...props
|
|
10362
10372
|
}, ref) => {
|
|
10363
|
-
const { t } =
|
|
10373
|
+
const { t } = useTranslation23();
|
|
10364
10374
|
const hasValue = Boolean(valueText);
|
|
10365
10375
|
const isRaised = hasValue || forceFloatingLabel;
|
|
10366
10376
|
const optionalLabel = optional ? typeof optional === "string" ? optional : t("optional") : void 0;
|
|
@@ -10424,7 +10434,7 @@ var FieldTrigger = React32.forwardRef(
|
|
|
10424
10434
|
className: cn(
|
|
10425
10435
|
"absolute left-0 origin-left truncate transition-all duration-200 ease-out",
|
|
10426
10436
|
hasLabelMeta ? "" : "pointer-events-none",
|
|
10427
|
-
isAirbnbVariant ? isRaised ? "top-
|
|
10437
|
+
isAirbnbVariant ? isRaised ? "top-[-1px] translate-y-0 text-xs leading-5" : "top-1/2 -translate-y-1/2 text-[16px] leading-7" : isRaised ? "-top-2 translate-y-0 bg-white px-1 text-[12px] font-medium leading-4" : "top-1/2 -translate-y-1/2 text-[16px] leading-6",
|
|
10428
10438
|
hasInvalidState ? "text-[var(--error-message-color)]" : isAirbnbVariant ? "text-[#6c6c6c]" : "text-[#7A8399]"
|
|
10429
10439
|
),
|
|
10430
10440
|
children: animatedLabel
|
|
@@ -12007,6 +12017,11 @@ var AirbnbSelect = React39.forwardRef(function AirbnbSelect2({
|
|
|
12007
12017
|
|
|
12008
12018
|
// src/airbnb/phone-field/PhoneField.tsx
|
|
12009
12019
|
import { jsx as jsx139, jsxs as jsxs93 } from "react/jsx-runtime";
|
|
12020
|
+
function formatPhoneCodeOptionLabel(option) {
|
|
12021
|
+
const label = String(option.label);
|
|
12022
|
+
const value = String(option.value);
|
|
12023
|
+
return label.includes(value) ? label : `${label} (${value})`;
|
|
12024
|
+
}
|
|
12010
12025
|
var PhoneField = React40.forwardRef(
|
|
12011
12026
|
({
|
|
12012
12027
|
variant = "default",
|
|
@@ -12035,7 +12050,7 @@ var PhoneField = React40.forwardRef(
|
|
|
12035
12050
|
const codeOptions = React40.useMemo(
|
|
12036
12051
|
() => options.map((option) => ({
|
|
12037
12052
|
value: option.value,
|
|
12038
|
-
label:
|
|
12053
|
+
label: formatPhoneCodeOptionLabel(option),
|
|
12039
12054
|
disabled: option.disabled
|
|
12040
12055
|
})),
|
|
12041
12056
|
[options]
|
|
@@ -12183,11 +12198,11 @@ PhoneField.displayName = "PhoneField";
|
|
|
12183
12198
|
|
|
12184
12199
|
// src/airbnb/search-input/SearchInput.tsx
|
|
12185
12200
|
import * as React41 from "react";
|
|
12186
|
-
import { useTranslation as
|
|
12201
|
+
import { useTranslation as useTranslation24 } from "react-i18next";
|
|
12187
12202
|
import { Search as Search3, X as X8 } from "lucide-react";
|
|
12188
12203
|
import { jsx as jsx140, jsxs as jsxs94 } from "react/jsx-runtime";
|
|
12189
12204
|
var AirbnbSearchInput = React41.forwardRef(({ onReset, placeholder, wrapperClassName, ...props }, ref) => {
|
|
12190
|
-
const { t } =
|
|
12205
|
+
const { t } = useTranslation24();
|
|
12191
12206
|
const placeholderText = placeholder || t("search_property") + "...";
|
|
12192
12207
|
return /* @__PURE__ */ jsxs94("div", { className: cn("input-wrapper relative", wrapperClassName), children: [
|
|
12193
12208
|
/* @__PURE__ */ jsx140(Search3, { className: "absolute left-4 top-1/2 h-5 w-5 -translate-y-1/2 transform text-[#9696B9]" }),
|