@verma-consulting/design-library 0.1.37 → 0.1.39

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/README.md CHANGED
@@ -58,7 +58,6 @@ The library re-exports **all of `@mui/material`**, so you can use MUI components
58
58
  | [FormDrawer](./docs/FormDrawer.md) | Side/bottom drawer for forms with optional actions. |
59
59
  | [FormPopover](./docs/FormPopover.md) | Popover triggered by an icon button (e.g. row actions). |
60
60
  | [FormSnackBar](./docs/FormSnackBar.md) | Snackbar for form success/error messages. |
61
- | [ClearableSelect](./docs/ClearableSelect.md) | Select with optional clear and view/edit modes. |
62
61
  | [SearchableSelect](./docs/SearchableSelect.md) | Searchable single/multi select with view/edit modes. |
63
62
  | [PhoneNumberField](./docs/PhoneNumberField.md) | Phone input with country code and E.164 output. |
64
63
  | [InputFileUpload](./docs/InputFileUpload.md) | Button that opens a file picker. |
package/dist/index.d.mts CHANGED
@@ -1,8 +1,7 @@
1
- import { SelectChangeEvent } from '@mui/material';
2
1
  export * from '@mui/material';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import * as React$1 from 'react';
4
4
  import React__default, { FC } from 'react';
5
- import * as react_jsx_runtime from 'react/jsx-runtime';
6
5
  import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
7
6
  import * as _mui_material_TablePagination from '@mui/material/TablePagination';
8
7
  import _mui_material_TablePagination__default, { LabelDisplayedRowsArgs } from '@mui/material/TablePagination';
@@ -11,22 +10,6 @@ export { makeStyles } from '@mui/styles';
11
10
  import { SwitchProps } from '@mui/material/Switch';
12
11
  import { userStatus, GenericPayload } from '@verma-consulting/common-library';
13
12
 
14
- interface ClearableSelectProps {
15
- name: string;
16
- label: string;
17
- value: string | number | (string | number)[];
18
- onChange: (event: SelectChangeEvent<string | number | (string | number)[]>) => void;
19
- size?: "small" | "medium";
20
- style?: React__default.CSSProperties;
21
- disabled?: boolean;
22
- onClear?: () => void;
23
- multiple?: boolean;
24
- defaultEditMode?: boolean;
25
- renderValue?: () => null;
26
- children: React__default.ReactNode;
27
- }
28
- declare const ClearableSelect: React__default.FC<ClearableSelectProps>;
29
-
30
13
  interface TabPanelProps {
31
14
  children?: React__default.ReactNode;
32
15
  index: number;
@@ -179,7 +162,8 @@ interface SearchableSelectProps {
179
162
  size?: "small" | "medium";
180
163
  style?: React__default.CSSProperties;
181
164
  disabled?: boolean;
182
- onClear?: () => void;
165
+ /** If `null` or omitted, the clear control is not shown. Pass a handler to enable clear. */
166
+ onClear?: (() => void) | null;
183
167
  defaultEditMode?: boolean;
184
168
  multiple?: boolean;
185
169
  }
@@ -206,4 +190,4 @@ interface PhoneNumberFieldProps {
206
190
  }
207
191
  declare const PhoneNumberField: React__default.FC<PhoneNumberFieldProps>;
208
192
 
209
- export { ClearableSelect, EmptyState, FormDialog, FormDrawer, FormPopover, FormSnackBar, IOSSwitch, ImageUploadAvatar, InputFileUpload, Loader, Logo, PhoneNumberField, Pill, SearchableSelect, SkeletonBar, StatusPill, TabPanel, TablePagination, type TablePaginationDesignProps };
193
+ export { EmptyState, FormDialog, FormDrawer, FormPopover, FormSnackBar, IOSSwitch, ImageUploadAvatar, InputFileUpload, Loader, Logo, PhoneNumberField, Pill, SearchableSelect, SkeletonBar, StatusPill, TabPanel, TablePagination, type TablePaginationDesignProps };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,7 @@
1
- import { SelectChangeEvent } from '@mui/material';
2
1
  export * from '@mui/material';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import * as React$1 from 'react';
4
4
  import React__default, { FC } from 'react';
5
- import * as react_jsx_runtime from 'react/jsx-runtime';
6
5
  import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
7
6
  import * as _mui_material_TablePagination from '@mui/material/TablePagination';
8
7
  import _mui_material_TablePagination__default, { LabelDisplayedRowsArgs } from '@mui/material/TablePagination';
@@ -11,22 +10,6 @@ export { makeStyles } from '@mui/styles';
11
10
  import { SwitchProps } from '@mui/material/Switch';
12
11
  import { userStatus, GenericPayload } from '@verma-consulting/common-library';
13
12
 
14
- interface ClearableSelectProps {
15
- name: string;
16
- label: string;
17
- value: string | number | (string | number)[];
18
- onChange: (event: SelectChangeEvent<string | number | (string | number)[]>) => void;
19
- size?: "small" | "medium";
20
- style?: React__default.CSSProperties;
21
- disabled?: boolean;
22
- onClear?: () => void;
23
- multiple?: boolean;
24
- defaultEditMode?: boolean;
25
- renderValue?: () => null;
26
- children: React__default.ReactNode;
27
- }
28
- declare const ClearableSelect: React__default.FC<ClearableSelectProps>;
29
-
30
13
  interface TabPanelProps {
31
14
  children?: React__default.ReactNode;
32
15
  index: number;
@@ -179,7 +162,8 @@ interface SearchableSelectProps {
179
162
  size?: "small" | "medium";
180
163
  style?: React__default.CSSProperties;
181
164
  disabled?: boolean;
182
- onClear?: () => void;
165
+ /** If `null` or omitted, the clear control is not shown. Pass a handler to enable clear. */
166
+ onClear?: (() => void) | null;
183
167
  defaultEditMode?: boolean;
184
168
  multiple?: boolean;
185
169
  }
@@ -206,4 +190,4 @@ interface PhoneNumberFieldProps {
206
190
  }
207
191
  declare const PhoneNumberField: React__default.FC<PhoneNumberFieldProps>;
208
192
 
209
- export { ClearableSelect, EmptyState, FormDialog, FormDrawer, FormPopover, FormSnackBar, IOSSwitch, ImageUploadAvatar, InputFileUpload, Loader, Logo, PhoneNumberField, Pill, SearchableSelect, SkeletonBar, StatusPill, TabPanel, TablePagination, type TablePaginationDesignProps };
193
+ export { EmptyState, FormDialog, FormDrawer, FormPopover, FormSnackBar, IOSSwitch, ImageUploadAvatar, InputFileUpload, Loader, Logo, PhoneNumberField, Pill, SearchableSelect, SkeletonBar, StatusPill, TabPanel, TablePagination, type TablePaginationDesignProps };