@chekinapp/ui 0.0.66 → 0.0.67
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 +861 -860
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +0 -7
- package/dist/index.d.ts +0 -7
- package/dist/index.js +917 -916
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -136,7 +136,7 @@ __export(index_exports, {
|
|
|
136
136
|
FormBox: () => FormBox,
|
|
137
137
|
FormBoxContent: () => Content5,
|
|
138
138
|
FormBoxHeader: () => Header2,
|
|
139
|
-
FormBoxRoot: () =>
|
|
139
|
+
FormBoxRoot: () => Root10,
|
|
140
140
|
FormBoxSubHeader: () => SubHeader,
|
|
141
141
|
FramedIcon: () => FramedIcon,
|
|
142
142
|
FreeTextField: () => FreeTextField,
|
|
@@ -831,7 +831,115 @@ BookmarkTabsTrigger.displayName = "BookmarkTabsTrigger";
|
|
|
831
831
|
// src/box-option-selector/BoxOptionSelector.tsx
|
|
832
832
|
var import_react2 = require("react");
|
|
833
833
|
var import_react_i18next2 = require("react-i18next");
|
|
834
|
+
|
|
835
|
+
// src/switch/Switch.tsx
|
|
836
|
+
var React5 = __toESM(require("react"), 1);
|
|
837
|
+
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"), 1);
|
|
838
|
+
var import_class_variance_authority4 = require("class-variance-authority");
|
|
839
|
+
|
|
840
|
+
// src/label/Label.tsx
|
|
841
|
+
var React4 = __toESM(require("react"), 1);
|
|
842
|
+
var LabelPrimitive = __toESM(require("@radix-ui/react-label"), 1);
|
|
843
|
+
var import_class_variance_authority3 = require("class-variance-authority");
|
|
834
844
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
845
|
+
var labelVariants = (0, import_class_variance_authority3.cva)(
|
|
846
|
+
"text-sm font-medium leading-none text-[var(--chekin-color-brand-navy)] peer-disabled:cursor-not-allowed peer-disabled:opacity-70 peer-aria-busy:cursor-wait peer-aria-busy:opacity-70 peer-aria-readonly:cursor-default peer-aria-readonly:opacity-100"
|
|
847
|
+
);
|
|
848
|
+
var Label = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(LabelPrimitive.Root, { ref, className: cn(labelVariants(), className), ...props }));
|
|
849
|
+
Label.displayName = LabelPrimitive.Root.displayName;
|
|
850
|
+
|
|
851
|
+
// src/error-message/ErrorMessage.tsx
|
|
852
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
853
|
+
function ErrorMessage({ className, children, disabled }) {
|
|
854
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
855
|
+
"div",
|
|
856
|
+
{
|
|
857
|
+
className: cn(
|
|
858
|
+
"mt-0.5 text-left text-sm font-medium text-[var(--error-message-color)]",
|
|
859
|
+
disabled && "opacity-30",
|
|
860
|
+
className
|
|
861
|
+
),
|
|
862
|
+
children
|
|
863
|
+
}
|
|
864
|
+
);
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
// src/switch/Switch.tsx
|
|
868
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
869
|
+
var switchVariants = (0, import_class_variance_authority4.cva)(
|
|
870
|
+
[
|
|
871
|
+
"peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors",
|
|
872
|
+
"focus-visible:outline-none focus-visible:shadow-[var(--chekin-shadow-focus)]",
|
|
873
|
+
"disabled:cursor-not-allowed disabled:opacity-50 aria-busy:cursor-wait aria-busy:opacity-50",
|
|
874
|
+
"data-[state=checked]:bg-[var(--chekin-color-brand-blue)] data-[state=unchecked]:bg-[var(--chekin-color-gray-2)]"
|
|
875
|
+
],
|
|
876
|
+
{
|
|
877
|
+
variants: {
|
|
878
|
+
size: {
|
|
879
|
+
default: "h-5 w-10",
|
|
880
|
+
lg: "h-5 w-10",
|
|
881
|
+
sm: "h-4 w-8"
|
|
882
|
+
},
|
|
883
|
+
readOnly: {
|
|
884
|
+
true: "cursor-default opacity-100"
|
|
885
|
+
}
|
|
886
|
+
},
|
|
887
|
+
defaultVariants: {
|
|
888
|
+
size: "default"
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
);
|
|
892
|
+
var switchThumbVariants = (0, import_class_variance_authority4.cva)(
|
|
893
|
+
"pointer-events-none block rounded-full bg-white shadow-lg ring-0 transition-transform data-[state=unchecked]:translate-x-0",
|
|
894
|
+
{
|
|
895
|
+
variants: {
|
|
896
|
+
size: {
|
|
897
|
+
default: "h-4 w-4 data-[state=checked]:translate-x-5",
|
|
898
|
+
lg: "h-4 w-4 data-[state=checked]:translate-x-5",
|
|
899
|
+
sm: "h-3 w-3 data-[state=checked]:translate-x-4"
|
|
900
|
+
}
|
|
901
|
+
},
|
|
902
|
+
defaultVariants: {
|
|
903
|
+
size: "default"
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
);
|
|
907
|
+
var Switch = React5.forwardRef(
|
|
908
|
+
({ className, size, readOnly, loading, onChange, value, id, label, error, ...props }, ref) => {
|
|
909
|
+
const generatedId = React5.useId();
|
|
910
|
+
const fieldId = id || generatedId;
|
|
911
|
+
const switchElement = /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
912
|
+
SwitchPrimitives.Root,
|
|
913
|
+
{
|
|
914
|
+
ref,
|
|
915
|
+
className: cn(switchVariants({ size, readOnly }), className),
|
|
916
|
+
disabled: props.disabled && !readOnly,
|
|
917
|
+
...props,
|
|
918
|
+
id: fieldId,
|
|
919
|
+
onCheckedChange: readOnly ? void 0 : onChange,
|
|
920
|
+
checked: value,
|
|
921
|
+
value: String(value),
|
|
922
|
+
"aria-busy": loading,
|
|
923
|
+
"aria-readonly": readOnly,
|
|
924
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SwitchPrimitives.Thumb, { className: cn(switchThumbVariants({ size })) })
|
|
925
|
+
}
|
|
926
|
+
);
|
|
927
|
+
if (!label && !error) {
|
|
928
|
+
return switchElement;
|
|
929
|
+
}
|
|
930
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { children: [
|
|
931
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
932
|
+
switchElement,
|
|
933
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Label, { htmlFor: fieldId, className: "cursor-pointer text-base font-medium", children: label })
|
|
934
|
+
] }),
|
|
935
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ErrorMessage, { disabled: props.disabled, children: error })
|
|
936
|
+
] });
|
|
937
|
+
}
|
|
938
|
+
);
|
|
939
|
+
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
940
|
+
|
|
941
|
+
// src/box-option-selector/BoxOptionSelector.tsx
|
|
942
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
835
943
|
var BoxOptionSelector = (0, import_react2.forwardRef)(
|
|
836
944
|
({
|
|
837
945
|
id,
|
|
@@ -842,8 +950,7 @@ var BoxOptionSelector = (0, import_react2.forwardRef)(
|
|
|
842
950
|
onChange,
|
|
843
951
|
disabled = false,
|
|
844
952
|
selectedValue,
|
|
845
|
-
optionalLabel
|
|
846
|
-
switchComponent: SwitchComponent
|
|
953
|
+
optionalLabel
|
|
847
954
|
}, ref) => {
|
|
848
955
|
const { t } = (0, import_react_i18next2.useTranslation)();
|
|
849
956
|
const [isSwitchActive, setIsSwitchActive] = (0, import_react2.useState)(false);
|
|
@@ -860,7 +967,7 @@ var BoxOptionSelector = (0, import_react2.forwardRef)(
|
|
|
860
967
|
(0, import_react2.useEffect)(() => {
|
|
861
968
|
setIsSwitchActive(selectedValue === switchProps?.value);
|
|
862
969
|
}, [selectedValue, switchProps?.value]);
|
|
863
|
-
return /* @__PURE__ */ (0,
|
|
970
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
864
971
|
"div",
|
|
865
972
|
{
|
|
866
973
|
ref,
|
|
@@ -872,16 +979,16 @@ var BoxOptionSelector = (0, import_react2.forwardRef)(
|
|
|
872
979
|
),
|
|
873
980
|
onClick: handleClick,
|
|
874
981
|
children: [
|
|
875
|
-
/* @__PURE__ */ (0,
|
|
876
|
-
/* @__PURE__ */ (0,
|
|
877
|
-
switchProps && isSelected &&
|
|
982
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "flex w-full items-center justify-between gap-5", children: [
|
|
983
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("h3", { className: "whitespace-nowrap text-base font-semibold leading-6", children: title }),
|
|
984
|
+
switchProps && isSelected && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
878
985
|
"div",
|
|
879
986
|
{
|
|
880
987
|
onClick: (event) => event.stopPropagation(),
|
|
881
988
|
className: "flex items-center gap-2",
|
|
882
989
|
children: [
|
|
883
|
-
/* @__PURE__ */ (0,
|
|
884
|
-
|
|
990
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
991
|
+
Switch,
|
|
885
992
|
{
|
|
886
993
|
id: `optional-${id}`,
|
|
887
994
|
value: isSwitchActive,
|
|
@@ -890,7 +997,7 @@ var BoxOptionSelector = (0, import_react2.forwardRef)(
|
|
|
890
997
|
onChange: handleSwitchChange
|
|
891
998
|
}
|
|
892
999
|
),
|
|
893
|
-
/* @__PURE__ */ (0,
|
|
1000
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
894
1001
|
"span",
|
|
895
1002
|
{
|
|
896
1003
|
className: cn(
|
|
@@ -904,7 +1011,7 @@ var BoxOptionSelector = (0, import_react2.forwardRef)(
|
|
|
904
1011
|
}
|
|
905
1012
|
)
|
|
906
1013
|
] }),
|
|
907
|
-
/* @__PURE__ */ (0,
|
|
1014
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { className: "w-full text-sm font-medium leading-4 text-[var(--chekin-color-gray-1)]", children: description })
|
|
908
1015
|
]
|
|
909
1016
|
}
|
|
910
1017
|
);
|
|
@@ -913,7 +1020,7 @@ var BoxOptionSelector = (0, import_react2.forwardRef)(
|
|
|
913
1020
|
BoxOptionSelector.displayName = "BoxOptionSelector";
|
|
914
1021
|
|
|
915
1022
|
// src/breadcrumbs/Breadcrumb.tsx
|
|
916
|
-
var
|
|
1023
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
917
1024
|
function Breadcrumb({
|
|
918
1025
|
hidden,
|
|
919
1026
|
to,
|
|
@@ -933,19 +1040,19 @@ function Breadcrumb({
|
|
|
933
1040
|
isLink && "transition-opacity hover:opacity-80",
|
|
934
1041
|
className
|
|
935
1042
|
);
|
|
936
|
-
return /* @__PURE__ */ (0,
|
|
1043
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("li", { className: "flex gap-2.5", children: isLink ? /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
937
1044
|
LinkComponent,
|
|
938
1045
|
{
|
|
939
1046
|
"aria-current": current ? "page" : void 0,
|
|
940
1047
|
className: contentClassName,
|
|
941
1048
|
...LinkComponent === "a" ? { href: to } : { to, href: to },
|
|
942
1049
|
children: [
|
|
943
|
-
icon ? /* @__PURE__ */ (0,
|
|
1050
|
+
icon ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "shrink-0", children: icon }) : null,
|
|
944
1051
|
children
|
|
945
1052
|
]
|
|
946
1053
|
}
|
|
947
|
-
) : /* @__PURE__ */ (0,
|
|
948
|
-
icon ? /* @__PURE__ */ (0,
|
|
1054
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { "aria-current": current ? "page" : void 0, className: contentClassName, children: [
|
|
1055
|
+
icon ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "shrink-0", children: icon }) : null,
|
|
949
1056
|
children
|
|
950
1057
|
] }) });
|
|
951
1058
|
}
|
|
@@ -953,7 +1060,7 @@ function Breadcrumb({
|
|
|
953
1060
|
// src/breadcrumbs/Breadcrumbs.tsx
|
|
954
1061
|
var import_react3 = require("react");
|
|
955
1062
|
var import_lucide_react4 = require("lucide-react");
|
|
956
|
-
var
|
|
1063
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
957
1064
|
function Breadcrumbs({ className, children }) {
|
|
958
1065
|
const items = import_react3.Children.toArray(children).filter((child) => {
|
|
959
1066
|
if (!(0, import_react3.isValidElement)(child)) {
|
|
@@ -961,11 +1068,11 @@ function Breadcrumbs({ className, children }) {
|
|
|
961
1068
|
}
|
|
962
1069
|
return !child.props.hidden;
|
|
963
1070
|
});
|
|
964
|
-
return /* @__PURE__ */ (0,
|
|
1071
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("nav", { className: cn("breadcrumbs", className), "aria-label": "Breadcrumb", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("ul", { className: "m-0 flex list-none flex-wrap items-center gap-3 p-0", children: items.map((child, index) => {
|
|
965
1072
|
const isLastVisibleItem = items.length - 1 === index;
|
|
966
1073
|
const childWithProps = (0, import_react3.isValidElement)(child) ? (0, import_react3.cloneElement)(child, { current: isLastVisibleItem }) : child;
|
|
967
|
-
return /* @__PURE__ */ (0,
|
|
968
|
-
index > 0 ? /* @__PURE__ */ (0,
|
|
1074
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_react3.Fragment, { children: [
|
|
1075
|
+
index > 0 ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
969
1076
|
import_lucide_react4.ChevronRight,
|
|
970
1077
|
{
|
|
971
1078
|
"aria-hidden": "true",
|
|
@@ -979,13 +1086,13 @@ function Breadcrumbs({ className, children }) {
|
|
|
979
1086
|
}
|
|
980
1087
|
|
|
981
1088
|
// src/button/Button.tsx
|
|
982
|
-
var
|
|
1089
|
+
var React6 = __toESM(require("react"), 1);
|
|
983
1090
|
var import_react_slot2 = require("@radix-ui/react-slot");
|
|
984
1091
|
var import_react_i18next3 = require("react-i18next");
|
|
985
1092
|
|
|
986
1093
|
// src/button/buttonVariants.ts
|
|
987
|
-
var
|
|
988
|
-
var buttonVariants = (0,
|
|
1094
|
+
var import_class_variance_authority5 = require("class-variance-authority");
|
|
1095
|
+
var buttonVariants = (0, import_class_variance_authority5.cva)(
|
|
989
1096
|
[
|
|
990
1097
|
"button relative inline-flex items-center justify-center gap-2 whitespace-nowrap",
|
|
991
1098
|
"[font-family:var(--button-font-family)] [font-weight:var(--button-font-weight)]",
|
|
@@ -1096,8 +1203,8 @@ var buttonVariants = (0, import_class_variance_authority3.cva)(
|
|
|
1096
1203
|
);
|
|
1097
1204
|
|
|
1098
1205
|
// src/button/Button.tsx
|
|
1099
|
-
var
|
|
1100
|
-
var Button =
|
|
1206
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1207
|
+
var Button = React6.forwardRef(
|
|
1101
1208
|
({
|
|
1102
1209
|
className,
|
|
1103
1210
|
variant,
|
|
@@ -1117,7 +1224,7 @@ var Button = React4.forwardRef(
|
|
|
1117
1224
|
const isDisabled = readOnly || disabled || loading;
|
|
1118
1225
|
const classNames = cn(buttonVariants({ variant, size, shape, readOnly }), className);
|
|
1119
1226
|
if (asChild) {
|
|
1120
|
-
return /* @__PURE__ */ (0,
|
|
1227
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1121
1228
|
import_react_slot2.Slot,
|
|
1122
1229
|
{
|
|
1123
1230
|
ref,
|
|
@@ -1128,7 +1235,7 @@ var Button = React4.forwardRef(
|
|
|
1128
1235
|
}
|
|
1129
1236
|
);
|
|
1130
1237
|
}
|
|
1131
|
-
return /* @__PURE__ */ (0,
|
|
1238
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1132
1239
|
"button",
|
|
1133
1240
|
{
|
|
1134
1241
|
ref,
|
|
@@ -1136,9 +1243,9 @@ var Button = React4.forwardRef(
|
|
|
1136
1243
|
disabled: isDisabled,
|
|
1137
1244
|
className: classNames,
|
|
1138
1245
|
...props,
|
|
1139
|
-
children: loading ? /* @__PURE__ */ (0,
|
|
1140
|
-
/* @__PURE__ */ (0,
|
|
1141
|
-
showLoadingLabel ? /* @__PURE__ */ (0,
|
|
1246
|
+
children: loading ? /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, { children: [
|
|
1247
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Spinner, {}),
|
|
1248
|
+
showLoadingLabel ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { children: loadingText || t("please_wait") }) : null
|
|
1142
1249
|
] }) : children
|
|
1143
1250
|
}
|
|
1144
1251
|
);
|
|
@@ -1146,7 +1253,7 @@ var Button = React4.forwardRef(
|
|
|
1146
1253
|
);
|
|
1147
1254
|
Button.displayName = "Button";
|
|
1148
1255
|
function Spinner() {
|
|
1149
|
-
return /* @__PURE__ */ (0,
|
|
1256
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
1150
1257
|
"svg",
|
|
1151
1258
|
{
|
|
1152
1259
|
className: "h-4 w-4 animate-spin",
|
|
@@ -1155,7 +1262,7 @@ function Spinner() {
|
|
|
1155
1262
|
viewBox: "0 0 24 24",
|
|
1156
1263
|
"aria-hidden": "true",
|
|
1157
1264
|
children: [
|
|
1158
|
-
/* @__PURE__ */ (0,
|
|
1265
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1159
1266
|
"circle",
|
|
1160
1267
|
{
|
|
1161
1268
|
className: "opacity-25",
|
|
@@ -1166,7 +1273,7 @@ function Spinner() {
|
|
|
1166
1273
|
strokeWidth: "4"
|
|
1167
1274
|
}
|
|
1168
1275
|
),
|
|
1169
|
-
/* @__PURE__ */ (0,
|
|
1276
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1170
1277
|
"path",
|
|
1171
1278
|
{
|
|
1172
1279
|
className: "opacity-75",
|
|
@@ -1185,8 +1292,8 @@ function Spinner() {
|
|
|
1185
1292
|
var import_react_slot3 = require("@radix-ui/react-slot");
|
|
1186
1293
|
|
|
1187
1294
|
// src/button-group/buttonGroupVariants.ts
|
|
1188
|
-
var
|
|
1189
|
-
var buttonGroupVariants = (0,
|
|
1295
|
+
var import_class_variance_authority6 = require("class-variance-authority");
|
|
1296
|
+
var buttonGroupVariants = (0, import_class_variance_authority6.cva)(
|
|
1190
1297
|
[
|
|
1191
1298
|
"flex w-fit items-stretch",
|
|
1192
1299
|
"has-[>[data-slot=button-group]]:gap-2",
|
|
@@ -1247,14 +1354,14 @@ var buttonGroupVariants = (0, import_class_variance_authority4.cva)(
|
|
|
1247
1354
|
);
|
|
1248
1355
|
|
|
1249
1356
|
// src/button-group/ButtonGroup.tsx
|
|
1250
|
-
var
|
|
1357
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1251
1358
|
function ButtonGroup({
|
|
1252
1359
|
className,
|
|
1253
1360
|
orientation,
|
|
1254
1361
|
seamless,
|
|
1255
1362
|
...props
|
|
1256
1363
|
}) {
|
|
1257
|
-
return /* @__PURE__ */ (0,
|
|
1364
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1258
1365
|
"div",
|
|
1259
1366
|
{
|
|
1260
1367
|
role: "group",
|
|
@@ -1272,7 +1379,7 @@ function ButtonGroupText({
|
|
|
1272
1379
|
...props
|
|
1273
1380
|
}) {
|
|
1274
1381
|
const Comp = asChild ? import_react_slot3.Slot : "div";
|
|
1275
|
-
return /* @__PURE__ */ (0,
|
|
1382
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1276
1383
|
Comp,
|
|
1277
1384
|
{
|
|
1278
1385
|
"data-slot": "button-group-text",
|
|
@@ -1288,11 +1395,11 @@ function ButtonGroupText({
|
|
|
1288
1395
|
ButtonGroupText.displayName = "ButtonGroupText";
|
|
1289
1396
|
|
|
1290
1397
|
// src/buttons-group-label/ButtonsGroupLabel.tsx
|
|
1291
|
-
var
|
|
1398
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1292
1399
|
function ButtonsGroupLabel({ children, label, className }) {
|
|
1293
|
-
return /* @__PURE__ */ (0,
|
|
1294
|
-
/* @__PURE__ */ (0,
|
|
1295
|
-
/* @__PURE__ */ (0,
|
|
1400
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { "data-slot": "buttons-group-label", className: cn(className), children: [
|
|
1401
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "mb-2 text-xs font-medium text-[var(--chekin-color-gray-1)]", children: label }),
|
|
1402
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { children })
|
|
1296
1403
|
] });
|
|
1297
1404
|
}
|
|
1298
1405
|
ButtonsGroupLabel.displayName = "ButtonsGroupLabel";
|
|
@@ -1350,7 +1457,7 @@ var calendarClassNames = {
|
|
|
1350
1457
|
};
|
|
1351
1458
|
|
|
1352
1459
|
// src/calendar/Calendar.tsx
|
|
1353
|
-
var
|
|
1460
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1354
1461
|
function getMergedClassNames(defaultClassNames, userClassNames) {
|
|
1355
1462
|
return Object.keys(defaultClassNames).reduce(
|
|
1356
1463
|
(acc, key) => ({
|
|
@@ -1374,12 +1481,12 @@ function Calendar({
|
|
|
1374
1481
|
const defaultComponents = {
|
|
1375
1482
|
Chevron: (iconProps) => {
|
|
1376
1483
|
if (iconProps.orientation === "left") {
|
|
1377
|
-
return /* @__PURE__ */ (0,
|
|
1484
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react5.ChevronLeft, { size: 16, strokeWidth: 2, ...iconProps, "aria-hidden": "true" });
|
|
1378
1485
|
}
|
|
1379
|
-
return /* @__PURE__ */ (0,
|
|
1486
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react5.ChevronRight, { size: 16, strokeWidth: 2, ...iconProps, "aria-hidden": "true" });
|
|
1380
1487
|
}
|
|
1381
1488
|
};
|
|
1382
|
-
return /* @__PURE__ */ (0,
|
|
1489
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1383
1490
|
import_react_day_picker.DayPicker,
|
|
1384
1491
|
{
|
|
1385
1492
|
"data-slot": "calendar",
|
|
@@ -1397,10 +1504,10 @@ function Calendar({
|
|
|
1397
1504
|
Calendar.displayName = "Calendar";
|
|
1398
1505
|
|
|
1399
1506
|
// src/card/Card.tsx
|
|
1400
|
-
var
|
|
1401
|
-
var
|
|
1402
|
-
var Card =
|
|
1403
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1507
|
+
var React7 = __toESM(require("react"), 1);
|
|
1508
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
1509
|
+
var Card = React7.forwardRef(
|
|
1510
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1404
1511
|
"div",
|
|
1405
1512
|
{
|
|
1406
1513
|
ref,
|
|
@@ -1414,8 +1521,8 @@ var Card = React5.forwardRef(
|
|
|
1414
1521
|
)
|
|
1415
1522
|
);
|
|
1416
1523
|
Card.displayName = "Card";
|
|
1417
|
-
var CardHeader =
|
|
1418
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1524
|
+
var CardHeader = React7.forwardRef(
|
|
1525
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1419
1526
|
"div",
|
|
1420
1527
|
{
|
|
1421
1528
|
ref,
|
|
@@ -1426,8 +1533,8 @@ var CardHeader = React5.forwardRef(
|
|
|
1426
1533
|
)
|
|
1427
1534
|
);
|
|
1428
1535
|
CardHeader.displayName = "CardHeader";
|
|
1429
|
-
var CardTitle =
|
|
1430
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1536
|
+
var CardTitle = React7.forwardRef(
|
|
1537
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1431
1538
|
"div",
|
|
1432
1539
|
{
|
|
1433
1540
|
ref,
|
|
@@ -1438,7 +1545,7 @@ var CardTitle = React5.forwardRef(
|
|
|
1438
1545
|
)
|
|
1439
1546
|
);
|
|
1440
1547
|
CardTitle.displayName = "CardTitle";
|
|
1441
|
-
var CardDescription =
|
|
1548
|
+
var CardDescription = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1442
1549
|
"div",
|
|
1443
1550
|
{
|
|
1444
1551
|
ref,
|
|
@@ -1448,7 +1555,7 @@ var CardDescription = React5.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
1448
1555
|
}
|
|
1449
1556
|
));
|
|
1450
1557
|
CardDescription.displayName = "CardDescription";
|
|
1451
|
-
var CardContent =
|
|
1558
|
+
var CardContent = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1452
1559
|
"div",
|
|
1453
1560
|
{
|
|
1454
1561
|
ref,
|
|
@@ -1458,8 +1565,8 @@ var CardContent = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1458
1565
|
}
|
|
1459
1566
|
));
|
|
1460
1567
|
CardContent.displayName = "CardContent";
|
|
1461
|
-
var CardFooter =
|
|
1462
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1568
|
+
var CardFooter = React7.forwardRef(
|
|
1569
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1463
1570
|
"div",
|
|
1464
1571
|
{
|
|
1465
1572
|
ref,
|
|
@@ -1476,8 +1583,8 @@ var import_react4 = require("react");
|
|
|
1476
1583
|
var import_lucide_react6 = require("lucide-react");
|
|
1477
1584
|
|
|
1478
1585
|
// src/check-list/listVariants.ts
|
|
1479
|
-
var
|
|
1480
|
-
var checkListRootVariants = (0,
|
|
1586
|
+
var import_class_variance_authority7 = require("class-variance-authority");
|
|
1587
|
+
var checkListRootVariants = (0, import_class_variance_authority7.cva)(
|
|
1481
1588
|
"check-list-root m-0 flex w-full list-none flex-col p-0",
|
|
1482
1589
|
{
|
|
1483
1590
|
variants: {
|
|
@@ -1493,10 +1600,10 @@ var checkListRootVariants = (0, import_class_variance_authority5.cva)(
|
|
|
1493
1600
|
);
|
|
1494
1601
|
var listItemBase = "flex items-start gap-2 text-base [&_.check-list-icon]:h-6 [&_.check-list-icon]:w-6";
|
|
1495
1602
|
var listItemMinimalOverrides = "[.check-list-root[data-size=minimal]_&]:gap-1.5 [.check-list-root[data-size=minimal]_&]:text-sm [.check-list-root[data-size=minimal]_&_.check-list-icon]:mt-0.5 [.check-list-root[data-size=minimal]_&_.check-list-icon]:h-[15px] [.check-list-root[data-size=minimal]_&_.check-list-icon]:w-[15px]";
|
|
1496
|
-
var checkListItemVariants = (0,
|
|
1603
|
+
var checkListItemVariants = (0, import_class_variance_authority7.cva)(`${listItemBase} ${listItemMinimalOverrides}`);
|
|
1497
1604
|
|
|
1498
1605
|
// src/check-list/CheckList.tsx
|
|
1499
|
-
var
|
|
1606
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
1500
1607
|
var CheckList = ({
|
|
1501
1608
|
children,
|
|
1502
1609
|
className,
|
|
@@ -1504,8 +1611,8 @@ var CheckList = ({
|
|
|
1504
1611
|
size = "default"
|
|
1505
1612
|
}) => {
|
|
1506
1613
|
const items = import_react4.Children.toArray(children);
|
|
1507
|
-
return /* @__PURE__ */ (0,
|
|
1508
|
-
/* @__PURE__ */ (0,
|
|
1614
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("ul", { className: cn(checkListRootVariants({ size }), className), "data-size": size, children: items.map((child, index) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("li", { className: cn(checkListItemVariants(), itemClassName), children: [
|
|
1615
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1509
1616
|
import_lucide_react6.CircleCheck,
|
|
1510
1617
|
{
|
|
1511
1618
|
className: "check-list-icon relative top-[2px] shrink-0",
|
|
@@ -1513,15 +1620,15 @@ var CheckList = ({
|
|
|
1513
1620
|
stroke: "var(--check-list-icon-mark-color)"
|
|
1514
1621
|
}
|
|
1515
1622
|
),
|
|
1516
|
-
/* @__PURE__ */ (0,
|
|
1623
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "inline-block", children: child })
|
|
1517
1624
|
] }, index)) });
|
|
1518
1625
|
};
|
|
1519
1626
|
|
|
1520
1627
|
// src/checkbox/BaseCheckbox.tsx
|
|
1521
|
-
var
|
|
1628
|
+
var React8 = __toESM(require("react"), 1);
|
|
1522
1629
|
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"), 1);
|
|
1523
1630
|
var import_lucide_react7 = require("lucide-react");
|
|
1524
|
-
var
|
|
1631
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1525
1632
|
var checkboxSizeClasses = {
|
|
1526
1633
|
default: "h-6 w-6",
|
|
1527
1634
|
m: "h-5 w-5",
|
|
@@ -1532,8 +1639,8 @@ var checkboxIconSizeClasses = {
|
|
|
1532
1639
|
m: "h-4 w-4",
|
|
1533
1640
|
s: "h-3 w-3"
|
|
1534
1641
|
};
|
|
1535
|
-
var BaseCheckbox =
|
|
1536
|
-
({ className, loading, onCheckedChange, disabled, readOnly, size = "default", ...props }, ref) => /* @__PURE__ */ (0,
|
|
1642
|
+
var BaseCheckbox = React8.forwardRef(
|
|
1643
|
+
({ className, loading, onCheckedChange, disabled, readOnly, size = "default", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1537
1644
|
CheckboxPrimitive.Root,
|
|
1538
1645
|
{
|
|
1539
1646
|
ref,
|
|
@@ -1551,11 +1658,11 @@ var BaseCheckbox = React6.forwardRef(
|
|
|
1551
1658
|
disabled,
|
|
1552
1659
|
"aria-busy": loading,
|
|
1553
1660
|
"aria-readonly": readOnly,
|
|
1554
|
-
children: /* @__PURE__ */ (0,
|
|
1661
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1555
1662
|
CheckboxPrimitive.Indicator,
|
|
1556
1663
|
{
|
|
1557
1664
|
className: cn("flex items-center justify-center text-current"),
|
|
1558
|
-
children: /* @__PURE__ */ (0,
|
|
1665
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react7.Check, { className: cn("checkbox__icon", checkboxIconSizeClasses[size]) })
|
|
1559
1666
|
}
|
|
1560
1667
|
)
|
|
1561
1668
|
}
|
|
@@ -1564,22 +1671,11 @@ var BaseCheckbox = React6.forwardRef(
|
|
|
1564
1671
|
BaseCheckbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
1565
1672
|
|
|
1566
1673
|
// src/checkbox/Checkbox.tsx
|
|
1567
|
-
var
|
|
1568
|
-
|
|
1569
|
-
// src/label/Label.tsx
|
|
1570
|
-
var React7 = __toESM(require("react"), 1);
|
|
1571
|
-
var LabelPrimitive = __toESM(require("@radix-ui/react-label"), 1);
|
|
1572
|
-
var import_class_variance_authority6 = require("class-variance-authority");
|
|
1573
|
-
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
1574
|
-
var labelVariants = (0, import_class_variance_authority6.cva)(
|
|
1575
|
-
"text-sm font-medium leading-none text-[var(--chekin-color-brand-navy)] peer-disabled:cursor-not-allowed peer-disabled:opacity-70 peer-aria-busy:cursor-wait peer-aria-busy:opacity-70 peer-aria-readonly:cursor-default peer-aria-readonly:opacity-100"
|
|
1576
|
-
);
|
|
1577
|
-
var Label = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(LabelPrimitive.Root, { ref, className: cn(labelVariants(), className), ...props }));
|
|
1578
|
-
Label.displayName = LabelPrimitive.Root.displayName;
|
|
1674
|
+
var React9 = __toESM(require("react"), 1);
|
|
1579
1675
|
|
|
1580
1676
|
// src/text-field/FieldError.tsx
|
|
1581
|
-
var
|
|
1582
|
-
var FieldError = ({ id, className, children }) => /* @__PURE__ */ (0,
|
|
1677
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
1678
|
+
var FieldError = ({ id, className, children }) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1583
1679
|
"p",
|
|
1584
1680
|
{
|
|
1585
1681
|
id,
|
|
@@ -1593,8 +1689,8 @@ var FieldError = ({ id, className, children }) => /* @__PURE__ */ (0, import_jsx
|
|
|
1593
1689
|
);
|
|
1594
1690
|
|
|
1595
1691
|
// src/text-field/SupportingText.tsx
|
|
1596
|
-
var
|
|
1597
|
-
var SupportingText = ({ id, className, children }) => /* @__PURE__ */ (0,
|
|
1692
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1693
|
+
var SupportingText = ({ id, className, children }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1598
1694
|
"p",
|
|
1599
1695
|
{
|
|
1600
1696
|
id,
|
|
@@ -1604,7 +1700,7 @@ var SupportingText = ({ id, className, children }) => /* @__PURE__ */ (0, import
|
|
|
1604
1700
|
);
|
|
1605
1701
|
|
|
1606
1702
|
// src/checkbox/Checkbox.tsx
|
|
1607
|
-
var
|
|
1703
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1608
1704
|
var rowSizeClasses = {
|
|
1609
1705
|
default: "gap-2.5",
|
|
1610
1706
|
m: "gap-2.5",
|
|
@@ -1615,7 +1711,7 @@ var labelSizeClasses = {
|
|
|
1615
1711
|
m: "text-base",
|
|
1616
1712
|
s: "text-sm"
|
|
1617
1713
|
};
|
|
1618
|
-
var Checkbox =
|
|
1714
|
+
var Checkbox = React9.forwardRef(
|
|
1619
1715
|
({
|
|
1620
1716
|
id,
|
|
1621
1717
|
label,
|
|
@@ -1634,19 +1730,19 @@ var Checkbox = React8.forwardRef(
|
|
|
1634
1730
|
supportingTextClassName,
|
|
1635
1731
|
...props
|
|
1636
1732
|
}, ref) => {
|
|
1637
|
-
const generatedId =
|
|
1733
|
+
const generatedId = React9.useId();
|
|
1638
1734
|
const checkboxId = id || generatedId;
|
|
1639
1735
|
const errorId = error ? `${checkboxId}-error` : void 0;
|
|
1640
1736
|
const descriptionId = supportingText ? `${checkboxId}-desc` : void 0;
|
|
1641
1737
|
const ariaDescribedBy = errorId || descriptionId || void 0;
|
|
1642
|
-
return /* @__PURE__ */ (0,
|
|
1643
|
-
/* @__PURE__ */ (0,
|
|
1738
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: cn("flex w-full flex-col", className), children: [
|
|
1739
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
1644
1740
|
"div",
|
|
1645
1741
|
{
|
|
1646
1742
|
className: cn("flex items-center", rowSizeClasses[size], rowClassName),
|
|
1647
1743
|
onClick: () => onWrapperClick?.(!value),
|
|
1648
1744
|
children: [
|
|
1649
|
-
/* @__PURE__ */ (0,
|
|
1745
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1650
1746
|
BaseCheckbox,
|
|
1651
1747
|
{
|
|
1652
1748
|
id: checkboxId,
|
|
@@ -1661,7 +1757,7 @@ var Checkbox = React8.forwardRef(
|
|
|
1661
1757
|
...props
|
|
1662
1758
|
}
|
|
1663
1759
|
),
|
|
1664
|
-
label && /* @__PURE__ */ (0,
|
|
1760
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1665
1761
|
Label,
|
|
1666
1762
|
{
|
|
1667
1763
|
htmlFor: checkboxId,
|
|
@@ -1677,28 +1773,28 @@ var Checkbox = React8.forwardRef(
|
|
|
1677
1773
|
]
|
|
1678
1774
|
}
|
|
1679
1775
|
),
|
|
1680
|
-
supportingText && !error && /* @__PURE__ */ (0,
|
|
1681
|
-
error && /* @__PURE__ */ (0,
|
|
1776
|
+
supportingText && !error && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SupportingText, { id: descriptionId, className: supportingTextClassName, children: supportingText }),
|
|
1777
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(FieldError, { id: errorId, className: errorClassName, children: error })
|
|
1682
1778
|
] });
|
|
1683
1779
|
}
|
|
1684
1780
|
);
|
|
1685
1781
|
Checkbox.displayName = "Checkbox";
|
|
1686
1782
|
|
|
1687
1783
|
// src/checkbox/CheckboxGroup.tsx
|
|
1688
|
-
var
|
|
1784
|
+
var React10 = __toESM(require("react"), 1);
|
|
1689
1785
|
|
|
1690
1786
|
// src/scroll-area/ScrollArea.tsx
|
|
1691
1787
|
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"), 1);
|
|
1692
|
-
var
|
|
1788
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1693
1789
|
function ScrollArea({ className, children, ...props }) {
|
|
1694
|
-
return /* @__PURE__ */ (0,
|
|
1790
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
1695
1791
|
ScrollAreaPrimitive.Root,
|
|
1696
1792
|
{
|
|
1697
1793
|
"data-slot": "scroll-area",
|
|
1698
1794
|
className: cn("relative overflow-hidden", className),
|
|
1699
1795
|
...props,
|
|
1700
1796
|
children: [
|
|
1701
|
-
/* @__PURE__ */ (0,
|
|
1797
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1702
1798
|
ScrollAreaPrimitive.Viewport,
|
|
1703
1799
|
{
|
|
1704
1800
|
"data-slot": "scroll-area-viewport",
|
|
@@ -1706,8 +1802,8 @@ function ScrollArea({ className, children, ...props }) {
|
|
|
1706
1802
|
children
|
|
1707
1803
|
}
|
|
1708
1804
|
),
|
|
1709
|
-
/* @__PURE__ */ (0,
|
|
1710
|
-
/* @__PURE__ */ (0,
|
|
1805
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ScrollBar, {}),
|
|
1806
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ScrollAreaPrimitive.Corner, {})
|
|
1711
1807
|
]
|
|
1712
1808
|
}
|
|
1713
1809
|
);
|
|
@@ -1717,7 +1813,7 @@ function ScrollBar({
|
|
|
1717
1813
|
orientation = "vertical",
|
|
1718
1814
|
...props
|
|
1719
1815
|
}) {
|
|
1720
|
-
return /* @__PURE__ */ (0,
|
|
1816
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1721
1817
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
1722
1818
|
{
|
|
1723
1819
|
"data-slot": "scroll-area-scrollbar",
|
|
@@ -1729,7 +1825,7 @@ function ScrollBar({
|
|
|
1729
1825
|
className
|
|
1730
1826
|
),
|
|
1731
1827
|
...props,
|
|
1732
|
-
children: /* @__PURE__ */ (0,
|
|
1828
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1733
1829
|
ScrollAreaPrimitive.ScrollAreaThumb,
|
|
1734
1830
|
{
|
|
1735
1831
|
"data-slot": "scroll-area-thumb",
|
|
@@ -1740,24 +1836,8 @@ function ScrollBar({
|
|
|
1740
1836
|
);
|
|
1741
1837
|
}
|
|
1742
1838
|
|
|
1743
|
-
// src/error-message/ErrorMessage.tsx
|
|
1744
|
-
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1745
|
-
function ErrorMessage({ className, children, disabled }) {
|
|
1746
|
-
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1747
|
-
"div",
|
|
1748
|
-
{
|
|
1749
|
-
className: cn(
|
|
1750
|
-
"mt-0.5 text-left text-sm font-medium text-[var(--error-message-color)]",
|
|
1751
|
-
disabled && "opacity-30",
|
|
1752
|
-
className
|
|
1753
|
-
),
|
|
1754
|
-
children
|
|
1755
|
-
}
|
|
1756
|
-
);
|
|
1757
|
-
}
|
|
1758
|
-
|
|
1759
1839
|
// src/checkbox/CheckboxGroup.tsx
|
|
1760
|
-
var
|
|
1840
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1761
1841
|
var ScrollAreaWrapper = ({
|
|
1762
1842
|
children,
|
|
1763
1843
|
scrollable,
|
|
@@ -1766,7 +1846,7 @@ var ScrollAreaWrapper = ({
|
|
|
1766
1846
|
if (!scrollable) {
|
|
1767
1847
|
return children;
|
|
1768
1848
|
}
|
|
1769
|
-
return /* @__PURE__ */ (0,
|
|
1849
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1770
1850
|
ScrollArea,
|
|
1771
1851
|
{
|
|
1772
1852
|
className: "max-h-96 w-full overflow-hidden",
|
|
@@ -1775,7 +1855,7 @@ var ScrollAreaWrapper = ({
|
|
|
1775
1855
|
}
|
|
1776
1856
|
);
|
|
1777
1857
|
};
|
|
1778
|
-
var CheckboxGroup =
|
|
1858
|
+
var CheckboxGroup = React10.forwardRef(
|
|
1779
1859
|
({
|
|
1780
1860
|
options,
|
|
1781
1861
|
value = [],
|
|
@@ -1789,7 +1869,7 @@ var CheckboxGroup = React9.forwardRef(
|
|
|
1789
1869
|
error,
|
|
1790
1870
|
...props
|
|
1791
1871
|
}, ref) => {
|
|
1792
|
-
const selectAllId =
|
|
1872
|
+
const selectAllId = React10.useId();
|
|
1793
1873
|
const handleOptionChange = (optionValue, checked) => {
|
|
1794
1874
|
if (!onChange) return;
|
|
1795
1875
|
if (checked) {
|
|
@@ -1811,10 +1891,10 @@ var CheckboxGroup = React9.forwardRef(
|
|
|
1811
1891
|
(selectedValue) => availableOptions.some((option) => option.value === selectedValue)
|
|
1812
1892
|
);
|
|
1813
1893
|
const isAllSelected = selectedAvailableValues.length > 0 && selectedAvailableValues.length === availableOptions.length;
|
|
1814
|
-
return /* @__PURE__ */ (0,
|
|
1815
|
-
showSelectAll && /* @__PURE__ */ (0,
|
|
1816
|
-
/* @__PURE__ */ (0,
|
|
1817
|
-
/* @__PURE__ */ (0,
|
|
1894
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { ref, className: cn("space-y-2", className), ...props, children: [
|
|
1895
|
+
showSelectAll && /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
|
|
1896
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
1897
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1818
1898
|
BaseCheckbox,
|
|
1819
1899
|
{
|
|
1820
1900
|
id: selectAllId,
|
|
@@ -1823,7 +1903,7 @@ var CheckboxGroup = React9.forwardRef(
|
|
|
1823
1903
|
disabled: disabled || availableOptions.length === 0
|
|
1824
1904
|
}
|
|
1825
1905
|
),
|
|
1826
|
-
/* @__PURE__ */ (0,
|
|
1906
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1827
1907
|
Label,
|
|
1828
1908
|
{
|
|
1829
1909
|
htmlFor: selectAllId,
|
|
@@ -1832,9 +1912,9 @@ var CheckboxGroup = React9.forwardRef(
|
|
|
1832
1912
|
}
|
|
1833
1913
|
)
|
|
1834
1914
|
] }),
|
|
1835
|
-
/* @__PURE__ */ (0,
|
|
1915
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("hr", { className: "border-t border-chekin-gray-3" })
|
|
1836
1916
|
] }),
|
|
1837
|
-
/* @__PURE__ */ (0,
|
|
1917
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ScrollAreaWrapper, { scrollable, scrollHeight, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "space-y-2", children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1838
1918
|
Checkbox,
|
|
1839
1919
|
{
|
|
1840
1920
|
label: option.label,
|
|
@@ -1844,7 +1924,7 @@ var CheckboxGroup = React9.forwardRef(
|
|
|
1844
1924
|
},
|
|
1845
1925
|
option.value
|
|
1846
1926
|
)) }) }),
|
|
1847
|
-
error && /* @__PURE__ */ (0,
|
|
1927
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ErrorMessage, { disabled, children: error })
|
|
1848
1928
|
] });
|
|
1849
1929
|
}
|
|
1850
1930
|
);
|
|
@@ -1891,12 +1971,12 @@ function toCssSize(size) {
|
|
|
1891
1971
|
}
|
|
1892
1972
|
|
|
1893
1973
|
// src/tooltip/Tooltip.tsx
|
|
1894
|
-
var
|
|
1974
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1895
1975
|
function TooltipProvider({
|
|
1896
1976
|
delayDuration = 0,
|
|
1897
1977
|
...props
|
|
1898
1978
|
}) {
|
|
1899
|
-
return /* @__PURE__ */ (0,
|
|
1979
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1900
1980
|
TooltipPrimitive.Provider,
|
|
1901
1981
|
{
|
|
1902
1982
|
"data-slot": "tooltip-provider",
|
|
@@ -1907,7 +1987,7 @@ function TooltipProvider({
|
|
|
1907
1987
|
}
|
|
1908
1988
|
var TooltipRoot = TooltipPrimitive.Root;
|
|
1909
1989
|
function TooltipRootWrapper({ disabled = false, ...props }) {
|
|
1910
|
-
return /* @__PURE__ */ (0,
|
|
1990
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1911
1991
|
TooltipPrimitive.Root,
|
|
1912
1992
|
{
|
|
1913
1993
|
"data-slot": "tooltip",
|
|
@@ -1917,7 +1997,7 @@ function TooltipRootWrapper({ disabled = false, ...props }) {
|
|
|
1917
1997
|
) });
|
|
1918
1998
|
}
|
|
1919
1999
|
function TooltipTrigger(props) {
|
|
1920
|
-
return /* @__PURE__ */ (0,
|
|
2000
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(TooltipPrimitive.Trigger, { "data-slot": "tooltip-trigger", ...props });
|
|
1921
2001
|
}
|
|
1922
2002
|
function TooltipContent({
|
|
1923
2003
|
className,
|
|
@@ -1927,7 +2007,7 @@ function TooltipContent({
|
|
|
1927
2007
|
container,
|
|
1928
2008
|
...props
|
|
1929
2009
|
}) {
|
|
1930
|
-
return /* @__PURE__ */ (0,
|
|
2010
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(TooltipPrimitive.Portal, { container: container ?? getCustomContainer(), children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
1931
2011
|
TooltipPrimitive.Content,
|
|
1932
2012
|
{
|
|
1933
2013
|
"data-slot": "tooltip-content",
|
|
@@ -1948,7 +2028,7 @@ function TooltipContent({
|
|
|
1948
2028
|
...props,
|
|
1949
2029
|
children: [
|
|
1950
2030
|
children,
|
|
1951
|
-
/* @__PURE__ */ (0,
|
|
2031
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1952
2032
|
TooltipPrimitive.Arrow,
|
|
1953
2033
|
{
|
|
1954
2034
|
className: cn(
|
|
@@ -1978,7 +2058,7 @@ function Tooltip({
|
|
|
1978
2058
|
...props
|
|
1979
2059
|
}) {
|
|
1980
2060
|
if (typeof content === "undefined") {
|
|
1981
|
-
return /* @__PURE__ */ (0,
|
|
2061
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(TooltipProvider, { delayDuration, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1982
2062
|
TooltipPrimitive.Root,
|
|
1983
2063
|
{
|
|
1984
2064
|
"data-slot": "tooltip",
|
|
@@ -1988,15 +2068,15 @@ function Tooltip({
|
|
|
1988
2068
|
}
|
|
1989
2069
|
) });
|
|
1990
2070
|
}
|
|
1991
|
-
return /* @__PURE__ */ (0,
|
|
2071
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(TooltipProvider, { delayDuration, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
1992
2072
|
TooltipPrimitive.Root,
|
|
1993
2073
|
{
|
|
1994
2074
|
"data-slot": "tooltip",
|
|
1995
2075
|
open: disabled ? false : void 0,
|
|
1996
2076
|
...props,
|
|
1997
2077
|
children: [
|
|
1998
|
-
/* @__PURE__ */ (0,
|
|
1999
|
-
/* @__PURE__ */ (0,
|
|
2078
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(TooltipPrimitive.Trigger, { "data-slot": "tooltip-trigger", asChild, children }),
|
|
2079
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2000
2080
|
TooltipContent,
|
|
2001
2081
|
{
|
|
2002
2082
|
side,
|
|
@@ -2015,7 +2095,7 @@ function Tooltip({
|
|
|
2015
2095
|
// src/status-badge/StatusBadge.tsx
|
|
2016
2096
|
var import_react5 = require("react");
|
|
2017
2097
|
var import_lucide_react8 = require("lucide-react");
|
|
2018
|
-
var
|
|
2098
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
2019
2099
|
function StatusBadgeIcon({ variant, className }) {
|
|
2020
2100
|
const iconProps = {
|
|
2021
2101
|
size: 10,
|
|
@@ -2023,7 +2103,7 @@ function StatusBadgeIcon({ variant, className }) {
|
|
|
2023
2103
|
};
|
|
2024
2104
|
switch (variant) {
|
|
2025
2105
|
case "clock-blue":
|
|
2026
|
-
return /* @__PURE__ */ (0,
|
|
2106
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2027
2107
|
import_lucide_react8.Clock,
|
|
2028
2108
|
{
|
|
2029
2109
|
...iconProps,
|
|
@@ -2031,7 +2111,7 @@ function StatusBadgeIcon({ variant, className }) {
|
|
|
2031
2111
|
}
|
|
2032
2112
|
);
|
|
2033
2113
|
case "tick-blue":
|
|
2034
|
-
return /* @__PURE__ */ (0,
|
|
2114
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2035
2115
|
import_lucide_react8.Check,
|
|
2036
2116
|
{
|
|
2037
2117
|
...iconProps,
|
|
@@ -2039,9 +2119,9 @@ function StatusBadgeIcon({ variant, className }) {
|
|
|
2039
2119
|
}
|
|
2040
2120
|
);
|
|
2041
2121
|
case "tick-green":
|
|
2042
|
-
return /* @__PURE__ */ (0,
|
|
2122
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_lucide_react8.Check, { ...iconProps, className: cn("text-emerald-600", className) });
|
|
2043
2123
|
case "x-red":
|
|
2044
|
-
return /* @__PURE__ */ (0,
|
|
2124
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2045
2125
|
import_lucide_react8.X,
|
|
2046
2126
|
{
|
|
2047
2127
|
...iconProps,
|
|
@@ -2050,7 +2130,7 @@ function StatusBadgeIcon({ variant, className }) {
|
|
|
2050
2130
|
);
|
|
2051
2131
|
case "clock-grey":
|
|
2052
2132
|
default:
|
|
2053
|
-
return /* @__PURE__ */ (0,
|
|
2133
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2054
2134
|
import_lucide_react8.Clock,
|
|
2055
2135
|
{
|
|
2056
2136
|
...iconProps,
|
|
@@ -2116,7 +2196,7 @@ var StatusBadgeInternal = (0, import_react5.forwardRef)(
|
|
|
2116
2196
|
if (hasText && hasIcon) return "py-1 pl-3 pr-2";
|
|
2117
2197
|
return "px-3 py-1";
|
|
2118
2198
|
})();
|
|
2119
|
-
return /* @__PURE__ */ (0,
|
|
2199
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
2120
2200
|
"div",
|
|
2121
2201
|
{
|
|
2122
2202
|
ref,
|
|
@@ -2130,8 +2210,8 @@ var StatusBadgeInternal = (0, import_react5.forwardRef)(
|
|
|
2130
2210
|
),
|
|
2131
2211
|
...props,
|
|
2132
2212
|
children: [
|
|
2133
|
-
hasIcon && /* @__PURE__ */ (0,
|
|
2134
|
-
hasText && /* @__PURE__ */ (0,
|
|
2213
|
+
hasIcon && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(StatusBadgeIcon, { variant: styles.icon, className: "size-4 flex-shrink-0" }),
|
|
2214
|
+
hasText && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "whitespace-nowrap", children })
|
|
2135
2215
|
]
|
|
2136
2216
|
}
|
|
2137
2217
|
);
|
|
@@ -2141,19 +2221,19 @@ StatusBadgeInternal.displayName = "StatusBadge";
|
|
|
2141
2221
|
var StatusBadge = (0, import_react5.memo)(StatusBadgeInternal);
|
|
2142
2222
|
|
|
2143
2223
|
// src/comming-soon-badge/CommingSoonBadge.tsx
|
|
2144
|
-
var
|
|
2224
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
2145
2225
|
function CommingSoonBadge({ tooltip = true }) {
|
|
2146
2226
|
const { t } = (0, import_react_i18next4.useTranslation)();
|
|
2147
|
-
return /* @__PURE__ */ (0,
|
|
2148
|
-
/* @__PURE__ */ (0,
|
|
2149
|
-
tooltip && /* @__PURE__ */ (0,
|
|
2227
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(Tooltip, { children: [
|
|
2228
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(StatusBadge, { textOnly: true, variant: "success-blue", children: t("feature_coming_soon") }) }),
|
|
2229
|
+
tooltip && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(TooltipContent, { variant: "dark", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "w-[216px] text-balance", children: t("feature_coming_soon_description") }) })
|
|
2150
2230
|
] }) });
|
|
2151
2231
|
}
|
|
2152
2232
|
|
|
2153
2233
|
// src/copy-icon/CopyIcon.tsx
|
|
2154
2234
|
var import_react6 = require("react");
|
|
2155
2235
|
var import_lucide_react9 = require("lucide-react");
|
|
2156
|
-
var
|
|
2236
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
2157
2237
|
function CopyIcon({
|
|
2158
2238
|
textToCopy,
|
|
2159
2239
|
className,
|
|
@@ -2181,8 +2261,8 @@ function CopyIcon({
|
|
|
2181
2261
|
console.error("Failed to copy text: ", error);
|
|
2182
2262
|
}
|
|
2183
2263
|
};
|
|
2184
|
-
return /* @__PURE__ */ (0,
|
|
2185
|
-
/* @__PURE__ */ (0,
|
|
2264
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(Tooltip, { children: [
|
|
2265
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
2186
2266
|
Button,
|
|
2187
2267
|
{
|
|
2188
2268
|
variant,
|
|
@@ -2200,14 +2280,14 @@ function CopyIcon({
|
|
|
2200
2280
|
"aria-label": copied ? "Copied" : "Copy to clipboard",
|
|
2201
2281
|
readOnly: copied,
|
|
2202
2282
|
children: [
|
|
2203
|
-
/* @__PURE__ */ (0,
|
|
2283
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2204
2284
|
"div",
|
|
2205
2285
|
{
|
|
2206
2286
|
className: cn(
|
|
2207
2287
|
"transition-all",
|
|
2208
2288
|
copied ? "scale-100 opacity-100" : "scale-0 opacity-0"
|
|
2209
2289
|
),
|
|
2210
|
-
children: /* @__PURE__ */ (0,
|
|
2290
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2211
2291
|
import_lucide_react9.Check,
|
|
2212
2292
|
{
|
|
2213
2293
|
className: "stroke-[var(--copy-icon-success-color)]",
|
|
@@ -2218,28 +2298,28 @@ function CopyIcon({
|
|
|
2218
2298
|
)
|
|
2219
2299
|
}
|
|
2220
2300
|
),
|
|
2221
|
-
/* @__PURE__ */ (0,
|
|
2301
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2222
2302
|
"div",
|
|
2223
2303
|
{
|
|
2224
2304
|
className: cn(
|
|
2225
2305
|
"absolute transition-all",
|
|
2226
2306
|
copied ? "scale-0 opacity-0" : "scale-100 opacity-100"
|
|
2227
2307
|
),
|
|
2228
|
-
children: /* @__PURE__ */ (0,
|
|
2308
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_lucide_react9.Copy, { size: 13, strokeWidth: 2, "aria-hidden": "true" })
|
|
2229
2309
|
}
|
|
2230
2310
|
)
|
|
2231
2311
|
]
|
|
2232
2312
|
}
|
|
2233
2313
|
) }),
|
|
2234
|
-
/* @__PURE__ */ (0,
|
|
2314
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(TooltipContent, { className: "px-2 py-2 text-xs", children: tooltipText })
|
|
2235
2315
|
] }) });
|
|
2236
2316
|
}
|
|
2237
2317
|
|
|
2238
2318
|
// src/input/Input.tsx
|
|
2239
|
-
var
|
|
2240
|
-
var
|
|
2241
|
-
var Input =
|
|
2242
|
-
({ className, type, readOnly, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2319
|
+
var React11 = __toESM(require("react"), 1);
|
|
2320
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
2321
|
+
var Input = React11.forwardRef(
|
|
2322
|
+
({ className, type, readOnly, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2243
2323
|
"input",
|
|
2244
2324
|
{
|
|
2245
2325
|
ref,
|
|
@@ -2262,11 +2342,11 @@ var Input = React10.forwardRef(
|
|
|
2262
2342
|
Input.displayName = "Input";
|
|
2263
2343
|
|
|
2264
2344
|
// src/copy-input/CopyInput.tsx
|
|
2265
|
-
var
|
|
2345
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
2266
2346
|
function CopyInput({ value, className, ...props }) {
|
|
2267
2347
|
const textToCopy = value?.toString() ?? "";
|
|
2268
|
-
return /* @__PURE__ */ (0,
|
|
2269
|
-
/* @__PURE__ */ (0,
|
|
2348
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: cn("relative w-fit", className), children: [
|
|
2349
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2270
2350
|
Input,
|
|
2271
2351
|
{
|
|
2272
2352
|
readOnly: true,
|
|
@@ -2275,7 +2355,7 @@ function CopyInput({ value, className, ...props }) {
|
|
|
2275
2355
|
...props
|
|
2276
2356
|
}
|
|
2277
2357
|
),
|
|
2278
|
-
textToCopy && /* @__PURE__ */ (0,
|
|
2358
|
+
textToCopy && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2279
2359
|
CopyIcon,
|
|
2280
2360
|
{
|
|
2281
2361
|
textToCopy,
|
|
@@ -2354,7 +2434,7 @@ function useCopyToClipboard({ value, onCopiedLink, onReset }) {
|
|
|
2354
2434
|
}
|
|
2355
2435
|
|
|
2356
2436
|
// src/copy-link-button/CopyLinkButton.tsx
|
|
2357
|
-
var
|
|
2437
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
2358
2438
|
function CopyLinkButton({
|
|
2359
2439
|
className,
|
|
2360
2440
|
link,
|
|
@@ -2368,7 +2448,7 @@ function CopyLinkButton({
|
|
|
2368
2448
|
}) {
|
|
2369
2449
|
const { t } = (0, import_react_i18next5.useTranslation)();
|
|
2370
2450
|
const { isCopied, copy } = useCopyToClipboard({ value: link, onCopiedLink });
|
|
2371
|
-
return /* @__PURE__ */ (0,
|
|
2451
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
2372
2452
|
Button,
|
|
2373
2453
|
{
|
|
2374
2454
|
className,
|
|
@@ -2385,11 +2465,11 @@ function CopyLinkButton({
|
|
|
2385
2465
|
}
|
|
2386
2466
|
|
|
2387
2467
|
// src/copy-string/CopyString.tsx
|
|
2388
|
-
var
|
|
2468
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
2389
2469
|
function CopyString({ value = "", className, ...props }) {
|
|
2390
|
-
return /* @__PURE__ */ (0,
|
|
2391
|
-
/* @__PURE__ */ (0,
|
|
2392
|
-
/* @__PURE__ */ (0,
|
|
2470
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: cn("flex w-fit items-center gap-1.5", className), ...props, children: [
|
|
2471
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "copy-string_value w-full overflow-hidden text-ellipsis whitespace-nowrap text-left", children: value }),
|
|
2472
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CopyIcon, { textToCopy: value })
|
|
2393
2473
|
] });
|
|
2394
2474
|
}
|
|
2395
2475
|
|
|
@@ -2401,15 +2481,15 @@ var import_react_table = require("@tanstack/react-table");
|
|
|
2401
2481
|
var import_react8 = require("react");
|
|
2402
2482
|
|
|
2403
2483
|
// src/loading-bar/LoadingBar.tsx
|
|
2404
|
-
var
|
|
2484
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
2405
2485
|
function LoadingBar({ className }) {
|
|
2406
|
-
return /* @__PURE__ */ (0,
|
|
2486
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: cn("w-full p-4", className), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "relative h-1 w-full overflow-hidden rounded-full bg-[var(--chekin-color-white)]", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "absolute top-0 h-full animate-[chekin-loading-bar_0.8s_linear_infinite] rounded-full bg-[var(--primary)]" }) }) });
|
|
2407
2487
|
}
|
|
2408
2488
|
|
|
2409
2489
|
// src/table/Table.tsx
|
|
2410
|
-
var
|
|
2490
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
2411
2491
|
var Table = (0, import_react8.forwardRef)(
|
|
2412
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2492
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "relative w-full overflow-auto rounded-lg border border-[var(--table-border)]", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2413
2493
|
"table",
|
|
2414
2494
|
{
|
|
2415
2495
|
ref,
|
|
@@ -2419,7 +2499,7 @@ var Table = (0, import_react8.forwardRef)(
|
|
|
2419
2499
|
) })
|
|
2420
2500
|
);
|
|
2421
2501
|
Table.displayName = "Table";
|
|
2422
|
-
var TableHeader = (0, import_react8.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2502
|
+
var TableHeader = (0, import_react8.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2423
2503
|
"thead",
|
|
2424
2504
|
{
|
|
2425
2505
|
ref,
|
|
@@ -2432,7 +2512,7 @@ var TableHeader = (0, import_react8.forwardRef)(({ className, ...props }, ref) =
|
|
|
2432
2512
|
}
|
|
2433
2513
|
));
|
|
2434
2514
|
TableHeader.displayName = "TableHeader";
|
|
2435
|
-
var TableBody = (0, import_react8.forwardRef)(({ className, children, isLoading, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2515
|
+
var TableBody = (0, import_react8.forwardRef)(({ className, children, isLoading, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
2436
2516
|
"tbody",
|
|
2437
2517
|
{
|
|
2438
2518
|
ref,
|
|
@@ -2441,14 +2521,14 @@ var TableBody = (0, import_react8.forwardRef)(({ className, children, isLoading,
|
|
|
2441
2521
|
}),
|
|
2442
2522
|
...props,
|
|
2443
2523
|
children: [
|
|
2444
|
-
isLoading && /* @__PURE__ */ (0,
|
|
2445
|
-
isLoading && /* @__PURE__ */ (0,
|
|
2524
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("tr", { className: "absolute bottom-0 left-0 right-0 top-0 z-20 cursor-wait bg-[var(--table-loading-overlay-bg)] opacity-50" }),
|
|
2525
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("tr", { className: "!m-0 !p-0", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("td", { className: "!m-0 !p-0", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(LoadingBar, { className: "absolute z-20 p-0" }) }) }),
|
|
2446
2526
|
children
|
|
2447
2527
|
]
|
|
2448
2528
|
}
|
|
2449
2529
|
));
|
|
2450
2530
|
TableBody.displayName = "TableBody";
|
|
2451
|
-
var TableFooter = (0, import_react8.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2531
|
+
var TableFooter = (0, import_react8.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2452
2532
|
"tfoot",
|
|
2453
2533
|
{
|
|
2454
2534
|
ref,
|
|
@@ -2461,7 +2541,7 @@ var TableFooter = (0, import_react8.forwardRef)(({ className, ...props }, ref) =
|
|
|
2461
2541
|
));
|
|
2462
2542
|
TableFooter.displayName = "TableFooter";
|
|
2463
2543
|
var TableRow = (0, import_react8.forwardRef)(
|
|
2464
|
-
({ className, clickable, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2544
|
+
({ className, clickable, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2465
2545
|
"tr",
|
|
2466
2546
|
{
|
|
2467
2547
|
ref,
|
|
@@ -2475,7 +2555,7 @@ var TableRow = (0, import_react8.forwardRef)(
|
|
|
2475
2555
|
)
|
|
2476
2556
|
);
|
|
2477
2557
|
TableRow.displayName = "TableRow";
|
|
2478
|
-
var TableHead = (0, import_react8.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2558
|
+
var TableHead = (0, import_react8.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2479
2559
|
"th",
|
|
2480
2560
|
{
|
|
2481
2561
|
ref,
|
|
@@ -2487,7 +2567,7 @@ var TableHead = (0, import_react8.forwardRef)(({ className, ...props }, ref) =>
|
|
|
2487
2567
|
}
|
|
2488
2568
|
));
|
|
2489
2569
|
TableHead.displayName = "TableHead";
|
|
2490
|
-
var TableCell = (0, import_react8.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2570
|
+
var TableCell = (0, import_react8.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2491
2571
|
"td",
|
|
2492
2572
|
{
|
|
2493
2573
|
ref,
|
|
@@ -2499,7 +2579,7 @@ var TableCell = (0, import_react8.forwardRef)(({ className, ...props }, ref) =>
|
|
|
2499
2579
|
}
|
|
2500
2580
|
));
|
|
2501
2581
|
TableCell.displayName = "TableCell";
|
|
2502
|
-
var TableCaption = (0, import_react8.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2582
|
+
var TableCaption = (0, import_react8.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2503
2583
|
"caption",
|
|
2504
2584
|
{
|
|
2505
2585
|
ref,
|
|
@@ -2510,7 +2590,7 @@ var TableCaption = (0, import_react8.forwardRef)(({ className, ...props }, ref)
|
|
|
2510
2590
|
TableCaption.displayName = "TableCaption";
|
|
2511
2591
|
|
|
2512
2592
|
// src/data-table/DataTable.tsx
|
|
2513
|
-
var
|
|
2593
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
2514
2594
|
function DataTable({ columns, data }) {
|
|
2515
2595
|
const { t } = (0, import_react_i18next6.useTranslation)();
|
|
2516
2596
|
const table = (0, import_react_table.useReactTable)({
|
|
@@ -2518,16 +2598,16 @@ function DataTable({ columns, data }) {
|
|
|
2518
2598
|
columns,
|
|
2519
2599
|
getCoreRowModel: (0, import_react_table.getCoreRowModel)()
|
|
2520
2600
|
});
|
|
2521
|
-
return /* @__PURE__ */ (0,
|
|
2522
|
-
/* @__PURE__ */ (0,
|
|
2523
|
-
return /* @__PURE__ */ (0,
|
|
2601
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "rounded-md border", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(Table, { children: [
|
|
2602
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(TableHeader, { children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(TableRow, { children: headerGroup.headers.map((header) => {
|
|
2603
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(TableHead, { children: header.isPlaceholder ? null : (0, import_react_table.flexRender)(header.column.columnDef.header, header.getContext()) }, header.id);
|
|
2524
2604
|
}) }, headerGroup.id)) }),
|
|
2525
|
-
/* @__PURE__ */ (0,
|
|
2605
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(TableBody, { children: table.getRowModel().rows?.length ? table.getRowModel().rows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(TableRow, { "data-state": row.getIsSelected() && "selected", children: row.getVisibleCells().map((cell) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(TableCell, { children: (0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext()) }, cell.id)) }, row.id)) : /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(TableCell, { colSpan: columns.length, className: "h-24 text-center", children: t("no_results") }) }) })
|
|
2526
2606
|
] }) });
|
|
2527
2607
|
}
|
|
2528
2608
|
|
|
2529
2609
|
// src/dialog/Dialog.tsx
|
|
2530
|
-
var
|
|
2610
|
+
var React15 = __toESM(require("react"), 1);
|
|
2531
2611
|
var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
2532
2612
|
var import_react_visually_hidden = require("@radix-ui/react-visually-hidden");
|
|
2533
2613
|
var import_lucide_react10 = require("lucide-react");
|
|
@@ -3401,7 +3481,7 @@ function useKeyDown(key, cb, options) {
|
|
|
3401
3481
|
}
|
|
3402
3482
|
|
|
3403
3483
|
// src/hooks/use-iframe-focus-trap-fallback.ts
|
|
3404
|
-
var
|
|
3484
|
+
var React14 = __toESM(require("react"), 1);
|
|
3405
3485
|
var IFRAME_FOCUSABLE_SELECTOR = [
|
|
3406
3486
|
"a[href]",
|
|
3407
3487
|
"area[href]",
|
|
@@ -3431,7 +3511,7 @@ function getFocusableElements(container) {
|
|
|
3431
3511
|
});
|
|
3432
3512
|
}
|
|
3433
3513
|
function useIframeFocusTrapFallback(contentRef, onKeyDown) {
|
|
3434
|
-
return
|
|
3514
|
+
return React14.useCallback(
|
|
3435
3515
|
(event) => {
|
|
3436
3516
|
onKeyDown?.(event);
|
|
3437
3517
|
if (event.defaultPrevented || event.key !== "Tab") {
|
|
@@ -3559,9 +3639,9 @@ function useIsFormTouched({
|
|
|
3559
3639
|
}
|
|
3560
3640
|
|
|
3561
3641
|
// src/dialog/Dialog.tsx
|
|
3562
|
-
var
|
|
3642
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
3563
3643
|
function useIframeTitleFix(titleRef) {
|
|
3564
|
-
|
|
3644
|
+
React15.useEffect(() => {
|
|
3565
3645
|
if (!window.chekinCustomDocument) {
|
|
3566
3646
|
return;
|
|
3567
3647
|
}
|
|
@@ -3577,20 +3657,20 @@ function useIframeTitleFix(titleRef) {
|
|
|
3577
3657
|
}, [titleRef]);
|
|
3578
3658
|
}
|
|
3579
3659
|
function Dialog({ ...props }) {
|
|
3580
|
-
return /* @__PURE__ */ (0,
|
|
3660
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(DialogPrimitive.Root, { "data-slot": "dialog", ...props });
|
|
3581
3661
|
}
|
|
3582
3662
|
function DialogTrigger({ ...props }) {
|
|
3583
|
-
return /* @__PURE__ */ (0,
|
|
3663
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(DialogPrimitive.Trigger, { "data-slot": "dialog-trigger", ...props });
|
|
3584
3664
|
}
|
|
3585
3665
|
function DialogPortal({ ...props }) {
|
|
3586
|
-
return /* @__PURE__ */ (0,
|
|
3666
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(DialogPrimitive.Portal, { "data-slot": "dialog-portal", ...props });
|
|
3587
3667
|
}
|
|
3588
3668
|
function DialogClose({ ...props }) {
|
|
3589
|
-
return /* @__PURE__ */ (0,
|
|
3669
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(DialogPrimitive.Close, { "data-slot": "dialog-close", ...props });
|
|
3590
3670
|
}
|
|
3591
3671
|
var dialogOverlayClasses = "fixed inset-0 z-50 bg-[var(--dialog-overlay-bg)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0";
|
|
3592
3672
|
var scrollableOverlayClasses = "fixed inset-0 z-50 flex flex-col items-center overflow-y-auto overscroll-none pb-[19px] pt-[20px]";
|
|
3593
|
-
var DialogOverlay =
|
|
3673
|
+
var DialogOverlay = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3594
3674
|
DialogPrimitive.Overlay,
|
|
3595
3675
|
{
|
|
3596
3676
|
ref,
|
|
@@ -3602,7 +3682,7 @@ var DialogOverlay = React14.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
3602
3682
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
3603
3683
|
var dialogContentClasses = "relative z-50 my-auto w-full max-w-[calc(100%-2rem)] rounded-[var(--dialog-content-radius)] border border-[var(--dialog-content-border)] bg-[var(--dialog-content-bg)] p-6 text-[var(--dialog-content-text)] shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:max-w-2xl";
|
|
3604
3684
|
var dialogCloseButtonClasses = "absolute right-4 top-4 flex size-6 items-center justify-center rounded-[var(--dialog-close-radius)] opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:shadow-chekin-focus disabled:pointer-events-none [&_svg:not([class*=size-])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0";
|
|
3605
|
-
var DialogContent =
|
|
3685
|
+
var DialogContent = React15.forwardRef(
|
|
3606
3686
|
({
|
|
3607
3687
|
className,
|
|
3608
3688
|
showCloseButton = true,
|
|
@@ -3612,10 +3692,10 @@ var DialogContent = React14.forwardRef(
|
|
|
3612
3692
|
overlayClassName,
|
|
3613
3693
|
...props
|
|
3614
3694
|
}, ref) => {
|
|
3615
|
-
const contentRef =
|
|
3695
|
+
const contentRef = React15.useRef(null);
|
|
3616
3696
|
const combinedRef = useCombinedRef(contentRef, ref);
|
|
3617
3697
|
const handleKeyDown = useIframeFocusTrapFallback(contentRef, props.onKeyDown);
|
|
3618
|
-
const contentElement = /* @__PURE__ */ (0,
|
|
3698
|
+
const contentElement = /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
3619
3699
|
DialogPrimitive.Content,
|
|
3620
3700
|
{
|
|
3621
3701
|
ref: combinedRef,
|
|
@@ -3625,14 +3705,14 @@ var DialogContent = React14.forwardRef(
|
|
|
3625
3705
|
onKeyDown: handleKeyDown,
|
|
3626
3706
|
children: [
|
|
3627
3707
|
children,
|
|
3628
|
-
showCloseButton && /* @__PURE__ */ (0,
|
|
3708
|
+
showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
3629
3709
|
DialogPrimitive.Close,
|
|
3630
3710
|
{
|
|
3631
3711
|
"data-slot": "dialog-close",
|
|
3632
3712
|
className: dialogCloseButtonClasses,
|
|
3633
3713
|
children: [
|
|
3634
|
-
/* @__PURE__ */ (0,
|
|
3635
|
-
/* @__PURE__ */ (0,
|
|
3714
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react10.XIcon, {}),
|
|
3715
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "sr-only", children: "Close" })
|
|
3636
3716
|
]
|
|
3637
3717
|
}
|
|
3638
3718
|
)
|
|
@@ -3640,7 +3720,7 @@ var DialogContent = React14.forwardRef(
|
|
|
3640
3720
|
}
|
|
3641
3721
|
);
|
|
3642
3722
|
const portalContainer = container || (typeof window !== "undefined" ? window.chekinCustomDocument?.body : void 0);
|
|
3643
|
-
return /* @__PURE__ */ (0,
|
|
3723
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(DialogPortal, { "data-slot": "dialog-portal", container: portalContainer, children: lockScroll ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3644
3724
|
DialogOverlay,
|
|
3645
3725
|
{
|
|
3646
3726
|
className: cn(
|
|
@@ -3650,7 +3730,7 @@ var DialogContent = React14.forwardRef(
|
|
|
3650
3730
|
),
|
|
3651
3731
|
children: contentElement
|
|
3652
3732
|
}
|
|
3653
|
-
) : /* @__PURE__ */ (0,
|
|
3733
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3654
3734
|
"div",
|
|
3655
3735
|
{
|
|
3656
3736
|
className: cn(
|
|
@@ -3664,7 +3744,7 @@ var DialogContent = React14.forwardRef(
|
|
|
3664
3744
|
}
|
|
3665
3745
|
);
|
|
3666
3746
|
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
3667
|
-
var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
3747
|
+
var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3668
3748
|
"div",
|
|
3669
3749
|
{
|
|
3670
3750
|
"data-slot": "dialog-header",
|
|
@@ -3673,7 +3753,7 @@ var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_r
|
|
|
3673
3753
|
}
|
|
3674
3754
|
);
|
|
3675
3755
|
DialogHeader.displayName = "DialogHeader";
|
|
3676
|
-
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
3756
|
+
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3677
3757
|
"div",
|
|
3678
3758
|
{
|
|
3679
3759
|
"data-slot": "dialog-footer",
|
|
@@ -3682,11 +3762,11 @@ var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_r
|
|
|
3682
3762
|
}
|
|
3683
3763
|
);
|
|
3684
3764
|
DialogFooter.displayName = "DialogFooter";
|
|
3685
|
-
var DialogTitle =
|
|
3686
|
-
const titleRef =
|
|
3765
|
+
var DialogTitle = React15.forwardRef(({ className, ...props }, ref) => {
|
|
3766
|
+
const titleRef = React15.useRef(null);
|
|
3687
3767
|
const combinedRef = useCombinedRef(titleRef, ref);
|
|
3688
3768
|
useIframeTitleFix(titleRef);
|
|
3689
|
-
return /* @__PURE__ */ (0,
|
|
3769
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3690
3770
|
DialogPrimitive.Title,
|
|
3691
3771
|
{
|
|
3692
3772
|
ref: combinedRef,
|
|
@@ -3697,7 +3777,7 @@ var DialogTitle = React14.forwardRef(({ className, ...props }, ref) => {
|
|
|
3697
3777
|
);
|
|
3698
3778
|
});
|
|
3699
3779
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
3700
|
-
var DialogDescription =
|
|
3780
|
+
var DialogDescription = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3701
3781
|
DialogPrimitive.Description,
|
|
3702
3782
|
{
|
|
3703
3783
|
ref,
|
|
@@ -3707,11 +3787,11 @@ var DialogDescription = React14.forwardRef(({ className, ...props }, ref) => /*
|
|
|
3707
3787
|
}
|
|
3708
3788
|
));
|
|
3709
3789
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
3710
|
-
var DialogVisuallyHidden = ({ children }) => /* @__PURE__ */ (0,
|
|
3790
|
+
var DialogVisuallyHidden = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react_visually_hidden.VisuallyHidden, { children });
|
|
3711
3791
|
DialogVisuallyHidden.displayName = "DialogVisuallyHidden";
|
|
3712
3792
|
|
|
3713
3793
|
// src/dialog/ConfirmationDialog.tsx
|
|
3714
|
-
var
|
|
3794
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
3715
3795
|
function ConfirmationDialog({
|
|
3716
3796
|
open,
|
|
3717
3797
|
onOpenChange,
|
|
@@ -3737,14 +3817,14 @@ function ConfirmationDialog({
|
|
|
3737
3817
|
onCancel?.();
|
|
3738
3818
|
onOpenChange(false);
|
|
3739
3819
|
};
|
|
3740
|
-
return /* @__PURE__ */ (0,
|
|
3741
|
-
/* @__PURE__ */ (0,
|
|
3742
|
-
/* @__PURE__ */ (0,
|
|
3743
|
-
/* @__PURE__ */ (0,
|
|
3820
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Dialog, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(DialogContent, { children: [
|
|
3821
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(DialogHeader, { children: [
|
|
3822
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(DialogTitle, { children: title }),
|
|
3823
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(DialogDescription, { children: description })
|
|
3744
3824
|
] }),
|
|
3745
|
-
/* @__PURE__ */ (0,
|
|
3746
|
-
/* @__PURE__ */ (0,
|
|
3747
|
-
/* @__PURE__ */ (0,
|
|
3825
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(DialogFooter, { className: "mt-2", children: [
|
|
3826
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Button, { variant: "outline", onClick: handleCancel, disabled: isLoading, children: cancelText }),
|
|
3827
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3748
3828
|
Button,
|
|
3749
3829
|
{
|
|
3750
3830
|
variant,
|
|
@@ -3759,9 +3839,9 @@ function ConfirmationDialog({
|
|
|
3759
3839
|
}
|
|
3760
3840
|
|
|
3761
3841
|
// src/default-select-trigger/DefaultSelectTrigger.tsx
|
|
3762
|
-
var
|
|
3763
|
-
var
|
|
3764
|
-
var DefaultSelectTrigger =
|
|
3842
|
+
var React16 = __toESM(require("react"), 1);
|
|
3843
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
3844
|
+
var DefaultSelectTrigger = React16.forwardRef(
|
|
3765
3845
|
({
|
|
3766
3846
|
className,
|
|
3767
3847
|
disabled,
|
|
@@ -3773,7 +3853,7 @@ var DefaultSelectTrigger = React15.forwardRef(
|
|
|
3773
3853
|
children,
|
|
3774
3854
|
...props
|
|
3775
3855
|
}, ref) => {
|
|
3776
|
-
return /* @__PURE__ */ (0,
|
|
3856
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3777
3857
|
"div",
|
|
3778
3858
|
{
|
|
3779
3859
|
ref,
|
|
@@ -3803,59 +3883,59 @@ DefaultSelectTrigger.displayName = "SelectTrigger";
|
|
|
3803
3883
|
var import_react41 = require("react");
|
|
3804
3884
|
|
|
3805
3885
|
// src/dropdown-menu/DropdownMenu.tsx
|
|
3806
|
-
var
|
|
3886
|
+
var React17 = __toESM(require("react"), 1);
|
|
3807
3887
|
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"), 1);
|
|
3808
3888
|
var import_lucide_react11 = require("lucide-react");
|
|
3809
3889
|
|
|
3810
3890
|
// src/dropdown-menu/DropdownMenuItemContent.tsx
|
|
3811
|
-
var
|
|
3891
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
3812
3892
|
function DropdownMenuItemContent({
|
|
3813
3893
|
icon,
|
|
3814
3894
|
label,
|
|
3815
3895
|
description
|
|
3816
3896
|
}) {
|
|
3817
|
-
return /* @__PURE__ */ (0,
|
|
3897
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "flex items-center gap-3 text-[var(--chekin-color-brand-navy)] [&_svg]:text-[#acacd5]", children: [
|
|
3818
3898
|
icon,
|
|
3819
|
-
/* @__PURE__ */ (0,
|
|
3820
|
-
/* @__PURE__ */ (0,
|
|
3821
|
-
description && /* @__PURE__ */ (0,
|
|
3899
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { children: [
|
|
3900
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { children: label }),
|
|
3901
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "text-xs text-[#666]", children: description })
|
|
3822
3902
|
] })
|
|
3823
3903
|
] });
|
|
3824
3904
|
}
|
|
3825
3905
|
|
|
3826
3906
|
// src/dropdown-menu/DropdownMenu.tsx
|
|
3827
|
-
var
|
|
3907
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
3828
3908
|
function DropdownMenu({
|
|
3829
3909
|
...props
|
|
3830
3910
|
}) {
|
|
3831
|
-
return /* @__PURE__ */ (0,
|
|
3911
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
|
|
3832
3912
|
}
|
|
3833
3913
|
function DropdownMenuPortal({
|
|
3834
3914
|
...props
|
|
3835
3915
|
}) {
|
|
3836
|
-
return /* @__PURE__ */ (0,
|
|
3916
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(DropdownMenuPrimitive.Portal, { "data-slot": "dropdown-menu-portal", ...props });
|
|
3837
3917
|
}
|
|
3838
3918
|
function DropdownMenuTrigger({
|
|
3839
3919
|
...props
|
|
3840
3920
|
}) {
|
|
3841
|
-
return /* @__PURE__ */ (0,
|
|
3921
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(DropdownMenuPrimitive.Trigger, { "data-slot": "dropdown-menu-trigger", ...props });
|
|
3842
3922
|
}
|
|
3843
3923
|
function DropdownMenuGroup({
|
|
3844
3924
|
...props
|
|
3845
3925
|
}) {
|
|
3846
|
-
return /* @__PURE__ */ (0,
|
|
3926
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(DropdownMenuPrimitive.Group, { "data-slot": "dropdown-menu-group", ...props });
|
|
3847
3927
|
}
|
|
3848
3928
|
function DropdownMenuSub({
|
|
3849
3929
|
...props
|
|
3850
3930
|
}) {
|
|
3851
|
-
return /* @__PURE__ */ (0,
|
|
3931
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(DropdownMenuPrimitive.Sub, { "data-slot": "dropdown-menu-sub", ...props });
|
|
3852
3932
|
}
|
|
3853
3933
|
function DropdownMenuRadioGroup({
|
|
3854
3934
|
...props
|
|
3855
3935
|
}) {
|
|
3856
|
-
return /* @__PURE__ */ (0,
|
|
3936
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(DropdownMenuPrimitive.RadioGroup, { "data-slot": "dropdown-menu-radio-group", ...props });
|
|
3857
3937
|
}
|
|
3858
|
-
var DropdownMenuSubTrigger =
|
|
3938
|
+
var DropdownMenuSubTrigger = React17.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
3859
3939
|
DropdownMenuPrimitive.SubTrigger,
|
|
3860
3940
|
{
|
|
3861
3941
|
ref,
|
|
@@ -3872,12 +3952,12 @@ var DropdownMenuSubTrigger = React16.forwardRef(({ className, inset, children, .
|
|
|
3872
3952
|
...props,
|
|
3873
3953
|
children: [
|
|
3874
3954
|
children,
|
|
3875
|
-
/* @__PURE__ */ (0,
|
|
3955
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react11.ChevronRight, { className: "ml-auto" })
|
|
3876
3956
|
]
|
|
3877
3957
|
}
|
|
3878
3958
|
));
|
|
3879
3959
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
3880
|
-
var DropdownMenuSubContent =
|
|
3960
|
+
var DropdownMenuSubContent = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
3881
3961
|
DropdownMenuPrimitive.SubContent,
|
|
3882
3962
|
{
|
|
3883
3963
|
ref,
|
|
@@ -3895,7 +3975,7 @@ var DropdownMenuSubContent = React16.forwardRef(({ className, ...props }, ref) =
|
|
|
3895
3975
|
}
|
|
3896
3976
|
));
|
|
3897
3977
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
3898
|
-
var DropdownMenuContent =
|
|
3978
|
+
var DropdownMenuContent = React17.forwardRef(({ className, sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(DropdownMenuPrimitive.Portal, { container: container || getCustomContainer(), children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
3899
3979
|
DropdownMenuPrimitive.Content,
|
|
3900
3980
|
{
|
|
3901
3981
|
ref,
|
|
@@ -3917,7 +3997,7 @@ var DropdownMenuContent = React16.forwardRef(({ className, sideOffset = 4, conta
|
|
|
3917
3997
|
}
|
|
3918
3998
|
) }));
|
|
3919
3999
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
3920
|
-
var DropdownMenuItem =
|
|
4000
|
+
var DropdownMenuItem = React17.forwardRef(({ className, children, inset, active, leftSlot, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
3921
4001
|
DropdownMenuPrimitive.Item,
|
|
3922
4002
|
{
|
|
3923
4003
|
ref,
|
|
@@ -3942,7 +4022,7 @@ var DropdownMenuItem = React16.forwardRef(({ className, children, inset, active,
|
|
|
3942
4022
|
}
|
|
3943
4023
|
));
|
|
3944
4024
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
3945
|
-
var DropdownMenuCheckboxItem =
|
|
4025
|
+
var DropdownMenuCheckboxItem = React17.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
3946
4026
|
DropdownMenuPrimitive.CheckboxItem,
|
|
3947
4027
|
{
|
|
3948
4028
|
ref,
|
|
@@ -3957,12 +4037,12 @@ var DropdownMenuCheckboxItem = React16.forwardRef(({ className, children, checke
|
|
|
3957
4037
|
...props,
|
|
3958
4038
|
children: [
|
|
3959
4039
|
children,
|
|
3960
|
-
/* @__PURE__ */ (0,
|
|
4040
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "ml-auto flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react11.Check, { className: "h-4 w-4" }) }) })
|
|
3961
4041
|
]
|
|
3962
4042
|
}
|
|
3963
4043
|
));
|
|
3964
4044
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
3965
|
-
var DropdownMenuRadioItem =
|
|
4045
|
+
var DropdownMenuRadioItem = React17.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
3966
4046
|
DropdownMenuPrimitive.RadioItem,
|
|
3967
4047
|
{
|
|
3968
4048
|
ref,
|
|
@@ -3975,13 +4055,13 @@ var DropdownMenuRadioItem = React16.forwardRef(({ className, children, ...props
|
|
|
3975
4055
|
),
|
|
3976
4056
|
...props,
|
|
3977
4057
|
children: [
|
|
3978
|
-
/* @__PURE__ */ (0,
|
|
4058
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react11.Circle, { className: "h-2 w-2 fill-current" }) }) }),
|
|
3979
4059
|
children
|
|
3980
4060
|
]
|
|
3981
4061
|
}
|
|
3982
4062
|
));
|
|
3983
4063
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
3984
|
-
var DropdownMenuLabel =
|
|
4064
|
+
var DropdownMenuLabel = React17.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
3985
4065
|
DropdownMenuPrimitive.Label,
|
|
3986
4066
|
{
|
|
3987
4067
|
ref,
|
|
@@ -3994,7 +4074,7 @@ var DropdownMenuLabel = React16.forwardRef(({ className, inset, ...props }, ref)
|
|
|
3994
4074
|
}
|
|
3995
4075
|
));
|
|
3996
4076
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
3997
|
-
var DropdownMenuSeparator =
|
|
4077
|
+
var DropdownMenuSeparator = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
3998
4078
|
DropdownMenuPrimitive.Separator,
|
|
3999
4079
|
{
|
|
4000
4080
|
ref,
|
|
@@ -4007,7 +4087,7 @@ var DropdownMenuShortcut = ({
|
|
|
4007
4087
|
className,
|
|
4008
4088
|
...props
|
|
4009
4089
|
}) => {
|
|
4010
|
-
return /* @__PURE__ */ (0,
|
|
4090
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4011
4091
|
"span",
|
|
4012
4092
|
{
|
|
4013
4093
|
className: cn("ml-auto text-xs tracking-widest opacity-60", className),
|
|
@@ -4019,7 +4099,7 @@ DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
|
4019
4099
|
|
|
4020
4100
|
// src/dropdown-menu/CheckboxDropdownGroup.tsx
|
|
4021
4101
|
var import_react38 = require("react");
|
|
4022
|
-
var
|
|
4102
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
4023
4103
|
var CheckboxDropdownGroup = (0, import_react38.forwardRef)(
|
|
4024
4104
|
({ options, value = [], onChange, className = "", keepOpenOnSelect, multiple }, ref) => {
|
|
4025
4105
|
const isMultipleMode = multiple ?? Array.isArray(value);
|
|
@@ -4039,7 +4119,7 @@ var CheckboxDropdownGroup = (0, import_react38.forwardRef)(
|
|
|
4039
4119
|
const isChecked = (optionValue) => normalizedValue.some((v) => v.value === optionValue);
|
|
4040
4120
|
const renderCheckboxItem = (option) => {
|
|
4041
4121
|
const checked = option.checked ?? isChecked(option.value);
|
|
4042
|
-
return /* @__PURE__ */ (0,
|
|
4122
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
4043
4123
|
DropdownMenuCheckboxItem,
|
|
4044
4124
|
{
|
|
4045
4125
|
checked,
|
|
@@ -4062,19 +4142,19 @@ var CheckboxDropdownGroup = (0, import_react38.forwardRef)(
|
|
|
4062
4142
|
option.value
|
|
4063
4143
|
);
|
|
4064
4144
|
};
|
|
4065
|
-
return /* @__PURE__ */ (0,
|
|
4145
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { ref, className, children: options.map(renderCheckboxItem) });
|
|
4066
4146
|
}
|
|
4067
4147
|
);
|
|
4068
4148
|
CheckboxDropdownGroup.displayName = "CheckboxDropdownGroup";
|
|
4069
4149
|
|
|
4070
4150
|
// src/dropdown-menu/CheckboxDropdownMultiGroup.tsx
|
|
4071
4151
|
var import_react39 = require("react");
|
|
4072
|
-
var
|
|
4152
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
4073
4153
|
var CheckboxDropdownMultiGroup = (0, import_react39.forwardRef)(({ groups, className = "", keepOpenOnSelect }, ref) => {
|
|
4074
|
-
return /* @__PURE__ */ (0,
|
|
4075
|
-
/* @__PURE__ */ (0,
|
|
4076
|
-
/* @__PURE__ */ (0,
|
|
4077
|
-
group.multiple ? /* @__PURE__ */ (0,
|
|
4154
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { ref, className: cn("space-y-1", className), children: groups.map((group, index) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_react39.Fragment, { children: [
|
|
4155
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(DropdownMenuGroup, { children: [
|
|
4156
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(DropdownMenuLabel, { children: group.label }),
|
|
4157
|
+
group.multiple ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4078
4158
|
CheckboxDropdownGroup,
|
|
4079
4159
|
{
|
|
4080
4160
|
multiple: true,
|
|
@@ -4083,7 +4163,7 @@ var CheckboxDropdownMultiGroup = (0, import_react39.forwardRef)(({ groups, class
|
|
|
4083
4163
|
value: group.value,
|
|
4084
4164
|
keepOpenOnSelect
|
|
4085
4165
|
}
|
|
4086
|
-
) : /* @__PURE__ */ (0,
|
|
4166
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4087
4167
|
CheckboxDropdownGroup,
|
|
4088
4168
|
{
|
|
4089
4169
|
multiple: false,
|
|
@@ -4094,14 +4174,14 @@ var CheckboxDropdownMultiGroup = (0, import_react39.forwardRef)(({ groups, class
|
|
|
4094
4174
|
}
|
|
4095
4175
|
)
|
|
4096
4176
|
] }),
|
|
4097
|
-
index < groups.length - 1 && /* @__PURE__ */ (0,
|
|
4177
|
+
index < groups.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(DropdownMenuSeparator, {})
|
|
4098
4178
|
] }, group.label)) });
|
|
4099
4179
|
});
|
|
4100
4180
|
CheckboxDropdownMultiGroup.displayName = "CheckboxDropdownMultiGroup";
|
|
4101
4181
|
|
|
4102
4182
|
// src/dropdown-menu/CustomCheckboxDropdownGroup.tsx
|
|
4103
4183
|
var import_react40 = require("react");
|
|
4104
|
-
var
|
|
4184
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
4105
4185
|
var CustomCheckboxDropdownGroup = (0, import_react40.forwardRef)(({ options, value = [], onChange, keepOpenOnSelect, className = "", multiple }, ref) => {
|
|
4106
4186
|
const isMultipleMode = multiple ?? Array.isArray(value);
|
|
4107
4187
|
const normalizedValue = Array.isArray(value) ? value : value ? [value] : [];
|
|
@@ -4120,7 +4200,7 @@ var CustomCheckboxDropdownGroup = (0, import_react40.forwardRef)(({ options, val
|
|
|
4120
4200
|
const isChecked = (optionValue) => normalizedValue.some((v) => v.value === optionValue);
|
|
4121
4201
|
const renderCheckboxItem = (option, idx) => {
|
|
4122
4202
|
const checked = option.checked ?? isChecked(option.value);
|
|
4123
|
-
return /* @__PURE__ */ (0,
|
|
4203
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
4124
4204
|
DropdownMenuItem,
|
|
4125
4205
|
{
|
|
4126
4206
|
onClick: () => {
|
|
@@ -4137,7 +4217,7 @@ var CustomCheckboxDropdownGroup = (0, import_react40.forwardRef)(({ options, val
|
|
|
4137
4217
|
}
|
|
4138
4218
|
},
|
|
4139
4219
|
children: [
|
|
4140
|
-
/* @__PURE__ */ (0,
|
|
4220
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
4141
4221
|
Checkbox,
|
|
4142
4222
|
{
|
|
4143
4223
|
id: `checkbox-${option.value}`,
|
|
@@ -4153,12 +4233,12 @@ var CustomCheckboxDropdownGroup = (0, import_react40.forwardRef)(({ options, val
|
|
|
4153
4233
|
option.label + idx
|
|
4154
4234
|
);
|
|
4155
4235
|
};
|
|
4156
|
-
return /* @__PURE__ */ (0,
|
|
4236
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { ref, className, children: options.map(renderCheckboxItem) });
|
|
4157
4237
|
});
|
|
4158
4238
|
CustomCheckboxDropdownGroup.displayName = "CustomCheckboxGroup";
|
|
4159
4239
|
|
|
4160
4240
|
// src/dropdown-button/DropdownButton.tsx
|
|
4161
|
-
var
|
|
4241
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
4162
4242
|
function DropdownButton({
|
|
4163
4243
|
trigger,
|
|
4164
4244
|
children,
|
|
@@ -4167,9 +4247,9 @@ function DropdownButton({
|
|
|
4167
4247
|
className
|
|
4168
4248
|
}) {
|
|
4169
4249
|
const [isOpen, setIsOpen] = (0, import_react41.useState)(false);
|
|
4170
|
-
return /* @__PURE__ */ (0,
|
|
4171
|
-
/* @__PURE__ */ (0,
|
|
4172
|
-
/* @__PURE__ */ (0,
|
|
4250
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(DropdownMenu, { onOpenChange: setIsOpen, modal, children: [
|
|
4251
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DropdownMenuTrigger, { asChild: true, children: typeof trigger === "function" ? trigger(isOpen) : trigger }),
|
|
4252
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4173
4253
|
DropdownMenuContent,
|
|
4174
4254
|
{
|
|
4175
4255
|
container: getCustomContainer(),
|
|
@@ -4183,9 +4263,9 @@ function DropdownButton({
|
|
|
4183
4263
|
}
|
|
4184
4264
|
|
|
4185
4265
|
// src/empty/Empty.tsx
|
|
4186
|
-
var
|
|
4266
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
4187
4267
|
function Empty({ className, ...props }) {
|
|
4188
|
-
return /* @__PURE__ */ (0,
|
|
4268
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4189
4269
|
"div",
|
|
4190
4270
|
{
|
|
4191
4271
|
"data-slot": "empty",
|
|
@@ -4199,9 +4279,9 @@ function Empty({ className, ...props }) {
|
|
|
4199
4279
|
}
|
|
4200
4280
|
|
|
4201
4281
|
// src/empty/EmptyHeader.tsx
|
|
4202
|
-
var
|
|
4282
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
4203
4283
|
function EmptyHeader({ className, ...props }) {
|
|
4204
|
-
return /* @__PURE__ */ (0,
|
|
4284
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4205
4285
|
"div",
|
|
4206
4286
|
{
|
|
4207
4287
|
"data-slot": "empty-header",
|
|
@@ -4212,9 +4292,9 @@ function EmptyHeader({ className, ...props }) {
|
|
|
4212
4292
|
}
|
|
4213
4293
|
|
|
4214
4294
|
// src/empty/EmptyTitle.tsx
|
|
4215
|
-
var
|
|
4295
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
4216
4296
|
function EmptyTitle({ className, ...props }) {
|
|
4217
|
-
return /* @__PURE__ */ (0,
|
|
4297
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4218
4298
|
"div",
|
|
4219
4299
|
{
|
|
4220
4300
|
"data-slot": "empty-title",
|
|
@@ -4228,9 +4308,9 @@ function EmptyTitle({ className, ...props }) {
|
|
|
4228
4308
|
}
|
|
4229
4309
|
|
|
4230
4310
|
// src/empty/EmptyDescription.tsx
|
|
4231
|
-
var
|
|
4311
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
4232
4312
|
function EmptyDescription({ className, ...props }) {
|
|
4233
|
-
return /* @__PURE__ */ (0,
|
|
4313
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
4234
4314
|
"div",
|
|
4235
4315
|
{
|
|
4236
4316
|
"data-slot": "empty-description",
|
|
@@ -4244,9 +4324,9 @@ function EmptyDescription({ className, ...props }) {
|
|
|
4244
4324
|
}
|
|
4245
4325
|
|
|
4246
4326
|
// src/empty/EmptyContent.tsx
|
|
4247
|
-
var
|
|
4327
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
4248
4328
|
function EmptyContent({ className, ...props }) {
|
|
4249
|
-
return /* @__PURE__ */ (0,
|
|
4329
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
4250
4330
|
"div",
|
|
4251
4331
|
{
|
|
4252
4332
|
"data-slot": "empty-content",
|
|
@@ -4260,9 +4340,9 @@ function EmptyContent({ className, ...props }) {
|
|
|
4260
4340
|
}
|
|
4261
4341
|
|
|
4262
4342
|
// src/empty/EmptyMedia.tsx
|
|
4263
|
-
var
|
|
4264
|
-
var
|
|
4265
|
-
var emptyMediaVariants = (0,
|
|
4343
|
+
var import_class_variance_authority8 = require("class-variance-authority");
|
|
4344
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
4345
|
+
var emptyMediaVariants = (0, import_class_variance_authority8.cva)(
|
|
4266
4346
|
"mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
4267
4347
|
{
|
|
4268
4348
|
variants: {
|
|
@@ -4281,7 +4361,7 @@ function EmptyMedia({
|
|
|
4281
4361
|
variant = "default",
|
|
4282
4362
|
...props
|
|
4283
4363
|
}) {
|
|
4284
|
-
return /* @__PURE__ */ (0,
|
|
4364
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
4285
4365
|
"div",
|
|
4286
4366
|
{
|
|
4287
4367
|
"data-slot": "empty-icon",
|
|
@@ -4308,7 +4388,7 @@ var HALO_ICON_STATUS = {
|
|
|
4308
4388
|
};
|
|
4309
4389
|
|
|
4310
4390
|
// src/halo-icon/HaloIcon.tsx
|
|
4311
|
-
var
|
|
4391
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
4312
4392
|
var statusStyles = {
|
|
4313
4393
|
[HALO_ICON_STATUS.inactive]: {
|
|
4314
4394
|
background: "bg-[var(--chekin-color-surface-input-empty)]",
|
|
@@ -4336,7 +4416,7 @@ var HaloIcon = (0, import_react42.forwardRef)(
|
|
|
4336
4416
|
className
|
|
4337
4417
|
}, ref) => {
|
|
4338
4418
|
const styles = statusStyles[status];
|
|
4339
|
-
return /* @__PURE__ */ (0,
|
|
4419
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
4340
4420
|
"div",
|
|
4341
4421
|
{
|
|
4342
4422
|
ref,
|
|
@@ -4359,7 +4439,7 @@ var HaloIcon = (0, import_react42.forwardRef)(
|
|
|
4359
4439
|
HaloIcon.displayName = "HaloIcon";
|
|
4360
4440
|
|
|
4361
4441
|
// src/empty-section-placeholder/EmptySectionPlaceholder.tsx
|
|
4362
|
-
var
|
|
4442
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
4363
4443
|
function EmptySectionPlaceholder({
|
|
4364
4444
|
title,
|
|
4365
4445
|
subtitle,
|
|
@@ -4367,15 +4447,15 @@ function EmptySectionPlaceholder({
|
|
|
4367
4447
|
className
|
|
4368
4448
|
}) {
|
|
4369
4449
|
const { t } = (0, import_react_i18next7.useTranslation)();
|
|
4370
|
-
return /* @__PURE__ */ (0,
|
|
4450
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
4371
4451
|
"div",
|
|
4372
4452
|
{
|
|
4373
4453
|
className: cn("flex flex-col items-center justify-center gap-6 py-6", className),
|
|
4374
4454
|
children: [
|
|
4375
|
-
/* @__PURE__ */ (0,
|
|
4376
|
-
/* @__PURE__ */ (0,
|
|
4377
|
-
/* @__PURE__ */ (0,
|
|
4378
|
-
subtitle && /* @__PURE__ */ (0,
|
|
4455
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(HaloIcon, { status: "ACTIVE", className: "h-20 w-20 [&>svg]:h-10 [&>svg]:w-10", children: icon || /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_lucide_react12.Tag, { size: 40 }) }),
|
|
4456
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex flex-col items-center gap-2", children: [
|
|
4457
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "font-medium leading-6", children: title || t("nothing_found") }),
|
|
4458
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "text-sm leading-6 text-[var(--chekin-color-gray-1)]", children: subtitle })
|
|
4379
4459
|
] })
|
|
4380
4460
|
]
|
|
4381
4461
|
}
|
|
@@ -4383,10 +4463,10 @@ function EmptySectionPlaceholder({
|
|
|
4383
4463
|
}
|
|
4384
4464
|
|
|
4385
4465
|
// src/external-link/ExternalLink.tsx
|
|
4386
|
-
var
|
|
4387
|
-
var
|
|
4388
|
-
var ExternalLink =
|
|
4389
|
-
({ className, children, showIcon = true, target = "_blank", rel, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4466
|
+
var React18 = __toESM(require("react"), 1);
|
|
4467
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
4468
|
+
var ExternalLink = React18.forwardRef(
|
|
4469
|
+
({ className, children, showIcon = true, target = "_blank", rel, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
4390
4470
|
"a",
|
|
4391
4471
|
{
|
|
4392
4472
|
ref,
|
|
@@ -4401,7 +4481,7 @@ var ExternalLink = React17.forwardRef(
|
|
|
4401
4481
|
...props,
|
|
4402
4482
|
children: [
|
|
4403
4483
|
children,
|
|
4404
|
-
showIcon && /* @__PURE__ */ (0,
|
|
4484
|
+
showIcon && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
4405
4485
|
"svg",
|
|
4406
4486
|
{
|
|
4407
4487
|
width: "14",
|
|
@@ -4414,9 +4494,9 @@ var ExternalLink = React17.forwardRef(
|
|
|
4414
4494
|
strokeLinejoin: "round",
|
|
4415
4495
|
"aria-hidden": "true",
|
|
4416
4496
|
children: [
|
|
4417
|
-
/* @__PURE__ */ (0,
|
|
4418
|
-
/* @__PURE__ */ (0,
|
|
4419
|
-
/* @__PURE__ */ (0,
|
|
4497
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("path", { d: "M5.5 2.5 H11.5 V 8.5" }),
|
|
4498
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("path", { d: "M11.5 2.5 L6 8" }),
|
|
4499
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("path", { d: "M10 9 V12 H2 V4 H5" })
|
|
4420
4500
|
]
|
|
4421
4501
|
}
|
|
4422
4502
|
)
|
|
@@ -4429,7 +4509,7 @@ ExternalLink.displayName = "ExternalLink";
|
|
|
4429
4509
|
// src/file-input-button/FileInputButton.tsx
|
|
4430
4510
|
var import_react43 = require("react");
|
|
4431
4511
|
var import_lucide_react13 = require("lucide-react");
|
|
4432
|
-
var
|
|
4512
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
4433
4513
|
var FileInputButton = (0, import_react43.forwardRef)(
|
|
4434
4514
|
({
|
|
4435
4515
|
label,
|
|
@@ -4449,8 +4529,8 @@ var FileInputButton = (0, import_react43.forwardRef)(
|
|
|
4449
4529
|
},
|
|
4450
4530
|
[onChange]
|
|
4451
4531
|
);
|
|
4452
|
-
const iconElement = icon !== void 0 ? icon : /* @__PURE__ */ (0,
|
|
4453
|
-
return /* @__PURE__ */ (0,
|
|
4532
|
+
const iconElement = icon !== void 0 ? icon : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_lucide_react13.Upload, { className: "h-4 w-4" });
|
|
4533
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
4454
4534
|
Button,
|
|
4455
4535
|
{
|
|
4456
4536
|
asChild: true,
|
|
@@ -4458,8 +4538,8 @@ var FileInputButton = (0, import_react43.forwardRef)(
|
|
|
4458
4538
|
size,
|
|
4459
4539
|
disabled,
|
|
4460
4540
|
className: cn("justify-start", buttonClassName),
|
|
4461
|
-
children: /* @__PURE__ */ (0,
|
|
4462
|
-
/* @__PURE__ */ (0,
|
|
4541
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("label", { className: cn("cursor-pointer", className), children: [
|
|
4542
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
4463
4543
|
"input",
|
|
4464
4544
|
{
|
|
4465
4545
|
ref,
|
|
@@ -4471,7 +4551,7 @@ var FileInputButton = (0, import_react43.forwardRef)(
|
|
|
4471
4551
|
}
|
|
4472
4552
|
),
|
|
4473
4553
|
iconElement,
|
|
4474
|
-
label && /* @__PURE__ */ (0,
|
|
4554
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "ml-1.5", children: label })
|
|
4475
4555
|
] })
|
|
4476
4556
|
}
|
|
4477
4557
|
);
|
|
@@ -4480,9 +4560,9 @@ var FileInputButton = (0, import_react43.forwardRef)(
|
|
|
4480
4560
|
FileInputButton.displayName = "FileInputButton";
|
|
4481
4561
|
|
|
4482
4562
|
// src/form-box/Content.tsx
|
|
4483
|
-
var
|
|
4563
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
4484
4564
|
function Content5({ children, className, ...props }) {
|
|
4485
|
-
return /* @__PURE__ */ (0,
|
|
4565
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
4486
4566
|
"div",
|
|
4487
4567
|
{
|
|
4488
4568
|
className: cn(
|
|
@@ -4496,9 +4576,9 @@ function Content5({ children, className, ...props }) {
|
|
|
4496
4576
|
}
|
|
4497
4577
|
|
|
4498
4578
|
// src/form-box/Header.tsx
|
|
4499
|
-
var
|
|
4579
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
4500
4580
|
function Header2({ children, className, ...props }) {
|
|
4501
|
-
return /* @__PURE__ */ (0,
|
|
4581
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
4502
4582
|
"h2",
|
|
4503
4583
|
{
|
|
4504
4584
|
className: cn(
|
|
@@ -4512,9 +4592,9 @@ function Header2({ children, className, ...props }) {
|
|
|
4512
4592
|
}
|
|
4513
4593
|
|
|
4514
4594
|
// src/form-box/Root.tsx
|
|
4515
|
-
var
|
|
4516
|
-
function
|
|
4517
|
-
return /* @__PURE__ */ (0,
|
|
4595
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
4596
|
+
function Root10({ children, nested, className, ...props }) {
|
|
4597
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4518
4598
|
"div",
|
|
4519
4599
|
{
|
|
4520
4600
|
className: cn(
|
|
@@ -4529,9 +4609,9 @@ function Root9({ children, nested, className, ...props }) {
|
|
|
4529
4609
|
}
|
|
4530
4610
|
|
|
4531
4611
|
// src/form-box/SubHeader.tsx
|
|
4532
|
-
var
|
|
4612
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
4533
4613
|
function SubHeader({ children, className, ...props }) {
|
|
4534
|
-
return /* @__PURE__ */ (0,
|
|
4614
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
4535
4615
|
"h4",
|
|
4536
4616
|
{
|
|
4537
4617
|
className: cn(
|
|
@@ -4546,7 +4626,7 @@ function SubHeader({ children, className, ...props }) {
|
|
|
4546
4626
|
|
|
4547
4627
|
// src/form-box/index.ts
|
|
4548
4628
|
var FormBox = {
|
|
4549
|
-
Root:
|
|
4629
|
+
Root: Root10,
|
|
4550
4630
|
Header: Header2,
|
|
4551
4631
|
SubHeader,
|
|
4552
4632
|
Content: Content5
|
|
@@ -4555,7 +4635,7 @@ var FormBox = {
|
|
|
4555
4635
|
// src/free-text-field/FreeTextField.tsx
|
|
4556
4636
|
var import_react44 = require("react");
|
|
4557
4637
|
var import_react_i18next8 = require("react-i18next");
|
|
4558
|
-
var
|
|
4638
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
4559
4639
|
var FreeTextField = (0, import_react44.forwardRef)(
|
|
4560
4640
|
({
|
|
4561
4641
|
label,
|
|
@@ -4609,7 +4689,7 @@ var FreeTextField = (0, import_react44.forwardRef)(
|
|
|
4609
4689
|
);
|
|
4610
4690
|
const inputPlaceholder = fieldStyle === "new" ? label : placeholder;
|
|
4611
4691
|
const showFloatingLabel = fieldStyle === "new" && !isEmpty && Boolean(label);
|
|
4612
|
-
return /* @__PURE__ */ (0,
|
|
4692
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
4613
4693
|
"div",
|
|
4614
4694
|
{
|
|
4615
4695
|
className: cn(
|
|
@@ -4617,8 +4697,8 @@ var FreeTextField = (0, import_react44.forwardRef)(
|
|
|
4617
4697
|
className
|
|
4618
4698
|
),
|
|
4619
4699
|
children: [
|
|
4620
|
-
fieldStyle === "current" && label && /* @__PURE__ */ (0,
|
|
4621
|
-
/* @__PURE__ */ (0,
|
|
4700
|
+
fieldStyle === "current" && label && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex items-center gap-1", children: [
|
|
4701
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4622
4702
|
"label",
|
|
4623
4703
|
{
|
|
4624
4704
|
htmlFor: inputId,
|
|
@@ -4626,14 +4706,14 @@ var FreeTextField = (0, import_react44.forwardRef)(
|
|
|
4626
4706
|
children: label
|
|
4627
4707
|
}
|
|
4628
4708
|
),
|
|
4629
|
-
optional && /* @__PURE__ */ (0,
|
|
4709
|
+
optional && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("span", { className: "text-base leading-4 text-[var(--chekin-color-brand-navy)] [&_em]:text-[var(--chekin-color-gray-2)]", children: [
|
|
4630
4710
|
"- ",
|
|
4631
|
-
/* @__PURE__ */ (0,
|
|
4711
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("em", { children: optionalLabel || t("optional") })
|
|
4632
4712
|
] }),
|
|
4633
|
-
tooltip && /* @__PURE__ */ (0,
|
|
4713
|
+
tooltip && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "h-4 w-4 shrink-0", children: tooltip })
|
|
4634
4714
|
] }),
|
|
4635
|
-
/* @__PURE__ */ (0,
|
|
4636
|
-
/* @__PURE__ */ (0,
|
|
4715
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: fieldBoxClassName, children: [
|
|
4716
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4637
4717
|
"input",
|
|
4638
4718
|
{
|
|
4639
4719
|
ref,
|
|
@@ -4649,15 +4729,15 @@ var FreeTextField = (0, import_react44.forwardRef)(
|
|
|
4649
4729
|
...inputProps
|
|
4650
4730
|
}
|
|
4651
4731
|
),
|
|
4652
|
-
icon && /* @__PURE__ */ (0,
|
|
4653
|
-
showFloatingLabel && /* @__PURE__ */ (0,
|
|
4732
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "flex h-6 w-6 shrink-0 items-center justify-center", children: icon }),
|
|
4733
|
+
showFloatingLabel && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4654
4734
|
"div",
|
|
4655
4735
|
{
|
|
4656
4736
|
className: cn(
|
|
4657
4737
|
"pointer-events-none absolute left-[13px] top-[-8px] flex h-4 items-center bg-gradient-to-b from-transparent from-50% to-white to-50% px-[3px]",
|
|
4658
4738
|
autocompleted && "to-[var(--chekin-color-surface-autocomplete)]"
|
|
4659
4739
|
),
|
|
4660
|
-
children: /* @__PURE__ */ (0,
|
|
4740
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4661
4741
|
"span",
|
|
4662
4742
|
{
|
|
4663
4743
|
className: cn(
|
|
@@ -4670,8 +4750,8 @@ var FreeTextField = (0, import_react44.forwardRef)(
|
|
|
4670
4750
|
}
|
|
4671
4751
|
)
|
|
4672
4752
|
] }),
|
|
4673
|
-
supportingText && /* @__PURE__ */ (0,
|
|
4674
|
-
error && /* @__PURE__ */ (0,
|
|
4753
|
+
supportingText && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("p", { className: "m-0 text-xs italic leading-normal text-[var(--chekin-color-gray-2)]", children: supportingText }),
|
|
4754
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("p", { className: "m-0 text-right text-xs font-medium leading-4 text-[var(--error-message-color)]", children: error })
|
|
4675
4755
|
]
|
|
4676
4756
|
}
|
|
4677
4757
|
);
|
|
@@ -4680,10 +4760,10 @@ var FreeTextField = (0, import_react44.forwardRef)(
|
|
|
4680
4760
|
FreeTextField.displayName = "FreeTextField";
|
|
4681
4761
|
|
|
4682
4762
|
// src/framed-icon/FramedIcon.tsx
|
|
4683
|
-
var
|
|
4684
|
-
var
|
|
4685
|
-
var
|
|
4686
|
-
var framedIconVariants = (0,
|
|
4763
|
+
var React19 = __toESM(require("react"), 1);
|
|
4764
|
+
var import_class_variance_authority9 = require("class-variance-authority");
|
|
4765
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
4766
|
+
var framedIconVariants = (0, import_class_variance_authority9.cva)("inline-flex items-center justify-center shrink-0", {
|
|
4687
4767
|
variants: {
|
|
4688
4768
|
size: {
|
|
4689
4769
|
s: "w-8 h-8",
|
|
@@ -4704,8 +4784,8 @@ var framedIconVariants = (0, import_class_variance_authority8.cva)("inline-flex
|
|
|
4704
4784
|
},
|
|
4705
4785
|
defaultVariants: { size: "m", shape: "rounded", tone: "info" }
|
|
4706
4786
|
});
|
|
4707
|
-
var FramedIcon =
|
|
4708
|
-
({ className, size, shape, tone, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4787
|
+
var FramedIcon = React19.forwardRef(
|
|
4788
|
+
({ className, size, shape, tone, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4709
4789
|
"span",
|
|
4710
4790
|
{
|
|
4711
4791
|
ref,
|
|
@@ -4720,7 +4800,7 @@ FramedIcon.displayName = "FramedIcon";
|
|
|
4720
4800
|
|
|
4721
4801
|
// src/help-tooltip/HelpTooltip.tsx
|
|
4722
4802
|
var import_lucide_react14 = require("lucide-react");
|
|
4723
|
-
var
|
|
4803
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
4724
4804
|
function HelpTooltip({
|
|
4725
4805
|
content,
|
|
4726
4806
|
side,
|
|
@@ -4739,12 +4819,12 @@ function HelpTooltip({
|
|
|
4739
4819
|
className
|
|
4740
4820
|
);
|
|
4741
4821
|
const triggerStyle = { width: size, height: size };
|
|
4742
|
-
const triggerContent = /* @__PURE__ */ (0,
|
|
4743
|
-
/* @__PURE__ */ (0,
|
|
4744
|
-
/* @__PURE__ */ (0,
|
|
4822
|
+
const triggerContent = /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
|
|
4823
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_lucide_react14.CircleQuestionMark, { "aria-hidden": "true", style: { width: size, height: size } }),
|
|
4824
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "absolute -left-0.5 -top-0.5 h-5 w-5" })
|
|
4745
4825
|
] });
|
|
4746
|
-
return /* @__PURE__ */ (0,
|
|
4747
|
-
/* @__PURE__ */ (0,
|
|
4826
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(TooltipRoot, { children: [
|
|
4827
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(TooltipTrigger, { asChild: true, onClick, children: triggerAs === "button" ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4748
4828
|
"button",
|
|
4749
4829
|
{
|
|
4750
4830
|
type: "button",
|
|
@@ -4753,8 +4833,8 @@ function HelpTooltip({
|
|
|
4753
4833
|
style: triggerStyle,
|
|
4754
4834
|
children: triggerContent
|
|
4755
4835
|
}
|
|
4756
|
-
) : /* @__PURE__ */ (0,
|
|
4757
|
-
/* @__PURE__ */ (0,
|
|
4836
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { "aria-label": label, className: triggerClassName, style: triggerStyle, children: triggerContent }) }),
|
|
4837
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4758
4838
|
TooltipContent,
|
|
4759
4839
|
{
|
|
4760
4840
|
variant,
|
|
@@ -4768,7 +4848,7 @@ function HelpTooltip({
|
|
|
4768
4848
|
|
|
4769
4849
|
// src/svg-icon/SvgIcon.tsx
|
|
4770
4850
|
var import_react45 = require("react");
|
|
4771
|
-
var
|
|
4851
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
4772
4852
|
var SIZE_MAP = {
|
|
4773
4853
|
sm: 16,
|
|
4774
4854
|
md: 20,
|
|
@@ -4784,7 +4864,7 @@ var SvgIcon = (0, import_react45.forwardRef)(
|
|
|
4784
4864
|
role: "img",
|
|
4785
4865
|
...labeledFromProp && { "aria-label": label }
|
|
4786
4866
|
} : { "aria-hidden": true };
|
|
4787
|
-
return /* @__PURE__ */ (0,
|
|
4867
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
4788
4868
|
Component,
|
|
4789
4869
|
{
|
|
4790
4870
|
ref,
|
|
@@ -4800,10 +4880,10 @@ var SvgIcon = (0, import_react45.forwardRef)(
|
|
|
4800
4880
|
SvgIcon.displayName = "SvgIcon";
|
|
4801
4881
|
|
|
4802
4882
|
// src/icon-button/IconButton.tsx
|
|
4803
|
-
var
|
|
4804
|
-
var
|
|
4805
|
-
var
|
|
4806
|
-
var iconButtonVariants = (0,
|
|
4883
|
+
var React20 = __toESM(require("react"), 1);
|
|
4884
|
+
var import_class_variance_authority10 = require("class-variance-authority");
|
|
4885
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
4886
|
+
var iconButtonVariants = (0, import_class_variance_authority10.cva)(
|
|
4807
4887
|
[
|
|
4808
4888
|
"relative inline-flex items-center justify-center shrink-0",
|
|
4809
4889
|
"transition-colors duration-150 ease-out outline-none",
|
|
@@ -4831,7 +4911,7 @@ var iconButtonVariants = (0, import_class_variance_authority9.cva)(
|
|
|
4831
4911
|
defaultVariants: { size: "m", shape: "rounded", variant: "secondary" }
|
|
4832
4912
|
}
|
|
4833
4913
|
);
|
|
4834
|
-
var IconButton =
|
|
4914
|
+
var IconButton = React20.forwardRef(
|
|
4835
4915
|
({
|
|
4836
4916
|
className,
|
|
4837
4917
|
size,
|
|
@@ -4845,7 +4925,7 @@ var IconButton = React19.forwardRef(
|
|
|
4845
4925
|
type = "button",
|
|
4846
4926
|
...props
|
|
4847
4927
|
}, ref) => {
|
|
4848
|
-
const button = /* @__PURE__ */ (0,
|
|
4928
|
+
const button = /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
4849
4929
|
"button",
|
|
4850
4930
|
{
|
|
4851
4931
|
ref,
|
|
@@ -4861,18 +4941,18 @@ var IconButton = React19.forwardRef(
|
|
|
4861
4941
|
}
|
|
4862
4942
|
);
|
|
4863
4943
|
if (!tooltip) return button;
|
|
4864
|
-
return /* @__PURE__ */ (0,
|
|
4865
|
-
/* @__PURE__ */ (0,
|
|
4866
|
-
/* @__PURE__ */ (0,
|
|
4944
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Tooltip, { children: [
|
|
4945
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(TooltipTrigger, { asChild: true, children: button }),
|
|
4946
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(TooltipContent, { children: tooltip })
|
|
4867
4947
|
] });
|
|
4868
4948
|
}
|
|
4869
4949
|
);
|
|
4870
4950
|
IconButton.displayName = "IconButton";
|
|
4871
4951
|
|
|
4872
4952
|
// src/info-box/InfoBox.tsx
|
|
4873
|
-
var
|
|
4953
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
4874
4954
|
function InfoBox({ className, children }) {
|
|
4875
|
-
return /* @__PURE__ */ (0,
|
|
4955
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
4876
4956
|
"div",
|
|
4877
4957
|
{
|
|
4878
4958
|
className: cn(
|
|
@@ -4886,7 +4966,7 @@ function InfoBox({ className, children }) {
|
|
|
4886
4966
|
|
|
4887
4967
|
// src/image/Image.tsx
|
|
4888
4968
|
var import_react46 = require("react");
|
|
4889
|
-
var
|
|
4969
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
4890
4970
|
function Image2({
|
|
4891
4971
|
src,
|
|
4892
4972
|
alt,
|
|
@@ -4895,7 +4975,7 @@ function Image2({
|
|
|
4895
4975
|
...props
|
|
4896
4976
|
}) {
|
|
4897
4977
|
const [error, setError] = (0, import_react46.useState)(false);
|
|
4898
|
-
return /* @__PURE__ */ (0,
|
|
4978
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
4899
4979
|
"img",
|
|
4900
4980
|
{
|
|
4901
4981
|
src: error ? fallbackSrc : src,
|
|
@@ -4909,7 +4989,7 @@ function Image2({
|
|
|
4909
4989
|
}
|
|
4910
4990
|
|
|
4911
4991
|
// src/input-otp/InputOTP.tsx
|
|
4912
|
-
var
|
|
4992
|
+
var React21 = __toESM(require("react"), 1);
|
|
4913
4993
|
|
|
4914
4994
|
// src/input-otp/InputOTPContext.ts
|
|
4915
4995
|
var import_react47 = require("react");
|
|
@@ -5167,7 +5247,7 @@ function useInputOTPSlot(index) {
|
|
|
5167
5247
|
}
|
|
5168
5248
|
|
|
5169
5249
|
// src/input-otp/InputOTP.tsx
|
|
5170
|
-
var
|
|
5250
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
5171
5251
|
function InputOTP({
|
|
5172
5252
|
maxLength,
|
|
5173
5253
|
value = "",
|
|
@@ -5179,7 +5259,7 @@ function InputOTP({
|
|
|
5179
5259
|
autoFocus = false
|
|
5180
5260
|
}) {
|
|
5181
5261
|
const { containerRef, contextValue, handleContainerFocusIn, handleContainerFocusOut } = useInputOTP({ maxLength, value, onChange, disabled, autoFocus, error });
|
|
5182
|
-
return /* @__PURE__ */ (0,
|
|
5262
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(InputOTPContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5183
5263
|
"div",
|
|
5184
5264
|
{
|
|
5185
5265
|
ref: containerRef,
|
|
@@ -5192,11 +5272,11 @@ function InputOTP({
|
|
|
5192
5272
|
}
|
|
5193
5273
|
) });
|
|
5194
5274
|
}
|
|
5195
|
-
var InputOTPGroup =
|
|
5196
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5275
|
+
var InputOTPGroup = React21.forwardRef(
|
|
5276
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { ref, className: cn("flex items-center", className), ...props })
|
|
5197
5277
|
);
|
|
5198
5278
|
InputOTPGroup.displayName = "InputOTPGroup";
|
|
5199
|
-
var InputOTPSlot =
|
|
5279
|
+
var InputOTPSlot = React21.forwardRef(
|
|
5200
5280
|
({ index, className, ...props }, ref) => {
|
|
5201
5281
|
const {
|
|
5202
5282
|
char,
|
|
@@ -5210,7 +5290,7 @@ var InputOTPSlot = React20.forwardRef(
|
|
|
5210
5290
|
handlePasteEvent,
|
|
5211
5291
|
focusSlot
|
|
5212
5292
|
} = useInputOTPSlot(index);
|
|
5213
|
-
return /* @__PURE__ */ (0,
|
|
5293
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5214
5294
|
"div",
|
|
5215
5295
|
{
|
|
5216
5296
|
ref,
|
|
@@ -5222,7 +5302,7 @@ var InputOTPSlot = React20.forwardRef(
|
|
|
5222
5302
|
),
|
|
5223
5303
|
onClick: focusSlot,
|
|
5224
5304
|
...props,
|
|
5225
|
-
children: /* @__PURE__ */ (0,
|
|
5305
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5226
5306
|
"input",
|
|
5227
5307
|
{
|
|
5228
5308
|
ref: setInputRef,
|
|
@@ -5245,14 +5325,14 @@ var InputOTPSlot = React20.forwardRef(
|
|
|
5245
5325
|
}
|
|
5246
5326
|
);
|
|
5247
5327
|
InputOTPSlot.displayName = "InputOTPSlot";
|
|
5248
|
-
var InputOTPSeparator =
|
|
5249
|
-
(props, ref) => /* @__PURE__ */ (0,
|
|
5328
|
+
var InputOTPSeparator = React21.forwardRef(
|
|
5329
|
+
(props, ref) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { ref, role: "separator", ...props })
|
|
5250
5330
|
);
|
|
5251
5331
|
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
5252
5332
|
|
|
5253
5333
|
// src/icons-dropdown/IconsDropdown.tsx
|
|
5254
5334
|
var import_react50 = require("react");
|
|
5255
|
-
var
|
|
5335
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
5256
5336
|
function IconsDropdown({
|
|
5257
5337
|
icons,
|
|
5258
5338
|
onChange,
|
|
@@ -5268,14 +5348,14 @@ function IconsDropdown({
|
|
|
5268
5348
|
setOpen(value);
|
|
5269
5349
|
onOpenChangeProp?.(value);
|
|
5270
5350
|
}
|
|
5271
|
-
return /* @__PURE__ */ (0,
|
|
5272
|
-
/* @__PURE__ */ (0,
|
|
5273
|
-
/* @__PURE__ */ (0,
|
|
5351
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(DropdownMenu, { open, onOpenChange: handleOpenChange, children: [
|
|
5352
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(DropdownMenuTrigger, { asChild: true, children }),
|
|
5353
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
5274
5354
|
DropdownMenuContent,
|
|
5275
5355
|
{
|
|
5276
5356
|
align: position === "right" ? "end" : "start",
|
|
5277
5357
|
className: "max-h-48 w-auto overflow-y-auto p-6 shadow-[0px_5px_15px_rgba(26,148,255,0.16)]",
|
|
5278
|
-
children: /* @__PURE__ */ (0,
|
|
5358
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
5279
5359
|
"div",
|
|
5280
5360
|
{
|
|
5281
5361
|
className: "grid gap-1",
|
|
@@ -5284,7 +5364,7 @@ function IconsDropdown({
|
|
|
5284
5364
|
const isSelected = entry.name === selectedIcon;
|
|
5285
5365
|
const iconColor = isSelected ? "var(--chekin-color-brand-blue)" : "var(--chekin-color-gray-1)";
|
|
5286
5366
|
const IconComponent = entry.icon;
|
|
5287
|
-
return /* @__PURE__ */ (0,
|
|
5367
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
5288
5368
|
"button",
|
|
5289
5369
|
{
|
|
5290
5370
|
type: "button",
|
|
@@ -5297,7 +5377,7 @@ function IconsDropdown({
|
|
|
5297
5377
|
"hover:bg-[var(--chekin-color-surface-input-empty)]",
|
|
5298
5378
|
isSelected && "bg-[color-mix(in_srgb,var(--chekin-color-brand-blue)_10%,transparent)]"
|
|
5299
5379
|
),
|
|
5300
|
-
children: /* @__PURE__ */ (0,
|
|
5380
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(IconComponent, { size: 24, color: iconColor })
|
|
5301
5381
|
},
|
|
5302
5382
|
entry.name
|
|
5303
5383
|
);
|
|
@@ -5751,7 +5831,7 @@ function registerUiKitI18n(i18n, options = {}) {
|
|
|
5751
5831
|
|
|
5752
5832
|
// src/large-modal/LargeModal.tsx
|
|
5753
5833
|
var import_lucide_react15 = require("lucide-react");
|
|
5754
|
-
var
|
|
5834
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
5755
5835
|
function LargeModal({
|
|
5756
5836
|
open,
|
|
5757
5837
|
onOpenChange,
|
|
@@ -5768,7 +5848,7 @@ function LargeModal({
|
|
|
5768
5848
|
allowContentOverflow = false
|
|
5769
5849
|
}) {
|
|
5770
5850
|
const portalContainer = container ?? getCustomContainer();
|
|
5771
|
-
return /* @__PURE__ */ (0,
|
|
5851
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Dialog, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
5772
5852
|
DialogContent,
|
|
5773
5853
|
{
|
|
5774
5854
|
showCloseButton: false,
|
|
@@ -5792,24 +5872,24 @@ function LargeModal({
|
|
|
5792
5872
|
}
|
|
5793
5873
|
},
|
|
5794
5874
|
children: [
|
|
5795
|
-
/* @__PURE__ */ (0,
|
|
5796
|
-
/* @__PURE__ */ (0,
|
|
5797
|
-
/* @__PURE__ */ (0,
|
|
5798
|
-
subHeader && /* @__PURE__ */ (0,
|
|
5875
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(DialogHeader, { className: "flex-shrink-0 flex-row items-center justify-between rounded-t-2xl border-b border-[#e5e6ee] bg-[var(--chekin-color-white)] p-6", children: [
|
|
5876
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { children: [
|
|
5877
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(DialogTitle, { className: "text-lg font-semibold text-[var(--chekin-color-brand-navy)]", children: header }),
|
|
5878
|
+
subHeader && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { children: subHeader })
|
|
5799
5879
|
] }),
|
|
5800
|
-
withCloseButton && /* @__PURE__ */ (0,
|
|
5880
|
+
withCloseButton && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
5801
5881
|
"button",
|
|
5802
5882
|
{
|
|
5803
5883
|
type: "button",
|
|
5804
5884
|
onClick: () => onOpenChange?.(false),
|
|
5805
5885
|
className: "rounded-full p-1 text-[var(--chekin-color-brand-navy)] hover:bg-[var(--chekin-color-surface-input-empty)]",
|
|
5806
5886
|
"aria-label": "Close",
|
|
5807
|
-
children: /* @__PURE__ */ (0,
|
|
5887
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_lucide_react15.X, { className: "h-5 w-5" })
|
|
5808
5888
|
}
|
|
5809
5889
|
),
|
|
5810
|
-
/* @__PURE__ */ (0,
|
|
5890
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(DialogDescription, { className: "sr-only", children: screenReaderText })
|
|
5811
5891
|
] }),
|
|
5812
|
-
/* @__PURE__ */ (0,
|
|
5892
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
5813
5893
|
"div",
|
|
5814
5894
|
{
|
|
5815
5895
|
className: cn(
|
|
@@ -5819,7 +5899,7 @@ function LargeModal({
|
|
|
5819
5899
|
children
|
|
5820
5900
|
}
|
|
5821
5901
|
),
|
|
5822
|
-
footer && /* @__PURE__ */ (0,
|
|
5902
|
+
footer && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(DialogFooter, { className: "p-4", children: footer })
|
|
5823
5903
|
]
|
|
5824
5904
|
}
|
|
5825
5905
|
) });
|
|
@@ -5828,20 +5908,20 @@ function LargeModal({
|
|
|
5828
5908
|
// src/learn-more-button/LearnMoreButton.tsx
|
|
5829
5909
|
var import_lucide_react16 = require("lucide-react");
|
|
5830
5910
|
var import_react_i18next9 = require("react-i18next");
|
|
5831
|
-
var
|
|
5911
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
5832
5912
|
function LearnMoreButton({ label, ...props }) {
|
|
5833
5913
|
const { t } = (0, import_react_i18next9.useTranslation)();
|
|
5834
|
-
return /* @__PURE__ */ (0,
|
|
5835
|
-
/* @__PURE__ */ (0,
|
|
5914
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(Button, { variant: "link", ...props, children: [
|
|
5915
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_lucide_react16.BookOpenIcon, { className: "size-5 text-[var(--button-link-text)]" }),
|
|
5836
5916
|
label || t("learn_more")
|
|
5837
5917
|
] });
|
|
5838
5918
|
}
|
|
5839
5919
|
|
|
5840
5920
|
// src/link/Link.tsx
|
|
5841
5921
|
var import_react51 = require("react");
|
|
5842
|
-
var
|
|
5922
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
5843
5923
|
var LinkInternal = (0, import_react51.forwardRef)(
|
|
5844
|
-
({ disabled = false, className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5924
|
+
({ disabled = false, className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
5845
5925
|
"a",
|
|
5846
5926
|
{
|
|
5847
5927
|
ref,
|
|
@@ -5865,7 +5945,7 @@ var Link = (0, import_react51.memo)(LinkInternal);
|
|
|
5865
5945
|
var import_react52 = require("react");
|
|
5866
5946
|
var import_lucide_react17 = require("lucide-react");
|
|
5867
5947
|
var import_react_i18next10 = require("react-i18next");
|
|
5868
|
-
var
|
|
5948
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
5869
5949
|
function ImageFullScreenView({ src, alt, onClose }) {
|
|
5870
5950
|
const { t } = (0, import_react_i18next10.useTranslation)();
|
|
5871
5951
|
const [scale, setScale] = (0, import_react52.useState)(1);
|
|
@@ -5874,9 +5954,9 @@ function ImageFullScreenView({ src, alt, onClose }) {
|
|
|
5874
5954
|
const zoomIn = () => setScale((value) => Math.min(value + 0.25, 3));
|
|
5875
5955
|
const zoomOut = () => setScale((value) => Math.max(value - 0.25, 0.5));
|
|
5876
5956
|
const rotate = () => setRotation((value) => (value + 90) % 360);
|
|
5877
|
-
return /* @__PURE__ */ (0,
|
|
5878
|
-
/* @__PURE__ */ (0,
|
|
5879
|
-
/* @__PURE__ */ (0,
|
|
5957
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "fixed inset-0 z-[300] flex flex-col items-center justify-center bg-black/90", children: [
|
|
5958
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "absolute right-4 top-4 z-[301] flex gap-2", children: [
|
|
5959
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
5880
5960
|
Button,
|
|
5881
5961
|
{
|
|
5882
5962
|
variant: "ghost",
|
|
@@ -5884,10 +5964,10 @@ function ImageFullScreenView({ src, alt, onClose }) {
|
|
|
5884
5964
|
onClick: zoomIn,
|
|
5885
5965
|
className: "rounded-full text-white hover:bg-white/20",
|
|
5886
5966
|
"aria-label": t("zoom_in"),
|
|
5887
|
-
children: /* @__PURE__ */ (0,
|
|
5967
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_lucide_react17.ZoomIn, { className: "h-6 w-6" })
|
|
5888
5968
|
}
|
|
5889
5969
|
),
|
|
5890
|
-
/* @__PURE__ */ (0,
|
|
5970
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
5891
5971
|
Button,
|
|
5892
5972
|
{
|
|
5893
5973
|
variant: "ghost",
|
|
@@ -5895,10 +5975,10 @@ function ImageFullScreenView({ src, alt, onClose }) {
|
|
|
5895
5975
|
onClick: zoomOut,
|
|
5896
5976
|
className: "rounded-full text-white hover:bg-white/20",
|
|
5897
5977
|
"aria-label": t("zoom_out"),
|
|
5898
|
-
children: /* @__PURE__ */ (0,
|
|
5978
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_lucide_react17.ZoomOut, { className: "h-6 w-6" })
|
|
5899
5979
|
}
|
|
5900
5980
|
),
|
|
5901
|
-
/* @__PURE__ */ (0,
|
|
5981
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
5902
5982
|
Button,
|
|
5903
5983
|
{
|
|
5904
5984
|
variant: "ghost",
|
|
@@ -5906,10 +5986,10 @@ function ImageFullScreenView({ src, alt, onClose }) {
|
|
|
5906
5986
|
onClick: rotate,
|
|
5907
5987
|
className: "rounded-full text-white hover:bg-white/20",
|
|
5908
5988
|
"aria-label": t("rotate"),
|
|
5909
|
-
children: /* @__PURE__ */ (0,
|
|
5989
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_lucide_react17.RotateCw, { className: "h-6 w-6" })
|
|
5910
5990
|
}
|
|
5911
5991
|
),
|
|
5912
|
-
/* @__PURE__ */ (0,
|
|
5992
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
5913
5993
|
Button,
|
|
5914
5994
|
{
|
|
5915
5995
|
variant: "ghost",
|
|
@@ -5917,11 +5997,11 @@ function ImageFullScreenView({ src, alt, onClose }) {
|
|
|
5917
5997
|
onClick: onClose,
|
|
5918
5998
|
className: "rounded-full text-white hover:bg-white/20",
|
|
5919
5999
|
"aria-label": t("close"),
|
|
5920
|
-
children: /* @__PURE__ */ (0,
|
|
6000
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_lucide_react17.X, { className: "h-6 w-6" })
|
|
5921
6001
|
}
|
|
5922
6002
|
)
|
|
5923
6003
|
] }),
|
|
5924
|
-
/* @__PURE__ */ (0,
|
|
6004
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
5925
6005
|
"div",
|
|
5926
6006
|
{
|
|
5927
6007
|
className: "flex h-full w-full cursor-move items-center justify-center overflow-hidden",
|
|
@@ -5930,7 +6010,7 @@ function ImageFullScreenView({ src, alt, onClose }) {
|
|
|
5930
6010
|
onClose();
|
|
5931
6011
|
}
|
|
5932
6012
|
},
|
|
5933
|
-
children: /* @__PURE__ */ (0,
|
|
6013
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
5934
6014
|
"div",
|
|
5935
6015
|
{
|
|
5936
6016
|
style: {
|
|
@@ -5938,7 +6018,7 @@ function ImageFullScreenView({ src, alt, onClose }) {
|
|
|
5938
6018
|
transition: "transform 0.2s ease-in-out"
|
|
5939
6019
|
},
|
|
5940
6020
|
className: "max-h-[90%] max-w-[90%]",
|
|
5941
|
-
children: /* @__PURE__ */ (0,
|
|
6021
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
5942
6022
|
Image2,
|
|
5943
6023
|
{
|
|
5944
6024
|
src: src || "",
|
|
@@ -5952,14 +6032,14 @@ function ImageFullScreenView({ src, alt, onClose }) {
|
|
|
5952
6032
|
)
|
|
5953
6033
|
}
|
|
5954
6034
|
),
|
|
5955
|
-
/* @__PURE__ */ (0,
|
|
6035
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: "absolute bottom-4 left-0 right-0 text-center text-sm text-white/70", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("p", { children: t("esc_to_close") }) })
|
|
5956
6036
|
] });
|
|
5957
6037
|
}
|
|
5958
6038
|
|
|
5959
6039
|
// src/modal/Modal.tsx
|
|
5960
6040
|
var import_react53 = require("react");
|
|
5961
6041
|
var import_lucide_react18 = require("lucide-react");
|
|
5962
|
-
var
|
|
6042
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
5963
6043
|
var preventDefault = (event) => {
|
|
5964
6044
|
event.preventDefault();
|
|
5965
6045
|
};
|
|
@@ -5992,7 +6072,7 @@ function Modal({
|
|
|
5992
6072
|
onOpenChange?.(false);
|
|
5993
6073
|
onClose?.();
|
|
5994
6074
|
};
|
|
5995
|
-
return /* @__PURE__ */ (0,
|
|
6075
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Dialog, { open, onOpenChange, modal, children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
5996
6076
|
DialogContent,
|
|
5997
6077
|
{
|
|
5998
6078
|
ref: contentRef,
|
|
@@ -6011,7 +6091,7 @@ function Modal({
|
|
|
6011
6091
|
lockScroll,
|
|
6012
6092
|
...!text && { "aria-describedby": void 0 },
|
|
6013
6093
|
children: [
|
|
6014
|
-
withCloseButton && /* @__PURE__ */ (0,
|
|
6094
|
+
withCloseButton && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6015
6095
|
"button",
|
|
6016
6096
|
{
|
|
6017
6097
|
type: "button",
|
|
@@ -6021,14 +6101,14 @@ function Modal({
|
|
|
6021
6101
|
"absolute right-4 top-4 z-10 rounded-full p-1 text-[var(--chekin-color-brand-blue)] hover:bg-[#f4f6f8]"
|
|
6022
6102
|
),
|
|
6023
6103
|
"aria-label": "Close",
|
|
6024
|
-
children: /* @__PURE__ */ (0,
|
|
6104
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_lucide_react18.X, { className: "h-5 w-5" })
|
|
6025
6105
|
}
|
|
6026
6106
|
),
|
|
6027
|
-
(icon || iconSrc || iconProps?.src) && /* @__PURE__ */ (0,
|
|
6028
|
-
title ? /* @__PURE__ */ (0,
|
|
6029
|
-
text && /* @__PURE__ */ (0,
|
|
6107
|
+
(icon || iconSrc || iconProps?.src) && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "modal__icon mx-auto mt-4 select-none", children: icon ?? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("img", { src: iconSrc, alt: iconAlt ?? "", ...iconProps }) }),
|
|
6108
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(DialogTitle, { className: cn("modal__title", "px-6 text-lg font-bold"), children: title }) : /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(DialogVisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(DialogTitle, { children: "Dialog" }) }),
|
|
6109
|
+
text && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(DialogDescription, { className: cn("modal__text", "text-base"), children: text }),
|
|
6030
6110
|
children,
|
|
6031
|
-
buttons && /* @__PURE__ */ (0,
|
|
6111
|
+
buttons && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6032
6112
|
"div",
|
|
6033
6113
|
{
|
|
6034
6114
|
className: cn(
|
|
@@ -6043,7 +6123,7 @@ function Modal({
|
|
|
6043
6123
|
) });
|
|
6044
6124
|
}
|
|
6045
6125
|
var ModalButton = (0, import_react53.forwardRef)(
|
|
6046
|
-
({ children, size, className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
6126
|
+
({ children, size, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6047
6127
|
Button,
|
|
6048
6128
|
{
|
|
6049
6129
|
ref,
|
|
@@ -6062,7 +6142,7 @@ var import_react55 = require("react");
|
|
|
6062
6142
|
|
|
6063
6143
|
// src/circular-loader/CircularLoader.tsx
|
|
6064
6144
|
var import_react54 = __toESM(require("react"), 1);
|
|
6065
|
-
var
|
|
6145
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
6066
6146
|
var loaderSizePixels = {
|
|
6067
6147
|
sm: 16,
|
|
6068
6148
|
md: 32,
|
|
@@ -6084,7 +6164,7 @@ var CircularLoader = import_react54.default.memo(
|
|
|
6084
6164
|
className
|
|
6085
6165
|
}) => {
|
|
6086
6166
|
if (!visible) return null;
|
|
6087
|
-
return /* @__PURE__ */ (0,
|
|
6167
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
|
|
6088
6168
|
"div",
|
|
6089
6169
|
{
|
|
6090
6170
|
className: cn(
|
|
@@ -6094,7 +6174,7 @@ var CircularLoader = import_react54.default.memo(
|
|
|
6094
6174
|
),
|
|
6095
6175
|
role: "progressbar",
|
|
6096
6176
|
children: [
|
|
6097
|
-
/* @__PURE__ */ (0,
|
|
6177
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
|
|
6098
6178
|
"svg",
|
|
6099
6179
|
{
|
|
6100
6180
|
viewBox: "25 25 50 50",
|
|
@@ -6104,7 +6184,7 @@ var CircularLoader = import_react54.default.memo(
|
|
|
6104
6184
|
height: toCssSize(height ?? width ?? loaderSizePixels[size])
|
|
6105
6185
|
},
|
|
6106
6186
|
children: [
|
|
6107
|
-
/* @__PURE__ */ (0,
|
|
6187
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
6108
6188
|
"circle",
|
|
6109
6189
|
{
|
|
6110
6190
|
r: "20",
|
|
@@ -6114,7 +6194,7 @@ var CircularLoader = import_react54.default.memo(
|
|
|
6114
6194
|
strokeWidth: "7"
|
|
6115
6195
|
}
|
|
6116
6196
|
),
|
|
6117
|
-
/* @__PURE__ */ (0,
|
|
6197
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
|
|
6118
6198
|
"circle",
|
|
6119
6199
|
{
|
|
6120
6200
|
r: "20",
|
|
@@ -6126,7 +6206,7 @@ var CircularLoader = import_react54.default.memo(
|
|
|
6126
6206
|
strokeLinecap: "round",
|
|
6127
6207
|
strokeWidth: "7",
|
|
6128
6208
|
children: [
|
|
6129
|
-
/* @__PURE__ */ (0,
|
|
6209
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
6130
6210
|
"animateTransform",
|
|
6131
6211
|
{
|
|
6132
6212
|
attributeName: "transform",
|
|
@@ -6137,7 +6217,7 @@ var CircularLoader = import_react54.default.memo(
|
|
|
6137
6217
|
type: "rotate"
|
|
6138
6218
|
}
|
|
6139
6219
|
),
|
|
6140
|
-
/* @__PURE__ */ (0,
|
|
6220
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
6141
6221
|
"animate",
|
|
6142
6222
|
{
|
|
6143
6223
|
attributeName: "stroke-dasharray",
|
|
@@ -6149,7 +6229,7 @@ var CircularLoader = import_react54.default.memo(
|
|
|
6149
6229
|
values: "1 200;90 200;90 200"
|
|
6150
6230
|
}
|
|
6151
6231
|
),
|
|
6152
|
-
/* @__PURE__ */ (0,
|
|
6232
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
6153
6233
|
"animate",
|
|
6154
6234
|
{
|
|
6155
6235
|
attributeName: "stroke-dashoffset",
|
|
@@ -6167,7 +6247,7 @@ var CircularLoader = import_react54.default.memo(
|
|
|
6167
6247
|
]
|
|
6168
6248
|
}
|
|
6169
6249
|
),
|
|
6170
|
-
label && /* @__PURE__ */ (0,
|
|
6250
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: cn(labelSizeClassName[size], "font-medium text-chekin-gray-1"), children: label })
|
|
6171
6251
|
]
|
|
6172
6252
|
}
|
|
6173
6253
|
);
|
|
@@ -6176,8 +6256,8 @@ var CircularLoader = import_react54.default.memo(
|
|
|
6176
6256
|
CircularLoader.displayName = "CircularLoader";
|
|
6177
6257
|
|
|
6178
6258
|
// src/modal-loader/ModalLoader.tsx
|
|
6179
|
-
var
|
|
6180
|
-
var ModalLoader = (0, import_react55.memo)(({ visible, className }) => /* @__PURE__ */ (0,
|
|
6259
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
6260
|
+
var ModalLoader = (0, import_react55.memo)(({ visible, className }) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
6181
6261
|
"div",
|
|
6182
6262
|
{
|
|
6183
6263
|
className: cn(
|
|
@@ -6185,17 +6265,17 @@ var ModalLoader = (0, import_react55.memo)(({ visible, className }) => /* @__PUR
|
|
|
6185
6265
|
visible ? "flex" : "hidden",
|
|
6186
6266
|
className
|
|
6187
6267
|
),
|
|
6188
|
-
children: /* @__PURE__ */ (0,
|
|
6268
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "mb-[60px]", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(CircularLoader, { size: "lg", className: "[--circular-loader-color:#475569]" }) })
|
|
6189
6269
|
}
|
|
6190
6270
|
));
|
|
6191
6271
|
ModalLoader.displayName = "ModalLoader";
|
|
6192
6272
|
|
|
6193
6273
|
// src/numbered-list/NumberedList.tsx
|
|
6194
6274
|
var import_react56 = require("react");
|
|
6195
|
-
var
|
|
6275
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
6196
6276
|
var NumberedList = ({ children, className, itemClassName }) => {
|
|
6197
6277
|
const items = Array.isArray(children) ? import_react56.Children.toArray(children) : [children];
|
|
6198
|
-
return /* @__PURE__ */ (0,
|
|
6278
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
6199
6279
|
"ol",
|
|
6200
6280
|
{
|
|
6201
6281
|
className: cn(
|
|
@@ -6203,7 +6283,7 @@ var NumberedList = ({ children, className, itemClassName }) => {
|
|
|
6203
6283
|
className
|
|
6204
6284
|
),
|
|
6205
6285
|
type: "1",
|
|
6206
|
-
children: items.map((child, index) => /* @__PURE__ */ (0,
|
|
6286
|
+
children: items.map((child, index) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
6207
6287
|
"li",
|
|
6208
6288
|
{
|
|
6209
6289
|
className: cn(
|
|
@@ -6214,7 +6294,7 @@ var NumberedList = ({ children, className, itemClassName }) => {
|
|
|
6214
6294
|
before:text-[var(--numbered-list-marker-text)] before:content-[counter(item)]`,
|
|
6215
6295
|
itemClassName
|
|
6216
6296
|
),
|
|
6217
|
-
children: /* @__PURE__ */ (0,
|
|
6297
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { children: child })
|
|
6218
6298
|
},
|
|
6219
6299
|
index
|
|
6220
6300
|
))
|
|
@@ -6224,7 +6304,7 @@ var NumberedList = ({ children, className, itemClassName }) => {
|
|
|
6224
6304
|
|
|
6225
6305
|
// src/overlay-loader/OverlayLoader.tsx
|
|
6226
6306
|
var import_react_i18next11 = require("react-i18next");
|
|
6227
|
-
var
|
|
6307
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
6228
6308
|
function OverlayLoader({
|
|
6229
6309
|
isLoading,
|
|
6230
6310
|
children,
|
|
@@ -6236,16 +6316,16 @@ function OverlayLoader({
|
|
|
6236
6316
|
}) {
|
|
6237
6317
|
const { t } = (0, import_react_i18next11.useTranslation)();
|
|
6238
6318
|
const resolvedLabel = label || t("loading");
|
|
6239
|
-
return /* @__PURE__ */ (0,
|
|
6319
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: cn("relative", className), children: [
|
|
6240
6320
|
children,
|
|
6241
|
-
isLoading && /* @__PURE__ */ (0,
|
|
6321
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
6242
6322
|
"div",
|
|
6243
6323
|
{
|
|
6244
6324
|
className: cn(
|
|
6245
6325
|
"absolute inset-0 flex items-center justify-center bg-[rgb(255_255_255_/_0.6)]",
|
|
6246
6326
|
overlayClassName
|
|
6247
6327
|
),
|
|
6248
|
-
children: /* @__PURE__ */ (0,
|
|
6328
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
6249
6329
|
CircularLoader,
|
|
6250
6330
|
{
|
|
6251
6331
|
size: loaderSize,
|
|
@@ -6266,10 +6346,10 @@ var import_lucide_react21 = require("lucide-react");
|
|
|
6266
6346
|
var import_react57 = require("react");
|
|
6267
6347
|
|
|
6268
6348
|
// src/select/components.tsx
|
|
6269
|
-
var
|
|
6349
|
+
var React23 = __toESM(require("react"), 1);
|
|
6270
6350
|
var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
|
|
6271
6351
|
var import_lucide_react19 = require("lucide-react");
|
|
6272
|
-
var
|
|
6352
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
6273
6353
|
var SelectRoot = SelectPrimitive.Root;
|
|
6274
6354
|
var SelectGroup = SelectPrimitive.Group;
|
|
6275
6355
|
var SelectValue = SelectPrimitive.Value;
|
|
@@ -6278,7 +6358,7 @@ var selectSizeClassNames = {
|
|
|
6278
6358
|
sm: "text-sm",
|
|
6279
6359
|
md: "text-base"
|
|
6280
6360
|
};
|
|
6281
|
-
var SelectTrigger =
|
|
6361
|
+
var SelectTrigger = React23.forwardRef(({ className, children, size = "sm", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
|
|
6282
6362
|
SelectPrimitive.Trigger,
|
|
6283
6363
|
{
|
|
6284
6364
|
ref,
|
|
@@ -6293,7 +6373,7 @@ var SelectTrigger = React22.forwardRef(({ className, children, size = "sm", ...p
|
|
|
6293
6373
|
...props,
|
|
6294
6374
|
children: [
|
|
6295
6375
|
children,
|
|
6296
|
-
/* @__PURE__ */ (0,
|
|
6376
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
6297
6377
|
import_lucide_react19.ChevronDownIcon,
|
|
6298
6378
|
{
|
|
6299
6379
|
size: 16,
|
|
@@ -6305,27 +6385,27 @@ var SelectTrigger = React22.forwardRef(({ className, children, size = "sm", ...p
|
|
|
6305
6385
|
}
|
|
6306
6386
|
));
|
|
6307
6387
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
6308
|
-
var SelectScrollUpButton =
|
|
6388
|
+
var SelectScrollUpButton = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
6309
6389
|
SelectPrimitive.ScrollUpButton,
|
|
6310
6390
|
{
|
|
6311
6391
|
ref,
|
|
6312
6392
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
6313
6393
|
...props,
|
|
6314
|
-
children: /* @__PURE__ */ (0,
|
|
6394
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_lucide_react19.ChevronUpIcon, { size: 16, strokeWidth: 2 })
|
|
6315
6395
|
}
|
|
6316
6396
|
));
|
|
6317
6397
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
6318
|
-
var SelectScrollDownButton =
|
|
6398
|
+
var SelectScrollDownButton = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
6319
6399
|
SelectPrimitive.ScrollDownButton,
|
|
6320
6400
|
{
|
|
6321
6401
|
ref,
|
|
6322
6402
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
6323
6403
|
...props,
|
|
6324
|
-
children: /* @__PURE__ */ (0,
|
|
6404
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_lucide_react19.ChevronDownIcon, { size: 16, strokeWidth: 2 })
|
|
6325
6405
|
}
|
|
6326
6406
|
));
|
|
6327
6407
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
6328
|
-
var SelectContent =
|
|
6408
|
+
var SelectContent = React23.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
|
|
6329
6409
|
SelectPrimitive.Content,
|
|
6330
6410
|
{
|
|
6331
6411
|
ref,
|
|
@@ -6343,8 +6423,8 @@ var SelectContent = React22.forwardRef(({ className, children, position = "poppe
|
|
|
6343
6423
|
position,
|
|
6344
6424
|
...props,
|
|
6345
6425
|
children: [
|
|
6346
|
-
/* @__PURE__ */ (0,
|
|
6347
|
-
/* @__PURE__ */ (0,
|
|
6426
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(SelectScrollUpButton, {}),
|
|
6427
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
6348
6428
|
SelectPrimitive.Viewport,
|
|
6349
6429
|
{
|
|
6350
6430
|
className: cn(
|
|
@@ -6354,12 +6434,12 @@ var SelectContent = React22.forwardRef(({ className, children, position = "poppe
|
|
|
6354
6434
|
children
|
|
6355
6435
|
}
|
|
6356
6436
|
),
|
|
6357
|
-
/* @__PURE__ */ (0,
|
|
6437
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(SelectScrollDownButton, {})
|
|
6358
6438
|
]
|
|
6359
6439
|
}
|
|
6360
6440
|
) }));
|
|
6361
6441
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
6362
|
-
var SelectLabel =
|
|
6442
|
+
var SelectLabel = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
6363
6443
|
SelectPrimitive.Label,
|
|
6364
6444
|
{
|
|
6365
6445
|
ref,
|
|
@@ -6371,7 +6451,7 @@ var SelectLabel = React22.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
6371
6451
|
}
|
|
6372
6452
|
));
|
|
6373
6453
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
6374
|
-
var SelectItem =
|
|
6454
|
+
var SelectItem = React23.forwardRef(({ className, children, size = "sm", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
|
|
6375
6455
|
SelectPrimitive.Item,
|
|
6376
6456
|
{
|
|
6377
6457
|
ref,
|
|
@@ -6385,13 +6465,13 @@ var SelectItem = React22.forwardRef(({ className, children, size = "sm", ...prop
|
|
|
6385
6465
|
),
|
|
6386
6466
|
...props,
|
|
6387
6467
|
children: [
|
|
6388
|
-
/* @__PURE__ */ (0,
|
|
6389
|
-
/* @__PURE__ */ (0,
|
|
6468
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "absolute start-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_lucide_react19.CheckIcon, { size: 16, strokeWidth: 2 }) }) }),
|
|
6469
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(SelectPrimitive.ItemText, { children })
|
|
6390
6470
|
]
|
|
6391
6471
|
}
|
|
6392
6472
|
));
|
|
6393
6473
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
6394
|
-
var SelectSeparator =
|
|
6474
|
+
var SelectSeparator = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
6395
6475
|
SelectPrimitive.Separator,
|
|
6396
6476
|
{
|
|
6397
6477
|
ref,
|
|
@@ -6402,7 +6482,7 @@ var SelectSeparator = React22.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
6402
6482
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
6403
6483
|
|
|
6404
6484
|
// src/select/Select.tsx
|
|
6405
|
-
var
|
|
6485
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
6406
6486
|
var SelectInner = ({
|
|
6407
6487
|
placeholder,
|
|
6408
6488
|
label,
|
|
@@ -6430,8 +6510,8 @@ var SelectInner = ({
|
|
|
6430
6510
|
const handleOpenChange = (open) => {
|
|
6431
6511
|
setIsOpen(open);
|
|
6432
6512
|
};
|
|
6433
|
-
return /* @__PURE__ */ (0,
|
|
6434
|
-
label && showLabel && /* @__PURE__ */ (0,
|
|
6513
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: cn("group relative w-[300px]", className, containerClassName), children: [
|
|
6514
|
+
label && showLabel && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
6435
6515
|
"label",
|
|
6436
6516
|
{
|
|
6437
6517
|
htmlFor: id,
|
|
@@ -6439,7 +6519,7 @@ var SelectInner = ({
|
|
|
6439
6519
|
children: label
|
|
6440
6520
|
}
|
|
6441
6521
|
),
|
|
6442
|
-
/* @__PURE__ */ (0,
|
|
6522
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
|
|
6443
6523
|
SelectRoot,
|
|
6444
6524
|
{
|
|
6445
6525
|
value,
|
|
@@ -6447,8 +6527,8 @@ var SelectInner = ({
|
|
|
6447
6527
|
onOpenChange: handleOpenChange,
|
|
6448
6528
|
disabled,
|
|
6449
6529
|
children: [
|
|
6450
|
-
/* @__PURE__ */ (0,
|
|
6451
|
-
/* @__PURE__ */ (0,
|
|
6530
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(SelectTrigger, { id, ref, size, className: triggerClassName, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(SelectValue, { placeholder }) }),
|
|
6531
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(SelectContent, { children: children ?? options?.map((option) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
6452
6532
|
SelectItem,
|
|
6453
6533
|
{
|
|
6454
6534
|
value: String(option.value),
|
|
@@ -6461,9 +6541,9 @@ var SelectInner = ({
|
|
|
6461
6541
|
]
|
|
6462
6542
|
}
|
|
6463
6543
|
),
|
|
6464
|
-
Boolean(supportingText || errorText) && /* @__PURE__ */ (0,
|
|
6465
|
-
supportingText && !errorText && /* @__PURE__ */ (0,
|
|
6466
|
-
errorText && /* @__PURE__ */ (0,
|
|
6544
|
+
Boolean(supportingText || errorText) && /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex min-h-[15px] justify-between pt-1", children: [
|
|
6545
|
+
supportingText && !errorText && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "text-xs italic leading-[15px] text-[var(--chekin-color-gray-1)]", children: supportingText }),
|
|
6546
|
+
errorText && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "ml-auto text-right text-xs font-medium leading-4 text-[var(--error-message-color)]", children: errorText })
|
|
6467
6547
|
] })
|
|
6468
6548
|
] });
|
|
6469
6549
|
};
|
|
@@ -6475,7 +6555,7 @@ var Select = SelectForward;
|
|
|
6475
6555
|
var SelectPrimitive2 = __toESM(require("@radix-ui/react-select"), 1);
|
|
6476
6556
|
var import_lucide_react20 = require("lucide-react");
|
|
6477
6557
|
var import_react58 = require("react");
|
|
6478
|
-
var
|
|
6558
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
6479
6559
|
var MultiSelectInner = ({
|
|
6480
6560
|
label,
|
|
6481
6561
|
value = [],
|
|
@@ -6502,8 +6582,8 @@ var MultiSelectInner = ({
|
|
|
6502
6582
|
return value.some((v) => String(v) === String(optionValue));
|
|
6503
6583
|
};
|
|
6504
6584
|
const displayText = value.length > 0 ? `${value.length} selected` : placeholder || "Select options";
|
|
6505
|
-
return /* @__PURE__ */ (0,
|
|
6506
|
-
label && showLabel && /* @__PURE__ */ (0,
|
|
6585
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { ref, className: cn("group relative w-[300px]", className), children: [
|
|
6586
|
+
label && showLabel && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
6507
6587
|
"label",
|
|
6508
6588
|
{
|
|
6509
6589
|
htmlFor: id,
|
|
@@ -6511,7 +6591,7 @@ var MultiSelectInner = ({
|
|
|
6511
6591
|
children: label
|
|
6512
6592
|
}
|
|
6513
6593
|
),
|
|
6514
|
-
/* @__PURE__ */ (0,
|
|
6594
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
|
|
6515
6595
|
SelectPrimitive2.Root,
|
|
6516
6596
|
{
|
|
6517
6597
|
open,
|
|
@@ -6519,11 +6599,11 @@ var MultiSelectInner = ({
|
|
|
6519
6599
|
value: "",
|
|
6520
6600
|
disabled,
|
|
6521
6601
|
children: [
|
|
6522
|
-
/* @__PURE__ */ (0,
|
|
6523
|
-
/* @__PURE__ */ (0,
|
|
6602
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(SelectTrigger, { id, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "text-sm", children: displayText }) }),
|
|
6603
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(SelectContent, { children: options?.map(({ value: optionValue, label: optionLabel }) => {
|
|
6524
6604
|
const stringValue = String(optionValue);
|
|
6525
6605
|
const selected = isSelected(optionValue);
|
|
6526
|
-
return /* @__PURE__ */ (0,
|
|
6606
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
|
|
6527
6607
|
"div",
|
|
6528
6608
|
{
|
|
6529
6609
|
role: "option",
|
|
@@ -6538,8 +6618,8 @@ var MultiSelectInner = ({
|
|
|
6538
6618
|
selected && "bg-[#f9fafb]"
|
|
6539
6619
|
),
|
|
6540
6620
|
children: [
|
|
6541
|
-
/* @__PURE__ */ (0,
|
|
6542
|
-
/* @__PURE__ */ (0,
|
|
6621
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "absolute start-2 flex size-3.5 items-center justify-center", children: selected && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_lucide_react20.CheckIcon, { size: 16, strokeWidth: 2 }) }),
|
|
6622
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { children: optionLabel })
|
|
6543
6623
|
]
|
|
6544
6624
|
},
|
|
6545
6625
|
stringValue
|
|
@@ -6555,7 +6635,7 @@ var MultiSelect = (0, import_react58.forwardRef)(MultiSelectInner);
|
|
|
6555
6635
|
// src/select/InfinitySelect.tsx
|
|
6556
6636
|
var import_react_virtual = require("@tanstack/react-virtual");
|
|
6557
6637
|
var import_react59 = require("react");
|
|
6558
|
-
var
|
|
6638
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
6559
6639
|
function InfinitySelect({
|
|
6560
6640
|
label,
|
|
6561
6641
|
className,
|
|
@@ -6595,8 +6675,8 @@ function InfinitySelect({
|
|
|
6595
6675
|
onValueChange?.(selectedValue);
|
|
6596
6676
|
setIsOpen(false);
|
|
6597
6677
|
};
|
|
6598
|
-
return /* @__PURE__ */ (0,
|
|
6599
|
-
/* @__PURE__ */ (0,
|
|
6678
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: cn("group relative min-w-[300px]", className), children: [
|
|
6679
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
6600
6680
|
"label",
|
|
6601
6681
|
{
|
|
6602
6682
|
htmlFor: id,
|
|
@@ -6604,7 +6684,7 @@ function InfinitySelect({
|
|
|
6604
6684
|
children: label
|
|
6605
6685
|
}
|
|
6606
6686
|
),
|
|
6607
|
-
/* @__PURE__ */ (0,
|
|
6687
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
|
|
6608
6688
|
SelectRoot,
|
|
6609
6689
|
{
|
|
6610
6690
|
value,
|
|
@@ -6612,8 +6692,8 @@ function InfinitySelect({
|
|
|
6612
6692
|
open: isOpen,
|
|
6613
6693
|
onOpenChange: setIsOpen,
|
|
6614
6694
|
children: [
|
|
6615
|
-
/* @__PURE__ */ (0,
|
|
6616
|
-
/* @__PURE__ */ (0,
|
|
6695
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(SelectTrigger, { id, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(SelectValue, { placeholder }) }),
|
|
6696
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(SelectContent, { children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
6617
6697
|
"div",
|
|
6618
6698
|
{
|
|
6619
6699
|
ref: parentRef,
|
|
@@ -6621,7 +6701,7 @@ function InfinitySelect({
|
|
|
6621
6701
|
height: `${Math.min(maxHeight, virtualizer.getTotalSize())}px`,
|
|
6622
6702
|
overflow: "auto"
|
|
6623
6703
|
},
|
|
6624
|
-
children: /* @__PURE__ */ (0,
|
|
6704
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
6625
6705
|
"div",
|
|
6626
6706
|
{
|
|
6627
6707
|
style: {
|
|
@@ -6632,7 +6712,7 @@ function InfinitySelect({
|
|
|
6632
6712
|
children: virtualizer.getVirtualItems().map((virtualItem) => {
|
|
6633
6713
|
const isLoading = virtualItem.index >= options.length;
|
|
6634
6714
|
const option = options[virtualItem.index];
|
|
6635
|
-
return /* @__PURE__ */ (0,
|
|
6715
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
6636
6716
|
"div",
|
|
6637
6717
|
{
|
|
6638
6718
|
style: {
|
|
@@ -6643,10 +6723,10 @@ function InfinitySelect({
|
|
|
6643
6723
|
height: `${virtualItem.size}px`,
|
|
6644
6724
|
transform: `translateY(${virtualItem.start}px)`
|
|
6645
6725
|
},
|
|
6646
|
-
children: isLoading || !option ? /* @__PURE__ */ (0,
|
|
6647
|
-
/* @__PURE__ */ (0,
|
|
6726
|
+
children: isLoading || !option ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex items-center gap-2 text-sm text-[var(--chekin-color-gray-1)]", children: [
|
|
6727
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent" }),
|
|
6648
6728
|
"Loading more..."
|
|
6649
|
-
] }) }) : /* @__PURE__ */ (0,
|
|
6729
|
+
] }) }) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
6650
6730
|
SelectItem,
|
|
6651
6731
|
{
|
|
6652
6732
|
value: String(option.value),
|
|
@@ -6669,7 +6749,7 @@ function InfinitySelect({
|
|
|
6669
6749
|
}
|
|
6670
6750
|
|
|
6671
6751
|
// src/pagination/Pagination.tsx
|
|
6672
|
-
var
|
|
6752
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
6673
6753
|
var pageSizeOptions = [10, 20, 25, 30, 40, 50];
|
|
6674
6754
|
function Pagination({
|
|
6675
6755
|
page,
|
|
@@ -6708,7 +6788,7 @@ function Pagination({
|
|
|
6708
6788
|
if (totalItems === 0 || !shouldShowPagination) {
|
|
6709
6789
|
return null;
|
|
6710
6790
|
}
|
|
6711
|
-
return /* @__PURE__ */ (0,
|
|
6791
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
6712
6792
|
"div",
|
|
6713
6793
|
{
|
|
6714
6794
|
className: cn(
|
|
@@ -6716,24 +6796,24 @@ function Pagination({
|
|
|
6716
6796
|
className
|
|
6717
6797
|
),
|
|
6718
6798
|
children: [
|
|
6719
|
-
/* @__PURE__ */ (0,
|
|
6720
|
-
/* @__PURE__ */ (0,
|
|
6721
|
-
!isSimpleVariant && showPageSizeSelector && /* @__PURE__ */ (0,
|
|
6722
|
-
/* @__PURE__ */ (0,
|
|
6723
|
-
/* @__PURE__ */ (0,
|
|
6799
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "mr-auto flex-1 self-start font-medium text-[var(--chekin-color-gray-1)] sm:self-center", children: getInfoText() }),
|
|
6800
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "ml-auto flex w-full items-center gap-8 sm:w-fit", children: [
|
|
6801
|
+
!isSimpleVariant && showPageSizeSelector && /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "hidden items-center gap-2 sm:flex", children: [
|
|
6802
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("p", { className: "font-medium text-[var(--chekin-color-gray-1)]", children: t("rows_per_page") }),
|
|
6803
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
6724
6804
|
Select,
|
|
6725
6805
|
{
|
|
6726
6806
|
value: pageSize.toString(),
|
|
6727
6807
|
onValueChange: (value) => onPageSizeChange(parseInt(value, 10)),
|
|
6728
6808
|
triggerClassName: "h-8 w-[67px]",
|
|
6729
6809
|
containerClassName: "w-[67px] gap-0",
|
|
6730
|
-
children: pageSizeOptions.map((size) => /* @__PURE__ */ (0,
|
|
6810
|
+
children: pageSizeOptions.map((size) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(SelectItem, { value: size.toString(), children: size }, size))
|
|
6731
6811
|
}
|
|
6732
6812
|
)
|
|
6733
6813
|
] }),
|
|
6734
|
-
!isSimpleVariant && /* @__PURE__ */ (0,
|
|
6735
|
-
/* @__PURE__ */ (0,
|
|
6736
|
-
!isSimpleVariant && /* @__PURE__ */ (0,
|
|
6814
|
+
!isSimpleVariant && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "flex w-fit items-center justify-center font-medium", children: t("page_of_pages", { page, pages }) }),
|
|
6815
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "ml-auto flex items-center gap-2 sm:ml-0", children: [
|
|
6816
|
+
!isSimpleVariant && /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
6737
6817
|
Button,
|
|
6738
6818
|
{
|
|
6739
6819
|
variant: "outline",
|
|
@@ -6742,12 +6822,12 @@ function Pagination({
|
|
|
6742
6822
|
onClick: goToFirstPage,
|
|
6743
6823
|
disabled: !canGoPrevious,
|
|
6744
6824
|
children: [
|
|
6745
|
-
/* @__PURE__ */ (0,
|
|
6746
|
-
/* @__PURE__ */ (0,
|
|
6825
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "sr-only hidden", children: t("go_to_first_page") }),
|
|
6826
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_lucide_react21.ChevronsLeft, {})
|
|
6747
6827
|
]
|
|
6748
6828
|
}
|
|
6749
6829
|
),
|
|
6750
|
-
/* @__PURE__ */ (0,
|
|
6830
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
6751
6831
|
Button,
|
|
6752
6832
|
{
|
|
6753
6833
|
variant: isSimpleVariant ? "link" : "outline",
|
|
@@ -6758,12 +6838,12 @@ function Pagination({
|
|
|
6758
6838
|
onClick: goToPreviousPage,
|
|
6759
6839
|
disabled: !canGoPrevious,
|
|
6760
6840
|
children: [
|
|
6761
|
-
/* @__PURE__ */ (0,
|
|
6762
|
-
/* @__PURE__ */ (0,
|
|
6841
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "sr-only hidden", children: t("go_to_previous_page") }),
|
|
6842
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_lucide_react21.ChevronLeft, {})
|
|
6763
6843
|
]
|
|
6764
6844
|
}
|
|
6765
6845
|
),
|
|
6766
|
-
/* @__PURE__ */ (0,
|
|
6846
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
6767
6847
|
Button,
|
|
6768
6848
|
{
|
|
6769
6849
|
variant: isSimpleVariant ? "link" : "outline",
|
|
@@ -6774,12 +6854,12 @@ function Pagination({
|
|
|
6774
6854
|
onClick: goToNextPage,
|
|
6775
6855
|
disabled: !canGoNext,
|
|
6776
6856
|
children: [
|
|
6777
|
-
/* @__PURE__ */ (0,
|
|
6778
|
-
/* @__PURE__ */ (0,
|
|
6857
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "sr-only hidden", children: t("go_to_next_page") }),
|
|
6858
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_lucide_react21.ChevronRight, {})
|
|
6779
6859
|
]
|
|
6780
6860
|
}
|
|
6781
6861
|
),
|
|
6782
|
-
!isSimpleVariant && /* @__PURE__ */ (0,
|
|
6862
|
+
!isSimpleVariant && /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
6783
6863
|
Button,
|
|
6784
6864
|
{
|
|
6785
6865
|
variant: "outline",
|
|
@@ -6788,8 +6868,8 @@ function Pagination({
|
|
|
6788
6868
|
onClick: goToLastPage,
|
|
6789
6869
|
disabled: !canGoNext,
|
|
6790
6870
|
children: [
|
|
6791
|
-
/* @__PURE__ */ (0,
|
|
6792
|
-
/* @__PURE__ */ (0,
|
|
6871
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "sr-only hidden", children: t("go_to_last_page") }),
|
|
6872
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_lucide_react21.ChevronsRight, {})
|
|
6793
6873
|
]
|
|
6794
6874
|
}
|
|
6795
6875
|
)
|
|
@@ -6801,15 +6881,15 @@ function Pagination({
|
|
|
6801
6881
|
}
|
|
6802
6882
|
|
|
6803
6883
|
// src/popover/Popover.tsx
|
|
6804
|
-
var
|
|
6884
|
+
var React24 = __toESM(require("react"), 1);
|
|
6805
6885
|
var RadixPopover = __toESM(require("@radix-ui/react-popover"), 1);
|
|
6806
|
-
var
|
|
6886
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
6807
6887
|
var Popover = RadixPopover.Root;
|
|
6808
6888
|
var PopoverTrigger = RadixPopover.Trigger;
|
|
6809
6889
|
var PopoverAnchor = RadixPopover.Anchor;
|
|
6810
6890
|
var PopoverPortal = RadixPopover.Portal;
|
|
6811
6891
|
var PopoverClose = RadixPopover.Close;
|
|
6812
|
-
var PopoverContent =
|
|
6892
|
+
var PopoverContent = React24.forwardRef(({ className, sideOffset = 4, align = "center", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(RadixPopover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
6813
6893
|
RadixPopover.Content,
|
|
6814
6894
|
{
|
|
6815
6895
|
ref,
|
|
@@ -6829,7 +6909,7 @@ PopoverContent.displayName = "PopoverContent";
|
|
|
6829
6909
|
// src/popover/PopoverWithTooltip.tsx
|
|
6830
6910
|
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"), 1);
|
|
6831
6911
|
var TooltipPrimitive2 = __toESM(require("@radix-ui/react-tooltip"), 1);
|
|
6832
|
-
var
|
|
6912
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
6833
6913
|
function PopoverWithTooltip({
|
|
6834
6914
|
children,
|
|
6835
6915
|
popoverContent,
|
|
@@ -6839,10 +6919,10 @@ function PopoverWithTooltip({
|
|
|
6839
6919
|
popoverContentClassName,
|
|
6840
6920
|
tooltipVariant = "light"
|
|
6841
6921
|
}) {
|
|
6842
|
-
return /* @__PURE__ */ (0,
|
|
6843
|
-
/* @__PURE__ */ (0,
|
|
6844
|
-
/* @__PURE__ */ (0,
|
|
6845
|
-
/* @__PURE__ */ (0,
|
|
6922
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(TooltipPrimitive2.Provider, { delayDuration: 0, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(TooltipPrimitive2.Root, { open: open ? false : void 0, children: [
|
|
6923
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(PopoverPrimitive.Root, { open, onOpenChange, children: [
|
|
6924
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(TooltipPrimitive2.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(PopoverPrimitive.Trigger, { asChild: true, children }) }),
|
|
6925
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
6846
6926
|
PopoverPrimitive.Content,
|
|
6847
6927
|
{
|
|
6848
6928
|
align: "center",
|
|
@@ -6860,7 +6940,7 @@ function PopoverWithTooltip({
|
|
|
6860
6940
|
}
|
|
6861
6941
|
) })
|
|
6862
6942
|
] }),
|
|
6863
|
-
/* @__PURE__ */ (0,
|
|
6943
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(TooltipPrimitive2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
|
|
6864
6944
|
TooltipPrimitive2.Content,
|
|
6865
6945
|
{
|
|
6866
6946
|
sideOffset: 5,
|
|
@@ -6877,7 +6957,7 @@ function PopoverWithTooltip({
|
|
|
6877
6957
|
),
|
|
6878
6958
|
children: [
|
|
6879
6959
|
tooltipContent,
|
|
6880
|
-
/* @__PURE__ */ (0,
|
|
6960
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
6881
6961
|
TooltipPrimitive2.Arrow,
|
|
6882
6962
|
{
|
|
6883
6963
|
className: cn(
|
|
@@ -6899,11 +6979,11 @@ function PopoverWithTooltip({
|
|
|
6899
6979
|
var import_react61 = require("react");
|
|
6900
6980
|
|
|
6901
6981
|
// src/radio-group/RadioGroup.tsx
|
|
6902
|
-
var
|
|
6982
|
+
var React25 = __toESM(require("react"), 1);
|
|
6903
6983
|
var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"), 1);
|
|
6904
6984
|
var import_lucide_react22 = require("lucide-react");
|
|
6905
|
-
var
|
|
6906
|
-
var RadioGroup2 =
|
|
6985
|
+
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
6986
|
+
var RadioGroup2 = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6907
6987
|
RadioGroupPrimitive.Root,
|
|
6908
6988
|
{
|
|
6909
6989
|
ref,
|
|
@@ -6912,7 +6992,7 @@ var RadioGroup2 = React24.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
6912
6992
|
}
|
|
6913
6993
|
));
|
|
6914
6994
|
RadioGroup2.displayName = RadioGroupPrimitive.Root.displayName;
|
|
6915
|
-
var RadioGroupItem =
|
|
6995
|
+
var RadioGroupItem = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6916
6996
|
RadioGroupPrimitive.Item,
|
|
6917
6997
|
{
|
|
6918
6998
|
ref,
|
|
@@ -6923,7 +7003,7 @@ var RadioGroupItem = React24.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
6923
7003
|
className
|
|
6924
7004
|
),
|
|
6925
7005
|
...props,
|
|
6926
|
-
children: /* @__PURE__ */ (0,
|
|
7006
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_lucide_react22.Circle, { className: "h-2.5 w-2.5 fill-current text-current" }) })
|
|
6927
7007
|
}
|
|
6928
7008
|
));
|
|
6929
7009
|
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
|
@@ -6950,7 +7030,7 @@ function useRadioOptions({ options, defaultValue, onChange }) {
|
|
|
6950
7030
|
}
|
|
6951
7031
|
|
|
6952
7032
|
// src/radio/Radio.tsx
|
|
6953
|
-
var
|
|
7033
|
+
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
6954
7034
|
var Radio = (0, import_react61.forwardRef)(
|
|
6955
7035
|
({ options, value, onChange, error, className = "", disabled = false, renderOption }, ref) => {
|
|
6956
7036
|
const { selectedValue, handleValueChange } = useRadioOptions({
|
|
@@ -6964,8 +7044,8 @@ var Radio = (0, import_react61.forwardRef)(
|
|
|
6964
7044
|
}
|
|
6965
7045
|
return option.value === selectedValue;
|
|
6966
7046
|
};
|
|
6967
|
-
return /* @__PURE__ */ (0,
|
|
6968
|
-
/* @__PURE__ */ (0,
|
|
7047
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_jsx_runtime86.Fragment, { children: [
|
|
7048
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
6969
7049
|
RadioGroup2,
|
|
6970
7050
|
{
|
|
6971
7051
|
ref,
|
|
@@ -6973,7 +7053,7 @@ var Radio = (0, import_react61.forwardRef)(
|
|
|
6973
7053
|
onValueChange: handleValueChange,
|
|
6974
7054
|
className: cn(className, "radio"),
|
|
6975
7055
|
disabled,
|
|
6976
|
-
children: options.map((option) => /* @__PURE__ */ (0,
|
|
7056
|
+
children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
6977
7057
|
"label",
|
|
6978
7058
|
{
|
|
6979
7059
|
className: cn(
|
|
@@ -6981,8 +7061,8 @@ var Radio = (0, import_react61.forwardRef)(
|
|
|
6981
7061
|
"flex cursor-pointer items-center gap-2",
|
|
6982
7062
|
(disabled || option.disabled) && "cursor-default opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
6983
7063
|
),
|
|
6984
|
-
children: renderOption ? renderOption({ option, isSelected: getIsSelected(option) }) : /* @__PURE__ */ (0,
|
|
6985
|
-
/* @__PURE__ */ (0,
|
|
7064
|
+
children: renderOption ? renderOption({ option, isSelected: getIsSelected(option) }) : /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_jsx_runtime86.Fragment, { children: [
|
|
7065
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
6986
7066
|
RadioGroupItem,
|
|
6987
7067
|
{
|
|
6988
7068
|
value: option.value,
|
|
@@ -6991,29 +7071,29 @@ var Radio = (0, import_react61.forwardRef)(
|
|
|
6991
7071
|
className: "radio__indicator"
|
|
6992
7072
|
}
|
|
6993
7073
|
),
|
|
6994
|
-
/* @__PURE__ */ (0,
|
|
7074
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("p", { className: "radio_label", children: option.label })
|
|
6995
7075
|
] })
|
|
6996
7076
|
},
|
|
6997
7077
|
option.value
|
|
6998
7078
|
))
|
|
6999
7079
|
}
|
|
7000
7080
|
),
|
|
7001
|
-
error && /* @__PURE__ */ (0,
|
|
7081
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ErrorMessage, { children: error })
|
|
7002
7082
|
] });
|
|
7003
7083
|
}
|
|
7004
7084
|
);
|
|
7005
7085
|
Radio.displayName = "Radio";
|
|
7006
7086
|
|
|
7007
7087
|
// src/radio/RadioWithBorder.tsx
|
|
7008
|
-
var
|
|
7088
|
+
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
7009
7089
|
function RadioWithBorder({ ...props }) {
|
|
7010
|
-
return /* @__PURE__ */ (0,
|
|
7090
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
7011
7091
|
Radio,
|
|
7012
7092
|
{
|
|
7013
7093
|
...props,
|
|
7014
7094
|
renderOption: ({ option, isSelected }) => {
|
|
7015
7095
|
const data = option.data;
|
|
7016
|
-
return /* @__PURE__ */ (0,
|
|
7096
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
|
|
7017
7097
|
"div",
|
|
7018
7098
|
{
|
|
7019
7099
|
className: cn(
|
|
@@ -7021,7 +7101,7 @@ function RadioWithBorder({ ...props }) {
|
|
|
7021
7101
|
isSelected && "border-[var(--chekin-color-brand-blue)] bg-[var(--chekin-color-surface-autocomplete)]"
|
|
7022
7102
|
),
|
|
7023
7103
|
children: [
|
|
7024
|
-
/* @__PURE__ */ (0,
|
|
7104
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
7025
7105
|
RadioGroupItem,
|
|
7026
7106
|
{
|
|
7027
7107
|
className: "mt-1",
|
|
@@ -7030,12 +7110,12 @@ function RadioWithBorder({ ...props }) {
|
|
|
7030
7110
|
disabled: option.disabled
|
|
7031
7111
|
}
|
|
7032
7112
|
),
|
|
7033
|
-
/* @__PURE__ */ (0,
|
|
7034
|
-
/* @__PURE__ */ (0,
|
|
7113
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "space-y-1 leading-6", children: [
|
|
7114
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("p", { className: "flex items-center gap-3 font-semibold", children: [
|
|
7035
7115
|
option.label,
|
|
7036
|
-
data?.subLabel && /* @__PURE__ */ (0,
|
|
7116
|
+
data?.subLabel && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { className: "rounded bg-[color-mix(in_srgb,var(--chekin-color-brand-blue)_10%,transparent)] px-2 py-1 text-sm font-semibold leading-4 text-[var(--chekin-color-brand-blue)]", children: data.subLabel })
|
|
7037
7117
|
] }),
|
|
7038
|
-
data?.description && /* @__PURE__ */ (0,
|
|
7118
|
+
data?.description && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("p", { className: "text-sm font-medium text-[var(--chekin-color-gray-1)]", children: data.description })
|
|
7039
7119
|
] })
|
|
7040
7120
|
]
|
|
7041
7121
|
}
|
|
@@ -7047,7 +7127,7 @@ function RadioWithBorder({ ...props }) {
|
|
|
7047
7127
|
|
|
7048
7128
|
// src/radio-cards-group/RadioCardsGroup.tsx
|
|
7049
7129
|
var import_react62 = require("react");
|
|
7050
|
-
var
|
|
7130
|
+
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
7051
7131
|
var isValueSelectOption = (value) => {
|
|
7052
7132
|
return value?.value !== void 0;
|
|
7053
7133
|
};
|
|
@@ -7079,8 +7159,8 @@ var RadioCardsGroup = (0, import_react62.forwardRef)(
|
|
|
7079
7159
|
[defaultValue, onChange, options, value]
|
|
7080
7160
|
);
|
|
7081
7161
|
const currentValue = isValueSelectOption(value) ? value.value : value;
|
|
7082
|
-
return /* @__PURE__ */ (0,
|
|
7083
|
-
/* @__PURE__ */ (0,
|
|
7162
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_jsx_runtime88.Fragment, { children: [
|
|
7163
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
7084
7164
|
Radio,
|
|
7085
7165
|
{
|
|
7086
7166
|
ref,
|
|
@@ -7090,7 +7170,7 @@ var RadioCardsGroup = (0, import_react62.forwardRef)(
|
|
|
7090
7170
|
disabled,
|
|
7091
7171
|
className: cn("flex flex-wrap gap-4", className),
|
|
7092
7172
|
renderOption: ({ option, isSelected }) => {
|
|
7093
|
-
return /* @__PURE__ */ (0,
|
|
7173
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
|
|
7094
7174
|
"div",
|
|
7095
7175
|
{
|
|
7096
7176
|
className: cn(
|
|
@@ -7105,7 +7185,7 @@ var RadioCardsGroup = (0, import_react62.forwardRef)(
|
|
|
7105
7185
|
cardClassName
|
|
7106
7186
|
),
|
|
7107
7187
|
children: [
|
|
7108
|
-
/* @__PURE__ */ (0,
|
|
7188
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
7109
7189
|
RadioGroupItem,
|
|
7110
7190
|
{
|
|
7111
7191
|
value: option.value,
|
|
@@ -7113,8 +7193,8 @@ var RadioCardsGroup = (0, import_react62.forwardRef)(
|
|
|
7113
7193
|
disabled: disabled || option.disabled
|
|
7114
7194
|
}
|
|
7115
7195
|
) }),
|
|
7116
|
-
/* @__PURE__ */ (0,
|
|
7117
|
-
/* @__PURE__ */ (0,
|
|
7196
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "w-full cursor-pointer", children: [
|
|
7197
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
7118
7198
|
"label",
|
|
7119
7199
|
{
|
|
7120
7200
|
htmlFor: `radio-${option.value}`,
|
|
@@ -7125,7 +7205,7 @@ var RadioCardsGroup = (0, import_react62.forwardRef)(
|
|
|
7125
7205
|
children: option.label
|
|
7126
7206
|
}
|
|
7127
7207
|
),
|
|
7128
|
-
option.description && /* @__PURE__ */ (0,
|
|
7208
|
+
option.description && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: "radioCardDescription mt-2", children: option.description })
|
|
7129
7209
|
] })
|
|
7130
7210
|
]
|
|
7131
7211
|
}
|
|
@@ -7133,14 +7213,14 @@ var RadioCardsGroup = (0, import_react62.forwardRef)(
|
|
|
7133
7213
|
}
|
|
7134
7214
|
}
|
|
7135
7215
|
),
|
|
7136
|
-
error && /* @__PURE__ */ (0,
|
|
7216
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: "mt-2 text-left text-sm text-[#ff2467]", children: error })
|
|
7137
7217
|
] });
|
|
7138
7218
|
}
|
|
7139
7219
|
);
|
|
7140
7220
|
var MemoizedRadioCardsGroup = (0, import_react62.memo)(RadioCardsGroup);
|
|
7141
7221
|
|
|
7142
7222
|
// src/rating-progress/RatingProgress.tsx
|
|
7143
|
-
var
|
|
7223
|
+
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
7144
7224
|
var getRatingColor = (score, maxScore) => {
|
|
7145
7225
|
const percentage = score / maxScore * 100;
|
|
7146
7226
|
if (percentage === 0) return "#ff2765";
|
|
@@ -7159,7 +7239,7 @@ function RatingProgress({
|
|
|
7159
7239
|
}) {
|
|
7160
7240
|
const percentage = Math.max(0, Math.min(100, score / maxScore * 100));
|
|
7161
7241
|
const color = getRatingColor(score, maxScore);
|
|
7162
|
-
return /* @__PURE__ */ (0,
|
|
7242
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
|
|
7163
7243
|
"div",
|
|
7164
7244
|
{
|
|
7165
7245
|
className: cn(
|
|
@@ -7167,13 +7247,13 @@ function RatingProgress({
|
|
|
7167
7247
|
className
|
|
7168
7248
|
),
|
|
7169
7249
|
children: [
|
|
7170
|
-
/* @__PURE__ */ (0,
|
|
7171
|
-
/* @__PURE__ */ (0,
|
|
7172
|
-
/* @__PURE__ */ (0,
|
|
7250
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex w-full items-start justify-between text-sm font-medium leading-6", children: [
|
|
7251
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)("p", { className: "min-w-0 flex-1", children: label }),
|
|
7252
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)("p", { className: "shrink-0 whitespace-pre", children: score.toFixed(1) })
|
|
7173
7253
|
] }),
|
|
7174
|
-
/* @__PURE__ */ (0,
|
|
7175
|
-
/* @__PURE__ */ (0,
|
|
7176
|
-
/* @__PURE__ */ (0,
|
|
7254
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "relative w-full", children: [
|
|
7255
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: "h-1.5 w-full rounded-[24px] bg-[var(--chekin-color-gray-3)]" }),
|
|
7256
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
7177
7257
|
"div",
|
|
7178
7258
|
{
|
|
7179
7259
|
className: "absolute left-0 top-0 h-1.5 rounded-[24px] transition-all duration-300 ease-out",
|
|
@@ -7191,7 +7271,7 @@ function RatingProgress({
|
|
|
7191
7271
|
|
|
7192
7272
|
// src/rating-radio-group/RatingRadioGroup.tsx
|
|
7193
7273
|
var import_lucide_react23 = require("lucide-react");
|
|
7194
|
-
var
|
|
7274
|
+
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
7195
7275
|
var getStarColor = (optionValue) => (value) => {
|
|
7196
7276
|
if (value >= optionValue) return "#facc15";
|
|
7197
7277
|
return "var(--chekin-color-gray-1)";
|
|
@@ -7204,10 +7284,10 @@ function RatingRadioGroup({
|
|
|
7204
7284
|
className,
|
|
7205
7285
|
options
|
|
7206
7286
|
}) {
|
|
7207
|
-
return /* @__PURE__ */ (0,
|
|
7208
|
-
label && /* @__PURE__ */ (0,
|
|
7209
|
-
/* @__PURE__ */ (0,
|
|
7210
|
-
/* @__PURE__ */ (0,
|
|
7287
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("fieldset", { className: cn("relative [all:unset]", className), children: [
|
|
7288
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("legend", { className: "mb-2", children: label }),
|
|
7289
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "RatingRadioGroup__list flex gap-2", children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("label", { children: [
|
|
7290
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
7211
7291
|
"input",
|
|
7212
7292
|
{
|
|
7213
7293
|
className: "peer absolute h-0 w-0 opacity-0",
|
|
@@ -7218,7 +7298,7 @@ function RatingRadioGroup({
|
|
|
7218
7298
|
onChange: () => onChange?.(option.value)
|
|
7219
7299
|
}
|
|
7220
7300
|
),
|
|
7221
|
-
/* @__PURE__ */ (0,
|
|
7301
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
7222
7302
|
import_lucide_react23.Star,
|
|
7223
7303
|
{
|
|
7224
7304
|
className: "cursor-pointer rounded peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-[#385bf8]",
|
|
@@ -7233,10 +7313,10 @@ function RatingRadioGroup({
|
|
|
7233
7313
|
}
|
|
7234
7314
|
|
|
7235
7315
|
// src/rating-stars/RatingStars.tsx
|
|
7236
|
-
var
|
|
7316
|
+
var React26 = __toESM(require("react"), 1);
|
|
7237
7317
|
var import_lucide_react24 = require("lucide-react");
|
|
7238
7318
|
var import_react_i18next13 = require("react-i18next");
|
|
7239
|
-
var
|
|
7319
|
+
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
7240
7320
|
function RatingStars({
|
|
7241
7321
|
rating,
|
|
7242
7322
|
maxRating = 5,
|
|
@@ -7253,7 +7333,7 @@ function RatingStars({
|
|
|
7253
7333
|
const { t } = (0, import_react_i18next13.useTranslation)();
|
|
7254
7334
|
const normalizedRating = Math.max(0, Math.min(maxRating, rating));
|
|
7255
7335
|
const stars = Array.from({ length: maxRating }, (_, index) => index + 1);
|
|
7256
|
-
const componentId =
|
|
7336
|
+
const componentId = React26.useId();
|
|
7257
7337
|
const decimal = normalizedRating - Math.floor(normalizedRating);
|
|
7258
7338
|
const partialStarIndex = decimal > 0 ? Math.ceil(normalizedRating) : -1;
|
|
7259
7339
|
const gradientId = `star-gradient-${componentId.replace(/:/g, "")}`;
|
|
@@ -7266,18 +7346,18 @@ function RatingStars({
|
|
|
7266
7346
|
}
|
|
7267
7347
|
return emptyColor;
|
|
7268
7348
|
};
|
|
7269
|
-
return /* @__PURE__ */ (0,
|
|
7270
|
-
showText && /* @__PURE__ */ (0,
|
|
7349
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: cn("flex flex-col items-start gap-2", className), children: [
|
|
7350
|
+
showText && /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("p", { className: "text-4xl font-medium", children: [
|
|
7271
7351
|
normalizedRating,
|
|
7272
7352
|
"/",
|
|
7273
7353
|
maxRating
|
|
7274
7354
|
] }),
|
|
7275
|
-
/* @__PURE__ */ (0,
|
|
7276
|
-
/* @__PURE__ */ (0,
|
|
7277
|
-
/* @__PURE__ */ (0,
|
|
7278
|
-
/* @__PURE__ */ (0,
|
|
7355
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "flex items-center gap-1", children: [
|
|
7356
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("svg", { width: "0", height: "0", style: { position: "absolute" }, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("linearGradient", { id: gradientId, x1: "0%", y1: "0%", x2: "100%", y2: "0%", children: [
|
|
7357
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("stop", { offset: `${decimal * 100}%`, stopColor: filledColor }),
|
|
7358
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("stop", { offset: `${decimal * 100}%`, stopColor: emptyColor })
|
|
7279
7359
|
] }) }) }),
|
|
7280
|
-
stars.map((star) => /* @__PURE__ */ (0,
|
|
7360
|
+
stars.map((star) => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
7281
7361
|
import_lucide_react24.Star,
|
|
7282
7362
|
{
|
|
7283
7363
|
size,
|
|
@@ -7289,22 +7369,22 @@ function RatingStars({
|
|
|
7289
7369
|
star
|
|
7290
7370
|
))
|
|
7291
7371
|
] }),
|
|
7292
|
-
(reviewCount !== void 0 || description) && /* @__PURE__ */ (0,
|
|
7293
|
-
reviewCount !== void 0 && /* @__PURE__ */ (0,
|
|
7372
|
+
(reviewCount !== void 0 || description) && /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "flex flex-col font-medium text-[var(--chekin-color-gray-1)]", children: [
|
|
7373
|
+
reviewCount !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("p", { className: "text-xs leading-4", children: [
|
|
7294
7374
|
reviewCount,
|
|
7295
7375
|
" ",
|
|
7296
7376
|
reviewsLabel || t("reviews")
|
|
7297
7377
|
] }),
|
|
7298
|
-
description && /* @__PURE__ */ (0,
|
|
7378
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("p", { className: "text-sm leading-6", children: description })
|
|
7299
7379
|
] })
|
|
7300
7380
|
] });
|
|
7301
7381
|
}
|
|
7302
7382
|
|
|
7303
7383
|
// src/rotate-arrow/RotateArrow.tsx
|
|
7304
7384
|
var import_lucide_react25 = require("lucide-react");
|
|
7305
|
-
var
|
|
7385
|
+
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
7306
7386
|
function RotateArrow({ shouldRotate, className }) {
|
|
7307
|
-
return /* @__PURE__ */ (0,
|
|
7387
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
7308
7388
|
import_lucide_react25.ChevronDown,
|
|
7309
7389
|
{
|
|
7310
7390
|
size: 16,
|
|
@@ -7320,9 +7400,9 @@ function RotateArrow({ shouldRotate, className }) {
|
|
|
7320
7400
|
|
|
7321
7401
|
// src/search-button/SearchButton.tsx
|
|
7322
7402
|
var import_lucide_react26 = require("lucide-react");
|
|
7323
|
-
var
|
|
7403
|
+
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
7324
7404
|
function SearchButton({ onClick, className, icon, ariaLabel }) {
|
|
7325
|
-
return /* @__PURE__ */ (0,
|
|
7405
|
+
return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
7326
7406
|
"button",
|
|
7327
7407
|
{
|
|
7328
7408
|
onClick,
|
|
@@ -7333,7 +7413,7 @@ function SearchButton({ onClick, className, icon, ariaLabel }) {
|
|
|
7333
7413
|
"data-testid": "search-button",
|
|
7334
7414
|
"aria-label": ariaLabel,
|
|
7335
7415
|
type: "button",
|
|
7336
|
-
children: icon || /* @__PURE__ */ (0,
|
|
7416
|
+
children: icon || /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_lucide_react26.Search, { size: 14, strokeWidth: 4 })
|
|
7337
7417
|
}
|
|
7338
7418
|
);
|
|
7339
7419
|
}
|
|
@@ -7341,7 +7421,7 @@ function SearchButton({ onClick, className, icon, ariaLabel }) {
|
|
|
7341
7421
|
// src/search-input/SearchInput.tsx
|
|
7342
7422
|
var import_lucide_react27 = require("lucide-react");
|
|
7343
7423
|
var import_react_i18next14 = require("react-i18next");
|
|
7344
|
-
var
|
|
7424
|
+
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
7345
7425
|
function SearchInput({
|
|
7346
7426
|
disabled,
|
|
7347
7427
|
invalid,
|
|
@@ -7360,15 +7440,15 @@ function SearchInput({
|
|
|
7360
7440
|
const isBlocked = Boolean(disabled) || Boolean(loading);
|
|
7361
7441
|
const optionalLabel = optional ? typeof optional === "string" ? optional : t("optional") : void 0;
|
|
7362
7442
|
const hasLabelMeta = Boolean(optionalLabel) || Boolean(tooltip);
|
|
7363
|
-
return /* @__PURE__ */ (0,
|
|
7364
|
-
(label || hasLabelMeta) && /* @__PURE__ */ (0,
|
|
7365
|
-
label && /* @__PURE__ */ (0,
|
|
7366
|
-
optionalLabel && /* @__PURE__ */ (0,
|
|
7367
|
-
tooltip && /* @__PURE__ */ (0,
|
|
7443
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: cn("input-wrapper", wrapperClassName), children: [
|
|
7444
|
+
(label || hasLabelMeta) && /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "mb-2 inline-flex max-w-full items-center gap-1.5 text-sm font-medium text-[var(--chekin-color-brand-navy)]", children: [
|
|
7445
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "min-w-0 truncate", children: label }),
|
|
7446
|
+
optionalLabel && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "shrink-0 text-xs font-normal text-[var(--chekin-color-gray-2)]", children: optionalLabel }),
|
|
7447
|
+
tooltip && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(HelpTooltip, { content: tooltip, side: "top", size: 16 })
|
|
7368
7448
|
] }),
|
|
7369
|
-
/* @__PURE__ */ (0,
|
|
7370
|
-
/* @__PURE__ */ (0,
|
|
7371
|
-
/* @__PURE__ */ (0,
|
|
7449
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "relative", children: [
|
|
7450
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_lucide_react27.Search, { className: "absolute left-4 top-1/2 h-5 w-5 -translate-y-1/2 text-[var(--chekin-color-gray-2)]" }),
|
|
7451
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
7372
7452
|
Input,
|
|
7373
7453
|
{
|
|
7374
7454
|
...props,
|
|
@@ -7386,15 +7466,15 @@ function SearchInput({
|
|
|
7386
7466
|
)
|
|
7387
7467
|
}
|
|
7388
7468
|
),
|
|
7389
|
-
(loading || onReset) && /* @__PURE__ */ (0,
|
|
7390
|
-
loading && /* @__PURE__ */ (0,
|
|
7469
|
+
(loading || onReset) && /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "absolute right-2 top-1/2 flex -translate-y-1/2 items-center gap-1", children: [
|
|
7470
|
+
loading && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
7391
7471
|
import_lucide_react27.Loader2,
|
|
7392
7472
|
{
|
|
7393
7473
|
"aria-hidden": "true",
|
|
7394
7474
|
className: "h-5 w-5 animate-spin text-[var(--chekin-color-gray-2)]"
|
|
7395
7475
|
}
|
|
7396
7476
|
),
|
|
7397
|
-
onReset && /* @__PURE__ */ (0,
|
|
7477
|
+
onReset && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
7398
7478
|
Button,
|
|
7399
7479
|
{
|
|
7400
7480
|
variant: "ghost",
|
|
@@ -7402,7 +7482,7 @@ function SearchInput({
|
|
|
7402
7482
|
disabled: isBlocked,
|
|
7403
7483
|
className: "h-7 w-7 p-0 text-[var(--chekin-color-gray-2)]",
|
|
7404
7484
|
"aria-label": t("reset_search"),
|
|
7405
|
-
children: /* @__PURE__ */ (0,
|
|
7485
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_lucide_react27.X, { className: "h-5 w-5" })
|
|
7406
7486
|
}
|
|
7407
7487
|
)
|
|
7408
7488
|
] })
|
|
@@ -7412,7 +7492,7 @@ function SearchInput({
|
|
|
7412
7492
|
|
|
7413
7493
|
// src/search-input/DebouncedSearchInput.tsx
|
|
7414
7494
|
var import_react63 = require("react");
|
|
7415
|
-
var
|
|
7495
|
+
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
7416
7496
|
function DebouncedSearchInput({
|
|
7417
7497
|
onChange,
|
|
7418
7498
|
placeholder,
|
|
@@ -7428,7 +7508,7 @@ function DebouncedSearchInput({
|
|
|
7428
7508
|
onChange(value);
|
|
7429
7509
|
}
|
|
7430
7510
|
});
|
|
7431
|
-
return /* @__PURE__ */ (0,
|
|
7511
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
7432
7512
|
SearchInput,
|
|
7433
7513
|
{
|
|
7434
7514
|
onChange: handleInputChange,
|
|
@@ -7440,8 +7520,8 @@ function DebouncedSearchInput({
|
|
|
7440
7520
|
}
|
|
7441
7521
|
|
|
7442
7522
|
// src/section-tag/sectionTagVariants.ts
|
|
7443
|
-
var
|
|
7444
|
-
var sectionTagVariants = (0,
|
|
7523
|
+
var import_class_variance_authority11 = require("class-variance-authority");
|
|
7524
|
+
var sectionTagVariants = (0, import_class_variance_authority11.cva)(
|
|
7445
7525
|
"relative -mt-1 ml-5 inline-flex items-center justify-center px-4 py-1 text-sm font-semibold text-white",
|
|
7446
7526
|
{
|
|
7447
7527
|
variants: {
|
|
@@ -7457,9 +7537,9 @@ var sectionTagVariants = (0, import_class_variance_authority10.cva)(
|
|
|
7457
7537
|
);
|
|
7458
7538
|
|
|
7459
7539
|
// src/section-tag/SectionTag.tsx
|
|
7460
|
-
var
|
|
7540
|
+
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
7461
7541
|
function SectionTag({ children, color = "green", className }) {
|
|
7462
|
-
return /* @__PURE__ */ (0,
|
|
7542
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: cn(sectionTagVariants({ color }), className), children });
|
|
7463
7543
|
}
|
|
7464
7544
|
|
|
7465
7545
|
// src/section-tag/constants.ts
|
|
@@ -7482,16 +7562,16 @@ var SubSectionSize = /* @__PURE__ */ ((SubSectionSize2) => {
|
|
|
7482
7562
|
})(SubSectionSize || {});
|
|
7483
7563
|
|
|
7484
7564
|
// src/section/Section.tsx
|
|
7485
|
-
var
|
|
7565
|
+
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
7486
7566
|
function TooltipInfo({ content, className }) {
|
|
7487
|
-
return /* @__PURE__ */ (0,
|
|
7567
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Tooltip, { side: "right", content, contentClassName: "max-w-64", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
7488
7568
|
"button",
|
|
7489
7569
|
{
|
|
7490
7570
|
type: "button",
|
|
7491
7571
|
className: cn("inline-flex text-[var(--chekin-color-gray-1)]", className),
|
|
7492
7572
|
onClick: (event) => event.stopPropagation(),
|
|
7493
7573
|
"aria-label": typeof content === "string" ? content : "More information",
|
|
7494
|
-
children: /* @__PURE__ */ (0,
|
|
7574
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_lucide_react28.CircleHelp, { className: "h-4 w-4" })
|
|
7495
7575
|
}
|
|
7496
7576
|
) });
|
|
7497
7577
|
}
|
|
@@ -7512,7 +7592,7 @@ var Section = (0, import_react64.forwardRef)(
|
|
|
7512
7592
|
size
|
|
7513
7593
|
}, ref) => {
|
|
7514
7594
|
const { t } = (0, import_react_i18next15.useTranslation)();
|
|
7515
|
-
return /* @__PURE__ */ (0,
|
|
7595
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
|
|
7516
7596
|
"div",
|
|
7517
7597
|
{
|
|
7518
7598
|
ref,
|
|
@@ -7524,8 +7604,8 @@ var Section = (0, import_react64.forwardRef)(
|
|
|
7524
7604
|
className
|
|
7525
7605
|
),
|
|
7526
7606
|
children: [
|
|
7527
|
-
(title || subtitle) && /* @__PURE__ */ (0,
|
|
7528
|
-
title && /* @__PURE__ */ (0,
|
|
7607
|
+
(title || subtitle) && /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
7608
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
|
|
7529
7609
|
"div",
|
|
7530
7610
|
{
|
|
7531
7611
|
className: cn(
|
|
@@ -7535,17 +7615,17 @@ var Section = (0, import_react64.forwardRef)(
|
|
|
7535
7615
|
),
|
|
7536
7616
|
children: [
|
|
7537
7617
|
title,
|
|
7538
|
-
titleTooltip && /* @__PURE__ */ (0,
|
|
7539
|
-
linkContent && /* @__PURE__ */ (0,
|
|
7618
|
+
titleTooltip && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "ml-2.5", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(TooltipInfo, { content: titleTooltip }) }),
|
|
7619
|
+
linkContent && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "ml-6 text-sm font-semibold text-[var(--chekin-color-brand-blue)] no-underline hover:opacity-70 active:opacity-100", children: linkContent })
|
|
7540
7620
|
]
|
|
7541
7621
|
}
|
|
7542
7622
|
),
|
|
7543
|
-
subtitle && /* @__PURE__ */ (0,
|
|
7544
|
-
/* @__PURE__ */ (0,
|
|
7545
|
-
subtitleTooltip && /* @__PURE__ */ (0,
|
|
7623
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "w-full max-w-[720px] md:max-w-full", children: [
|
|
7624
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "inline text-base font-normal text-[var(--chekin-color-gray-1)]", children: subtitle }),
|
|
7625
|
+
subtitleTooltip && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "ml-1.5 inline-block align-text-top", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(TooltipInfo, { content: subtitleTooltip }) })
|
|
7546
7626
|
] })
|
|
7547
7627
|
] }),
|
|
7548
|
-
loading && showLoader ? /* @__PURE__ */ (0,
|
|
7628
|
+
loading && showLoader ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
7549
7629
|
CircularLoader,
|
|
7550
7630
|
{
|
|
7551
7631
|
size: "md",
|
|
@@ -7560,7 +7640,7 @@ var Section = (0, import_react64.forwardRef)(
|
|
|
7560
7640
|
);
|
|
7561
7641
|
Section.displayName = "Section";
|
|
7562
7642
|
var SubSection = (0, import_react64.forwardRef)(
|
|
7563
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
7643
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
7564
7644
|
Section,
|
|
7565
7645
|
{
|
|
7566
7646
|
ref,
|
|
@@ -7574,7 +7654,7 @@ var SubSection = (0, import_react64.forwardRef)(
|
|
|
7574
7654
|
);
|
|
7575
7655
|
SubSection.displayName = "SubSection";
|
|
7576
7656
|
var DividingSubsection = (0, import_react64.forwardRef)(
|
|
7577
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
7657
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
7578
7658
|
SubSection,
|
|
7579
7659
|
{
|
|
7580
7660
|
ref,
|
|
@@ -7587,14 +7667,14 @@ DividingSubsection.displayName = "DividingSubsection";
|
|
|
7587
7667
|
|
|
7588
7668
|
// src/separator/Separator.tsx
|
|
7589
7669
|
var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"), 1);
|
|
7590
|
-
var
|
|
7670
|
+
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
7591
7671
|
function Separator3({
|
|
7592
7672
|
className,
|
|
7593
7673
|
orientation = "horizontal",
|
|
7594
7674
|
decorative = true,
|
|
7595
7675
|
...props
|
|
7596
7676
|
}) {
|
|
7597
|
-
return /* @__PURE__ */ (0,
|
|
7677
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
7598
7678
|
SeparatorPrimitive.Root,
|
|
7599
7679
|
{
|
|
7600
7680
|
"data-slot": "separator",
|
|
@@ -7610,7 +7690,7 @@ function Separator3({
|
|
|
7610
7690
|
}
|
|
7611
7691
|
|
|
7612
7692
|
// src/section-group/SectionGroup.tsx
|
|
7613
|
-
var
|
|
7693
|
+
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
7614
7694
|
var SectionGroupItem = ({
|
|
7615
7695
|
className,
|
|
7616
7696
|
contentClassName,
|
|
@@ -7619,17 +7699,17 @@ var SectionGroupItem = ({
|
|
|
7619
7699
|
children,
|
|
7620
7700
|
divider = true
|
|
7621
7701
|
}) => {
|
|
7622
|
-
return /* @__PURE__ */ (0,
|
|
7623
|
-
divider && /* @__PURE__ */ (0,
|
|
7624
|
-
(title || subtitle) && /* @__PURE__ */ (0,
|
|
7625
|
-
title && /* @__PURE__ */ (0,
|
|
7626
|
-
subtitle && /* @__PURE__ */ (0,
|
|
7702
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("section", { className: cn("flex flex-col gap-5", className), children: [
|
|
7703
|
+
divider && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: cn("h-px w-full bg-[var(--section-group-divider-bg)]") }),
|
|
7704
|
+
(title || subtitle) && /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "flex flex-col gap-1 px-8", children: [
|
|
7705
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("h3", { className: "text-sm font-semibold leading-6 text-[var(--section-group-muted-text)]", children: title }),
|
|
7706
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("p", { className: "text-sm font-medium leading-6 text-[var(--section-group-muted-text)]", children: subtitle })
|
|
7627
7707
|
] }),
|
|
7628
|
-
/* @__PURE__ */ (0,
|
|
7708
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: cn("flex flex-col gap-4 px-8", contentClassName), children })
|
|
7629
7709
|
] });
|
|
7630
7710
|
};
|
|
7631
7711
|
var SectionGroupRoot = ({ className, title, actions, children }) => {
|
|
7632
|
-
return /* @__PURE__ */ (0,
|
|
7712
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(
|
|
7633
7713
|
"div",
|
|
7634
7714
|
{
|
|
7635
7715
|
className: cn(
|
|
@@ -7638,18 +7718,18 @@ var SectionGroupRoot = ({ className, title, actions, children }) => {
|
|
|
7638
7718
|
className
|
|
7639
7719
|
),
|
|
7640
7720
|
children: [
|
|
7641
|
-
(title || actions) && /* @__PURE__ */ (0,
|
|
7642
|
-
title && /* @__PURE__ */ (0,
|
|
7643
|
-
actions && /* @__PURE__ */ (0,
|
|
7721
|
+
(title || actions) && /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "flex items-center gap-6 px-8", children: [
|
|
7722
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("h2", { className: "flex-1 text-lg font-bold leading-6 text-[var(--section-group-title-color)] opacity-90", children: title }),
|
|
7723
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "flex items-center gap-2", children: actions })
|
|
7644
7724
|
] }),
|
|
7645
7725
|
children
|
|
7646
7726
|
]
|
|
7647
7727
|
}
|
|
7648
7728
|
);
|
|
7649
7729
|
};
|
|
7650
|
-
var SectionGroupLabel = ({ id, title, description }) => /* @__PURE__ */ (0,
|
|
7651
|
-
/* @__PURE__ */ (0,
|
|
7652
|
-
description && /* @__PURE__ */ (0,
|
|
7730
|
+
var SectionGroupLabel = ({ id, title, description }) => /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { id, children: [
|
|
7731
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "font-semibold leading-6", children: title }),
|
|
7732
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "text-sm font-medium leading-6 text-[var(--section-group-muted-text)]", children: description })
|
|
7653
7733
|
] });
|
|
7654
7734
|
var SectionGroup = Object.assign(SectionGroupRoot, {
|
|
7655
7735
|
Item: SectionGroupItem,
|
|
@@ -7659,24 +7739,24 @@ var SectionGroup = Object.assign(SectionGroupRoot, {
|
|
|
7659
7739
|
// src/sheet/Sheet.tsx
|
|
7660
7740
|
var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
7661
7741
|
var import_lucide_react29 = require("lucide-react");
|
|
7662
|
-
var
|
|
7742
|
+
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
7663
7743
|
function Sheet({ ...props }) {
|
|
7664
|
-
return /* @__PURE__ */ (0,
|
|
7744
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
|
|
7665
7745
|
}
|
|
7666
7746
|
function SheetTrigger({ ...props }) {
|
|
7667
|
-
return /* @__PURE__ */ (0,
|
|
7747
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(SheetPrimitive.Trigger, { "data-slot": "sheet-trigger", ...props });
|
|
7668
7748
|
}
|
|
7669
7749
|
function SheetClose({ ...props }) {
|
|
7670
|
-
return /* @__PURE__ */ (0,
|
|
7750
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(SheetPrimitive.Close, { "data-slot": "sheet-close", ...props });
|
|
7671
7751
|
}
|
|
7672
7752
|
function SheetPortal({ ...props }) {
|
|
7673
|
-
return /* @__PURE__ */ (0,
|
|
7753
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(SheetPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
|
|
7674
7754
|
}
|
|
7675
7755
|
function SheetOverlay({
|
|
7676
7756
|
className,
|
|
7677
7757
|
...props
|
|
7678
7758
|
}) {
|
|
7679
|
-
return /* @__PURE__ */ (0,
|
|
7759
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
7680
7760
|
SheetPrimitive.Overlay,
|
|
7681
7761
|
{
|
|
7682
7762
|
"data-slot": "sheet-overlay",
|
|
@@ -7694,9 +7774,9 @@ function SheetContent({
|
|
|
7694
7774
|
side = "right",
|
|
7695
7775
|
...props
|
|
7696
7776
|
}) {
|
|
7697
|
-
return /* @__PURE__ */ (0,
|
|
7698
|
-
/* @__PURE__ */ (0,
|
|
7699
|
-
/* @__PURE__ */ (0,
|
|
7777
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(SheetPortal, { children: [
|
|
7778
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(SheetOverlay, {}),
|
|
7779
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(
|
|
7700
7780
|
SheetPrimitive.Content,
|
|
7701
7781
|
{
|
|
7702
7782
|
"data-slot": "sheet-content",
|
|
@@ -7711,9 +7791,9 @@ function SheetContent({
|
|
|
7711
7791
|
...props,
|
|
7712
7792
|
children: [
|
|
7713
7793
|
children,
|
|
7714
|
-
/* @__PURE__ */ (0,
|
|
7715
|
-
/* @__PURE__ */ (0,
|
|
7716
|
-
/* @__PURE__ */ (0,
|
|
7794
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-[var(--chekin-radius-small)] opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:shadow-[var(--chekin-shadow-focus)] disabled:pointer-events-none", children: [
|
|
7795
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_lucide_react29.XIcon, { className: "size-4" }),
|
|
7796
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)("span", { className: "sr-only", children: "Close" })
|
|
7717
7797
|
] })
|
|
7718
7798
|
]
|
|
7719
7799
|
}
|
|
@@ -7721,7 +7801,7 @@ function SheetContent({
|
|
|
7721
7801
|
] });
|
|
7722
7802
|
}
|
|
7723
7803
|
function SheetHeader({ className, ...props }) {
|
|
7724
|
-
return /* @__PURE__ */ (0,
|
|
7804
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
7725
7805
|
"div",
|
|
7726
7806
|
{
|
|
7727
7807
|
"data-slot": "sheet-header",
|
|
@@ -7731,7 +7811,7 @@ function SheetHeader({ className, ...props }) {
|
|
|
7731
7811
|
);
|
|
7732
7812
|
}
|
|
7733
7813
|
function SheetFooter({ className, ...props }) {
|
|
7734
|
-
return /* @__PURE__ */ (0,
|
|
7814
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
7735
7815
|
"div",
|
|
7736
7816
|
{
|
|
7737
7817
|
"data-slot": "sheet-footer",
|
|
@@ -7744,7 +7824,7 @@ function SheetTitle({
|
|
|
7744
7824
|
className,
|
|
7745
7825
|
...props
|
|
7746
7826
|
}) {
|
|
7747
|
-
return /* @__PURE__ */ (0,
|
|
7827
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
7748
7828
|
SheetPrimitive.Title,
|
|
7749
7829
|
{
|
|
7750
7830
|
"data-slot": "sheet-title",
|
|
@@ -7757,7 +7837,7 @@ function SheetDescription({
|
|
|
7757
7837
|
className,
|
|
7758
7838
|
...props
|
|
7759
7839
|
}) {
|
|
7760
|
-
return /* @__PURE__ */ (0,
|
|
7840
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
7761
7841
|
SheetPrimitive.Description,
|
|
7762
7842
|
{
|
|
7763
7843
|
"data-slot": "sheet-description",
|
|
@@ -7768,15 +7848,15 @@ function SheetDescription({
|
|
|
7768
7848
|
}
|
|
7769
7849
|
|
|
7770
7850
|
// src/sidebar/Sidebar.tsx
|
|
7771
|
-
var
|
|
7851
|
+
var React27 = __toESM(require("react"), 1);
|
|
7772
7852
|
var import_react_slot4 = require("@radix-ui/react-slot");
|
|
7773
|
-
var
|
|
7853
|
+
var import_class_variance_authority12 = require("class-variance-authority");
|
|
7774
7854
|
var import_lucide_react30 = require("lucide-react");
|
|
7775
7855
|
|
|
7776
7856
|
// src/skeleton/Skeleton.tsx
|
|
7777
|
-
var
|
|
7857
|
+
var import_jsx_runtime101 = require("react/jsx-runtime");
|
|
7778
7858
|
function Skeleton({ className, ...props }) {
|
|
7779
|
-
return /* @__PURE__ */ (0,
|
|
7859
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
7780
7860
|
"div",
|
|
7781
7861
|
{
|
|
7782
7862
|
"data-slot": "skeleton",
|
|
@@ -7806,7 +7886,7 @@ function useSidebarMenuButton() {
|
|
|
7806
7886
|
}
|
|
7807
7887
|
|
|
7808
7888
|
// src/sidebar/SidebarIcon.tsx
|
|
7809
|
-
var
|
|
7889
|
+
var import_jsx_runtime102 = require("react/jsx-runtime");
|
|
7810
7890
|
var SidebarIcon = ({
|
|
7811
7891
|
children,
|
|
7812
7892
|
isActive: isActiveProp,
|
|
@@ -7823,7 +7903,7 @@ var SidebarIcon = ({
|
|
|
7823
7903
|
}
|
|
7824
7904
|
return highlighted ? "bg-[var(--chekin-color-surface-pressed)]" : "bg-[var(--chekin-color-surface-input-empty)]";
|
|
7825
7905
|
})();
|
|
7826
|
-
return /* @__PURE__ */ (0,
|
|
7906
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
7827
7907
|
"div",
|
|
7828
7908
|
{
|
|
7829
7909
|
className: cn(
|
|
@@ -7856,12 +7936,12 @@ function useSidebarSafe() {
|
|
|
7856
7936
|
}
|
|
7857
7937
|
|
|
7858
7938
|
// src/sidebar/Sidebar.tsx
|
|
7859
|
-
var
|
|
7939
|
+
var import_jsx_runtime103 = require("react/jsx-runtime");
|
|
7860
7940
|
var SIDEBAR_COOKIE_NAME_DEFAULT = "sidebar_state";
|
|
7861
7941
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
7862
7942
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
7863
7943
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
7864
|
-
var SidebarProvider =
|
|
7944
|
+
var SidebarProvider = React27.forwardRef(
|
|
7865
7945
|
({
|
|
7866
7946
|
defaultOpen = true,
|
|
7867
7947
|
open: openProp,
|
|
@@ -7873,10 +7953,10 @@ var SidebarProvider = React26.forwardRef(
|
|
|
7873
7953
|
...props
|
|
7874
7954
|
}, ref) => {
|
|
7875
7955
|
const isMobile2 = useIsMobile({ breakpoint: 641 });
|
|
7876
|
-
const [openMobile, setOpenMobile] =
|
|
7877
|
-
const [_open, _setOpen] =
|
|
7956
|
+
const [openMobile, setOpenMobile] = React27.useState(false);
|
|
7957
|
+
const [_open, _setOpen] = React27.useState(defaultOpen);
|
|
7878
7958
|
const open = openProp ?? _open;
|
|
7879
|
-
const setOpen =
|
|
7959
|
+
const setOpen = React27.useCallback(
|
|
7880
7960
|
(value) => {
|
|
7881
7961
|
const openState = typeof value === "function" ? value(open) : value;
|
|
7882
7962
|
if (setOpenProp) {
|
|
@@ -7888,10 +7968,10 @@ var SidebarProvider = React26.forwardRef(
|
|
|
7888
7968
|
},
|
|
7889
7969
|
[setOpenProp, open, stateName]
|
|
7890
7970
|
);
|
|
7891
|
-
const toggleSidebar =
|
|
7971
|
+
const toggleSidebar = React27.useCallback(() => {
|
|
7892
7972
|
return isMobile2 ? setOpenMobile((value) => !value) : setOpen((value) => !value);
|
|
7893
7973
|
}, [isMobile2, setOpen]);
|
|
7894
|
-
|
|
7974
|
+
React27.useEffect(() => {
|
|
7895
7975
|
const handleKeyDown = (event) => {
|
|
7896
7976
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
7897
7977
|
event.preventDefault();
|
|
@@ -7902,7 +7982,7 @@ var SidebarProvider = React26.forwardRef(
|
|
|
7902
7982
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
7903
7983
|
}, [toggleSidebar]);
|
|
7904
7984
|
const state = open ? "expanded" : "collapsed";
|
|
7905
|
-
const contextValue =
|
|
7985
|
+
const contextValue = React27.useMemo(
|
|
7906
7986
|
() => ({
|
|
7907
7987
|
state,
|
|
7908
7988
|
open,
|
|
@@ -7914,7 +7994,7 @@ var SidebarProvider = React26.forwardRef(
|
|
|
7914
7994
|
}),
|
|
7915
7995
|
[state, open, setOpen, isMobile2, openMobile, setOpenMobile, toggleSidebar]
|
|
7916
7996
|
);
|
|
7917
|
-
return /* @__PURE__ */ (0,
|
|
7997
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
7918
7998
|
"div",
|
|
7919
7999
|
{
|
|
7920
8000
|
style,
|
|
@@ -7930,7 +8010,7 @@ var SidebarProvider = React26.forwardRef(
|
|
|
7930
8010
|
}
|
|
7931
8011
|
);
|
|
7932
8012
|
SidebarProvider.displayName = "SidebarProvider";
|
|
7933
|
-
var Sidebar =
|
|
8013
|
+
var Sidebar = React27.forwardRef(
|
|
7934
8014
|
({
|
|
7935
8015
|
side = "left",
|
|
7936
8016
|
variant = "sidebar",
|
|
@@ -7941,7 +8021,7 @@ var Sidebar = React26.forwardRef(
|
|
|
7941
8021
|
}, ref) => {
|
|
7942
8022
|
const { isMobile: isMobile2, state, openMobile, setOpenMobile } = useSidebar();
|
|
7943
8023
|
if (collapsible === "none") {
|
|
7944
|
-
return /* @__PURE__ */ (0,
|
|
8024
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
7945
8025
|
"div",
|
|
7946
8026
|
{
|
|
7947
8027
|
className: cn(
|
|
@@ -7955,7 +8035,7 @@ var Sidebar = React26.forwardRef(
|
|
|
7955
8035
|
);
|
|
7956
8036
|
}
|
|
7957
8037
|
if (isMobile2) {
|
|
7958
|
-
return /* @__PURE__ */ (0,
|
|
8038
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
|
|
7959
8039
|
SheetContent,
|
|
7960
8040
|
{
|
|
7961
8041
|
"data-sidebar": "sidebar",
|
|
@@ -7967,16 +8047,16 @@ var Sidebar = React26.forwardRef(
|
|
|
7967
8047
|
style: { "--sidebar-width": SIDEBAR_WIDTH_MOBILE },
|
|
7968
8048
|
side,
|
|
7969
8049
|
children: [
|
|
7970
|
-
/* @__PURE__ */ (0,
|
|
7971
|
-
/* @__PURE__ */ (0,
|
|
7972
|
-
/* @__PURE__ */ (0,
|
|
8050
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(SheetHeader, { className: "sr-only", children: [
|
|
8051
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(SheetTitle, { children: "Sidebar" }),
|
|
8052
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(SheetDescription, { children: "Displays the mobile sidebar." })
|
|
7973
8053
|
] }),
|
|
7974
|
-
/* @__PURE__ */ (0,
|
|
8054
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: "flex h-full w-full flex-col", children })
|
|
7975
8055
|
]
|
|
7976
8056
|
}
|
|
7977
8057
|
) });
|
|
7978
8058
|
}
|
|
7979
|
-
return /* @__PURE__ */ (0,
|
|
8059
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
|
|
7980
8060
|
"div",
|
|
7981
8061
|
{
|
|
7982
8062
|
ref,
|
|
@@ -7987,7 +8067,7 @@ var Sidebar = React26.forwardRef(
|
|
|
7987
8067
|
"data-variant": variant,
|
|
7988
8068
|
"data-side": side,
|
|
7989
8069
|
children: [
|
|
7990
|
-
/* @__PURE__ */ (0,
|
|
8070
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
7991
8071
|
"div",
|
|
7992
8072
|
{
|
|
7993
8073
|
className: cn(
|
|
@@ -7998,7 +8078,7 @@ var Sidebar = React26.forwardRef(
|
|
|
7998
8078
|
)
|
|
7999
8079
|
}
|
|
8000
8080
|
),
|
|
8001
|
-
/* @__PURE__ */ (0,
|
|
8081
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
8002
8082
|
"div",
|
|
8003
8083
|
{
|
|
8004
8084
|
className: cn(
|
|
@@ -8008,7 +8088,7 @@ var Sidebar = React26.forwardRef(
|
|
|
8008
8088
|
className
|
|
8009
8089
|
),
|
|
8010
8090
|
...props,
|
|
8011
|
-
children: /* @__PURE__ */ (0,
|
|
8091
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
8012
8092
|
"div",
|
|
8013
8093
|
{
|
|
8014
8094
|
"data-sidebar": "sidebar",
|
|
@@ -8024,9 +8104,9 @@ var Sidebar = React26.forwardRef(
|
|
|
8024
8104
|
}
|
|
8025
8105
|
);
|
|
8026
8106
|
Sidebar.displayName = "Sidebar";
|
|
8027
|
-
var SidebarTrigger =
|
|
8107
|
+
var SidebarTrigger = React27.forwardRef(({ className, onClick, icon, ...props }, ref) => {
|
|
8028
8108
|
const { toggleSidebar, open, isMobile: isMobile2, openMobile } = useSidebar();
|
|
8029
|
-
return /* @__PURE__ */ (0,
|
|
8109
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
|
|
8030
8110
|
Button,
|
|
8031
8111
|
{
|
|
8032
8112
|
ref,
|
|
@@ -8044,17 +8124,17 @@ var SidebarTrigger = React26.forwardRef(({ className, onClick, icon, ...props },
|
|
|
8044
8124
|
},
|
|
8045
8125
|
...props,
|
|
8046
8126
|
children: [
|
|
8047
|
-
icon || (isMobile2 ? openMobile : open) ? icon || /* @__PURE__ */ (0,
|
|
8048
|
-
/* @__PURE__ */ (0,
|
|
8127
|
+
icon || (isMobile2 ? openMobile : open) ? icon || /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_lucide_react30.ArrowLeftFromLineIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_lucide_react30.ArrowRightFromLineIcon, {}),
|
|
8128
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
8049
8129
|
]
|
|
8050
8130
|
}
|
|
8051
8131
|
);
|
|
8052
8132
|
});
|
|
8053
8133
|
SidebarTrigger.displayName = "SidebarTrigger";
|
|
8054
|
-
var SidebarRail =
|
|
8134
|
+
var SidebarRail = React27.forwardRef(
|
|
8055
8135
|
({ className, ...props }, ref) => {
|
|
8056
8136
|
const { toggleSidebar } = useSidebar();
|
|
8057
|
-
return /* @__PURE__ */ (0,
|
|
8137
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
8058
8138
|
"button",
|
|
8059
8139
|
{
|
|
8060
8140
|
ref,
|
|
@@ -8077,8 +8157,8 @@ var SidebarRail = React26.forwardRef(
|
|
|
8077
8157
|
}
|
|
8078
8158
|
);
|
|
8079
8159
|
SidebarRail.displayName = "SidebarRail";
|
|
8080
|
-
var SidebarInset =
|
|
8081
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
8160
|
+
var SidebarInset = React27.forwardRef(
|
|
8161
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
8082
8162
|
"main",
|
|
8083
8163
|
{
|
|
8084
8164
|
ref,
|
|
@@ -8092,7 +8172,7 @@ var SidebarInset = React26.forwardRef(
|
|
|
8092
8172
|
)
|
|
8093
8173
|
);
|
|
8094
8174
|
SidebarInset.displayName = "SidebarInset";
|
|
8095
|
-
var SidebarInput =
|
|
8175
|
+
var SidebarInput = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
8096
8176
|
Input,
|
|
8097
8177
|
{
|
|
8098
8178
|
ref,
|
|
@@ -8102,8 +8182,8 @@ var SidebarInput = React26.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
8102
8182
|
}
|
|
8103
8183
|
));
|
|
8104
8184
|
SidebarInput.displayName = "SidebarInput";
|
|
8105
|
-
var SidebarHeader =
|
|
8106
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
8185
|
+
var SidebarHeader = React27.forwardRef(
|
|
8186
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
8107
8187
|
"div",
|
|
8108
8188
|
{
|
|
8109
8189
|
ref,
|
|
@@ -8114,8 +8194,8 @@ var SidebarHeader = React26.forwardRef(
|
|
|
8114
8194
|
)
|
|
8115
8195
|
);
|
|
8116
8196
|
SidebarHeader.displayName = "SidebarHeader";
|
|
8117
|
-
var SidebarFooter =
|
|
8118
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
8197
|
+
var SidebarFooter = React27.forwardRef(
|
|
8198
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
8119
8199
|
"div",
|
|
8120
8200
|
{
|
|
8121
8201
|
ref,
|
|
@@ -8126,7 +8206,7 @@ var SidebarFooter = React26.forwardRef(
|
|
|
8126
8206
|
)
|
|
8127
8207
|
);
|
|
8128
8208
|
SidebarFooter.displayName = "SidebarFooter";
|
|
8129
|
-
var SidebarSeparator =
|
|
8209
|
+
var SidebarSeparator = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
8130
8210
|
Separator3,
|
|
8131
8211
|
{
|
|
8132
8212
|
ref,
|
|
@@ -8136,8 +8216,8 @@ var SidebarSeparator = React26.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
8136
8216
|
}
|
|
8137
8217
|
));
|
|
8138
8218
|
SidebarSeparator.displayName = "SidebarSeparator";
|
|
8139
|
-
var SidebarContent =
|
|
8140
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
8219
|
+
var SidebarContent = React27.forwardRef(
|
|
8220
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
8141
8221
|
"div",
|
|
8142
8222
|
{
|
|
8143
8223
|
ref,
|
|
@@ -8151,8 +8231,8 @@ var SidebarContent = React26.forwardRef(
|
|
|
8151
8231
|
)
|
|
8152
8232
|
);
|
|
8153
8233
|
SidebarContent.displayName = "SidebarContent";
|
|
8154
|
-
var SidebarGroup =
|
|
8155
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
8234
|
+
var SidebarGroup = React27.forwardRef(
|
|
8235
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
8156
8236
|
"div",
|
|
8157
8237
|
{
|
|
8158
8238
|
ref,
|
|
@@ -8163,9 +8243,9 @@ var SidebarGroup = React26.forwardRef(
|
|
|
8163
8243
|
)
|
|
8164
8244
|
);
|
|
8165
8245
|
SidebarGroup.displayName = "SidebarGroup";
|
|
8166
|
-
var SidebarGroupLabel =
|
|
8246
|
+
var SidebarGroupLabel = React27.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
8167
8247
|
const Comp = asChild ? import_react_slot4.Slot : "div";
|
|
8168
|
-
return /* @__PURE__ */ (0,
|
|
8248
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
8169
8249
|
Comp,
|
|
8170
8250
|
{
|
|
8171
8251
|
ref,
|
|
@@ -8180,9 +8260,9 @@ var SidebarGroupLabel = React26.forwardRef(({ className, asChild = false, ...pro
|
|
|
8180
8260
|
);
|
|
8181
8261
|
});
|
|
8182
8262
|
SidebarGroupLabel.displayName = "SidebarGroupLabel";
|
|
8183
|
-
var SidebarGroupAction =
|
|
8263
|
+
var SidebarGroupAction = React27.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
8184
8264
|
const Comp = asChild ? import_react_slot4.Slot : "button";
|
|
8185
|
-
return /* @__PURE__ */ (0,
|
|
8265
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
8186
8266
|
Comp,
|
|
8187
8267
|
{
|
|
8188
8268
|
ref,
|
|
@@ -8196,8 +8276,8 @@ var SidebarGroupAction = React26.forwardRef(({ className, asChild = false, ...pr
|
|
|
8196
8276
|
);
|
|
8197
8277
|
});
|
|
8198
8278
|
SidebarGroupAction.displayName = "SidebarGroupAction";
|
|
8199
|
-
var SidebarGroupContent =
|
|
8200
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
8279
|
+
var SidebarGroupContent = React27.forwardRef(
|
|
8280
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
8201
8281
|
"div",
|
|
8202
8282
|
{
|
|
8203
8283
|
ref,
|
|
@@ -8208,8 +8288,8 @@ var SidebarGroupContent = React26.forwardRef(
|
|
|
8208
8288
|
)
|
|
8209
8289
|
);
|
|
8210
8290
|
SidebarGroupContent.displayName = "SidebarGroupContent";
|
|
8211
|
-
var SidebarMenu =
|
|
8212
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
8291
|
+
var SidebarMenu = React27.forwardRef(
|
|
8292
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
8213
8293
|
"ul",
|
|
8214
8294
|
{
|
|
8215
8295
|
ref,
|
|
@@ -8220,8 +8300,8 @@ var SidebarMenu = React26.forwardRef(
|
|
|
8220
8300
|
)
|
|
8221
8301
|
);
|
|
8222
8302
|
SidebarMenu.displayName = "SidebarMenu";
|
|
8223
|
-
var SidebarMenuItem =
|
|
8224
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
8303
|
+
var SidebarMenuItem = React27.forwardRef(
|
|
8304
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
8225
8305
|
"li",
|
|
8226
8306
|
{
|
|
8227
8307
|
ref,
|
|
@@ -8232,7 +8312,7 @@ var SidebarMenuItem = React26.forwardRef(
|
|
|
8232
8312
|
)
|
|
8233
8313
|
);
|
|
8234
8314
|
SidebarMenuItem.displayName = "SidebarMenuItem";
|
|
8235
|
-
var sidebarMenuButtonVariants = (0,
|
|
8315
|
+
var sidebarMenuButtonVariants = (0, import_class_variance_authority12.cva)(
|
|
8236
8316
|
"peer/menu-button group/menu-button relative flex min-h-[40px] w-full items-center gap-2 rounded-lg px-2 text-left text-md font-medium capitalize outline-none transition-[width,height,padding,color,background-color] focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 group-data-[collapsible=icon]:!size-10 group-data-[collapsible=icon]:!p-2 [&>*:not(:first-child)]:truncate [&>*:nth-child(2)]:grow [&>svg]:size-4 [&>svg]:shrink-0 data-[active=false]:data-[highlighted=false]:bg-transparent data-[active=false]:data-[highlighted=false]:text-[var(--chekin-color-gray-1)] data-[active=false]:data-[highlighted=false]:hover:bg-[var(--chekin-color-surface-input-empty)] data-[active=false]:data-[highlighted=true]:bg-transparent data-[active=false]:data-[highlighted=true]:hover:bg-[var(--chekin-color-surface-input-empty)] data-[active=true]:data-[highlighted=false]:bg-[var(--chekin-color-surface-pressed)] data-[active=true]:data-[highlighted=false]:font-semibold data-[active=true]:data-[highlighted=false]:text-[var(--chekin-color-gray-1)] data-[active=true]:data-[highlighted=true]:bg-[var(--chekin-color-surface-pressed)] data-[active=true]:data-[highlighted=true]:font-semibold data-[active=true]:data-[highlighted=true]:text-[var(--chekin-color-brand-blue)]",
|
|
8237
8317
|
{
|
|
8238
8318
|
variants: {
|
|
@@ -8252,7 +8332,7 @@ var sidebarMenuButtonVariants = (0, import_class_variance_authority11.cva)(
|
|
|
8252
8332
|
}
|
|
8253
8333
|
}
|
|
8254
8334
|
);
|
|
8255
|
-
var SidebarMenuButton =
|
|
8335
|
+
var SidebarMenuButton = React27.forwardRef(
|
|
8256
8336
|
({
|
|
8257
8337
|
asChild = false,
|
|
8258
8338
|
isActive = false,
|
|
@@ -8265,7 +8345,7 @@ var SidebarMenuButton = React26.forwardRef(
|
|
|
8265
8345
|
}, ref) => {
|
|
8266
8346
|
const Comp = asChild ? import_react_slot4.Slot : "button";
|
|
8267
8347
|
const { isMobile: isMobile2, state } = useSidebar();
|
|
8268
|
-
const button = /* @__PURE__ */ (0,
|
|
8348
|
+
const button = /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
8269
8349
|
Comp,
|
|
8270
8350
|
{
|
|
8271
8351
|
ref,
|
|
@@ -8278,12 +8358,12 @@ var SidebarMenuButton = React26.forwardRef(
|
|
|
8278
8358
|
}
|
|
8279
8359
|
);
|
|
8280
8360
|
if (!tooltip) {
|
|
8281
|
-
return /* @__PURE__ */ (0,
|
|
8361
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(SidebarMenuButtonContext.Provider, { value: { isActive, highlighted }, children: button });
|
|
8282
8362
|
}
|
|
8283
8363
|
const tooltipProps = typeof tooltip === "string" ? { children: tooltip } : tooltip;
|
|
8284
|
-
return /* @__PURE__ */ (0,
|
|
8285
|
-
/* @__PURE__ */ (0,
|
|
8286
|
-
/* @__PURE__ */ (0,
|
|
8364
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(SidebarMenuButtonContext.Provider, { value: { isActive, highlighted }, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(Tooltip, { children: [
|
|
8365
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(TooltipTrigger, { asChild: true, children: button }),
|
|
8366
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
8287
8367
|
TooltipContent,
|
|
8288
8368
|
{
|
|
8289
8369
|
side: "right",
|
|
@@ -8298,9 +8378,9 @@ var SidebarMenuButton = React26.forwardRef(
|
|
|
8298
8378
|
}
|
|
8299
8379
|
);
|
|
8300
8380
|
SidebarMenuButton.displayName = "SidebarMenuButton";
|
|
8301
|
-
var SidebarMenuAction =
|
|
8381
|
+
var SidebarMenuAction = React27.forwardRef(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
|
|
8302
8382
|
const Comp = asChild ? import_react_slot4.Slot : "button";
|
|
8303
|
-
return /* @__PURE__ */ (0,
|
|
8383
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
8304
8384
|
Comp,
|
|
8305
8385
|
{
|
|
8306
8386
|
ref,
|
|
@@ -8315,11 +8395,11 @@ var SidebarMenuAction = React26.forwardRef(({ className, asChild = false, showOn
|
|
|
8315
8395
|
);
|
|
8316
8396
|
});
|
|
8317
8397
|
SidebarMenuAction.displayName = "SidebarMenuAction";
|
|
8318
|
-
var SidebarMenuBadge =
|
|
8398
|
+
var SidebarMenuBadge = React27.forwardRef(
|
|
8319
8399
|
({ className, ...props }, ref) => {
|
|
8320
8400
|
const { open, isMobile: isMobile2, openMobile } = useSidebar();
|
|
8321
8401
|
const isOpen = isMobile2 ? openMobile : open;
|
|
8322
|
-
return /* @__PURE__ */ (0,
|
|
8402
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
8323
8403
|
"div",
|
|
8324
8404
|
{
|
|
8325
8405
|
ref,
|
|
@@ -8335,9 +8415,9 @@ var SidebarMenuBadge = React26.forwardRef(
|
|
|
8335
8415
|
}
|
|
8336
8416
|
);
|
|
8337
8417
|
SidebarMenuBadge.displayName = "SidebarMenuBadge";
|
|
8338
|
-
var SidebarMenuSkeleton =
|
|
8339
|
-
const width =
|
|
8340
|
-
return /* @__PURE__ */ (0,
|
|
8418
|
+
var SidebarMenuSkeleton = React27.forwardRef(({ className, showIcon = false, ...props }, ref) => {
|
|
8419
|
+
const width = React27.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
|
|
8420
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
|
|
8341
8421
|
"div",
|
|
8342
8422
|
{
|
|
8343
8423
|
ref,
|
|
@@ -8345,8 +8425,8 @@ var SidebarMenuSkeleton = React26.forwardRef(({ className, showIcon = false, ...
|
|
|
8345
8425
|
className: cn("flex h-8 items-center gap-2 rounded-md px-2", className),
|
|
8346
8426
|
...props,
|
|
8347
8427
|
children: [
|
|
8348
|
-
showIcon && /* @__PURE__ */ (0,
|
|
8349
|
-
/* @__PURE__ */ (0,
|
|
8428
|
+
showIcon && /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Skeleton, { className: "size-4 rounded-md", "data-sidebar": "menu-skeleton-icon" }),
|
|
8429
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
8350
8430
|
Skeleton,
|
|
8351
8431
|
{
|
|
8352
8432
|
className: "h-4 max-w-[--skeleton-width] flex-1",
|
|
@@ -8359,8 +8439,8 @@ var SidebarMenuSkeleton = React26.forwardRef(({ className, showIcon = false, ...
|
|
|
8359
8439
|
);
|
|
8360
8440
|
});
|
|
8361
8441
|
SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";
|
|
8362
|
-
var SidebarMenuSub =
|
|
8363
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
8442
|
+
var SidebarMenuSub = React27.forwardRef(
|
|
8443
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
8364
8444
|
"ul",
|
|
8365
8445
|
{
|
|
8366
8446
|
ref,
|
|
@@ -8374,11 +8454,11 @@ var SidebarMenuSub = React26.forwardRef(
|
|
|
8374
8454
|
)
|
|
8375
8455
|
);
|
|
8376
8456
|
SidebarMenuSub.displayName = "SidebarMenuSub";
|
|
8377
|
-
var SidebarMenuSubItem =
|
|
8378
|
-
({ ...props }, ref) => /* @__PURE__ */ (0,
|
|
8457
|
+
var SidebarMenuSubItem = React27.forwardRef(
|
|
8458
|
+
({ ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("li", { ref, ...props })
|
|
8379
8459
|
);
|
|
8380
8460
|
SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
|
|
8381
|
-
var sidebarMenuSubButtonVariants = (0,
|
|
8461
|
+
var sidebarMenuSubButtonVariants = (0, import_class_variance_authority12.cva)(
|
|
8382
8462
|
"flex min-w-0 items-center gap-2 overflow-hidden rounded-md px-2 text-left text-[var(--chekin-color-gray-1)] outline-none transition-colors duration-200 hover:bg-[var(--chekin-color-surface-input-empty)] hover:text-[var(--chekin-color-brand-navy)] focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-[var(--chekin-color-surface-pressed)] data-[active=true]:font-medium data-[active=true]:text-[var(--chekin-color-brand-navy)] group-data-[collapsible=icon]:hidden [&>span:nth-child(2)]:truncate [&>svg]:shrink-0",
|
|
8383
8463
|
{
|
|
8384
8464
|
variants: {
|
|
@@ -8398,7 +8478,7 @@ var sidebarMenuSubButtonVariants = (0, import_class_variance_authority11.cva)(
|
|
|
8398
8478
|
}
|
|
8399
8479
|
}
|
|
8400
8480
|
);
|
|
8401
|
-
var SidebarMenuSubButton =
|
|
8481
|
+
var SidebarMenuSubButton = React27.forwardRef(
|
|
8402
8482
|
({
|
|
8403
8483
|
asChild = false,
|
|
8404
8484
|
isActive,
|
|
@@ -8408,7 +8488,7 @@ var SidebarMenuSubButton = React26.forwardRef(
|
|
|
8408
8488
|
...props
|
|
8409
8489
|
}, ref) => {
|
|
8410
8490
|
const Comp = asChild ? import_react_slot4.Slot : "a";
|
|
8411
|
-
return /* @__PURE__ */ (0,
|
|
8491
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
8412
8492
|
Comp,
|
|
8413
8493
|
{
|
|
8414
8494
|
ref,
|
|
@@ -8433,19 +8513,19 @@ var import_react_i18next16 = require("react-i18next");
|
|
|
8433
8513
|
var import_react_signature_pad_wrapper = __toESM(require("react-signature-pad-wrapper"), 1);
|
|
8434
8514
|
|
|
8435
8515
|
// src/assets/icons/sign-finger.svg
|
|
8436
|
-
var
|
|
8437
|
-
var
|
|
8438
|
-
var SvgSignFinger = (props) => /* @__PURE__ */ (0,
|
|
8439
|
-
/* @__PURE__ */ (0,
|
|
8440
|
-
/* @__PURE__ */ (0,
|
|
8441
|
-
/* @__PURE__ */ (0,
|
|
8442
|
-
/* @__PURE__ */ (0,
|
|
8516
|
+
var React28 = __toESM(require("react"));
|
|
8517
|
+
var import_jsx_runtime104 = require("react/jsx-runtime");
|
|
8518
|
+
var SvgSignFinger = (props) => /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: 37.198, height: 40.76, viewBox: "0 0 37.198 40.76", ...props, children: [
|
|
8519
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("style", { children: ".a{fill:#385cf8;}" }) }),
|
|
8520
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)("g", { transform: "translate(-84.883 29)", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("g", { transform: "translate(0.883 4)", children: [
|
|
8521
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)("path", { className: "a", d: "M277.71,362.455a1.332,1.332,0,0,1-.878-.329,1.3,1.3,0,0,1-.38-1.387,3.537,3.537,0,0,0,.169-.893,5.514,5.514,0,0,1-3.179,2.525,3.567,3.567,0,0,1-3.507-1.314c-2.184-2.386-.695-5.062.393-7.017,1.283-2.3,1.246-2.67.553-3.119a2.672,2.672,0,0,0-2.116.117c-4.225,1.539-9.992,7.866-10.476,9.508a1.326,1.326,0,0,1-1.641.89,1.306,1.306,0,0,1-.9-1.623c.788-2.673,7.317-9.487,12.1-11.23a4.9,4.9,0,0,1,4.483.151,3.3,3.3,0,0,1,1.619,3.488,10.132,10.132,0,0,1-1.306,3.081c-1.5,2.7-1.374,3.317-.749,4,.554.605.873.536.977.514.8-.173,2.068-1.774,2.823-4.156a1.329,1.329,0,0,1,2.4-.282c.106.174,1.819,6.2.176,6.955A1.334,1.334,0,0,1,277.71,362.455Z", transform: "translate(-171.695 -381.124)" }),
|
|
8522
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)("g", { transform: "translate(95.422 -22.82)", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("g", { transform: "translate(0)", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("path", { className: "a", d: "M67.007,14.641l-5.781-3.81a3.935,3.935,0,0,0-4.257,0l-.127.084V2.548a2.578,2.578,0,0,0-5.155,0V19.6a.626.626,0,0,1-.306.542.642.642,0,0,1-.627.028l-4.138-2.046a2.768,2.768,0,0,0-1.221-.285,2.718,2.718,0,0,0-2.73,2.7v.486a.634.634,0,0,0,.205.466l7.438,6.862a8.4,8.4,0,0,0,5.715,2.228H62a6.415,6.415,0,0,0,6.444-6.371V17.291A3.169,3.169,0,0,0,67.007,14.641Z", transform: "translate(-42.666)" }) }) })
|
|
8443
8523
|
] }) })
|
|
8444
8524
|
] });
|
|
8445
8525
|
var sign_finger_default = SvgSignFinger;
|
|
8446
8526
|
|
|
8447
8527
|
// src/signature-canvas/SignatureCanvas.tsx
|
|
8448
|
-
var
|
|
8528
|
+
var import_jsx_runtime105 = require("react/jsx-runtime");
|
|
8449
8529
|
var CANVAS_PROPS = {
|
|
8450
8530
|
width: "250px",
|
|
8451
8531
|
height: "174px"
|
|
@@ -8457,9 +8537,9 @@ var SIGNATURE_PROPS = {
|
|
|
8457
8537
|
dotSize: 1
|
|
8458
8538
|
};
|
|
8459
8539
|
function breakIntoLines(text = "") {
|
|
8460
|
-
return text.split("\n").map((line, index) => /* @__PURE__ */ (0,
|
|
8540
|
+
return text.split("\n").map((line, index) => /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(import_react69.Fragment, { children: [
|
|
8461
8541
|
line,
|
|
8462
|
-
/* @__PURE__ */ (0,
|
|
8542
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("br", {})
|
|
8463
8543
|
] }, index));
|
|
8464
8544
|
}
|
|
8465
8545
|
var SignatureCanvas = (0, import_react69.forwardRef)(
|
|
@@ -8475,8 +8555,8 @@ var SignatureCanvas = (0, import_react69.forwardRef)(
|
|
|
8475
8555
|
signPad?.removeEventListener("endStroke", onEnd);
|
|
8476
8556
|
};
|
|
8477
8557
|
}, [onEnd]);
|
|
8478
|
-
return /* @__PURE__ */ (0,
|
|
8479
|
-
!enabled && /* @__PURE__ */ (0,
|
|
8558
|
+
return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: cn("relative inline-flex flex-col", className), children: [
|
|
8559
|
+
!enabled && /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(
|
|
8480
8560
|
"button",
|
|
8481
8561
|
{
|
|
8482
8562
|
type: "button",
|
|
@@ -8488,8 +8568,8 @@ var SignatureCanvas = (0, import_react69.forwardRef)(
|
|
|
8488
8568
|
onClick: onEnable,
|
|
8489
8569
|
"data-testid": "signature-placeholder",
|
|
8490
8570
|
children: [
|
|
8491
|
-
/* @__PURE__ */ (0,
|
|
8492
|
-
/* @__PURE__ */ (0,
|
|
8571
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(SvgIcon, { as: sign_finger_default, size: 41, className: "w-[37px] opacity-[0.55]" }),
|
|
8572
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
8493
8573
|
"span",
|
|
8494
8574
|
{
|
|
8495
8575
|
className: cn(
|
|
@@ -8502,7 +8582,7 @@ var SignatureCanvas = (0, import_react69.forwardRef)(
|
|
|
8502
8582
|
]
|
|
8503
8583
|
}
|
|
8504
8584
|
),
|
|
8505
|
-
/* @__PURE__ */ (0,
|
|
8585
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
8506
8586
|
"div",
|
|
8507
8587
|
{
|
|
8508
8588
|
className: cn(
|
|
@@ -8510,7 +8590,7 @@ var SignatureCanvas = (0, import_react69.forwardRef)(
|
|
|
8510
8590
|
"border-[var(--signature-canvas-border)] shadow-[var(--signature-canvas-shadow)]",
|
|
8511
8591
|
"box-border max-[320px]:overflow-hidden"
|
|
8512
8592
|
),
|
|
8513
|
-
children: /* @__PURE__ */ (0,
|
|
8593
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
8514
8594
|
import_react_signature_pad_wrapper.default,
|
|
8515
8595
|
{
|
|
8516
8596
|
ref: combinedRef,
|
|
@@ -8521,13 +8601,13 @@ var SignatureCanvas = (0, import_react69.forwardRef)(
|
|
|
8521
8601
|
)
|
|
8522
8602
|
}
|
|
8523
8603
|
),
|
|
8524
|
-
/* @__PURE__ */ (0,
|
|
8604
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
8525
8605
|
"div",
|
|
8526
8606
|
{
|
|
8527
8607
|
className: cn("text-right", {
|
|
8528
8608
|
invisible: !enabled || !hasSignature
|
|
8529
8609
|
}),
|
|
8530
|
-
children: /* @__PURE__ */ (0,
|
|
8610
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
8531
8611
|
Button,
|
|
8532
8612
|
{
|
|
8533
8613
|
variant: "link",
|
|
@@ -8547,17 +8627,17 @@ var SignatureCanvas = (0, import_react69.forwardRef)(
|
|
|
8547
8627
|
SignatureCanvas.displayName = "SignatureCanvas";
|
|
8548
8628
|
|
|
8549
8629
|
// src/slider/Slider.tsx
|
|
8550
|
-
var
|
|
8630
|
+
var React35 = __toESM(require("react"), 1);
|
|
8551
8631
|
|
|
8552
8632
|
// src/slider/SliderControls.tsx
|
|
8553
|
-
var
|
|
8633
|
+
var React30 = __toESM(require("react"), 1);
|
|
8554
8634
|
var import_lucide_react31 = require("lucide-react");
|
|
8555
8635
|
|
|
8556
8636
|
// src/slider/SliderContext.tsx
|
|
8557
|
-
var
|
|
8558
|
-
var SliderContext =
|
|
8637
|
+
var React29 = __toESM(require("react"), 1);
|
|
8638
|
+
var SliderContext = React29.createContext(null);
|
|
8559
8639
|
function useSliderContext(componentName) {
|
|
8560
|
-
const context =
|
|
8640
|
+
const context = React29.useContext(SliderContext);
|
|
8561
8641
|
if (!context) {
|
|
8562
8642
|
throw new Error(`${componentName} must be used within SliderRoot`);
|
|
8563
8643
|
}
|
|
@@ -8565,14 +8645,14 @@ function useSliderContext(componentName) {
|
|
|
8565
8645
|
}
|
|
8566
8646
|
|
|
8567
8647
|
// src/slider/SliderControls.tsx
|
|
8568
|
-
var
|
|
8569
|
-
var SliderPrevious =
|
|
8648
|
+
var import_jsx_runtime106 = require("react/jsx-runtime");
|
|
8649
|
+
var SliderPrevious = React30.forwardRef(
|
|
8570
8650
|
({ className, children, onClick, ...props }, ref) => {
|
|
8571
8651
|
const { canGoPrevious, goToPrevious } = useSliderContext("SliderPrevious");
|
|
8572
8652
|
if (!canGoPrevious) {
|
|
8573
8653
|
return null;
|
|
8574
8654
|
}
|
|
8575
|
-
return /* @__PURE__ */ (0,
|
|
8655
|
+
return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
8576
8656
|
"button",
|
|
8577
8657
|
{
|
|
8578
8658
|
ref,
|
|
@@ -8590,19 +8670,19 @@ var SliderPrevious = React29.forwardRef(
|
|
|
8590
8670
|
goToPrevious();
|
|
8591
8671
|
},
|
|
8592
8672
|
...props,
|
|
8593
|
-
children: children ?? /* @__PURE__ */ (0,
|
|
8673
|
+
children: children ?? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_lucide_react31.ChevronLeft, { className: "size-4" })
|
|
8594
8674
|
}
|
|
8595
8675
|
);
|
|
8596
8676
|
}
|
|
8597
8677
|
);
|
|
8598
8678
|
SliderPrevious.displayName = "SliderPrevious";
|
|
8599
|
-
var SliderNext =
|
|
8679
|
+
var SliderNext = React30.forwardRef(
|
|
8600
8680
|
({ className, children, onClick, ...props }, ref) => {
|
|
8601
8681
|
const { canGoNext, goToNext } = useSliderContext("SliderNext");
|
|
8602
8682
|
if (!canGoNext) {
|
|
8603
8683
|
return null;
|
|
8604
8684
|
}
|
|
8605
|
-
return /* @__PURE__ */ (0,
|
|
8685
|
+
return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
8606
8686
|
"button",
|
|
8607
8687
|
{
|
|
8608
8688
|
ref,
|
|
@@ -8620,7 +8700,7 @@ var SliderNext = React29.forwardRef(
|
|
|
8620
8700
|
goToNext();
|
|
8621
8701
|
},
|
|
8622
8702
|
...props,
|
|
8623
|
-
children: children ?? /* @__PURE__ */ (0,
|
|
8703
|
+
children: children ?? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_lucide_react31.ChevronRight, { className: "size-4" })
|
|
8624
8704
|
}
|
|
8625
8705
|
);
|
|
8626
8706
|
}
|
|
@@ -8628,9 +8708,9 @@ var SliderNext = React29.forwardRef(
|
|
|
8628
8708
|
SliderNext.displayName = "SliderNext";
|
|
8629
8709
|
|
|
8630
8710
|
// src/slider/SliderRoot.tsx
|
|
8631
|
-
var
|
|
8632
|
-
var
|
|
8633
|
-
var SliderRoot =
|
|
8711
|
+
var React31 = __toESM(require("react"), 1);
|
|
8712
|
+
var import_jsx_runtime107 = require("react/jsx-runtime");
|
|
8713
|
+
var SliderRoot = React31.forwardRef(
|
|
8634
8714
|
({
|
|
8635
8715
|
className,
|
|
8636
8716
|
index: controlledIndex,
|
|
@@ -8641,8 +8721,8 @@ var SliderRoot = React30.forwardRef(
|
|
|
8641
8721
|
children,
|
|
8642
8722
|
...props
|
|
8643
8723
|
}, ref) => {
|
|
8644
|
-
const [uncontrolledIndex, setUncontrolledIndex] =
|
|
8645
|
-
const [registeredSlideCount, setRegisteredSlideCount] =
|
|
8724
|
+
const [uncontrolledIndex, setUncontrolledIndex] = React31.useState(defaultIndex);
|
|
8725
|
+
const [registeredSlideCount, setRegisteredSlideCount] = React31.useState(0);
|
|
8646
8726
|
const slideCount = controlledSlideCount ?? registeredSlideCount;
|
|
8647
8727
|
const isControlled = controlledIndex !== void 0;
|
|
8648
8728
|
const index = isControlled ? controlledIndex : uncontrolledIndex;
|
|
@@ -8650,7 +8730,7 @@ var SliderRoot = React30.forwardRef(
|
|
|
8650
8730
|
const normalizedIndex = Math.min(Math.max(index, 0), maxIndex);
|
|
8651
8731
|
const canGoPrevious = loop ? slideCount > 1 : normalizedIndex > 0;
|
|
8652
8732
|
const canGoNext = loop ? slideCount > 1 : normalizedIndex < maxIndex;
|
|
8653
|
-
const setIndex =
|
|
8733
|
+
const setIndex = React31.useCallback(
|
|
8654
8734
|
(nextIndex) => {
|
|
8655
8735
|
const clampedIndex = Math.min(Math.max(nextIndex, 0), maxIndex);
|
|
8656
8736
|
if (!isControlled) {
|
|
@@ -8660,23 +8740,23 @@ var SliderRoot = React30.forwardRef(
|
|
|
8660
8740
|
},
|
|
8661
8741
|
[isControlled, maxIndex, onIndexChange]
|
|
8662
8742
|
);
|
|
8663
|
-
const goToPrevious =
|
|
8743
|
+
const goToPrevious = React31.useCallback(() => {
|
|
8664
8744
|
if (!canGoPrevious) {
|
|
8665
8745
|
return;
|
|
8666
8746
|
}
|
|
8667
8747
|
setIndex(normalizedIndex === 0 ? maxIndex : normalizedIndex - 1);
|
|
8668
8748
|
}, [canGoPrevious, maxIndex, normalizedIndex, setIndex]);
|
|
8669
|
-
const goToNext =
|
|
8749
|
+
const goToNext = React31.useCallback(() => {
|
|
8670
8750
|
if (!canGoNext) {
|
|
8671
8751
|
return;
|
|
8672
8752
|
}
|
|
8673
8753
|
setIndex(normalizedIndex === maxIndex ? 0 : normalizedIndex + 1);
|
|
8674
8754
|
}, [canGoNext, maxIndex, normalizedIndex, setIndex]);
|
|
8675
|
-
const registerSlide =
|
|
8755
|
+
const registerSlide = React31.useCallback(() => {
|
|
8676
8756
|
setRegisteredSlideCount((count) => count + 1);
|
|
8677
8757
|
return () => setRegisteredSlideCount((count) => Math.max(0, count - 1));
|
|
8678
8758
|
}, []);
|
|
8679
|
-
const contextValue =
|
|
8759
|
+
const contextValue = React31.useMemo(
|
|
8680
8760
|
() => ({
|
|
8681
8761
|
index: normalizedIndex,
|
|
8682
8762
|
slideCount,
|
|
@@ -8700,7 +8780,7 @@ var SliderRoot = React30.forwardRef(
|
|
|
8700
8780
|
registerSlide
|
|
8701
8781
|
]
|
|
8702
8782
|
);
|
|
8703
|
-
return /* @__PURE__ */ (0,
|
|
8783
|
+
return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(SliderContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
8704
8784
|
"div",
|
|
8705
8785
|
{
|
|
8706
8786
|
ref,
|
|
@@ -8715,12 +8795,12 @@ var SliderRoot = React30.forwardRef(
|
|
|
8715
8795
|
SliderRoot.displayName = "SliderRoot";
|
|
8716
8796
|
|
|
8717
8797
|
// src/slider/SliderSlide.tsx
|
|
8718
|
-
var
|
|
8719
|
-
var
|
|
8720
|
-
var SliderSlide =
|
|
8798
|
+
var React32 = __toESM(require("react"), 1);
|
|
8799
|
+
var import_jsx_runtime108 = require("react/jsx-runtime");
|
|
8800
|
+
var SliderSlide = React32.forwardRef(({ className, ...props }, ref) => {
|
|
8721
8801
|
const { registerSlide } = useSliderContext("SliderSlide");
|
|
8722
|
-
|
|
8723
|
-
return /* @__PURE__ */ (0,
|
|
8802
|
+
React32.useEffect(() => registerSlide(), [registerSlide]);
|
|
8803
|
+
return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
|
|
8724
8804
|
"div",
|
|
8725
8805
|
{
|
|
8726
8806
|
ref,
|
|
@@ -8733,11 +8813,11 @@ var SliderSlide = React31.forwardRef(({ className, ...props }, ref) => {
|
|
|
8733
8813
|
SliderSlide.displayName = "SliderSlide";
|
|
8734
8814
|
|
|
8735
8815
|
// src/slider/SliderTrack.tsx
|
|
8736
|
-
var
|
|
8737
|
-
var
|
|
8738
|
-
var SliderTrack =
|
|
8816
|
+
var React33 = __toESM(require("react"), 1);
|
|
8817
|
+
var import_jsx_runtime109 = require("react/jsx-runtime");
|
|
8818
|
+
var SliderTrack = React33.forwardRef(({ className, style, ...props }, ref) => {
|
|
8739
8819
|
const { index } = useSliderContext("SliderTrack");
|
|
8740
|
-
return /* @__PURE__ */ (0,
|
|
8820
|
+
return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
|
|
8741
8821
|
"div",
|
|
8742
8822
|
{
|
|
8743
8823
|
ref,
|
|
@@ -8754,9 +8834,9 @@ var SliderTrack = React32.forwardRef(({ className, style, ...props }, ref) => {
|
|
|
8754
8834
|
SliderTrack.displayName = "SliderTrack";
|
|
8755
8835
|
|
|
8756
8836
|
// src/slider/SliderViewport.tsx
|
|
8757
|
-
var
|
|
8758
|
-
var
|
|
8759
|
-
var SliderViewport =
|
|
8837
|
+
var React34 = __toESM(require("react"), 1);
|
|
8838
|
+
var import_jsx_runtime110 = require("react/jsx-runtime");
|
|
8839
|
+
var SliderViewport = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
8760
8840
|
"div",
|
|
8761
8841
|
{
|
|
8762
8842
|
ref,
|
|
@@ -8768,12 +8848,12 @@ var SliderViewport = React33.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
8768
8848
|
SliderViewport.displayName = "SliderViewport";
|
|
8769
8849
|
|
|
8770
8850
|
// src/slider/Slider.tsx
|
|
8771
|
-
var
|
|
8851
|
+
var import_jsx_runtime111 = require("react/jsx-runtime");
|
|
8772
8852
|
function Slider({ children, slideCount, ...props }) {
|
|
8773
|
-
return /* @__PURE__ */ (0,
|
|
8774
|
-
/* @__PURE__ */ (0,
|
|
8775
|
-
/* @__PURE__ */ (0,
|
|
8776
|
-
/* @__PURE__ */ (0,
|
|
8853
|
+
return /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(SliderRoot, { slideCount: slideCount ?? React35.Children.count(children), ...props, children: [
|
|
8854
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(SliderViewport, { children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(SliderTrack, { children: React35.Children.map(children, (slide) => /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(SliderSlide, { children: slide })) }) }),
|
|
8855
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(SliderPrevious, {}),
|
|
8856
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(SliderNext, {})
|
|
8777
8857
|
] });
|
|
8778
8858
|
}
|
|
8779
8859
|
|
|
@@ -8781,85 +8861,6 @@ function Slider({ children, slideCount, ...props }) {
|
|
|
8781
8861
|
var import_react70 = require("react");
|
|
8782
8862
|
var import_lucide_react32 = require("lucide-react");
|
|
8783
8863
|
var import_react_i18next17 = require("react-i18next");
|
|
8784
|
-
|
|
8785
|
-
// src/switch/Switch.tsx
|
|
8786
|
-
var React35 = __toESM(require("react"), 1);
|
|
8787
|
-
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"), 1);
|
|
8788
|
-
var import_class_variance_authority12 = require("class-variance-authority");
|
|
8789
|
-
var import_jsx_runtime111 = require("react/jsx-runtime");
|
|
8790
|
-
var switchVariants = (0, import_class_variance_authority12.cva)(
|
|
8791
|
-
[
|
|
8792
|
-
"peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors",
|
|
8793
|
-
"focus-visible:outline-none focus-visible:shadow-[var(--chekin-shadow-focus)]",
|
|
8794
|
-
"disabled:cursor-not-allowed disabled:opacity-50 aria-busy:cursor-wait aria-busy:opacity-50",
|
|
8795
|
-
"data-[state=checked]:bg-[var(--chekin-color-brand-blue)] data-[state=unchecked]:bg-[var(--chekin-color-gray-2)]"
|
|
8796
|
-
],
|
|
8797
|
-
{
|
|
8798
|
-
variants: {
|
|
8799
|
-
size: {
|
|
8800
|
-
default: "h-5 w-10",
|
|
8801
|
-
lg: "h-5 w-10",
|
|
8802
|
-
sm: "h-4 w-8"
|
|
8803
|
-
},
|
|
8804
|
-
readOnly: {
|
|
8805
|
-
true: "cursor-default opacity-100"
|
|
8806
|
-
}
|
|
8807
|
-
},
|
|
8808
|
-
defaultVariants: {
|
|
8809
|
-
size: "default"
|
|
8810
|
-
}
|
|
8811
|
-
}
|
|
8812
|
-
);
|
|
8813
|
-
var switchThumbVariants = (0, import_class_variance_authority12.cva)(
|
|
8814
|
-
"pointer-events-none block rounded-full bg-white shadow-lg ring-0 transition-transform data-[state=unchecked]:translate-x-0",
|
|
8815
|
-
{
|
|
8816
|
-
variants: {
|
|
8817
|
-
size: {
|
|
8818
|
-
default: "h-4 w-4 data-[state=checked]:translate-x-5",
|
|
8819
|
-
lg: "h-4 w-4 data-[state=checked]:translate-x-5",
|
|
8820
|
-
sm: "h-3 w-3 data-[state=checked]:translate-x-4"
|
|
8821
|
-
}
|
|
8822
|
-
},
|
|
8823
|
-
defaultVariants: {
|
|
8824
|
-
size: "default"
|
|
8825
|
-
}
|
|
8826
|
-
}
|
|
8827
|
-
);
|
|
8828
|
-
var Switch = React35.forwardRef(
|
|
8829
|
-
({ className, size, readOnly, loading, onChange, value, id, label, error, ...props }, ref) => {
|
|
8830
|
-
const generatedId = React35.useId();
|
|
8831
|
-
const fieldId = id || generatedId;
|
|
8832
|
-
const switchElement = /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
8833
|
-
SwitchPrimitives.Root,
|
|
8834
|
-
{
|
|
8835
|
-
ref,
|
|
8836
|
-
className: cn(switchVariants({ size, readOnly }), className),
|
|
8837
|
-
disabled: props.disabled && !readOnly,
|
|
8838
|
-
...props,
|
|
8839
|
-
id: fieldId,
|
|
8840
|
-
onCheckedChange: readOnly ? void 0 : onChange,
|
|
8841
|
-
checked: value,
|
|
8842
|
-
value: String(value),
|
|
8843
|
-
"aria-busy": loading,
|
|
8844
|
-
"aria-readonly": readOnly,
|
|
8845
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(SwitchPrimitives.Thumb, { className: cn(switchThumbVariants({ size })) })
|
|
8846
|
-
}
|
|
8847
|
-
);
|
|
8848
|
-
if (!label && !error) {
|
|
8849
|
-
return switchElement;
|
|
8850
|
-
}
|
|
8851
|
-
return /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("div", { children: [
|
|
8852
|
-
/* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
8853
|
-
switchElement,
|
|
8854
|
-
label && /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Label, { htmlFor: fieldId, className: "cursor-pointer font-medium", children: label })
|
|
8855
|
-
] }),
|
|
8856
|
-
error && /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(ErrorMessage, { disabled: props.disabled, children: error })
|
|
8857
|
-
] });
|
|
8858
|
-
}
|
|
8859
|
-
);
|
|
8860
|
-
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
8861
|
-
|
|
8862
|
-
// src/small-grid-single-item/SmallGridSingleItem.tsx
|
|
8863
8864
|
var import_jsx_runtime112 = require("react/jsx-runtime");
|
|
8864
8865
|
var SmallGridSingleItem = (0, import_react70.memo)(
|
|
8865
8866
|
({
|