@campxdev/react-blueprint 3.0.0-alpha.3 → 3.0.0-alpha.5
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/cjs/index.js +1 -1
- package/dist/cjs/types/src/components/Input/DatePicker/DatePicker.d.ts +2 -1
- package/dist/cjs/types/src/components/Input/DatePicker/components/DatePickerFilter.d.ts +2 -0
- package/dist/cjs/types/src/components/Input/DatePicker/components/DatePickerInput.d.ts +2 -0
- package/dist/cjs/types/src/components/Input/DateTimePicker/DateTimePicker.d.ts +2 -1
- package/dist/cjs/types/src/components/Input/DateTimePicker/components/DateTimePickerFilter.d.ts +2 -0
- package/dist/cjs/types/src/components/Input/DateTimePicker/components/DateTimePickerInput.d.ts +2 -0
- package/dist/cjs/types/src/components/Input/MultiSelect/MultiSelect.d.ts +2 -0
- package/dist/cjs/types/src/components/Input/MultiSelect/components/MultiSelectFilter.d.ts +1 -1
- package/dist/cjs/types/src/components/Input/MultiSelect/components/MultiSelectInput.d.ts +1 -1
- package/dist/cjs/types/src/components/Input/Select/Select.d.ts +2 -1
- package/dist/cjs/types/src/components/Input/SingleSelect/SingleSelect.d.ts +2 -0
- package/dist/cjs/types/src/components/Input/SingleSelect/components/SingleFilter.d.ts +1 -1
- package/dist/cjs/types/src/components/Input/SingleSelect/components/SingleInput.d.ts +1 -1
- package/dist/cjs/types/src/shadcn-components/Input/Select/Select.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/types/src/components/Input/DatePicker/DatePicker.d.ts +2 -1
- package/dist/esm/types/src/components/Input/DatePicker/components/DatePickerFilter.d.ts +2 -0
- package/dist/esm/types/src/components/Input/DatePicker/components/DatePickerInput.d.ts +2 -0
- package/dist/esm/types/src/components/Input/DateTimePicker/DateTimePicker.d.ts +2 -1
- package/dist/esm/types/src/components/Input/DateTimePicker/components/DateTimePickerFilter.d.ts +2 -0
- package/dist/esm/types/src/components/Input/DateTimePicker/components/DateTimePickerInput.d.ts +2 -0
- package/dist/esm/types/src/components/Input/MultiSelect/MultiSelect.d.ts +2 -0
- package/dist/esm/types/src/components/Input/MultiSelect/components/MultiSelectFilter.d.ts +1 -1
- package/dist/esm/types/src/components/Input/MultiSelect/components/MultiSelectInput.d.ts +1 -1
- package/dist/esm/types/src/components/Input/Select/Select.d.ts +2 -1
- package/dist/esm/types/src/components/Input/SingleSelect/SingleSelect.d.ts +2 -0
- package/dist/esm/types/src/components/Input/SingleSelect/components/SingleFilter.d.ts +1 -1
- package/dist/esm/types/src/components/Input/SingleSelect/components/SingleInput.d.ts +1 -1
- package/dist/esm/types/src/shadcn-components/Input/Select/Select.d.ts +2 -2
- package/dist/index.d.ts +13 -6
- package/dist/styles.css +372 -4
- package/package.json +1 -1
- package/src/components/DataDisplay/DataTable/components/TableView.tsx +31 -5
- package/src/components/Feedback/Tooltip/Tooltip.tsx +17 -3
- package/src/components/Input/Button/ButtonLoader.css +2 -2
- package/src/components/Input/DatePicker/DatePicker.tsx +9 -188
- package/src/components/Input/DatePicker/components/DatePickerFilter.tsx +178 -0
- package/src/components/Input/DatePicker/components/DatePickerInput.tsx +192 -0
- package/src/components/Input/DateTimePicker/DateTimePicker.tsx +8 -294
- package/src/components/Input/DateTimePicker/components/DateTimePickerFilter.tsx +292 -0
- package/src/components/Input/DateTimePicker/components/DateTimePickerInput.tsx +297 -0
- package/src/components/Input/MultiSelect/MultiSelect.tsx +2 -0
- package/src/components/Input/MultiSelect/components/MultiSelectFilter.tsx +7 -3
- package/src/components/Input/MultiSelect/components/MultiSelectInput.tsx +8 -3
- package/src/components/Input/Select/Select.tsx +22 -12
- package/src/components/Input/SingleSelect/SingleSelect.tsx +2 -0
- package/src/components/Input/SingleSelect/components/SingleFilter.tsx +7 -3
- package/src/components/Input/SingleSelect/components/SingleInput.tsx +8 -3
- package/src/components/Layout/AppLayout/components/Sidebar/MenuItem.tsx +2 -2
- package/src/components/Navigation/Breadcrumbs/Breadcrumbs.tsx +1 -1
- package/src/components/Navigation/DialogButton/DialogButton.tsx +6 -1
- package/src/components/Navigation/DropDownMenu/DropDownMenu.tsx +1 -1
- package/src/components/Navigation/TabsContainer/TabsContainer.tsx +1 -1
- package/src/shadcn-components/DataDisplay/Dialog/Dialog.tsx +2 -2
- package/src/shadcn-components/Input/Popover/Popover.tsx +1 -1
- package/src/shadcn-components/Input/Select/Select.tsx +8 -8
- package/src/shadcn-components/Navigation/DropdownMenu/DropdownMenu.tsx +2 -2
- package/src/styles/globals.css +4 -2
- package/src/styles/index.css +5 -0
|
@@ -28,7 +28,8 @@ export type DatePickerProps = {
|
|
|
28
28
|
onClose?: () => void;
|
|
29
29
|
onBlur?: React.FocusEventHandler;
|
|
30
30
|
fullWidth?: boolean;
|
|
31
|
+
type?: 'input' | 'filter';
|
|
31
32
|
[key: string]: any;
|
|
32
33
|
};
|
|
33
|
-
export declare const DatePicker: ({
|
|
34
|
+
export declare const DatePicker: ({ type, ...props }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
34
35
|
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { DatePickerProps } from '../DatePicker';
|
|
2
|
+
export declare const DatePickerFilter: ({ label, value, onChange, format, placeholder, shortcutsItems, openPickerIcon: Icon, disabled, minDate, maxDate, disablePast, disableFuture, shouldDisableDate, shouldDisableMonth, shouldDisableYear, className, onOpen, onClose, fullWidth, type, ...rest }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { DatePickerProps } from '../DatePicker';
|
|
2
|
+
export declare const DatePickerInput: ({ label, name, value, onChange, required, format, helperText, placeholder, shortcutsItems, openPickerIcon: Icon, containerProps, error, disabled, minDate, maxDate, disablePast, disableFuture, shouldDisableDate, shouldDisableMonth, shouldDisableYear, className, onOpen, onClose, fullWidth, type, ...rest }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -30,7 +30,8 @@ export type DateTimePickerProps = {
|
|
|
30
30
|
onClose?: () => void;
|
|
31
31
|
onBlur?: React.FocusEventHandler;
|
|
32
32
|
fullWidth?: boolean;
|
|
33
|
+
type?: 'input' | 'filter';
|
|
33
34
|
[key: string]: any;
|
|
34
35
|
};
|
|
35
|
-
export declare const DateTimePicker: ({
|
|
36
|
+
export declare const DateTimePicker: ({ type, ...props }: DateTimePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
36
37
|
export {};
|
package/dist/cjs/types/src/components/Input/DateTimePicker/components/DateTimePickerFilter.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { DateTimePickerProps } from '../DateTimePicker';
|
|
2
|
+
export declare const DateTimePickerFilter: ({ label, value, onChange, format, views, placeholder, shortcutsItems, disabled, minDate, maxDate, disablePast, disableFuture, shouldDisableDate, shouldDisableMonth, shouldDisableYear, className, onOpen, onClose, fullWidth, type, ...rest }: DateTimePickerProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/cjs/types/src/components/Input/DateTimePicker/components/DateTimePickerInput.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { DateTimePickerProps } from '../DateTimePicker';
|
|
2
|
+
export declare const DateTimePickerInput: ({ label, name, value, onChange, required, format, views, helperText, placeholder, shortcutsItems, openPickerIcon: Icon, containerProps, error, disabled, minDate, maxDate, disablePast, disableFuture, shouldDisableDate, shouldDisableMonth, shouldDisableYear, className, onOpen, onClose, fullWidth, type, ...rest }: DateTimePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -35,6 +35,8 @@ export type MultiSelectProps = {
|
|
|
35
35
|
type?: 'input' | 'filter';
|
|
36
36
|
disableClear?: boolean;
|
|
37
37
|
fullWidth?: boolean;
|
|
38
|
+
disabled?: boolean;
|
|
39
|
+
loading?: boolean;
|
|
38
40
|
};
|
|
39
41
|
export declare const MultiSelect: ({ options, optionsApiEndPoint, optionsApiEndpointParams, externalAxios, getValue, value, onChange, dbValueProps, dbLabelProps, onOpen, onClose, type, ...restProps }: MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
40
42
|
export default MultiSelect;
|
|
@@ -11,4 +11,4 @@ export type MultiSelectFilterProps = {
|
|
|
11
11
|
handleClearAll: () => void;
|
|
12
12
|
state: MultiSelectState;
|
|
13
13
|
} & MultiSelectProps;
|
|
14
|
-
export declare const MultiSelectFilter: ({ optionsApiEndPoint, label, name, value, onChange, searchDb, handleOpen, handleClose, handleScroll, handleSelectOption, handleClearAll, state, disableClear, }: MultiSelectFilterProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const MultiSelectFilter: ({ optionsApiEndPoint, label, name, value, onChange, searchDb, handleOpen, handleClose, handleScroll, handleSelectOption, handleClearAll, state, disableClear, disabled, loading, }: MultiSelectFilterProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -11,4 +11,4 @@ export type MultiSelectInputProps = {
|
|
|
11
11
|
handleClearAll: () => void;
|
|
12
12
|
state: MultiSelectState;
|
|
13
13
|
} & MultiSelectProps;
|
|
14
|
-
export declare const MultiSelectInput: ({ optionsApiEndPoint, required, label, name, getValue, value, onChange, error, helperText, searchDb, handleOpen, handleClose, handleScroll, handleSelectOption, handleClearAll, state, disableClear, fullWidth, }: MultiSelectInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const MultiSelectInput: ({ optionsApiEndPoint, required, label, name, getValue, value, onChange, error, helperText, searchDb, handleOpen, handleClose, handleScroll, handleSelectOption, handleClearAll, state, disableClear, fullWidth, disabled, loading, }: MultiSelectInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -12,5 +12,6 @@ export type SelectProps = {
|
|
|
12
12
|
className?: string;
|
|
13
13
|
disabled?: boolean;
|
|
14
14
|
fullWidth?: boolean;
|
|
15
|
+
loading?: boolean;
|
|
15
16
|
};
|
|
16
|
-
export declare const Select: ({ options, onChange, value, placeholder, className, defaultValue, disabled, fullWidth, }: SelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const Select: ({ options, onChange, value, placeholder, className, defaultValue, disabled, fullWidth, loading, }: SelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -35,6 +35,8 @@ export type SingleSelectProps = {
|
|
|
35
35
|
type?: 'input' | 'filter';
|
|
36
36
|
disableClear?: boolean;
|
|
37
37
|
fullWidth?: boolean;
|
|
38
|
+
disabled?: boolean;
|
|
39
|
+
loading?: boolean;
|
|
38
40
|
};
|
|
39
41
|
export declare const SingleSelect: ({ options, optionsApiEndPoint, optionsApiEndpointParams, externalAxios, getValue, value, onChange, dbValueProps, dbLabelProps, onOpen, onClose, type, ...restProps }: SingleSelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
40
42
|
export default SingleSelect;
|
|
@@ -9,4 +9,4 @@ export type SingleFilterProps = {
|
|
|
9
9
|
handleScroll: (event: any) => Promise<void>;
|
|
10
10
|
state: SingleSelectState;
|
|
11
11
|
} & SingleSelectProps;
|
|
12
|
-
export declare const SingleFilter: ({ optionsApiEndPoint, label, name, value, onChange, searchDb, handleOpen, handleClose, handleScroll, state, disableClear, fullWidth, }: SingleFilterProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const SingleFilter: ({ optionsApiEndPoint, label, name, value, onChange, searchDb, handleOpen, handleClose, handleScroll, state, disableClear, fullWidth, disabled, loading, }: SingleFilterProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,4 +9,4 @@ export type SingleInputProps = {
|
|
|
9
9
|
handleScroll: (event: any) => Promise<void>;
|
|
10
10
|
state: SingleSelectState;
|
|
11
11
|
} & SingleSelectProps;
|
|
12
|
-
export declare const SingleInput: ({ optionsApiEndPoint, required, label, name, getValue, value, onChange, error, helperText, searchDb, handleOpen, handleClose, handleScroll, state, fullWidth, }: SingleInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const SingleInput: ({ optionsApiEndPoint, required, label, name, getValue, value, onChange, error, helperText, searchDb, handleOpen, handleClose, handleScroll, state, fullWidth, disabled, loading, }: SingleInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
declare const Select: React.FC<SelectPrimitive.SelectProps>;
|
|
4
4
|
declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -10,4 +10,4 @@ declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitiv
|
|
|
10
10
|
declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
11
|
declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
12
|
declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
-
export { Select,
|
|
13
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
|