akeyless-client-commons 1.1.97 → 1.1.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.css.map +1 -1
- package/dist/components/index.d.mts +2 -2
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +145 -145
- package/dist/components/index.mjs +144 -144
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -5938,7 +5938,7 @@ var FlagComponent = function(param) {
|
|
|
5938
5938
|
});
|
|
5939
5939
|
};
|
|
5940
5940
|
// src/components/forms/ModularForm/formElements.tsx
|
|
5941
|
-
import { Button as
|
|
5941
|
+
import { Button as Button3, DatePicker as RACDatePicker, Dialog as Dialog2, Group, Popover as Popover2 } from "react-aria-components";
|
|
5942
5942
|
// src/components/ui/datefield-rac.tsx
|
|
5943
5943
|
import { composeRenderProps, DateField as DateFieldRac, DateInput as DateInputRac, DateSegment as DateSegmentRac, TimeField as TimeFieldRac } from "react-aria-components";
|
|
5944
5944
|
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
@@ -5972,10 +5972,80 @@ function DateInput(_param) {
|
|
|
5972
5972
|
}
|
|
5973
5973
|
}));
|
|
5974
5974
|
}
|
|
5975
|
-
// src/components/
|
|
5976
|
-
import {
|
|
5977
|
-
import {
|
|
5975
|
+
// src/components/ui/calendar-rac.tsx
|
|
5976
|
+
import { getLocalTimeZone, today } from "@internationalized/date";
|
|
5977
|
+
import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
|
|
5978
|
+
import { Button as Button2, CalendarCell as CalendarCellRac, CalendarGridBody as CalendarGridBodyRac, CalendarGridHeader as CalendarGridHeaderRac, CalendarGrid as CalendarGridRac, CalendarHeaderCell as CalendarHeaderCellRac, Calendar as CalendarRac, composeRenderProps as composeRenderProps2, Heading as HeadingRac, RangeCalendar as RangeCalendarRac } from "react-aria-components";
|
|
5978
5979
|
import { jsx as jsx21, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
5980
|
+
function CalendarHeader() {
|
|
5981
|
+
return /* @__PURE__ */ jsxs14("header", {
|
|
5982
|
+
className: "flex w-full items-center gap-1 pb-1",
|
|
5983
|
+
children: [
|
|
5984
|
+
/* @__PURE__ */ jsx21(Button2, {
|
|
5985
|
+
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",
|
|
5986
|
+
slot: "previous",
|
|
5987
|
+
children: /* @__PURE__ */ jsx21(ChevronLeftIcon, {
|
|
5988
|
+
size: 16
|
|
5989
|
+
})
|
|
5990
|
+
}),
|
|
5991
|
+
/* @__PURE__ */ jsx21(HeadingRac, {
|
|
5992
|
+
className: "grow text-center font-medium text-sm"
|
|
5993
|
+
}),
|
|
5994
|
+
/* @__PURE__ */ jsx21(Button2, {
|
|
5995
|
+
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",
|
|
5996
|
+
slot: "next",
|
|
5997
|
+
children: /* @__PURE__ */ jsx21(ChevronRightIcon, {
|
|
5998
|
+
size: 16
|
|
5999
|
+
})
|
|
6000
|
+
})
|
|
6001
|
+
]
|
|
6002
|
+
});
|
|
6003
|
+
}
|
|
6004
|
+
function CalendarGridComponent(param) {
|
|
6005
|
+
var _param_isRange = param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange;
|
|
6006
|
+
var now = today(getLocalTimeZone());
|
|
6007
|
+
return /* @__PURE__ */ jsxs14(CalendarGridRac, {
|
|
6008
|
+
children: [
|
|
6009
|
+
/* @__PURE__ */ jsx21(CalendarGridHeaderRac, {
|
|
6010
|
+
children: function(day) {
|
|
6011
|
+
return /* @__PURE__ */ jsx21(CalendarHeaderCellRac, {
|
|
6012
|
+
className: "size-9 rounded-md p-0 font-medium text-muted-foreground/80 text-xs",
|
|
6013
|
+
children: day
|
|
6014
|
+
});
|
|
6015
|
+
}
|
|
6016
|
+
}),
|
|
6017
|
+
/* @__PURE__ */ jsx21(CalendarGridBodyRac, {
|
|
6018
|
+
className: "[&_td]:px-0 [&_td]:py-px",
|
|
6019
|
+
children: function(date) {
|
|
6020
|
+
return /* @__PURE__ */ jsx21(CalendarCellRac, {
|
|
6021
|
+
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
|
|
6022
|
+
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
|
|
6023
|
+
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")),
|
|
6024
|
+
date: date
|
|
6025
|
+
});
|
|
6026
|
+
}
|
|
6027
|
+
})
|
|
6028
|
+
]
|
|
6029
|
+
});
|
|
6030
|
+
}
|
|
6031
|
+
function Calendar(_param) {
|
|
6032
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
6033
|
+
"className"
|
|
6034
|
+
]);
|
|
6035
|
+
return /* @__PURE__ */ jsxs14(CalendarRac, _object_spread_props(_object_spread({}, props), {
|
|
6036
|
+
className: composeRenderProps2(className, function(className2) {
|
|
6037
|
+
return cn("w-fit", className2);
|
|
6038
|
+
}),
|
|
6039
|
+
children: [
|
|
6040
|
+
/* @__PURE__ */ jsx21(CalendarHeader, {}),
|
|
6041
|
+
/* @__PURE__ */ jsx21(CalendarGridComponent, {})
|
|
6042
|
+
]
|
|
6043
|
+
}));
|
|
6044
|
+
}
|
|
6045
|
+
// src/components/forms/ModularForm/formElements.tsx
|
|
6046
|
+
import { CalendarIcon } from "lucide-react";
|
|
6047
|
+
import { parseDate, today as today2, getLocalTimeZone as getLocalTimeZone2 } from "@internationalized/date";
|
|
6048
|
+
import { jsx as jsx22, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
5979
6049
|
var defaultFormElementContainerClassName = "flex justify-start items-center gap-3 w-full";
|
|
5980
6050
|
var defaultFormElementBorderClassName = "border-[1px] border-gray-300 hover:border-black rounded-sm";
|
|
5981
6051
|
var useSortValues = function(options, sortDirection, sortAsNumber) {
|
|
@@ -6033,8 +6103,8 @@ var InputContainer = function(param) {
|
|
|
6033
6103
|
labelStyle,
|
|
6034
6104
|
elementsCommonClassName
|
|
6035
6105
|
]);
|
|
6036
|
-
return /* @__PURE__ */
|
|
6037
|
-
children: /* @__PURE__ */
|
|
6106
|
+
return /* @__PURE__ */ jsx22(FormElementContainer, _object_spread_props(_object_spread({}, containerProps), {
|
|
6107
|
+
children: /* @__PURE__ */ jsx22("input", _object_spread_props(_object_spread(_object_spread_props(_object_spread({}, props), {
|
|
6038
6108
|
title: title,
|
|
6039
6109
|
minLength: minLength,
|
|
6040
6110
|
placeholder: placeholder,
|
|
@@ -6053,7 +6123,7 @@ var InputContainer = function(param) {
|
|
|
6053
6123
|
}));
|
|
6054
6124
|
};
|
|
6055
6125
|
var DateInputContainer = function(param) {
|
|
6056
|
-
var _param_name = param.name, name = _param_name === void 0 ? "" : _param_name, _param_labelContent = param.labelContent, labelContent = _param_labelContent === void 0 ? "" : _param_labelContent, _param_defaultValue = param.defaultValue, defaultValue = _param_defaultValue === void 0 ? "" : _param_defaultValue, _param_containerClassName = param.containerClassName, containerClassName = _param_containerClassName === void 0 ? "" : _param_containerClassName, _param_labelClassName = param.labelClassName, labelClassName = _param_labelClassName === void 0 ? "" : _param_labelClassName, _param_elementClassName = param.elementClassName, elementClassName = _param_elementClassName === void 0 ? "" : _param_elementClassName, _param_required = param.required, required = _param_required === void 0 ? false : _param_required, placeholder = param.placeholder, props = param.props, onKeyDown = param.onKeyDown, onChange = param.onChange, direction = param.direction, value = param.value, labelWithDots = param.labelWithDots, labelsCommonClassName = param.labelsCommonClassName, elementsCommonClassName = param.elementsCommonClassName, title = param.title, labelStyle = param.labelStyle,
|
|
6126
|
+
var _param_name = param.name, name = _param_name === void 0 ? "" : _param_name, _param_labelContent = param.labelContent, labelContent = _param_labelContent === void 0 ? "" : _param_labelContent, _param_defaultValue = param.defaultValue, defaultValue = _param_defaultValue === void 0 ? "" : _param_defaultValue, _param_containerClassName = param.containerClassName, containerClassName = _param_containerClassName === void 0 ? "" : _param_containerClassName, _param_labelClassName = param.labelClassName, labelClassName = _param_labelClassName === void 0 ? "" : _param_labelClassName, _param_elementClassName = param.elementClassName, elementClassName = _param_elementClassName === void 0 ? "" : _param_elementClassName, _param_required = param.required, required = _param_required === void 0 ? false : _param_required, placeholder = param.placeholder, props = param.props, onKeyDown = param.onKeyDown, onChange = param.onChange, direction = param.direction, value = param.value, labelWithDots = param.labelWithDots, labelsCommonClassName = param.labelsCommonClassName, elementsCommonClassName = param.elementsCommonClassName, title = param.title, labelStyle = param.labelStyle, _param_calendarClassName = param.calendarClassName, calendarClassName = _param_calendarClassName === void 0 ? "" : _param_calendarClassName, _param_inputClassName = param.inputClassName, inputClassName = _param_inputClassName === void 0 ? "" : _param_inputClassName;
|
|
6057
6127
|
var containerProps = useMemo9(function() {
|
|
6058
6128
|
return {
|
|
6059
6129
|
containerClassName: containerClassName,
|
|
@@ -6084,10 +6154,10 @@ var DateInputContainer = function(param) {
|
|
|
6084
6154
|
try {
|
|
6085
6155
|
return parseDate(dateStr);
|
|
6086
6156
|
} catch (e) {
|
|
6087
|
-
return
|
|
6157
|
+
return today2(getLocalTimeZone2());
|
|
6088
6158
|
}
|
|
6089
6159
|
}
|
|
6090
|
-
return
|
|
6160
|
+
return today2(getLocalTimeZone2());
|
|
6091
6161
|
};
|
|
6092
6162
|
var handleDateChange = useCallback6(function(date) {
|
|
6093
6163
|
if (!onChange) {
|
|
@@ -6107,10 +6177,11 @@ var DateInputContainer = function(param) {
|
|
|
6107
6177
|
]);
|
|
6108
6178
|
var pickerValue = value ? getDefaultValue(value) : void 0;
|
|
6109
6179
|
var pickerDefaultValue = !pickerValue && defaultValue ? getDefaultValue(defaultValue) : void 0;
|
|
6110
|
-
return /* @__PURE__ */
|
|
6111
|
-
children: /* @__PURE__ */
|
|
6180
|
+
return /* @__PURE__ */ jsx22(FormElementContainer, _object_spread_props(_object_spread({}, containerProps), {
|
|
6181
|
+
children: /* @__PURE__ */ jsx22(I18nProvider, {
|
|
6112
6182
|
locale: "en-GB",
|
|
6113
|
-
children: /* @__PURE__ */
|
|
6183
|
+
children: /* @__PURE__ */ jsxs15(RACDatePicker, {
|
|
6184
|
+
placeholderValue: placeholder ? parseDate(placeholder) : void 0,
|
|
6114
6185
|
className: cn("flex items-center gap-2 flex-1", elementClassName),
|
|
6115
6186
|
name: name,
|
|
6116
6187
|
defaultValue: pickerDefaultValue,
|
|
@@ -6118,13 +6189,13 @@ var DateInputContainer = function(param) {
|
|
|
6118
6189
|
onChange: handleDateChange,
|
|
6119
6190
|
onKeyDown: onKeyDown,
|
|
6120
6191
|
children: [
|
|
6121
|
-
/* @__PURE__ */
|
|
6192
|
+
/* @__PURE__ */ jsxs15("div", {
|
|
6122
6193
|
title: title,
|
|
6123
6194
|
className: cn("flex flex-1"),
|
|
6124
6195
|
children: [
|
|
6125
|
-
/* @__PURE__ */
|
|
6196
|
+
/* @__PURE__ */ jsx22(Group, {
|
|
6126
6197
|
className: cn("flex-1 bg-background", defaultFormElementBorderClassName),
|
|
6127
|
-
children: /* @__PURE__ */
|
|
6198
|
+
children: /* @__PURE__ */ jsx22(DateInput, _object_spread_props(_object_spread({}, props), {
|
|
6128
6199
|
unstyled: true,
|
|
6129
6200
|
style: {
|
|
6130
6201
|
direction: "ltr"
|
|
@@ -6132,21 +6203,21 @@ var DateInputContainer = function(param) {
|
|
|
6132
6203
|
className: cn("flex-1 h-9 px-3 py-2 text-sm", direction === "rtl" ? "justify-end text-right" : "justify-start text-left", inputClassName)
|
|
6133
6204
|
}))
|
|
6134
6205
|
}),
|
|
6135
|
-
/* @__PURE__ */
|
|
6206
|
+
/* @__PURE__ */ jsx22(Button3, {
|
|
6136
6207
|
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",
|
|
6137
|
-
children: /* @__PURE__ */
|
|
6208
|
+
children: /* @__PURE__ */ jsx22(CalendarIcon, {
|
|
6138
6209
|
size: 16
|
|
6139
6210
|
})
|
|
6140
6211
|
})
|
|
6141
6212
|
]
|
|
6142
6213
|
}),
|
|
6143
|
-
/* @__PURE__ */
|
|
6214
|
+
/* @__PURE__ */ jsx22(Popover2, {
|
|
6144
6215
|
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",
|
|
6145
6216
|
offset: 4,
|
|
6146
|
-
children: /* @__PURE__ */
|
|
6217
|
+
children: /* @__PURE__ */ jsx22(Dialog2, {
|
|
6147
6218
|
className: "max-h-[inherit] overflow-auto p-2",
|
|
6148
|
-
children: /* @__PURE__ */
|
|
6149
|
-
className: cn("bg-white",
|
|
6219
|
+
children: /* @__PURE__ */ jsx22(Calendar, {
|
|
6220
|
+
className: cn("bg-white", calendarClassName)
|
|
6150
6221
|
})
|
|
6151
6222
|
})
|
|
6152
6223
|
})
|
|
@@ -6191,8 +6262,8 @@ var SelectContainer = function(param) {
|
|
|
6191
6262
|
labelStyle,
|
|
6192
6263
|
elementsCommonClassName
|
|
6193
6264
|
]);
|
|
6194
|
-
return /* @__PURE__ */
|
|
6195
|
-
children: /* @__PURE__ */
|
|
6265
|
+
return /* @__PURE__ */ jsx22(FormElementContainer, _object_spread_props(_object_spread({}, containerProps), {
|
|
6266
|
+
children: /* @__PURE__ */ jsxs15("div", {
|
|
6196
6267
|
title: title,
|
|
6197
6268
|
style: {
|
|
6198
6269
|
direction: direction
|
|
@@ -6202,21 +6273,21 @@ var SelectContainer = function(param) {
|
|
|
6202
6273
|
return setIsOpen(!isOpen);
|
|
6203
6274
|
},
|
|
6204
6275
|
children: [
|
|
6205
|
-
/* @__PURE__ */
|
|
6276
|
+
/* @__PURE__ */ jsx22("div", {
|
|
6206
6277
|
className: cn("h-9 max-h-9 py-2 px-3 flex items-center justify-center cursor-pointer", defaultFormElementBorderClassName, selectClassName),
|
|
6207
6278
|
children: ((_options_find = options.find(function(opt) {
|
|
6208
6279
|
return opt.value === selectedValue;
|
|
6209
6280
|
})) === null || _options_find === void 0 ? void 0 : _options_find.label) || selectedValue
|
|
6210
6281
|
}),
|
|
6211
|
-
isOpen ? /* @__PURE__ */
|
|
6282
|
+
isOpen ? /* @__PURE__ */ jsx22("i", {
|
|
6212
6283
|
className: cn("fa-light fa-chevron-up absolute top-3 ".concat(direction === "ltr" ? "right-2" : "left-2", " cursor-pointer"), iconClassName)
|
|
6213
|
-
}) : /* @__PURE__ */
|
|
6284
|
+
}) : /* @__PURE__ */ jsx22("i", {
|
|
6214
6285
|
className: cn("fa-light fa-chevron-down absolute top-3 ".concat(direction === "ltr" ? "right-2" : "left-2", " cursor-pointer"), iconClassName)
|
|
6215
6286
|
}),
|
|
6216
|
-
isOpen && /* @__PURE__ */
|
|
6287
|
+
isOpen && /* @__PURE__ */ jsx22("div", {
|
|
6217
6288
|
className: cn("absolute w-full bg-white border border-gray-300 max-h-32 overflow-y-auto z-10", optionsContainerClassName),
|
|
6218
6289
|
children: sortOptions.map(function(option) {
|
|
6219
|
-
return /* @__PURE__ */
|
|
6290
|
+
return /* @__PURE__ */ jsx22("div", {
|
|
6220
6291
|
className: "p-2 cursor-pointer hover:bg-gray-200 ".concat(optionClassName),
|
|
6221
6292
|
onClick: function() {
|
|
6222
6293
|
return handleOptionClick(option.value);
|
|
@@ -6225,7 +6296,7 @@ var SelectContainer = function(param) {
|
|
|
6225
6296
|
}, option.value);
|
|
6226
6297
|
})
|
|
6227
6298
|
}),
|
|
6228
|
-
/* @__PURE__ */
|
|
6299
|
+
/* @__PURE__ */ jsx22("input", {
|
|
6229
6300
|
value: selectedValue,
|
|
6230
6301
|
type: "hidden",
|
|
6231
6302
|
name: name,
|
|
@@ -6264,8 +6335,8 @@ function MultiSelect(param) {
|
|
|
6264
6335
|
labelStyle,
|
|
6265
6336
|
elementsCommonClassName
|
|
6266
6337
|
]);
|
|
6267
|
-
return /* @__PURE__ */
|
|
6268
|
-
children: /* @__PURE__ */
|
|
6338
|
+
return /* @__PURE__ */ jsx22(FormElementContainer, _object_spread_props(_object_spread({}, containerProps), {
|
|
6339
|
+
children: /* @__PURE__ */ jsx22(multiselect_default, {
|
|
6269
6340
|
closeDropdownOnSelect: closeDropdownOnSelect,
|
|
6270
6341
|
commandProps: {
|
|
6271
6342
|
label: placeholder
|
|
@@ -6287,7 +6358,7 @@ function MultiSelect(param) {
|
|
|
6287
6358
|
className: cn(defaultFormElementBorderClassName, styles.className),
|
|
6288
6359
|
dropdownClassName: styles.dropdownClassName,
|
|
6289
6360
|
dropdownOptionClassName: styles.dropdownOptionClassName,
|
|
6290
|
-
emptyIndicator: emptyOptionsElement || /* @__PURE__ */
|
|
6361
|
+
emptyIndicator: emptyOptionsElement || /* @__PURE__ */ jsx22("p", {
|
|
6291
6362
|
className: "text-center text-sm",
|
|
6292
6363
|
children: "all options selected."
|
|
6293
6364
|
}),
|
|
@@ -6325,8 +6396,8 @@ var SelectWithSearch = function(param) {
|
|
|
6325
6396
|
labelStyle,
|
|
6326
6397
|
elementsCommonClassName
|
|
6327
6398
|
]);
|
|
6328
|
-
return /* @__PURE__ */
|
|
6329
|
-
children: /* @__PURE__ */
|
|
6399
|
+
return /* @__PURE__ */ jsx22(FormElementContainer, _object_spread_props(_object_spread({}, containerProps), {
|
|
6400
|
+
children: /* @__PURE__ */ jsx22(SearchSelect, {
|
|
6330
6401
|
direction: direction,
|
|
6331
6402
|
createNewOptionLabel: createNewOptionLabel,
|
|
6332
6403
|
createNewOptionContainerClassName: createNewOptionContainerClassName,
|
|
@@ -6377,8 +6448,8 @@ var TextAreaContainer = function(param) {
|
|
|
6377
6448
|
labelStyle,
|
|
6378
6449
|
elementsCommonClassName
|
|
6379
6450
|
]);
|
|
6380
|
-
return /* @__PURE__ */
|
|
6381
|
-
children: /* @__PURE__ */
|
|
6451
|
+
return /* @__PURE__ */ jsx22(FormElementContainer, _object_spread_props(_object_spread({}, containerProps), {
|
|
6452
|
+
children: /* @__PURE__ */ jsx22("textarea", _object_spread_props(_object_spread({}, props), {
|
|
6382
6453
|
defaultValue: value ? void 0 : defaultValue,
|
|
6383
6454
|
value: defaultValue ? void 0 : value,
|
|
6384
6455
|
onChange: onChange,
|
|
@@ -6394,7 +6465,7 @@ var TextAreaContainer = function(param) {
|
|
|
6394
6465
|
};
|
|
6395
6466
|
var FormSeparator = function(param) {
|
|
6396
6467
|
var props = param.props, children = param.children;
|
|
6397
|
-
return /* @__PURE__ */
|
|
6468
|
+
return /* @__PURE__ */ jsx22("div", _object_spread_props(_object_spread({}, props), {
|
|
6398
6469
|
className: cn("border-b-[1px] border-gray-300 h-[1px]", props === null || props === void 0 ? void 0 : props.className),
|
|
6399
6470
|
children: children
|
|
6400
6471
|
}));
|
|
@@ -6426,8 +6497,8 @@ var CheckboxContainer = function(param) {
|
|
|
6426
6497
|
labelStyle,
|
|
6427
6498
|
elementsCommonClassName
|
|
6428
6499
|
]);
|
|
6429
|
-
return /* @__PURE__ */
|
|
6430
|
-
children: /* @__PURE__ */
|
|
6500
|
+
return /* @__PURE__ */ jsx22(FormElementContainer, _object_spread_props(_object_spread({}, containerProps), {
|
|
6501
|
+
children: /* @__PURE__ */ jsx22(Checkbox, {
|
|
6431
6502
|
id: id,
|
|
6432
6503
|
name: name,
|
|
6433
6504
|
checked: checked,
|
|
@@ -6491,21 +6562,21 @@ var DurationPicker = function(param) {
|
|
|
6491
6562
|
onChange === null || onChange === void 0 ? void 0 : onChange(durationToSeconds(update));
|
|
6492
6563
|
};
|
|
6493
6564
|
};
|
|
6494
|
-
return /* @__PURE__ */
|
|
6495
|
-
children: /* @__PURE__ */
|
|
6565
|
+
return /* @__PURE__ */ jsx22(FormElementContainer, _object_spread_props(_object_spread({}, containerProps), {
|
|
6566
|
+
children: /* @__PURE__ */ jsxs15("div", {
|
|
6496
6567
|
title: title,
|
|
6497
6568
|
className: cn("flex gap-1.5 text-sm", elementClassName),
|
|
6498
6569
|
dir: "ltr",
|
|
6499
6570
|
children: [
|
|
6500
6571
|
Array.from(new Set(options)).map(function(field) {
|
|
6501
|
-
return /* @__PURE__ */
|
|
6572
|
+
return /* @__PURE__ */ jsxs15("div", {
|
|
6502
6573
|
className: "flex flex-col border p-0.5 rounded-md",
|
|
6503
6574
|
children: [
|
|
6504
|
-
!hideLabels && /* @__PURE__ */
|
|
6575
|
+
!hideLabels && /* @__PURE__ */ jsx22("label", {
|
|
6505
6576
|
className: "mb-1 ps-1 capitalize text-start border-b-[1px] border-b-gray-300",
|
|
6506
6577
|
children: field.slice(0, 1)
|
|
6507
6578
|
}),
|
|
6508
|
-
/* @__PURE__ */
|
|
6579
|
+
/* @__PURE__ */ jsx22("input", {
|
|
6509
6580
|
type: "number",
|
|
6510
6581
|
inputMode: "numeric",
|
|
6511
6582
|
min: 0,
|
|
@@ -6523,7 +6594,7 @@ var DurationPicker = function(param) {
|
|
|
6523
6594
|
]
|
|
6524
6595
|
}, field);
|
|
6525
6596
|
}),
|
|
6526
|
-
/* @__PURE__ */
|
|
6597
|
+
/* @__PURE__ */ jsx22("input", {
|
|
6527
6598
|
name: name,
|
|
6528
6599
|
type: "hidden",
|
|
6529
6600
|
value: durationToSeconds(duration)
|
|
@@ -6534,10 +6605,10 @@ var DurationPicker = function(param) {
|
|
|
6534
6605
|
};
|
|
6535
6606
|
var FormElementContainer = function(param) {
|
|
6536
6607
|
var containerClassName = param.containerClassName, direction = param.direction, labelClassName = param.labelClassName, labelContent = param.labelContent, labelWithDots = param.labelWithDots, labelsCommonClassName = param.labelsCommonClassName, name = param.name, required = param.required, children = param.children, _param_defaultContainerClassName = param.defaultContainerClassName, defaultContainerClassName = _param_defaultContainerClassName === void 0 ? true : _param_defaultContainerClassName, _param_elementsCommonClassName = param.elementsCommonClassName, elementsCommonClassName = _param_elementsCommonClassName === void 0 ? "" : _param_elementsCommonClassName, labelStyle = param.labelStyle;
|
|
6537
|
-
return /* @__PURE__ */
|
|
6608
|
+
return /* @__PURE__ */ jsxs15("div", {
|
|
6538
6609
|
className: cn(defaultContainerClassName ? defaultFormElementContainerClassName : "", containerClassName, elementsCommonClassName),
|
|
6539
6610
|
children: [
|
|
6540
|
-
labelContent && /* @__PURE__ */
|
|
6611
|
+
labelContent && /* @__PURE__ */ jsx22(ElementLabel, {
|
|
6541
6612
|
labelStyle: labelStyle,
|
|
6542
6613
|
labelsCommonClassName: labelsCommonClassName,
|
|
6543
6614
|
withDots: labelWithDots,
|
|
@@ -6553,7 +6624,7 @@ var FormElementContainer = function(param) {
|
|
|
6553
6624
|
};
|
|
6554
6625
|
var ElementLabel = function(param) {
|
|
6555
6626
|
var labelContent = param.labelContent, labelClassName = param.labelClassName, name = param.name, required = param.required, _param_withDots = param.withDots, withDots = _param_withDots === void 0 ? false : _param_withDots, direction = param.direction, labelsCommonClassName = param.labelsCommonClassName, _param_labelStyle = param.labelStyle, labelStyle = _param_labelStyle === void 0 ? {} : _param_labelStyle;
|
|
6556
|
-
return /* @__PURE__ */
|
|
6627
|
+
return /* @__PURE__ */ jsxs15("label", {
|
|
6557
6628
|
style: _object_spread({
|
|
6558
6629
|
direction: direction
|
|
6559
6630
|
}, labelStyle),
|
|
@@ -6562,11 +6633,11 @@ var ElementLabel = function(param) {
|
|
|
6562
6633
|
title: labelContent,
|
|
6563
6634
|
children: [
|
|
6564
6635
|
labelContent,
|
|
6565
|
-
required && /* @__PURE__ */
|
|
6636
|
+
required && /* @__PURE__ */ jsx22("div", {
|
|
6566
6637
|
className: "text-red-500",
|
|
6567
6638
|
children: "*"
|
|
6568
6639
|
}),
|
|
6569
|
-
withDots && /* @__PURE__ */
|
|
6640
|
+
withDots && /* @__PURE__ */ jsx22("div", {
|
|
6570
6641
|
children: ":"
|
|
6571
6642
|
})
|
|
6572
6643
|
]
|
|
@@ -6628,15 +6699,15 @@ var ElementsContainer = memo2(function(props) {
|
|
|
6628
6699
|
containerClassName,
|
|
6629
6700
|
elementProps
|
|
6630
6701
|
]);
|
|
6631
|
-
return /* @__PURE__ */
|
|
6702
|
+
return /* @__PURE__ */ jsxs15("div", {
|
|
6632
6703
|
ref: containerRef,
|
|
6633
6704
|
className: cn("flex flex-col gap-1", className),
|
|
6634
6705
|
children: [
|
|
6635
|
-
headline && /* @__PURE__ */
|
|
6706
|
+
headline && /* @__PURE__ */ jsx22("div", {
|
|
6636
6707
|
className: cn("text-start text-primary font-bold border-b-[1px] border-gray-400 pb-0.5", headlineClassName),
|
|
6637
6708
|
children: headline
|
|
6638
6709
|
}),
|
|
6639
|
-
/* @__PURE__ */
|
|
6710
|
+
/* @__PURE__ */ jsx22("div", {
|
|
6640
6711
|
className: cn("flex flex-col gap-1.5", childrenContainerClassName),
|
|
6641
6712
|
children: enhancedChildren
|
|
6642
6713
|
})
|
|
@@ -6645,7 +6716,7 @@ var ElementsContainer = memo2(function(props) {
|
|
|
6645
6716
|
}, propsAreEqual);
|
|
6646
6717
|
ElementsContainer.displayName = "ElementsContainer";
|
|
6647
6718
|
// src/components/forms/ModularForm/ModularForm.tsx
|
|
6648
|
-
import { jsx as
|
|
6719
|
+
import { jsx as jsx23, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
6649
6720
|
var ModularForm = function(param) {
|
|
6650
6721
|
var _param_submitFunction = param.submitFunction, submitFunction = _param_submitFunction === void 0 ? /*#__PURE__*/ function() {
|
|
6651
6722
|
var _ref = _async_to_generator(function(form) {
|
|
@@ -6752,7 +6823,7 @@ var ModularForm = function(param) {
|
|
|
6752
6823
|
return _ref.apply(this, arguments);
|
|
6753
6824
|
};
|
|
6754
6825
|
}();
|
|
6755
|
-
return /* @__PURE__ */
|
|
6826
|
+
return /* @__PURE__ */ jsxs16("form", {
|
|
6756
6827
|
ref: formRef,
|
|
6757
6828
|
onSubmit: onSubmit,
|
|
6758
6829
|
style: {
|
|
@@ -6760,79 +6831,79 @@ var ModularForm = function(param) {
|
|
|
6760
6831
|
},
|
|
6761
6832
|
className: cn("w-[350px] px-5 py-5 flex flex-col gap-4", className),
|
|
6762
6833
|
children: [
|
|
6763
|
-
headerContent && /* @__PURE__ */
|
|
6834
|
+
headerContent && /* @__PURE__ */ jsx23("div", {
|
|
6764
6835
|
className: cn("border-b-2 border-[#547f22] pb-2 text-start font-bold text-[20px]", headerClassName),
|
|
6765
6836
|
children: headerContent
|
|
6766
6837
|
}),
|
|
6767
|
-
/* @__PURE__ */
|
|
6838
|
+
/* @__PURE__ */ jsx23("div", {
|
|
6768
6839
|
className: cn("w-full flex flex-col gap-5", elementsContainerClassName),
|
|
6769
6840
|
children: elements.map(function(element, index2) {
|
|
6770
6841
|
switch(element.type){
|
|
6771
6842
|
case "input":
|
|
6772
|
-
return /* @__PURE__ */
|
|
6843
|
+
return /* @__PURE__ */ jsx23(InputContainer, _object_spread_props(_object_spread({
|
|
6773
6844
|
direction: direction
|
|
6774
6845
|
}, element), {
|
|
6775
6846
|
labelsCommonClassName: labelsCommonClassName,
|
|
6776
6847
|
elementsCommonClassName: elementsCommonClassName
|
|
6777
6848
|
}), index2);
|
|
6778
6849
|
case "dateInput":
|
|
6779
|
-
return /* @__PURE__ */
|
|
6850
|
+
return /* @__PURE__ */ jsx23(DateInputContainer, _object_spread_props(_object_spread({
|
|
6780
6851
|
direction: direction
|
|
6781
6852
|
}, element), {
|
|
6782
6853
|
labelsCommonClassName: labelsCommonClassName,
|
|
6783
6854
|
elementsCommonClassName: elementsCommonClassName
|
|
6784
6855
|
}), index2);
|
|
6785
6856
|
case "textarea":
|
|
6786
|
-
return /* @__PURE__ */
|
|
6857
|
+
return /* @__PURE__ */ jsx23(TextAreaContainer, _object_spread_props(_object_spread({
|
|
6787
6858
|
direction: element.direction || direction
|
|
6788
6859
|
}, element), {
|
|
6789
6860
|
labelsCommonClassName: labelsCommonClassName,
|
|
6790
6861
|
elementsCommonClassName: elementsCommonClassName
|
|
6791
6862
|
}), index2);
|
|
6792
6863
|
case "select":
|
|
6793
|
-
return /* @__PURE__ */
|
|
6864
|
+
return /* @__PURE__ */ jsx23(SelectContainer, _object_spread_props(_object_spread({
|
|
6794
6865
|
direction: direction
|
|
6795
6866
|
}, element), {
|
|
6796
6867
|
labelsCommonClassName: labelsCommonClassName,
|
|
6797
6868
|
elementsCommonClassName: elementsCommonClassName
|
|
6798
6869
|
}), index2);
|
|
6799
6870
|
case "checkbox":
|
|
6800
|
-
return /* @__PURE__ */
|
|
6871
|
+
return /* @__PURE__ */ jsx23(CheckboxContainer, _object_spread_props(_object_spread({
|
|
6801
6872
|
direction: direction
|
|
6802
6873
|
}, element), {
|
|
6803
6874
|
labelsCommonClassName: labelsCommonClassName,
|
|
6804
6875
|
elementsCommonClassName: elementsCommonClassName
|
|
6805
6876
|
}), index2);
|
|
6806
6877
|
case "multiSelect":
|
|
6807
|
-
return /* @__PURE__ */
|
|
6878
|
+
return /* @__PURE__ */ jsx23(MultiSelect, _object_spread_props(_object_spread({
|
|
6808
6879
|
direction: direction
|
|
6809
6880
|
}, element), {
|
|
6810
6881
|
labelsCommonClassName: labelsCommonClassName,
|
|
6811
6882
|
elementsCommonClassName: elementsCommonClassName
|
|
6812
6883
|
}), index2);
|
|
6813
6884
|
case "selectWithSearch":
|
|
6814
|
-
return /* @__PURE__ */
|
|
6885
|
+
return /* @__PURE__ */ jsx23(SelectWithSearch, _object_spread_props(_object_spread({
|
|
6815
6886
|
direction: direction
|
|
6816
6887
|
}, element), {
|
|
6817
6888
|
labelsCommonClassName: labelsCommonClassName,
|
|
6818
6889
|
elementsCommonClassName: elementsCommonClassName
|
|
6819
6890
|
}), index2);
|
|
6820
6891
|
case "internationalPhoneInput":
|
|
6821
|
-
return /* @__PURE__ */
|
|
6892
|
+
return /* @__PURE__ */ jsx23(InternationalPhonePicker, _object_spread_props(_object_spread({
|
|
6822
6893
|
direction: direction
|
|
6823
6894
|
}, element), {
|
|
6824
6895
|
labelsCommonClassName: labelsCommonClassName,
|
|
6825
6896
|
elementsCommonClassName: elementsCommonClassName
|
|
6826
6897
|
}), index2);
|
|
6827
6898
|
case "duration":
|
|
6828
|
-
return /* @__PURE__ */
|
|
6899
|
+
return /* @__PURE__ */ jsx23(DurationPicker, _object_spread_props(_object_spread({
|
|
6829
6900
|
direction: direction
|
|
6830
6901
|
}, element), {
|
|
6831
6902
|
labelsCommonClassName: labelsCommonClassName,
|
|
6832
6903
|
elementsCommonClassName: elementsCommonClassName
|
|
6833
6904
|
}), index2);
|
|
6834
6905
|
case "separator":
|
|
6835
|
-
return /* @__PURE__ */
|
|
6906
|
+
return /* @__PURE__ */ jsx23(FormSeparator, _object_spread_props(_object_spread({
|
|
6836
6907
|
direction: direction
|
|
6837
6908
|
}, element), {
|
|
6838
6909
|
children: element.children
|
|
@@ -6847,15 +6918,15 @@ var ModularForm = function(param) {
|
|
|
6847
6918
|
}
|
|
6848
6919
|
})
|
|
6849
6920
|
}),
|
|
6850
|
-
/* @__PURE__ */
|
|
6921
|
+
/* @__PURE__ */ jsxs16("div", {
|
|
6851
6922
|
className: cn("flex justify-between w-full", footerClassName),
|
|
6852
6923
|
children: [
|
|
6853
|
-
/* @__PURE__ */
|
|
6924
|
+
/* @__PURE__ */ jsx23("div", {
|
|
6854
6925
|
title: errorMsg,
|
|
6855
6926
|
className: cn("text-[#f22] text-[18px] max-w-[80%] ellipsis", errorClassName),
|
|
6856
6927
|
children: errorMsg
|
|
6857
6928
|
}),
|
|
6858
|
-
/* @__PURE__ */
|
|
6929
|
+
/* @__PURE__ */ jsx23("button", {
|
|
6859
6930
|
ref: submitRef,
|
|
6860
6931
|
disabled: isLoading,
|
|
6861
6932
|
onClick: function(e) {
|
|
@@ -6863,7 +6934,7 @@ var ModularForm = function(param) {
|
|
|
6863
6934
|
},
|
|
6864
6935
|
className: cn("bg-[#547f22] px-3 py-1.5 rounded-lg text-white min-w-20", buttonClassName),
|
|
6865
6936
|
type: "submit",
|
|
6866
|
-
children: isLoading ? /* @__PURE__ */
|
|
6937
|
+
children: isLoading ? /* @__PURE__ */ jsx23(Loader, _object_spread({
|
|
6867
6938
|
size: 18,
|
|
6868
6939
|
color: "#fff"
|
|
6869
6940
|
}, loaderProps)) : buttonContent
|
|
@@ -6880,77 +6951,6 @@ import moment3 from "moment";
|
|
|
6880
6951
|
import { CalendarIcon as CalendarIcon2 } from "lucide-react";
|
|
6881
6952
|
import { Button as Button4, DatePicker as RACDatePicker2, Dialog as Dialog3, Group as Group2, Label as Label2, Popover as Popover3 } from "react-aria-components";
|
|
6882
6953
|
import { parseDate as parseDate2, today as today3, getLocalTimeZone as getLocalTimeZone3 } from "@internationalized/date";
|
|
6883
|
-
// src/components/ui/calendar-rac.tsx
|
|
6884
|
-
import { getLocalTimeZone as getLocalTimeZone2, today as today2 } from "@internationalized/date";
|
|
6885
|
-
import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
|
|
6886
|
-
import { Button as Button3, CalendarCell as CalendarCellRac, CalendarGridBody as CalendarGridBodyRac, CalendarGridHeader as CalendarGridHeaderRac, CalendarGrid as CalendarGridRac, CalendarHeaderCell as CalendarHeaderCellRac, Calendar as CalendarRac, composeRenderProps as composeRenderProps2, Heading as HeadingRac, RangeCalendar as RangeCalendarRac } from "react-aria-components";
|
|
6887
|
-
import { jsx as jsx23, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
6888
|
-
function CalendarHeader() {
|
|
6889
|
-
return /* @__PURE__ */ jsxs16("header", {
|
|
6890
|
-
className: "flex w-full items-center gap-1 pb-1",
|
|
6891
|
-
children: [
|
|
6892
|
-
/* @__PURE__ */ jsx23(Button3, {
|
|
6893
|
-
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",
|
|
6894
|
-
slot: "previous",
|
|
6895
|
-
children: /* @__PURE__ */ jsx23(ChevronLeftIcon, {
|
|
6896
|
-
size: 16
|
|
6897
|
-
})
|
|
6898
|
-
}),
|
|
6899
|
-
/* @__PURE__ */ jsx23(HeadingRac, {
|
|
6900
|
-
className: "grow text-center font-medium text-sm"
|
|
6901
|
-
}),
|
|
6902
|
-
/* @__PURE__ */ jsx23(Button3, {
|
|
6903
|
-
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",
|
|
6904
|
-
slot: "next",
|
|
6905
|
-
children: /* @__PURE__ */ jsx23(ChevronRightIcon, {
|
|
6906
|
-
size: 16
|
|
6907
|
-
})
|
|
6908
|
-
})
|
|
6909
|
-
]
|
|
6910
|
-
});
|
|
6911
|
-
}
|
|
6912
|
-
function CalendarGridComponent(param) {
|
|
6913
|
-
var _param_isRange = param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange;
|
|
6914
|
-
var now = today2(getLocalTimeZone2());
|
|
6915
|
-
return /* @__PURE__ */ jsxs16(CalendarGridRac, {
|
|
6916
|
-
children: [
|
|
6917
|
-
/* @__PURE__ */ jsx23(CalendarGridHeaderRac, {
|
|
6918
|
-
children: function(day) {
|
|
6919
|
-
return /* @__PURE__ */ jsx23(CalendarHeaderCellRac, {
|
|
6920
|
-
className: "size-9 rounded-md p-0 font-medium text-muted-foreground/80 text-xs",
|
|
6921
|
-
children: day
|
|
6922
|
-
});
|
|
6923
|
-
}
|
|
6924
|
-
}),
|
|
6925
|
-
/* @__PURE__ */ jsx23(CalendarGridBodyRac, {
|
|
6926
|
-
className: "[&_td]:px-0 [&_td]:py-px",
|
|
6927
|
-
children: function(date) {
|
|
6928
|
-
return /* @__PURE__ */ jsx23(CalendarCellRac, {
|
|
6929
|
-
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
|
|
6930
|
-
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
|
|
6931
|
-
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")),
|
|
6932
|
-
date: date
|
|
6933
|
-
});
|
|
6934
|
-
}
|
|
6935
|
-
})
|
|
6936
|
-
]
|
|
6937
|
-
});
|
|
6938
|
-
}
|
|
6939
|
-
function Calendar2(_param) {
|
|
6940
|
-
var className = _param.className, props = _object_without_properties(_param, [
|
|
6941
|
-
"className"
|
|
6942
|
-
]);
|
|
6943
|
-
return /* @__PURE__ */ jsxs16(CalendarRac, _object_spread_props(_object_spread({}, props), {
|
|
6944
|
-
className: composeRenderProps2(className, function(className2) {
|
|
6945
|
-
return cn("w-fit", className2);
|
|
6946
|
-
}),
|
|
6947
|
-
children: [
|
|
6948
|
-
/* @__PURE__ */ jsx23(CalendarHeader, {}),
|
|
6949
|
-
/* @__PURE__ */ jsx23(CalendarGridComponent, {})
|
|
6950
|
-
]
|
|
6951
|
-
}));
|
|
6952
|
-
}
|
|
6953
|
-
// src/components/forms/index.tsx
|
|
6954
6954
|
import { I18nProvider as I18nProvider2 } from "react-aria-components";
|
|
6955
6955
|
import { jsx as jsx24, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
6956
6956
|
var ConfirmForm = function(param) {
|
|
@@ -7161,7 +7161,7 @@ function DatePicker2(param) {
|
|
|
7161
7161
|
offset: 4,
|
|
7162
7162
|
children: /* @__PURE__ */ jsx24(Dialog3, {
|
|
7163
7163
|
className: "max-h-[inherit] overflow-auto p-2",
|
|
7164
|
-
children: /* @__PURE__ */ jsx24(
|
|
7164
|
+
children: /* @__PURE__ */ jsx24(Calendar, {
|
|
7165
7165
|
className: cn("bg-white", calendarClassName)
|
|
7166
7166
|
})
|
|
7167
7167
|
})
|
|
@@ -7202,7 +7202,7 @@ function DatePicker2(param) {
|
|
|
7202
7202
|
offset: 4,
|
|
7203
7203
|
children: /* @__PURE__ */ jsx24(Dialog3, {
|
|
7204
7204
|
className: "max-h-[inherit] overflow-auto p-2",
|
|
7205
|
-
children: /* @__PURE__ */ jsx24(
|
|
7205
|
+
children: /* @__PURE__ */ jsx24(Calendar, {
|
|
7206
7206
|
className: cn("bg-white", calendarClassName)
|
|
7207
7207
|
})
|
|
7208
7208
|
})
|
package/dist/types/index.d.mts
CHANGED
|
@@ -183,7 +183,7 @@ interface DateInputElement extends BaseElementProps {
|
|
|
183
183
|
value?: string;
|
|
184
184
|
placeholder?: string;
|
|
185
185
|
props?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
186
|
-
|
|
186
|
+
calendarClassName?: string;
|
|
187
187
|
inputClassName?: string;
|
|
188
188
|
}
|
|
189
189
|
interface TextAreaElement extends BaseElementProps {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -183,7 +183,7 @@ interface DateInputElement extends BaseElementProps {
|
|
|
183
183
|
value?: string;
|
|
184
184
|
placeholder?: string;
|
|
185
185
|
props?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
186
|
-
|
|
186
|
+
calendarClassName?: string;
|
|
187
187
|
inputClassName?: string;
|
|
188
188
|
}
|
|
189
189
|
interface TextAreaElement extends BaseElementProps {
|