@ballistix.digital/react-components 0.4.90 → 0.4.92

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 CHANGED
@@ -862,7 +862,10 @@ type TDateMenuFormProps = {
862
862
  isDisabled?: boolean;
863
863
  isSolo?: boolean;
864
864
  isRanged?: boolean;
865
- onChange?: (value: string) => void;
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',
@@ -9195,7 +9195,7 @@ var DateMenuForm = function (props) {
9195
9195
  var styles$1 = handleGenerateStyle();
9196
9196
  // Simulate onClear event.
9197
9197
  useEffect(function () {
9198
- if (state === null) {
9198
+ if (state.startDate === null && state.endDate === null) {
9199
9199
  onClear && onClear(name);
9200
9200
  }
9201
9201
  // eslint-disable-next-line react-hooks/exhaustive-deps
package/dist/index.js CHANGED
@@ -5624,7 +5624,7 @@ var base$1 = {
5624
5624
  leading: 'pointer-events-none absolute inset-y-0 left-0 flex items-center',
5625
5625
  input: 'block w-full flex border',
5626
5626
  menuButton: '',
5627
- menu: '!px-0 !py-0 !w-full rounded-md overflow-hidden border !mt-1 absolute bg-white',
5627
+ menu: 'z-10 !px-0 !py-0 !w-full rounded-md overflow-hidden border !mt-1 absolute bg-white',
5628
5628
  tagItem: 'bg-gray-200 px-2 py-1 flex flex-row gap-x-1 items-center justify-between rounded-sm',
5629
5629
  tagItemText: 'text-xs',
5630
5630
  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',
@@ -9206,7 +9206,7 @@ var DateMenuForm = function (props) {
9206
9206
  var styles$1 = handleGenerateStyle();
9207
9207
  // Simulate onClear event.
9208
9208
  React.useEffect(function () {
9209
- if (state === null) {
9209
+ if (state.startDate === null && state.endDate === null) {
9210
9210
  onClear && onClear(name);
9211
9211
  }
9212
9212
  // eslint-disable-next-line react-hooks/exhaustive-deps
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "email": "info@ballistix.digital",
8
8
  "url": "https://ballistix.digital"
9
9
  },
10
- "version": "0.4.90",
10
+ "version": "0.4.92",
11
11
  "private": false,
12
12
  "main": "dist/index.js",
13
13
  "module": "dist/index.esm.js",