prometeo-design-system 2.6.1 → 2.6.3
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/CheckBox.es.js +27 -24
- package/dist/DatePicker.es.js +276 -272
- package/dist/DialogModal.es.js +1 -1
- package/dist/FAButton.d.ts +4 -0
- package/dist/FAButton.es.js +60 -0
- package/dist/HelperComponent-8ErmQ_n9.js +24 -0
- package/dist/Input-BsGk4qj1.js +280 -0
- package/dist/Input.es.js +1 -1
- package/dist/InputFormikV2.d.ts +6 -0
- package/dist/InputFormikV2.es.js +29 -0
- package/dist/RadioButton.d.ts +2 -0
- package/dist/RadioButton.es.js +77 -0
- package/dist/RadioButtonFormik.d.ts +2 -0
- package/dist/RadioButtonFormik.es.js +30 -0
- package/dist/Select-CSFKGhU7.js +812 -0
- package/dist/Select.es.js +1 -1
- package/dist/SelectFormik.es.js +1 -1
- package/dist/SelectSearch.es.js +49 -45
- package/dist/components/DatePicker/DatePicker.d.ts +34 -0
- package/dist/components/Dialog/DialogV2.d.ts +35 -0
- package/dist/components/RadioButton/RadioButton.d.ts +12 -0
- package/dist/components/RadioButtonFormik/RadioButtonFormik.d.ts +8 -0
- package/dist/components/RecurrentDatePicker/FrequencySettings.d.ts +6 -0
- package/dist/components/RecurrentDatePicker/PreviewCalendar.d.ts +2 -0
- package/dist/components/RecurrentDatePicker/RecurrentDatePicker.d.ts +7 -0
- package/dist/components/RecurrentDatePicker/WeekdaysSelector.d.ts +11 -0
- package/dist/components/Select/Select.d.ts +16 -9
- package/dist/components/SelectSearch/SelectSearch.d.ts +3 -2
- package/dist/exports/RadioButton.d.ts +1 -0
- package/dist/exports/RadioButtonFormik.d.ts +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/pages/DialogPage.d.ts +2 -0
- package/dist/pages/RecurrentDatePicker.page.d.ts +2 -0
- package/dist/preview/DialogModalPreview.d.ts +2 -0
- package/dist/preview/RadioButtonPreview.d.ts +2 -0
- package/dist/preview/RecurrentDatePickerPreview.d.ts +2 -0
- package/dist/preview/SelectPreview/CustomFooterExample.d.ts +2 -0
- package/dist/prometeo-design-system.css +1 -1
- package/dist/prometeo-design-system.es.js +300 -371
- package/package.json +9 -1
- package/src/styles/intellisense.css +1 -0
- package/dist/Input-DHdy-pWf.js +0 -295
- package/dist/Select-B5hkJ8Oy.js +0 -797
- package/dist/components/Select copy/Select.d.ts +0 -71
- /package/dist/preview/{SelectPreview.d.ts → SelectPreview/SelectPreview.d.ts} +0 -0
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { ComponentType, JSX, default as React } from 'react';
|
|
2
|
-
import { ComponentVariant, LabelVariant, OptionAccessor } from '../Shared/types';
|
|
3
|
-
export type SelectDisplayMode = "compact" | "chips";
|
|
4
|
-
export type SelectOptionType = {
|
|
5
|
-
label: string;
|
|
6
|
-
value: string | number;
|
|
7
|
-
id: string | number;
|
|
8
|
-
};
|
|
9
|
-
export type CustomSelectionDisplayProps<T> = {
|
|
10
|
-
selectedOptions: T[];
|
|
11
|
-
placeholder?: string;
|
|
12
|
-
multiple: boolean;
|
|
13
|
-
onRemoveOption: (optionId: string | number) => void;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
};
|
|
16
|
-
interface SelectOptionRendererProps<T = unknown> {
|
|
17
|
-
option: SelectOptionType | T;
|
|
18
|
-
isSelected: boolean;
|
|
19
|
-
onSelect: (option: SelectOptionType) => void;
|
|
20
|
-
multiple: boolean;
|
|
21
|
-
disabled?: boolean;
|
|
22
|
-
}
|
|
23
|
-
export interface CustomSelectOptionRendererProps<T> extends SelectOptionRendererProps<T> {
|
|
24
|
-
option: T;
|
|
25
|
-
onSelect: () => void;
|
|
26
|
-
disabled?: boolean;
|
|
27
|
-
}
|
|
28
|
-
export type SelectVariant = "default" | "error" | "success";
|
|
29
|
-
export type SelectControlsHandler = {
|
|
30
|
-
open: () => void;
|
|
31
|
-
close: () => void;
|
|
32
|
-
toggle: () => void;
|
|
33
|
-
};
|
|
34
|
-
export type SelectControlsRef = React.RefObject<SelectControlsHandler | null>;
|
|
35
|
-
export interface SelectProps<T = unknown> {
|
|
36
|
-
label: string;
|
|
37
|
-
value: (string | number)[];
|
|
38
|
-
isLoading?: boolean;
|
|
39
|
-
options: T[];
|
|
40
|
-
onOptionClick?: (option: SelectOptionType, name?: string) => void;
|
|
41
|
-
onChange?: (newValue: SelectOptionType[], name?: string) => void;
|
|
42
|
-
multiple?: boolean;
|
|
43
|
-
onClear?: () => void;
|
|
44
|
-
onClose?: () => void;
|
|
45
|
-
className?: string;
|
|
46
|
-
id?: string;
|
|
47
|
-
emptyMessage?: string;
|
|
48
|
-
optionValue: OptionAccessor<T, string | number>;
|
|
49
|
-
optionLabel: OptionAccessor<T, string>;
|
|
50
|
-
renderOption?: ComponentType<CustomSelectOptionRendererProps<T>>;
|
|
51
|
-
renderSelection?: ComponentType<CustomSelectionDisplayProps<T>>;
|
|
52
|
-
placeholder?: string;
|
|
53
|
-
containerClassName?: string;
|
|
54
|
-
buttonClassName?: string;
|
|
55
|
-
dropdownClassName?: string;
|
|
56
|
-
displayMode?: SelectDisplayMode;
|
|
57
|
-
onRemoveOption?: (option: T) => void;
|
|
58
|
-
width?: string;
|
|
59
|
-
height?: string;
|
|
60
|
-
labelVariant?: LabelVariant;
|
|
61
|
-
attachToParent?: boolean;
|
|
62
|
-
name?: string;
|
|
63
|
-
overflow?: 'wrap' | 'scroll';
|
|
64
|
-
errorComponent?: React.ReactNode;
|
|
65
|
-
helperComponent?: React.ReactNode;
|
|
66
|
-
disabled?: boolean;
|
|
67
|
-
variant?: ComponentVariant;
|
|
68
|
-
controls?: SelectControlsRef;
|
|
69
|
-
}
|
|
70
|
-
declare const _default: <T>(props: SelectProps<T>) => JSX.Element;
|
|
71
|
-
export default _default;
|
|
File without changes
|