akeyless-client-commons 1.1.83 → 1.1.84
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.
|
@@ -630,6 +630,7 @@ declare const ElementsContainer: React$1.MemoExoticComponent<(props: ElementsCon
|
|
|
630
630
|
|
|
631
631
|
declare const ConfirmForm: ({ onV, onX, headline, direction, containerClassName, buttonsContainerClassName, headlineClassName, cancelButtonClassName, confirmButtonClassName, cancelButtonProps, confirmButtonProps, cancelElement, confirmElement, }: ConfirmFormProps) => react_jsx_runtime.JSX.Element;
|
|
632
632
|
declare const DatePicker: ({ submit, formClassName, labelsClassName, inputsClassName, buttonClassName, buttonStyle, defaultFrom, defaultTo, direction, fromText, toText, buttonText, }: DatePickerProps) => react_jsx_runtime.JSX.Element;
|
|
633
|
+
declare function DatePicker2({ submit, formClassName, labelsClassName, inputsClassName, buttonClassName, buttonStyle, defaultFrom, defaultTo, direction, fromText, toText, buttonText, }: DatePickerProps): react_jsx_runtime.JSX.Element;
|
|
633
634
|
|
|
634
635
|
interface CodeInputProps {
|
|
635
636
|
codeValue: string;
|
|
@@ -640,4 +641,4 @@ interface CodeInputProps {
|
|
|
640
641
|
}
|
|
641
642
|
declare function CodeInput({ codeValue, setCodeValue, className, slotContainerClassName, direction }: CodeInputProps): react_jsx_runtime.JSX.Element;
|
|
642
643
|
|
|
643
|
-
export { Badge, type BadgeProps, BooleanUi, Button, type ButtonProps, type CheckBoxProps, Checkbox, CheckboxContainer, CodeInput, ConfirmForm, DatePicker, DisplayAllRowsButton, DurationPicker, DurationUI, ElementLabel, ElementsContainer, type ElementsContainerProps, ErrorBoundary, ExportToExcel, Filter, type FilterProps, FormElementContainer, FormSeparator, GeoUi, type GeoUiProps, Input, InputContainer, InternationalPhonePicker, LeftToRightDiv, Loader, type LoaderProps, LoginWithGoogleButton, type LoginWithGoogleCallback, MaxRowsLabel, ModularForm, MultiSelect, type MultipleSelectorOption, type MultipleSelectorProps, type MultipleSelectorRef, NumberUI, type NumberUIProps, PhoneUI, ProgressComponent, Search, type SearchSelectOptions, type SearchSelectProps, SelectContainer, SelectWithSearch, Summary, Table, TableBody, TableButton, TableCell, TableContext, TableHead, type TableProps, TableProvider, type TableProviderType, TableRow, TextAreaContainer, TimesUI, type UseFilterProps, Version, badgeVariants, buttonVariants, defaultFormElementBorderClassName, defaultFormElementContainerClassName, useDebounce, useSortValues };
|
|
644
|
+
export { Badge, type BadgeProps, BooleanUi, Button, type ButtonProps, type CheckBoxProps, Checkbox, CheckboxContainer, CodeInput, ConfirmForm, DatePicker, DatePicker2, DisplayAllRowsButton, DurationPicker, DurationUI, ElementLabel, ElementsContainer, type ElementsContainerProps, ErrorBoundary, ExportToExcel, Filter, type FilterProps, FormElementContainer, FormSeparator, GeoUi, type GeoUiProps, Input, InputContainer, InternationalPhonePicker, LeftToRightDiv, Loader, type LoaderProps, LoginWithGoogleButton, type LoginWithGoogleCallback, MaxRowsLabel, ModularForm, MultiSelect, type MultipleSelectorOption, type MultipleSelectorProps, type MultipleSelectorRef, NumberUI, type NumberUIProps, PhoneUI, ProgressComponent, Search, type SearchSelectOptions, type SearchSelectProps, SelectContainer, SelectWithSearch, Summary, Table, TableBody, TableButton, TableCell, TableContext, TableHead, type TableProps, TableProvider, type TableProviderType, TableRow, TextAreaContainer, TimesUI, type UseFilterProps, Version, badgeVariants, buttonVariants, defaultFormElementBorderClassName, defaultFormElementContainerClassName, useDebounce, useSortValues };
|
|
@@ -630,6 +630,7 @@ declare const ElementsContainer: React$1.MemoExoticComponent<(props: ElementsCon
|
|
|
630
630
|
|
|
631
631
|
declare const ConfirmForm: ({ onV, onX, headline, direction, containerClassName, buttonsContainerClassName, headlineClassName, cancelButtonClassName, confirmButtonClassName, cancelButtonProps, confirmButtonProps, cancelElement, confirmElement, }: ConfirmFormProps) => react_jsx_runtime.JSX.Element;
|
|
632
632
|
declare const DatePicker: ({ submit, formClassName, labelsClassName, inputsClassName, buttonClassName, buttonStyle, defaultFrom, defaultTo, direction, fromText, toText, buttonText, }: DatePickerProps) => react_jsx_runtime.JSX.Element;
|
|
633
|
+
declare function DatePicker2({ submit, formClassName, labelsClassName, inputsClassName, buttonClassName, buttonStyle, defaultFrom, defaultTo, direction, fromText, toText, buttonText, }: DatePickerProps): react_jsx_runtime.JSX.Element;
|
|
633
634
|
|
|
634
635
|
interface CodeInputProps {
|
|
635
636
|
codeValue: string;
|
|
@@ -640,4 +641,4 @@ interface CodeInputProps {
|
|
|
640
641
|
}
|
|
641
642
|
declare function CodeInput({ codeValue, setCodeValue, className, slotContainerClassName, direction }: CodeInputProps): react_jsx_runtime.JSX.Element;
|
|
642
643
|
|
|
643
|
-
export { Badge, type BadgeProps, BooleanUi, Button, type ButtonProps, type CheckBoxProps, Checkbox, CheckboxContainer, CodeInput, ConfirmForm, DatePicker, DisplayAllRowsButton, DurationPicker, DurationUI, ElementLabel, ElementsContainer, type ElementsContainerProps, ErrorBoundary, ExportToExcel, Filter, type FilterProps, FormElementContainer, FormSeparator, GeoUi, type GeoUiProps, Input, InputContainer, InternationalPhonePicker, LeftToRightDiv, Loader, type LoaderProps, LoginWithGoogleButton, type LoginWithGoogleCallback, MaxRowsLabel, ModularForm, MultiSelect, type MultipleSelectorOption, type MultipleSelectorProps, type MultipleSelectorRef, NumberUI, type NumberUIProps, PhoneUI, ProgressComponent, Search, type SearchSelectOptions, type SearchSelectProps, SelectContainer, SelectWithSearch, Summary, Table, TableBody, TableButton, TableCell, TableContext, TableHead, type TableProps, TableProvider, type TableProviderType, TableRow, TextAreaContainer, TimesUI, type UseFilterProps, Version, badgeVariants, buttonVariants, defaultFormElementBorderClassName, defaultFormElementContainerClassName, useDebounce, useSortValues };
|
|
644
|
+
export { Badge, type BadgeProps, BooleanUi, Button, type ButtonProps, type CheckBoxProps, Checkbox, CheckboxContainer, CodeInput, ConfirmForm, DatePicker, DatePicker2, DisplayAllRowsButton, DurationPicker, DurationUI, ElementLabel, ElementsContainer, type ElementsContainerProps, ErrorBoundary, ExportToExcel, Filter, type FilterProps, FormElementContainer, FormSeparator, GeoUi, type GeoUiProps, Input, InputContainer, InternationalPhonePicker, LeftToRightDiv, Loader, type LoaderProps, LoginWithGoogleButton, type LoginWithGoogleCallback, MaxRowsLabel, ModularForm, MultiSelect, type MultipleSelectorOption, type MultipleSelectorProps, type MultipleSelectorRef, NumberUI, type NumberUIProps, PhoneUI, ProgressComponent, Search, type SearchSelectOptions, type SearchSelectProps, SelectContainer, SelectWithSearch, Summary, Table, TableBody, TableButton, TableCell, TableContext, TableHead, type TableProps, TableProvider, type TableProviderType, TableRow, TextAreaContainer, TimesUI, type UseFilterProps, Version, badgeVariants, buttonVariants, defaultFormElementBorderClassName, defaultFormElementContainerClassName, useDebounce, useSortValues };
|
package/dist/components/index.js
CHANGED
|
@@ -443,6 +443,9 @@ __export(index_exports, {
|
|
|
443
443
|
DatePicker: function() {
|
|
444
444
|
return DatePicker;
|
|
445
445
|
},
|
|
446
|
+
DatePicker2: function() {
|
|
447
|
+
return DatePicker2;
|
|
448
|
+
},
|
|
446
449
|
DisplayAllRowsButton: function() {
|
|
447
450
|
return DisplayAllRowsButton;
|
|
448
451
|
},
|
|
@@ -6952,9 +6955,104 @@ var import_date = require("@internationalized/date");
|
|
|
6952
6955
|
var import_lucide_react6 = require("lucide-react");
|
|
6953
6956
|
var import_react_aria_components = require("react-aria-components");
|
|
6954
6957
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
6958
|
+
function CalendarHeader() {
|
|
6959
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("header", {
|
|
6960
|
+
className: "flex w-full items-center gap-1 pb-1",
|
|
6961
|
+
children: [
|
|
6962
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react_aria_components.Button, {
|
|
6963
|
+
className: "flex size-9 items-center justify-center rounded-md text-muted-foreground/80 outline-none transition-[color,box-shadow] hover:bg-accent hover:text-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50",
|
|
6964
|
+
slot: "previous",
|
|
6965
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react6.ChevronLeftIcon, {
|
|
6966
|
+
size: 16
|
|
6967
|
+
})
|
|
6968
|
+
}),
|
|
6969
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react_aria_components.Heading, {
|
|
6970
|
+
className: "grow text-center font-medium text-sm"
|
|
6971
|
+
}),
|
|
6972
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react_aria_components.Button, {
|
|
6973
|
+
className: "flex size-9 items-center justify-center rounded-md text-muted-foreground/80 outline-none transition-[color,box-shadow] hover:bg-accent hover:text-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50",
|
|
6974
|
+
slot: "next",
|
|
6975
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react6.ChevronRightIcon, {
|
|
6976
|
+
size: 16
|
|
6977
|
+
})
|
|
6978
|
+
})
|
|
6979
|
+
]
|
|
6980
|
+
});
|
|
6981
|
+
}
|
|
6982
|
+
function CalendarGridComponent(param) {
|
|
6983
|
+
var _param_isRange = param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange;
|
|
6984
|
+
var now = (0, import_date.today)((0, import_date.getLocalTimeZone)());
|
|
6985
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_react_aria_components.CalendarGrid, {
|
|
6986
|
+
children: [
|
|
6987
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react_aria_components.CalendarGridHeader, {
|
|
6988
|
+
children: function(day) {
|
|
6989
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react_aria_components.CalendarHeaderCell, {
|
|
6990
|
+
className: "size-9 rounded-md p-0 font-medium text-muted-foreground/80 text-xs",
|
|
6991
|
+
children: day
|
|
6992
|
+
});
|
|
6993
|
+
}
|
|
6994
|
+
}),
|
|
6995
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react_aria_components.CalendarGridBody, {
|
|
6996
|
+
className: "[&_td]:px-0 [&_td]:py-px",
|
|
6997
|
+
children: function(date) {
|
|
6998
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react_aria_components.CalendarCell, {
|
|
6999
|
+
className: cn("relative flex size-9 items-center justify-center whitespace-nowrap rounded-md p-0 font-normal text-foreground text-sm outline-none duration-150 [transition-property:color,background-color,border-radius,box-shadow] data-disabled:pointer-events-none data-unavailable:pointer-events-none data-focus-visible:z-10 data-hovered:bg-accent data-selected:bg-primary data-hovered:text-foreground data-selected:text-primary-foreground data-unavailable:line-through data-disabled:opacity-30 data-unavailable:opacity-30 data-focus-visible:ring-[3px] data-focus-visible:ring-ring/50", // Range-specific styles
|
|
7000
|
+
isRange && "data-invalid:data-selection-end:bg-destructive data-invalid:data-selection-start:bg-destructive data-invalid:data-selection-end:text-white data-invalid:data-selection-start:text-white data-selected:rounded-none data-selection-start:rounded-s-md data-selection-end:rounded-e-md data-invalid:bg-red-100 data-selected:bg-accent data-selection-end:bg-primary data-selection-start:bg-primary data-selected:text-foreground data-selection-end:text-primary-foreground data-selection-start:text-primary-foreground", // Today indicator styles
|
|
7001
|
+
date.compare(now) === 0 && cn("after:-translate-x-1/2 after:pointer-events-none after:absolute after:start-1/2 after:bottom-1 after:z-10 after:size-[3px] after:rounded-full after:bg-primary", isRange ? "data-selection-end:after:bg-background data-selection-start:after:bg-background" : "data-selected:after:bg-background")),
|
|
7002
|
+
date: date
|
|
7003
|
+
});
|
|
7004
|
+
}
|
|
7005
|
+
})
|
|
7006
|
+
]
|
|
7007
|
+
});
|
|
7008
|
+
}
|
|
7009
|
+
function Calendar(_param) {
|
|
7010
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
7011
|
+
"className"
|
|
7012
|
+
]);
|
|
7013
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_react_aria_components.Calendar, _object_spread_props(_object_spread({}, props), {
|
|
7014
|
+
className: (0, import_react_aria_components.composeRenderProps)(className, function(className2) {
|
|
7015
|
+
return cn("w-fit", className2);
|
|
7016
|
+
}),
|
|
7017
|
+
children: [
|
|
7018
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarHeader, {}),
|
|
7019
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarGridComponent, {})
|
|
7020
|
+
]
|
|
7021
|
+
}));
|
|
7022
|
+
}
|
|
6955
7023
|
// src/components/ui/datefield-rac.tsx
|
|
6956
7024
|
var import_react_aria_components2 = require("react-aria-components");
|
|
6957
7025
|
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
7026
|
+
function DateSegment(_param) {
|
|
7027
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
7028
|
+
"className"
|
|
7029
|
+
]);
|
|
7030
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react_aria_components2.DateSegment, _object_spread_props(_object_spread({
|
|
7031
|
+
className: (0, import_react_aria_components2.composeRenderProps)(className, function(className2) {
|
|
7032
|
+
return cn("inline rounded p-0.5 text-foreground caret-transparent outline-hidden data-invalid:data-focused:bg-destructive data-focused:data-placeholder:text-foreground data-invalid:data-focused:text-white data-invalid:data-placeholder:text-destructive data-disabled:cursor-not-allowed data-focused:bg-accent data-[type=literal]:px-0 data-[type=literal]:text-muted-foreground/70 data-focused:text-foreground data-invalid:data-focused:data-placeholder:text-white data-invalid:text-destructive data-placeholder:text-muted-foreground/70 data-disabled:opacity-50", className2);
|
|
7033
|
+
})
|
|
7034
|
+
}, props), {
|
|
7035
|
+
"data-invalid": true
|
|
7036
|
+
}));
|
|
7037
|
+
}
|
|
7038
|
+
var dateInputStyle = "relative inline-flex h-9 w-full items-center overflow-hidden whitespace-nowrap rounded-md border border-input bg-background px-3 py-2 text-sm shadow-xs transition-[color,box-shadow] outline-none data-focus-within:border-ring data-focus-within:ring-ring/50 data-focus-within:ring-[3px] data-focus-within:has-aria-invalid:ring-destructive/20 dark:data-focus-within:has-aria-invalid:ring-destructive/40 data-focus-within:has-aria-invalid:border-destructive";
|
|
7039
|
+
function DateInput(_param) {
|
|
7040
|
+
var className = _param.className, _param_unstyled = _param.unstyled, unstyled = _param_unstyled === void 0 ? false : _param_unstyled, props = _object_without_properties(_param, [
|
|
7041
|
+
"className",
|
|
7042
|
+
"unstyled"
|
|
7043
|
+
]);
|
|
7044
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react_aria_components2.DateInput, _object_spread_props(_object_spread({
|
|
7045
|
+
className: (0, import_react_aria_components2.composeRenderProps)(className, function(className2) {
|
|
7046
|
+
return cn(!unstyled && dateInputStyle, className2);
|
|
7047
|
+
})
|
|
7048
|
+
}, props), {
|
|
7049
|
+
children: function(segment) {
|
|
7050
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DateSegment, {
|
|
7051
|
+
segment: segment
|
|
7052
|
+
});
|
|
7053
|
+
}
|
|
7054
|
+
}));
|
|
7055
|
+
}
|
|
6958
7056
|
// src/components/forms/index.tsx
|
|
6959
7057
|
var import_react_aria_components4 = require("react-aria-components");
|
|
6960
7058
|
var import_date2 = require("@internationalized/date");
|
|
@@ -7076,6 +7174,178 @@ var DatePicker = function(param) {
|
|
|
7076
7174
|
]
|
|
7077
7175
|
});
|
|
7078
7176
|
};
|
|
7177
|
+
function DatePicker2(param) {
|
|
7178
|
+
var _param_submit = param.submit, submit = _param_submit === void 0 ? /*#__PURE__*/ function() {
|
|
7179
|
+
var _ref = _async_to_generator(function(form) {
|
|
7180
|
+
return _ts_generator(this, function(_state) {
|
|
7181
|
+
return [
|
|
7182
|
+
2
|
|
7183
|
+
];
|
|
7184
|
+
});
|
|
7185
|
+
});
|
|
7186
|
+
return function(form) {
|
|
7187
|
+
return _ref.apply(this, arguments);
|
|
7188
|
+
};
|
|
7189
|
+
}() : _param_submit, _param_formClassName = param.formClassName, formClassName = _param_formClassName === void 0 ? "" : _param_formClassName, _param_labelsClassName = param.labelsClassName, labelsClassName = _param_labelsClassName === void 0 ? "" : _param_labelsClassName, _param_inputsClassName = param.inputsClassName, inputsClassName = _param_inputsClassName === void 0 ? "" : _param_inputsClassName, _param_buttonClassName = param.buttonClassName, buttonClassName = _param_buttonClassName === void 0 ? "" : _param_buttonClassName, _param_buttonStyle = param.buttonStyle, buttonStyle = _param_buttonStyle === void 0 ? {} : _param_buttonStyle, defaultFrom = param.defaultFrom, defaultTo = param.defaultTo, _param_direction = param.direction, direction = _param_direction === void 0 ? "rtl" : _param_direction, _param_fromText = param.fromText, fromText = _param_fromText === void 0 ? "From date" : _param_fromText, _param_toText = param.toText, toText = _param_toText === void 0 ? "To date" : _param_toText, _param_buttonText = param.buttonText, buttonText = _param_buttonText === void 0 ? "Search" : _param_buttonText;
|
|
7190
|
+
var _ref = _sliced_to_array((0, import_react18.useState)(false), 2), isLoading = _ref[0], setIsLoading = _ref[1];
|
|
7191
|
+
var _ref1 = _sliced_to_array((0, import_react18.useState)(function() {
|
|
7192
|
+
if (defaultFrom) {
|
|
7193
|
+
try {
|
|
7194
|
+
return (0, import_date2.parseDate)(defaultFrom);
|
|
7195
|
+
} catch (e) {
|
|
7196
|
+
return (0, import_date2.parseDate)((0, import_moment2.default)(/* @__PURE__ */ new Date()).format("YYYY-MM-DD"));
|
|
7197
|
+
}
|
|
7198
|
+
}
|
|
7199
|
+
return (0, import_date2.parseDate)((0, import_moment2.default)(/* @__PURE__ */ new Date()).format("YYYY-MM-DD"));
|
|
7200
|
+
}), 2), fromDate = _ref1[0], setFromDate = _ref1[1];
|
|
7201
|
+
var _ref2 = _sliced_to_array((0, import_react18.useState)(function() {
|
|
7202
|
+
if (defaultTo) {
|
|
7203
|
+
try {
|
|
7204
|
+
return (0, import_date2.parseDate)(defaultTo);
|
|
7205
|
+
} catch (e) {
|
|
7206
|
+
return (0, import_date2.parseDate)((0, import_moment2.default)(/* @__PURE__ */ new Date()).format("YYYY-MM-DD"));
|
|
7207
|
+
}
|
|
7208
|
+
}
|
|
7209
|
+
return (0, import_date2.parseDate)((0, import_moment2.default)(/* @__PURE__ */ new Date()).format("YYYY-MM-DD"));
|
|
7210
|
+
}), 2), toDate = _ref2[0], setToDate = _ref2[1];
|
|
7211
|
+
var formatDateValue = function(date) {
|
|
7212
|
+
if (!date) return "";
|
|
7213
|
+
return "".concat(date.year, "-").concat(String(date.month).padStart(2, "0"), "-").concat(String(date.day).padStart(2, "0"));
|
|
7214
|
+
};
|
|
7215
|
+
var onSubmit = /*#__PURE__*/ function() {
|
|
7216
|
+
var _ref = _async_to_generator(function(e) {
|
|
7217
|
+
return _ts_generator(this, function(_state) {
|
|
7218
|
+
switch(_state.label){
|
|
7219
|
+
case 0:
|
|
7220
|
+
e.preventDefault();
|
|
7221
|
+
setIsLoading(true);
|
|
7222
|
+
return [
|
|
7223
|
+
4,
|
|
7224
|
+
submit(e)
|
|
7225
|
+
];
|
|
7226
|
+
case 1:
|
|
7227
|
+
_state.sent();
|
|
7228
|
+
setIsLoading(false);
|
|
7229
|
+
return [
|
|
7230
|
+
2
|
|
7231
|
+
];
|
|
7232
|
+
}
|
|
7233
|
+
});
|
|
7234
|
+
});
|
|
7235
|
+
return function onSubmit(e) {
|
|
7236
|
+
return _ref.apply(this, arguments);
|
|
7237
|
+
};
|
|
7238
|
+
}();
|
|
7239
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_aria_components4.I18nProvider, {
|
|
7240
|
+
locale: direction === "rtl" ? "he-IL" : "en-US",
|
|
7241
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("form", {
|
|
7242
|
+
style: {
|
|
7243
|
+
direction: direction
|
|
7244
|
+
},
|
|
7245
|
+
onSubmit: onSubmit,
|
|
7246
|
+
className: cn("w-full h-10 flex justify-start gap-3 items-center", formClassName),
|
|
7247
|
+
children: [
|
|
7248
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("input", {
|
|
7249
|
+
type: "hidden",
|
|
7250
|
+
name: "from",
|
|
7251
|
+
value: formatDateValue(fromDate)
|
|
7252
|
+
}),
|
|
7253
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("input", {
|
|
7254
|
+
type: "hidden",
|
|
7255
|
+
name: "to",
|
|
7256
|
+
value: formatDateValue(toDate)
|
|
7257
|
+
}),
|
|
7258
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("label", {
|
|
7259
|
+
className: cn("center text-[14px] relative gap-2", labelsClassName),
|
|
7260
|
+
children: [
|
|
7261
|
+
fromText,
|
|
7262
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_react_aria_components3.DatePicker, {
|
|
7263
|
+
value: fromDate,
|
|
7264
|
+
onChange: setFromDate,
|
|
7265
|
+
children: [
|
|
7266
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", {
|
|
7267
|
+
className: "flex",
|
|
7268
|
+
children: [
|
|
7269
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_aria_components3.Group, {
|
|
7270
|
+
className: "w-[125px]",
|
|
7271
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DateInput, {
|
|
7272
|
+
className: cn("w-[125px] text-[14px] py-[2px] px-1 rounded-[2px] border-black border-[1px] text-end", inputsClassName),
|
|
7273
|
+
unstyled: true
|
|
7274
|
+
})
|
|
7275
|
+
}),
|
|
7276
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_aria_components3.Button, {
|
|
7277
|
+
className: "-ms-9 -me-px z-10 flex w-9 items-center justify-center rounded-e-md text-muted-foreground/80 outline-none transition-[color,box-shadow] hover:text-foreground data-focus-visible:border-ring data-focus-visible:ring-[3px] data-focus-visible:ring-ring/50",
|
|
7278
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react7.CalendarIcon, {
|
|
7279
|
+
size: 16
|
|
7280
|
+
})
|
|
7281
|
+
})
|
|
7282
|
+
]
|
|
7283
|
+
}),
|
|
7284
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_aria_components3.Popover, {
|
|
7285
|
+
className: "data-[entering]:fade-in-0 data-[entering]:zoom-in-95 data-[exiting]:fade-out-0 data-[exiting]:zoom-out-95 data-[placement=bottom]:slide-in-from-top-2 data-[placement=left]:slide-in-from-right-2 data-[placement=right]:slide-in-from-left-2 data-[placement=top]:slide-in-from-bottom-2 z-50 rounded-lg border bg-background text-popover-foreground shadow-lg outline-hidden data-entering:animate-in data-exiting:animate-out",
|
|
7286
|
+
offset: 4,
|
|
7287
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_aria_components3.Dialog, {
|
|
7288
|
+
className: "max-h-[inherit] overflow-auto p-2",
|
|
7289
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Calendar, {})
|
|
7290
|
+
})
|
|
7291
|
+
})
|
|
7292
|
+
]
|
|
7293
|
+
})
|
|
7294
|
+
]
|
|
7295
|
+
}),
|
|
7296
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("label", {
|
|
7297
|
+
className: cn("center text-[14px] relative gap-2", labelsClassName),
|
|
7298
|
+
children: [
|
|
7299
|
+
toText,
|
|
7300
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_react_aria_components3.DatePicker, {
|
|
7301
|
+
value: toDate,
|
|
7302
|
+
onChange: setToDate,
|
|
7303
|
+
children: [
|
|
7304
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", {
|
|
7305
|
+
className: "flex",
|
|
7306
|
+
children: [
|
|
7307
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_aria_components3.Group, {
|
|
7308
|
+
className: "w-[125px]",
|
|
7309
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DateInput, {
|
|
7310
|
+
className: cn("w-[125px] text-[14px] py-[2px] px-1 rounded-[2px] border-black border-[1px] text-end", inputsClassName),
|
|
7311
|
+
unstyled: true
|
|
7312
|
+
})
|
|
7313
|
+
}),
|
|
7314
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_aria_components3.Button, {
|
|
7315
|
+
className: "-ms-9 -me-px z-10 flex w-9 items-center justify-center rounded-e-md text-muted-foreground/80 outline-none transition-[color,box-shadow] hover:text-foreground data-focus-visible:border-ring data-focus-visible:ring-[3px] data-focus-visible:ring-ring/50",
|
|
7316
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react7.CalendarIcon, {
|
|
7317
|
+
size: 16
|
|
7318
|
+
})
|
|
7319
|
+
})
|
|
7320
|
+
]
|
|
7321
|
+
}),
|
|
7322
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_aria_components3.Popover, {
|
|
7323
|
+
className: "data-[entering]:fade-in-0 data-[entering]:zoom-in-95 data-[exiting]:fade-out-0 data-[exiting]:zoom-out-95 data-[placement=bottom]:slide-in-from-top-2 data-[placement=left]:slide-in-from-right-2 data-[placement=right]:slide-in-from-left-2 data-[placement=top]:slide-in-from-bottom-2 z-50 rounded-lg border bg-background text-popover-foreground shadow-lg outline-hidden data-entering:animate-in data-exiting:animate-out",
|
|
7324
|
+
offset: 4,
|
|
7325
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_aria_components3.Dialog, {
|
|
7326
|
+
className: "max-h-[inherit] overflow-auto p-2",
|
|
7327
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Calendar, {})
|
|
7328
|
+
})
|
|
7329
|
+
})
|
|
7330
|
+
]
|
|
7331
|
+
})
|
|
7332
|
+
]
|
|
7333
|
+
}),
|
|
7334
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("button", {
|
|
7335
|
+
disabled: isLoading,
|
|
7336
|
+
style: buttonStyle,
|
|
7337
|
+
className: cn("bg-[#699a2c] text-[#fff] font-[500] w-[75px] h-[27px]", buttonClassName),
|
|
7338
|
+
type: "submit",
|
|
7339
|
+
children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Loader, {
|
|
7340
|
+
className: "pt-[2px]",
|
|
7341
|
+
size: 20,
|
|
7342
|
+
color: "#fff"
|
|
7343
|
+
}) : buttonText
|
|
7344
|
+
})
|
|
7345
|
+
]
|
|
7346
|
+
})
|
|
7347
|
+
});
|
|
7348
|
+
}
|
|
7079
7349
|
// src/components/CodeInput.tsx
|
|
7080
7350
|
var import_input_otp = require("input-otp");
|
|
7081
7351
|
var import_react19 = require("react");
|
|
@@ -7133,6 +7403,7 @@ function Slot2(props) {
|
|
|
7133
7403
|
CodeInput: CodeInput,
|
|
7134
7404
|
ConfirmForm: ConfirmForm,
|
|
7135
7405
|
DatePicker: DatePicker,
|
|
7406
|
+
DatePicker2: DatePicker2,
|
|
7136
7407
|
DisplayAllRowsButton: DisplayAllRowsButton,
|
|
7137
7408
|
DurationPicker: DurationPicker,
|
|
7138
7409
|
DurationUI: DurationUI,
|
|
@@ -6730,9 +6730,104 @@ import { getLocalTimeZone, today } from "@internationalized/date";
|
|
|
6730
6730
|
import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
|
|
6731
6731
|
import { Button as Button2, CalendarCell as CalendarCellRac, CalendarGridBody as CalendarGridBodyRac, CalendarGridHeader as CalendarGridHeaderRac, CalendarGrid as CalendarGridRac, CalendarHeaderCell as CalendarHeaderCellRac, Calendar as CalendarRac, composeRenderProps, Heading as HeadingRac, RangeCalendar as RangeCalendarRac } from "react-aria-components";
|
|
6732
6732
|
import { jsx as jsx22, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
6733
|
+
function CalendarHeader() {
|
|
6734
|
+
return /* @__PURE__ */ jsxs16("header", {
|
|
6735
|
+
className: "flex w-full items-center gap-1 pb-1",
|
|
6736
|
+
children: [
|
|
6737
|
+
/* @__PURE__ */ jsx22(Button2, {
|
|
6738
|
+
className: "flex size-9 items-center justify-center rounded-md text-muted-foreground/80 outline-none transition-[color,box-shadow] hover:bg-accent hover:text-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50",
|
|
6739
|
+
slot: "previous",
|
|
6740
|
+
children: /* @__PURE__ */ jsx22(ChevronLeftIcon, {
|
|
6741
|
+
size: 16
|
|
6742
|
+
})
|
|
6743
|
+
}),
|
|
6744
|
+
/* @__PURE__ */ jsx22(HeadingRac, {
|
|
6745
|
+
className: "grow text-center font-medium text-sm"
|
|
6746
|
+
}),
|
|
6747
|
+
/* @__PURE__ */ jsx22(Button2, {
|
|
6748
|
+
className: "flex size-9 items-center justify-center rounded-md text-muted-foreground/80 outline-none transition-[color,box-shadow] hover:bg-accent hover:text-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50",
|
|
6749
|
+
slot: "next",
|
|
6750
|
+
children: /* @__PURE__ */ jsx22(ChevronRightIcon, {
|
|
6751
|
+
size: 16
|
|
6752
|
+
})
|
|
6753
|
+
})
|
|
6754
|
+
]
|
|
6755
|
+
});
|
|
6756
|
+
}
|
|
6757
|
+
function CalendarGridComponent(param) {
|
|
6758
|
+
var _param_isRange = param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange;
|
|
6759
|
+
var now = today(getLocalTimeZone());
|
|
6760
|
+
return /* @__PURE__ */ jsxs16(CalendarGridRac, {
|
|
6761
|
+
children: [
|
|
6762
|
+
/* @__PURE__ */ jsx22(CalendarGridHeaderRac, {
|
|
6763
|
+
children: function(day) {
|
|
6764
|
+
return /* @__PURE__ */ jsx22(CalendarHeaderCellRac, {
|
|
6765
|
+
className: "size-9 rounded-md p-0 font-medium text-muted-foreground/80 text-xs",
|
|
6766
|
+
children: day
|
|
6767
|
+
});
|
|
6768
|
+
}
|
|
6769
|
+
}),
|
|
6770
|
+
/* @__PURE__ */ jsx22(CalendarGridBodyRac, {
|
|
6771
|
+
className: "[&_td]:px-0 [&_td]:py-px",
|
|
6772
|
+
children: function(date) {
|
|
6773
|
+
return /* @__PURE__ */ jsx22(CalendarCellRac, {
|
|
6774
|
+
className: cn("relative flex size-9 items-center justify-center whitespace-nowrap rounded-md p-0 font-normal text-foreground text-sm outline-none duration-150 [transition-property:color,background-color,border-radius,box-shadow] data-disabled:pointer-events-none data-unavailable:pointer-events-none data-focus-visible:z-10 data-hovered:bg-accent data-selected:bg-primary data-hovered:text-foreground data-selected:text-primary-foreground data-unavailable:line-through data-disabled:opacity-30 data-unavailable:opacity-30 data-focus-visible:ring-[3px] data-focus-visible:ring-ring/50", // Range-specific styles
|
|
6775
|
+
isRange && "data-invalid:data-selection-end:bg-destructive data-invalid:data-selection-start:bg-destructive data-invalid:data-selection-end:text-white data-invalid:data-selection-start:text-white data-selected:rounded-none data-selection-start:rounded-s-md data-selection-end:rounded-e-md data-invalid:bg-red-100 data-selected:bg-accent data-selection-end:bg-primary data-selection-start:bg-primary data-selected:text-foreground data-selection-end:text-primary-foreground data-selection-start:text-primary-foreground", // Today indicator styles
|
|
6776
|
+
date.compare(now) === 0 && cn("after:-translate-x-1/2 after:pointer-events-none after:absolute after:start-1/2 after:bottom-1 after:z-10 after:size-[3px] after:rounded-full after:bg-primary", isRange ? "data-selection-end:after:bg-background data-selection-start:after:bg-background" : "data-selected:after:bg-background")),
|
|
6777
|
+
date: date
|
|
6778
|
+
});
|
|
6779
|
+
}
|
|
6780
|
+
})
|
|
6781
|
+
]
|
|
6782
|
+
});
|
|
6783
|
+
}
|
|
6784
|
+
function Calendar(_param) {
|
|
6785
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
6786
|
+
"className"
|
|
6787
|
+
]);
|
|
6788
|
+
return /* @__PURE__ */ jsxs16(CalendarRac, _object_spread_props(_object_spread({}, props), {
|
|
6789
|
+
className: composeRenderProps(className, function(className2) {
|
|
6790
|
+
return cn("w-fit", className2);
|
|
6791
|
+
}),
|
|
6792
|
+
children: [
|
|
6793
|
+
/* @__PURE__ */ jsx22(CalendarHeader, {}),
|
|
6794
|
+
/* @__PURE__ */ jsx22(CalendarGridComponent, {})
|
|
6795
|
+
]
|
|
6796
|
+
}));
|
|
6797
|
+
}
|
|
6733
6798
|
// src/components/ui/datefield-rac.tsx
|
|
6734
6799
|
import { composeRenderProps as composeRenderProps2, DateField as DateFieldRac, DateInput as DateInputRac, DateSegment as DateSegmentRac, TimeField as TimeFieldRac } from "react-aria-components";
|
|
6735
6800
|
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
6801
|
+
function DateSegment(_param) {
|
|
6802
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
6803
|
+
"className"
|
|
6804
|
+
]);
|
|
6805
|
+
return /* @__PURE__ */ jsx23(DateSegmentRac, _object_spread_props(_object_spread({
|
|
6806
|
+
className: composeRenderProps2(className, function(className2) {
|
|
6807
|
+
return cn("inline rounded p-0.5 text-foreground caret-transparent outline-hidden data-invalid:data-focused:bg-destructive data-focused:data-placeholder:text-foreground data-invalid:data-focused:text-white data-invalid:data-placeholder:text-destructive data-disabled:cursor-not-allowed data-focused:bg-accent data-[type=literal]:px-0 data-[type=literal]:text-muted-foreground/70 data-focused:text-foreground data-invalid:data-focused:data-placeholder:text-white data-invalid:text-destructive data-placeholder:text-muted-foreground/70 data-disabled:opacity-50", className2);
|
|
6808
|
+
})
|
|
6809
|
+
}, props), {
|
|
6810
|
+
"data-invalid": true
|
|
6811
|
+
}));
|
|
6812
|
+
}
|
|
6813
|
+
var dateInputStyle = "relative inline-flex h-9 w-full items-center overflow-hidden whitespace-nowrap rounded-md border border-input bg-background px-3 py-2 text-sm shadow-xs transition-[color,box-shadow] outline-none data-focus-within:border-ring data-focus-within:ring-ring/50 data-focus-within:ring-[3px] data-focus-within:has-aria-invalid:ring-destructive/20 dark:data-focus-within:has-aria-invalid:ring-destructive/40 data-focus-within:has-aria-invalid:border-destructive";
|
|
6814
|
+
function DateInput(_param) {
|
|
6815
|
+
var className = _param.className, _param_unstyled = _param.unstyled, unstyled = _param_unstyled === void 0 ? false : _param_unstyled, props = _object_without_properties(_param, [
|
|
6816
|
+
"className",
|
|
6817
|
+
"unstyled"
|
|
6818
|
+
]);
|
|
6819
|
+
return /* @__PURE__ */ jsx23(DateInputRac, _object_spread_props(_object_spread({
|
|
6820
|
+
className: composeRenderProps2(className, function(className2) {
|
|
6821
|
+
return cn(!unstyled && dateInputStyle, className2);
|
|
6822
|
+
})
|
|
6823
|
+
}, props), {
|
|
6824
|
+
children: function(segment) {
|
|
6825
|
+
return /* @__PURE__ */ jsx23(DateSegment, {
|
|
6826
|
+
segment: segment
|
|
6827
|
+
});
|
|
6828
|
+
}
|
|
6829
|
+
}));
|
|
6830
|
+
}
|
|
6736
6831
|
// src/components/forms/index.tsx
|
|
6737
6832
|
import { I18nProvider } from "react-aria-components";
|
|
6738
6833
|
import { parseDate } from "@internationalized/date";
|
|
@@ -6854,6 +6949,178 @@ var DatePicker = function(param) {
|
|
|
6854
6949
|
]
|
|
6855
6950
|
});
|
|
6856
6951
|
};
|
|
6952
|
+
function DatePicker2(param) {
|
|
6953
|
+
var _param_submit = param.submit, submit = _param_submit === void 0 ? /*#__PURE__*/ function() {
|
|
6954
|
+
var _ref = _async_to_generator(function(form) {
|
|
6955
|
+
return _ts_generator(this, function(_state) {
|
|
6956
|
+
return [
|
|
6957
|
+
2
|
|
6958
|
+
];
|
|
6959
|
+
});
|
|
6960
|
+
});
|
|
6961
|
+
return function(form) {
|
|
6962
|
+
return _ref.apply(this, arguments);
|
|
6963
|
+
};
|
|
6964
|
+
}() : _param_submit, _param_formClassName = param.formClassName, formClassName = _param_formClassName === void 0 ? "" : _param_formClassName, _param_labelsClassName = param.labelsClassName, labelsClassName = _param_labelsClassName === void 0 ? "" : _param_labelsClassName, _param_inputsClassName = param.inputsClassName, inputsClassName = _param_inputsClassName === void 0 ? "" : _param_inputsClassName, _param_buttonClassName = param.buttonClassName, buttonClassName = _param_buttonClassName === void 0 ? "" : _param_buttonClassName, _param_buttonStyle = param.buttonStyle, buttonStyle = _param_buttonStyle === void 0 ? {} : _param_buttonStyle, defaultFrom = param.defaultFrom, defaultTo = param.defaultTo, _param_direction = param.direction, direction = _param_direction === void 0 ? "rtl" : _param_direction, _param_fromText = param.fromText, fromText = _param_fromText === void 0 ? "From date" : _param_fromText, _param_toText = param.toText, toText = _param_toText === void 0 ? "To date" : _param_toText, _param_buttonText = param.buttonText, buttonText = _param_buttonText === void 0 ? "Search" : _param_buttonText;
|
|
6965
|
+
var _useState11 = _sliced_to_array(useState11(false), 2), isLoading = _useState11[0], setIsLoading = _useState11[1];
|
|
6966
|
+
var _useState111 = _sliced_to_array(useState11(function() {
|
|
6967
|
+
if (defaultFrom) {
|
|
6968
|
+
try {
|
|
6969
|
+
return parseDate(defaultFrom);
|
|
6970
|
+
} catch (e) {
|
|
6971
|
+
return parseDate(moment3(/* @__PURE__ */ new Date()).format("YYYY-MM-DD"));
|
|
6972
|
+
}
|
|
6973
|
+
}
|
|
6974
|
+
return parseDate(moment3(/* @__PURE__ */ new Date()).format("YYYY-MM-DD"));
|
|
6975
|
+
}), 2), fromDate = _useState111[0], setFromDate = _useState111[1];
|
|
6976
|
+
var _useState112 = _sliced_to_array(useState11(function() {
|
|
6977
|
+
if (defaultTo) {
|
|
6978
|
+
try {
|
|
6979
|
+
return parseDate(defaultTo);
|
|
6980
|
+
} catch (e) {
|
|
6981
|
+
return parseDate(moment3(/* @__PURE__ */ new Date()).format("YYYY-MM-DD"));
|
|
6982
|
+
}
|
|
6983
|
+
}
|
|
6984
|
+
return parseDate(moment3(/* @__PURE__ */ new Date()).format("YYYY-MM-DD"));
|
|
6985
|
+
}), 2), toDate = _useState112[0], setToDate = _useState112[1];
|
|
6986
|
+
var formatDateValue = function(date) {
|
|
6987
|
+
if (!date) return "";
|
|
6988
|
+
return "".concat(date.year, "-").concat(String(date.month).padStart(2, "0"), "-").concat(String(date.day).padStart(2, "0"));
|
|
6989
|
+
};
|
|
6990
|
+
var onSubmit = /*#__PURE__*/ function() {
|
|
6991
|
+
var _ref = _async_to_generator(function(e) {
|
|
6992
|
+
return _ts_generator(this, function(_state) {
|
|
6993
|
+
switch(_state.label){
|
|
6994
|
+
case 0:
|
|
6995
|
+
e.preventDefault();
|
|
6996
|
+
setIsLoading(true);
|
|
6997
|
+
return [
|
|
6998
|
+
4,
|
|
6999
|
+
submit(e)
|
|
7000
|
+
];
|
|
7001
|
+
case 1:
|
|
7002
|
+
_state.sent();
|
|
7003
|
+
setIsLoading(false);
|
|
7004
|
+
return [
|
|
7005
|
+
2
|
|
7006
|
+
];
|
|
7007
|
+
}
|
|
7008
|
+
});
|
|
7009
|
+
});
|
|
7010
|
+
return function onSubmit(e) {
|
|
7011
|
+
return _ref.apply(this, arguments);
|
|
7012
|
+
};
|
|
7013
|
+
}();
|
|
7014
|
+
return /* @__PURE__ */ jsx24(I18nProvider, {
|
|
7015
|
+
locale: direction === "rtl" ? "he-IL" : "en-US",
|
|
7016
|
+
children: /* @__PURE__ */ jsxs17("form", {
|
|
7017
|
+
style: {
|
|
7018
|
+
direction: direction
|
|
7019
|
+
},
|
|
7020
|
+
onSubmit: onSubmit,
|
|
7021
|
+
className: cn("w-full h-10 flex justify-start gap-3 items-center", formClassName),
|
|
7022
|
+
children: [
|
|
7023
|
+
/* @__PURE__ */ jsx24("input", {
|
|
7024
|
+
type: "hidden",
|
|
7025
|
+
name: "from",
|
|
7026
|
+
value: formatDateValue(fromDate)
|
|
7027
|
+
}),
|
|
7028
|
+
/* @__PURE__ */ jsx24("input", {
|
|
7029
|
+
type: "hidden",
|
|
7030
|
+
name: "to",
|
|
7031
|
+
value: formatDateValue(toDate)
|
|
7032
|
+
}),
|
|
7033
|
+
/* @__PURE__ */ jsxs17("label", {
|
|
7034
|
+
className: cn("center text-[14px] relative gap-2", labelsClassName),
|
|
7035
|
+
children: [
|
|
7036
|
+
fromText,
|
|
7037
|
+
/* @__PURE__ */ jsxs17(RACDatePicker, {
|
|
7038
|
+
value: fromDate,
|
|
7039
|
+
onChange: setFromDate,
|
|
7040
|
+
children: [
|
|
7041
|
+
/* @__PURE__ */ jsxs17("div", {
|
|
7042
|
+
className: "flex",
|
|
7043
|
+
children: [
|
|
7044
|
+
/* @__PURE__ */ jsx24(Group, {
|
|
7045
|
+
className: "w-[125px]",
|
|
7046
|
+
children: /* @__PURE__ */ jsx24(DateInput, {
|
|
7047
|
+
className: cn("w-[125px] text-[14px] py-[2px] px-1 rounded-[2px] border-black border-[1px] text-end", inputsClassName),
|
|
7048
|
+
unstyled: true
|
|
7049
|
+
})
|
|
7050
|
+
}),
|
|
7051
|
+
/* @__PURE__ */ jsx24(Button3, {
|
|
7052
|
+
className: "-ms-9 -me-px z-10 flex w-9 items-center justify-center rounded-e-md text-muted-foreground/80 outline-none transition-[color,box-shadow] hover:text-foreground data-focus-visible:border-ring data-focus-visible:ring-[3px] data-focus-visible:ring-ring/50",
|
|
7053
|
+
children: /* @__PURE__ */ jsx24(CalendarIcon, {
|
|
7054
|
+
size: 16
|
|
7055
|
+
})
|
|
7056
|
+
})
|
|
7057
|
+
]
|
|
7058
|
+
}),
|
|
7059
|
+
/* @__PURE__ */ jsx24(Popover2, {
|
|
7060
|
+
className: "data-[entering]:fade-in-0 data-[entering]:zoom-in-95 data-[exiting]:fade-out-0 data-[exiting]:zoom-out-95 data-[placement=bottom]:slide-in-from-top-2 data-[placement=left]:slide-in-from-right-2 data-[placement=right]:slide-in-from-left-2 data-[placement=top]:slide-in-from-bottom-2 z-50 rounded-lg border bg-background text-popover-foreground shadow-lg outline-hidden data-entering:animate-in data-exiting:animate-out",
|
|
7061
|
+
offset: 4,
|
|
7062
|
+
children: /* @__PURE__ */ jsx24(Dialog2, {
|
|
7063
|
+
className: "max-h-[inherit] overflow-auto p-2",
|
|
7064
|
+
children: /* @__PURE__ */ jsx24(Calendar, {})
|
|
7065
|
+
})
|
|
7066
|
+
})
|
|
7067
|
+
]
|
|
7068
|
+
})
|
|
7069
|
+
]
|
|
7070
|
+
}),
|
|
7071
|
+
/* @__PURE__ */ jsxs17("label", {
|
|
7072
|
+
className: cn("center text-[14px] relative gap-2", labelsClassName),
|
|
7073
|
+
children: [
|
|
7074
|
+
toText,
|
|
7075
|
+
/* @__PURE__ */ jsxs17(RACDatePicker, {
|
|
7076
|
+
value: toDate,
|
|
7077
|
+
onChange: setToDate,
|
|
7078
|
+
children: [
|
|
7079
|
+
/* @__PURE__ */ jsxs17("div", {
|
|
7080
|
+
className: "flex",
|
|
7081
|
+
children: [
|
|
7082
|
+
/* @__PURE__ */ jsx24(Group, {
|
|
7083
|
+
className: "w-[125px]",
|
|
7084
|
+
children: /* @__PURE__ */ jsx24(DateInput, {
|
|
7085
|
+
className: cn("w-[125px] text-[14px] py-[2px] px-1 rounded-[2px] border-black border-[1px] text-end", inputsClassName),
|
|
7086
|
+
unstyled: true
|
|
7087
|
+
})
|
|
7088
|
+
}),
|
|
7089
|
+
/* @__PURE__ */ jsx24(Button3, {
|
|
7090
|
+
className: "-ms-9 -me-px z-10 flex w-9 items-center justify-center rounded-e-md text-muted-foreground/80 outline-none transition-[color,box-shadow] hover:text-foreground data-focus-visible:border-ring data-focus-visible:ring-[3px] data-focus-visible:ring-ring/50",
|
|
7091
|
+
children: /* @__PURE__ */ jsx24(CalendarIcon, {
|
|
7092
|
+
size: 16
|
|
7093
|
+
})
|
|
7094
|
+
})
|
|
7095
|
+
]
|
|
7096
|
+
}),
|
|
7097
|
+
/* @__PURE__ */ jsx24(Popover2, {
|
|
7098
|
+
className: "data-[entering]:fade-in-0 data-[entering]:zoom-in-95 data-[exiting]:fade-out-0 data-[exiting]:zoom-out-95 data-[placement=bottom]:slide-in-from-top-2 data-[placement=left]:slide-in-from-right-2 data-[placement=right]:slide-in-from-left-2 data-[placement=top]:slide-in-from-bottom-2 z-50 rounded-lg border bg-background text-popover-foreground shadow-lg outline-hidden data-entering:animate-in data-exiting:animate-out",
|
|
7099
|
+
offset: 4,
|
|
7100
|
+
children: /* @__PURE__ */ jsx24(Dialog2, {
|
|
7101
|
+
className: "max-h-[inherit] overflow-auto p-2",
|
|
7102
|
+
children: /* @__PURE__ */ jsx24(Calendar, {})
|
|
7103
|
+
})
|
|
7104
|
+
})
|
|
7105
|
+
]
|
|
7106
|
+
})
|
|
7107
|
+
]
|
|
7108
|
+
}),
|
|
7109
|
+
/* @__PURE__ */ jsx24("button", {
|
|
7110
|
+
disabled: isLoading,
|
|
7111
|
+
style: buttonStyle,
|
|
7112
|
+
className: cn("bg-[#699a2c] text-[#fff] font-[500] w-[75px] h-[27px]", buttonClassName),
|
|
7113
|
+
type: "submit",
|
|
7114
|
+
children: isLoading ? /* @__PURE__ */ jsx24(Loader, {
|
|
7115
|
+
className: "pt-[2px]",
|
|
7116
|
+
size: 20,
|
|
7117
|
+
color: "#fff"
|
|
7118
|
+
}) : buttonText
|
|
7119
|
+
})
|
|
7120
|
+
]
|
|
7121
|
+
})
|
|
7122
|
+
});
|
|
7123
|
+
}
|
|
6857
7124
|
// src/components/CodeInput.tsx
|
|
6858
7125
|
import { OTPInput } from "input-otp";
|
|
6859
7126
|
import { useEffect as useEffect11, useRef as useRef9 } from "react";
|
|
@@ -6901,5 +7168,5 @@ function Slot2(props) {
|
|
|
6901
7168
|
})
|
|
6902
7169
|
});
|
|
6903
7170
|
}
|
|
6904
|
-
export { Badge, BooleanUi, Button, Checkbox, CheckboxContainer, CodeInput, ConfirmForm, DatePicker, DisplayAllRowsButton, DurationPicker, DurationUI, ElementLabel, ElementsContainer, ErrorBoundary, ExportToExcel, Filter, FormElementContainer, FormSeparator, GeoUi, Input, InputContainer, InternationalPhonePicker, LeftToRightDiv, Loader, LoginWithGoogleButton, MaxRowsLabel, ModularForm_default as ModularForm, MultiSelect, NumberUI, PhoneUI, ProgressComponent, Search, SelectContainer, SelectWithSearch, Summary, Table, TableBody, TableButton, TableCell, TableContext, TableHead, TableProvider, TableRow2 as TableRow, TextAreaContainer, TimesUI, Version, badgeVariants, buttonVariants, defaultFormElementBorderClassName, defaultFormElementContainerClassName, useDebounce, useSortValues };
|
|
7171
|
+
export { Badge, BooleanUi, Button, Checkbox, CheckboxContainer, CodeInput, ConfirmForm, DatePicker, DatePicker2, DisplayAllRowsButton, DurationPicker, DurationUI, ElementLabel, ElementsContainer, ErrorBoundary, ExportToExcel, Filter, FormElementContainer, FormSeparator, GeoUi, Input, InputContainer, InternationalPhonePicker, LeftToRightDiv, Loader, LoginWithGoogleButton, MaxRowsLabel, ModularForm_default as ModularForm, MultiSelect, NumberUI, PhoneUI, ProgressComponent, Search, SelectContainer, SelectWithSearch, Summary, Table, TableBody, TableButton, TableCell, TableContext, TableHead, TableProvider, TableRow2 as TableRow, TextAreaContainer, TimesUI, Version, badgeVariants, buttonVariants, defaultFormElementBorderClassName, defaultFormElementContainerClassName, useDebounce, useSortValues };
|
|
6905
7172
|
//# sourceMappingURL=index.mjs.map
|