@ballistix.digital/react-components 0.4.91 → 0.4.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +4 -1
- package/dist/index.esm.js +2 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -862,7 +862,10 @@ type TDateMenuFormProps = {
|
|
|
862
862
|
isDisabled?: boolean;
|
|
863
863
|
isSolo?: boolean;
|
|
864
864
|
isRanged?: boolean;
|
|
865
|
-
onChange?: (value:
|
|
865
|
+
onChange?: (value: {
|
|
866
|
+
startDate: string;
|
|
867
|
+
endDate: string;
|
|
868
|
+
}) => void;
|
|
866
869
|
onClear?: (name: string) => void;
|
|
867
870
|
onBlur?: any;
|
|
868
871
|
styles?: TDateMenuFormStyles;
|
package/dist/index.esm.js
CHANGED
|
@@ -5613,7 +5613,7 @@ var base$1 = {
|
|
|
5613
5613
|
leading: 'pointer-events-none absolute inset-y-0 left-0 flex items-center',
|
|
5614
5614
|
input: 'block w-full flex border',
|
|
5615
5615
|
menuButton: '',
|
|
5616
|
-
menu: '!px-0 !py-0 !w-full rounded-md overflow-hidden border !mt-1 absolute bg-white',
|
|
5616
|
+
menu: 'z-10 !px-0 !py-0 !w-full rounded-md overflow-hidden border !mt-1 absolute bg-white',
|
|
5617
5617
|
tagItem: 'bg-gray-200 px-2 py-1 flex flex-row gap-x-1 items-center justify-between rounded-sm',
|
|
5618
5618
|
tagItemText: 'text-xs',
|
|
5619
5619
|
tagItemIconContainer: '!p-0 rounded-full hover:bg-gray-400 text-sm hover:text-white aspect-square w-4 flex items-center justify-center cursor-pointer',
|
|
@@ -9196,7 +9196,6 @@ var DateMenuForm = function (props) {
|
|
|
9196
9196
|
// Simulate onClear event.
|
|
9197
9197
|
useEffect(function () {
|
|
9198
9198
|
if (state.startDate === null && state.endDate === null) {
|
|
9199
|
-
console.log('clear');
|
|
9200
9199
|
onClear && onClear(name);
|
|
9201
9200
|
}
|
|
9202
9201
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -9208,7 +9207,7 @@ var DateMenuForm = function (props) {
|
|
|
9208
9207
|
}
|
|
9209
9208
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
9210
9209
|
}, [isFocus]);
|
|
9211
|
-
return (jsxs("div", __assign({ className: styles$1.container }, { children: [jsxs("div", __assign({ className: styles$1.head }, { children: [label && (jsx("label", __assign({ htmlFor: name, className: styles$1.label }, { children: label }))), !required && !isRequired && typeof label === 'string' && (jsx("span", __assign({ className: styles$1.hint }, { children: "Optional" }))), required && required({ isRequired: isRequired })] })), jsxs("div", __assign({ className: styles$1.container }, { children: [jsx(Datepicker, { i18n: i18n, useRange: size === 'expanded', placeholder: placeholder, asSingle: !isRanged, separator: separator, startFrom: startFrom, displayFormat: displayFormat, disabled: isDisabled, popoverDirection: direction, minDate: minDate, maxDate: maxDate,
|
|
9210
|
+
return (jsxs("div", __assign({ className: styles$1.container }, { children: [jsxs("div", __assign({ className: styles$1.head }, { children: [label && (jsx("label", __assign({ htmlFor: name, className: styles$1.label }, { children: label }))), !required && !isRequired && typeof label === 'string' && (jsx("span", __assign({ className: styles$1.hint }, { children: "Optional" }))), required && required({ isRequired: isRequired })] })), jsxs("div", __assign({ className: styles$1.container }, { children: [jsx(Datepicker, { inputName: name, i18n: i18n, useRange: size === 'expanded', placeholder: placeholder, asSingle: !isRanged, separator: separator, startFrom: startFrom, displayFormat: displayFormat, disabled: isDisabled, popoverDirection: direction, minDate: minDate, maxDate: maxDate,
|
|
9212
9211
|
//
|
|
9213
9212
|
value: state,
|
|
9214
9213
|
//
|