bianic-ui 1.13.2 → 1.14.1
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 +248 -301
- package/dist/cjs/lib.css +1 -1
- package/dist/cjs/types/components/Forms/DatePicker/DatePicker.d.ts +10 -3
- package/dist/cjs/types/components/Forms/DatePicker/PickerCalendar.d.ts +1 -1
- package/dist/cjs/types/components/Forms/DatePicker/index.d.ts +1 -0
- package/dist/cjs/types/components/Forms/FormLabel.d.ts +18 -0
- package/dist/cjs/types/components/InfoPanel/config.d.ts +12 -0
- package/dist/cjs/types/components/InfoPanel/index.d.ts +17 -0
- package/dist/cjs/types/components/index.d.ts +1 -0
- package/dist/esm/index.js +248 -302
- package/dist/esm/lib.css +1 -1
- package/dist/esm/types/components/Forms/DatePicker/DatePicker.d.ts +10 -3
- package/dist/esm/types/components/Forms/DatePicker/PickerCalendar.d.ts +1 -1
- package/dist/esm/types/components/Forms/DatePicker/index.d.ts +1 -0
- package/dist/esm/types/components/Forms/FormLabel.d.ts +18 -0
- package/dist/esm/types/components/InfoPanel/config.d.ts +12 -0
- package/dist/esm/types/components/InfoPanel/index.d.ts +17 -0
- package/dist/esm/types/components/index.d.ts +1 -0
- package/dist/index.d.ts +27 -4
- package/package.json +1 -1
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface DatePickerProps extends
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
interface DatePickerProps extends Omit<HTMLAttributes<HTMLInputElement>, 'onChange' | 'value'> {
|
|
3
|
+
descText?: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
onChange?: (date: Date | string) => void;
|
|
6
|
+
required?: boolean;
|
|
3
7
|
value?: Date;
|
|
8
|
+
size: 'sm' | 'md';
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
placeholder: string;
|
|
4
11
|
}
|
|
5
|
-
declare function DatePicker({ value, onChange }: DatePickerProps): React.JSX.Element;
|
|
12
|
+
declare function DatePicker({ value, onChange, size, disabled, placeholder, label, descText, required, }: DatePickerProps): React.JSX.Element;
|
|
6
13
|
export default DatePicker;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ChangeEvent, ComponentPropsWithRef } from 'react';
|
|
2
2
|
interface PickerCalendarProps extends ComponentPropsWithRef<'div'> {
|
|
3
|
-
selectedDate?: Date;
|
|
3
|
+
selectedDate?: Date | null;
|
|
4
4
|
onDateChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
5
5
|
}
|
|
6
6
|
declare const PickerCalendar: ({ selectedDate, onDateChange, ref, }: PickerCalendarProps) => React.JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface FormLabelProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
htmlFor?: string;
|
|
6
|
+
readOnly?: boolean;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const FormLabel: {
|
|
10
|
+
({ children, className, htmlFor, readOnly, required, }: FormLabelProps): React.JSX.Element;
|
|
11
|
+
defaultProps: {
|
|
12
|
+
className: string;
|
|
13
|
+
htmlFor: undefined;
|
|
14
|
+
required: boolean;
|
|
15
|
+
readOnly: boolean;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export default FormLabel;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface InfoPanelProps {
|
|
3
|
+
variant?: 'container' | 'form-sm' | 'form-md';
|
|
4
|
+
color?: 'yellow' | 'blue' | 'grey' | 'white';
|
|
5
|
+
className?: string;
|
|
6
|
+
textClassName?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const InfoPanel: {
|
|
9
|
+
({ variant, color, className, textClassName, }: InfoPanelProps): React.JSX.Element;
|
|
10
|
+
defaultProps: {
|
|
11
|
+
variant: string;
|
|
12
|
+
color: string;
|
|
13
|
+
className: string;
|
|
14
|
+
textClassName: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default InfoPanel;
|
|
@@ -12,6 +12,7 @@ export { default as FileTree } from './FileTree';
|
|
|
12
12
|
export { MenuContainer, MenuItem } from './Menu';
|
|
13
13
|
export { TextInput, Radio, TextArea, Checkbox, SelectInput, LiveSearch, Toggle, SegmentButtonItem, SegmentButtonGroup, FormGroup, FormGroupButton, FormGroupLabel, DropdownItem, DropdownContainer, DatePicker, } from './Forms';
|
|
14
14
|
export * from './Icons';
|
|
15
|
+
export { default as InfoPanel } from './InfoPanel';
|
|
15
16
|
export { default as Modal } from './Modal/Modal';
|
|
16
17
|
export { default as PaginationBar } from './PaginationBar/PaginationBar';
|
|
17
18
|
export { default as Pills } from './Pills/Pills';
|