akeyless-client-commons 1.1.83 → 1.1.85
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
|
},
|
|
@@ -6947,17 +6950,112 @@ var import_react18 = require("react");
|
|
|
6947
6950
|
var import_moment2 = __toESM(require("moment"));
|
|
6948
6951
|
var import_lucide_react7 = require("lucide-react");
|
|
6949
6952
|
var import_react_aria_components3 = require("react-aria-components");
|
|
6953
|
+
var import_date2 = require("@internationalized/date");
|
|
6950
6954
|
// src/components/ui/calendar-rac.tsx
|
|
6951
6955
|
var import_date = require("@internationalized/date");
|
|
6952
6956
|
var import_lucide_react6 = require("lucide-react");
|
|
6953
6957
|
var import_react_aria_components = require("react-aria-components");
|
|
6954
6958
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
6959
|
+
function CalendarHeader() {
|
|
6960
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("header", {
|
|
6961
|
+
className: "flex w-full items-center gap-1 pb-1",
|
|
6962
|
+
children: [
|
|
6963
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react_aria_components.Button, {
|
|
6964
|
+
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",
|
|
6965
|
+
slot: "previous",
|
|
6966
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react6.ChevronLeftIcon, {
|
|
6967
|
+
size: 16
|
|
6968
|
+
})
|
|
6969
|
+
}),
|
|
6970
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react_aria_components.Heading, {
|
|
6971
|
+
className: "grow text-center font-medium text-sm"
|
|
6972
|
+
}),
|
|
6973
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react_aria_components.Button, {
|
|
6974
|
+
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",
|
|
6975
|
+
slot: "next",
|
|
6976
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react6.ChevronRightIcon, {
|
|
6977
|
+
size: 16
|
|
6978
|
+
})
|
|
6979
|
+
})
|
|
6980
|
+
]
|
|
6981
|
+
});
|
|
6982
|
+
}
|
|
6983
|
+
function CalendarGridComponent(param) {
|
|
6984
|
+
var _param_isRange = param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange;
|
|
6985
|
+
var now = (0, import_date.today)((0, import_date.getLocalTimeZone)());
|
|
6986
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_react_aria_components.CalendarGrid, {
|
|
6987
|
+
children: [
|
|
6988
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react_aria_components.CalendarGridHeader, {
|
|
6989
|
+
children: function(day) {
|
|
6990
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react_aria_components.CalendarHeaderCell, {
|
|
6991
|
+
className: "size-9 rounded-md p-0 font-medium text-muted-foreground/80 text-xs",
|
|
6992
|
+
children: day
|
|
6993
|
+
});
|
|
6994
|
+
}
|
|
6995
|
+
}),
|
|
6996
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react_aria_components.CalendarGridBody, {
|
|
6997
|
+
className: "[&_td]:px-0 [&_td]:py-px",
|
|
6998
|
+
children: function(date) {
|
|
6999
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react_aria_components.CalendarCell, {
|
|
7000
|
+
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
|
|
7001
|
+
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
|
|
7002
|
+
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")),
|
|
7003
|
+
date: date
|
|
7004
|
+
});
|
|
7005
|
+
}
|
|
7006
|
+
})
|
|
7007
|
+
]
|
|
7008
|
+
});
|
|
7009
|
+
}
|
|
7010
|
+
function Calendar(_param) {
|
|
7011
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
7012
|
+
"className"
|
|
7013
|
+
]);
|
|
7014
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_react_aria_components.Calendar, _object_spread_props(_object_spread({}, props), {
|
|
7015
|
+
className: (0, import_react_aria_components.composeRenderProps)(className, function(className2) {
|
|
7016
|
+
return cn("w-fit", className2);
|
|
7017
|
+
}),
|
|
7018
|
+
children: [
|
|
7019
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarHeader, {}),
|
|
7020
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarGridComponent, {})
|
|
7021
|
+
]
|
|
7022
|
+
}));
|
|
7023
|
+
}
|
|
6955
7024
|
// src/components/ui/datefield-rac.tsx
|
|
6956
7025
|
var import_react_aria_components2 = require("react-aria-components");
|
|
6957
7026
|
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
7027
|
+
function DateSegment(_param) {
|
|
7028
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
7029
|
+
"className"
|
|
7030
|
+
]);
|
|
7031
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react_aria_components2.DateSegment, _object_spread_props(_object_spread({
|
|
7032
|
+
className: (0, import_react_aria_components2.composeRenderProps)(className, function(className2) {
|
|
7033
|
+
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);
|
|
7034
|
+
})
|
|
7035
|
+
}, props), {
|
|
7036
|
+
"data-invalid": true
|
|
7037
|
+
}));
|
|
7038
|
+
}
|
|
7039
|
+
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";
|
|
7040
|
+
function DateInput(_param) {
|
|
7041
|
+
var className = _param.className, _param_unstyled = _param.unstyled, unstyled = _param_unstyled === void 0 ? false : _param_unstyled, props = _object_without_properties(_param, [
|
|
7042
|
+
"className",
|
|
7043
|
+
"unstyled"
|
|
7044
|
+
]);
|
|
7045
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react_aria_components2.DateInput, _object_spread_props(_object_spread({
|
|
7046
|
+
className: (0, import_react_aria_components2.composeRenderProps)(className, function(className2) {
|
|
7047
|
+
return cn(!unstyled && dateInputStyle, className2);
|
|
7048
|
+
})
|
|
7049
|
+
}, props), {
|
|
7050
|
+
children: function(segment) {
|
|
7051
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DateSegment, {
|
|
7052
|
+
segment: segment
|
|
7053
|
+
});
|
|
7054
|
+
}
|
|
7055
|
+
}));
|
|
7056
|
+
}
|
|
6958
7057
|
// src/components/forms/index.tsx
|
|
6959
7058
|
var import_react_aria_components4 = require("react-aria-components");
|
|
6960
|
-
var import_date2 = require("@internationalized/date");
|
|
6961
7059
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
6962
7060
|
var ConfirmForm = function(param) {
|
|
6963
7061
|
var onV = param.onV, onX = param.onX, _param_headline = param.headline, headline = _param_headline === void 0 ? "" : _param_headline, _param_direction = param.direction, direction = _param_direction === void 0 ? "rtl" : _param_direction, _param_containerClassName = param.containerClassName, containerClassName = _param_containerClassName === void 0 ? "" : _param_containerClassName, _param_buttonsContainerClassName = param.buttonsContainerClassName, buttonsContainerClassName = _param_buttonsContainerClassName === void 0 ? "" : _param_buttonsContainerClassName, _param_headlineClassName = param.headlineClassName, headlineClassName = _param_headlineClassName === void 0 ? "" : _param_headlineClassName, _param_cancelButtonClassName = param.cancelButtonClassName, cancelButtonClassName = _param_cancelButtonClassName === void 0 ? "" : _param_cancelButtonClassName, _param_confirmButtonClassName = param.confirmButtonClassName, confirmButtonClassName = _param_confirmButtonClassName === void 0 ? "" : _param_confirmButtonClassName, _param_cancelButtonProps = param.cancelButtonProps, cancelButtonProps = _param_cancelButtonProps === void 0 ? {} : _param_cancelButtonProps, _param_confirmButtonProps = param.confirmButtonProps, confirmButtonProps = _param_confirmButtonProps === void 0 ? {} : _param_confirmButtonProps, cancelElement = param.cancelElement, confirmElement = param.confirmElement;
|
|
@@ -7076,6 +7174,150 @@ 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 onSubmit = /*#__PURE__*/ function() {
|
|
7192
|
+
var _ref = _async_to_generator(function(e) {
|
|
7193
|
+
return _ts_generator(this, function(_state) {
|
|
7194
|
+
switch(_state.label){
|
|
7195
|
+
case 0:
|
|
7196
|
+
e.preventDefault();
|
|
7197
|
+
setIsLoading(true);
|
|
7198
|
+
return [
|
|
7199
|
+
4,
|
|
7200
|
+
submit(e)
|
|
7201
|
+
];
|
|
7202
|
+
case 1:
|
|
7203
|
+
_state.sent();
|
|
7204
|
+
setIsLoading(false);
|
|
7205
|
+
return [
|
|
7206
|
+
2
|
|
7207
|
+
];
|
|
7208
|
+
}
|
|
7209
|
+
});
|
|
7210
|
+
});
|
|
7211
|
+
return function onSubmit(e) {
|
|
7212
|
+
return _ref.apply(this, arguments);
|
|
7213
|
+
};
|
|
7214
|
+
}();
|
|
7215
|
+
var getDefaultValue = function(dateStr) {
|
|
7216
|
+
if (dateStr) {
|
|
7217
|
+
try {
|
|
7218
|
+
return (0, import_date2.parseDate)(dateStr);
|
|
7219
|
+
} catch (e) {
|
|
7220
|
+
return (0, import_date2.today)((0, import_date2.getLocalTimeZone)());
|
|
7221
|
+
}
|
|
7222
|
+
}
|
|
7223
|
+
return (0, import_date2.today)((0, import_date2.getLocalTimeZone)());
|
|
7224
|
+
};
|
|
7225
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_aria_components4.I18nProvider, {
|
|
7226
|
+
locale: direction === "rtl" ? "he-IL" : "en-US",
|
|
7227
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("form", {
|
|
7228
|
+
style: {
|
|
7229
|
+
direction: direction
|
|
7230
|
+
},
|
|
7231
|
+
onSubmit: onSubmit,
|
|
7232
|
+
className: cn("w-full h-10 flex justify-start gap-3 items-center", formClassName),
|
|
7233
|
+
children: [
|
|
7234
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_react_aria_components3.DatePicker, {
|
|
7235
|
+
className: cn("flex items-center gap-2", labelsClassName),
|
|
7236
|
+
name: "from",
|
|
7237
|
+
defaultValue: getDefaultValue(defaultFrom),
|
|
7238
|
+
children: [
|
|
7239
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_aria_components3.Label, {
|
|
7240
|
+
className: "font-medium text-foreground text-sm whitespace-nowrap",
|
|
7241
|
+
children: fromText
|
|
7242
|
+
}),
|
|
7243
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", {
|
|
7244
|
+
className: "flex",
|
|
7245
|
+
children: [
|
|
7246
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_aria_components3.Group, {
|
|
7247
|
+
className: cn("w-full border rounded-md bg-background", inputsClassName),
|
|
7248
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DateInput, {
|
|
7249
|
+
className: "px-2 py-1"
|
|
7250
|
+
})
|
|
7251
|
+
}),
|
|
7252
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_aria_components3.Button, {
|
|
7253
|
+
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",
|
|
7254
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react7.CalendarIcon, {
|
|
7255
|
+
size: 16
|
|
7256
|
+
})
|
|
7257
|
+
})
|
|
7258
|
+
]
|
|
7259
|
+
}),
|
|
7260
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_aria_components3.Popover, {
|
|
7261
|
+
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",
|
|
7262
|
+
offset: 4,
|
|
7263
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_aria_components3.Dialog, {
|
|
7264
|
+
className: "max-h-[inherit] overflow-auto p-2",
|
|
7265
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Calendar, {})
|
|
7266
|
+
})
|
|
7267
|
+
})
|
|
7268
|
+
]
|
|
7269
|
+
}),
|
|
7270
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_react_aria_components3.DatePicker, {
|
|
7271
|
+
className: cn("flex items-center gap-2", labelsClassName),
|
|
7272
|
+
name: "to",
|
|
7273
|
+
defaultValue: getDefaultValue(defaultTo),
|
|
7274
|
+
children: [
|
|
7275
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_aria_components3.Label, {
|
|
7276
|
+
className: "font-medium text-foreground text-sm whitespace-nowrap",
|
|
7277
|
+
children: toText
|
|
7278
|
+
}),
|
|
7279
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", {
|
|
7280
|
+
className: "flex",
|
|
7281
|
+
children: [
|
|
7282
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_aria_components3.Group, {
|
|
7283
|
+
className: cn("w-full border rounded-md bg-background", inputsClassName),
|
|
7284
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DateInput, {
|
|
7285
|
+
className: "px-2 py-1"
|
|
7286
|
+
})
|
|
7287
|
+
}),
|
|
7288
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_aria_components3.Button, {
|
|
7289
|
+
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",
|
|
7290
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react7.CalendarIcon, {
|
|
7291
|
+
size: 16
|
|
7292
|
+
})
|
|
7293
|
+
})
|
|
7294
|
+
]
|
|
7295
|
+
}),
|
|
7296
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_aria_components3.Popover, {
|
|
7297
|
+
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",
|
|
7298
|
+
offset: 4,
|
|
7299
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_aria_components3.Dialog, {
|
|
7300
|
+
className: "max-h-[inherit] overflow-auto p-2",
|
|
7301
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Calendar, {})
|
|
7302
|
+
})
|
|
7303
|
+
})
|
|
7304
|
+
]
|
|
7305
|
+
}),
|
|
7306
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("button", {
|
|
7307
|
+
disabled: isLoading,
|
|
7308
|
+
style: buttonStyle,
|
|
7309
|
+
className: cn("bg-[#699a2c] text-[#fff] font-[500] w-[75px] h-[27px]", buttonClassName),
|
|
7310
|
+
type: "submit",
|
|
7311
|
+
children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Loader, {
|
|
7312
|
+
className: "pt-[2px]",
|
|
7313
|
+
size: 20,
|
|
7314
|
+
color: "#fff"
|
|
7315
|
+
}) : buttonText
|
|
7316
|
+
})
|
|
7317
|
+
]
|
|
7318
|
+
})
|
|
7319
|
+
});
|
|
7320
|
+
}
|
|
7079
7321
|
// src/components/CodeInput.tsx
|
|
7080
7322
|
var import_input_otp = require("input-otp");
|
|
7081
7323
|
var import_react19 = require("react");
|
|
@@ -7133,6 +7375,7 @@ function Slot2(props) {
|
|
|
7133
7375
|
CodeInput: CodeInput,
|
|
7134
7376
|
ConfirmForm: ConfirmForm,
|
|
7135
7377
|
DatePicker: DatePicker,
|
|
7378
|
+
DatePicker2: DatePicker2,
|
|
7136
7379
|
DisplayAllRowsButton: DisplayAllRowsButton,
|
|
7137
7380
|
DurationPicker: DurationPicker,
|
|
7138
7381
|
DurationUI: DurationUI,
|
|
@@ -6724,18 +6724,113 @@ var ModularForm_default = ModularForm;
|
|
|
6724
6724
|
import { useState as useState11 } from "react";
|
|
6725
6725
|
import moment3 from "moment";
|
|
6726
6726
|
import { CalendarIcon } from "lucide-react";
|
|
6727
|
-
import { Button as Button3, DatePicker as RACDatePicker, Dialog as Dialog2, Group, Popover as Popover2 } from "react-aria-components";
|
|
6727
|
+
import { Button as Button3, DatePicker as RACDatePicker, Dialog as Dialog2, Group, Label, Popover as Popover2 } from "react-aria-components";
|
|
6728
|
+
import { parseDate, today as today2, getLocalTimeZone as getLocalTimeZone2 } from "@internationalized/date";
|
|
6728
6729
|
// src/components/ui/calendar-rac.tsx
|
|
6729
6730
|
import { getLocalTimeZone, today } from "@internationalized/date";
|
|
6730
6731
|
import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
|
|
6731
6732
|
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
6733
|
import { jsx as jsx22, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
6734
|
+
function CalendarHeader() {
|
|
6735
|
+
return /* @__PURE__ */ jsxs16("header", {
|
|
6736
|
+
className: "flex w-full items-center gap-1 pb-1",
|
|
6737
|
+
children: [
|
|
6738
|
+
/* @__PURE__ */ jsx22(Button2, {
|
|
6739
|
+
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",
|
|
6740
|
+
slot: "previous",
|
|
6741
|
+
children: /* @__PURE__ */ jsx22(ChevronLeftIcon, {
|
|
6742
|
+
size: 16
|
|
6743
|
+
})
|
|
6744
|
+
}),
|
|
6745
|
+
/* @__PURE__ */ jsx22(HeadingRac, {
|
|
6746
|
+
className: "grow text-center font-medium text-sm"
|
|
6747
|
+
}),
|
|
6748
|
+
/* @__PURE__ */ jsx22(Button2, {
|
|
6749
|
+
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",
|
|
6750
|
+
slot: "next",
|
|
6751
|
+
children: /* @__PURE__ */ jsx22(ChevronRightIcon, {
|
|
6752
|
+
size: 16
|
|
6753
|
+
})
|
|
6754
|
+
})
|
|
6755
|
+
]
|
|
6756
|
+
});
|
|
6757
|
+
}
|
|
6758
|
+
function CalendarGridComponent(param) {
|
|
6759
|
+
var _param_isRange = param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange;
|
|
6760
|
+
var now = today(getLocalTimeZone());
|
|
6761
|
+
return /* @__PURE__ */ jsxs16(CalendarGridRac, {
|
|
6762
|
+
children: [
|
|
6763
|
+
/* @__PURE__ */ jsx22(CalendarGridHeaderRac, {
|
|
6764
|
+
children: function(day) {
|
|
6765
|
+
return /* @__PURE__ */ jsx22(CalendarHeaderCellRac, {
|
|
6766
|
+
className: "size-9 rounded-md p-0 font-medium text-muted-foreground/80 text-xs",
|
|
6767
|
+
children: day
|
|
6768
|
+
});
|
|
6769
|
+
}
|
|
6770
|
+
}),
|
|
6771
|
+
/* @__PURE__ */ jsx22(CalendarGridBodyRac, {
|
|
6772
|
+
className: "[&_td]:px-0 [&_td]:py-px",
|
|
6773
|
+
children: function(date) {
|
|
6774
|
+
return /* @__PURE__ */ jsx22(CalendarCellRac, {
|
|
6775
|
+
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
|
|
6776
|
+
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
|
|
6777
|
+
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")),
|
|
6778
|
+
date: date
|
|
6779
|
+
});
|
|
6780
|
+
}
|
|
6781
|
+
})
|
|
6782
|
+
]
|
|
6783
|
+
});
|
|
6784
|
+
}
|
|
6785
|
+
function Calendar(_param) {
|
|
6786
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
6787
|
+
"className"
|
|
6788
|
+
]);
|
|
6789
|
+
return /* @__PURE__ */ jsxs16(CalendarRac, _object_spread_props(_object_spread({}, props), {
|
|
6790
|
+
className: composeRenderProps(className, function(className2) {
|
|
6791
|
+
return cn("w-fit", className2);
|
|
6792
|
+
}),
|
|
6793
|
+
children: [
|
|
6794
|
+
/* @__PURE__ */ jsx22(CalendarHeader, {}),
|
|
6795
|
+
/* @__PURE__ */ jsx22(CalendarGridComponent, {})
|
|
6796
|
+
]
|
|
6797
|
+
}));
|
|
6798
|
+
}
|
|
6733
6799
|
// src/components/ui/datefield-rac.tsx
|
|
6734
6800
|
import { composeRenderProps as composeRenderProps2, DateField as DateFieldRac, DateInput as DateInputRac, DateSegment as DateSegmentRac, TimeField as TimeFieldRac } from "react-aria-components";
|
|
6735
6801
|
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
6802
|
+
function DateSegment(_param) {
|
|
6803
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
6804
|
+
"className"
|
|
6805
|
+
]);
|
|
6806
|
+
return /* @__PURE__ */ jsx23(DateSegmentRac, _object_spread_props(_object_spread({
|
|
6807
|
+
className: composeRenderProps2(className, function(className2) {
|
|
6808
|
+
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);
|
|
6809
|
+
})
|
|
6810
|
+
}, props), {
|
|
6811
|
+
"data-invalid": true
|
|
6812
|
+
}));
|
|
6813
|
+
}
|
|
6814
|
+
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";
|
|
6815
|
+
function DateInput(_param) {
|
|
6816
|
+
var className = _param.className, _param_unstyled = _param.unstyled, unstyled = _param_unstyled === void 0 ? false : _param_unstyled, props = _object_without_properties(_param, [
|
|
6817
|
+
"className",
|
|
6818
|
+
"unstyled"
|
|
6819
|
+
]);
|
|
6820
|
+
return /* @__PURE__ */ jsx23(DateInputRac, _object_spread_props(_object_spread({
|
|
6821
|
+
className: composeRenderProps2(className, function(className2) {
|
|
6822
|
+
return cn(!unstyled && dateInputStyle, className2);
|
|
6823
|
+
})
|
|
6824
|
+
}, props), {
|
|
6825
|
+
children: function(segment) {
|
|
6826
|
+
return /* @__PURE__ */ jsx23(DateSegment, {
|
|
6827
|
+
segment: segment
|
|
6828
|
+
});
|
|
6829
|
+
}
|
|
6830
|
+
}));
|
|
6831
|
+
}
|
|
6736
6832
|
// src/components/forms/index.tsx
|
|
6737
6833
|
import { I18nProvider } from "react-aria-components";
|
|
6738
|
-
import { parseDate } from "@internationalized/date";
|
|
6739
6834
|
import { jsx as jsx24, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
6740
6835
|
var ConfirmForm = function(param) {
|
|
6741
6836
|
var onV = param.onV, onX = param.onX, _param_headline = param.headline, headline = _param_headline === void 0 ? "" : _param_headline, _param_direction = param.direction, direction = _param_direction === void 0 ? "rtl" : _param_direction, _param_containerClassName = param.containerClassName, containerClassName = _param_containerClassName === void 0 ? "" : _param_containerClassName, _param_buttonsContainerClassName = param.buttonsContainerClassName, buttonsContainerClassName = _param_buttonsContainerClassName === void 0 ? "" : _param_buttonsContainerClassName, _param_headlineClassName = param.headlineClassName, headlineClassName = _param_headlineClassName === void 0 ? "" : _param_headlineClassName, _param_cancelButtonClassName = param.cancelButtonClassName, cancelButtonClassName = _param_cancelButtonClassName === void 0 ? "" : _param_cancelButtonClassName, _param_confirmButtonClassName = param.confirmButtonClassName, confirmButtonClassName = _param_confirmButtonClassName === void 0 ? "" : _param_confirmButtonClassName, _param_cancelButtonProps = param.cancelButtonProps, cancelButtonProps = _param_cancelButtonProps === void 0 ? {} : _param_cancelButtonProps, _param_confirmButtonProps = param.confirmButtonProps, confirmButtonProps = _param_confirmButtonProps === void 0 ? {} : _param_confirmButtonProps, cancelElement = param.cancelElement, confirmElement = param.confirmElement;
|
|
@@ -6854,6 +6949,150 @@ 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 onSubmit = /*#__PURE__*/ function() {
|
|
6967
|
+
var _ref = _async_to_generator(function(e) {
|
|
6968
|
+
return _ts_generator(this, function(_state) {
|
|
6969
|
+
switch(_state.label){
|
|
6970
|
+
case 0:
|
|
6971
|
+
e.preventDefault();
|
|
6972
|
+
setIsLoading(true);
|
|
6973
|
+
return [
|
|
6974
|
+
4,
|
|
6975
|
+
submit(e)
|
|
6976
|
+
];
|
|
6977
|
+
case 1:
|
|
6978
|
+
_state.sent();
|
|
6979
|
+
setIsLoading(false);
|
|
6980
|
+
return [
|
|
6981
|
+
2
|
|
6982
|
+
];
|
|
6983
|
+
}
|
|
6984
|
+
});
|
|
6985
|
+
});
|
|
6986
|
+
return function onSubmit(e) {
|
|
6987
|
+
return _ref.apply(this, arguments);
|
|
6988
|
+
};
|
|
6989
|
+
}();
|
|
6990
|
+
var getDefaultValue = function(dateStr) {
|
|
6991
|
+
if (dateStr) {
|
|
6992
|
+
try {
|
|
6993
|
+
return parseDate(dateStr);
|
|
6994
|
+
} catch (e) {
|
|
6995
|
+
return today2(getLocalTimeZone2());
|
|
6996
|
+
}
|
|
6997
|
+
}
|
|
6998
|
+
return today2(getLocalTimeZone2());
|
|
6999
|
+
};
|
|
7000
|
+
return /* @__PURE__ */ jsx24(I18nProvider, {
|
|
7001
|
+
locale: direction === "rtl" ? "he-IL" : "en-US",
|
|
7002
|
+
children: /* @__PURE__ */ jsxs17("form", {
|
|
7003
|
+
style: {
|
|
7004
|
+
direction: direction
|
|
7005
|
+
},
|
|
7006
|
+
onSubmit: onSubmit,
|
|
7007
|
+
className: cn("w-full h-10 flex justify-start gap-3 items-center", formClassName),
|
|
7008
|
+
children: [
|
|
7009
|
+
/* @__PURE__ */ jsxs17(RACDatePicker, {
|
|
7010
|
+
className: cn("flex items-center gap-2", labelsClassName),
|
|
7011
|
+
name: "from",
|
|
7012
|
+
defaultValue: getDefaultValue(defaultFrom),
|
|
7013
|
+
children: [
|
|
7014
|
+
/* @__PURE__ */ jsx24(Label, {
|
|
7015
|
+
className: "font-medium text-foreground text-sm whitespace-nowrap",
|
|
7016
|
+
children: fromText
|
|
7017
|
+
}),
|
|
7018
|
+
/* @__PURE__ */ jsxs17("div", {
|
|
7019
|
+
className: "flex",
|
|
7020
|
+
children: [
|
|
7021
|
+
/* @__PURE__ */ jsx24(Group, {
|
|
7022
|
+
className: cn("w-full border rounded-md bg-background", inputsClassName),
|
|
7023
|
+
children: /* @__PURE__ */ jsx24(DateInput, {
|
|
7024
|
+
className: "px-2 py-1"
|
|
7025
|
+
})
|
|
7026
|
+
}),
|
|
7027
|
+
/* @__PURE__ */ jsx24(Button3, {
|
|
7028
|
+
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",
|
|
7029
|
+
children: /* @__PURE__ */ jsx24(CalendarIcon, {
|
|
7030
|
+
size: 16
|
|
7031
|
+
})
|
|
7032
|
+
})
|
|
7033
|
+
]
|
|
7034
|
+
}),
|
|
7035
|
+
/* @__PURE__ */ jsx24(Popover2, {
|
|
7036
|
+
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",
|
|
7037
|
+
offset: 4,
|
|
7038
|
+
children: /* @__PURE__ */ jsx24(Dialog2, {
|
|
7039
|
+
className: "max-h-[inherit] overflow-auto p-2",
|
|
7040
|
+
children: /* @__PURE__ */ jsx24(Calendar, {})
|
|
7041
|
+
})
|
|
7042
|
+
})
|
|
7043
|
+
]
|
|
7044
|
+
}),
|
|
7045
|
+
/* @__PURE__ */ jsxs17(RACDatePicker, {
|
|
7046
|
+
className: cn("flex items-center gap-2", labelsClassName),
|
|
7047
|
+
name: "to",
|
|
7048
|
+
defaultValue: getDefaultValue(defaultTo),
|
|
7049
|
+
children: [
|
|
7050
|
+
/* @__PURE__ */ jsx24(Label, {
|
|
7051
|
+
className: "font-medium text-foreground text-sm whitespace-nowrap",
|
|
7052
|
+
children: toText
|
|
7053
|
+
}),
|
|
7054
|
+
/* @__PURE__ */ jsxs17("div", {
|
|
7055
|
+
className: "flex",
|
|
7056
|
+
children: [
|
|
7057
|
+
/* @__PURE__ */ jsx24(Group, {
|
|
7058
|
+
className: cn("w-full border rounded-md bg-background", inputsClassName),
|
|
7059
|
+
children: /* @__PURE__ */ jsx24(DateInput, {
|
|
7060
|
+
className: "px-2 py-1"
|
|
7061
|
+
})
|
|
7062
|
+
}),
|
|
7063
|
+
/* @__PURE__ */ jsx24(Button3, {
|
|
7064
|
+
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",
|
|
7065
|
+
children: /* @__PURE__ */ jsx24(CalendarIcon, {
|
|
7066
|
+
size: 16
|
|
7067
|
+
})
|
|
7068
|
+
})
|
|
7069
|
+
]
|
|
7070
|
+
}),
|
|
7071
|
+
/* @__PURE__ */ jsx24(Popover2, {
|
|
7072
|
+
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",
|
|
7073
|
+
offset: 4,
|
|
7074
|
+
children: /* @__PURE__ */ jsx24(Dialog2, {
|
|
7075
|
+
className: "max-h-[inherit] overflow-auto p-2",
|
|
7076
|
+
children: /* @__PURE__ */ jsx24(Calendar, {})
|
|
7077
|
+
})
|
|
7078
|
+
})
|
|
7079
|
+
]
|
|
7080
|
+
}),
|
|
7081
|
+
/* @__PURE__ */ jsx24("button", {
|
|
7082
|
+
disabled: isLoading,
|
|
7083
|
+
style: buttonStyle,
|
|
7084
|
+
className: cn("bg-[#699a2c] text-[#fff] font-[500] w-[75px] h-[27px]", buttonClassName),
|
|
7085
|
+
type: "submit",
|
|
7086
|
+
children: isLoading ? /* @__PURE__ */ jsx24(Loader, {
|
|
7087
|
+
className: "pt-[2px]",
|
|
7088
|
+
size: 20,
|
|
7089
|
+
color: "#fff"
|
|
7090
|
+
}) : buttonText
|
|
7091
|
+
})
|
|
7092
|
+
]
|
|
7093
|
+
})
|
|
7094
|
+
});
|
|
7095
|
+
}
|
|
6857
7096
|
// src/components/CodeInput.tsx
|
|
6858
7097
|
import { OTPInput } from "input-otp";
|
|
6859
7098
|
import { useEffect as useEffect11, useRef as useRef9 } from "react";
|
|
@@ -6901,5 +7140,5 @@ function Slot2(props) {
|
|
|
6901
7140
|
})
|
|
6902
7141
|
});
|
|
6903
7142
|
}
|
|
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 };
|
|
7143
|
+
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
7144
|
//# sourceMappingURL=index.mjs.map
|