@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.cjs
CHANGED
|
@@ -487,7 +487,7 @@ var typeStyles = {
|
|
|
487
487
|
["LIGHT" /* LIGHT */]: ""
|
|
488
488
|
};
|
|
489
489
|
function AlertBox({
|
|
490
|
-
|
|
490
|
+
children,
|
|
491
491
|
className = "",
|
|
492
492
|
withIcon = true,
|
|
493
493
|
size = "L" /* L */,
|
|
@@ -507,7 +507,7 @@ function AlertBox({
|
|
|
507
507
|
),
|
|
508
508
|
children: [
|
|
509
509
|
isIconVisible && (customIcon || getIcon(type)),
|
|
510
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "max-w-4xl text-left font-medium lg:max-w-full", children
|
|
510
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "max-w-4xl text-left font-medium lg:max-w-full", children })
|
|
511
511
|
]
|
|
512
512
|
}
|
|
513
513
|
);
|
|
@@ -2143,6 +2143,9 @@ function CopyIcon({
|
|
|
2143
2143
|
] }) });
|
|
2144
2144
|
}
|
|
2145
2145
|
|
|
2146
|
+
// src/copy-link-button/CopyLinkButton.tsx
|
|
2147
|
+
var import_react_i18next5 = require("react-i18next");
|
|
2148
|
+
|
|
2146
2149
|
// src/hooks/use-copy-to-clipboard.ts
|
|
2147
2150
|
var import_react6 = require("react");
|
|
2148
2151
|
|
|
@@ -2220,6 +2223,7 @@ function CopyLinkButton({
|
|
|
2220
2223
|
variant = "outline",
|
|
2221
2224
|
size = "sm"
|
|
2222
2225
|
}) {
|
|
2226
|
+
const { t } = (0, import_react_i18next5.useTranslation)();
|
|
2223
2227
|
const { isCopied, copy } = useCopyToClipboard({ value: link, onCopiedLink });
|
|
2224
2228
|
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
2225
2229
|
Button,
|
|
@@ -2231,14 +2235,14 @@ function CopyLinkButton({
|
|
|
2231
2235
|
size,
|
|
2232
2236
|
children: [
|
|
2233
2237
|
leftAddon,
|
|
2234
|
-
isCopied ? copiedExclamationText || labelText : labelText
|
|
2238
|
+
isCopied ? copiedExclamationText || t("copied_exclamation") || labelText : labelText
|
|
2235
2239
|
]
|
|
2236
2240
|
}
|
|
2237
2241
|
);
|
|
2238
2242
|
}
|
|
2239
2243
|
|
|
2240
2244
|
// src/data-table/DataTable.tsx
|
|
2241
|
-
var
|
|
2245
|
+
var import_react_i18next6 = require("react-i18next");
|
|
2242
2246
|
var import_react_table = require("@tanstack/react-table");
|
|
2243
2247
|
|
|
2244
2248
|
// src/table/Table.tsx
|
|
@@ -2356,7 +2360,7 @@ TableCaption.displayName = "TableCaption";
|
|
|
2356
2360
|
// src/data-table/DataTable.tsx
|
|
2357
2361
|
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
2358
2362
|
function DataTable({ columns, data }) {
|
|
2359
|
-
const { t } = (0,
|
|
2363
|
+
const { t } = (0, import_react_i18next6.useTranslation)();
|
|
2360
2364
|
const table = (0, import_react_table.useReactTable)({
|
|
2361
2365
|
data,
|
|
2362
2366
|
columns,
|
|
@@ -3324,7 +3328,7 @@ var DefaultSelectTrigger = React13.forwardRef(
|
|
|
3324
3328
|
DefaultSelectTrigger.displayName = "SelectTrigger";
|
|
3325
3329
|
|
|
3326
3330
|
// src/download-entry-forms-button/DownloadEntryFormsButton.tsx
|
|
3327
|
-
var
|
|
3331
|
+
var import_react_i18next7 = require("react-i18next");
|
|
3328
3332
|
var import_lucide_react11 = require("lucide-react");
|
|
3329
3333
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
3330
3334
|
function DownloadEntryFormsButton({
|
|
@@ -3334,7 +3338,7 @@ function DownloadEntryFormsButton({
|
|
|
3334
3338
|
onClick,
|
|
3335
3339
|
label
|
|
3336
3340
|
}) {
|
|
3337
|
-
const { t } = (0,
|
|
3341
|
+
const { t } = (0, import_react_i18next7.useTranslation)();
|
|
3338
3342
|
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: cn("flex", className), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Tooltip, { children: [
|
|
3339
3343
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
3340
3344
|
Button,
|
|
@@ -3849,7 +3853,7 @@ function EmptyMedia({
|
|
|
3849
3853
|
|
|
3850
3854
|
// src/empty-section-placeholder/EmptySectionPlaceholder.tsx
|
|
3851
3855
|
var import_lucide_react13 = require("lucide-react");
|
|
3852
|
-
var
|
|
3856
|
+
var import_react_i18next8 = require("react-i18next");
|
|
3853
3857
|
|
|
3854
3858
|
// src/halo-icon/HaloIcon.tsx
|
|
3855
3859
|
var import_react34 = require("react");
|
|
@@ -3921,7 +3925,7 @@ function EmptySectionPlaceholder({
|
|
|
3921
3925
|
icon,
|
|
3922
3926
|
className
|
|
3923
3927
|
}) {
|
|
3924
|
-
const { t } = (0,
|
|
3928
|
+
const { t } = (0, import_react_i18next8.useTranslation)();
|
|
3925
3929
|
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
3926
3930
|
"div",
|
|
3927
3931
|
{
|
|
@@ -3982,7 +3986,7 @@ var ExternalLink = React15.forwardRef(
|
|
|
3982
3986
|
ExternalLink.displayName = "ExternalLink";
|
|
3983
3987
|
|
|
3984
3988
|
// src/feature-card/FeatureCard.tsx
|
|
3985
|
-
var
|
|
3989
|
+
var import_react_i18next10 = require("react-i18next");
|
|
3986
3990
|
var import_lucide_react15 = require("lucide-react");
|
|
3987
3991
|
|
|
3988
3992
|
// src/switch/Switch.tsx
|
|
@@ -4064,7 +4068,7 @@ Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
|
4064
4068
|
|
|
4065
4069
|
// src/video-player/VideoPlayer.tsx
|
|
4066
4070
|
var import_react35 = require("react");
|
|
4067
|
-
var
|
|
4071
|
+
var import_react_i18next9 = require("react-i18next");
|
|
4068
4072
|
var import_lucide_react14 = require("lucide-react");
|
|
4069
4073
|
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
4070
4074
|
function VideoPlayer({
|
|
@@ -4075,7 +4079,7 @@ function VideoPlayer({
|
|
|
4075
4079
|
isFullScreen = false,
|
|
4076
4080
|
autoPlay = false
|
|
4077
4081
|
}) {
|
|
4078
|
-
const { t } = (0,
|
|
4082
|
+
const { t } = (0, import_react_i18next9.useTranslation)();
|
|
4079
4083
|
const videoRef = (0, import_react35.useRef)(null);
|
|
4080
4084
|
const iframeRef = (0, import_react35.useRef)(null);
|
|
4081
4085
|
const containerRef = (0, import_react35.useRef)(null);
|
|
@@ -4379,7 +4383,7 @@ function FeatureCard({
|
|
|
4379
4383
|
disabled = false,
|
|
4380
4384
|
comingSoon = false
|
|
4381
4385
|
}) {
|
|
4382
|
-
const { t } = (0,
|
|
4386
|
+
const { t } = (0, import_react_i18next10.useTranslation)();
|
|
4383
4387
|
const {
|
|
4384
4388
|
isOpen: isVideoTutorialOpen,
|
|
4385
4389
|
openModal: openVideoTutorial,
|
|
@@ -4550,7 +4554,7 @@ var FormBox = {
|
|
|
4550
4554
|
|
|
4551
4555
|
// src/free-text-field/FreeTextField.tsx
|
|
4552
4556
|
var import_react37 = require("react");
|
|
4553
|
-
var
|
|
4557
|
+
var import_react_i18next11 = require("react-i18next");
|
|
4554
4558
|
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
4555
4559
|
var FreeTextField = (0, import_react37.forwardRef)(
|
|
4556
4560
|
({
|
|
@@ -4573,7 +4577,7 @@ var FreeTextField = (0, import_react37.forwardRef)(
|
|
|
4573
4577
|
disabled,
|
|
4574
4578
|
...inputProps
|
|
4575
4579
|
}, ref) => {
|
|
4576
|
-
const { t } = (0,
|
|
4580
|
+
const { t } = (0, import_react_i18next11.useTranslation)();
|
|
4577
4581
|
const inputId = (0, import_react37.useId)();
|
|
4578
4582
|
const [internalValue, setInternalValue] = (0, import_react37.useState)(defaultValue ?? "");
|
|
4579
4583
|
const [isFocused, setIsFocused] = (0, import_react37.useState)(false);
|
|
@@ -5439,7 +5443,8 @@ var translation_default = {
|
|
|
5439
5443
|
you_have_made_changes: "You have made changes",
|
|
5440
5444
|
would_you_like_to_save_them: "Would you like to save them?",
|
|
5441
5445
|
save: "Save",
|
|
5442
|
-
dont_save: "Don't save"
|
|
5446
|
+
dont_save: "Don't save",
|
|
5447
|
+
copied_exclamation: "Kopiert!"
|
|
5443
5448
|
};
|
|
5444
5449
|
|
|
5445
5450
|
// src/locales/en/translation.json
|
|
@@ -5507,7 +5512,8 @@ var translation_default2 = {
|
|
|
5507
5512
|
you_have_made_changes: "You have made changes",
|
|
5508
5513
|
would_you_like_to_save_them: "Would you like to save them?",
|
|
5509
5514
|
save: "Save",
|
|
5510
|
-
dont_save: "Don't save"
|
|
5515
|
+
dont_save: "Don't save",
|
|
5516
|
+
copied_exclamation: "Copied!"
|
|
5511
5517
|
};
|
|
5512
5518
|
|
|
5513
5519
|
// src/locales/es/translation.json
|
|
@@ -5575,7 +5581,8 @@ var translation_default3 = {
|
|
|
5575
5581
|
you_have_made_changes: "You have made changes",
|
|
5576
5582
|
would_you_like_to_save_them: "Would you like to save them?",
|
|
5577
5583
|
save: "Save",
|
|
5578
|
-
dont_save: "Don't save"
|
|
5584
|
+
dont_save: "Don't save",
|
|
5585
|
+
copied_exclamation: "\xA1Copiado!"
|
|
5579
5586
|
};
|
|
5580
5587
|
|
|
5581
5588
|
// src/locales/fr/translation.json
|
|
@@ -5643,7 +5650,8 @@ var translation_default4 = {
|
|
|
5643
5650
|
you_have_made_changes: "You have made changes",
|
|
5644
5651
|
would_you_like_to_save_them: "Would you like to save them?",
|
|
5645
5652
|
save: "Save",
|
|
5646
|
-
dont_save: "Don't save"
|
|
5653
|
+
dont_save: "Don't save",
|
|
5654
|
+
copied_exclamation: "Copi\xE9 !"
|
|
5647
5655
|
};
|
|
5648
5656
|
|
|
5649
5657
|
// src/locales/it/translation.json
|
|
@@ -5711,7 +5719,8 @@ var translation_default5 = {
|
|
|
5711
5719
|
you_have_made_changes: "You have made changes",
|
|
5712
5720
|
would_you_like_to_save_them: "Would you like to save them?",
|
|
5713
5721
|
save: "Save",
|
|
5714
|
-
dont_save: "Don't save"
|
|
5722
|
+
dont_save: "Don't save",
|
|
5723
|
+
copied_exclamation: "Copiato!"
|
|
5715
5724
|
};
|
|
5716
5725
|
|
|
5717
5726
|
// src/locales/pt/translation.json
|
|
@@ -5779,7 +5788,8 @@ var translation_default6 = {
|
|
|
5779
5788
|
you_have_made_changes: "You have made changes",
|
|
5780
5789
|
would_you_like_to_save_them: "Would you like to save them?",
|
|
5781
5790
|
save: "Save",
|
|
5782
|
-
dont_save: "Don't save"
|
|
5791
|
+
dont_save: "Don't save",
|
|
5792
|
+
copied_exclamation: "Copiado!"
|
|
5783
5793
|
};
|
|
5784
5794
|
|
|
5785
5795
|
// src/i18n/resources.ts
|
|
@@ -5801,7 +5811,7 @@ var uiKitI18nResources = {
|
|
|
5801
5811
|
};
|
|
5802
5812
|
|
|
5803
5813
|
// src/iv-status-badge/IVStatusBadge.tsx
|
|
5804
|
-
var
|
|
5814
|
+
var import_react_i18next12 = require("react-i18next");
|
|
5805
5815
|
var import_lucide_react18 = require("lucide-react");
|
|
5806
5816
|
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
5807
5817
|
var IV_BADGE_STATUS = {
|
|
@@ -5810,7 +5820,7 @@ var IV_BADGE_STATUS = {
|
|
|
5810
5820
|
failed: "failed"
|
|
5811
5821
|
};
|
|
5812
5822
|
function IVStatusBadge({ status, size = "md", className = "" }) {
|
|
5813
|
-
const { t } = (0,
|
|
5823
|
+
const { t } = (0, import_react_i18next12.useTranslation)();
|
|
5814
5824
|
const iconSize = size === "sm" ? "h-3 w-3" : "h-3.5 w-3.5";
|
|
5815
5825
|
const textSize = size === "sm" ? "text-xs" : "text-sm";
|
|
5816
5826
|
const baseClassName = "inline-flex items-center gap-1 rounded-full border px-3 py-1 shadow-sm";
|
|
@@ -5943,10 +5953,10 @@ function LargeModal({
|
|
|
5943
5953
|
|
|
5944
5954
|
// src/learn-more-button/LearnMoreButton.tsx
|
|
5945
5955
|
var import_lucide_react20 = require("lucide-react");
|
|
5946
|
-
var
|
|
5956
|
+
var import_react_i18next13 = require("react-i18next");
|
|
5947
5957
|
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
5948
5958
|
function LearnMoreButton({ label, ...props }) {
|
|
5949
|
-
const { t } = (0,
|
|
5959
|
+
const { t } = (0, import_react_i18next13.useTranslation)();
|
|
5950
5960
|
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(Button, { variant: "link", ...props, children: [
|
|
5951
5961
|
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_lucide_react20.BookOpenIcon, { className: "size-5 text-[var(--button-link-text)]" }),
|
|
5952
5962
|
label || t("learn_more")
|
|
@@ -5980,10 +5990,10 @@ var Link = (0, import_react45.memo)(LinkInternal);
|
|
|
5980
5990
|
// src/image-full-screen-view/ImageFullScreenView.tsx
|
|
5981
5991
|
var import_react46 = require("react");
|
|
5982
5992
|
var import_lucide_react21 = require("lucide-react");
|
|
5983
|
-
var
|
|
5993
|
+
var import_react_i18next14 = require("react-i18next");
|
|
5984
5994
|
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
5985
5995
|
function ImageFullScreenView({ src, alt, onClose }) {
|
|
5986
|
-
const { t } = (0,
|
|
5996
|
+
const { t } = (0, import_react_i18next14.useTranslation)();
|
|
5987
5997
|
const [scale, setScale] = (0, import_react46.useState)(1);
|
|
5988
5998
|
const [rotation, setRotation] = (0, import_react46.useState)(0);
|
|
5989
5999
|
useClickEscape({ onClick: onClose });
|
|
@@ -6074,7 +6084,7 @@ function ImageFullScreenView({ src, alt, onClose }) {
|
|
|
6074
6084
|
|
|
6075
6085
|
// src/loader/Loader.tsx
|
|
6076
6086
|
var import_lucide_react22 = require("lucide-react");
|
|
6077
|
-
var
|
|
6087
|
+
var import_react_i18next15 = require("react-i18next");
|
|
6078
6088
|
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
6079
6089
|
function Loader({
|
|
6080
6090
|
size = "md",
|
|
@@ -6083,7 +6093,7 @@ function Loader({
|
|
|
6083
6093
|
showText = true,
|
|
6084
6094
|
variant = "primary"
|
|
6085
6095
|
}) {
|
|
6086
|
-
const { t } = (0,
|
|
6096
|
+
const { t } = (0, import_react_i18next15.useTranslation)();
|
|
6087
6097
|
const sizeClasses3 = {
|
|
6088
6098
|
sm: "h-4 w-4",
|
|
6089
6099
|
md: "h-8 w-8",
|
|
@@ -6340,10 +6350,10 @@ function OverlayLoader({
|
|
|
6340
6350
|
}
|
|
6341
6351
|
|
|
6342
6352
|
// src/page-loader/PageLoader.tsx
|
|
6343
|
-
var
|
|
6353
|
+
var import_react_i18next16 = require("react-i18next");
|
|
6344
6354
|
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
6345
6355
|
function PageLoader({ className, description, ...props }) {
|
|
6346
|
-
const { t } = (0,
|
|
6356
|
+
const { t } = (0, import_react_i18next16.useTranslation)();
|
|
6347
6357
|
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
6348
6358
|
"div",
|
|
6349
6359
|
{
|
|
@@ -6357,7 +6367,7 @@ function PageLoader({ className, description, ...props }) {
|
|
|
6357
6367
|
}
|
|
6358
6368
|
|
|
6359
6369
|
// src/pagination/Pagination.tsx
|
|
6360
|
-
var
|
|
6370
|
+
var import_react_i18next17 = require("react-i18next");
|
|
6361
6371
|
var import_lucide_react27 = require("lucide-react");
|
|
6362
6372
|
|
|
6363
6373
|
// src/select/Select.tsx
|
|
@@ -6780,7 +6790,7 @@ function Pagination({
|
|
|
6780
6790
|
totalItems = 0,
|
|
6781
6791
|
className
|
|
6782
6792
|
}) {
|
|
6783
|
-
const { t } = (0,
|
|
6793
|
+
const { t } = (0, import_react_i18next17.useTranslation)();
|
|
6784
6794
|
const isSimpleVariant = variant === "simple";
|
|
6785
6795
|
const startItem = totalItems === 0 ? 0 : (page - 1) * pageSize + 1;
|
|
6786
6796
|
const endItem = Math.min(page * pageSize, totalItems);
|
|
@@ -7233,7 +7243,7 @@ function RatingRadioGroup({
|
|
|
7233
7243
|
// src/rating-stars/RatingStars.tsx
|
|
7234
7244
|
var React24 = __toESM(require("react"), 1);
|
|
7235
7245
|
var import_lucide_react30 = require("lucide-react");
|
|
7236
|
-
var
|
|
7246
|
+
var import_react_i18next18 = require("react-i18next");
|
|
7237
7247
|
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
7238
7248
|
function RatingStars({
|
|
7239
7249
|
rating,
|
|
@@ -7248,7 +7258,7 @@ function RatingStars({
|
|
|
7248
7258
|
filledColor = "#ffb700",
|
|
7249
7259
|
emptyColor = "var(--chekin-color-gray-3)"
|
|
7250
7260
|
}) {
|
|
7251
|
-
const { t } = (0,
|
|
7261
|
+
const { t } = (0, import_react_i18next18.useTranslation)();
|
|
7252
7262
|
const normalizedRating = Math.max(0, Math.min(maxRating, rating));
|
|
7253
7263
|
const stars = Array.from({ length: maxRating }, (_, index) => index + 1);
|
|
7254
7264
|
const componentId = React24.useId();
|
|
@@ -7333,7 +7343,7 @@ function SearchButton({ onClick, className, icon, ariaLabel }) {
|
|
|
7333
7343
|
|
|
7334
7344
|
// src/search-input/SearchInput.tsx
|
|
7335
7345
|
var import_lucide_react33 = require("lucide-react");
|
|
7336
|
-
var
|
|
7346
|
+
var import_react_i18next19 = require("react-i18next");
|
|
7337
7347
|
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
7338
7348
|
function SearchInput({
|
|
7339
7349
|
disabled,
|
|
@@ -7348,7 +7358,7 @@ function SearchInput({
|
|
|
7348
7358
|
className,
|
|
7349
7359
|
...props
|
|
7350
7360
|
}) {
|
|
7351
|
-
const { t } = (0,
|
|
7361
|
+
const { t } = (0, import_react_i18next19.useTranslation)();
|
|
7352
7362
|
const placeholderText = placeholder || `${t("search_property")}...`;
|
|
7353
7363
|
const isBlocked = Boolean(disabled) || Boolean(loading);
|
|
7354
7364
|
const optionalLabel = optional ? typeof optional === "string" ? optional : t("optional") : void 0;
|
|
@@ -8646,7 +8656,7 @@ var SmallGridSingleItem = (0, import_react61.memo)(
|
|
|
8646
8656
|
SmallGridSingleItem.displayName = "SmallGridSingleItem";
|
|
8647
8657
|
|
|
8648
8658
|
// src/sorting-action/SortingAction.tsx
|
|
8649
|
-
var
|
|
8659
|
+
var import_react_i18next20 = require("react-i18next");
|
|
8650
8660
|
var import_lucide_react38 = require("lucide-react");
|
|
8651
8661
|
var import_jsx_runtime107 = require("react/jsx-runtime");
|
|
8652
8662
|
function SortingAction({
|
|
@@ -8657,7 +8667,7 @@ function SortingAction({
|
|
|
8657
8667
|
variant = "by_other",
|
|
8658
8668
|
onOpenChange
|
|
8659
8669
|
}) {
|
|
8660
|
-
const { t } = (0,
|
|
8670
|
+
const { t } = (0, import_react_i18next20.useTranslation)();
|
|
8661
8671
|
return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(DropdownMenu, { open, onOpenChange, children: [
|
|
8662
8672
|
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
8663
8673
|
"button",
|
|
@@ -8706,7 +8716,7 @@ function SortingAction({
|
|
|
8706
8716
|
|
|
8707
8717
|
// src/status-button/StatusButton.tsx
|
|
8708
8718
|
var import_react62 = require("react");
|
|
8709
|
-
var
|
|
8719
|
+
var import_react_i18next21 = require("react-i18next");
|
|
8710
8720
|
var import_lucide_react39 = require("lucide-react");
|
|
8711
8721
|
var import_jsx_runtime108 = require("react/jsx-runtime");
|
|
8712
8722
|
function StatusButton({
|
|
@@ -8722,7 +8732,7 @@ function StatusButton({
|
|
|
8722
8732
|
variant = "default",
|
|
8723
8733
|
...props
|
|
8724
8734
|
}) {
|
|
8725
|
-
const { t } = (0,
|
|
8735
|
+
const { t } = (0, import_react_i18next21.useTranslation)();
|
|
8726
8736
|
const configMap = (0, import_react62.useMemo)(() => {
|
|
8727
8737
|
const defaultLoadingConfig = {
|
|
8728
8738
|
text: loadingText ?? `${t("saving")}...`,
|
|
@@ -9364,7 +9374,7 @@ var Toggles = (0, import_react66.forwardRef)(TogglesInternal);
|
|
|
9364
9374
|
var React29 = __toESM(require("react"), 1);
|
|
9365
9375
|
var LabelPrimitive2 = __toESM(require("@radix-ui/react-label"), 1);
|
|
9366
9376
|
var import_class_variance_authority14 = require("class-variance-authority");
|
|
9367
|
-
var
|
|
9377
|
+
var import_react_i18next22 = require("react-i18next");
|
|
9368
9378
|
|
|
9369
9379
|
// src/text-field/EndIcon.tsx
|
|
9370
9380
|
var import_jsx_runtime119 = require("react/jsx-runtime");
|
|
@@ -9494,7 +9504,7 @@ var TextField = React29.forwardRef(
|
|
|
9494
9504
|
readOnly,
|
|
9495
9505
|
...props
|
|
9496
9506
|
}, ref) => {
|
|
9497
|
-
const { t } = (0,
|
|
9507
|
+
const { t } = (0, import_react_i18next22.useTranslation)();
|
|
9498
9508
|
const hasError = Boolean(error);
|
|
9499
9509
|
const autoId = React29.useId();
|
|
9500
9510
|
const inputId = props.id || autoId;
|
|
@@ -10597,7 +10607,7 @@ var DEVICE = {
|
|
|
10597
10607
|
// src/field-trigger/FieldTrigger.tsx
|
|
10598
10608
|
var React32 = __toESM(require("react"), 1);
|
|
10599
10609
|
var import_lucide_react44 = require("lucide-react");
|
|
10600
|
-
var
|
|
10610
|
+
var import_react_i18next23 = require("react-i18next");
|
|
10601
10611
|
|
|
10602
10612
|
// src/field-error-message/FieldErrorMessage.tsx
|
|
10603
10613
|
var import_lucide_react43 = require("lucide-react");
|
|
@@ -10670,7 +10680,7 @@ var FieldTrigger = React32.forwardRef(
|
|
|
10670
10680
|
onKeyDown,
|
|
10671
10681
|
...props
|
|
10672
10682
|
}, ref) => {
|
|
10673
|
-
const { t } = (0,
|
|
10683
|
+
const { t } = (0, import_react_i18next23.useTranslation)();
|
|
10674
10684
|
const hasValue = Boolean(valueText);
|
|
10675
10685
|
const isRaised = hasValue || forceFloatingLabel;
|
|
10676
10686
|
const optionalLabel = optional ? typeof optional === "string" ? optional : t("optional") : void 0;
|
|
@@ -10734,7 +10744,7 @@ var FieldTrigger = React32.forwardRef(
|
|
|
10734
10744
|
className: cn(
|
|
10735
10745
|
"absolute left-0 origin-left truncate transition-all duration-200 ease-out",
|
|
10736
10746
|
hasLabelMeta ? "" : "pointer-events-none",
|
|
10737
|
-
isAirbnbVariant ? isRaised ? "top-
|
|
10747
|
+
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",
|
|
10738
10748
|
hasInvalidState ? "text-[var(--error-message-color)]" : isAirbnbVariant ? "text-[#6c6c6c]" : "text-[#7A8399]"
|
|
10739
10749
|
),
|
|
10740
10750
|
children: animatedLabel
|
|
@@ -12317,6 +12327,11 @@ var AirbnbSelect = React39.forwardRef(function AirbnbSelect2({
|
|
|
12317
12327
|
|
|
12318
12328
|
// src/airbnb/phone-field/PhoneField.tsx
|
|
12319
12329
|
var import_jsx_runtime141 = require("react/jsx-runtime");
|
|
12330
|
+
function formatPhoneCodeOptionLabel(option) {
|
|
12331
|
+
const label = String(option.label);
|
|
12332
|
+
const value = String(option.value);
|
|
12333
|
+
return label.includes(value) ? label : `${label} (${value})`;
|
|
12334
|
+
}
|
|
12320
12335
|
var PhoneField = React40.forwardRef(
|
|
12321
12336
|
({
|
|
12322
12337
|
variant = "default",
|
|
@@ -12345,7 +12360,7 @@ var PhoneField = React40.forwardRef(
|
|
|
12345
12360
|
const codeOptions = React40.useMemo(
|
|
12346
12361
|
() => options.map((option) => ({
|
|
12347
12362
|
value: option.value,
|
|
12348
|
-
label:
|
|
12363
|
+
label: formatPhoneCodeOptionLabel(option),
|
|
12349
12364
|
disabled: option.disabled
|
|
12350
12365
|
})),
|
|
12351
12366
|
[options]
|
|
@@ -12493,11 +12508,11 @@ PhoneField.displayName = "PhoneField";
|
|
|
12493
12508
|
|
|
12494
12509
|
// src/airbnb/search-input/SearchInput.tsx
|
|
12495
12510
|
var React41 = __toESM(require("react"), 1);
|
|
12496
|
-
var
|
|
12511
|
+
var import_react_i18next24 = require("react-i18next");
|
|
12497
12512
|
var import_lucide_react48 = require("lucide-react");
|
|
12498
12513
|
var import_jsx_runtime142 = require("react/jsx-runtime");
|
|
12499
12514
|
var AirbnbSearchInput = React41.forwardRef(({ onReset, placeholder, wrapperClassName, ...props }, ref) => {
|
|
12500
|
-
const { t } = (0,
|
|
12515
|
+
const { t } = (0, import_react_i18next24.useTranslation)();
|
|
12501
12516
|
const placeholderText = placeholder || t("search_property") + "...";
|
|
12502
12517
|
return /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: cn("input-wrapper relative", wrapperClassName), children: [
|
|
12503
12518
|
/* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_lucide_react48.Search, { className: "absolute left-4 top-1/2 h-5 w-5 -translate-y-1/2 transform text-[#9696B9]" }),
|