freemium-ui 2.0.91 → 2.1.0-alpha.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/lib/Accordion-Ccv-p2G6.js +134 -0
- package/lib/Accordion.d.ts +56 -0
- package/lib/Accordion.js +7 -0
- package/lib/Alert-BtEbkVK1.js +52 -0
- package/lib/Alert.d.ts +66 -0
- package/lib/Alert.js +6 -0
- package/lib/AutoComplete-DF33_uur.js +608 -0
- package/lib/AutoComplete.d.ts +105 -0
- package/lib/AutoComplete.js +14 -0
- package/lib/BoxedRadio-D5Kiintm.js +75 -0
- package/lib/BoxedRadio.d.ts +61 -0
- package/lib/BoxedRadio.js +10 -0
- package/lib/Button-Bd1O8_k7.js +34 -0
- package/lib/Button.d.ts +34 -0
- package/lib/Button.js +2 -0
- package/lib/ButtonDropdown-BZvCwUDe.js +37 -0
- package/lib/ButtonDropdown.d.ts +82 -0
- package/lib/ButtonDropdown.js +11 -0
- package/lib/Calendar-C0xW_pPO.js +32 -0
- package/lib/Calendar.d.ts +25 -0
- package/lib/Calendar.js +2 -0
- package/lib/Checkbox-By1CgFUJ.js +66 -0
- package/lib/Checkbox.d.ts +28 -0
- package/lib/Checkbox.js +7 -0
- package/lib/ChevronUp-BWiG3XYd.js +7 -0
- package/lib/Combination-AmN1Cqrf.js +210 -0
- package/lib/Confirmation-49GhlyzQ.js +66 -0
- package/lib/Confirmation.d.ts +72 -0
- package/lib/Confirmation.js +8 -0
- package/lib/Cross-CIeKwtq6.js +7 -0
- package/lib/CustomizeColumns-BSF8e_we.js +865 -0
- package/lib/Drawer-CnmXL5_B.js +33 -0
- package/lib/Drawer.d.ts +50 -0
- package/lib/Drawer.js +8 -0
- package/lib/Dropdown-D59u6zOt.js +89 -0
- package/lib/Dropdown.d.ts +162 -0
- package/lib/Dropdown.js +15 -0
- package/lib/ErrorText-Uvye7uop.js +8 -0
- package/lib/Info-BsILbpCG.js +9 -0
- package/lib/Input.d.ts +66 -0
- package/lib/Input.js +5 -0
- package/lib/Loader-b8lHCp4N.js +13 -0
- package/lib/Loader.d.ts +21 -0
- package/lib/Loader.js +3 -0
- package/lib/Menu-DoE00Mg-.js +19 -0
- package/lib/Menu.d.ts +80 -0
- package/lib/Menu.js +11 -0
- package/lib/Modal-D5RJHnbn.js +51 -0
- package/lib/Modal.d.ts +51 -0
- package/lib/Modal.js +7 -0
- package/lib/MultiSelectDropdown-DblSkVpv.js +84 -0
- package/lib/MultiSelectDropdown.d.ts +116 -0
- package/lib/MultiSelectDropdown.js +14 -0
- package/lib/Pickers.d.ts +94 -0
- package/lib/Pickers.js +16 -0
- package/lib/Popover-BU73-g73.js +90 -0
- package/lib/Popover.d.ts +94 -0
- package/lib/Popover.js +8 -0
- package/lib/QuillEditor.d.ts +29 -0
- package/lib/QuillEditor.js +3369 -0
- package/lib/Radio.d.ts +69 -0
- package/lib/Radio.js +10 -0
- package/lib/RadioGroup-DM_Y48_b.js +42 -0
- package/lib/Reorder-DUSHsq7i.js +697 -0
- package/lib/Reorder.d.ts +36 -0
- package/lib/Reorder.js +5 -0
- package/lib/SortDropdown-B0SSCJX6.js +17 -0
- package/lib/SortDropdown.d.ts +47 -0
- package/lib/SortDropdown.js +10 -0
- package/lib/Table-cidceyn5.js +117 -0
- package/lib/Table.d.ts +95 -0
- package/lib/Table.js +18 -0
- package/lib/Tabs-j1c7ybY-.js +50 -0
- package/lib/Tabs.d.ts +68 -0
- package/lib/Tabs.js +6 -0
- package/lib/Tag-Cu75ReQP.js +49 -0
- package/lib/Tag.d.ts +50 -0
- package/lib/Tag.js +4 -0
- package/lib/TextArea--fiwZ_QM.js +98 -0
- package/lib/ThemeProvider-bWL8hyYA.js +7 -0
- package/lib/ThemeProvider.d.ts +158 -0
- package/lib/ThemeProvider.js +9 -0
- package/lib/TickIcon-BJqSAG4_.js +7 -0
- package/lib/TimePicker-7Uqb3xJn.js +6598 -0
- package/lib/Toast.d.ts +61 -0
- package/lib/Toast.js +10 -0
- package/lib/ToastProvider-CMk1PSzB.js +264 -0
- package/lib/Toggle-BGV7Nc6t.js +59 -0
- package/lib/Toggle.d.ts +35 -0
- package/lib/Toggle.js +6 -0
- package/lib/Tooltip-DU_ATFRB.js +127 -0
- package/lib/Tooltip.d.ts +53 -0
- package/lib/Tooltip.js +8 -0
- package/lib/Typography-BcAppjDF.js +11 -0
- package/lib/Typography.d.ts +20 -0
- package/lib/Typography.js +2 -0
- package/lib/WorkspaceTable-BV5zccyt.js +100 -0
- package/lib/WorkspaceTable.d.ts +85 -0
- package/lib/WorkspaceTable.js +18 -0
- package/lib/_commonjsHelpers-fGXyuM93.js +4 -0
- package/lib/allPaths-DKtiSqHL.js +19 -0
- package/lib/allPathsLoader-Drb6xO2O.js +5 -0
- package/lib/index-B9EcTy5B.js +46 -0
- package/lib/index-BPxkexqj.js +60 -0
- package/lib/index-BROhcSiX.js +8 -0
- package/lib/index-BT1o947S.js +8 -0
- package/lib/index-BY9lf-do.js +2 -0
- package/lib/index-BdTXfGkV.js +24 -0
- package/lib/index-BnDw8kbT.js +135 -0
- package/lib/index-BrF1HKA1.js +338 -0
- package/lib/index-BxNZ3C71.js +4 -0
- package/lib/index-ByHJlnsx.js +26 -0
- package/lib/index-COoRg_pp.js +55 -0
- package/lib/index-CeIB4COQ.js +10 -0
- package/lib/index-Cjkk7z9c.js +19 -0
- package/lib/index-D6iTv28r.js +607 -0
- package/lib/index-D8E8s0tV.js +60 -0
- package/lib/index-DtILdK5l.js +48 -0
- package/lib/index-DtzckyT3.js +4 -0
- package/lib/index-Dy5ztCxm.js +27 -0
- package/lib/index-KMLwCm58.js +607 -0
- package/lib/index-_WvIFKTM.js +6 -0
- package/lib/index.d.ts +1826 -1842
- package/lib/index.js +54 -17049
- package/lib/isTypedArray-DN-UDJh5.js +89 -0
- package/lib/keyframes-PnzFl0I5.js +20 -0
- package/lib/package.json +133 -3
- package/lib/rollup.config.d.ts.map +1 -0
- package/lib/splitPathsBySizeLoader-Cm_vHo5k.js +23 -0
- package/lib/styled-components.browser.esm-Bq2p-e5F.js +479 -0
- package/lib/styles-BbwNLGy3.js +177 -0
- package/lib/styles-BlCCKAZq.js +1192 -0
- package/lib/use-toasts-GqvPVmSy.js +5 -0
- package/package.json +150 -12
- package/buildspec.yml +0 -22
- package/freemium-ui-2.0.91.tgz +0 -0
- package/lib/index.cjs.js +0 -17225
package/lib/index.d.ts
CHANGED
|
@@ -10,14 +10,14 @@ import { SelectProps, SelectContentProps, SelectItemProps } from '@radix-ui/reac
|
|
|
10
10
|
export { Item as RadixSelectItem } from '@radix-ui/react-select';
|
|
11
11
|
import { UseSelectProps, UseComboboxProps, UseMultipleSelectionProps } from 'downshift';
|
|
12
12
|
import { RadioGroupProps as RadioGroupProps$1, RadioGroupContextValue } from '@radix-ui/react-radio-group';
|
|
13
|
+
import * as DropdownMenu from '@radix-ui/react-dropdown-menu';
|
|
14
|
+
import { MenuItemProps as MenuItemProps$1 } from '@radix-ui/react-dropdown-menu';
|
|
15
|
+
export { Item as RadixMenuItem } from '@radix-ui/react-dropdown-menu';
|
|
13
16
|
import { CheckboxProps as CheckboxProps$1 } from '@radix-ui/react-checkbox';
|
|
14
17
|
import * as styled_components from 'styled-components';
|
|
15
18
|
import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
16
19
|
import * as _radix_ui_react_label from '@radix-ui/react-label';
|
|
17
20
|
import { LabelProps } from '@radix-ui/react-label';
|
|
18
|
-
import * as DropdownMenu from '@radix-ui/react-dropdown-menu';
|
|
19
|
-
import { MenuItemProps as MenuItemProps$1 } from '@radix-ui/react-dropdown-menu';
|
|
20
|
-
export { Item as RadixMenuItem } from '@radix-ui/react-dropdown-menu';
|
|
21
21
|
import { DateInput3Props, DateRangeInput3Props, TimePrecision } from '@blueprintjs/datetime2';
|
|
22
22
|
import { DraggableSyntheticListeners } from '@dnd-kit/core';
|
|
23
23
|
import { CoreOptions, ColumnDef, Cell, RowSelectionState } from '@tanstack/react-table';
|
|
@@ -25,1978 +25,1861 @@ import * as Tabs$1 from '@radix-ui/react-tabs';
|
|
|
25
25
|
import { TabsProps as TabsProps$1 } from '@radix-ui/react-tabs';
|
|
26
26
|
import { TooltipProviderProps, TooltipProps as TooltipProps$1, TooltipArrowProps } from '@radix-ui/react-tooltip';
|
|
27
27
|
|
|
28
|
-
interface AccordionItemProps {
|
|
29
|
-
id: string;
|
|
30
|
-
name: string;
|
|
31
|
-
hide?: boolean;
|
|
32
|
-
disabled?: boolean;
|
|
33
|
-
[key: string]: any;
|
|
34
|
-
}
|
|
35
|
-
interface AccordionProps<T extends AccordionItemProps = AccordionItemProps> extends Omit<React.HtmlHTMLAttributes<HTMLElement>, 'onChange' | 'dir'> {
|
|
36
|
-
/**
|
|
37
|
-
* options for Tabs
|
|
38
|
-
*/
|
|
39
|
-
options?: Array<T>;
|
|
40
|
-
/**
|
|
41
|
-
* options for Tabs
|
|
42
|
-
*/
|
|
43
|
-
renderContent?: (accordianOption: T) => React.ReactNode;
|
|
44
|
-
/**
|
|
45
|
-
* options for Tabs
|
|
46
|
-
*/
|
|
47
|
-
renderTitle?: (accordianOption: T) => React.ReactNode;
|
|
48
|
-
/**
|
|
49
|
-
* Id accessor of tabes
|
|
50
|
-
*/
|
|
51
|
-
idAccessor?: string;
|
|
52
|
-
/**
|
|
53
|
-
* Id accessor of tabes
|
|
54
|
-
*/
|
|
55
|
-
hideIcon?: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* Name accessor of tabes
|
|
58
|
-
*/
|
|
59
|
-
nameAccessor?: string;
|
|
60
|
-
/**
|
|
61
|
-
* value for tabs
|
|
62
|
-
*/
|
|
63
|
-
value?: AccordionSingleProps['value'];
|
|
64
|
-
/**
|
|
65
|
-
* default value of tabes
|
|
66
|
-
*/
|
|
67
|
-
defaultValue?: AccordionSingleProps['defaultValue'];
|
|
68
|
-
/**
|
|
69
|
-
* Function to be called when the selected item changes
|
|
70
|
-
*/
|
|
71
|
-
onChange?: AccordionSingleProps['onValueChange'];
|
|
28
|
+
interface AccordionItemProps {
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
hide?: boolean;
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
}
|
|
35
|
+
interface AccordionProps<T extends AccordionItemProps = AccordionItemProps> extends Omit<React.HtmlHTMLAttributes<HTMLElement>, 'onChange' | 'dir'> {
|
|
36
|
+
/**
|
|
37
|
+
* options for Tabs
|
|
38
|
+
*/
|
|
39
|
+
options?: Array<T>;
|
|
40
|
+
/**
|
|
41
|
+
* options for Tabs
|
|
42
|
+
*/
|
|
43
|
+
renderContent?: (accordianOption: T) => React.ReactNode;
|
|
44
|
+
/**
|
|
45
|
+
* options for Tabs
|
|
46
|
+
*/
|
|
47
|
+
renderTitle?: (accordianOption: T) => React.ReactNode;
|
|
48
|
+
/**
|
|
49
|
+
* Id accessor of tabes
|
|
50
|
+
*/
|
|
51
|
+
idAccessor?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Id accessor of tabes
|
|
54
|
+
*/
|
|
55
|
+
hideIcon?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Name accessor of tabes
|
|
58
|
+
*/
|
|
59
|
+
nameAccessor?: string;
|
|
60
|
+
/**
|
|
61
|
+
* value for tabs
|
|
62
|
+
*/
|
|
63
|
+
value?: AccordionSingleProps['value'];
|
|
64
|
+
/**
|
|
65
|
+
* default value of tabes
|
|
66
|
+
*/
|
|
67
|
+
defaultValue?: AccordionSingleProps['defaultValue'];
|
|
68
|
+
/**
|
|
69
|
+
* Function to be called when the selected item changes
|
|
70
|
+
*/
|
|
71
|
+
onChange?: AccordionSingleProps['onValueChange'];
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
/**
|
|
75
|
-
* Accordion component from the design system.
|
|
76
|
-
*/
|
|
74
|
+
/**
|
|
75
|
+
* Accordion component from the design system.
|
|
76
|
+
*/
|
|
77
77
|
declare const Accordion: <T extends AccordionItemProps>({ idAccessor, nameAccessor, renderContent, hideIcon, renderTitle, options, value, onChange, defaultValue, ...props }: AccordionProps<T>) => react__default.JSX.Element;
|
|
78
78
|
|
|
79
|
-
type LevelType = 'warning' | 'success' | 'error' | 'info';
|
|
80
|
-
type AlertData = {
|
|
81
|
-
message: string;
|
|
82
|
-
linkText?: string;
|
|
83
|
-
href?: string;
|
|
84
|
-
};
|
|
85
|
-
interface AlertProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
86
|
-
/**
|
|
87
|
-
* data to be displayed in the alert
|
|
88
|
-
*/
|
|
89
|
-
data?: AlertData;
|
|
90
|
-
/**
|
|
91
|
-
* Level of the alert
|
|
92
|
-
*/
|
|
93
|
-
level: LevelType;
|
|
94
|
-
/**
|
|
95
|
-
* Whether the alert can be dismissed
|
|
96
|
-
*/
|
|
97
|
-
canDismiss?: boolean;
|
|
98
|
-
/**
|
|
99
|
-
* Timeout for the alert to disappear
|
|
100
|
-
*/
|
|
101
|
-
timeout?: number;
|
|
102
|
-
/**
|
|
103
|
-
* @deprecated
|
|
104
|
-
* Class name to be overriden
|
|
105
|
-
*/
|
|
106
|
-
overideClassName?: string;
|
|
107
|
-
/**
|
|
108
|
-
* Children to be displayed in the alert
|
|
109
|
-
*/
|
|
110
|
-
children?: React.ReactNode | string;
|
|
111
|
-
/**
|
|
112
|
-
* Function to be called when the alert is closed
|
|
113
|
-
*/
|
|
114
|
-
onClose?: () => any;
|
|
115
|
-
/**
|
|
116
|
-
* Function to be called when the alert is dismissed
|
|
117
|
-
*
|
|
118
|
-
*/
|
|
119
|
-
onDisappear?: () => any;
|
|
120
|
-
/**
|
|
121
|
-
* Icon to be displayed in the alert
|
|
122
|
-
* @default getAlertIcon(level)
|
|
123
|
-
**/
|
|
124
|
-
icon?: React.ReactNode;
|
|
125
|
-
/**
|
|
126
|
-
* Alignment of the content in the alert
|
|
127
|
-
*/
|
|
128
|
-
alignContent?: 'flex-start' | 'center' | 'flex-end';
|
|
129
|
-
/**
|
|
130
|
-
* Icon alignment in the alert
|
|
131
|
-
* @default 'center'
|
|
132
|
-
* */
|
|
133
|
-
iconAlignment?: 'flex-start' | 'center' | 'flex-end';
|
|
79
|
+
type LevelType = 'warning' | 'success' | 'error' | 'info';
|
|
80
|
+
type AlertData = {
|
|
81
|
+
message: string;
|
|
82
|
+
linkText?: string;
|
|
83
|
+
href?: string;
|
|
84
|
+
};
|
|
85
|
+
interface AlertProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
86
|
+
/**
|
|
87
|
+
* data to be displayed in the alert
|
|
88
|
+
*/
|
|
89
|
+
data?: AlertData;
|
|
90
|
+
/**
|
|
91
|
+
* Level of the alert
|
|
92
|
+
*/
|
|
93
|
+
level: LevelType;
|
|
94
|
+
/**
|
|
95
|
+
* Whether the alert can be dismissed
|
|
96
|
+
*/
|
|
97
|
+
canDismiss?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Timeout for the alert to disappear
|
|
100
|
+
*/
|
|
101
|
+
timeout?: number;
|
|
102
|
+
/**
|
|
103
|
+
* @deprecated
|
|
104
|
+
* Class name to be overriden
|
|
105
|
+
*/
|
|
106
|
+
overideClassName?: string;
|
|
107
|
+
/**
|
|
108
|
+
* Children to be displayed in the alert
|
|
109
|
+
*/
|
|
110
|
+
children?: React.ReactNode | string;
|
|
111
|
+
/**
|
|
112
|
+
* Function to be called when the alert is closed
|
|
113
|
+
*/
|
|
114
|
+
onClose?: () => any;
|
|
115
|
+
/**
|
|
116
|
+
* Function to be called when the alert is dismissed
|
|
117
|
+
*
|
|
118
|
+
*/
|
|
119
|
+
onDisappear?: () => any;
|
|
120
|
+
/**
|
|
121
|
+
* Icon to be displayed in the alert
|
|
122
|
+
* @default getAlertIcon(level)
|
|
123
|
+
**/
|
|
124
|
+
icon?: React.ReactNode;
|
|
125
|
+
/**
|
|
126
|
+
* Alignment of the content in the alert
|
|
127
|
+
*/
|
|
128
|
+
alignContent?: 'flex-start' | 'center' | 'flex-end';
|
|
129
|
+
/**
|
|
130
|
+
* Icon alignment in the alert
|
|
131
|
+
* @default 'center'
|
|
132
|
+
* */
|
|
133
|
+
iconAlignment?: 'flex-start' | 'center' | 'flex-end';
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
/**
|
|
137
|
-
* Alert displays an alert on the user interface and enables displaying additional information to the context of the page.
|
|
138
|
-
*/
|
|
136
|
+
/**
|
|
137
|
+
* Alert displays an alert on the user interface and enables displaying additional information to the context of the page.
|
|
138
|
+
*/
|
|
139
139
|
declare const Alert: ({ onClose, children, level, onDisappear, data, icon, overideClassName, timeout, canDismiss, alignContent, iconAlignment, ...props }: AlertProps) => react__default.JSX.Element | null;
|
|
140
140
|
|
|
141
|
-
type DropdownTypes = 'button' | 'input';
|
|
142
|
-
type DefaultDropdownItem = {
|
|
143
|
-
[key: string]: any;
|
|
144
|
-
group?: string;
|
|
145
|
-
};
|
|
146
|
-
type StyledListItemType = {
|
|
147
|
-
readOnly?: boolean;
|
|
148
|
-
$isSelected?: boolean;
|
|
149
|
-
$isHilighted?: boolean;
|
|
150
|
-
};
|
|
151
|
-
type DropdownInputItemProps = React.LiHTMLAttributes<HTMLLIElement> & StyledListItemType & {
|
|
152
|
-
key: string;
|
|
153
|
-
};
|
|
154
|
-
type PickedSelectProps = Pick<SelectProps, 'name' | 'disabled' | 'value'>;
|
|
155
|
-
interface DropdownProps<T extends DefaultDropdownItem = DefaultDropdownItem> extends PickedSelectProps {
|
|
156
|
-
/**
|
|
157
|
-
* The items to be displayed in the dropdown
|
|
158
|
-
*/
|
|
159
|
-
items?: Array<T>;
|
|
160
|
-
/**
|
|
161
|
-
* The identifier for the items
|
|
162
|
-
*/
|
|
163
|
-
itemIdentifier?: string;
|
|
164
|
-
isOpen?: SelectProps['open'];
|
|
165
|
-
defaultIsOpen?: SelectProps['defaultOpen'];
|
|
166
|
-
/**
|
|
167
|
-
* The selected item
|
|
168
|
-
*/
|
|
169
|
-
defaultSelectedItem?: T | null;
|
|
170
|
-
/**
|
|
171
|
-
* Function to be called when the selected item changes
|
|
172
|
-
*/
|
|
173
|
-
onChange?: (item: T | null) => void;
|
|
174
|
-
/**
|
|
175
|
-
* Fuction to give the string representation of the item
|
|
176
|
-
*/
|
|
177
|
-
itemToString: (item: T, type?: 'list-item' | 'display' | 'downshift') => string;
|
|
178
|
-
/**
|
|
179
|
-
* The type of the dropdown
|
|
180
|
-
*/
|
|
181
|
-
type?: DropdownTypes;
|
|
182
|
-
/**
|
|
183
|
-
* Is the dropdown read only
|
|
184
|
-
*/
|
|
185
|
-
readOnly?: boolean;
|
|
186
|
-
/**
|
|
187
|
-
* Is the dropdown read only
|
|
188
|
-
*/
|
|
189
|
-
showTick?: boolean;
|
|
190
|
-
/**
|
|
191
|
-
* The width of the dropdown
|
|
192
|
-
*/
|
|
193
|
-
width?: string;
|
|
194
|
-
/**
|
|
195
|
-
* The key to be used for filtering
|
|
196
|
-
*/
|
|
197
|
-
filterKey?: string;
|
|
198
|
-
/**
|
|
199
|
-
*
|
|
200
|
-
*/
|
|
201
|
-
getCustomMessage?: (inoutValue: string) => string;
|
|
202
|
-
/**
|
|
203
|
-
*
|
|
204
|
-
*/
|
|
205
|
-
emptyItemsText?: string;
|
|
206
|
-
/**
|
|
207
|
-
*
|
|
208
|
-
*/
|
|
209
|
-
hideClear?: boolean;
|
|
210
|
-
/**
|
|
211
|
-
*
|
|
212
|
-
*/
|
|
213
|
-
errorText?: string;
|
|
214
|
-
/**
|
|
215
|
-
*
|
|
216
|
-
*/
|
|
217
|
-
className?: string;
|
|
218
|
-
/**
|
|
219
|
-
*
|
|
220
|
-
*/
|
|
221
|
-
style?: React.CSSProperties;
|
|
222
|
-
/**
|
|
223
|
-
*
|
|
224
|
-
*/
|
|
225
|
-
isErrored?: boolean;
|
|
226
|
-
/**
|
|
227
|
-
*
|
|
228
|
-
*/
|
|
229
|
-
isRequired?: boolean;
|
|
230
|
-
/**
|
|
231
|
-
*
|
|
232
|
-
*/
|
|
233
|
-
isMenuLoading?: boolean;
|
|
234
|
-
/**
|
|
235
|
-
*
|
|
236
|
-
*/
|
|
237
|
-
matchButtonWidth?: boolean;
|
|
238
|
-
/**
|
|
239
|
-
*
|
|
240
|
-
*/
|
|
241
|
-
onCustomValueAdd?: (item: {
|
|
242
|
-
inputValue: string;
|
|
243
|
-
customValues: boolean;
|
|
244
|
-
}) => void;
|
|
245
|
-
/**
|
|
246
|
-
*
|
|
247
|
-
*/
|
|
248
|
-
customValues?: boolean;
|
|
249
|
-
/**
|
|
250
|
-
*
|
|
251
|
-
*/
|
|
252
|
-
id?: string;
|
|
253
|
-
/**
|
|
254
|
-
*
|
|
255
|
-
*/
|
|
256
|
-
label?: string;
|
|
257
|
-
/**
|
|
258
|
-
*
|
|
259
|
-
*/
|
|
260
|
-
placeholder?: string;
|
|
261
|
-
/**
|
|
262
|
-
*
|
|
263
|
-
*/
|
|
264
|
-
useSelectProps?: UseSelectProps<T>;
|
|
265
|
-
/**
|
|
266
|
-
*
|
|
267
|
-
*/
|
|
268
|
-
useComboboxProps?: UseComboboxProps<T>;
|
|
269
|
-
itemComponent?: (item: T, props?: DropdownItemProps | DropdownInputItemProps) => React.ReactNode | string;
|
|
270
|
-
selectedItemComponent?: (item: T) => React.ReactNode | string;
|
|
271
|
-
clearInputOnselect?: boolean;
|
|
272
|
-
buttonContentProps?: SelectContentProps;
|
|
273
|
-
portalContainer?: PortalProps['container'];
|
|
274
|
-
}
|
|
275
|
-
type DropdownButtonProps<T extends DefaultDropdownItem = DefaultDropdownItem> = DropdownProps<T>;
|
|
276
|
-
type DropdownInputProps<T extends DefaultDropdownItem = DefaultDropdownItem> = DropdownProps<T>;
|
|
277
|
-
type DropdownItemProps = SelectItemProps & {
|
|
278
|
-
showTick: boolean;
|
|
141
|
+
type DropdownTypes = 'button' | 'input';
|
|
142
|
+
type DefaultDropdownItem = {
|
|
143
|
+
[key: string]: any;
|
|
144
|
+
group?: string;
|
|
145
|
+
};
|
|
146
|
+
type StyledListItemType = {
|
|
147
|
+
readOnly?: boolean;
|
|
148
|
+
$isSelected?: boolean;
|
|
149
|
+
$isHilighted?: boolean;
|
|
150
|
+
};
|
|
151
|
+
type DropdownInputItemProps = React.LiHTMLAttributes<HTMLLIElement> & StyledListItemType & {
|
|
152
|
+
key: string;
|
|
153
|
+
};
|
|
154
|
+
type PickedSelectProps = Pick<SelectProps, 'name' | 'disabled' | 'value'>;
|
|
155
|
+
interface DropdownProps<T extends DefaultDropdownItem = DefaultDropdownItem> extends PickedSelectProps {
|
|
156
|
+
/**
|
|
157
|
+
* The items to be displayed in the dropdown
|
|
158
|
+
*/
|
|
159
|
+
items?: Array<T>;
|
|
160
|
+
/**
|
|
161
|
+
* The identifier for the items
|
|
162
|
+
*/
|
|
163
|
+
itemIdentifier?: string;
|
|
164
|
+
isOpen?: SelectProps['open'];
|
|
165
|
+
defaultIsOpen?: SelectProps['defaultOpen'];
|
|
166
|
+
/**
|
|
167
|
+
* The selected item
|
|
168
|
+
*/
|
|
169
|
+
defaultSelectedItem?: T | null;
|
|
170
|
+
/**
|
|
171
|
+
* Function to be called when the selected item changes
|
|
172
|
+
*/
|
|
173
|
+
onChange?: (item: T | null) => void;
|
|
174
|
+
/**
|
|
175
|
+
* Fuction to give the string representation of the item
|
|
176
|
+
*/
|
|
177
|
+
itemToString: (item: T, type?: 'list-item' | 'display' | 'downshift') => string;
|
|
178
|
+
/**
|
|
179
|
+
* The type of the dropdown
|
|
180
|
+
*/
|
|
181
|
+
type?: DropdownTypes;
|
|
182
|
+
/**
|
|
183
|
+
* Is the dropdown read only
|
|
184
|
+
*/
|
|
185
|
+
readOnly?: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* Is the dropdown read only
|
|
188
|
+
*/
|
|
189
|
+
showTick?: boolean;
|
|
190
|
+
/**
|
|
191
|
+
* The width of the dropdown
|
|
192
|
+
*/
|
|
193
|
+
width?: string;
|
|
194
|
+
/**
|
|
195
|
+
* The key to be used for filtering
|
|
196
|
+
*/
|
|
197
|
+
filterKey?: string;
|
|
198
|
+
/**
|
|
199
|
+
*
|
|
200
|
+
*/
|
|
201
|
+
getCustomMessage?: (inoutValue: string) => string;
|
|
202
|
+
/**
|
|
203
|
+
*
|
|
204
|
+
*/
|
|
205
|
+
emptyItemsText?: string;
|
|
206
|
+
/**
|
|
207
|
+
*
|
|
208
|
+
*/
|
|
209
|
+
hideClear?: boolean;
|
|
210
|
+
/**
|
|
211
|
+
*
|
|
212
|
+
*/
|
|
213
|
+
errorText?: string;
|
|
214
|
+
/**
|
|
215
|
+
*
|
|
216
|
+
*/
|
|
217
|
+
className?: string;
|
|
218
|
+
/**
|
|
219
|
+
*
|
|
220
|
+
*/
|
|
221
|
+
style?: React.CSSProperties;
|
|
222
|
+
/**
|
|
223
|
+
*
|
|
224
|
+
*/
|
|
225
|
+
isErrored?: boolean;
|
|
226
|
+
/**
|
|
227
|
+
*
|
|
228
|
+
*/
|
|
229
|
+
isRequired?: boolean;
|
|
230
|
+
/**
|
|
231
|
+
*
|
|
232
|
+
*/
|
|
233
|
+
isMenuLoading?: boolean;
|
|
234
|
+
/**
|
|
235
|
+
*
|
|
236
|
+
*/
|
|
237
|
+
matchButtonWidth?: boolean;
|
|
238
|
+
/**
|
|
239
|
+
*
|
|
240
|
+
*/
|
|
241
|
+
onCustomValueAdd?: (item: {
|
|
242
|
+
inputValue: string;
|
|
243
|
+
customValues: boolean;
|
|
244
|
+
}) => void;
|
|
245
|
+
/**
|
|
246
|
+
*
|
|
247
|
+
*/
|
|
248
|
+
customValues?: boolean;
|
|
249
|
+
/**
|
|
250
|
+
*
|
|
251
|
+
*/
|
|
252
|
+
id?: string;
|
|
253
|
+
/**
|
|
254
|
+
*
|
|
255
|
+
*/
|
|
256
|
+
label?: string;
|
|
257
|
+
/**
|
|
258
|
+
*
|
|
259
|
+
*/
|
|
260
|
+
placeholder?: string;
|
|
261
|
+
/**
|
|
262
|
+
*
|
|
263
|
+
*/
|
|
264
|
+
useSelectProps?: UseSelectProps<T>;
|
|
265
|
+
/**
|
|
266
|
+
*
|
|
267
|
+
*/
|
|
268
|
+
useComboboxProps?: UseComboboxProps<T>;
|
|
269
|
+
itemComponent?: (item: T, props?: DropdownItemProps | DropdownInputItemProps) => React.ReactNode | string;
|
|
270
|
+
selectedItemComponent?: (item: T) => React.ReactNode | string;
|
|
271
|
+
clearInputOnselect?: boolean;
|
|
272
|
+
buttonContentProps?: SelectContentProps;
|
|
273
|
+
portalContainer?: PortalProps['container'];
|
|
274
|
+
}
|
|
275
|
+
type DropdownButtonProps<T extends DefaultDropdownItem = DefaultDropdownItem> = DropdownProps<T>;
|
|
276
|
+
type DropdownInputProps<T extends DefaultDropdownItem = DefaultDropdownItem> = DropdownProps<T>;
|
|
277
|
+
type DropdownItemProps = SelectItemProps & {
|
|
278
|
+
showTick: boolean;
|
|
279
279
|
};
|
|
280
280
|
|
|
281
281
|
declare const ListItem: styled_components.IStyledComponent<"web", styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, StyledListItemType>>;
|
|
282
282
|
|
|
283
|
-
/**
|
|
284
|
-
* Dropdown displays a list or drop-down box that enables selection of an option or multiple options from an available list of values.
|
|
285
|
-
*/
|
|
286
|
-
declare const Dropdown: <T extends DefaultDropdownItem>({ type, ...props }: DropdownProps<T>) => react__default.JSX.Element;
|
|
287
|
-
declare const Item: react__default.ForwardRefExoticComponent<Select.SelectItemProps & {
|
|
288
|
-
showTick: boolean;
|
|
283
|
+
/**
|
|
284
|
+
* Dropdown displays a list or drop-down box that enables selection of an option or multiple options from an available list of values.
|
|
285
|
+
*/
|
|
286
|
+
declare const Dropdown: <T extends DefaultDropdownItem>({ type, ...props }: DropdownProps<T>) => react__default.JSX.Element;
|
|
287
|
+
declare const Item: react__default.ForwardRefExoticComponent<Select.SelectItemProps & {
|
|
288
|
+
showTick: boolean;
|
|
289
289
|
} & react__default.RefAttributes<HTMLDivElement>>;
|
|
290
290
|
|
|
291
|
-
type DefaultAutoCompleteItem = DefaultDropdownItem;
|
|
292
|
-
type AutoCompleteInputItemProps = DropdownInputItemProps;
|
|
293
|
-
interface AutoCompleteProps<T extends DefaultAutoCompleteItem = DefaultAutoCompleteItem> {
|
|
294
|
-
/**
|
|
295
|
-
*
|
|
296
|
-
*/
|
|
297
|
-
id?: string;
|
|
298
|
-
/**
|
|
299
|
-
*
|
|
300
|
-
*/
|
|
301
|
-
url?: string;
|
|
302
|
-
/**
|
|
303
|
-
*
|
|
304
|
-
*/
|
|
305
|
-
label?: string;
|
|
306
|
-
/**
|
|
307
|
-
*
|
|
308
|
-
*/
|
|
309
|
-
disabled?: boolean;
|
|
310
|
-
/**
|
|
311
|
-
* Is the AutoComplete read only
|
|
312
|
-
*/
|
|
313
|
-
readOnly?: boolean;
|
|
314
|
-
/**
|
|
315
|
-
* The width of the AutoComplete
|
|
316
|
-
*/
|
|
317
|
-
width?: string;
|
|
318
|
-
/**
|
|
319
|
-
*
|
|
320
|
-
*/
|
|
321
|
-
placeholder?: string;
|
|
322
|
-
/**
|
|
323
|
-
*
|
|
324
|
-
*/
|
|
325
|
-
name?: string;
|
|
326
|
-
/**
|
|
327
|
-
* The items to be displayed in the AutoComplete
|
|
328
|
-
*/
|
|
329
|
-
items?: Array<T>;
|
|
330
|
-
/**
|
|
331
|
-
* The identifier for the items
|
|
332
|
-
*/
|
|
333
|
-
itemIdentifier?: string;
|
|
334
|
-
/**
|
|
335
|
-
* The selected item
|
|
336
|
-
*/
|
|
337
|
-
/**
|
|
338
|
-
* Function to be called when the selected item changes
|
|
339
|
-
*/
|
|
340
|
-
onChange?: (item: T | null) => void;
|
|
341
|
-
defaultSelectedItem?: T | null;
|
|
342
|
-
/**
|
|
343
|
-
* Fuction to give the string representation of the item
|
|
344
|
-
*/
|
|
345
|
-
itemToString: (item: T, type?: 'list-item' | 'display' | 'downshift') => string;
|
|
346
|
-
/**
|
|
347
|
-
*
|
|
348
|
-
*/
|
|
349
|
-
errorText?: string;
|
|
350
|
-
/**
|
|
351
|
-
*
|
|
352
|
-
*/
|
|
353
|
-
searchKey?: string;
|
|
354
|
-
/**
|
|
355
|
-
*
|
|
356
|
-
*/
|
|
357
|
-
style?: React.CSSProperties;
|
|
358
|
-
/**
|
|
359
|
-
*
|
|
360
|
-
*/
|
|
361
|
-
isErrored?: boolean;
|
|
362
|
-
/**
|
|
363
|
-
*
|
|
364
|
-
*/
|
|
365
|
-
isRequired?: boolean;
|
|
366
|
-
/**
|
|
367
|
-
*
|
|
368
|
-
*/
|
|
369
|
-
emptyItemsText?: string;
|
|
370
|
-
processFetchData?: (data: any[]) => T[];
|
|
371
|
-
itemComponent?: (item: T, props?: AutoCompleteInputItemProps) => React.ReactNode | string;
|
|
372
|
-
headers?: AxiosRequestConfig['headers'];
|
|
291
|
+
type DefaultAutoCompleteItem = DefaultDropdownItem;
|
|
292
|
+
type AutoCompleteInputItemProps = DropdownInputItemProps;
|
|
293
|
+
interface AutoCompleteProps<T extends DefaultAutoCompleteItem = DefaultAutoCompleteItem> {
|
|
294
|
+
/**
|
|
295
|
+
*
|
|
296
|
+
*/
|
|
297
|
+
id?: string;
|
|
298
|
+
/**
|
|
299
|
+
*
|
|
300
|
+
*/
|
|
301
|
+
url?: string;
|
|
302
|
+
/**
|
|
303
|
+
*
|
|
304
|
+
*/
|
|
305
|
+
label?: string;
|
|
306
|
+
/**
|
|
307
|
+
*
|
|
308
|
+
*/
|
|
309
|
+
disabled?: boolean;
|
|
310
|
+
/**
|
|
311
|
+
* Is the AutoComplete read only
|
|
312
|
+
*/
|
|
313
|
+
readOnly?: boolean;
|
|
314
|
+
/**
|
|
315
|
+
* The width of the AutoComplete
|
|
316
|
+
*/
|
|
317
|
+
width?: string;
|
|
318
|
+
/**
|
|
319
|
+
*
|
|
320
|
+
*/
|
|
321
|
+
placeholder?: string;
|
|
322
|
+
/**
|
|
323
|
+
*
|
|
324
|
+
*/
|
|
325
|
+
name?: string;
|
|
326
|
+
/**
|
|
327
|
+
* The items to be displayed in the AutoComplete
|
|
328
|
+
*/
|
|
329
|
+
items?: Array<T>;
|
|
330
|
+
/**
|
|
331
|
+
* The identifier for the items
|
|
332
|
+
*/
|
|
333
|
+
itemIdentifier?: string;
|
|
334
|
+
/**
|
|
335
|
+
* The selected item
|
|
336
|
+
*/
|
|
337
|
+
/**
|
|
338
|
+
* Function to be called when the selected item changes
|
|
339
|
+
*/
|
|
340
|
+
onChange?: (item: T | null) => void;
|
|
341
|
+
defaultSelectedItem?: T | null;
|
|
342
|
+
/**
|
|
343
|
+
* Fuction to give the string representation of the item
|
|
344
|
+
*/
|
|
345
|
+
itemToString: (item: T, type?: 'list-item' | 'display' | 'downshift') => string;
|
|
346
|
+
/**
|
|
347
|
+
*
|
|
348
|
+
*/
|
|
349
|
+
errorText?: string;
|
|
350
|
+
/**
|
|
351
|
+
*
|
|
352
|
+
*/
|
|
353
|
+
searchKey?: string;
|
|
354
|
+
/**
|
|
355
|
+
*
|
|
356
|
+
*/
|
|
357
|
+
style?: React.CSSProperties;
|
|
358
|
+
/**
|
|
359
|
+
*
|
|
360
|
+
*/
|
|
361
|
+
isErrored?: boolean;
|
|
362
|
+
/**
|
|
363
|
+
*
|
|
364
|
+
*/
|
|
365
|
+
isRequired?: boolean;
|
|
366
|
+
/**
|
|
367
|
+
*
|
|
368
|
+
*/
|
|
369
|
+
emptyItemsText?: string;
|
|
370
|
+
processFetchData?: (data: any[]) => T[];
|
|
371
|
+
itemComponent?: (item: T, props?: AutoCompleteInputItemProps) => React.ReactNode | string;
|
|
372
|
+
headers?: AxiosRequestConfig['headers'];
|
|
373
373
|
}
|
|
374
374
|
|
|
375
|
-
declare const AutoComplete: <T extends DefaultDropdownItem>(props: AutoCompleteProps<T>) => react__default.JSX.Element;
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
/**
|
|
385
|
-
*
|
|
386
|
-
*/
|
|
387
|
-
|
|
388
|
-
/**
|
|
389
|
-
*
|
|
390
|
-
*/
|
|
391
|
-
|
|
392
|
-
/**
|
|
393
|
-
*
|
|
394
|
-
*/
|
|
395
|
-
|
|
396
|
-
/**
|
|
397
|
-
*
|
|
398
|
-
*/
|
|
399
|
-
|
|
375
|
+
declare const AutoComplete: <T extends DefaultDropdownItem>(props: AutoCompleteProps<T>) => react__default.JSX.Element;
|
|
376
|
+
//# sourceMappingURL=AutoComplete.d.ts.map
|
|
377
|
+
|
|
378
|
+
interface BoxedRadioItemProps {
|
|
379
|
+
disabled?: boolean;
|
|
380
|
+
[key: string]: any;
|
|
381
|
+
}
|
|
382
|
+
type BoxedRadioProps<T extends BoxedRadioItemProps = BoxedRadioItemProps> = Omit<react__default.HtmlHTMLAttributes<HTMLDivElement>, 'onChange' | 'value' | 'defaultValue'> & {
|
|
383
|
+
dir?: RadioGroupProps$1['dir'];
|
|
384
|
+
/**
|
|
385
|
+
* Select options
|
|
386
|
+
*/
|
|
387
|
+
options?: Array<T>;
|
|
388
|
+
/**
|
|
389
|
+
* Select options
|
|
390
|
+
*/
|
|
391
|
+
disabled?: boolean;
|
|
392
|
+
/**
|
|
393
|
+
* Select options
|
|
394
|
+
*/
|
|
395
|
+
readOnly?: boolean;
|
|
396
|
+
/**
|
|
397
|
+
* Id accessor of radio button
|
|
398
|
+
*/
|
|
399
|
+
idAccessor?: string;
|
|
400
|
+
/**
|
|
401
|
+
* The default value
|
|
402
|
+
*/
|
|
403
|
+
defaultValue?: string;
|
|
404
|
+
/**
|
|
405
|
+
* Value of radio button
|
|
406
|
+
*/
|
|
407
|
+
value?: RadioGroupContextValue['value'];
|
|
408
|
+
/**
|
|
409
|
+
* Function to be called when the selected item changes
|
|
410
|
+
*/
|
|
411
|
+
onChange?: RadioGroupContextValue['onValueChange'];
|
|
412
|
+
/**
|
|
413
|
+
* The description of the content
|
|
414
|
+
*/
|
|
415
|
+
label?: string;
|
|
416
|
+
errorText?: string;
|
|
417
|
+
isRequired?: boolean;
|
|
418
|
+
isErrored?: boolean;
|
|
419
|
+
customIndicator?: ReactNode;
|
|
420
|
+
/**
|
|
421
|
+
* The description of the content
|
|
422
|
+
*/
|
|
423
|
+
getTextContent: (item: T, type: 'name' | 'description') => string;
|
|
424
|
+
/**
|
|
425
|
+
* The description of the content
|
|
426
|
+
*/
|
|
427
|
+
itemComponent?: (item: T) => react__default.ReactNode | string;
|
|
428
|
+
};
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* BoxedRadio displays a group of options with radio buttons and enables selection of one option from the list.
|
|
432
|
+
*/
|
|
433
|
+
declare const BoxedRadio: <T extends BoxedRadioItemProps>({ options, defaultValue, idAccessor, onChange, isErrored, errorText, disabled, getTextContent, className, id, isRequired, readOnly, itemComponent, label, value, customIndicator, ...props }: BoxedRadioProps<T>) => react__default.JSX.Element;
|
|
434
|
+
|
|
435
|
+
type ButtonSizeKey = 'mini' | 'normal' | 'large';
|
|
436
|
+
type ButtonVariant = 'primary' | 'secondary' | 'danger' | 'link';
|
|
437
|
+
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
438
|
+
/**
|
|
439
|
+
* The size of the button
|
|
440
|
+
*/
|
|
441
|
+
size?: ButtonSizeKey;
|
|
442
|
+
/**
|
|
443
|
+
* The variant of the button
|
|
444
|
+
*/
|
|
445
|
+
variant?: 'primary' | 'secondary' | 'danger' | 'link';
|
|
446
|
+
/**
|
|
447
|
+
* The children to be displayed in the button
|
|
448
|
+
*/
|
|
449
|
+
children?: React.ReactNode | string;
|
|
450
|
+
/**
|
|
451
|
+
* Whether the button is loading
|
|
452
|
+
*/
|
|
453
|
+
loading?: boolean;
|
|
454
|
+
/**
|
|
455
|
+
* Whether the button is inline
|
|
456
|
+
*/
|
|
457
|
+
inline?: boolean;
|
|
400
458
|
}
|
|
401
459
|
|
|
402
|
-
/**
|
|
403
|
-
* Button displays a button on the user interface and enables performing specific actions based on the button type. The button’s label can be a text, icon, or both.
|
|
404
|
-
*/
|
|
460
|
+
/**
|
|
461
|
+
* Button displays a button on the user interface and enables performing specific actions based on the button type. The button’s label can be a text, icon, or both.
|
|
462
|
+
*/
|
|
405
463
|
declare const Button: react__default.ForwardRefExoticComponent<ButtonProps & react__default.RefAttributes<HTMLButtonElement>>;
|
|
406
464
|
|
|
407
|
-
interface ButtonDropdownItemProps {
|
|
408
|
-
id: string;
|
|
409
|
-
name: string;
|
|
410
|
-
disabled?: boolean;
|
|
411
|
-
[key: string]: any;
|
|
412
|
-
}
|
|
413
|
-
interface ButtonDropdownProps<T extends ButtonDropdownItemProps = ButtonDropdownItemProps> {
|
|
414
|
-
side?: PopperContentProps['side'];
|
|
415
|
-
sideOffset?: PopperContentProps['sideOffset'];
|
|
416
|
-
align?: PopperContentProps['align'];
|
|
417
|
-
alignOffset?: PopperContentProps['alignOffset'];
|
|
418
|
-
arrowPadding?: PopperContentProps['arrowPadding'];
|
|
419
|
-
avoidCollisions?: PopperContentProps['avoidCollisions'];
|
|
420
|
-
/**
|
|
421
|
-
* value of menu
|
|
422
|
-
*/
|
|
423
|
-
defaultSelectedItem?: T;
|
|
424
|
-
/**
|
|
425
|
-
* options for menu button
|
|
426
|
-
*/
|
|
427
|
-
options?: Array<T>;
|
|
428
|
-
/**
|
|
429
|
-
* Called when a menu item is selected
|
|
430
|
-
*/
|
|
431
|
-
onClick?: (option?: T, event?: React.MouseEvent<HTMLButtonElement>) => void;
|
|
432
|
-
/**
|
|
433
|
-
* id Accessor of menu
|
|
434
|
-
*/
|
|
435
|
-
idAccessor?: string;
|
|
436
|
-
/**
|
|
437
|
-
* name Accessor of menu
|
|
438
|
-
*/
|
|
439
|
-
nameAccessor?: string;
|
|
440
|
-
/**
|
|
441
|
-
* name Accessor of menu
|
|
442
|
-
*/
|
|
443
|
-
id?: string;
|
|
444
|
-
/**
|
|
445
|
-
* name Accessor of menu
|
|
446
|
-
*/
|
|
447
|
-
name?: string;
|
|
448
|
-
disabled?: React.ButtonHTMLAttributes<HTMLButtonElement>['disabled'];
|
|
449
|
-
size?: ButtonProps['size'];
|
|
450
|
-
variant?: ButtonProps['variant'];
|
|
451
|
-
loading?: ButtonProps['loading'];
|
|
452
|
-
inline?: ButtonProps['inline'];
|
|
465
|
+
interface ButtonDropdownItemProps {
|
|
466
|
+
id: string;
|
|
467
|
+
name: string;
|
|
468
|
+
disabled?: boolean;
|
|
469
|
+
[key: string]: any;
|
|
470
|
+
}
|
|
471
|
+
interface ButtonDropdownProps<T extends ButtonDropdownItemProps = ButtonDropdownItemProps> {
|
|
472
|
+
side?: PopperContentProps['side'];
|
|
473
|
+
sideOffset?: PopperContentProps['sideOffset'];
|
|
474
|
+
align?: PopperContentProps['align'];
|
|
475
|
+
alignOffset?: PopperContentProps['alignOffset'];
|
|
476
|
+
arrowPadding?: PopperContentProps['arrowPadding'];
|
|
477
|
+
avoidCollisions?: PopperContentProps['avoidCollisions'];
|
|
478
|
+
/**
|
|
479
|
+
* value of menu
|
|
480
|
+
*/
|
|
481
|
+
defaultSelectedItem?: T;
|
|
482
|
+
/**
|
|
483
|
+
* options for menu button
|
|
484
|
+
*/
|
|
485
|
+
options?: Array<T>;
|
|
486
|
+
/**
|
|
487
|
+
* Called when a menu item is selected
|
|
488
|
+
*/
|
|
489
|
+
onClick?: (option?: T, event?: React.MouseEvent<HTMLButtonElement>) => void;
|
|
490
|
+
/**
|
|
491
|
+
* id Accessor of menu
|
|
492
|
+
*/
|
|
493
|
+
idAccessor?: string;
|
|
494
|
+
/**
|
|
495
|
+
* name Accessor of menu
|
|
496
|
+
*/
|
|
497
|
+
nameAccessor?: string;
|
|
498
|
+
/**
|
|
499
|
+
* name Accessor of menu
|
|
500
|
+
*/
|
|
501
|
+
id?: string;
|
|
502
|
+
/**
|
|
503
|
+
* name Accessor of menu
|
|
504
|
+
*/
|
|
505
|
+
name?: string;
|
|
506
|
+
disabled?: React.ButtonHTMLAttributes<HTMLButtonElement>['disabled'];
|
|
507
|
+
size?: ButtonProps['size'];
|
|
508
|
+
variant?: ButtonProps['variant'];
|
|
509
|
+
loading?: ButtonProps['loading'];
|
|
510
|
+
inline?: ButtonProps['inline'];
|
|
453
511
|
}
|
|
454
512
|
|
|
455
|
-
/**
|
|
456
|
-
* ButtonDropdown is a button with a dropdown menu. It is used to select an item from a list of items.
|
|
457
|
-
*/
|
|
513
|
+
/**
|
|
514
|
+
* ButtonDropdown is a button with a dropdown menu. It is used to select an item from a list of items.
|
|
515
|
+
*/
|
|
458
516
|
declare const ButtonDropdown: ({ size, variant, loading, inline, defaultSelectedItem, idAccessor, nameAccessor, onClick, options, side, sideOffset, align, alignOffset, arrowPadding, avoidCollisions, disabled, id, name, }: ButtonDropdownProps) => react__default.JSX.Element;
|
|
459
517
|
|
|
460
|
-
interface
|
|
461
|
-
disabled?: boolean;
|
|
462
|
-
[key: string]: any;
|
|
463
|
-
}
|
|
464
|
-
type
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
*
|
|
492
|
-
*/
|
|
493
|
-
|
|
494
|
-
/**
|
|
495
|
-
*
|
|
496
|
-
*/
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
/**
|
|
503
|
-
*
|
|
504
|
-
*/
|
|
505
|
-
|
|
506
|
-
/**
|
|
507
|
-
*
|
|
508
|
-
*/
|
|
509
|
-
|
|
518
|
+
interface DefaultMenuItemProps {
|
|
519
|
+
disabled?: boolean;
|
|
520
|
+
[key: string]: any;
|
|
521
|
+
}
|
|
522
|
+
type MenuProps<T extends DefaultMenuItemProps = DefaultMenuItemProps> = {
|
|
523
|
+
side?: PopperContentProps['side'];
|
|
524
|
+
sideOffset?: PopperContentProps['sideOffset'];
|
|
525
|
+
align?: PopperContentProps['align'];
|
|
526
|
+
alignOffset?: PopperContentProps['alignOffset'];
|
|
527
|
+
arrowPadding?: PopperContentProps['arrowPadding'];
|
|
528
|
+
avoidCollisions?: PopperContentProps['avoidCollisions'];
|
|
529
|
+
/**
|
|
530
|
+
* value of menu
|
|
531
|
+
*/
|
|
532
|
+
value?: T;
|
|
533
|
+
/**
|
|
534
|
+
* Called when a menu item is selected
|
|
535
|
+
*/
|
|
536
|
+
onSelect?: (option: T) => void;
|
|
537
|
+
closeMenuCallback?: () => void;
|
|
538
|
+
itemComponent?: (item: T, props?: MenuItemProps) => React.ReactNode | string;
|
|
539
|
+
/**
|
|
540
|
+
* options for menu button
|
|
541
|
+
*/
|
|
542
|
+
options?: Array<T>;
|
|
543
|
+
/**
|
|
544
|
+
* The children or label
|
|
545
|
+
*/
|
|
546
|
+
trigger: React.ReactNode | string;
|
|
547
|
+
/**
|
|
548
|
+
* Is the button inline
|
|
549
|
+
* @deprecated
|
|
550
|
+
*/
|
|
551
|
+
highlightedIndex?: number | null;
|
|
552
|
+
/**
|
|
553
|
+
* id Accessor of menu
|
|
554
|
+
*/
|
|
555
|
+
idAccessor?: string;
|
|
556
|
+
/**
|
|
557
|
+
* name Accessor of menu
|
|
558
|
+
*/
|
|
559
|
+
nameAccessor?: string;
|
|
560
|
+
/**
|
|
561
|
+
* Is the button inline
|
|
562
|
+
*/
|
|
563
|
+
isOpen?: boolean;
|
|
564
|
+
/**
|
|
565
|
+
* should show the Arrow?
|
|
566
|
+
*/
|
|
567
|
+
showArrow?: boolean;
|
|
568
|
+
disableMenu?: boolean;
|
|
569
|
+
};
|
|
570
|
+
type MenuItemProps = MenuItemProps$1 & {
|
|
571
|
+
isSelected?: boolean;
|
|
510
572
|
};
|
|
511
573
|
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
574
|
+
interface DayProps {
|
|
575
|
+
$isSelected?: boolean;
|
|
576
|
+
id?: string;
|
|
577
|
+
value?: string;
|
|
578
|
+
disabled?: boolean;
|
|
579
|
+
}
|
|
580
|
+
interface CalendarProps extends DefaultMenuItemProps {
|
|
581
|
+
value?: Record<string, boolean>;
|
|
582
|
+
items: DefaultMenuItemProps[];
|
|
583
|
+
onChange?: (value: Record<string, boolean>) => void;
|
|
584
|
+
idAccessor?: string;
|
|
585
|
+
nameAccessor?: string;
|
|
586
|
+
}
|
|
516
587
|
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
588
|
+
declare const Calendar: react__default.FC<CalendarProps>;
|
|
589
|
+
|
|
590
|
+
interface CheckboxProps extends CheckboxProps$1 {
|
|
591
|
+
/**
|
|
592
|
+
* Whether the checkbox is required
|
|
593
|
+
*/
|
|
594
|
+
isRequired?: boolean;
|
|
595
|
+
/**
|
|
596
|
+
* Whether the checkbox is errored
|
|
597
|
+
*/
|
|
598
|
+
isErrored?: boolean;
|
|
599
|
+
/**
|
|
600
|
+
* Whether the checkbox is readOnly
|
|
601
|
+
*/
|
|
602
|
+
readOnly?: boolean;
|
|
603
|
+
/**
|
|
604
|
+
* Label for the checkbox
|
|
605
|
+
*/
|
|
606
|
+
label?: string;
|
|
534
607
|
}
|
|
535
608
|
|
|
536
|
-
/**
|
|
537
|
-
* Checkbox displays a check box on the user interface and enables assigning a state (selected or deselected) to it. In the selected state, the check box displayed on the UI is highlighted and contains a check mark.
|
|
538
|
-
*/
|
|
609
|
+
/**
|
|
610
|
+
* Checkbox displays a check box on the user interface and enables assigning a state (selected or deselected) to it. In the selected state, the check box displayed on the UI is highlighted and contains a check mark.
|
|
611
|
+
*/
|
|
539
612
|
declare const Checkbox: ({ isRequired, isErrored, className, readOnly, label, ...rest }: CheckboxProps) => react__default.JSX.Element;
|
|
540
613
|
|
|
541
|
-
interface ConfirmationProps {
|
|
542
|
-
/**
|
|
543
|
-
* Is the confirmation open
|
|
544
|
-
*/
|
|
545
|
-
isOpen?: boolean;
|
|
546
|
-
/**
|
|
547
|
-
* The children or label
|
|
548
|
-
*/
|
|
549
|
-
children?: React.ReactNode | string;
|
|
550
|
-
/**
|
|
551
|
-
* Is the confirm button disabled
|
|
552
|
-
*/
|
|
553
|
-
confirmButtonDisabled?: boolean;
|
|
554
|
-
/**
|
|
555
|
-
* Is the cancel button disabled
|
|
556
|
-
*/
|
|
557
|
-
cancelButtonDisabled?: boolean;
|
|
558
|
-
/**
|
|
559
|
-
* Should the confirmation close when clicking outside
|
|
560
|
-
*/
|
|
561
|
-
clickOutToClose?: boolean;
|
|
562
|
-
/**
|
|
563
|
-
* Title of the confirmation
|
|
564
|
-
*/
|
|
565
|
-
title?: string;
|
|
566
|
-
/**
|
|
567
|
-
* Description of the confirmation
|
|
568
|
-
*/
|
|
569
|
-
description?: React.ReactNode | string;
|
|
570
|
-
/**
|
|
571
|
-
* Width of the confirmation
|
|
572
|
-
*/
|
|
573
|
-
width?: string;
|
|
574
|
-
/**
|
|
575
|
-
* Function to be called when the confirmation is dismissed
|
|
576
|
-
*/
|
|
577
|
-
onDismiss?: (type: 'overlay' | 'button' | 'root', event?: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
578
|
-
/**
|
|
579
|
-
* Function to be called when the confirmation is confirmed
|
|
580
|
-
*/
|
|
581
|
-
onConfirm?: React.DOMAttributes<HTMLButtonElement>['onClick'];
|
|
582
|
-
/**
|
|
583
|
-
* Confirm button text
|
|
584
|
-
*/
|
|
585
|
-
confirmButtonText?: string;
|
|
586
|
-
/**
|
|
587
|
-
* Cancel button text
|
|
588
|
-
*/
|
|
589
|
-
cancelButtonText?: string;
|
|
590
|
-
/**
|
|
591
|
-
* Styles for the overlay
|
|
592
|
-
*/
|
|
593
|
-
bodyStyles?: React.CSSProperties;
|
|
594
|
-
/**
|
|
595
|
-
* Styles for the content
|
|
596
|
-
*/
|
|
597
|
-
contentStyles?: React.CSSProperties;
|
|
598
|
-
/**
|
|
599
|
-
* Styles for the footer
|
|
600
|
-
*/
|
|
601
|
-
footerStyles?: React.CSSProperties;
|
|
614
|
+
interface ConfirmationProps {
|
|
615
|
+
/**
|
|
616
|
+
* Is the confirmation open
|
|
617
|
+
*/
|
|
618
|
+
isOpen?: boolean;
|
|
619
|
+
/**
|
|
620
|
+
* The children or label
|
|
621
|
+
*/
|
|
622
|
+
children?: React.ReactNode | string;
|
|
623
|
+
/**
|
|
624
|
+
* Is the confirm button disabled
|
|
625
|
+
*/
|
|
626
|
+
confirmButtonDisabled?: boolean;
|
|
627
|
+
/**
|
|
628
|
+
* Is the cancel button disabled
|
|
629
|
+
*/
|
|
630
|
+
cancelButtonDisabled?: boolean;
|
|
631
|
+
/**
|
|
632
|
+
* Should the confirmation close when clicking outside
|
|
633
|
+
*/
|
|
634
|
+
clickOutToClose?: boolean;
|
|
635
|
+
/**
|
|
636
|
+
* Title of the confirmation
|
|
637
|
+
*/
|
|
638
|
+
title?: string;
|
|
639
|
+
/**
|
|
640
|
+
* Description of the confirmation
|
|
641
|
+
*/
|
|
642
|
+
description?: React.ReactNode | string;
|
|
643
|
+
/**
|
|
644
|
+
* Width of the confirmation
|
|
645
|
+
*/
|
|
646
|
+
width?: string;
|
|
647
|
+
/**
|
|
648
|
+
* Function to be called when the confirmation is dismissed
|
|
649
|
+
*/
|
|
650
|
+
onDismiss?: (type: 'overlay' | 'button' | 'root', event?: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
651
|
+
/**
|
|
652
|
+
* Function to be called when the confirmation is confirmed
|
|
653
|
+
*/
|
|
654
|
+
onConfirm?: React.DOMAttributes<HTMLButtonElement>['onClick'];
|
|
655
|
+
/**
|
|
656
|
+
* Confirm button text
|
|
657
|
+
*/
|
|
658
|
+
confirmButtonText?: string;
|
|
659
|
+
/**
|
|
660
|
+
* Cancel button text
|
|
661
|
+
*/
|
|
662
|
+
cancelButtonText?: string;
|
|
663
|
+
/**
|
|
664
|
+
* Styles for the overlay
|
|
665
|
+
*/
|
|
666
|
+
bodyStyles?: React.CSSProperties;
|
|
667
|
+
/**
|
|
668
|
+
* Styles for the content
|
|
669
|
+
*/
|
|
670
|
+
contentStyles?: React.CSSProperties;
|
|
671
|
+
/**
|
|
672
|
+
* Styles for the footer
|
|
673
|
+
*/
|
|
674
|
+
footerStyles?: React.CSSProperties;
|
|
602
675
|
}
|
|
603
676
|
|
|
604
|
-
/**
|
|
605
|
-
* Confirmation component is used to show a confirmation dialog to the user. It is used to confirm an action before it is executed.
|
|
606
|
-
*/
|
|
677
|
+
/**
|
|
678
|
+
* Confirmation component is used to show a confirmation dialog to the user. It is used to confirm an action before it is executed.
|
|
679
|
+
*/
|
|
607
680
|
declare const Confirmation: ({ isOpen, title, description, onConfirm, onDismiss, cancelButtonText, children, cancelButtonDisabled, confirmButtonDisabled, confirmButtonText, clickOutToClose, bodyStyles, contentStyles, footerStyles, width, }: ConfirmationProps) => react__default.JSX.Element;
|
|
608
681
|
|
|
609
|
-
type DrawerSizeType = 'default' | 'medium' | 'small' | 'large' | 'x-large';
|
|
610
|
-
type DrawerPlacement = 'left' | 'right';
|
|
611
|
-
interface DrawerProps {
|
|
612
|
-
/**
|
|
613
|
-
* The children to be displayed in the drawer
|
|
614
|
-
*/
|
|
615
|
-
children?: React.ReactNode | string;
|
|
616
|
-
/**
|
|
617
|
-
* Whether the drawer is open
|
|
618
|
-
*/
|
|
619
|
-
isOpen?: boolean;
|
|
620
|
-
/**
|
|
621
|
-
* The placement of the drawer
|
|
622
|
-
*/
|
|
623
|
-
placement?: DrawerPlacement;
|
|
624
|
-
/**
|
|
625
|
-
* The size of the drawer
|
|
626
|
-
*/
|
|
627
|
-
size?: DrawerSizeType;
|
|
628
|
-
/**
|
|
629
|
-
* Whether the drawer is full height
|
|
630
|
-
*/
|
|
631
|
-
isFullHeight?: boolean;
|
|
632
|
-
/**
|
|
633
|
-
* Should the drawer close when clicking outside
|
|
634
|
-
*/
|
|
635
|
-
clickOutToClose?: boolean;
|
|
636
|
-
/**
|
|
637
|
-
* Should we hide the dismiss icon
|
|
638
|
-
*/
|
|
639
|
-
hideDismissIcon?: boolean;
|
|
640
|
-
/**
|
|
641
|
-
* Custom class to be added to the drawer
|
|
642
|
-
*/
|
|
643
|
-
customClass?: string;
|
|
644
|
-
/**
|
|
645
|
-
* Function to be called when the drawer is dismissed
|
|
646
|
-
*/
|
|
647
|
-
onDismiss?: () => void;
|
|
682
|
+
type DrawerSizeType = 'default' | 'medium' | 'small' | 'large' | 'x-large';
|
|
683
|
+
type DrawerPlacement = 'left' | 'right';
|
|
684
|
+
interface DrawerProps {
|
|
685
|
+
/**
|
|
686
|
+
* The children to be displayed in the drawer
|
|
687
|
+
*/
|
|
688
|
+
children?: React.ReactNode | string;
|
|
689
|
+
/**
|
|
690
|
+
* Whether the drawer is open
|
|
691
|
+
*/
|
|
692
|
+
isOpen?: boolean;
|
|
693
|
+
/**
|
|
694
|
+
* The placement of the drawer
|
|
695
|
+
*/
|
|
696
|
+
placement?: DrawerPlacement;
|
|
697
|
+
/**
|
|
698
|
+
* The size of the drawer
|
|
699
|
+
*/
|
|
700
|
+
size?: DrawerSizeType;
|
|
701
|
+
/**
|
|
702
|
+
* Whether the drawer is full height
|
|
703
|
+
*/
|
|
704
|
+
isFullHeight?: boolean;
|
|
705
|
+
/**
|
|
706
|
+
* Should the drawer close when clicking outside
|
|
707
|
+
*/
|
|
708
|
+
clickOutToClose?: boolean;
|
|
709
|
+
/**
|
|
710
|
+
* Should we hide the dismiss icon
|
|
711
|
+
*/
|
|
712
|
+
hideDismissIcon?: boolean;
|
|
713
|
+
/**
|
|
714
|
+
* Custom class to be added to the drawer
|
|
715
|
+
*/
|
|
716
|
+
customClass?: string;
|
|
717
|
+
/**
|
|
718
|
+
* Function to be called when the drawer is dismissed
|
|
719
|
+
*/
|
|
720
|
+
onDismiss?: () => void;
|
|
648
721
|
}
|
|
649
722
|
|
|
650
|
-
/**
|
|
651
|
-
* Drawer component is used to show a drawer to the user. It is used to show additional information or actions. It can be used to show a menu, a form, or any other content.
|
|
652
|
-
*/
|
|
723
|
+
/**
|
|
724
|
+
* Drawer component is used to show a drawer to the user. It is used to show additional information or actions. It can be used to show a menu, a form, or any other content.
|
|
725
|
+
*/
|
|
653
726
|
declare const Drawer: ({ isOpen, children, hideDismissIcon, customClass, size, isFullHeight, placement, clickOutToClose, onDismiss, }: DrawerProps) => react__default.JSX.Element;
|
|
654
727
|
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
/**
|
|
677
|
-
*
|
|
678
|
-
*/
|
|
679
|
-
|
|
680
|
-
/**
|
|
681
|
-
*
|
|
682
|
-
*/
|
|
683
|
-
|
|
684
|
-
/**
|
|
685
|
-
*
|
|
686
|
-
*/
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
maxLength?: number;
|
|
704
|
-
/**
|
|
705
|
-
* Whether to show character count
|
|
706
|
-
*/
|
|
707
|
-
showCount?: boolean;
|
|
708
|
-
inputStyle?: React.CSSProperties;
|
|
709
|
-
startLabel?: React.ReactNode | any;
|
|
710
|
-
startAdornment?: React.ReactNode | any;
|
|
711
|
-
endLabel?: React.ReactNode | any;
|
|
712
|
-
endAdornment?: React.ReactNode | any;
|
|
713
|
-
labelProps?: LabelProps;
|
|
714
|
-
containerProps?: React.HTMLAttributes<HTMLDivElement>;
|
|
715
|
-
forceInputDir?: 'ltr' | 'rtl';
|
|
716
|
-
}
|
|
717
|
-
interface InputProps extends CommonProps, React.InputHTMLAttributes<HTMLInputElement> {
|
|
718
|
-
ref?: React.Ref<HTMLInputElement>;
|
|
719
|
-
}
|
|
720
|
-
interface TextAreaProps extends CommonProps, React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
721
|
-
ref?: React.Ref<HTMLTextAreaElement>;
|
|
722
|
-
showLineNumbers?: boolean;
|
|
728
|
+
interface CommonProps {
|
|
729
|
+
/**
|
|
730
|
+
* Is this a required field?
|
|
731
|
+
*/
|
|
732
|
+
isRequired?: boolean;
|
|
733
|
+
/**
|
|
734
|
+
* Is this a error field?
|
|
735
|
+
*/
|
|
736
|
+
isErrored?: boolean;
|
|
737
|
+
/**
|
|
738
|
+
* Error text to be shown
|
|
739
|
+
*/
|
|
740
|
+
errorText?: string;
|
|
741
|
+
/**
|
|
742
|
+
* Id of the button
|
|
743
|
+
*/
|
|
744
|
+
id?: string;
|
|
745
|
+
/**
|
|
746
|
+
* Id of the button
|
|
747
|
+
*/
|
|
748
|
+
label?: string;
|
|
749
|
+
/**
|
|
750
|
+
* Label of the button
|
|
751
|
+
*/
|
|
752
|
+
inline?: boolean;
|
|
753
|
+
/**
|
|
754
|
+
* The max length of the input
|
|
755
|
+
*/
|
|
756
|
+
maxLength?: number;
|
|
757
|
+
/**
|
|
758
|
+
* Whether to show character count
|
|
759
|
+
*/
|
|
760
|
+
showCount?: boolean;
|
|
761
|
+
inputStyle?: React.CSSProperties;
|
|
762
|
+
startLabel?: React.ReactNode | any;
|
|
763
|
+
startAdornment?: React.ReactNode | any;
|
|
764
|
+
endLabel?: React.ReactNode | any;
|
|
765
|
+
endAdornment?: React.ReactNode | any;
|
|
766
|
+
labelProps?: LabelProps;
|
|
767
|
+
containerProps?: React.HTMLAttributes<HTMLDivElement>;
|
|
768
|
+
forceInputDir?: 'ltr' | 'rtl';
|
|
769
|
+
}
|
|
770
|
+
interface InputProps extends CommonProps, React.InputHTMLAttributes<HTMLInputElement> {
|
|
771
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
772
|
+
}
|
|
773
|
+
interface TextAreaProps extends CommonProps, React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
774
|
+
ref?: React.Ref<HTMLTextAreaElement>;
|
|
775
|
+
showLineNumbers?: boolean;
|
|
723
776
|
}
|
|
724
777
|
|
|
725
|
-
/**
|
|
726
|
-
* Input displays a single-line input box on the user interface and enables assigning a value to it. It is used to take user input for small text data.
|
|
727
|
-
*/
|
|
728
|
-
declare const Input: react__default.ForwardRefExoticComponent<Omit<InputProps, "ref"> & react__default.RefAttributes<HTMLInputElement>>;
|
|
778
|
+
/**
|
|
779
|
+
* Input displays a single-line input box on the user interface and enables assigning a value to it. It is used to take user input for small text data.
|
|
780
|
+
*/
|
|
781
|
+
declare const Input: react__default.ForwardRefExoticComponent<Omit<InputProps, "ref"> & react__default.RefAttributes<HTMLInputElement>>;
|
|
782
|
+
//# sourceMappingURL=Input.d.ts.map
|
|
729
783
|
|
|
730
|
-
/**
|
|
731
|
-
* TextArea displays a multi-line input box on the user interface and enables assigning a value to it. It is used to take user input for large text data.
|
|
732
|
-
*/
|
|
784
|
+
/**
|
|
785
|
+
* TextArea displays a multi-line input box on the user interface and enables assigning a value to it. It is used to take user input for large text data.
|
|
786
|
+
*/
|
|
733
787
|
declare const TextArea: react__default.ForwardRefExoticComponent<Omit<TextAreaProps, "ref"> & react__default.RefAttributes<HTMLTextAreaElement>>;
|
|
734
788
|
|
|
735
|
-
type LoaderSizes = 'mini' | 'small' | 'medium' | 'big';
|
|
736
|
-
type LoaderSpeeds = 'slow' | 'medium' | 'fast';
|
|
737
|
-
type LoaderPropTypes = {
|
|
738
|
-
/**
|
|
739
|
-
* Size of Select input
|
|
740
|
-
*/
|
|
741
|
-
size?: LoaderSizes;
|
|
742
|
-
/**
|
|
743
|
-
* Speed of Select input
|
|
744
|
-
*/
|
|
745
|
-
speed?: LoaderSpeeds;
|
|
789
|
+
type LoaderSizes = 'mini' | 'small' | 'medium' | 'big';
|
|
790
|
+
type LoaderSpeeds = 'slow' | 'medium' | 'fast';
|
|
791
|
+
type LoaderPropTypes = {
|
|
792
|
+
/**
|
|
793
|
+
* Size of Select input
|
|
794
|
+
*/
|
|
795
|
+
size?: LoaderSizes;
|
|
796
|
+
/**
|
|
797
|
+
* Speed of Select input
|
|
798
|
+
*/
|
|
799
|
+
speed?: LoaderSpeeds;
|
|
746
800
|
};
|
|
747
801
|
|
|
748
|
-
/**
|
|
749
|
-
* Loader Component can be used to indicate loading of a Page / Section of a page.
|
|
750
|
-
*/
|
|
802
|
+
/**
|
|
803
|
+
* Loader Component can be used to indicate loading of a Page / Section of a page.
|
|
804
|
+
*/
|
|
751
805
|
declare const Loader: (props: LoaderPropTypes) => react__default.JSX.Element;
|
|
752
806
|
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
type MenuProps<T extends DefaultMenuItemProps = DefaultMenuItemProps> = {
|
|
758
|
-
side?: PopperContentProps['side'];
|
|
759
|
-
sideOffset?: PopperContentProps['sideOffset'];
|
|
760
|
-
align?: PopperContentProps['align'];
|
|
761
|
-
alignOffset?: PopperContentProps['alignOffset'];
|
|
762
|
-
arrowPadding?: PopperContentProps['arrowPadding'];
|
|
763
|
-
avoidCollisions?: PopperContentProps['avoidCollisions'];
|
|
764
|
-
/**
|
|
765
|
-
* value of menu
|
|
766
|
-
*/
|
|
767
|
-
value?: T;
|
|
768
|
-
/**
|
|
769
|
-
* Called when a menu item is selected
|
|
770
|
-
*/
|
|
771
|
-
onSelect?: (option: T) => void;
|
|
772
|
-
closeMenuCallback?: () => void;
|
|
773
|
-
itemComponent?: (item: T, props?: MenuItemProps) => React.ReactNode | string;
|
|
774
|
-
/**
|
|
775
|
-
* options for menu button
|
|
776
|
-
*/
|
|
777
|
-
options?: Array<T>;
|
|
778
|
-
/**
|
|
779
|
-
* The children or label
|
|
780
|
-
*/
|
|
781
|
-
trigger: React.ReactNode | string;
|
|
782
|
-
/**
|
|
783
|
-
* Is the button inline
|
|
784
|
-
* @deprecated
|
|
785
|
-
*/
|
|
786
|
-
highlightedIndex?: number | null;
|
|
787
|
-
/**
|
|
788
|
-
* id Accessor of menu
|
|
789
|
-
*/
|
|
790
|
-
idAccessor?: string;
|
|
791
|
-
/**
|
|
792
|
-
* name Accessor of menu
|
|
793
|
-
*/
|
|
794
|
-
nameAccessor?: string;
|
|
795
|
-
/**
|
|
796
|
-
* Is the button inline
|
|
797
|
-
*/
|
|
798
|
-
isOpen?: boolean;
|
|
799
|
-
/**
|
|
800
|
-
* should show the Arrow?
|
|
801
|
-
*/
|
|
802
|
-
showArrow?: boolean;
|
|
803
|
-
disableMenu?: boolean;
|
|
804
|
-
};
|
|
805
|
-
type MenuItemProps = MenuItemProps$1 & {
|
|
806
|
-
isSelected?: boolean;
|
|
807
|
-
};
|
|
808
|
-
|
|
809
|
-
/**
|
|
810
|
-
* Menu is a container for Menu Item components.
|
|
811
|
-
* Menu item is a component to define each row of a menu components. It takes in prefix, suffix and default slot to place content either at beginning or end or middle of the row respectively.
|
|
812
|
-
*/
|
|
807
|
+
/**
|
|
808
|
+
* Menu is a container for Menu Item components.
|
|
809
|
+
* Menu item is a component to define each row of a menu components. It takes in prefix, suffix and default slot to place content either at beginning or end or middle of the row respectively.
|
|
810
|
+
*/
|
|
813
811
|
declare const Menu: <T extends DefaultMenuItemProps>(props: MenuProps<T>) => react__default.JSX.Element;
|
|
814
812
|
|
|
815
|
-
declare const DropdownMenuItem: styled_components.IStyledComponent<"web", styled_components_dist_types.Substitute<Omit<DropdownMenu.DropdownMenuItemProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
816
|
-
ref?: ((instance: HTMLDivElement | null) => void) | react.RefObject<HTMLDivElement> | null | undefined;
|
|
817
|
-
}, {
|
|
818
|
-
$isSelected?: boolean | undefined;
|
|
819
|
-
disabled?: boolean | undefined;
|
|
813
|
+
declare const DropdownMenuItem: styled_components.IStyledComponent<"web", styled_components_dist_types.Substitute<Omit<DropdownMenu.DropdownMenuItemProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
814
|
+
ref?: ((instance: HTMLDivElement | null) => void) | react.RefObject<HTMLDivElement> | null | undefined;
|
|
815
|
+
}, {
|
|
816
|
+
$isSelected?: boolean | undefined;
|
|
817
|
+
disabled?: boolean | undefined;
|
|
820
818
|
}>> & Omit<react.ForwardRefExoticComponent<DropdownMenu.DropdownMenuItemProps & react.RefAttributes<HTMLDivElement>>, keyof react.Component<any, {}, any>>;
|
|
821
819
|
|
|
822
|
-
type ModalAlignType = 'top' | 'center' | 'bottom';
|
|
823
|
-
type ModalPositionType = 'left' | 'center' | 'right';
|
|
824
|
-
type ModalSizeType = 'default' | 'medium' | 'small' | 'large' | 'x-large';
|
|
825
|
-
interface ModalProps {
|
|
826
|
-
/**
|
|
827
|
-
* The children or label
|
|
828
|
-
*/
|
|
829
|
-
children?: React.ReactNode | string;
|
|
830
|
-
/**
|
|
831
|
-
* Is the button inline
|
|
832
|
-
*/
|
|
833
|
-
isOpen?: boolean;
|
|
834
|
-
/**
|
|
835
|
-
* Is the button inline
|
|
836
|
-
*/
|
|
837
|
-
fullWidth?: boolean;
|
|
838
|
-
/**
|
|
839
|
-
* Is the button inline
|
|
840
|
-
*/
|
|
841
|
-
align?: ModalAlignType;
|
|
842
|
-
/**
|
|
843
|
-
* Is the button inline
|
|
844
|
-
*/
|
|
845
|
-
position?: ModalPositionType;
|
|
846
|
-
/**
|
|
847
|
-
* Is the button inline
|
|
848
|
-
*/
|
|
849
|
-
size?: ModalSizeType;
|
|
850
|
-
/**
|
|
851
|
-
* How large should the button be?
|
|
852
|
-
*/
|
|
853
|
-
onDismiss?: () => void;
|
|
854
|
-
/**
|
|
855
|
-
* The children or label
|
|
856
|
-
*/
|
|
857
|
-
customClass?: string;
|
|
858
|
-
/**
|
|
859
|
-
* The children or label
|
|
860
|
-
*/
|
|
861
|
-
customModalContentStyles?: React.CSSProperties;
|
|
820
|
+
type ModalAlignType = 'top' | 'center' | 'bottom';
|
|
821
|
+
type ModalPositionType = 'left' | 'center' | 'right';
|
|
822
|
+
type ModalSizeType = 'default' | 'medium' | 'small' | 'large' | 'x-large';
|
|
823
|
+
interface ModalProps {
|
|
824
|
+
/**
|
|
825
|
+
* The children or label
|
|
826
|
+
*/
|
|
827
|
+
children?: React.ReactNode | string;
|
|
828
|
+
/**
|
|
829
|
+
* Is the button inline
|
|
830
|
+
*/
|
|
831
|
+
isOpen?: boolean;
|
|
832
|
+
/**
|
|
833
|
+
* Is the button inline
|
|
834
|
+
*/
|
|
835
|
+
fullWidth?: boolean;
|
|
836
|
+
/**
|
|
837
|
+
* Is the button inline
|
|
838
|
+
*/
|
|
839
|
+
align?: ModalAlignType;
|
|
840
|
+
/**
|
|
841
|
+
* Is the button inline
|
|
842
|
+
*/
|
|
843
|
+
position?: ModalPositionType;
|
|
844
|
+
/**
|
|
845
|
+
* Is the button inline
|
|
846
|
+
*/
|
|
847
|
+
size?: ModalSizeType;
|
|
848
|
+
/**
|
|
849
|
+
* How large should the button be?
|
|
850
|
+
*/
|
|
851
|
+
onDismiss?: () => void;
|
|
852
|
+
/**
|
|
853
|
+
* The children or label
|
|
854
|
+
*/
|
|
855
|
+
customClass?: string;
|
|
856
|
+
/**
|
|
857
|
+
* The children or label
|
|
858
|
+
*/
|
|
859
|
+
customModalContentStyles?: React.CSSProperties;
|
|
862
860
|
}
|
|
863
861
|
|
|
864
|
-
/**
|
|
865
|
-
* Modals are used as an overlay to display information. It can also be used as confirm boxes to take user inputs.
|
|
866
|
-
*/
|
|
862
|
+
/**
|
|
863
|
+
* Modals are used as an overlay to display information. It can also be used as confirm boxes to take user inputs.
|
|
864
|
+
*/
|
|
867
865
|
declare const Modal: ({ isOpen, children, align, customClass, fullWidth, customModalContentStyles, onDismiss, position, size, }: ModalProps) => react__default.JSX.Element;
|
|
868
866
|
|
|
869
|
-
type DefaultMultiSelectDropdownItem = {
|
|
870
|
-
[key: string]: any;
|
|
871
|
-
};
|
|
872
|
-
interface MultiSelectDropdownProps<T extends DefaultMultiSelectDropdownItem = DefaultMultiSelectDropdownItem> {
|
|
873
|
-
/**
|
|
874
|
-
* dropdown item content
|
|
875
|
-
*/
|
|
876
|
-
items?: Array<T>;
|
|
877
|
-
/**
|
|
878
|
-
* Id of the item
|
|
879
|
-
*/
|
|
880
|
-
itemIdentifier?: string;
|
|
881
|
-
/**
|
|
882
|
-
* selected item of dropdown
|
|
883
|
-
*/
|
|
884
|
-
defaultSelectedItems?: T[];
|
|
885
|
-
/**
|
|
886
|
-
* Called when select an option or input value change
|
|
887
|
-
*/
|
|
888
|
-
onChange?: (item: T[]) => void;
|
|
889
|
-
itemToString?: (item: T, type?: 'list-item' | 'display' | 'downshift') => string;
|
|
890
|
-
/**
|
|
891
|
-
* Fuction to give the string representation of the item
|
|
892
|
-
*/
|
|
893
|
-
itemComponent?: (item: T) => React.ReactNode | string;
|
|
894
|
-
/**
|
|
895
|
-
* Is the dropdown readonly
|
|
896
|
-
*/
|
|
897
|
-
readOnly?: boolean;
|
|
898
|
-
/**
|
|
899
|
-
* Whether disabled select
|
|
900
|
-
*/
|
|
901
|
-
disabled?: boolean;
|
|
902
|
-
/**
|
|
903
|
-
* name of the drowpdown
|
|
904
|
-
*/
|
|
905
|
-
name?: string;
|
|
906
|
-
/**
|
|
907
|
-
* width of the multi select drowpdown
|
|
908
|
-
*/
|
|
909
|
-
width?: string;
|
|
910
|
-
filterKey?: string;
|
|
911
|
-
getCustomMessage?: (inoutValue: string) => string;
|
|
912
|
-
/**
|
|
913
|
-
* Empty items text box
|
|
914
|
-
*/
|
|
915
|
-
emptyItemsText?: string;
|
|
916
|
-
/**
|
|
917
|
-
* Whether to allow hide or clear when click
|
|
918
|
-
*/
|
|
919
|
-
hideClear?: boolean;
|
|
920
|
-
/**
|
|
921
|
-
* Whether to hide or show arrow
|
|
922
|
-
*/
|
|
923
|
-
hideArrow?: boolean;
|
|
924
|
-
/**
|
|
925
|
-
* Error text to be shown
|
|
926
|
-
*/
|
|
927
|
-
errorText?: string;
|
|
928
|
-
/**
|
|
929
|
-
* Is this a error field?
|
|
930
|
-
*/
|
|
931
|
-
isErrored?: boolean;
|
|
932
|
-
/**
|
|
933
|
-
* Is this a required field?
|
|
934
|
-
*/
|
|
935
|
-
isRequired?: boolean;
|
|
936
|
-
/**
|
|
937
|
-
* Is menu loading?
|
|
938
|
-
*/
|
|
939
|
-
isMenuLoading?: boolean;
|
|
940
|
-
inputValue?: string | null;
|
|
941
|
-
handleInputChange?: (inputValue: string) => void;
|
|
942
|
-
onCustomValueAdd?: (item: {
|
|
943
|
-
inputValue: string;
|
|
944
|
-
customValues: boolean;
|
|
945
|
-
}) => T;
|
|
946
|
-
removeSelectedItem?: (item: T, index: number) => void;
|
|
947
|
-
/**
|
|
948
|
-
* Is this custom value
|
|
949
|
-
*/
|
|
950
|
-
customValues?: boolean;
|
|
951
|
-
/**
|
|
952
|
-
* id of the drowpdown
|
|
953
|
-
*/
|
|
954
|
-
id?: string;
|
|
955
|
-
/**
|
|
956
|
-
* label for the drowpdown
|
|
957
|
-
*/
|
|
958
|
-
label?: string;
|
|
959
|
-
placeholder?: string;
|
|
960
|
-
useMultipleSelectionProps?: UseMultipleSelectionProps<T>;
|
|
961
|
-
useComboboxProps?: UseComboboxProps<T>;
|
|
962
|
-
InputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
963
|
-
onBackSpace?: () => void;
|
|
964
|
-
maxAllowedLength?: number;
|
|
965
|
-
isDynamicMenu?: boolean;
|
|
966
|
-
minAllowedLength?: number;
|
|
967
|
-
locale?: {
|
|
968
|
-
createText: string;
|
|
969
|
-
deleteText: string;
|
|
970
|
-
};
|
|
971
|
-
hideChips?: boolean;
|
|
972
|
-
hideSelectedItem?: boolean;
|
|
867
|
+
type DefaultMultiSelectDropdownItem = {
|
|
868
|
+
[key: string]: any;
|
|
869
|
+
};
|
|
870
|
+
interface MultiSelectDropdownProps<T extends DefaultMultiSelectDropdownItem = DefaultMultiSelectDropdownItem> {
|
|
871
|
+
/**
|
|
872
|
+
* dropdown item content
|
|
873
|
+
*/
|
|
874
|
+
items?: Array<T>;
|
|
875
|
+
/**
|
|
876
|
+
* Id of the item
|
|
877
|
+
*/
|
|
878
|
+
itemIdentifier?: string;
|
|
879
|
+
/**
|
|
880
|
+
* selected item of dropdown
|
|
881
|
+
*/
|
|
882
|
+
defaultSelectedItems?: T[];
|
|
883
|
+
/**
|
|
884
|
+
* Called when select an option or input value change
|
|
885
|
+
*/
|
|
886
|
+
onChange?: (item: T[]) => void;
|
|
887
|
+
itemToString?: (item: T, type?: 'list-item' | 'display' | 'downshift') => string;
|
|
888
|
+
/**
|
|
889
|
+
* Fuction to give the string representation of the item
|
|
890
|
+
*/
|
|
891
|
+
itemComponent?: (item: T) => React.ReactNode | string;
|
|
892
|
+
/**
|
|
893
|
+
* Is the dropdown readonly
|
|
894
|
+
*/
|
|
895
|
+
readOnly?: boolean;
|
|
896
|
+
/**
|
|
897
|
+
* Whether disabled select
|
|
898
|
+
*/
|
|
899
|
+
disabled?: boolean;
|
|
900
|
+
/**
|
|
901
|
+
* name of the drowpdown
|
|
902
|
+
*/
|
|
903
|
+
name?: string;
|
|
904
|
+
/**
|
|
905
|
+
* width of the multi select drowpdown
|
|
906
|
+
*/
|
|
907
|
+
width?: string;
|
|
908
|
+
filterKey?: string;
|
|
909
|
+
getCustomMessage?: (inoutValue: string) => string;
|
|
910
|
+
/**
|
|
911
|
+
* Empty items text box
|
|
912
|
+
*/
|
|
913
|
+
emptyItemsText?: string;
|
|
914
|
+
/**
|
|
915
|
+
* Whether to allow hide or clear when click
|
|
916
|
+
*/
|
|
917
|
+
hideClear?: boolean;
|
|
918
|
+
/**
|
|
919
|
+
* Whether to hide or show arrow
|
|
920
|
+
*/
|
|
921
|
+
hideArrow?: boolean;
|
|
922
|
+
/**
|
|
923
|
+
* Error text to be shown
|
|
924
|
+
*/
|
|
925
|
+
errorText?: string;
|
|
926
|
+
/**
|
|
927
|
+
* Is this a error field?
|
|
928
|
+
*/
|
|
929
|
+
isErrored?: boolean;
|
|
930
|
+
/**
|
|
931
|
+
* Is this a required field?
|
|
932
|
+
*/
|
|
933
|
+
isRequired?: boolean;
|
|
934
|
+
/**
|
|
935
|
+
* Is menu loading?
|
|
936
|
+
*/
|
|
937
|
+
isMenuLoading?: boolean;
|
|
938
|
+
inputValue?: string | null;
|
|
939
|
+
handleInputChange?: (inputValue: string) => void;
|
|
940
|
+
onCustomValueAdd?: (item: {
|
|
941
|
+
inputValue: string;
|
|
942
|
+
customValues: boolean;
|
|
943
|
+
}) => T;
|
|
944
|
+
removeSelectedItem?: (item: T, index: number) => void;
|
|
945
|
+
/**
|
|
946
|
+
* Is this custom value
|
|
947
|
+
*/
|
|
948
|
+
customValues?: boolean;
|
|
949
|
+
/**
|
|
950
|
+
* id of the drowpdown
|
|
951
|
+
*/
|
|
952
|
+
id?: string;
|
|
953
|
+
/**
|
|
954
|
+
* label for the drowpdown
|
|
955
|
+
*/
|
|
956
|
+
label?: string;
|
|
957
|
+
placeholder?: string;
|
|
958
|
+
useMultipleSelectionProps?: UseMultipleSelectionProps<T>;
|
|
959
|
+
useComboboxProps?: UseComboboxProps<T>;
|
|
960
|
+
InputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
961
|
+
onBackSpace?: () => void;
|
|
962
|
+
maxAllowedLength?: number;
|
|
963
|
+
isDynamicMenu?: boolean;
|
|
964
|
+
minAllowedLength?: number;
|
|
965
|
+
locale?: {
|
|
966
|
+
createText: string;
|
|
967
|
+
deleteText: string;
|
|
968
|
+
};
|
|
969
|
+
hideChips?: boolean;
|
|
970
|
+
hideSelectedItem?: boolean;
|
|
973
971
|
}
|
|
974
972
|
|
|
975
|
-
/**
|
|
976
|
-
* MultiSelectDropdown displays a list or drop-down box that enables selection of an option or multiple options from an available list of values.
|
|
977
|
-
*/
|
|
973
|
+
/**
|
|
974
|
+
* MultiSelectDropdown displays a list or drop-down box that enables selection of an option or multiple options from an available list of values.
|
|
975
|
+
*/
|
|
978
976
|
declare const MultiSelectDropdown: <T extends DefaultMultiSelectDropdownItem>({ itemIdentifier, label, id, items, onChange, placeholder, readOnly, disabled, isRequired, itemToString, name, filterKey, width, useComboboxProps, useMultipleSelectionProps, emptyItemsText, getCustomMessage, onCustomValueAdd, customValues, inputValue: iV, hideClear, hideArrow, removeSelectedItem: rSelectedItem, defaultSelectedItems, handleInputChange, isErrored, isMenuLoading, errorText, InputProps, itemComponent, isDynamicMenu, locale, maxAllowedLength, minAllowedLength, hideChips, hideSelectedItem, onBackSpace, }: MultiSelectDropdownProps<T>) => react__default.JSX.Element;
|
|
979
977
|
|
|
980
|
-
type DefaultProps = {
|
|
981
|
-
/**
|
|
982
|
-
* Is this a required field?
|
|
983
|
-
*/
|
|
984
|
-
isRequired?: boolean;
|
|
985
|
-
/**
|
|
986
|
-
* Is this a error field?
|
|
987
|
-
*/
|
|
988
|
-
isErrored?: boolean;
|
|
989
|
-
/**
|
|
990
|
-
* Error text to be shown
|
|
991
|
-
*/
|
|
992
|
-
errorText?: string;
|
|
993
|
-
/**
|
|
994
|
-
* Id of the date picker
|
|
995
|
-
*/
|
|
996
|
-
id?: string;
|
|
997
|
-
/**
|
|
998
|
-
* name of the date picker
|
|
999
|
-
*/
|
|
1000
|
-
name?: string;
|
|
1001
|
-
/**
|
|
1002
|
-
* label for the picker
|
|
1003
|
-
*/
|
|
1004
|
-
label?: string;
|
|
1005
|
-
language?: string;
|
|
1006
|
-
placeholder?: string;
|
|
1007
|
-
/**
|
|
1008
|
-
* Today's date according to the user's timezone in the YYYY-MM-DD format
|
|
1009
|
-
*/
|
|
1010
|
-
dateToHilight?: string;
|
|
1011
|
-
/**
|
|
1012
|
-
* Whether disabled select
|
|
1013
|
-
*/
|
|
1014
|
-
disabled?: boolean;
|
|
1015
|
-
portalContainer?: HTMLElement;
|
|
1016
|
-
cancelButtonText?: string;
|
|
1017
|
-
updateButtonText?: string;
|
|
1018
|
-
};
|
|
1019
|
-
type DatePickerProps = DefaultProps & Partial<DateInput3Props> & {
|
|
1020
|
-
displayFormat?: string;
|
|
1021
|
-
useTime?: boolean;
|
|
1022
|
-
};
|
|
1023
|
-
type DateRangePickerProps = DefaultProps & Partial<DateRangeInput3Props> & {
|
|
1024
|
-
displayFormat?: string;
|
|
1025
|
-
useTime?: boolean;
|
|
1026
|
-
};
|
|
1027
|
-
type DateTimePickerProps = DefaultProps & Partial<DateInput3Props> & {
|
|
1028
|
-
displayFormat?: string;
|
|
1029
|
-
};
|
|
1030
|
-
type DateTimeRangePickerProps = DefaultProps & Partial<DateRangeInput3Props> & {
|
|
1031
|
-
displayFormat?: string;
|
|
1032
|
-
};
|
|
1033
|
-
type TimePickerProps = DefaultProps & {
|
|
1034
|
-
displayFormat?: string;
|
|
1035
|
-
value?: string;
|
|
1036
|
-
onChange?: (dateString: string | null) => void;
|
|
1037
|
-
useAmPm?: boolean;
|
|
1038
|
-
precision?: TimePrecision;
|
|
978
|
+
type DefaultProps = {
|
|
979
|
+
/**
|
|
980
|
+
* Is this a required field?
|
|
981
|
+
*/
|
|
982
|
+
isRequired?: boolean;
|
|
983
|
+
/**
|
|
984
|
+
* Is this a error field?
|
|
985
|
+
*/
|
|
986
|
+
isErrored?: boolean;
|
|
987
|
+
/**
|
|
988
|
+
* Error text to be shown
|
|
989
|
+
*/
|
|
990
|
+
errorText?: string;
|
|
991
|
+
/**
|
|
992
|
+
* Id of the date picker
|
|
993
|
+
*/
|
|
994
|
+
id?: string;
|
|
995
|
+
/**
|
|
996
|
+
* name of the date picker
|
|
997
|
+
*/
|
|
998
|
+
name?: string;
|
|
999
|
+
/**
|
|
1000
|
+
* label for the picker
|
|
1001
|
+
*/
|
|
1002
|
+
label?: string;
|
|
1003
|
+
language?: string;
|
|
1004
|
+
placeholder?: string;
|
|
1005
|
+
/**
|
|
1006
|
+
* Today's date according to the user's timezone in the YYYY-MM-DD format
|
|
1007
|
+
*/
|
|
1008
|
+
dateToHilight?: string;
|
|
1009
|
+
/**
|
|
1010
|
+
* Whether disabled select
|
|
1011
|
+
*/
|
|
1012
|
+
disabled?: boolean;
|
|
1013
|
+
portalContainer?: HTMLElement;
|
|
1014
|
+
cancelButtonText?: string;
|
|
1015
|
+
updateButtonText?: string;
|
|
1016
|
+
};
|
|
1017
|
+
type DatePickerProps = DefaultProps & Partial<DateInput3Props> & {
|
|
1018
|
+
displayFormat?: string;
|
|
1019
|
+
useTime?: boolean;
|
|
1020
|
+
};
|
|
1021
|
+
type DateRangePickerProps = DefaultProps & Partial<DateRangeInput3Props> & {
|
|
1022
|
+
displayFormat?: string;
|
|
1023
|
+
useTime?: boolean;
|
|
1024
|
+
};
|
|
1025
|
+
type DateTimePickerProps = DefaultProps & Partial<DateInput3Props> & {
|
|
1026
|
+
displayFormat?: string;
|
|
1027
|
+
};
|
|
1028
|
+
type DateTimeRangePickerProps = DefaultProps & Partial<DateRangeInput3Props> & {
|
|
1029
|
+
displayFormat?: string;
|
|
1030
|
+
};
|
|
1031
|
+
type TimePickerProps = DefaultProps & {
|
|
1032
|
+
displayFormat?: string;
|
|
1033
|
+
value?: string;
|
|
1034
|
+
onChange?: (dateString: string | null) => void;
|
|
1035
|
+
useAmPm?: boolean;
|
|
1036
|
+
precision?: TimePrecision;
|
|
1039
1037
|
};
|
|
1040
1038
|
|
|
1041
|
-
/**
|
|
1042
|
-
* Datepicker displays an input box with a calendar that enables selecting a date or date range. The values preselected in the input box and calendar are based on the fw-datepicker attribute values.
|
|
1043
|
-
* All the date formats passed as attribute's values must be valid ISO Date format (opens new window).
|
|
1044
|
-
*/
|
|
1039
|
+
/**
|
|
1040
|
+
* Datepicker displays an input box with a calendar that enables selecting a date or date range. The values preselected in the input box and calendar are based on the fw-datepicker attribute values.
|
|
1041
|
+
* All the date formats passed as attribute's values must be valid ISO Date format (opens new window).
|
|
1042
|
+
*/
|
|
1045
1043
|
declare const DatePicker: (props: DatePickerProps) => react__default.JSX.Element;
|
|
1046
1044
|
|
|
1047
|
-
/**
|
|
1048
|
-
* DateTimePicker displays an input box with a calendar that enables selecting a date or date range. The values preselected in the input box and calendar are based on the fw-datepicker attribute values.
|
|
1049
|
-
* All the date formats passed as attribute's values must be valid ISO Date format (opens new window).
|
|
1050
|
-
*/
|
|
1045
|
+
/**
|
|
1046
|
+
* DateTimePicker displays an input box with a calendar that enables selecting a date or date range. The values preselected in the input box and calendar are based on the fw-datepicker attribute values.
|
|
1047
|
+
* All the date formats passed as attribute's values must be valid ISO Date format (opens new window).
|
|
1048
|
+
*/
|
|
1051
1049
|
declare const DateTimePicker: (props: DateTimePickerProps) => react__default.JSX.Element;
|
|
1052
1050
|
|
|
1053
|
-
/**
|
|
1054
|
-
* DateRangePicker displays an input box with a calendar that enables selecting a date or date range. The values preselected in the input box and calendar are based on the fw-datepicker attribute values.
|
|
1055
|
-
* All the date formats passed as attribute's values must be valid ISO Date format (opens new window).
|
|
1056
|
-
*/
|
|
1051
|
+
/**
|
|
1052
|
+
* DateRangePicker displays an input box with a calendar that enables selecting a date or date range. The values preselected in the input box and calendar are based on the fw-datepicker attribute values.
|
|
1053
|
+
* All the date formats passed as attribute's values must be valid ISO Date format (opens new window).
|
|
1054
|
+
*/
|
|
1057
1055
|
declare const DateRangePicker: (props: DateRangePickerProps) => react__default.JSX.Element;
|
|
1058
1056
|
|
|
1059
|
-
/**
|
|
1060
|
-
* DateTimeRangePicker displays an input box with a calendar that enables selecting a date or date range. The values preselected in the input box and calendar are based on the fw-datepicker attribute values.
|
|
1061
|
-
* All the date formats passed as attribute's values must be valid ISO Date format (opens new window).
|
|
1062
|
-
*/
|
|
1057
|
+
/**
|
|
1058
|
+
* DateTimeRangePicker displays an input box with a calendar that enables selecting a date or date range. The values preselected in the input box and calendar are based on the fw-datepicker attribute values.
|
|
1059
|
+
* All the date formats passed as attribute's values must be valid ISO Date format (opens new window).
|
|
1060
|
+
*/
|
|
1063
1061
|
declare const DateTimeRangePicker: (props: DateTimeRangePickerProps) => react__default.JSX.Element;
|
|
1064
1062
|
|
|
1065
|
-
/**
|
|
1066
|
-
* TimePicker displays an input box with a calendar that enables selecting a date or date range. The values preselected in the input box and calendar are based on the fw-datepicker attribute values.
|
|
1067
|
-
*/
|
|
1063
|
+
/**
|
|
1064
|
+
* TimePicker displays an input box with a calendar that enables selecting a date or date range. The values preselected in the input box and calendar are based on the fw-datepicker attribute values.
|
|
1065
|
+
*/
|
|
1068
1066
|
declare const TimePicker: (props: TimePickerProps) => react__default.JSX.Element;
|
|
1069
1067
|
|
|
1070
|
-
type Origin = {
|
|
1071
|
-
vertical?: 'top' | 'center' | 'bottom';
|
|
1072
|
-
horizontal?: 'left' | 'center' | 'right';
|
|
1073
|
-
};
|
|
1074
|
-
interface PopoverProps {
|
|
1075
|
-
/**
|
|
1076
|
-
* How large should the button be?
|
|
1077
|
-
*/
|
|
1078
|
-
onClose?: (event?: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
1079
|
-
/**
|
|
1080
|
-
* Which variant the button should be
|
|
1081
|
-
*/
|
|
1082
|
-
id?: string;
|
|
1083
|
-
/**
|
|
1084
|
-
* Which variant the button should be
|
|
1085
|
-
*/
|
|
1086
|
-
disabled?: boolean;
|
|
1087
|
-
replaceTrigger?: boolean;
|
|
1088
|
-
popoverContentProps?: Popover$1.PopoverContentProps;
|
|
1089
|
-
popoverRootProps?: Popover$1.PopoverProps;
|
|
1090
|
-
/**
|
|
1091
|
-
* The children or label
|
|
1092
|
-
*/
|
|
1093
|
-
trigger: React.ReactNode | string;
|
|
1094
|
-
/**
|
|
1095
|
-
* The children or label
|
|
1096
|
-
*/
|
|
1097
|
-
children?: React.ReactNode | string;
|
|
1098
|
-
/**
|
|
1099
|
-
* Is the button inline
|
|
1100
|
-
*/
|
|
1101
|
-
hoverOutToClose?: boolean;
|
|
1102
|
-
/**
|
|
1103
|
-
* Is the button inline
|
|
1104
|
-
*/
|
|
1105
|
-
hoverToOpen?: boolean;
|
|
1106
|
-
/**
|
|
1107
|
-
* Is the button inline
|
|
1108
|
-
*/
|
|
1109
|
-
arrow?: boolean;
|
|
1110
|
-
/**
|
|
1111
|
-
* Is the button inline
|
|
1112
|
-
*/
|
|
1113
|
-
avoidCollisions?: boolean;
|
|
1114
|
-
/**
|
|
1115
|
-
* Is the button inline
|
|
1116
|
-
*/
|
|
1117
|
-
side?: Popover$1.PopperContentProps['side'];
|
|
1118
|
-
/**
|
|
1119
|
-
* Is the button inline
|
|
1120
|
-
*/
|
|
1121
|
-
align?: Popover$1.PopperContentProps['align'];
|
|
1122
|
-
/**
|
|
1123
|
-
* Is the button inline
|
|
1124
|
-
* @deprecated
|
|
1125
|
-
*/
|
|
1126
|
-
anchorOrigin?: Origin;
|
|
1127
|
-
/**
|
|
1128
|
-
* Is the button inline
|
|
1129
|
-
* * @deprecated
|
|
1130
|
-
*/
|
|
1131
|
-
transformOrigin?: Origin;
|
|
1132
|
-
/**
|
|
1133
|
-
* Is the button inline
|
|
1134
|
-
* * @deprecated
|
|
1135
|
-
*/
|
|
1136
|
-
clickOutToClose?: boolean;
|
|
1137
|
-
/**
|
|
1138
|
-
* Is the button inline
|
|
1139
|
-
* * @deprecated
|
|
1140
|
-
*/
|
|
1141
|
-
autoCloseDuration?: number;
|
|
1068
|
+
type Origin = {
|
|
1069
|
+
vertical?: 'top' | 'center' | 'bottom';
|
|
1070
|
+
horizontal?: 'left' | 'center' | 'right';
|
|
1071
|
+
};
|
|
1072
|
+
interface PopoverProps {
|
|
1073
|
+
/**
|
|
1074
|
+
* How large should the button be?
|
|
1075
|
+
*/
|
|
1076
|
+
onClose?: (event?: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
1077
|
+
/**
|
|
1078
|
+
* Which variant the button should be
|
|
1079
|
+
*/
|
|
1080
|
+
id?: string;
|
|
1081
|
+
/**
|
|
1082
|
+
* Which variant the button should be
|
|
1083
|
+
*/
|
|
1084
|
+
disabled?: boolean;
|
|
1085
|
+
replaceTrigger?: boolean;
|
|
1086
|
+
popoverContentProps?: Popover$1.PopoverContentProps;
|
|
1087
|
+
popoverRootProps?: Popover$1.PopoverProps;
|
|
1088
|
+
/**
|
|
1089
|
+
* The children or label
|
|
1090
|
+
*/
|
|
1091
|
+
trigger: React.ReactNode | string;
|
|
1092
|
+
/**
|
|
1093
|
+
* The children or label
|
|
1094
|
+
*/
|
|
1095
|
+
children?: React.ReactNode | string;
|
|
1096
|
+
/**
|
|
1097
|
+
* Is the button inline
|
|
1098
|
+
*/
|
|
1099
|
+
hoverOutToClose?: boolean;
|
|
1100
|
+
/**
|
|
1101
|
+
* Is the button inline
|
|
1102
|
+
*/
|
|
1103
|
+
hoverToOpen?: boolean;
|
|
1104
|
+
/**
|
|
1105
|
+
* Is the button inline
|
|
1106
|
+
*/
|
|
1107
|
+
arrow?: boolean;
|
|
1108
|
+
/**
|
|
1109
|
+
* Is the button inline
|
|
1110
|
+
*/
|
|
1111
|
+
avoidCollisions?: boolean;
|
|
1112
|
+
/**
|
|
1113
|
+
* Is the button inline
|
|
1114
|
+
*/
|
|
1115
|
+
side?: Popover$1.PopperContentProps['side'];
|
|
1116
|
+
/**
|
|
1117
|
+
* Is the button inline
|
|
1118
|
+
*/
|
|
1119
|
+
align?: Popover$1.PopperContentProps['align'];
|
|
1120
|
+
/**
|
|
1121
|
+
* Is the button inline
|
|
1122
|
+
* @deprecated
|
|
1123
|
+
*/
|
|
1124
|
+
anchorOrigin?: Origin;
|
|
1125
|
+
/**
|
|
1126
|
+
* Is the button inline
|
|
1127
|
+
* * @deprecated
|
|
1128
|
+
*/
|
|
1129
|
+
transformOrigin?: Origin;
|
|
1130
|
+
/**
|
|
1131
|
+
* Is the button inline
|
|
1132
|
+
* * @deprecated
|
|
1133
|
+
*/
|
|
1134
|
+
clickOutToClose?: boolean;
|
|
1135
|
+
/**
|
|
1136
|
+
* Is the button inline
|
|
1137
|
+
* * @deprecated
|
|
1138
|
+
*/
|
|
1139
|
+
autoCloseDuration?: number;
|
|
1142
1140
|
}
|
|
1143
1141
|
|
|
1144
|
-
/**
|
|
1145
|
-
* Popover need two slots popover-trigger and popover-content. By default on clicking the trigger the content will be displayed. The props can be used to change the position of the content, width of the component and the distance between the trigger and the content.
|
|
1146
|
-
*/
|
|
1142
|
+
/**
|
|
1143
|
+
* Popover need two slots popover-trigger and popover-content. By default on clicking the trigger the content will be displayed. The props can be used to change the position of the content, width of the component and the distance between the trigger and the content.
|
|
1144
|
+
*/
|
|
1147
1145
|
declare const Popover: ({ children, trigger, arrow, hoverOutToClose, align, hoverToOpen, avoidCollisions, replaceTrigger, side: s, disabled, onClose, popoverContentProps, popoverRootProps, anchorOrigin, }: PopoverProps) => react__default.JSX.Element;
|
|
1148
1146
|
|
|
1149
|
-
declare const PopoverTrigger: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<Omit<Popover$1.PopoverTriggerProps & react.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
1150
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | react.RefObject<HTMLButtonElement> | null | undefined;
|
|
1151
|
-
}, never>> & Omit<react.ForwardRefExoticComponent<Popover$1.PopoverTriggerProps & react.RefAttributes<HTMLButtonElement>>, keyof react.Component<any, {}, any>>;
|
|
1152
|
-
declare const PopoverClose: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<Omit<Popover$1.PopoverCloseProps & react.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
1153
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | react.RefObject<HTMLButtonElement> | null | undefined;
|
|
1147
|
+
declare const PopoverTrigger: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<Omit<Popover$1.PopoverTriggerProps & react.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
1148
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | react.RefObject<HTMLButtonElement> | null | undefined;
|
|
1149
|
+
}, never>> & Omit<react.ForwardRefExoticComponent<Popover$1.PopoverTriggerProps & react.RefAttributes<HTMLButtonElement>>, keyof react.Component<any, {}, any>>;
|
|
1150
|
+
declare const PopoverClose: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<Omit<Popover$1.PopoverCloseProps & react.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
1151
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | react.RefObject<HTMLButtonElement> | null | undefined;
|
|
1154
1152
|
}, never>> & Omit<react.ForwardRefExoticComponent<Popover$1.PopoverCloseProps & react.RefAttributes<HTMLButtonElement>>, keyof react.Component<any, {}, any>>;
|
|
1155
1153
|
|
|
1156
|
-
type RadioProps = Pick<RadioGroupProps$1, 'name' | 'disabled' | 'dir'> & Omit<React.HTMLAttributes<HTMLDivElement>, 'value' | 'defaultValue'> & {
|
|
1157
|
-
/**
|
|
1158
|
-
* Is the Radio button selected
|
|
1159
|
-
*/
|
|
1160
|
-
checked?: boolean;
|
|
1161
|
-
/**
|
|
1162
|
-
* Whether disabled select
|
|
1163
|
-
*/
|
|
1164
|
-
readOnly?: boolean;
|
|
1165
|
-
/**
|
|
1166
|
-
* Whether disabled select
|
|
1167
|
-
*/
|
|
1168
|
-
isRequired?: boolean;
|
|
1169
|
-
/**
|
|
1170
|
-
* label for the radio button
|
|
1171
|
-
*/
|
|
1172
|
-
label?: string;
|
|
1173
|
-
};
|
|
1174
|
-
interface RadioItemProps {
|
|
1175
|
-
[key: string]: any;
|
|
1176
|
-
}
|
|
1177
|
-
type RadioGroupProps<T extends RadioItemProps = RadioItemProps> = Pick<RadioGroupProps$1, 'name' | 'disabled' | 'dir' | 'value' | 'defaultValue'> & Omit<React.HTMLAttributes<HTMLDivElement>, 'value' | 'defaultValue'> & {
|
|
1178
|
-
/**
|
|
1179
|
-
* Select options
|
|
1180
|
-
*/
|
|
1181
|
-
options?: Array<T>;
|
|
1182
|
-
/**
|
|
1183
|
-
* Id accessor of radio button
|
|
1184
|
-
*/
|
|
1185
|
-
idAccessor?: string;
|
|
1186
|
-
/**
|
|
1187
|
-
* Name accesssor of radio button
|
|
1188
|
-
*/
|
|
1189
|
-
nameAccessor?: string;
|
|
1190
|
-
/**
|
|
1191
|
-
* Function to be called when the selected item changes
|
|
1192
|
-
*/
|
|
1193
|
-
onChange?: RadioGroupContextValue['onValueChange'];
|
|
1194
|
-
/**
|
|
1195
|
-
* Whether disabled select
|
|
1196
|
-
*/
|
|
1197
|
-
isRequired?: boolean;
|
|
1198
|
-
/**
|
|
1199
|
-
* Whether disabled select
|
|
1200
|
-
*/
|
|
1201
|
-
readOnly?: boolean;
|
|
1202
|
-
/**
|
|
1203
|
-
* The description of the content
|
|
1204
|
-
*/
|
|
1205
|
-
label?: string;
|
|
1206
|
-
errorText?: string;
|
|
1207
|
-
isErrored?: boolean;
|
|
1154
|
+
type RadioProps = Pick<RadioGroupProps$1, 'name' | 'disabled' | 'dir'> & Omit<React.HTMLAttributes<HTMLDivElement>, 'value' | 'defaultValue'> & {
|
|
1155
|
+
/**
|
|
1156
|
+
* Is the Radio button selected
|
|
1157
|
+
*/
|
|
1158
|
+
checked?: boolean;
|
|
1159
|
+
/**
|
|
1160
|
+
* Whether disabled select
|
|
1161
|
+
*/
|
|
1162
|
+
readOnly?: boolean;
|
|
1163
|
+
/**
|
|
1164
|
+
* Whether disabled select
|
|
1165
|
+
*/
|
|
1166
|
+
isRequired?: boolean;
|
|
1167
|
+
/**
|
|
1168
|
+
* label for the radio button
|
|
1169
|
+
*/
|
|
1170
|
+
label?: string;
|
|
1171
|
+
};
|
|
1172
|
+
interface RadioItemProps {
|
|
1173
|
+
[key: string]: any;
|
|
1174
|
+
}
|
|
1175
|
+
type RadioGroupProps<T extends RadioItemProps = RadioItemProps> = Pick<RadioGroupProps$1, 'name' | 'disabled' | 'dir' | 'value' | 'defaultValue'> & Omit<React.HTMLAttributes<HTMLDivElement>, 'value' | 'defaultValue'> & {
|
|
1176
|
+
/**
|
|
1177
|
+
* Select options
|
|
1178
|
+
*/
|
|
1179
|
+
options?: Array<T>;
|
|
1180
|
+
/**
|
|
1181
|
+
* Id accessor of radio button
|
|
1182
|
+
*/
|
|
1183
|
+
idAccessor?: string;
|
|
1184
|
+
/**
|
|
1185
|
+
* Name accesssor of radio button
|
|
1186
|
+
*/
|
|
1187
|
+
nameAccessor?: string;
|
|
1188
|
+
/**
|
|
1189
|
+
* Function to be called when the selected item changes
|
|
1190
|
+
*/
|
|
1191
|
+
onChange?: RadioGroupContextValue['onValueChange'];
|
|
1192
|
+
/**
|
|
1193
|
+
* Whether disabled select
|
|
1194
|
+
*/
|
|
1195
|
+
isRequired?: boolean;
|
|
1196
|
+
/**
|
|
1197
|
+
* Whether disabled select
|
|
1198
|
+
*/
|
|
1199
|
+
readOnly?: boolean;
|
|
1200
|
+
/**
|
|
1201
|
+
* The description of the content
|
|
1202
|
+
*/
|
|
1203
|
+
label?: string;
|
|
1204
|
+
errorText?: string;
|
|
1205
|
+
isErrored?: boolean;
|
|
1208
1206
|
};
|
|
1209
1207
|
|
|
1210
|
-
/**
|
|
1211
|
-
* Radio displays a radio button on the user interface and enables assigning a state (selected or deselected) to it. In the selected state, the button displayed is highlighted. fw-radio provides child elements for fw-radio-group, to populate the Radio Group component’s list.
|
|
1212
|
-
*/
|
|
1208
|
+
/**
|
|
1209
|
+
* Radio displays a radio button on the user interface and enables assigning a state (selected or deselected) to it. In the selected state, the button displayed is highlighted. fw-radio provides child elements for fw-radio-group, to populate the Radio Group component’s list.
|
|
1210
|
+
*/
|
|
1213
1211
|
declare const Radio: ({ checked, className, disabled, id, isRequired, label, name, readOnly, ...htmlAttributes }: RadioProps) => react__default.JSX.Element;
|
|
1214
1212
|
|
|
1215
|
-
/**
|
|
1216
|
-
* RadioGroup displays a group of options with radio buttons and enables selection of one option from the list.
|
|
1217
|
-
*/
|
|
1213
|
+
/**
|
|
1214
|
+
* RadioGroup displays a group of options with radio buttons and enables selection of one option from the list.
|
|
1215
|
+
*/
|
|
1218
1216
|
declare const RadioGroup: ({ options, defaultValue, idAccessor, nameAccessor, onChange, className, id, isErrored, errorText, disabled, isRequired, label, readOnly, value, ...props }: RadioGroupProps) => react__default.JSX.Element;
|
|
1219
1217
|
|
|
1220
|
-
type ReorderItemType = {
|
|
1221
|
-
id: string | number;
|
|
1222
|
-
[key: string]: any;
|
|
1223
|
-
};
|
|
1224
|
-
type ReorderProps<T extends ReorderItemType = ReorderItemType> = {
|
|
1225
|
-
/**
|
|
1226
|
-
* Items of reorder
|
|
1227
|
-
*/
|
|
1228
|
-
items: T[];
|
|
1229
|
-
/**
|
|
1230
|
-
* Class name of reorder
|
|
1231
|
-
*/
|
|
1232
|
-
className?: string;
|
|
1233
|
-
/**
|
|
1234
|
-
* Whether disabled select
|
|
1235
|
-
*/
|
|
1236
|
-
disabled?: boolean;
|
|
1237
|
-
/**
|
|
1238
|
-
* should show the Dragger?
|
|
1239
|
-
*/
|
|
1240
|
-
showDragger?: boolean;
|
|
1241
|
-
customFilter?: (item: T) => boolean;
|
|
1242
|
-
onReorder?: (items: T[]) => void;
|
|
1243
|
-
customRender: (item: T, index: number, listeners?: DraggableSyntheticListeners) => React.ReactNode;
|
|
1218
|
+
type ReorderItemType = {
|
|
1219
|
+
id: string | number;
|
|
1220
|
+
[key: string]: any;
|
|
1221
|
+
};
|
|
1222
|
+
type ReorderProps<T extends ReorderItemType = ReorderItemType> = {
|
|
1223
|
+
/**
|
|
1224
|
+
* Items of reorder
|
|
1225
|
+
*/
|
|
1226
|
+
items: T[];
|
|
1227
|
+
/**
|
|
1228
|
+
* Class name of reorder
|
|
1229
|
+
*/
|
|
1230
|
+
className?: string;
|
|
1231
|
+
/**
|
|
1232
|
+
* Whether disabled select
|
|
1233
|
+
*/
|
|
1234
|
+
disabled?: boolean;
|
|
1235
|
+
/**
|
|
1236
|
+
* should show the Dragger?
|
|
1237
|
+
*/
|
|
1238
|
+
showDragger?: boolean;
|
|
1239
|
+
customFilter?: (item: T) => boolean;
|
|
1240
|
+
onReorder?: (items: T[]) => void;
|
|
1241
|
+
customRender: (item: T, index: number, listeners?: DraggableSyntheticListeners) => React.ReactNode;
|
|
1244
1242
|
};
|
|
1245
1243
|
|
|
1246
|
-
/**
|
|
1247
|
-
* Reorder is a component that enables reordering of items in a list. It provides a drag handle to reorder the items.
|
|
1248
|
-
*/
|
|
1244
|
+
/**
|
|
1245
|
+
* Reorder is a component that enables reordering of items in a list. It provides a drag handle to reorder the items.
|
|
1246
|
+
*/
|
|
1249
1247
|
declare const Reorder: <T extends ReorderItemType = ReorderItemType>(props: ReorderProps<T>) => react__default.JSX.Element;
|
|
1250
1248
|
|
|
1251
|
-
type
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1249
|
+
type TableSortingMenuProps<T extends DefaultMenuItemProps = DefaultMenuItemProps> = {
|
|
1250
|
+
/**
|
|
1251
|
+
* value of menu
|
|
1252
|
+
*/
|
|
1253
|
+
value?: string[];
|
|
1254
|
+
/**
|
|
1255
|
+
* Called when a menu item is selected
|
|
1256
|
+
*/
|
|
1257
|
+
onSelect?: (value?: string[]) => void;
|
|
1258
|
+
/**
|
|
1259
|
+
* options for menu button
|
|
1260
|
+
*/
|
|
1261
|
+
options?: T[][];
|
|
1262
|
+
/**
|
|
1263
|
+
* The children or label
|
|
1264
|
+
*/
|
|
1265
|
+
trigger: React.ReactNode | string;
|
|
1266
|
+
/**
|
|
1267
|
+
* Is the button inline
|
|
1268
|
+
* @deprecated
|
|
1269
|
+
*/
|
|
1270
|
+
highlightedIndex?: number | null;
|
|
1271
|
+
/**
|
|
1272
|
+
* id Accessor of menu
|
|
1273
|
+
*/
|
|
1274
|
+
idAccessor?: string;
|
|
1275
|
+
/**
|
|
1276
|
+
* name Accessor of menu
|
|
1277
|
+
*/
|
|
1278
|
+
nameAccessor?: string;
|
|
1279
|
+
isDisableSortDropdown?: boolean;
|
|
1257
1280
|
};
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1281
|
+
|
|
1282
|
+
/**
|
|
1283
|
+
* SortDropdown component is used to render the dropdown for sorting the table
|
|
1284
|
+
*/
|
|
1285
|
+
declare const SortDropdown: <T extends DefaultMenuItemProps>(props: TableSortingMenuProps<T>) => react__default.JSX.Element;
|
|
1286
|
+
|
|
1287
|
+
type RowDataType = {
|
|
1288
|
+
[key in string]: any;
|
|
1289
|
+
};
|
|
1290
|
+
type SortingOptionsType = {
|
|
1291
|
+
id: string;
|
|
1292
|
+
name: string;
|
|
1293
|
+
};
|
|
1294
|
+
interface FuiTableColumnType$1<T extends RowDataType> {
|
|
1295
|
+
id: string;
|
|
1296
|
+
Header: string;
|
|
1297
|
+
accessorFn: (row: T) => React.ReactNode | string | null;
|
|
1298
|
+
disableSortBy?: boolean;
|
|
1299
|
+
}
|
|
1300
|
+
interface TableProps<T extends RowDataType> {
|
|
1301
|
+
/**
|
|
1302
|
+
* How large should the button be?
|
|
1303
|
+
*/
|
|
1304
|
+
data: CoreOptions<T>['data'];
|
|
1305
|
+
columns: FuiTableColumnType$1<T>[];
|
|
1306
|
+
count?: number;
|
|
1307
|
+
pageSize?: number;
|
|
1308
|
+
pageIndex?: number;
|
|
1309
|
+
sortingHeading?: string;
|
|
1310
|
+
enableSorting?: boolean;
|
|
1311
|
+
sortingOptions?: SortingOptionsType[][];
|
|
1312
|
+
sortingValues?: string[];
|
|
1313
|
+
onSortingOptionSelect?: (option: string[]) => void;
|
|
1314
|
+
enablePreviousPage?: boolean;
|
|
1315
|
+
enableNextPage?: boolean;
|
|
1316
|
+
isLoading?: boolean;
|
|
1317
|
+
isFetching?: boolean;
|
|
1318
|
+
showFooter?: boolean;
|
|
1319
|
+
hideColumnSettings?: boolean;
|
|
1320
|
+
hideTableOnEmpty?: boolean;
|
|
1321
|
+
hideTopPagination?: boolean;
|
|
1322
|
+
hideFilters?: boolean;
|
|
1323
|
+
showTableOnLoading?: boolean;
|
|
1324
|
+
hideLoaderOnTopPagination?: boolean;
|
|
1325
|
+
hideActions?: boolean;
|
|
1326
|
+
showWorkspaceActions?: boolean;
|
|
1327
|
+
hideSelectAllInTable?: boolean;
|
|
1328
|
+
hideBottomPagination?: boolean;
|
|
1329
|
+
disableRowSelect?: boolean;
|
|
1330
|
+
infoComponent?: React.ReactElement;
|
|
1331
|
+
filterComponent?: React.ReactElement;
|
|
1332
|
+
isDisableSortDropdown?: boolean | null;
|
|
1333
|
+
isFilterOpenByDefault?: boolean | null;
|
|
1334
|
+
emptyComponent?: React.ReactElement;
|
|
1335
|
+
actionComponent?: React.ReactElement;
|
|
1336
|
+
loadingComponent?: React.ReactElement;
|
|
1337
|
+
headerComponent?: React.ReactElement;
|
|
1338
|
+
editColumnComponent?: React.ReactElement;
|
|
1339
|
+
translationTexts?: Record<string, any> | null;
|
|
1340
|
+
onNextPageClick?: () => void;
|
|
1341
|
+
onPreviousPageClick?: () => void;
|
|
1342
|
+
onSelectAllRows?: (checked: boolean) => void;
|
|
1343
|
+
onRowSelect?: (row: T, checked: boolean) => void;
|
|
1344
|
+
rowMenuOptions?: (RowDataType: T) => MenuItemProps[];
|
|
1345
|
+
onMenuOptionSelect?: (optionId: string, row: T) => void;
|
|
1346
|
+
onRowClick?: (row: T, column: ColumnDef<T, unknown>) => void;
|
|
1347
|
+
dataKey?: string;
|
|
1348
|
+
rowPropGetter?: (row: T) => React.HTMLAttributes<HTMLTableRowElement>;
|
|
1349
|
+
cellPropGetter?: (cell: Cell<T, unknown>) => React.HTMLAttributes<HTMLTableCellElement>;
|
|
1350
|
+
/**
|
|
1351
|
+
* @deprecated
|
|
1352
|
+
*/
|
|
1353
|
+
tableOptions?: any;
|
|
1354
|
+
/**
|
|
1355
|
+
* @deprecated
|
|
1356
|
+
*/
|
|
1357
|
+
loaderStyles?: React.CSSProperties;
|
|
1358
|
+
setPageIndex?: (pageIndex: number) => void | React.Dispatch<React.SetStateAction<number>>;
|
|
1359
|
+
hiddenColumns?: string[];
|
|
1360
|
+
setHiddenColumns?: (hiddenColumns: string[]) => void | React.Dispatch<React.SetStateAction<string[]>>;
|
|
1361
|
+
columnOrder?: string[];
|
|
1362
|
+
setColumnOrder?: (columnOrder: string[]) => void | React.Dispatch<React.SetStateAction<string[]>>;
|
|
1363
|
+
selectedRowIds?: RowSelectionState;
|
|
1364
|
+
setSelectedRowIds?: (selectedRowIds: RowSelectionState) => void | React.Dispatch<React.SetStateAction<RowSelectionState>>;
|
|
1329
1365
|
}
|
|
1330
|
-
type TableSortingMenuProps<T extends DefaultMenuItemProps = DefaultMenuItemProps> = {
|
|
1331
|
-
/**
|
|
1332
|
-
* value of menu
|
|
1333
|
-
*/
|
|
1334
|
-
value?: string[];
|
|
1335
|
-
/**
|
|
1336
|
-
* Called when a menu item is selected
|
|
1337
|
-
*/
|
|
1338
|
-
onSelect?: (value?: string[]) => void;
|
|
1339
|
-
/**
|
|
1340
|
-
* options for menu button
|
|
1341
|
-
*/
|
|
1342
|
-
options?: T[][];
|
|
1343
|
-
/**
|
|
1344
|
-
* The children or label
|
|
1345
|
-
*/
|
|
1346
|
-
trigger: React.ReactNode | string;
|
|
1347
|
-
/**
|
|
1348
|
-
* Is the button inline
|
|
1349
|
-
* @deprecated
|
|
1350
|
-
*/
|
|
1351
|
-
highlightedIndex?: number | null;
|
|
1352
|
-
/**
|
|
1353
|
-
* id Accessor of menu
|
|
1354
|
-
*/
|
|
1355
|
-
idAccessor?: string;
|
|
1356
|
-
/**
|
|
1357
|
-
* name Accessor of menu
|
|
1358
|
-
*/
|
|
1359
|
-
nameAccessor?: string;
|
|
1360
|
-
isDisableSortDropdown?: boolean;
|
|
1361
|
-
};
|
|
1362
1366
|
|
|
1363
|
-
/**
|
|
1364
|
-
* Table component is used to display data in a tabular format. It is used to show data in a structured manner. It can be used to show data in a grid format.
|
|
1365
|
-
*/
|
|
1367
|
+
/**
|
|
1368
|
+
* Table component is used to display data in a tabular format. It is used to show data in a structured manner. It can be used to show data in a grid format.
|
|
1369
|
+
*/
|
|
1366
1370
|
declare const Table: <T extends RowDataType = RowDataType>(props: TableProps<T>) => react__default.JSX.Element;
|
|
1367
1371
|
|
|
1368
|
-
declare const TabsRoot: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<Omit<Tabs$1.TabsProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1369
|
-
ref?: ((instance: HTMLDivElement | null) => void) | react.RefObject<HTMLDivElement> | null | undefined;
|
|
1370
|
-
}, never>> & Omit<react.ForwardRefExoticComponent<Tabs$1.TabsProps & react.RefAttributes<HTMLDivElement>>, keyof react.Component<any, {}, any>>;
|
|
1371
|
-
declare const TabsContent: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<Omit<Tabs$1.TabsContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1372
|
-
ref?: ((instance: HTMLDivElement | null) => void) | react.RefObject<HTMLDivElement> | null | undefined;
|
|
1373
|
-
}, never>> & Omit<react.ForwardRefExoticComponent<Tabs$1.TabsContentProps & react.RefAttributes<HTMLDivElement>>, keyof react.Component<any, {}, any>>;
|
|
1374
|
-
declare const TabsList: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<Omit<Tabs$1.TabsListProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1375
|
-
ref?: ((instance: HTMLDivElement | null) => void) | react.RefObject<HTMLDivElement> | null | undefined;
|
|
1376
|
-
}, never>> & Omit<react.ForwardRefExoticComponent<Tabs$1.TabsListProps & react.RefAttributes<HTMLDivElement>>, keyof react.Component<any, {}, any>>;
|
|
1377
|
-
declare const TabsTrigger: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<Omit<Tabs$1.TabsTriggerProps & react.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
1378
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | react.RefObject<HTMLButtonElement> | null | undefined;
|
|
1372
|
+
declare const TabsRoot: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<Omit<Tabs$1.TabsProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1373
|
+
ref?: ((instance: HTMLDivElement | null) => void) | react.RefObject<HTMLDivElement> | null | undefined;
|
|
1374
|
+
}, never>> & Omit<react.ForwardRefExoticComponent<Tabs$1.TabsProps & react.RefAttributes<HTMLDivElement>>, keyof react.Component<any, {}, any>>;
|
|
1375
|
+
declare const TabsContent: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<Omit<Tabs$1.TabsContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1376
|
+
ref?: ((instance: HTMLDivElement | null) => void) | react.RefObject<HTMLDivElement> | null | undefined;
|
|
1377
|
+
}, never>> & Omit<react.ForwardRefExoticComponent<Tabs$1.TabsContentProps & react.RefAttributes<HTMLDivElement>>, keyof react.Component<any, {}, any>>;
|
|
1378
|
+
declare const TabsList: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<Omit<Tabs$1.TabsListProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1379
|
+
ref?: ((instance: HTMLDivElement | null) => void) | react.RefObject<HTMLDivElement> | null | undefined;
|
|
1380
|
+
}, never>> & Omit<react.ForwardRefExoticComponent<Tabs$1.TabsListProps & react.RefAttributes<HTMLDivElement>>, keyof react.Component<any, {}, any>>;
|
|
1381
|
+
declare const TabsTrigger: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<Omit<Tabs$1.TabsTriggerProps & react.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
1382
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | react.RefObject<HTMLButtonElement> | null | undefined;
|
|
1379
1383
|
}, never>> & Omit<react.ForwardRefExoticComponent<Tabs$1.TabsTriggerProps & react.RefAttributes<HTMLButtonElement>>, keyof react.Component<any, {}, any>>;
|
|
1380
1384
|
|
|
1381
|
-
interface TabsItemProps {
|
|
1382
|
-
id: string;
|
|
1383
|
-
name: string;
|
|
1384
|
-
hide?: boolean;
|
|
1385
|
-
disabled?: boolean;
|
|
1386
|
-
[key: string]: any;
|
|
1387
|
-
}
|
|
1388
|
-
type TabsProps<T extends TabsItemProps = TabsItemProps> = {
|
|
1389
|
-
/**
|
|
1390
|
-
* options for Tabs
|
|
1391
|
-
*/
|
|
1392
|
-
options?: Array<T>;
|
|
1393
|
-
renderTabsContent?: (tabOption: T) => React.ReactNode;
|
|
1394
|
-
/**
|
|
1395
|
-
* Id accessor of tabes
|
|
1396
|
-
*/
|
|
1397
|
-
idAccessor?: string;
|
|
1398
|
-
label?: string;
|
|
1399
|
-
/**
|
|
1400
|
-
* Name accessor of tabs
|
|
1401
|
-
*/
|
|
1402
|
-
nameAccessor?: string;
|
|
1403
|
-
/**
|
|
1404
|
-
* Disabled accessor of tabs
|
|
1405
|
-
*/
|
|
1406
|
-
disabledAccessor?: string;
|
|
1407
|
-
ref?: React.RefObject<HTMLDivElement>;
|
|
1408
|
-
/**
|
|
1409
|
-
* value for tabs
|
|
1410
|
-
*/
|
|
1411
|
-
value?: TabsProps$1['value'];
|
|
1412
|
-
/**
|
|
1413
|
-
* default value of tabes
|
|
1414
|
-
*/
|
|
1415
|
-
defaultValue?: TabsProps$1['defaultValue'];
|
|
1416
|
-
/**
|
|
1417
|
-
* Function to be called when the selected item changes
|
|
1418
|
-
*/
|
|
1419
|
-
onChange?: TabsProps$1['onValueChange'];
|
|
1385
|
+
interface TabsItemProps {
|
|
1386
|
+
id: string;
|
|
1387
|
+
name: string;
|
|
1388
|
+
hide?: boolean;
|
|
1389
|
+
disabled?: boolean;
|
|
1390
|
+
[key: string]: any;
|
|
1391
|
+
}
|
|
1392
|
+
type TabsProps<T extends TabsItemProps = TabsItemProps> = {
|
|
1393
|
+
/**
|
|
1394
|
+
* options for Tabs
|
|
1395
|
+
*/
|
|
1396
|
+
options?: Array<T>;
|
|
1397
|
+
renderTabsContent?: (tabOption: T) => React.ReactNode;
|
|
1398
|
+
/**
|
|
1399
|
+
* Id accessor of tabes
|
|
1400
|
+
*/
|
|
1401
|
+
idAccessor?: string;
|
|
1402
|
+
label?: string;
|
|
1403
|
+
/**
|
|
1404
|
+
* Name accessor of tabs
|
|
1405
|
+
*/
|
|
1406
|
+
nameAccessor?: string;
|
|
1407
|
+
/**
|
|
1408
|
+
* Disabled accessor of tabs
|
|
1409
|
+
*/
|
|
1410
|
+
disabledAccessor?: string;
|
|
1411
|
+
ref?: React.RefObject<HTMLDivElement>;
|
|
1412
|
+
/**
|
|
1413
|
+
* value for tabs
|
|
1414
|
+
*/
|
|
1415
|
+
value?: TabsProps$1['value'];
|
|
1416
|
+
/**
|
|
1417
|
+
* default value of tabes
|
|
1418
|
+
*/
|
|
1419
|
+
defaultValue?: TabsProps$1['defaultValue'];
|
|
1420
|
+
/**
|
|
1421
|
+
* Function to be called when the selected item changes
|
|
1422
|
+
*/
|
|
1423
|
+
onChange?: TabsProps$1['onValueChange'];
|
|
1420
1424
|
};
|
|
1421
1425
|
|
|
1422
|
-
/**
|
|
1423
|
-
* Tabs component is used to show a set of tabs to the user. It is used to show different sections of content in a single view. It can be used to show different categories of content.
|
|
1424
|
-
*/
|
|
1426
|
+
/**
|
|
1427
|
+
* Tabs component is used to show a set of tabs to the user. It is used to show different sections of content in a single view. It can be used to show different categories of content.
|
|
1428
|
+
*/
|
|
1425
1429
|
declare const Tabs: <T extends TabsItemProps>({ options, idAccessor, nameAccessor, disabledAccessor, onChange, defaultValue, label, renderTabsContent, value, }: TabsProps<T>) => react__default.JSX.Element;
|
|
1426
1430
|
|
|
1427
|
-
interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
1428
|
-
/**
|
|
1429
|
-
* State of the tag
|
|
1430
|
-
*/
|
|
1431
|
-
state?: 'error' | 'default' | 'transparent';
|
|
1432
|
-
/**
|
|
1433
|
-
* Show border around the tag
|
|
1434
|
-
*/
|
|
1435
|
-
showBorder?: boolean;
|
|
1436
|
-
/**
|
|
1437
|
-
* Show border around the tag
|
|
1438
|
-
*/
|
|
1439
|
-
hideClose?: boolean;
|
|
1440
|
-
/**
|
|
1441
|
-
* Image source for the avatar
|
|
1442
|
-
*/
|
|
1443
|
-
avatarImgSrc?: string;
|
|
1444
|
-
/**
|
|
1445
|
-
* Image alt for the avatar
|
|
1446
|
-
*/
|
|
1447
|
-
avatarImgAlt?: string;
|
|
1448
|
-
/**
|
|
1449
|
-
* Text for the avatar
|
|
1450
|
-
*/
|
|
1451
|
-
avatarText?: string;
|
|
1452
|
-
/**
|
|
1453
|
-
* Function to be called when the tag is closed
|
|
1454
|
-
*/
|
|
1455
|
-
onClose?: React.MouseEventHandler<HTMLButtonElement>;
|
|
1456
|
-
/**
|
|
1457
|
-
* Children of the tag
|
|
1458
|
-
*/
|
|
1459
|
-
children?: React.ReactNode;
|
|
1460
|
-
/**
|
|
1461
|
-
* Props for the icon
|
|
1462
|
-
*/
|
|
1463
|
-
iconProps?: React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
1464
|
-
iconSVGProps?: React.SVGProps<SVGSVGElement>;
|
|
1465
|
-
style?: React.CSSProperties;
|
|
1431
|
+
interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
1432
|
+
/**
|
|
1433
|
+
* State of the tag
|
|
1434
|
+
*/
|
|
1435
|
+
state?: 'error' | 'default' | 'transparent';
|
|
1436
|
+
/**
|
|
1437
|
+
* Show border around the tag
|
|
1438
|
+
*/
|
|
1439
|
+
showBorder?: boolean;
|
|
1440
|
+
/**
|
|
1441
|
+
* Show border around the tag
|
|
1442
|
+
*/
|
|
1443
|
+
hideClose?: boolean;
|
|
1444
|
+
/**
|
|
1445
|
+
* Image source for the avatar
|
|
1446
|
+
*/
|
|
1447
|
+
avatarImgSrc?: string;
|
|
1448
|
+
/**
|
|
1449
|
+
* Image alt for the avatar
|
|
1450
|
+
*/
|
|
1451
|
+
avatarImgAlt?: string;
|
|
1452
|
+
/**
|
|
1453
|
+
* Text for the avatar
|
|
1454
|
+
*/
|
|
1455
|
+
avatarText?: string;
|
|
1456
|
+
/**
|
|
1457
|
+
* Function to be called when the tag is closed
|
|
1458
|
+
*/
|
|
1459
|
+
onClose?: React.MouseEventHandler<HTMLButtonElement>;
|
|
1460
|
+
/**
|
|
1461
|
+
* Children of the tag
|
|
1462
|
+
*/
|
|
1463
|
+
children?: React.ReactNode;
|
|
1464
|
+
/**
|
|
1465
|
+
* Props for the icon
|
|
1466
|
+
*/
|
|
1467
|
+
iconProps?: React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
1468
|
+
iconSVGProps?: React.SVGProps<SVGSVGElement>;
|
|
1469
|
+
style?: React.CSSProperties;
|
|
1466
1470
|
}
|
|
1467
1471
|
|
|
1468
|
-
/**
|
|
1469
|
-
* Tag component is used to show a tag to the user. It is used to show a label or a category
|
|
1470
|
-
*/
|
|
1472
|
+
/**
|
|
1473
|
+
* Tag component is used to show a tag to the user. It is used to show a label or a category
|
|
1474
|
+
*/
|
|
1471
1475
|
declare const Tag: react__default.ForwardRefExoticComponent<TagProps & react__default.RefAttributes<HTMLSpanElement>>;
|
|
1472
1476
|
|
|
1473
|
-
type TypographyWeightType = 'regular' | 'bold' | 'semi-bold';
|
|
1474
|
-
type TypographyVariantType = 'primary' | 'secondary' | 'heading' | 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'caption';
|
|
1475
|
-
interface TypographyProps extends React.HtmlHTMLAttributes<HTMLSpanElement> {
|
|
1476
|
-
/**
|
|
1477
|
-
* The children or label
|
|
1478
|
-
*/
|
|
1479
|
-
children?: React.ReactNode | string;
|
|
1480
|
-
variant?: TypographyVariantType;
|
|
1481
|
-
weight?: TypographyWeightType;
|
|
1477
|
+
type TypographyWeightType = 'regular' | 'bold' | 'semi-bold';
|
|
1478
|
+
type TypographyVariantType = 'primary' | 'secondary' | 'heading' | 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'caption';
|
|
1479
|
+
interface TypographyProps extends React.HtmlHTMLAttributes<HTMLSpanElement> {
|
|
1480
|
+
/**
|
|
1481
|
+
* The children or label
|
|
1482
|
+
*/
|
|
1483
|
+
children?: React.ReactNode | string;
|
|
1484
|
+
variant?: TypographyVariantType;
|
|
1485
|
+
weight?: TypographyWeightType;
|
|
1482
1486
|
}
|
|
1483
1487
|
|
|
1484
|
-
type BreakpointKeys = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
1485
|
-
type UiUnits = 'px' | 'rem' | 'em' | '%';
|
|
1486
|
-
interface Breakpoints {
|
|
1487
|
-
keys: BreakpointKeys[];
|
|
1488
|
-
values: Record<BreakpointKeys, number>;
|
|
1489
|
-
unit: UiUnits;
|
|
1490
|
-
}
|
|
1491
|
-
interface TextColorSemantics {
|
|
1492
|
-
success: string;
|
|
1493
|
-
warning: string;
|
|
1494
|
-
error: string;
|
|
1495
|
-
info: string;
|
|
1496
|
-
}
|
|
1497
|
-
interface TextColors {
|
|
1498
|
-
primary: string;
|
|
1499
|
-
link: string;
|
|
1500
|
-
secondary: string;
|
|
1501
|
-
disabled: string;
|
|
1502
|
-
placeholder: string;
|
|
1503
|
-
error: string;
|
|
1504
|
-
inverse: string;
|
|
1505
|
-
semantic: TextColorSemantics;
|
|
1506
|
-
}
|
|
1507
|
-
interface FillColors {
|
|
1508
|
-
base: string;
|
|
1509
|
-
medium: string;
|
|
1510
|
-
dark: string;
|
|
1511
|
-
surface: string;
|
|
1512
|
-
inverse: string;
|
|
1513
|
-
hover: string;
|
|
1514
|
-
disabled: string;
|
|
1515
|
-
hilight: string;
|
|
1516
|
-
}
|
|
1517
|
-
interface SemanticColorsType {
|
|
1518
|
-
bg: string;
|
|
1519
|
-
border: string;
|
|
1520
|
-
}
|
|
1521
|
-
interface SemanticColors {
|
|
1522
|
-
error: SemanticColorsType;
|
|
1523
|
-
warning: SemanticColorsType;
|
|
1524
|
-
info: SemanticColorsType;
|
|
1525
|
-
success: SemanticColorsType;
|
|
1526
|
-
}
|
|
1527
|
-
interface BorderColors {
|
|
1528
|
-
light: string;
|
|
1529
|
-
normal: string;
|
|
1530
|
-
divider: string;
|
|
1531
|
-
hover: string;
|
|
1532
|
-
active: string;
|
|
1533
|
-
disabled: string;
|
|
1534
|
-
error: string;
|
|
1535
|
-
}
|
|
1536
|
-
interface CommonColors {
|
|
1537
|
-
accent: string;
|
|
1538
|
-
black: string;
|
|
1539
|
-
white: string;
|
|
1540
|
-
}
|
|
1541
|
-
interface Colors {
|
|
1542
|
-
common: CommonColors;
|
|
1543
|
-
text: TextColors;
|
|
1544
|
-
fill: FillColors;
|
|
1545
|
-
semantic: SemanticColors;
|
|
1546
|
-
border: BorderColors;
|
|
1547
|
-
shadow: string;
|
|
1548
|
-
scrim: string;
|
|
1549
|
-
}
|
|
1550
|
-
interface BaseTypography {
|
|
1551
|
-
fontSize?: React.CSSProperties['fontSize'];
|
|
1552
|
-
fontWeight?: React.CSSProperties['fontWeight'];
|
|
1553
|
-
lineHeight?: React.CSSProperties['lineHeight'];
|
|
1554
|
-
}
|
|
1555
|
-
interface FuiTypography {
|
|
1556
|
-
fontFamily: React.CSSProperties['fontFamily'];
|
|
1557
|
-
fontWeight: Record<TypographyWeightType, React.CSSProperties['fontWeight']>;
|
|
1558
|
-
primary: BaseTypography;
|
|
1559
|
-
secondary: BaseTypography;
|
|
1560
|
-
heading: BaseTypography;
|
|
1561
|
-
heading4: BaseTypography;
|
|
1562
|
-
heading3: BaseTypography;
|
|
1563
|
-
heading2: BaseTypography;
|
|
1564
|
-
heading1: BaseTypography;
|
|
1565
|
-
caption: BaseTypography;
|
|
1566
|
-
}
|
|
1567
|
-
interface Easing {
|
|
1568
|
-
easeInOut: string;
|
|
1569
|
-
easeOut: string;
|
|
1570
|
-
easeIn: string;
|
|
1571
|
-
sharp: string;
|
|
1572
|
-
}
|
|
1573
|
-
interface Duration {
|
|
1574
|
-
short: string;
|
|
1575
|
-
standard: string;
|
|
1576
|
-
complex: string;
|
|
1577
|
-
}
|
|
1578
|
-
interface Transitions {
|
|
1579
|
-
easing: Easing;
|
|
1580
|
-
duration: Duration;
|
|
1581
|
-
}
|
|
1582
|
-
interface ZIndex {
|
|
1583
|
-
popover: number;
|
|
1584
|
-
dropdown: number;
|
|
1585
|
-
mobileStepper: number;
|
|
1586
|
-
fab: number;
|
|
1587
|
-
speedDial: number;
|
|
1588
|
-
appBar: number;
|
|
1589
|
-
drawer: number;
|
|
1590
|
-
modal: number;
|
|
1591
|
-
snackbar: number;
|
|
1592
|
-
tooltip: number;
|
|
1593
|
-
}
|
|
1594
|
-
interface FreemiumUiButtonTheme {
|
|
1595
|
-
backgroundFrom: string;
|
|
1596
|
-
backgroundTo: string;
|
|
1597
|
-
color: string;
|
|
1598
|
-
disabledColor: string;
|
|
1599
|
-
activeBackgroundColor: string;
|
|
1600
|
-
hoverColor: string;
|
|
1601
|
-
borderColor: string;
|
|
1602
|
-
activeBorderColor: string;
|
|
1603
|
-
disabledBorderColor: string;
|
|
1604
|
-
disabledBackgroundFrom: string;
|
|
1605
|
-
disabledBackgroundTo: string;
|
|
1606
|
-
}
|
|
1607
|
-
interface FreemiumUiTheme {
|
|
1608
|
-
mode: 'light' | 'dark';
|
|
1609
|
-
direction: 'ltr' | 'rtl';
|
|
1610
|
-
breakpoints: Breakpoints;
|
|
1611
|
-
colors: Colors;
|
|
1612
|
-
typography: FuiTypography;
|
|
1613
|
-
shadows?: string[] | null;
|
|
1614
|
-
transitions: Transitions;
|
|
1615
|
-
zIndex: ZIndex;
|
|
1616
|
-
components: {
|
|
1617
|
-
toast: {
|
|
1618
|
-
position: Extract<CSSProperties['alignItems'], 'end' | 'start' | 'center'>;
|
|
1619
|
-
};
|
|
1620
|
-
button: {
|
|
1621
|
-
primary: FreemiumUiButtonTheme;
|
|
1622
|
-
secondary: FreemiumUiButtonTheme;
|
|
1623
|
-
danger: FreemiumUiButtonTheme;
|
|
1624
|
-
link: FreemiumUiButtonTheme;
|
|
1625
|
-
};
|
|
1626
|
-
};
|
|
1488
|
+
type BreakpointKeys = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
1489
|
+
type UiUnits = 'px' | 'rem' | 'em' | '%';
|
|
1490
|
+
interface Breakpoints {
|
|
1491
|
+
keys: BreakpointKeys[];
|
|
1492
|
+
values: Record<BreakpointKeys, number>;
|
|
1493
|
+
unit: UiUnits;
|
|
1494
|
+
}
|
|
1495
|
+
interface TextColorSemantics {
|
|
1496
|
+
success: string;
|
|
1497
|
+
warning: string;
|
|
1498
|
+
error: string;
|
|
1499
|
+
info: string;
|
|
1500
|
+
}
|
|
1501
|
+
interface TextColors {
|
|
1502
|
+
primary: string;
|
|
1503
|
+
link: string;
|
|
1504
|
+
secondary: string;
|
|
1505
|
+
disabled: string;
|
|
1506
|
+
placeholder: string;
|
|
1507
|
+
error: string;
|
|
1508
|
+
inverse: string;
|
|
1509
|
+
semantic: TextColorSemantics;
|
|
1510
|
+
}
|
|
1511
|
+
interface FillColors {
|
|
1512
|
+
base: string;
|
|
1513
|
+
medium: string;
|
|
1514
|
+
dark: string;
|
|
1515
|
+
surface: string;
|
|
1516
|
+
inverse: string;
|
|
1517
|
+
hover: string;
|
|
1518
|
+
disabled: string;
|
|
1519
|
+
hilight: string;
|
|
1520
|
+
}
|
|
1521
|
+
interface SemanticColorsType {
|
|
1522
|
+
bg: string;
|
|
1523
|
+
border: string;
|
|
1524
|
+
}
|
|
1525
|
+
interface SemanticColors {
|
|
1526
|
+
error: SemanticColorsType;
|
|
1527
|
+
warning: SemanticColorsType;
|
|
1528
|
+
info: SemanticColorsType;
|
|
1529
|
+
success: SemanticColorsType;
|
|
1530
|
+
}
|
|
1531
|
+
interface BorderColors {
|
|
1532
|
+
light: string;
|
|
1533
|
+
normal: string;
|
|
1534
|
+
divider: string;
|
|
1535
|
+
hover: string;
|
|
1536
|
+
active: string;
|
|
1537
|
+
disabled: string;
|
|
1538
|
+
error: string;
|
|
1539
|
+
}
|
|
1540
|
+
interface CommonColors {
|
|
1541
|
+
accent: string;
|
|
1542
|
+
black: string;
|
|
1543
|
+
white: string;
|
|
1544
|
+
}
|
|
1545
|
+
interface Colors {
|
|
1546
|
+
common: CommonColors;
|
|
1547
|
+
text: TextColors;
|
|
1548
|
+
fill: FillColors;
|
|
1549
|
+
semantic: SemanticColors;
|
|
1550
|
+
border: BorderColors;
|
|
1551
|
+
shadow: string;
|
|
1552
|
+
scrim: string;
|
|
1553
|
+
}
|
|
1554
|
+
interface BaseTypography {
|
|
1555
|
+
fontSize?: React.CSSProperties['fontSize'];
|
|
1556
|
+
fontWeight?: React.CSSProperties['fontWeight'];
|
|
1557
|
+
lineHeight?: React.CSSProperties['lineHeight'];
|
|
1558
|
+
}
|
|
1559
|
+
interface FuiTypography {
|
|
1560
|
+
fontFamily: React.CSSProperties['fontFamily'];
|
|
1561
|
+
fontWeight: Record<TypographyWeightType, React.CSSProperties['fontWeight']>;
|
|
1562
|
+
primary: BaseTypography;
|
|
1563
|
+
secondary: BaseTypography;
|
|
1564
|
+
heading: BaseTypography;
|
|
1565
|
+
heading4: BaseTypography;
|
|
1566
|
+
heading3: BaseTypography;
|
|
1567
|
+
heading2: BaseTypography;
|
|
1568
|
+
heading1: BaseTypography;
|
|
1569
|
+
caption: BaseTypography;
|
|
1570
|
+
}
|
|
1571
|
+
interface Easing {
|
|
1572
|
+
easeInOut: string;
|
|
1573
|
+
easeOut: string;
|
|
1574
|
+
easeIn: string;
|
|
1575
|
+
sharp: string;
|
|
1576
|
+
}
|
|
1577
|
+
interface Duration {
|
|
1578
|
+
short: string;
|
|
1579
|
+
standard: string;
|
|
1580
|
+
complex: string;
|
|
1581
|
+
}
|
|
1582
|
+
interface Transitions {
|
|
1583
|
+
easing: Easing;
|
|
1584
|
+
duration: Duration;
|
|
1585
|
+
}
|
|
1586
|
+
interface ZIndex {
|
|
1587
|
+
popover: number;
|
|
1588
|
+
dropdown: number;
|
|
1589
|
+
mobileStepper: number;
|
|
1590
|
+
fab: number;
|
|
1591
|
+
speedDial: number;
|
|
1592
|
+
appBar: number;
|
|
1593
|
+
drawer: number;
|
|
1594
|
+
modal: number;
|
|
1595
|
+
snackbar: number;
|
|
1596
|
+
tooltip: number;
|
|
1597
|
+
}
|
|
1598
|
+
interface FreemiumUiButtonTheme {
|
|
1599
|
+
backgroundFrom: string;
|
|
1600
|
+
backgroundTo: string;
|
|
1601
|
+
color: string;
|
|
1602
|
+
disabledColor: string;
|
|
1603
|
+
activeBackgroundColor: string;
|
|
1604
|
+
hoverColor: string;
|
|
1605
|
+
borderColor: string;
|
|
1606
|
+
activeBorderColor: string;
|
|
1607
|
+
disabledBorderColor: string;
|
|
1608
|
+
disabledBackgroundFrom: string;
|
|
1609
|
+
disabledBackgroundTo: string;
|
|
1610
|
+
}
|
|
1611
|
+
interface FreemiumUiTheme {
|
|
1612
|
+
mode: 'light' | 'dark';
|
|
1613
|
+
direction: 'ltr' | 'rtl';
|
|
1614
|
+
breakpoints: Breakpoints;
|
|
1615
|
+
colors: Colors;
|
|
1616
|
+
typography: FuiTypography;
|
|
1617
|
+
shadows?: string[] | null;
|
|
1618
|
+
transitions: Transitions;
|
|
1619
|
+
zIndex: ZIndex;
|
|
1620
|
+
components: {
|
|
1621
|
+
toast: {
|
|
1622
|
+
position: Extract<CSSProperties['alignItems'], 'end' | 'start' | 'center'>;
|
|
1623
|
+
};
|
|
1624
|
+
button: {
|
|
1625
|
+
primary: FreemiumUiButtonTheme;
|
|
1626
|
+
secondary: FreemiumUiButtonTheme;
|
|
1627
|
+
danger: FreemiumUiButtonTheme;
|
|
1628
|
+
link: FreemiumUiButtonTheme;
|
|
1629
|
+
};
|
|
1630
|
+
};
|
|
1627
1631
|
}
|
|
1628
1632
|
|
|
1629
|
-
type ThemeProviderType<Theme> = React.ComponentType<{
|
|
1630
|
-
children: React.ReactNode;
|
|
1631
|
-
theme: Theme;
|
|
1633
|
+
type ThemeProviderType<Theme> = React.ComponentType<{
|
|
1634
|
+
children: React.ReactNode;
|
|
1635
|
+
theme: Theme;
|
|
1632
1636
|
}>;
|
|
1633
1637
|
|
|
1634
1638
|
declare const ThemeProvider: ThemeProviderType<FreemiumUiTheme>;
|
|
1635
1639
|
|
|
1636
|
-
type ToastTypes = 'success' | 'warning' | 'error' | 'info';
|
|
1637
|
-
interface ToastType {
|
|
1638
|
-
/**
|
|
1639
|
-
* How large should the button be?
|
|
1640
|
-
*/
|
|
1641
|
-
text?: string | React.ReactNode;
|
|
1642
|
-
/**
|
|
1643
|
-
* How large should the button be?
|
|
1644
|
-
*/
|
|
1645
|
-
type?: ToastTypes;
|
|
1646
|
-
/**
|
|
1647
|
-
* How large should the button be?
|
|
1648
|
-
*/
|
|
1649
|
-
delay?: number;
|
|
1650
|
-
/**
|
|
1651
|
-
* How large should the button be?
|
|
1652
|
-
*/
|
|
1653
|
-
customIcon?: React.ReactNode;
|
|
1654
|
-
/**
|
|
1655
|
-
* fixed toast on the screen
|
|
1656
|
-
* @default false
|
|
1657
|
-
*
|
|
1658
|
-
*/
|
|
1659
|
-
fixed?: boolean;
|
|
1660
|
-
/**
|
|
1661
|
-
* shows progress bar in the toast
|
|
1662
|
-
* takes delay as the duration
|
|
1663
|
-
* @default false
|
|
1664
|
-
*/
|
|
1665
|
-
showProgress?: boolean;
|
|
1666
|
-
}
|
|
1667
|
-
type ToastWithID = ToastType & {
|
|
1668
|
-
id: string;
|
|
1669
|
-
};
|
|
1670
|
-
type ToastItemProps = ToastWithID & {
|
|
1671
|
-
index: number;
|
|
1672
|
-
};
|
|
1673
|
-
type UpdateToastsFunction<T> = (fn: (toasts: Array<T>) => Array<T>) => void;
|
|
1674
|
-
interface ToastContextType {
|
|
1675
|
-
toasts: Array<ToastWithID>;
|
|
1676
|
-
windowState: 'focus' | 'blur';
|
|
1677
|
-
retainOnWindowBlur?: boolean;
|
|
1678
|
-
retainOnHover?: boolean;
|
|
1679
|
-
addToast: (toast: ToastType) => void;
|
|
1680
|
-
updateToasts: (fn: (oldToasts: ToastWithID[]) => ToastWithID[]) => void;
|
|
1640
|
+
type ToastTypes = 'success' | 'warning' | 'error' | 'info';
|
|
1641
|
+
interface ToastType {
|
|
1642
|
+
/**
|
|
1643
|
+
* How large should the button be?
|
|
1644
|
+
*/
|
|
1645
|
+
text?: string | React.ReactNode;
|
|
1646
|
+
/**
|
|
1647
|
+
* How large should the button be?
|
|
1648
|
+
*/
|
|
1649
|
+
type?: ToastTypes;
|
|
1650
|
+
/**
|
|
1651
|
+
* How large should the button be?
|
|
1652
|
+
*/
|
|
1653
|
+
delay?: number;
|
|
1654
|
+
/**
|
|
1655
|
+
* How large should the button be?
|
|
1656
|
+
*/
|
|
1657
|
+
customIcon?: React.ReactNode;
|
|
1658
|
+
/**
|
|
1659
|
+
* fixed toast on the screen
|
|
1660
|
+
* @default false
|
|
1661
|
+
*
|
|
1662
|
+
*/
|
|
1663
|
+
fixed?: boolean;
|
|
1664
|
+
/**
|
|
1665
|
+
* shows progress bar in the toast
|
|
1666
|
+
* takes delay as the duration
|
|
1667
|
+
* @default false
|
|
1668
|
+
*/
|
|
1669
|
+
showProgress?: boolean;
|
|
1670
|
+
}
|
|
1671
|
+
type ToastWithID = ToastType & {
|
|
1672
|
+
id: string;
|
|
1673
|
+
};
|
|
1674
|
+
type ToastItemProps = ToastWithID & {
|
|
1675
|
+
index: number;
|
|
1676
|
+
};
|
|
1677
|
+
type UpdateToastsFunction<T> = (fn: (toasts: Array<T>) => Array<T>) => void;
|
|
1678
|
+
interface ToastContextType {
|
|
1679
|
+
toasts: Array<ToastWithID>;
|
|
1680
|
+
windowState: 'focus' | 'blur';
|
|
1681
|
+
retainOnWindowBlur?: boolean;
|
|
1682
|
+
retainOnHover?: boolean;
|
|
1683
|
+
addToast: (toast: ToastType) => void;
|
|
1684
|
+
updateToasts: (fn: (oldToasts: ToastWithID[]) => ToastWithID[]) => void;
|
|
1681
1685
|
}
|
|
1682
1686
|
|
|
1683
|
-
interface ToastProviderProps extends Pick<ToastContextType, 'retainOnHover' | 'retainOnWindowBlur'> {
|
|
1684
|
-
children: react__default.ReactNode;
|
|
1685
|
-
}
|
|
1687
|
+
interface ToastProviderProps extends Pick<ToastContextType, 'retainOnHover' | 'retainOnWindowBlur'> {
|
|
1688
|
+
children: react__default.ReactNode;
|
|
1689
|
+
}
|
|
1686
1690
|
declare const ToastProvider: ({ children, retainOnHover, retainOnWindowBlur, }: ToastProviderProps) => react__default.JSX.Element;
|
|
1687
1691
|
|
|
1688
|
-
/**
|
|
1689
|
-
* useToasts is a custom hook that returns the toasts and a function to add a new toast.
|
|
1690
|
-
*/
|
|
1692
|
+
/**
|
|
1693
|
+
* useToasts is a custom hook that returns the toasts and a function to add a new toast.
|
|
1694
|
+
*/
|
|
1691
1695
|
declare const useToasts: () => [ToastWithID[], (t: ToastType) => void, () => void];
|
|
1692
1696
|
|
|
1693
|
-
type ToggleSizes = 'sm' | 'md' | 'lg';
|
|
1694
|
-
interface ToggleProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
1695
|
-
/**
|
|
1696
|
-
* The position of the tooltip
|
|
1697
|
-
*/
|
|
1698
|
-
on?: boolean;
|
|
1699
|
-
handleChange?: (on: boolean) => void;
|
|
1700
|
-
/**
|
|
1701
|
-
* Is the button inline
|
|
1702
|
-
*/
|
|
1703
|
-
size?: ToggleSizes;
|
|
1704
|
-
/**
|
|
1705
|
-
* Is hasIcon enabled?
|
|
1706
|
-
*/
|
|
1707
|
-
hasIcon?: boolean;
|
|
1708
|
-
thumbProps?: React.HTMLAttributes<HTMLSpanElement>;
|
|
1709
|
-
/**
|
|
1710
|
-
* Is this a required field?
|
|
1711
|
-
*/
|
|
1712
|
-
isRequired?: boolean;
|
|
1713
|
-
/**
|
|
1714
|
-
* Is this a error field?
|
|
1715
|
-
*/
|
|
1716
|
-
isErrored?: boolean;
|
|
1697
|
+
type ToggleSizes = 'sm' | 'md' | 'lg';
|
|
1698
|
+
interface ToggleProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
1699
|
+
/**
|
|
1700
|
+
* The position of the tooltip
|
|
1701
|
+
*/
|
|
1702
|
+
on?: boolean;
|
|
1703
|
+
handleChange?: (on: boolean) => void;
|
|
1704
|
+
/**
|
|
1705
|
+
* Is the button inline
|
|
1706
|
+
*/
|
|
1707
|
+
size?: ToggleSizes;
|
|
1708
|
+
/**
|
|
1709
|
+
* Is hasIcon enabled?
|
|
1710
|
+
*/
|
|
1711
|
+
hasIcon?: boolean;
|
|
1712
|
+
thumbProps?: React.HTMLAttributes<HTMLSpanElement>;
|
|
1713
|
+
/**
|
|
1714
|
+
* Is this a required field?
|
|
1715
|
+
*/
|
|
1716
|
+
isRequired?: boolean;
|
|
1717
|
+
/**
|
|
1718
|
+
* Is this a error field?
|
|
1719
|
+
*/
|
|
1720
|
+
isErrored?: boolean;
|
|
1717
1721
|
}
|
|
1718
1722
|
|
|
1719
|
-
/**
|
|
1720
|
-
* Toggle component is used to show a toggle to the user. It is used to show a switch to the user. It can be used to show a switch to the user.
|
|
1721
|
-
*/
|
|
1723
|
+
/**
|
|
1724
|
+
* Toggle component is used to show a toggle to the user. It is used to show a switch to the user. It can be used to show a switch to the user.
|
|
1725
|
+
*/
|
|
1722
1726
|
declare const Toggle: ({ handleChange, hasIcon, on, isErrored, isRequired, size, thumbProps, ...rest }: ToggleProps) => react__default.JSX.Element;
|
|
1723
1727
|
|
|
1724
|
-
type TooltipPosition = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
|
|
1725
|
-
type TooltipSide = 'top' | 'right' | 'bottom' | 'left';
|
|
1726
|
-
type TooltipAlign = 'start' | 'end' | 'center';
|
|
1727
|
-
interface TooltipProps {
|
|
1728
|
-
/**
|
|
1729
|
-
* HTML to be rendered in the tooltip
|
|
1730
|
-
*/
|
|
1731
|
-
html?: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
1732
|
-
/**
|
|
1733
|
-
* String to be rendered in the tooltip
|
|
1734
|
-
*/
|
|
1735
|
-
label?: string;
|
|
1736
|
-
/**
|
|
1737
|
-
* The position of the tooltip
|
|
1738
|
-
*/
|
|
1739
|
-
position: TooltipPosition;
|
|
1740
|
-
delay?: number;
|
|
1741
|
-
/**
|
|
1742
|
-
* Whether to show the arrow,
|
|
1743
|
-
*/
|
|
1744
|
-
arrow?: boolean;
|
|
1745
|
-
/**
|
|
1746
|
-
* Whether disabled select
|
|
1747
|
-
*/
|
|
1748
|
-
disabled?: boolean;
|
|
1749
|
-
/**
|
|
1750
|
-
* Class name of tooltip
|
|
1751
|
-
*/
|
|
1752
|
-
className?: string;
|
|
1753
|
-
style?: React.CSSProperties;
|
|
1754
|
-
/**
|
|
1755
|
-
* The children or label
|
|
1756
|
-
*/
|
|
1757
|
-
replaceChild?: boolean;
|
|
1758
|
-
tabIndex?: number;
|
|
1759
|
-
children?: React.ReactNode | string | null;
|
|
1760
|
-
providerProps?: TooltipProviderProps;
|
|
1761
|
-
rootProps?: TooltipProps$1;
|
|
1762
|
-
arrowProps?: TooltipArrowProps;
|
|
1728
|
+
type TooltipPosition = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
|
|
1729
|
+
type TooltipSide = 'top' | 'right' | 'bottom' | 'left';
|
|
1730
|
+
type TooltipAlign = 'start' | 'end' | 'center';
|
|
1731
|
+
interface TooltipProps {
|
|
1732
|
+
/**
|
|
1733
|
+
* HTML to be rendered in the tooltip
|
|
1734
|
+
*/
|
|
1735
|
+
html?: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
1736
|
+
/**
|
|
1737
|
+
* String to be rendered in the tooltip
|
|
1738
|
+
*/
|
|
1739
|
+
label?: string;
|
|
1740
|
+
/**
|
|
1741
|
+
* The position of the tooltip
|
|
1742
|
+
*/
|
|
1743
|
+
position: TooltipPosition;
|
|
1744
|
+
delay?: number;
|
|
1745
|
+
/**
|
|
1746
|
+
* Whether to show the arrow,
|
|
1747
|
+
*/
|
|
1748
|
+
arrow?: boolean;
|
|
1749
|
+
/**
|
|
1750
|
+
* Whether disabled select
|
|
1751
|
+
*/
|
|
1752
|
+
disabled?: boolean;
|
|
1753
|
+
/**
|
|
1754
|
+
* Class name of tooltip
|
|
1755
|
+
*/
|
|
1756
|
+
className?: string;
|
|
1757
|
+
style?: React.CSSProperties;
|
|
1758
|
+
/**
|
|
1759
|
+
* The children or label
|
|
1760
|
+
*/
|
|
1761
|
+
replaceChild?: boolean;
|
|
1762
|
+
tabIndex?: number;
|
|
1763
|
+
children?: React.ReactNode | string | null;
|
|
1764
|
+
providerProps?: TooltipProviderProps;
|
|
1765
|
+
rootProps?: TooltipProps$1;
|
|
1766
|
+
arrowProps?: TooltipArrowProps;
|
|
1763
1767
|
}
|
|
1764
1768
|
|
|
1765
|
-
/**
|
|
1766
|
-
* Tooltip component is used to show a tooltip to the user.
|
|
1767
|
-
* It is used to show additional information or actions.
|
|
1768
|
-
* It can be used to show a hint, a warning, or any other content.
|
|
1769
|
-
*/
|
|
1769
|
+
/**
|
|
1770
|
+
* Tooltip component is used to show a tooltip to the user.
|
|
1771
|
+
* It is used to show additional information or actions.
|
|
1772
|
+
* It can be used to show a hint, a warning, or any other content.
|
|
1773
|
+
*/
|
|
1770
1774
|
declare const Tooltip: ({ position, label, html, style, children, className, disabled, delay, arrow, providerProps, rootProps, }: TooltipProps) => react__default.JSX.Element;
|
|
1771
1775
|
|
|
1772
|
-
/**
|
|
1773
|
-
* Typography component is used to show text to the user. It can be used to show a heading, a paragraph, or any other text.
|
|
1774
|
-
*/
|
|
1776
|
+
/**
|
|
1777
|
+
* Typography component is used to show text to the user. It can be used to show a heading, a paragraph, or any other text.
|
|
1778
|
+
*/
|
|
1775
1779
|
declare const Typography: react__default.ForwardRefExoticComponent<TypographyProps & react__default.RefAttributes<HTMLSpanElement>>;
|
|
1776
1780
|
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
setHiddenColumns?: (hiddenColumns: string[]) => void | React.Dispatch<React.SetStateAction<string[]>>;
|
|
1846
|
-
columnOrder?: string[];
|
|
1847
|
-
setColumnOrder?: (columnOrder: string[]) => void | React.Dispatch<React.SetStateAction<string[]>>;
|
|
1848
|
-
selectedRowIds?: RowSelectionState;
|
|
1849
|
-
setSelectedRowIds?: (selectedRowIds: RowSelectionState) => void | React.Dispatch<React.SetStateAction<RowSelectionState>>;
|
|
1781
|
+
type WorkspaceRowDataType = {
|
|
1782
|
+
[key in string]: any;
|
|
1783
|
+
};
|
|
1784
|
+
interface FuiTableColumnType<T extends WorkspaceRowDataType> {
|
|
1785
|
+
id: string;
|
|
1786
|
+
Header: string;
|
|
1787
|
+
accessorFn: (row: T) => React.ReactNode | string | null;
|
|
1788
|
+
disableSortBy?: boolean;
|
|
1789
|
+
}
|
|
1790
|
+
interface WorkspaceTableProps<T extends WorkspaceRowDataType> {
|
|
1791
|
+
/**
|
|
1792
|
+
* How large should the button be?
|
|
1793
|
+
*/
|
|
1794
|
+
data: CoreOptions<T>['data'];
|
|
1795
|
+
columns: FuiTableColumnType<T>[];
|
|
1796
|
+
count?: number;
|
|
1797
|
+
pageSize?: number;
|
|
1798
|
+
pageIndex?: number;
|
|
1799
|
+
enablePreviousPage?: boolean;
|
|
1800
|
+
enableNextPage?: boolean;
|
|
1801
|
+
isLoading?: boolean;
|
|
1802
|
+
isFetching?: boolean;
|
|
1803
|
+
showFooter?: boolean;
|
|
1804
|
+
hideColumnSettings?: boolean;
|
|
1805
|
+
hideTableOnEmpty?: boolean;
|
|
1806
|
+
hideTopPagination?: boolean;
|
|
1807
|
+
hideFilters?: boolean;
|
|
1808
|
+
showTableOnLoading?: boolean;
|
|
1809
|
+
hideLoaderOnTopPagination?: boolean;
|
|
1810
|
+
showWorkspaceActions?: boolean;
|
|
1811
|
+
hideSelectAllInTable?: boolean;
|
|
1812
|
+
isWSOpen?: boolean;
|
|
1813
|
+
isDisableActionMenu?: boolean;
|
|
1814
|
+
hideBottomPagination?: boolean;
|
|
1815
|
+
disableRowSelect?: boolean;
|
|
1816
|
+
infoComponent?: React.ReactElement;
|
|
1817
|
+
filterComponent?: React.ReactElement;
|
|
1818
|
+
isDisableSortDropdown?: boolean | null;
|
|
1819
|
+
isFilterOpenByDefault?: boolean | null;
|
|
1820
|
+
emptyComponent?: React.ReactElement;
|
|
1821
|
+
loadingComponent?: React.ReactElement;
|
|
1822
|
+
headerComponent?: React.ReactElement;
|
|
1823
|
+
translationTexts?: Record<string, any> | null;
|
|
1824
|
+
onNextPageClick?: () => void;
|
|
1825
|
+
onPreviousPageClick?: () => void;
|
|
1826
|
+
onSelectAllRows?: (checked: boolean) => void;
|
|
1827
|
+
onRowSelect?: (row: T, checked: boolean) => void;
|
|
1828
|
+
rowMenuOptions?: (RowDataType: T) => MenuItemProps[];
|
|
1829
|
+
onMenuOptionSelect?: (optionId: string, row: T) => void;
|
|
1830
|
+
onRowClick?: (row: T, column: ColumnDef<T, unknown>) => void;
|
|
1831
|
+
dataKey?: string;
|
|
1832
|
+
rowPropGetter?: (row: T) => React.HTMLAttributes<HTMLTableRowElement>;
|
|
1833
|
+
cellPropGetter?: (cell: Cell<T, unknown>) => React.HTMLAttributes<HTMLTableCellElement>;
|
|
1834
|
+
/**
|
|
1835
|
+
* @deprecated
|
|
1836
|
+
*/
|
|
1837
|
+
tableOptions?: any;
|
|
1838
|
+
/**
|
|
1839
|
+
* @deprecated
|
|
1840
|
+
*/
|
|
1841
|
+
loaderStyles?: React.CSSProperties;
|
|
1842
|
+
setPageIndex?: (pageIndex: number) => void | React.Dispatch<React.SetStateAction<number>>;
|
|
1843
|
+
hiddenColumns?: string[];
|
|
1844
|
+
setHiddenColumns?: (hiddenColumns: string[]) => void | React.Dispatch<React.SetStateAction<string[]>>;
|
|
1845
|
+
columnOrder?: string[];
|
|
1846
|
+
setColumnOrder?: (columnOrder: string[]) => void | React.Dispatch<React.SetStateAction<string[]>>;
|
|
1847
|
+
selectedRowIds?: RowSelectionState;
|
|
1848
|
+
setSelectedRowIds?: (selectedRowIds: RowSelectionState) => void | React.Dispatch<React.SetStateAction<RowSelectionState>>;
|
|
1850
1849
|
}
|
|
1851
1850
|
|
|
1852
|
-
/**
|
|
1853
|
-
* Table component is used to display data in a tabular format. It is used to show data in a structured manner. It can be used to show data in a grid format.
|
|
1854
|
-
*/
|
|
1851
|
+
/**
|
|
1852
|
+
* Table component is used to display data in a tabular format. It is used to show data in a structured manner. It can be used to show data in a grid format.
|
|
1853
|
+
*/
|
|
1855
1854
|
declare const WorkspaceTable: <T extends WorkspaceRowDataType = WorkspaceRowDataType>(props: WorkspaceTableProps<T>) => react__default.JSX.Element;
|
|
1856
1855
|
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
disabled?: boolean;
|
|
1862
|
-
}
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
declare const
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
smoke: string;
|
|
1877
|
-
milk: string;
|
|
1878
|
-
E900: string;
|
|
1879
|
-
E800: string;
|
|
1880
|
-
E700: string;
|
|
1881
|
-
E600: string;
|
|
1882
|
-
E500: string;
|
|
1883
|
-
E400: string;
|
|
1884
|
-
E300: string;
|
|
1885
|
-
E200: string;
|
|
1886
|
-
E100: string;
|
|
1887
|
-
E50: string;
|
|
1888
|
-
S900: string;
|
|
1889
|
-
S800: string;
|
|
1890
|
-
S700: string;
|
|
1891
|
-
S600: string;
|
|
1892
|
-
S500: string;
|
|
1893
|
-
S400: string;
|
|
1894
|
-
S300: string;
|
|
1895
|
-
S200: string;
|
|
1896
|
-
S100: string;
|
|
1897
|
-
S75: string;
|
|
1898
|
-
S50: string;
|
|
1899
|
-
S25: string;
|
|
1900
|
-
S10: string;
|
|
1901
|
-
};
|
|
1902
|
-
secondary: {
|
|
1903
|
-
jungle: string;
|
|
1904
|
-
J900: string;
|
|
1905
|
-
J800: string;
|
|
1906
|
-
J700: string;
|
|
1907
|
-
J600: string;
|
|
1908
|
-
J500: string;
|
|
1909
|
-
J400: string;
|
|
1910
|
-
J300: string;
|
|
1911
|
-
J200: string;
|
|
1912
|
-
J100: string;
|
|
1913
|
-
J50: string;
|
|
1914
|
-
azure: string;
|
|
1915
|
-
A900: string;
|
|
1916
|
-
A800: string;
|
|
1917
|
-
A700: string;
|
|
1918
|
-
A600: string;
|
|
1919
|
-
A500: string;
|
|
1920
|
-
A400: string;
|
|
1921
|
-
A300: string;
|
|
1922
|
-
A200: string;
|
|
1923
|
-
A100: string;
|
|
1924
|
-
A50: string;
|
|
1925
|
-
persimmon: string;
|
|
1926
|
-
P900: string;
|
|
1927
|
-
P800: string;
|
|
1928
|
-
P700: string;
|
|
1929
|
-
P600: string;
|
|
1930
|
-
P500: string;
|
|
1931
|
-
P400: string;
|
|
1932
|
-
P300: string;
|
|
1933
|
-
P200: string;
|
|
1934
|
-
P100: string;
|
|
1935
|
-
P50: string;
|
|
1936
|
-
casablanca: string;
|
|
1937
|
-
C900: string;
|
|
1938
|
-
C800: string;
|
|
1939
|
-
C700: string;
|
|
1940
|
-
C600: string;
|
|
1941
|
-
C500: string;
|
|
1942
|
-
C400: string;
|
|
1943
|
-
C300: string;
|
|
1944
|
-
C200: string;
|
|
1945
|
-
C100: string;
|
|
1946
|
-
C50: string;
|
|
1947
|
-
};
|
|
1948
|
-
common: {
|
|
1949
|
-
black: string;
|
|
1950
|
-
white: string;
|
|
1951
|
-
neutral: {
|
|
1952
|
-
light_mild: string;
|
|
1953
|
-
light_normal: string;
|
|
1954
|
-
light_bold: string;
|
|
1955
|
-
dark_mild: string;
|
|
1956
|
-
dark_normal: string;
|
|
1957
|
-
dark_bold: string;
|
|
1958
|
-
};
|
|
1959
|
-
};
|
|
1960
|
-
};
|
|
1961
|
-
type FuiContextType = {
|
|
1962
|
-
theme: FreemiumUiTheme;
|
|
1963
|
-
};
|
|
1964
|
-
type ModalCssType = {
|
|
1965
|
-
left?: string;
|
|
1966
|
-
top?: string;
|
|
1967
|
-
transform?: string;
|
|
1968
|
-
right?: string;
|
|
1969
|
-
bottom?: string;
|
|
1970
|
-
y?: string;
|
|
1971
|
-
x?: string;
|
|
1972
|
-
};
|
|
1973
|
-
|
|
1974
|
-
declare const StyledLabel: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<Omit<_radix_ui_react_label.LabelProps & react.RefAttributes<HTMLLabelElement>, "ref"> & {
|
|
1975
|
-
ref?: ((instance: HTMLLabelElement | null) => void) | react.RefObject<HTMLLabelElement> | null | undefined;
|
|
1976
|
-
}, never>> & Omit<react.ForwardRefExoticComponent<_radix_ui_react_label.LabelProps & react.RefAttributes<HTMLLabelElement>>, keyof react.Component<any, {}, any>>;
|
|
1977
|
-
type InputLabelProps = {
|
|
1978
|
-
disabled?: boolean;
|
|
1979
|
-
};
|
|
1980
|
-
declare const InputLabel: styled_components.IStyledComponent<"web", styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, InputLabelProps>>;
|
|
1981
|
-
declare const RequiredIndicator: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
1982
|
-
declare const IconButton: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>>;
|
|
1983
|
-
declare const FreshLink: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<react.DetailedHTMLProps<react.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, never>>;
|
|
1984
|
-
declare const CardContent: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
1985
|
-
declare const CardActions: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
1986
|
-
declare const CardTitle: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>>;
|
|
1987
|
-
declare const CardDescription: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
1988
|
-
declare const CardText: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
1989
|
-
declare const TriggerButtonWrapper: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<styled_components_dist_types.FastOmit<styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
1990
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | react.RefObject<HTMLButtonElement> | null | undefined;
|
|
1991
|
-
}>, never>, never>>;
|
|
1992
|
-
declare const dialogOverlayMixin: styled_components.RuleSet<object>;
|
|
1856
|
+
declare const StyledLabel: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<Omit<_radix_ui_react_label.LabelProps & react.RefAttributes<HTMLLabelElement>, "ref"> & {
|
|
1857
|
+
ref?: ((instance: HTMLLabelElement | null) => void) | react.RefObject<HTMLLabelElement> | null | undefined;
|
|
1858
|
+
}, never>> & Omit<react.ForwardRefExoticComponent<_radix_ui_react_label.LabelProps & react.RefAttributes<HTMLLabelElement>>, keyof react.Component<any, {}, any>>;
|
|
1859
|
+
type InputLabelProps = {
|
|
1860
|
+
disabled?: boolean;
|
|
1861
|
+
};
|
|
1862
|
+
declare const InputLabel: styled_components.IStyledComponent<"web", styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, InputLabelProps>>;
|
|
1863
|
+
declare const RequiredIndicator: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
1864
|
+
declare const IconButton: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>>;
|
|
1865
|
+
declare const FreshLink: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<react.DetailedHTMLProps<react.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, never>>;
|
|
1866
|
+
declare const CardContent: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
1867
|
+
declare const CardActions: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
1868
|
+
declare const CardTitle: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>>;
|
|
1869
|
+
declare const CardDescription: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
1870
|
+
declare const CardText: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
1871
|
+
declare const TriggerButtonWrapper: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<styled_components_dist_types.FastOmit<styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
1872
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | react.RefObject<HTMLButtonElement> | null | undefined;
|
|
1873
|
+
}>, never>, never>>;
|
|
1874
|
+
declare const dialogOverlayMixin: styled_components.RuleSet<object>;
|
|
1993
1875
|
declare const dialogContentMixin: styled_components.RuleSet<object>;
|
|
1994
1876
|
|
|
1995
|
-
declare const _default: react.NamedExoticComponent<styled_components.ExecutionProps & object>;
|
|
1877
|
+
declare const _default: react.NamedExoticComponent<styled_components.ExecutionProps & object>;
|
|
1878
|
+
//# sourceMappingURL=globalStyles.d.ts.map
|
|
1996
1879
|
|
|
1997
|
-
declare const hextoRGB: (hex: string, alpha?: number) => string;
|
|
1998
|
-
declare const Z_INDEX: ZIndex;
|
|
1999
|
-
declare const light: FreemiumUiTheme;
|
|
1880
|
+
declare const hextoRGB: (hex: string, alpha?: number) => string;
|
|
1881
|
+
declare const Z_INDEX: ZIndex;
|
|
1882
|
+
declare const light: FreemiumUiTheme;
|
|
2000
1883
|
declare const dark: FreemiumUiTheme;
|
|
2001
1884
|
|
|
2002
1885
|
declare const index_d_Z_INDEX: typeof Z_INDEX;
|
|
@@ -2007,4 +1890,105 @@ declare namespace index_d {
|
|
|
2007
1890
|
export { index_d_Z_INDEX as Z_INDEX, index_d_dark as dark, index_d_hextoRGB as hextoRGB, index_d_light as light };
|
|
2008
1891
|
}
|
|
2009
1892
|
|
|
2010
|
-
|
|
1893
|
+
type FreshworksPalette = {
|
|
1894
|
+
primary: {
|
|
1895
|
+
elephant: string;
|
|
1896
|
+
smoke: string;
|
|
1897
|
+
milk: string;
|
|
1898
|
+
E900: string;
|
|
1899
|
+
E800: string;
|
|
1900
|
+
E700: string;
|
|
1901
|
+
E600: string;
|
|
1902
|
+
E500: string;
|
|
1903
|
+
E400: string;
|
|
1904
|
+
E300: string;
|
|
1905
|
+
E200: string;
|
|
1906
|
+
E100: string;
|
|
1907
|
+
E50: string;
|
|
1908
|
+
S900: string;
|
|
1909
|
+
S800: string;
|
|
1910
|
+
S700: string;
|
|
1911
|
+
S600: string;
|
|
1912
|
+
S500: string;
|
|
1913
|
+
S400: string;
|
|
1914
|
+
S300: string;
|
|
1915
|
+
S200: string;
|
|
1916
|
+
S100: string;
|
|
1917
|
+
S75: string;
|
|
1918
|
+
S50: string;
|
|
1919
|
+
S25: string;
|
|
1920
|
+
S10: string;
|
|
1921
|
+
};
|
|
1922
|
+
secondary: {
|
|
1923
|
+
jungle: string;
|
|
1924
|
+
J900: string;
|
|
1925
|
+
J800: string;
|
|
1926
|
+
J700: string;
|
|
1927
|
+
J600: string;
|
|
1928
|
+
J500: string;
|
|
1929
|
+
J400: string;
|
|
1930
|
+
J300: string;
|
|
1931
|
+
J200: string;
|
|
1932
|
+
J100: string;
|
|
1933
|
+
J50: string;
|
|
1934
|
+
azure: string;
|
|
1935
|
+
A900: string;
|
|
1936
|
+
A800: string;
|
|
1937
|
+
A700: string;
|
|
1938
|
+
A600: string;
|
|
1939
|
+
A500: string;
|
|
1940
|
+
A400: string;
|
|
1941
|
+
A300: string;
|
|
1942
|
+
A200: string;
|
|
1943
|
+
A100: string;
|
|
1944
|
+
A50: string;
|
|
1945
|
+
persimmon: string;
|
|
1946
|
+
P900: string;
|
|
1947
|
+
P800: string;
|
|
1948
|
+
P700: string;
|
|
1949
|
+
P600: string;
|
|
1950
|
+
P500: string;
|
|
1951
|
+
P400: string;
|
|
1952
|
+
P300: string;
|
|
1953
|
+
P200: string;
|
|
1954
|
+
P100: string;
|
|
1955
|
+
P50: string;
|
|
1956
|
+
casablanca: string;
|
|
1957
|
+
C900: string;
|
|
1958
|
+
C800: string;
|
|
1959
|
+
C700: string;
|
|
1960
|
+
C600: string;
|
|
1961
|
+
C500: string;
|
|
1962
|
+
C400: string;
|
|
1963
|
+
C300: string;
|
|
1964
|
+
C200: string;
|
|
1965
|
+
C100: string;
|
|
1966
|
+
C50: string;
|
|
1967
|
+
};
|
|
1968
|
+
common: {
|
|
1969
|
+
black: string;
|
|
1970
|
+
white: string;
|
|
1971
|
+
neutral: {
|
|
1972
|
+
light_mild: string;
|
|
1973
|
+
light_normal: string;
|
|
1974
|
+
light_bold: string;
|
|
1975
|
+
dark_mild: string;
|
|
1976
|
+
dark_normal: string;
|
|
1977
|
+
dark_bold: string;
|
|
1978
|
+
};
|
|
1979
|
+
};
|
|
1980
|
+
};
|
|
1981
|
+
type FuiContextType = {
|
|
1982
|
+
theme: FreemiumUiTheme;
|
|
1983
|
+
};
|
|
1984
|
+
type ModalCssType = {
|
|
1985
|
+
left?: string;
|
|
1986
|
+
top?: string;
|
|
1987
|
+
transform?: string;
|
|
1988
|
+
right?: string;
|
|
1989
|
+
bottom?: string;
|
|
1990
|
+
y?: string;
|
|
1991
|
+
x?: string;
|
|
1992
|
+
};
|
|
1993
|
+
|
|
1994
|
+
export { Accordion, type AccordionItemProps, type AccordionProps, Alert, type AlertProps, AutoComplete, type AutoCompleteInputItemProps, type AutoCompleteProps, BoxedRadio, type BoxedRadioItemProps, type BoxedRadioProps, Button, ButtonDropdown, type ButtonDropdownItemProps, type ButtonDropdownProps, type ButtonProps, type ButtonSizeKey, type ButtonVariant, Calendar, type CalendarProps, CardActions, CardContent, CardDescription, CardText, CardTitle, Checkbox, type CheckboxProps, Confirmation, type ConfirmationProps, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, DateTimePicker, type DateTimePickerProps, DateTimeRangePicker, type DateTimeRangePickerProps, type DayProps, type DefaultAutoCompleteItem, type DefaultDropdownItem, type DefaultMultiSelectDropdownItem, type DefaultProps, Drawer, type DrawerPlacement, type DrawerProps, type DrawerSizeType, Dropdown, type DropdownButtonProps, ListItem as DropdownInputItem, type DropdownInputItemProps, type DropdownInputProps, Item as DropdownItem, type DropdownItemProps, DropdownMenuItem, type DropdownProps, type DropdownTypes, _default as FreemiumUIGlobalStyles, type FreemiumUiTheme, FreshLink, type FreshworksPalette, type FuiContextType, IconButton, Input, InputLabel, type InputProps, type LevelType, Loader, type LoaderPropTypes, type LoaderSizes, type LoaderSpeeds, Menu, type MenuItemProps, type MenuProps, Modal, type ModalAlignType, type ModalCssType, type ModalPositionType, type ModalProps, type ModalSizeType, MultiSelectDropdown, type MultiSelectDropdownProps, type Origin, Popover, PopoverClose, type PopoverProps, PopoverTrigger, Radio, RadioGroup, type RadioGroupProps, type RadioItemProps, type RadioProps, Reorder, type ReorderItemType, type ReorderProps, RequiredIndicator, type RowDataType, SortDropdown, StyledLabel, type StyledListItemType, Table, type TableProps, type TableSortingMenuProps, Tabs, TabsContent, type TabsItemProps, TabsList, type TabsProps, TabsRoot, TabsTrigger, Tag, type TagProps, TextArea, type TextAreaProps, ThemeProvider, type ThemeProviderType, index_d as Themes, TimePicker, type TimePickerProps, type ToastContextType, type ToastItemProps, ToastProvider, type ToastType, type ToastTypes, type ToastWithID, Toggle, type ToggleProps, type ToggleSizes, Tooltip, type TooltipAlign, type TooltipPosition, type TooltipProps, type TooltipSide, TriggerButtonWrapper, Typography, type TypographyProps, type TypographyVariantType, type TypographyWeightType, type UpdateToastsFunction, type WorkspaceRowDataType, WorkspaceTable, type WorkspaceTableProps, dialogContentMixin, dialogOverlayMixin, useToasts };
|