@edvisor/product-language 0.11.111 → 0.11.113
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/index.cjs +1 -1
- package/index.d.ts +2 -2
- package/index.js +1 -1
- package/lib/components/alert-banner/alert-banner.d.ts +18 -18
- package/lib/components/alert-banner/alert-level-flags.d.ts +18 -18
- package/lib/components/alert-banner/index.d.ts +1 -1
- package/lib/components/autocomplete-input/autocomplete-input.d.ts +39 -39
- package/lib/components/autocomplete-input/index.d.ts +1 -1
- package/lib/components/badge/badge-type-flags.d.ts +18 -18
- package/lib/components/badge/badge.d.ts +7 -7
- package/lib/components/badge/index.d.ts +1 -1
- package/lib/components/card/atoms/card-frame.d.ts +7 -7
- package/lib/components/card/atoms/index.d.ts +1 -1
- package/lib/components/card/card.d.ts +14 -14
- package/lib/components/card/components/card-alert-banner-slot.d.ts +5 -6
- package/lib/components/card/components/card-controls-slot.d.ts +4 -5
- package/lib/components/card/components/card-section-slot.d.ts +11 -11
- package/lib/components/card/components/index.d.ts +3 -3
- package/lib/components/card/index.d.ts +3 -3
- package/lib/components/card/molecules/index.d.ts +1 -1
- package/lib/components/card/molecules/left-right-card.d.ts +16 -16
- package/lib/components/checkbox/checkbox.d.ts +11 -11
- package/lib/components/checkbox/helpers.d.ts +12 -12
- package/lib/components/checkbox/index.d.ts +1 -1
- package/lib/components/date-picker/components/custom-calendar.d.ts +6 -6
- package/lib/components/date-picker/components/index.d.ts +1 -1
- package/lib/components/date-picker/date-picker-utc.d.ts +9 -9
- package/lib/components/date-picker/date-picker.d.ts +19 -19
- package/lib/components/date-picker/helpers/date-picker-factory.d.ts +38 -38
- package/lib/components/date-picker/index.d.ts +2 -2
- package/lib/components/divider/divider-type-flags.d.ts +9 -9
- package/lib/components/divider/divider.d.ts +7 -7
- package/lib/components/divider/index.d.ts +1 -1
- package/lib/components/flag/flag-size-flags.d.ts +22 -22
- package/lib/components/flag/flag.d.ts +4 -4
- package/lib/components/flag/helpers/flag-sprite-sheet.d.ts +5 -5
- package/lib/components/flag/helpers/index.d.ts +1 -1
- package/lib/components/flag/index.d.ts +1 -1
- package/lib/components/flag/types.d.ts +5 -5
- package/lib/components/icon/icon-list.d.ts +149 -150
- package/lib/components/icon/icon.d.ts +149 -149
- package/lib/components/icon/index.d.ts +1 -1
- package/lib/components/index.d.ts +39 -39
- package/lib/components/inline-error/index.d.ts +1 -1
- package/lib/components/inline-error/inline-error.d.ts +7 -7
- package/lib/components/input-field/components/index.d.ts +2 -2
- package/lib/components/input-field/components/labeled-input.d.ts +11 -11
- package/lib/components/input-field/components/stepper.d.ts +7 -7
- package/lib/components/input-field/index.d.ts +4 -4
- package/lib/components/input-field/input-currency.d.ts +23 -22
- package/lib/components/input-field/input-currency.helpers.d.ts +32 -0
- package/lib/components/input-field/input-field.d.ts +27 -27
- package/lib/components/input-field/input-number.d.ts +19 -19
- package/lib/components/input-field/input-text.d.ts +14 -14
- package/lib/components/layout/flex.d.ts +16 -16
- package/lib/components/layout/grid-layout.d.ts +11 -11
- package/lib/components/layout/index.d.ts +3 -3
- package/lib/components/layout/left-right-layout.d.ts +33 -34
- package/lib/components/link/index.d.ts +1 -1
- package/lib/components/link/link.d.ts +14 -14
- package/lib/components/markdown/index.d.ts +1 -1
- package/lib/components/markdown/markdown.d.ts +7 -7
- package/lib/components/menu/index.d.ts +1 -1
- package/lib/components/menu/menu.d.ts +18 -18
- package/lib/components/modal/index.d.ts +3 -3
- package/lib/components/modal/modal-base.d.ts +32 -32
- package/lib/components/modal/modal-destructive.d.ts +16 -16
- package/lib/components/modal/modal.d.ts +16 -16
- package/lib/components/molecules/avatar/avatar-size-flags.d.ts +11 -12
- package/lib/components/molecules/avatar/avatar.d.ts +12 -12
- package/lib/components/molecules/avatar/index.d.ts +1 -1
- package/lib/components/molecules/button/button-flags.d.ts +44 -44
- package/lib/components/molecules/button/button.d.ts +12 -12
- package/lib/components/molecules/button/index.d.ts +1 -1
- package/lib/components/molecules/index.d.ts +4 -4
- package/lib/components/molecules/input-checkbox/index.d.ts +1 -1
- package/lib/components/molecules/input-checkbox/input-checkbox.d.ts +8 -8
- package/lib/components/molecules/simple-menu/SimpleMenu.d.ts +14 -15
- package/lib/components/molecules/simple-menu/index.d.ts +1 -1
- package/lib/components/organisms/choice-list/choice-list.d.ts +9 -9
- package/lib/components/organisms/choice-list/index.d.ts +1 -1
- package/lib/components/organisms/index.d.ts +2 -2
- package/lib/components/organisms/multi-choice-list/index.d.ts +1 -1
- package/lib/components/organisms/multi-choice-list/multi-choice-list.d.ts +11 -11
- package/lib/components/page-header/index.d.ts +1 -1
- package/lib/components/page-header/page-header.d.ts +25 -26
- package/lib/components/pagination/index.d.ts +1 -1
- package/lib/components/pagination/pagination.d.ts +10 -10
- package/lib/components/progress-bar/index.d.ts +1 -1
- package/lib/components/progress-bar/progress-bar-size-flags.d.ts +10 -10
- package/lib/components/progress-bar/progress-bar.d.ts +8 -8
- package/lib/components/radio-button/index.d.ts +1 -1
- package/lib/components/radio-button/radio-button.d.ts +11 -11
- package/lib/components/range-slider/components/bar-chart.d.ts +8 -8
- package/lib/components/range-slider/components/handle.d.ts +12 -12
- package/lib/components/range-slider/components/rail.d.ts +9 -9
- package/lib/components/range-slider/components/slider-component.d.ts +12 -12
- package/lib/components/range-slider/components/slider-inputs.d.ts +15 -16
- package/lib/components/range-slider/components/tick.d.ts +10 -10
- package/lib/components/range-slider/components/track.d.ts +11 -11
- package/lib/components/range-slider/index.d.ts +2 -2
- package/lib/components/range-slider/range-slider.d.ts +16 -16
- package/lib/components/range-slider/slider.d.ts +12 -12
- package/lib/components/range-slider/types.d.ts +11 -11
- package/lib/components/react-select/index.d.ts +1 -1
- package/lib/components/react-select/react-select.d.ts +14 -15
- package/lib/components/select/components/helpers.d.ts +17 -17
- package/lib/components/select/components/menu-container.d.ts +3 -3
- package/lib/components/select/components/menu-list-expanded.d.ts +6 -6
- package/lib/components/select/components/menu-list.d.ts +3 -3
- package/lib/components/select/components/menu-row.d.ts +11 -11
- package/lib/components/select/components/menu.d.ts +2 -3
- package/lib/components/select/components/option.d.ts +2 -3
- package/lib/components/select/components/optionMultiLevel.d.ts +2 -3
- package/lib/components/select/components/optionMultilevelExpanded.d.ts +5 -5
- package/lib/components/select/components/select-label.d.ts +1 -1
- package/lib/components/select/components/value-component-multi.d.ts +4 -4
- package/lib/components/select/components/value-component-single.d.ts +5 -4
- package/lib/components/select/components/value.d.ts +5 -4
- package/lib/components/select/index.d.ts +4 -4
- package/lib/components/select/select.d.ts +7 -10
- package/lib/components/select/types.d.ts +300 -300
- package/lib/components/select/utils.d.ts +16 -16
- package/lib/components/select-with-groups/index.d.ts +2 -2
- package/lib/components/select-with-groups/select-with-groups.d.ts +35 -35
- package/lib/components/spinner/index.d.ts +1 -1
- package/lib/components/spinner/spinner-size-flags.d.ts +10 -10
- package/lib/components/spinner/spinner.d.ts +9 -9
- package/lib/components/stepper/index.d.ts +1 -1
- package/lib/components/stepper/stepper.d.ts +9 -9
- package/lib/components/switch/index.d.ts +1 -1
- package/lib/components/switch/switch.d.ts +13 -13
- package/lib/components/table/hooks/index.d.ts +4 -4
- package/lib/components/table/hooks/useFilteredRows.d.ts +5 -5
- package/lib/components/table/hooks/usePaginatedRows.d.ts +12 -12
- package/lib/components/table/hooks/useSortedRows.d.ts +6 -6
- package/lib/components/table/hooks/useTable.d.ts +47 -47
- package/lib/components/table/index.d.ts +2 -2
- package/lib/components/table/table.d.ts +28 -28
- package/lib/components/tabs/components/index.d.ts +1 -1
- package/lib/components/tabs/components/tab.d.ts +10 -10
- package/lib/components/tabs/index.d.ts +1 -1
- package/lib/components/tabs/tabs.d.ts +18 -18
- package/lib/components/tag/components/close-button.d.ts +8 -8
- package/lib/components/tag/components/index.d.ts +2 -2
- package/lib/components/tag/components/tag-label.d.ts +8 -8
- package/lib/components/tag/index.d.ts +1 -1
- package/lib/components/tag/tag.d.ts +10 -10
- package/lib/components/text-area/index.d.ts +1 -1
- package/lib/components/text-area/text-area.d.ts +11 -11
- package/lib/components/text-toggle/index.d.ts +1 -1
- package/lib/components/text-toggle/text-toggle.d.ts +10 -10
- package/lib/components/thumbnail/index.d.ts +1 -1
- package/lib/components/thumbnail/thumbnail-size-flags.d.ts +10 -10
- package/lib/components/thumbnail/thumbnail.d.ts +10 -10
- package/lib/components/toast/index.d.ts +1 -1
- package/lib/components/toast/toast.d.ts +17 -17
- package/lib/components/tooltip/index.d.ts +1 -1
- package/lib/components/tooltip/tooltip.d.ts +30 -30
- package/lib/components/tree-view/components/tree-node.d.ts +3 -3
- package/lib/components/tree-view/helper.d.ts +12 -12
- package/lib/components/tree-view/index.d.ts +2 -2
- package/lib/components/tree-view/tree-view.d.ts +3 -3
- package/lib/components/tree-view/types.d.ts +63 -63
- package/lib/components/typography/index.d.ts +1 -1
- package/lib/components/typography/typography.d.ts +27 -27
- package/lib/foundations/color-system/base-palette/base-palette.d.ts +76 -76
- package/lib/foundations/color-system/base-palette/index.d.ts +1 -1
- package/lib/foundations/color-system/color-guidelines/color-guidelines.d.ts +133 -133
- package/lib/foundations/color-system/color-guidelines/index.d.ts +1 -1
- package/lib/foundations/color-system/components/color-sample.d.ts +17 -17
- package/lib/foundations/color-system/components/index.d.ts +1 -1
- package/lib/foundations/color-system/index.d.ts +2 -2
- package/lib/foundations/index.d.ts +4 -4
- package/lib/foundations/shadows/components.d.ts +8 -8
- package/lib/foundations/shadows/index.d.ts +1 -1
- package/lib/foundations/shadows/shadows.d.ts +8 -8
- package/lib/foundations/spacing/index.d.ts +1 -1
- package/lib/foundations/spacing/spacing-guidelines.d.ts +37 -37
- package/lib/foundations/spacing/spacing.d.ts +19 -19
- package/lib/foundations/typography/constants.d.ts +39 -39
- package/lib/foundations/typography/fonts.d.ts +1 -1
- package/lib/foundations/typography/index.d.ts +2 -2
- package/lib/foundations/typography/text-aspect-flags.d.ts +30 -30
- package/lib/foundations/typography/typography.d.ts +24 -24
- package/lib/helpers/generic-types.d.ts +21 -21
- package/lib/helpers/index.d.ts +10 -10
- package/lib/helpers/isReactElementOfType.d.ts +6 -8
- package/lib/helpers/nothing.d.ts +9 -10
- package/lib/helpers/numbers.d.ts +51 -51
- package/lib/helpers/safe-navigation.d.ts +26 -26
- package/lib/helpers/slots.d.ts +17 -17
- package/lib/helpers/strings.d.ts +1 -1
- package/lib/helpers/useClickOutside.d.ts +2 -2
- package/lib/helpers/useInputElementState.d.ts +30 -30
- package/lib/helpers/useIsMobile.d.ts +1 -1
- package/lib/helpers/useKeyDown.d.ts +1 -1
- package/package.json +5 -5
|
@@ -1,300 +1,300 @@
|
|
|
1
|
-
import { FC } from '@helpers';
|
|
2
|
-
import { IconNames } from 'components/icon/icon-list';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { CSSProperties } from 'react';
|
|
5
|
-
declare const IconFullList: {
|
|
6
|
-
'arrows-up-down-left-right': JSX.Element;
|
|
7
|
-
'badge-percent': JSX.Element;
|
|
8
|
-
'bed-front': JSX.Element;
|
|
9
|
-
bell: JSX.Element;
|
|
10
|
-
book: JSX.Element;
|
|
11
|
-
'box-archive': JSX.Element;
|
|
12
|
-
'building-columns': JSX.Element;
|
|
13
|
-
birthday: JSX.Element;
|
|
14
|
-
building: JSX.Element;
|
|
15
|
-
'bullseye-arrow': JSX.Element;
|
|
16
|
-
calculator: JSX.Element;
|
|
17
|
-
'calendar-day': JSX.Element;
|
|
18
|
-
'chart-line': JSX.Element;
|
|
19
|
-
'chart-simple': JSX.Element;
|
|
20
|
-
check: JSX.Element;
|
|
21
|
-
'circle-check': JSX.Element;
|
|
22
|
-
'circle-info': JSX.Element;
|
|
23
|
-
'circle-question': JSX.Element;
|
|
24
|
-
'clipboard-check': JSX.Element;
|
|
25
|
-
'comment-lines': JSX.Element;
|
|
26
|
-
'diamond-exclamation': JSX.Element;
|
|
27
|
-
envelope: JSX.Element;
|
|
28
|
-
'eye-slash': JSX.Element;
|
|
29
|
-
eye: JSX.Element;
|
|
30
|
-
'file-certificate': JSX.Element;
|
|
31
|
-
'file-chart-column': JSX.Element;
|
|
32
|
-
'file-invoice-dollar': JSX.Element;
|
|
33
|
-
'file-lines': JSX.Element;
|
|
34
|
-
gear: JSX.Element;
|
|
35
|
-
'graduation-cap': JSX.Element;
|
|
36
|
-
heart: JSX.Element;
|
|
37
|
-
house: JSX.Element;
|
|
38
|
-
inbox: JSX.Element;
|
|
39
|
-
'magnifying-glass': JSX.Element;
|
|
40
|
-
'paper-plane-top': JSX.Element;
|
|
41
|
-
plus: JSX.Element;
|
|
42
|
-
'school-flag': JSX.Element;
|
|
43
|
-
'shield-plus': JSX.Element;
|
|
44
|
-
store: JSX.Element;
|
|
45
|
-
suitcase: JSX.Element;
|
|
46
|
-
tag: JSX.Element;
|
|
47
|
-
'triangle-exclamation': JSX.Element;
|
|
48
|
-
'user-group': JSX.Element;
|
|
49
|
-
user: JSX.Element;
|
|
50
|
-
wrench: JSX.Element;
|
|
51
|
-
'xmark-large': JSX.Element;
|
|
52
|
-
'arrow-down-to-line': JSX.Element;
|
|
53
|
-
'arrow-left': JSX.Element;
|
|
54
|
-
'arrow-right-from-bracket': JSX.Element;
|
|
55
|
-
'arrow-right': JSX.Element;
|
|
56
|
-
'arrow-up-arrow-down': JSX.Element;
|
|
57
|
-
'arrow-right-arrow-left': JSX.Element;
|
|
58
|
-
'arrow-up-from-line': JSX.Element;
|
|
59
|
-
'arrow-up-right-from-square-regular': JSX.Element;
|
|
60
|
-
'badge-check': JSX.Element;
|
|
61
|
-
ban: JSX.Element;
|
|
62
|
-
'bars-filter': JSX.Element;
|
|
63
|
-
bars: JSX.Element;
|
|
64
|
-
bold: JSX.Element;
|
|
65
|
-
bookmark: JSX.Element;
|
|
66
|
-
calendar: JSX.Element;
|
|
67
|
-
campground: JSX.Element;
|
|
68
|
-
'cart-shopping': JSX.Element;
|
|
69
|
-
'cart-shopping-plus': JSX.Element;
|
|
70
|
-
'chart-pie-simple': JSX.Element;
|
|
71
|
-
'chevron-down-solid': JSX.Element;
|
|
72
|
-
'chevron-left-solid': JSX.Element;
|
|
73
|
-
'chevron-right-solid': JSX.Element;
|
|
74
|
-
'chevron-up-solid': JSX.Element;
|
|
75
|
-
'circle-dollar': JSX.Element;
|
|
76
|
-
'circle-exclamation': JSX.Element;
|
|
77
|
-
'circle-small': JSX.Element;
|
|
78
|
-
clock: JSX.Element;
|
|
79
|
-
clone: JSX.Element;
|
|
80
|
-
comment: JSX.Element;
|
|
81
|
-
'credit-card': JSX.Element;
|
|
82
|
-
desktop: JSX.Element;
|
|
83
|
-
'ellipsis-vertical': JSX.Element;
|
|
84
|
-
facebook: JSX.Element;
|
|
85
|
-
'fire-burner': JSX.Element;
|
|
86
|
-
fire: JSX.Element;
|
|
87
|
-
flag: JSX.Element;
|
|
88
|
-
'folder-open': JSX.Element;
|
|
89
|
-
folder: JSX.Element;
|
|
90
|
-
'globe-regular': JSX.Element;
|
|
91
|
-
'grip-dots-vertical': JSX.Element;
|
|
92
|
-
h1: JSX.Element;
|
|
93
|
-
'heart-solid': JSX.Element;
|
|
94
|
-
'heart-on-media': JSX.Element;
|
|
95
|
-
instagram: JSX.Element;
|
|
96
|
-
italic: JSX.Element;
|
|
97
|
-
link: JSX.Element;
|
|
98
|
-
'list-ol': JSX.Element;
|
|
99
|
-
'list-ul': JSX.Element;
|
|
100
|
-
'location-dot': JSX.Element;
|
|
101
|
-
lock: JSX.Element;
|
|
102
|
-
loveseat: JSX.Element;
|
|
103
|
-
minus: JSX.Element;
|
|
104
|
-
'mug-tea': JSX.Element;
|
|
105
|
-
paperclip: JSX.Element;
|
|
106
|
-
pen: JSX.Element;
|
|
107
|
-
'person-praying': JSX.Element;
|
|
108
|
-
phone: JSX.Element;
|
|
109
|
-
'plane-arrival': JSX.Element;
|
|
110
|
-
'plane-departure': JSX.Element;
|
|
111
|
-
print: JSX.Element;
|
|
112
|
-
'restroom-simple': JSX.Element;
|
|
113
|
-
'rotate-left': JSX.Element;
|
|
114
|
-
'rotate-right': JSX.Element;
|
|
115
|
-
school: JSX.Element;
|
|
116
|
-
'share-nodes': JSX.Element;
|
|
117
|
-
spinner: JSX.Element;
|
|
118
|
-
'star-solid': JSX.Element;
|
|
119
|
-
star: JSX.Element;
|
|
120
|
-
strikethrough: JSX.Element;
|
|
121
|
-
'table-tennis-paddle-ball': JSX.Element;
|
|
122
|
-
'trash-can': JSX.Element;
|
|
123
|
-
twitter: JSX.Element;
|
|
124
|
-
underline: JSX.Element;
|
|
125
|
-
utensils: JSX.Element;
|
|
126
|
-
whatsapp: JSX.Element;
|
|
127
|
-
wheelchair: JSX.Element;
|
|
128
|
-
wifi: JSX.Element;
|
|
129
|
-
xmark: JSX.Element;
|
|
130
|
-
youtube: JSX.Element;
|
|
131
|
-
'virus-covid': JSX.Element;
|
|
132
|
-
};
|
|
133
|
-
export interface ISelectProps<T = any> {
|
|
134
|
-
className?: string;
|
|
135
|
-
id?: string;
|
|
136
|
-
style?: CSSProperties;
|
|
137
|
-
options?: IOption<T>[];
|
|
138
|
-
value?: T | T[];
|
|
139
|
-
placeholder?: string;
|
|
140
|
-
emptyText?: string;
|
|
141
|
-
clearable?: boolean;
|
|
142
|
-
searchable?: boolean;
|
|
143
|
-
filterBehavior?: (search: string, option: IOption<T>) => boolean;
|
|
144
|
-
iconPosition?: 'left' | 'right';
|
|
145
|
-
disabled?: boolean;
|
|
146
|
-
multi?: boolean;
|
|
147
|
-
invalid?: boolean;
|
|
148
|
-
errors?: {
|
|
149
|
-
message: string;
|
|
150
|
-
}[];
|
|
151
|
-
rowHeight?: number;
|
|
152
|
-
menuHeight?: number;
|
|
153
|
-
menuPosition?: 'top' | 'bottom';
|
|
154
|
-
menuTitle?: string;
|
|
155
|
-
label?: string;
|
|
156
|
-
labelPosition?: 'top' | 'side';
|
|
157
|
-
labelComponent?: FC<LabelComponentProps<T>>;
|
|
158
|
-
menuComponent?: FC<IMenuComponentProps>;
|
|
159
|
-
maxLength?: number;
|
|
160
|
-
multiLevel?: boolean;
|
|
161
|
-
required?: boolean;
|
|
162
|
-
onChange?(value: T[] | T | undefined, option?: IOption<T>): void;
|
|
163
|
-
onSearch?(value: string): void;
|
|
164
|
-
onOpen?(): void;
|
|
165
|
-
onClose?(): void;
|
|
166
|
-
onInputChange?(value: string): void;
|
|
167
|
-
customIcon?: typeof IconFullList[IconNames];
|
|
168
|
-
IconSuffix?: React.ReactNode;
|
|
169
|
-
detachOptions?: boolean;
|
|
170
|
-
}
|
|
171
|
-
export interface IValueProps {
|
|
172
|
-
options: ISelectProps['options'];
|
|
173
|
-
value: ISelectProps['value'];
|
|
174
|
-
placeholder: ISelectProps['placeholder'];
|
|
175
|
-
clearable: ISelectProps['clearable'];
|
|
176
|
-
searchable: ISelectProps['searchable'];
|
|
177
|
-
iconPosition: ISelectProps['iconPosition'];
|
|
178
|
-
labelComponent: ISelectProps['labelComponent'];
|
|
179
|
-
multi: ISelectProps['multi'];
|
|
180
|
-
disabled: ISelectProps['disabled'];
|
|
181
|
-
invalid: ISelectProps['invalid'];
|
|
182
|
-
errors: ISelectProps['errors'];
|
|
183
|
-
search?: string;
|
|
184
|
-
open: boolean;
|
|
185
|
-
focused?: boolean;
|
|
186
|
-
label: ISelectProps['label'];
|
|
187
|
-
labelPosition: ISelectProps['labelPosition'];
|
|
188
|
-
maxLength?: ISelectProps['maxLength'];
|
|
189
|
-
multiLevel?: ISelectProps['multiLevel'];
|
|
190
|
-
required?: ISelectProps['required'];
|
|
191
|
-
onClear(): void;
|
|
192
|
-
onClick(): void;
|
|
193
|
-
onSearch(search: string): void;
|
|
194
|
-
onSearchFocus(): void;
|
|
195
|
-
onSearchBlur(): void;
|
|
196
|
-
onOptionRemove(value: any): void;
|
|
197
|
-
onInputChange?(value: string): void;
|
|
198
|
-
customIcon?: ISelectProps['customIcon'];
|
|
199
|
-
IconSuffix?: ISelectProps['IconSuffix'];
|
|
200
|
-
}
|
|
201
|
-
export interface IMenuContainerProps {
|
|
202
|
-
className?: string;
|
|
203
|
-
menuTop?: number;
|
|
204
|
-
menuHeight?: RectSize;
|
|
205
|
-
menuPosition?: ISelectProps['menuPosition'];
|
|
206
|
-
invalid?: boolean;
|
|
207
|
-
labelPosition?: string;
|
|
208
|
-
label?: string;
|
|
209
|
-
detachOptions?: boolean;
|
|
210
|
-
children?: React.ReactNode;
|
|
211
|
-
onRef?(el: HTMLDivElement | undefined): void;
|
|
212
|
-
onClick?(el: React.MouseEvent<HTMLDivElement>): void;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
export interface IValueComponentMultiProps<T = any> extends IValueComponentSingleProps<T> {
|
|
216
|
-
options: IOption<T>[];
|
|
217
|
-
onRemove(value: T): void;
|
|
218
|
-
}
|
|
219
|
-
export
|
|
220
|
-
active: boolean;
|
|
221
|
-
type: 'value-single' | 'value-multi' | 'option';
|
|
222
|
-
};
|
|
223
|
-
export interface IValueComponentSingleProps<T = any> {
|
|
224
|
-
className?: string;
|
|
225
|
-
option: IOption<T>;
|
|
226
|
-
labelComponent: ISelectProps['labelComponent'];
|
|
227
|
-
}
|
|
228
|
-
export interface IOptionComponentProps<T extends IOption = any> {
|
|
229
|
-
className?: string;
|
|
230
|
-
option: T;
|
|
231
|
-
active?: boolean;
|
|
232
|
-
selected?: boolean;
|
|
233
|
-
height?: number;
|
|
234
|
-
labelComponent: ISelectProps['labelComponent'];
|
|
235
|
-
search?: string;
|
|
236
|
-
onSelect(value: T['value'], option?: T): void;
|
|
237
|
-
}
|
|
238
|
-
export interface IOptionMultiLevelComponentProps<T extends IOption = any> extends IOptionComponentProps {
|
|
239
|
-
onExpand?(option?: T): void;
|
|
240
|
-
onReturn?(): void;
|
|
241
|
-
}
|
|
242
|
-
export interface IOption<T = any> {
|
|
243
|
-
value: T;
|
|
244
|
-
disabled?: boolean;
|
|
245
|
-
label: string;
|
|
246
|
-
[key: string]: any;
|
|
247
|
-
options?: IOption[];
|
|
248
|
-
}
|
|
249
|
-
export interface IRadioOption<T = any> {
|
|
250
|
-
value: T;
|
|
251
|
-
disabled?: boolean;
|
|
252
|
-
label: string | React.ReactNode;
|
|
253
|
-
[key: string]: any;
|
|
254
|
-
}
|
|
255
|
-
export interface IMenuComponentProps<T = any> {
|
|
256
|
-
options: ISelectProps['options'];
|
|
257
|
-
value: ISelectProps['value'];
|
|
258
|
-
labelComponent: ISelectProps['labelComponent'];
|
|
259
|
-
menuComponent: ISelectProps['menuComponent'];
|
|
260
|
-
emptyText: ISelectProps['emptyText'];
|
|
261
|
-
multi: ISelectProps['multi'];
|
|
262
|
-
rowHeight: ISelectProps['rowHeight'];
|
|
263
|
-
menuHeight: ISelectProps['menuHeight'];
|
|
264
|
-
menuPosition: ISelectProps['menuPosition'];
|
|
265
|
-
invalid: ISelectProps['invalid'];
|
|
266
|
-
detachOptions?: ISelectProps['detachOptions'];
|
|
267
|
-
selectedIndex?: number;
|
|
268
|
-
open: boolean;
|
|
269
|
-
search?: string;
|
|
270
|
-
labelPosition?: string;
|
|
271
|
-
label?: string;
|
|
272
|
-
menuTitle?: string;
|
|
273
|
-
multiLevel?: boolean;
|
|
274
|
-
onSelect(value: T extends any[] ? T[] : T, option?: T): void;
|
|
275
|
-
onExpand?(option?: T): void;
|
|
276
|
-
onReturn?(): void;
|
|
277
|
-
}
|
|
278
|
-
export interface IPosition {
|
|
279
|
-
menuPosition?: 'top' | 'bottom';
|
|
280
|
-
menuHeight?: RectSize;
|
|
281
|
-
label?: string;
|
|
282
|
-
labelPosition?: string;
|
|
283
|
-
}
|
|
284
|
-
export declare const DEFAULT_ROW_HEIGHT = 44;
|
|
285
|
-
export declare const DEFAULT_MENU_HEIGHT = 190;
|
|
286
|
-
export declare const DEFAULT_EMPTY_TEXT = "No results found";
|
|
287
|
-
export declare const DEFAULT_PLACEHOLDER = "Select Something";
|
|
288
|
-
export declare const enum menuPositionType {
|
|
289
|
-
TOP = "top",
|
|
290
|
-
BOTTOM = "bottom"
|
|
291
|
-
}
|
|
292
|
-
export declare const enum labelPositionType {
|
|
293
|
-
TOP = "top",
|
|
294
|
-
SIDE = "side"
|
|
295
|
-
}
|
|
296
|
-
export declare const enum iconPositionType {
|
|
297
|
-
LEFT = "left",
|
|
298
|
-
RIGHT = "right"
|
|
299
|
-
}
|
|
300
|
-
export {};
|
|
1
|
+
import { FC } from '@helpers';
|
|
2
|
+
import { IconNames } from 'components/icon/icon-list';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { CSSProperties } from 'react';
|
|
5
|
+
declare const IconFullList: {
|
|
6
|
+
'arrows-up-down-left-right': import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
'badge-percent': import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
'bed-front': import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
bell: import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
book: import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
'box-archive': import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
'building-columns': import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
birthday: import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
building: import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
'bullseye-arrow': import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
calculator: import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
'calendar-day': import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
'chart-line': import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
'chart-simple': import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
check: import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
'circle-check': import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
'circle-info': import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
'circle-question': import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
'clipboard-check': import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
'comment-lines': import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
'diamond-exclamation': import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
envelope: import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
'eye-slash': import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
eye: import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
'file-certificate': import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
'file-chart-column': import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
'file-invoice-dollar': import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
'file-lines': import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
gear: import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
'graduation-cap': import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
heart: import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
house: import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
inbox: import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
'magnifying-glass': import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
'paper-plane-top': import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
plus: import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
'school-flag': import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
'shield-plus': import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
store: import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
suitcase: import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
tag: import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
'triangle-exclamation': import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
'user-group': import("react/jsx-runtime").JSX.Element;
|
|
49
|
+
user: import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
wrench: import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
'xmark-large': import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
'arrow-down-to-line': import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
'arrow-left': import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
'arrow-right-from-bracket': import("react/jsx-runtime").JSX.Element;
|
|
55
|
+
'arrow-right': import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
'arrow-up-arrow-down': import("react/jsx-runtime").JSX.Element;
|
|
57
|
+
'arrow-right-arrow-left': import("react/jsx-runtime").JSX.Element;
|
|
58
|
+
'arrow-up-from-line': import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
'arrow-up-right-from-square-regular': import("react/jsx-runtime").JSX.Element;
|
|
60
|
+
'badge-check': import("react/jsx-runtime").JSX.Element;
|
|
61
|
+
ban: import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
'bars-filter': import("react/jsx-runtime").JSX.Element;
|
|
63
|
+
bars: import("react/jsx-runtime").JSX.Element;
|
|
64
|
+
bold: import("react/jsx-runtime").JSX.Element;
|
|
65
|
+
bookmark: import("react/jsx-runtime").JSX.Element;
|
|
66
|
+
calendar: import("react/jsx-runtime").JSX.Element;
|
|
67
|
+
campground: import("react/jsx-runtime").JSX.Element;
|
|
68
|
+
'cart-shopping': import("react/jsx-runtime").JSX.Element;
|
|
69
|
+
'cart-shopping-plus': import("react/jsx-runtime").JSX.Element;
|
|
70
|
+
'chart-pie-simple': import("react/jsx-runtime").JSX.Element;
|
|
71
|
+
'chevron-down-solid': import("react/jsx-runtime").JSX.Element;
|
|
72
|
+
'chevron-left-solid': import("react/jsx-runtime").JSX.Element;
|
|
73
|
+
'chevron-right-solid': import("react/jsx-runtime").JSX.Element;
|
|
74
|
+
'chevron-up-solid': import("react/jsx-runtime").JSX.Element;
|
|
75
|
+
'circle-dollar': import("react/jsx-runtime").JSX.Element;
|
|
76
|
+
'circle-exclamation': import("react/jsx-runtime").JSX.Element;
|
|
77
|
+
'circle-small': import("react/jsx-runtime").JSX.Element;
|
|
78
|
+
clock: import("react/jsx-runtime").JSX.Element;
|
|
79
|
+
clone: import("react/jsx-runtime").JSX.Element;
|
|
80
|
+
comment: import("react/jsx-runtime").JSX.Element;
|
|
81
|
+
'credit-card': import("react/jsx-runtime").JSX.Element;
|
|
82
|
+
desktop: import("react/jsx-runtime").JSX.Element;
|
|
83
|
+
'ellipsis-vertical': import("react/jsx-runtime").JSX.Element;
|
|
84
|
+
facebook: import("react/jsx-runtime").JSX.Element;
|
|
85
|
+
'fire-burner': import("react/jsx-runtime").JSX.Element;
|
|
86
|
+
fire: import("react/jsx-runtime").JSX.Element;
|
|
87
|
+
flag: import("react/jsx-runtime").JSX.Element;
|
|
88
|
+
'folder-open': import("react/jsx-runtime").JSX.Element;
|
|
89
|
+
folder: import("react/jsx-runtime").JSX.Element;
|
|
90
|
+
'globe-regular': import("react/jsx-runtime").JSX.Element;
|
|
91
|
+
'grip-dots-vertical': import("react/jsx-runtime").JSX.Element;
|
|
92
|
+
h1: import("react/jsx-runtime").JSX.Element;
|
|
93
|
+
'heart-solid': import("react/jsx-runtime").JSX.Element;
|
|
94
|
+
'heart-on-media': import("react/jsx-runtime").JSX.Element;
|
|
95
|
+
instagram: import("react/jsx-runtime").JSX.Element;
|
|
96
|
+
italic: import("react/jsx-runtime").JSX.Element;
|
|
97
|
+
link: import("react/jsx-runtime").JSX.Element;
|
|
98
|
+
'list-ol': import("react/jsx-runtime").JSX.Element;
|
|
99
|
+
'list-ul': import("react/jsx-runtime").JSX.Element;
|
|
100
|
+
'location-dot': import("react/jsx-runtime").JSX.Element;
|
|
101
|
+
lock: import("react/jsx-runtime").JSX.Element;
|
|
102
|
+
loveseat: import("react/jsx-runtime").JSX.Element;
|
|
103
|
+
minus: import("react/jsx-runtime").JSX.Element;
|
|
104
|
+
'mug-tea': import("react/jsx-runtime").JSX.Element;
|
|
105
|
+
paperclip: import("react/jsx-runtime").JSX.Element;
|
|
106
|
+
pen: import("react/jsx-runtime").JSX.Element;
|
|
107
|
+
'person-praying': import("react/jsx-runtime").JSX.Element;
|
|
108
|
+
phone: import("react/jsx-runtime").JSX.Element;
|
|
109
|
+
'plane-arrival': import("react/jsx-runtime").JSX.Element;
|
|
110
|
+
'plane-departure': import("react/jsx-runtime").JSX.Element;
|
|
111
|
+
print: import("react/jsx-runtime").JSX.Element;
|
|
112
|
+
'restroom-simple': import("react/jsx-runtime").JSX.Element;
|
|
113
|
+
'rotate-left': import("react/jsx-runtime").JSX.Element;
|
|
114
|
+
'rotate-right': import("react/jsx-runtime").JSX.Element;
|
|
115
|
+
school: import("react/jsx-runtime").JSX.Element;
|
|
116
|
+
'share-nodes': import("react/jsx-runtime").JSX.Element;
|
|
117
|
+
spinner: import("react/jsx-runtime").JSX.Element;
|
|
118
|
+
'star-solid': import("react/jsx-runtime").JSX.Element;
|
|
119
|
+
star: import("react/jsx-runtime").JSX.Element;
|
|
120
|
+
strikethrough: import("react/jsx-runtime").JSX.Element;
|
|
121
|
+
'table-tennis-paddle-ball': import("react/jsx-runtime").JSX.Element;
|
|
122
|
+
'trash-can': import("react/jsx-runtime").JSX.Element;
|
|
123
|
+
twitter: import("react/jsx-runtime").JSX.Element;
|
|
124
|
+
underline: import("react/jsx-runtime").JSX.Element;
|
|
125
|
+
utensils: import("react/jsx-runtime").JSX.Element;
|
|
126
|
+
whatsapp: import("react/jsx-runtime").JSX.Element;
|
|
127
|
+
wheelchair: import("react/jsx-runtime").JSX.Element;
|
|
128
|
+
wifi: import("react/jsx-runtime").JSX.Element;
|
|
129
|
+
xmark: import("react/jsx-runtime").JSX.Element;
|
|
130
|
+
youtube: import("react/jsx-runtime").JSX.Element;
|
|
131
|
+
'virus-covid': import("react/jsx-runtime").JSX.Element;
|
|
132
|
+
};
|
|
133
|
+
export interface ISelectProps<T = any> {
|
|
134
|
+
className?: string;
|
|
135
|
+
id?: string;
|
|
136
|
+
style?: CSSProperties;
|
|
137
|
+
options?: IOption<T>[];
|
|
138
|
+
value?: T | T[];
|
|
139
|
+
placeholder?: string;
|
|
140
|
+
emptyText?: string;
|
|
141
|
+
clearable?: boolean;
|
|
142
|
+
searchable?: boolean;
|
|
143
|
+
filterBehavior?: (search: string, option: IOption<T>) => boolean;
|
|
144
|
+
iconPosition?: 'left' | 'right';
|
|
145
|
+
disabled?: boolean;
|
|
146
|
+
multi?: boolean;
|
|
147
|
+
invalid?: boolean;
|
|
148
|
+
errors?: {
|
|
149
|
+
message: string;
|
|
150
|
+
}[];
|
|
151
|
+
rowHeight?: number;
|
|
152
|
+
menuHeight?: number;
|
|
153
|
+
menuPosition?: 'top' | 'bottom';
|
|
154
|
+
menuTitle?: string;
|
|
155
|
+
label?: string;
|
|
156
|
+
labelPosition?: 'top' | 'side';
|
|
157
|
+
labelComponent?: FC<LabelComponentProps<T>>;
|
|
158
|
+
menuComponent?: FC<IMenuComponentProps>;
|
|
159
|
+
maxLength?: number;
|
|
160
|
+
multiLevel?: boolean;
|
|
161
|
+
required?: boolean;
|
|
162
|
+
onChange?(value: T[] | T | undefined, option?: IOption<T>): void;
|
|
163
|
+
onSearch?(value: string): void;
|
|
164
|
+
onOpen?(): void;
|
|
165
|
+
onClose?(): void;
|
|
166
|
+
onInputChange?(value: string): void;
|
|
167
|
+
customIcon?: typeof IconFullList[IconNames];
|
|
168
|
+
IconSuffix?: React.ReactNode;
|
|
169
|
+
detachOptions?: boolean;
|
|
170
|
+
}
|
|
171
|
+
export interface IValueProps {
|
|
172
|
+
options: ISelectProps['options'];
|
|
173
|
+
value: ISelectProps['value'];
|
|
174
|
+
placeholder: ISelectProps['placeholder'];
|
|
175
|
+
clearable: ISelectProps['clearable'];
|
|
176
|
+
searchable: ISelectProps['searchable'];
|
|
177
|
+
iconPosition: ISelectProps['iconPosition'];
|
|
178
|
+
labelComponent: ISelectProps['labelComponent'];
|
|
179
|
+
multi: ISelectProps['multi'];
|
|
180
|
+
disabled: ISelectProps['disabled'];
|
|
181
|
+
invalid: ISelectProps['invalid'];
|
|
182
|
+
errors: ISelectProps['errors'];
|
|
183
|
+
search?: string;
|
|
184
|
+
open: boolean;
|
|
185
|
+
focused?: boolean;
|
|
186
|
+
label: ISelectProps['label'];
|
|
187
|
+
labelPosition: ISelectProps['labelPosition'];
|
|
188
|
+
maxLength?: ISelectProps['maxLength'];
|
|
189
|
+
multiLevel?: ISelectProps['multiLevel'];
|
|
190
|
+
required?: ISelectProps['required'];
|
|
191
|
+
onClear(): void;
|
|
192
|
+
onClick(): void;
|
|
193
|
+
onSearch(search: string): void;
|
|
194
|
+
onSearchFocus(): void;
|
|
195
|
+
onSearchBlur(): void;
|
|
196
|
+
onOptionRemove(value: any): void;
|
|
197
|
+
onInputChange?(value: string): void;
|
|
198
|
+
customIcon?: ISelectProps['customIcon'];
|
|
199
|
+
IconSuffix?: ISelectProps['IconSuffix'];
|
|
200
|
+
}
|
|
201
|
+
export interface IMenuContainerProps {
|
|
202
|
+
className?: string;
|
|
203
|
+
menuTop?: number;
|
|
204
|
+
menuHeight?: RectSize;
|
|
205
|
+
menuPosition?: ISelectProps['menuPosition'];
|
|
206
|
+
invalid?: boolean;
|
|
207
|
+
labelPosition?: string;
|
|
208
|
+
label?: string;
|
|
209
|
+
detachOptions?: boolean;
|
|
210
|
+
children?: React.ReactNode;
|
|
211
|
+
onRef?(el: HTMLDivElement | undefined): void;
|
|
212
|
+
onClick?(el: React.MouseEvent<HTMLDivElement>): void;
|
|
213
|
+
}
|
|
214
|
+
type RectSize = number | 'auto';
|
|
215
|
+
export interface IValueComponentMultiProps<T = any> extends IValueComponentSingleProps<T> {
|
|
216
|
+
options: IOption<T>[];
|
|
217
|
+
onRemove(value: T): void;
|
|
218
|
+
}
|
|
219
|
+
export type LabelComponentProps<T = any> = IOption<T> & {
|
|
220
|
+
active: boolean;
|
|
221
|
+
type: 'value-single' | 'value-multi' | 'option';
|
|
222
|
+
};
|
|
223
|
+
export interface IValueComponentSingleProps<T = any> {
|
|
224
|
+
className?: string;
|
|
225
|
+
option: IOption<T>;
|
|
226
|
+
labelComponent: ISelectProps['labelComponent'];
|
|
227
|
+
}
|
|
228
|
+
export interface IOptionComponentProps<T extends IOption = any> {
|
|
229
|
+
className?: string;
|
|
230
|
+
option: T;
|
|
231
|
+
active?: boolean;
|
|
232
|
+
selected?: boolean;
|
|
233
|
+
height?: number;
|
|
234
|
+
labelComponent: ISelectProps['labelComponent'];
|
|
235
|
+
search?: string;
|
|
236
|
+
onSelect(value: T['value'], option?: T): void;
|
|
237
|
+
}
|
|
238
|
+
export interface IOptionMultiLevelComponentProps<T extends IOption = any> extends IOptionComponentProps {
|
|
239
|
+
onExpand?(option?: T): void;
|
|
240
|
+
onReturn?(): void;
|
|
241
|
+
}
|
|
242
|
+
export interface IOption<T = any> {
|
|
243
|
+
value: T;
|
|
244
|
+
disabled?: boolean;
|
|
245
|
+
label: string;
|
|
246
|
+
[key: string]: any;
|
|
247
|
+
options?: IOption[];
|
|
248
|
+
}
|
|
249
|
+
export interface IRadioOption<T = any> {
|
|
250
|
+
value: T;
|
|
251
|
+
disabled?: boolean;
|
|
252
|
+
label: string | React.ReactNode;
|
|
253
|
+
[key: string]: any;
|
|
254
|
+
}
|
|
255
|
+
export interface IMenuComponentProps<T = any> {
|
|
256
|
+
options: ISelectProps['options'];
|
|
257
|
+
value: ISelectProps['value'];
|
|
258
|
+
labelComponent: ISelectProps['labelComponent'];
|
|
259
|
+
menuComponent: ISelectProps['menuComponent'];
|
|
260
|
+
emptyText: ISelectProps['emptyText'];
|
|
261
|
+
multi: ISelectProps['multi'];
|
|
262
|
+
rowHeight: ISelectProps['rowHeight'];
|
|
263
|
+
menuHeight: ISelectProps['menuHeight'];
|
|
264
|
+
menuPosition: ISelectProps['menuPosition'];
|
|
265
|
+
invalid: ISelectProps['invalid'];
|
|
266
|
+
detachOptions?: ISelectProps['detachOptions'];
|
|
267
|
+
selectedIndex?: number;
|
|
268
|
+
open: boolean;
|
|
269
|
+
search?: string;
|
|
270
|
+
labelPosition?: string;
|
|
271
|
+
label?: string;
|
|
272
|
+
menuTitle?: string;
|
|
273
|
+
multiLevel?: boolean;
|
|
274
|
+
onSelect(value: T extends any[] ? T[] : T, option?: T): void;
|
|
275
|
+
onExpand?(option?: T): void;
|
|
276
|
+
onReturn?(): void;
|
|
277
|
+
}
|
|
278
|
+
export interface IPosition {
|
|
279
|
+
menuPosition?: 'top' | 'bottom';
|
|
280
|
+
menuHeight?: RectSize;
|
|
281
|
+
label?: string;
|
|
282
|
+
labelPosition?: string;
|
|
283
|
+
}
|
|
284
|
+
export declare const DEFAULT_ROW_HEIGHT = 44;
|
|
285
|
+
export declare const DEFAULT_MENU_HEIGHT = 190;
|
|
286
|
+
export declare const DEFAULT_EMPTY_TEXT = "No results found";
|
|
287
|
+
export declare const DEFAULT_PLACEHOLDER = "Select Something";
|
|
288
|
+
export declare const enum menuPositionType {
|
|
289
|
+
TOP = "top",
|
|
290
|
+
BOTTOM = "bottom"
|
|
291
|
+
}
|
|
292
|
+
export declare const enum labelPositionType {
|
|
293
|
+
TOP = "top",
|
|
294
|
+
SIDE = "side"
|
|
295
|
+
}
|
|
296
|
+
export declare const enum iconPositionType {
|
|
297
|
+
LEFT = "left",
|
|
298
|
+
RIGHT = "right"
|
|
299
|
+
}
|
|
300
|
+
export {};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { IOption, IPosition } from './types';
|
|
2
|
-
export declare function getDocument(): Document | undefined;
|
|
3
|
-
export declare function equal(valueA: any, valueB: any): boolean;
|
|
4
|
-
export declare function getValueOptions(options: IOption[], value: any, multi: boolean | undefined, multiLevel: boolean | undefined): IOption<any>[];
|
|
5
|
-
export declare function getValueMultiLevelOptions(options: IOption[], value: any): IOption<any>[];
|
|
6
|
-
export declare const keys: {
|
|
7
|
-
ARROW_UP: string;
|
|
8
|
-
ARROW_DOWN: string;
|
|
9
|
-
ENTER: string;
|
|
10
|
-
TAB: string;
|
|
11
|
-
ESC: string;
|
|
12
|
-
BACKSPACE: string;
|
|
13
|
-
SPACE: string;
|
|
14
|
-
};
|
|
15
|
-
export declare function toKey(value: any): string | number;
|
|
16
|
-
export declare const topPosition: (props: IPosition) => string;
|
|
1
|
+
import { IOption, IPosition } from './types';
|
|
2
|
+
export declare function getDocument(): Document | undefined;
|
|
3
|
+
export declare function equal(valueA: any, valueB: any): boolean;
|
|
4
|
+
export declare function getValueOptions(options: IOption[], value: any, multi: boolean | undefined, multiLevel: boolean | undefined): IOption<any>[];
|
|
5
|
+
export declare function getValueMultiLevelOptions(options: IOption[], value: any): IOption<any>[];
|
|
6
|
+
export declare const keys: {
|
|
7
|
+
ARROW_UP: string;
|
|
8
|
+
ARROW_DOWN: string;
|
|
9
|
+
ENTER: string;
|
|
10
|
+
TAB: string;
|
|
11
|
+
ESC: string;
|
|
12
|
+
BACKSPACE: string;
|
|
13
|
+
SPACE: string;
|
|
14
|
+
};
|
|
15
|
+
export declare function toKey(value: any): string | number;
|
|
16
|
+
export declare const topPosition: (props: IPosition) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { SelectWithGroups } from './select-with-groups';
|
|
2
|
-
export type { ISelectOption, IGroupedOption, ISelectWithGroupsProps } from './select-with-groups';
|
|
1
|
+
export { SelectWithGroups } from './select-with-groups';
|
|
2
|
+
export type { ISelectOption, IGroupedOption, ISelectWithGroupsProps } from './select-with-groups';
|