@openedx/paragon 22.19.0 → 22.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DataTable/filters/CheckboxFilter.js +2 -1
- package/dist/DataTable/filters/CheckboxFilter.js.map +1 -1
- package/dist/IconButton/index.d.ts +1 -1
- package/dist/Modal/ModalDialog.d.ts +0 -1
- package/dist/Modal/ModalDialog.js +6 -3
- package/dist/Modal/ModalDialog.js.map +1 -1
- package/dist/Modal/messages.d.ts +8 -0
- package/dist/Modal/messages.js +10 -0
- package/dist/Modal/messages.js.map +1 -0
- package/dist/index.d.ts +94 -211
- package/dist/index.js +123 -124
- package/dist/index.js.map +1 -0
- package/package.json +1 -1
- package/src/DataTable/filters/CheckboxFilter.jsx +1 -1
- package/src/DataTable/filters/tests/CheckboxFilter.test.jsx +8 -0
- package/src/Modal/ModalDialog.tsx +6 -4
- package/src/Modal/messages.ts +11 -0
- package/src/Modal/tests/AlertModal.test.jsx +48 -39
- package/src/Modal/tests/ModalDialog.test.tsx +57 -50
- package/src/{index.js → index.ts} +116 -37
- package/src/index.d.ts +0 -230
package/dist/index.js
CHANGED
|
@@ -1,41 +1,18 @@
|
|
|
1
|
-
// Keep this file in sync with the .d.ts file (manually). It's in the same order
|
|
2
|
-
// and each line number is the same, to make it easier.
|
|
3
|
-
|
|
4
1
|
// // // // // // // // // // // // // // // // // // // // // // // // // // //
|
|
5
2
|
// Things that have types
|
|
6
3
|
// // // // // // // // // // // // // // // // // // // // // // // // // // //
|
|
4
|
+
export { default as Alert, ALERT_CLOSE_LABEL_TEXT } from './Alert';
|
|
7
5
|
export { default as Bubble } from './Bubble';
|
|
8
6
|
export { default as Button, ButtonGroup, ButtonToolbar } from './Button';
|
|
9
7
|
export { default as Chip, CHIP_PGN_CLASS } from './Chip';
|
|
10
8
|
export { default as ChipCarousel } from './ChipCarousel';
|
|
11
9
|
export { default as Container } from './Container';
|
|
12
|
-
export {
|
|
13
|
-
default as Form,
|
|
14
|
-
RadioControl,
|
|
15
|
-
CheckboxControl,
|
|
16
|
-
SwitchControl,
|
|
17
|
-
FormSwitchSet,
|
|
18
|
-
FormControl,
|
|
19
|
-
FormControlDecoratorGroup,
|
|
20
|
-
FormControlFeedback,
|
|
21
|
-
FormCheck,
|
|
22
|
-
FormFile,
|
|
23
|
-
FormRadio,
|
|
24
|
-
FormRadioSet,
|
|
25
|
-
FormRadioSetContext,
|
|
26
|
-
FormGroup,
|
|
27
|
-
FormLabel,
|
|
28
|
-
useCheckboxSetValues,
|
|
29
|
-
FormText,
|
|
30
|
-
FormAutosuggest,
|
|
31
|
-
FormAutosuggestOption,
|
|
32
|
-
InputGroup,
|
|
33
|
-
} from './Form';
|
|
10
|
+
export { default as Form, RadioControl, CheckboxControl, SwitchControl, FormSwitchSet, FormControl, FormControlDecoratorGroup, FormControlFeedback, FormCheck, FormFile, FormRadio, FormRadioSet, FormRadioSetContext, FormGroup, FormLabel, useCheckboxSetValues, FormText, FormAutosuggest, FormAutosuggestOption, InputGroup } from './Form';
|
|
34
11
|
export { default as Hyperlink } from './Hyperlink';
|
|
35
12
|
export { default as Icon } from './Icon';
|
|
36
13
|
export { default as IconButton, IconButtonWithTooltip } from './IconButton';
|
|
37
14
|
export { default as ModalContext } from './Modal/ModalContext';
|
|
38
|
-
export { default as ModalDialog
|
|
15
|
+
export { default as ModalDialog } from './Modal/ModalDialog';
|
|
39
16
|
export { default as ModalLayer } from './Modal/ModalLayer';
|
|
40
17
|
export { default as Overlay, OverlayTrigger } from './Overlay';
|
|
41
18
|
export { default as Portal } from './Modal/Portal';
|
|
@@ -46,185 +23,207 @@ export { default as useToggle } from './hooks/useToggleHook';
|
|
|
46
23
|
export { default as useArrowKeyNavigation } from './hooks/useArrowKeyNavigationHook';
|
|
47
24
|
export { default as useIndexOfLastVisibleChild } from './hooks/useIndexOfLastVisibleChildHook';
|
|
48
25
|
export { default as useIsVisible } from './hooks/useIsVisibleHook';
|
|
49
|
-
export { default as Alert, ALERT_CLOSE_LABEL_TEXT } from './Alert';
|
|
50
26
|
export { default as breakpoints } from './utils/breakpoints';
|
|
51
27
|
|
|
52
28
|
// // // // // // // // // // // // // // // // // // // // // // // // // // //
|
|
53
29
|
// Things that don't have types
|
|
54
30
|
// // // // // // // // // // // // // // // // // // // // // // // // // // //
|
|
31
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
55
32
|
export { default as asInput } from './asInput';
|
|
33
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
56
34
|
export { default as ActionRow } from './ActionRow';
|
|
35
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
57
36
|
export { default as Annotation } from './Annotation';
|
|
37
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
58
38
|
export { default as Avatar } from './Avatar';
|
|
39
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
59
40
|
export { default as AvatarButton } from './AvatarButton';
|
|
41
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
60
42
|
export { default as Badge } from './Badge';
|
|
43
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
61
44
|
export { default as Breadcrumb } from './Breadcrumb';
|
|
62
|
-
export {
|
|
63
|
-
|
|
64
|
-
CardColumns,
|
|
65
|
-
CardDeck,
|
|
66
|
-
CardImg,
|
|
67
|
-
CardGroup,
|
|
68
|
-
CardGrid,
|
|
69
|
-
CardCarousel,
|
|
70
|
-
CARD_VARIANTS,
|
|
45
|
+
export { default as Card, CardColumns, CardDeck, CardImg, CardGroup, CardGrid, CardCarousel, CARD_VARIANTS
|
|
46
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
71
47
|
} from './Card';
|
|
72
|
-
export {
|
|
73
|
-
|
|
48
|
+
export { default as Carousel, CarouselItem, CAROUSEL_NEXT_LABEL_TEXT, CAROUSEL_PREV_LABEL_TEXT
|
|
49
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
74
50
|
} from './Carousel';
|
|
75
|
-
|
|
76
|
-
export { default as CheckBox } from './CheckBox';
|
|
77
|
-
/** @deprecated Replaced by `Form.Checkbox` and `Form.CheckboxSet`. */
|
|
78
|
-
export { default as CheckBoxGroup } from './CheckBoxGroup';
|
|
51
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
79
52
|
export { default as CloseButton } from './CloseButton';
|
|
53
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
80
54
|
export { default as Layout, Col, Row } from './Layout';
|
|
55
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
81
56
|
export { default as Collapse } from './Collapse';
|
|
57
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
82
58
|
export { default as Collapsible } from './Collapsible';
|
|
59
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
83
60
|
export { default as Scrollable } from './Scrollable';
|
|
84
|
-
export {
|
|
85
|
-
|
|
86
|
-
DropdownToggle,
|
|
87
|
-
DropdownButton,
|
|
88
|
-
SplitButton,
|
|
61
|
+
export { default as Dropdown, DropdownToggle, DropdownButton, SplitButton
|
|
62
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
89
63
|
} from './Dropdown';
|
|
64
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
90
65
|
export { default as Fade } from './Fade';
|
|
91
|
-
|
|
92
|
-
export { default as Fieldset } from './Fieldset';
|
|
66
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
93
67
|
export { default as IconButtonToggle } from './IconButtonToggle';
|
|
94
|
-
|
|
95
|
-
export { default as Input } from './Input';
|
|
96
|
-
/** @deprecated Replaced by `Form.Control`. */
|
|
97
|
-
export { default as InputSelect } from './InputSelect';
|
|
98
|
-
/** @deprecated Replaced by `Form.Control`. */
|
|
99
|
-
export { default as InputText } from './InputText';
|
|
68
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
100
69
|
export { default as Image, Figure } from './Image';
|
|
101
|
-
|
|
102
|
-
export { default as ListBox } from './ListBox';
|
|
103
|
-
/** @deprecated */
|
|
104
|
-
export { default as ListBoxOption } from './ListBoxOption';
|
|
70
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
105
71
|
export { default as MailtoLink, MAIL_TO_LINK_EXTERNAL_LINK_ALTERNATIVE_TEXT, MAIL_TO_LINK_EXTERNAL_LINK_TITLE } from './MailtoLink';
|
|
72
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
106
73
|
export { default as Media } from './Media';
|
|
74
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
107
75
|
export { default as Menu } from './Menu';
|
|
76
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
108
77
|
export { default as MenuItem } from './Menu/MenuItem';
|
|
78
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
109
79
|
export { default as SelectMenu, SELECT_MENU_DEFAULT_MESSAGE } from './Menu/SelectMenu';
|
|
110
|
-
|
|
111
|
-
export { default as Modal } from './Modal';
|
|
80
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
112
81
|
export { default as ModalCloseButton } from './Modal/ModalCloseButton';
|
|
82
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
113
83
|
export { default as FullscreenModal, FULLSCREEN_MODAL_CLOSE_LABEL } from './Modal/FullscreenModal';
|
|
84
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
114
85
|
export { default as MarketingModal } from './Modal/MarketingModal';
|
|
86
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
115
87
|
export { default as StandardModal, STANDARD_MODAL_CLOSE_LABEL } from './Modal/StandardModal';
|
|
88
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
116
89
|
export { default as AlertModal } from './Modal/AlertModal';
|
|
90
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
117
91
|
export { default as ModalPopup } from './Modal/ModalPopup';
|
|
92
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
118
93
|
export { default as PopperElement } from './Modal/PopperElement';
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
default as Nav,
|
|
122
|
-
NavDropdown,
|
|
123
|
-
NavItem,
|
|
124
|
-
NavLink,
|
|
94
|
+
export { default as Nav, NavDropdown, NavItem, NavLink
|
|
95
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
125
96
|
} from './Nav';
|
|
97
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
126
98
|
export { default as Navbar, NavbarBrand, NAVBAR_LABEL } from './Navbar';
|
|
99
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
127
100
|
export { default as PageBanner, PAGE_BANNER_DISMISS_ALT_TEXT } from './PageBanner';
|
|
128
|
-
export {
|
|
129
|
-
|
|
130
|
-
PAGINATION_BUTTON_LABEL_PREV,
|
|
131
|
-
PAGINATION_BUTTON_ICON_BUTTON_NEXT_ALT,
|
|
132
|
-
PAGINATION_BUTTON_ICON_BUTTON_PREV_ALT,
|
|
133
|
-
PAGINATION_BUTTON_LABEL_PAGE_OF_COUNT,
|
|
134
|
-
PAGINATION_BUTTON_LABEL_CURRENT_PAGE,
|
|
135
|
-
PAGINATION_BUTTON_LABEL_NEXT,
|
|
136
|
-
PAGINATION_BUTTON_LABEL_PAGE,
|
|
101
|
+
export { default as Pagination, PAGINATION_BUTTON_LABEL_PREV, PAGINATION_BUTTON_ICON_BUTTON_NEXT_ALT, PAGINATION_BUTTON_ICON_BUTTON_PREV_ALT, PAGINATION_BUTTON_LABEL_PAGE_OF_COUNT, PAGINATION_BUTTON_LABEL_CURRENT_PAGE, PAGINATION_BUTTON_LABEL_NEXT, PAGINATION_BUTTON_LABEL_PAGE
|
|
102
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
137
103
|
} from './Pagination';
|
|
104
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
138
105
|
export { default as Popover, PopoverTitle, PopoverContent } from './Popover';
|
|
106
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
139
107
|
export { default as ProgressBar } from './ProgressBar';
|
|
108
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
140
109
|
export { default as ProductTour } from './ProductTour';
|
|
141
|
-
|
|
142
|
-
export { default as RadioButtonGroup, RadioButton } from './RadioButtonGroup';
|
|
110
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
143
111
|
export { default as ResponsiveEmbed } from './ResponsiveEmbed';
|
|
144
|
-
export {
|
|
145
|
-
|
|
146
|
-
SEARCH_FIELD_SCREEN_READER_TEXT_LABEL,
|
|
147
|
-
SEARCH_FIELD_SCREEN_READER_TEXT_CLEAR_BUTTON,
|
|
148
|
-
SEARCH_FIELD_SCREEN_READER_TEXT_SUBMIT_BUTTON,
|
|
149
|
-
SEARCH_FIELD_BUTTON_TEXT,
|
|
112
|
+
export { default as SearchField, SEARCH_FIELD_SCREEN_READER_TEXT_LABEL, SEARCH_FIELD_SCREEN_READER_TEXT_CLEAR_BUTTON, SEARCH_FIELD_SCREEN_READER_TEXT_SUBMIT_BUTTON, SEARCH_FIELD_BUTTON_TEXT
|
|
113
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
150
114
|
} from './SearchField';
|
|
115
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
151
116
|
export { default as Sheet } from './Sheet';
|
|
117
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
152
118
|
export { default as Spinner } from './Spinner';
|
|
119
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
153
120
|
export { default as Stepper } from './Stepper';
|
|
121
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
154
122
|
export { default as StatefulButton } from './StatefulButton';
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
/** @deprecated Replaced by `DataTable`. */
|
|
158
|
-
export { default as Table } from './Table';
|
|
159
|
-
export {
|
|
160
|
-
default as Tabs,
|
|
161
|
-
Tab,
|
|
162
|
-
TabContainer,
|
|
163
|
-
TabContent,
|
|
164
|
-
TabPane,
|
|
123
|
+
export { default as Tabs, Tab, TabContainer, TabContent, TabPane
|
|
124
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
165
125
|
} from './Tabs';
|
|
166
|
-
|
|
167
|
-
export { default as TextArea } from './TextArea';
|
|
168
|
-
/** @deprecated Replaced by `Form.Group`. */
|
|
169
|
-
export { default as ValidationFormGroup } from './ValidationFormGroup';
|
|
126
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
170
127
|
export { default as TransitionReplace } from './TransitionReplace';
|
|
128
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
171
129
|
export { default as ValidationMessage } from './ValidationMessage';
|
|
130
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
172
131
|
export { default as DataTable } from './DataTable';
|
|
132
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
173
133
|
export { default as TextFilter } from './DataTable/filters/TextFilter';
|
|
134
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
174
135
|
export { default as CheckboxFilter } from './DataTable/filters/CheckboxFilter';
|
|
136
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
175
137
|
export { default as DropdownFilter } from './DataTable/filters/DropdownFilter';
|
|
138
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
176
139
|
export { default as MultiSelectDropdownFilter } from './DataTable/filters/MultiSelectDropdownFilter';
|
|
140
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
177
141
|
export { default as TableHeaderCell } from './DataTable/TableHeaderCell';
|
|
142
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
178
143
|
export { default as TableCell } from './DataTable/TableCell';
|
|
144
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
179
145
|
export { default as TableFilters, TABLE_FILTERS_BUTTON_TEXT } from './DataTable/TableFilters';
|
|
146
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
180
147
|
export { default as TableHeader } from './DataTable/TableHeaderRow';
|
|
148
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
181
149
|
export { default as TableRow } from './DataTable/TableRow';
|
|
150
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
182
151
|
export { default as TablePagination } from './DataTable/TablePagination';
|
|
152
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
183
153
|
export { default as TablePaginationMinimal } from './DataTable/TablePaginationMinimal';
|
|
154
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
184
155
|
export { default as DataTableContext } from './DataTable/DataTableContext';
|
|
156
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
185
157
|
export { default as BulkActions } from './DataTable/BulkActions';
|
|
158
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
186
159
|
export { default as TableControlBar } from './DataTable/TableControlBar';
|
|
160
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
187
161
|
export { default as TableFooter } from './DataTable/TableFooter';
|
|
162
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
188
163
|
export { default as CardView } from './DataTable/CardView';
|
|
164
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
189
165
|
export { default as Skeleton, SkeletonTheme } from './Skeleton/index';
|
|
166
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
190
167
|
export { default as Stack } from './Stack';
|
|
168
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
191
169
|
export { default as ToggleButton, ToggleButtonGroup } from './ToggleButton';
|
|
170
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
192
171
|
export { default as Sticky } from './Sticky';
|
|
172
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
193
173
|
export { default as SelectableBox } from './SelectableBox';
|
|
174
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
194
175
|
export { default as Variant } from './utils/constants';
|
|
195
|
-
export {
|
|
196
|
-
|
|
197
|
-
OverflowScroll,
|
|
198
|
-
useOverflowScroll,
|
|
199
|
-
useOverflowScrollItems,
|
|
176
|
+
export { OverflowScrollContext, OverflowScroll, useOverflowScroll, useOverflowScrollItems
|
|
177
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
200
178
|
} from './OverflowScroll';
|
|
179
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
201
180
|
export { default as Dropzone } from './Dropzone';
|
|
181
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
202
182
|
export { default as messages } from './i18n';
|
|
183
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
203
184
|
export { default as Truncate } from './Truncate';
|
|
185
|
+
// @ts-ignore: has yet to be converted to TypeScript
|
|
204
186
|
export { default as ColorPicker } from './ColorPicker';
|
|
205
187
|
|
|
188
|
+
// // // // // // // // // // // // // // // // // // // // // // // // // // //
|
|
189
|
+
// Things that are deprecated
|
|
190
|
+
// // // // // // // // // // // // // // // // // // // // // // // // // // //
|
|
191
|
+
|
|
192
|
+
/** @deprecated Replaced by `Form.Checkbox`. */ // @ts-ignore: has yet to be converted to TypeScript
|
|
193
|
+
export { default as CheckBox } from './CheckBox';
|
|
194
|
+
/** @deprecated Replaced by `Form.Checkbox` and `Form.CheckboxSet`. */ // @ts-ignore
|
|
195
|
+
export { default as CheckBoxGroup } from './CheckBoxGroup';
|
|
196
|
+
/** @deprecated */ // @ts-ignore: has yet to be converted to TypeScript
|
|
197
|
+
export { default as Fieldset } from './Fieldset';
|
|
198
|
+
/** @deprecated Replaced by `Form.Control`. */ // @ts-ignore: has yet to be converted to TypeScript
|
|
199
|
+
export { default as Input } from './Input';
|
|
200
|
+
/** @deprecated Replaced by `Form.Control`. */ // @ts-ignore: has yet to be converted to TypeScript
|
|
201
|
+
export { default as InputSelect } from './InputSelect';
|
|
202
|
+
/** @deprecated Replaced by `Form.Control`. */ // @ts-ignore: has yet to be converted to TypeScript
|
|
203
|
+
export { default as InputText } from './InputText';
|
|
204
|
+
/** @deprecated */ // @ts-ignore: has yet to be converted to TypeScript
|
|
205
|
+
export { default as ListBox } from './ListBox';
|
|
206
|
+
/** @deprecated */ // @ts-ignore: has yet to be converted to TypeScript
|
|
207
|
+
export { default as ListBoxOption } from './ListBoxOption';
|
|
208
|
+
/** @deprecated Use `ModalDialog` instead. */ // @ts-ignore: has yet to be converted to TypeScript
|
|
209
|
+
export { default as Modal } from './Modal';
|
|
210
|
+
/** @deprecated Replaced by `Form.Radio` and `Form.RadioSet`. */ // @ts-ignore: has yet to be converted to TypeScript
|
|
211
|
+
export { default as RadioButtonGroup, RadioButton } from './RadioButtonGroup';
|
|
212
|
+
/** @deprecated Replaced by `Alert`. */ // @ts-ignore: has yet to be converted to TypeScript
|
|
213
|
+
export { default as StatusAlert } from './StatusAlert';
|
|
214
|
+
/** @deprecated Replaced by `DataTable`. */ // @ts-ignore: has yet to be converted to TypeScript
|
|
215
|
+
export { default as Table } from './Table';
|
|
216
|
+
/** @deprecated Replaced by `Form.Control`. */ // @ts-ignore: has yet to be converted to TypeScript
|
|
217
|
+
export { default as TextArea } from './TextArea';
|
|
218
|
+
/** @deprecated Replaced by `Form.Group`. */ // @ts-ignore: has yet to be converted to TypeScript
|
|
219
|
+
export { default as ValidationFormGroup } from './ValidationFormGroup';
|
|
220
|
+
|
|
221
|
+
// // // // // // // // // // // // // // // // // // // // // // // // // // //
|
|
206
222
|
// Pass through any needed whole third-party library functionality
|
|
207
223
|
// useTable for example is needed to use the DataTable component seamlessly
|
|
208
224
|
// rather than setting a peer dependency in this project, we opt to tightly
|
|
209
225
|
// couple these dependencies by passing through needed functionality.
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
} from 'react-responsive';
|
|
215
|
-
export {
|
|
216
|
-
useTable,
|
|
217
|
-
useFilters,
|
|
218
|
-
useGlobalFilter,
|
|
219
|
-
useSortBy,
|
|
220
|
-
useGroupBy,
|
|
221
|
-
useExpanded,
|
|
222
|
-
usePagination,
|
|
223
|
-
useRowSelect,
|
|
224
|
-
useRowState,
|
|
225
|
-
useColumnOrder,
|
|
226
|
-
useResizeColumns,
|
|
227
|
-
useBlockLayout,
|
|
228
|
-
useAbsoluteLayout,
|
|
229
|
-
useFlexLayout,
|
|
230
|
-
} from 'react-table';
|
|
226
|
+
// // // // // // // // // // // // // // // // // // // // // // // // // // //
|
|
227
|
+
export { default as MediaQuery, useMediaQuery, Context as ResponsiveContext } from 'react-responsive';
|
|
228
|
+
export { useTable, useFilters, useGlobalFilter, useSortBy, useGroupBy, useExpanded, usePagination, useRowSelect, useRowState, useColumnOrder, useResizeColumns, useBlockLayout, useAbsoluteLayout, useFlexLayout } from 'react-table';
|
|
229
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["default","Alert","ALERT_CLOSE_LABEL_TEXT","Bubble","Button","ButtonGroup","ButtonToolbar","Chip","CHIP_PGN_CLASS","ChipCarousel","Container","Form","RadioControl","CheckboxControl","SwitchControl","FormSwitchSet","FormControl","FormControlDecoratorGroup","FormControlFeedback","FormCheck","FormFile","FormRadio","FormRadioSet","FormRadioSetContext","FormGroup","FormLabel","useCheckboxSetValues","FormText","FormAutosuggest","FormAutosuggestOption","InputGroup","Hyperlink","Icon","IconButton","IconButtonWithTooltip","ModalContext","ModalDialog","ModalLayer","Overlay","OverlayTrigger","Portal","Toast","TOAST_CLOSE_LABEL_TEXT","TOAST_DELAY","Tooltip","useWindowSize","useToggle","useArrowKeyNavigation","useIndexOfLastVisibleChild","useIsVisible","breakpoints","asInput","ActionRow","Annotation","Avatar","AvatarButton","Badge","Breadcrumb","Card","CardColumns","CardDeck","CardImg","CardGroup","CardGrid","CardCarousel","CARD_VARIANTS","Carousel","CarouselItem","CAROUSEL_NEXT_LABEL_TEXT","CAROUSEL_PREV_LABEL_TEXT","CloseButton","Layout","Col","Row","Collapse","Collapsible","Scrollable","Dropdown","DropdownToggle","DropdownButton","SplitButton","Fade","IconButtonToggle","Image","Figure","MailtoLink","MAIL_TO_LINK_EXTERNAL_LINK_ALTERNATIVE_TEXT","MAIL_TO_LINK_EXTERNAL_LINK_TITLE","Media","Menu","MenuItem","SelectMenu","SELECT_MENU_DEFAULT_MESSAGE","ModalCloseButton","FullscreenModal","FULLSCREEN_MODAL_CLOSE_LABEL","MarketingModal","StandardModal","STANDARD_MODAL_CLOSE_LABEL","AlertModal","ModalPopup","PopperElement","Nav","NavDropdown","NavItem","NavLink","Navbar","NavbarBrand","NAVBAR_LABEL","PageBanner","PAGE_BANNER_DISMISS_ALT_TEXT","Pagination","PAGINATION_BUTTON_LABEL_PREV","PAGINATION_BUTTON_ICON_BUTTON_NEXT_ALT","PAGINATION_BUTTON_ICON_BUTTON_PREV_ALT","PAGINATION_BUTTON_LABEL_PAGE_OF_COUNT","PAGINATION_BUTTON_LABEL_CURRENT_PAGE","PAGINATION_BUTTON_LABEL_NEXT","PAGINATION_BUTTON_LABEL_PAGE","Popover","PopoverTitle","PopoverContent","ProgressBar","ProductTour","ResponsiveEmbed","SearchField","SEARCH_FIELD_SCREEN_READER_TEXT_LABEL","SEARCH_FIELD_SCREEN_READER_TEXT_CLEAR_BUTTON","SEARCH_FIELD_SCREEN_READER_TEXT_SUBMIT_BUTTON","SEARCH_FIELD_BUTTON_TEXT","Sheet","Spinner","Stepper","StatefulButton","Tabs","Tab","TabContainer","TabContent","TabPane","TransitionReplace","ValidationMessage","DataTable","TextFilter","CheckboxFilter","DropdownFilter","MultiSelectDropdownFilter","TableHeaderCell","TableCell","TableFilters","TABLE_FILTERS_BUTTON_TEXT","TableHeader","TableRow","TablePagination","TablePaginationMinimal","DataTableContext","BulkActions","TableControlBar","TableFooter","CardView","Skeleton","SkeletonTheme","Stack","ToggleButton","ToggleButtonGroup","Sticky","SelectableBox","Variant","OverflowScrollContext","OverflowScroll","useOverflowScroll","useOverflowScrollItems","Dropzone","messages","Truncate","ColorPicker","CheckBox","CheckBoxGroup","Fieldset","Input","InputSelect","InputText","ListBox","ListBoxOption","Modal","RadioButtonGroup","RadioButton","StatusAlert","Table","TextArea","ValidationFormGroup","MediaQuery","useMediaQuery","Context","ResponsiveContext","useTable","useFilters","useGlobalFilter","useSortBy","useGroupBy","useExpanded","usePagination","useRowSelect","useRowState","useColumnOrder","useResizeColumns","useBlockLayout","useAbsoluteLayout","useFlexLayout"],"sources":["../src/index.ts"],"sourcesContent":["// // // // // // // // // // // // // // // // // // // // // // // // // // //\n// Things that have types\n// // // // // // // // // // // // // // // // // // // // // // // // // // //\nexport { default as Alert, ALERT_CLOSE_LABEL_TEXT } from './Alert';\nexport { default as Bubble } from './Bubble';\nexport { default as Button, ButtonGroup, ButtonToolbar } from './Button';\nexport { default as Chip, CHIP_PGN_CLASS } from './Chip';\nexport { default as ChipCarousel } from './ChipCarousel';\nexport { default as Container, type ContainerSize } from './Container';\nexport {\n default as Form,\n RadioControl,\n CheckboxControl,\n SwitchControl,\n FormSwitchSet,\n FormControl,\n FormControlDecoratorGroup,\n FormControlFeedback,\n FormCheck,\n FormFile,\n FormRadio,\n FormRadioSet,\n FormRadioSetContext,\n FormGroup,\n FormLabel,\n useCheckboxSetValues,\n FormText,\n FormAutosuggest,\n FormAutosuggestOption,\n InputGroup,\n} from './Form';\nexport { default as Hyperlink } from './Hyperlink';\nexport { default as Icon } from './Icon';\nexport { default as IconButton, IconButtonWithTooltip } from './IconButton';\nexport { default as ModalContext } from './Modal/ModalContext';\nexport { default as ModalDialog } from './Modal/ModalDialog';\nexport { default as ModalLayer } from './Modal/ModalLayer';\nexport { default as Overlay, OverlayTrigger } from './Overlay';\nexport { default as Portal } from './Modal/Portal';\nexport { default as Toast, TOAST_CLOSE_LABEL_TEXT, TOAST_DELAY } from './Toast';\nexport { default as Tooltip } from './Tooltip';\nexport { default as useWindowSize, type WindowSizeData } from './hooks/useWindowSizeHook';\nexport { default as useToggle, type Toggler, type ToggleHandlers } from './hooks/useToggleHook';\nexport { default as useArrowKeyNavigation, type ArrowKeyNavProps } from './hooks/useArrowKeyNavigationHook';\nexport { default as useIndexOfLastVisibleChild } from './hooks/useIndexOfLastVisibleChildHook';\nexport { default as useIsVisible } from './hooks/useIsVisibleHook';\nexport { default as breakpoints } from './utils/breakpoints';\n\n// // // // // // // // // // // // // // // // // // // // // // // // // // //\n// Things that don't have types\n// // // // // // // // // // // // // // // // // // // // // // // // // // //\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as asInput } from './asInput';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as ActionRow } from './ActionRow';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Annotation } from './Annotation';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Avatar } from './Avatar';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as AvatarButton } from './AvatarButton';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Badge } from './Badge';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Breadcrumb } from './Breadcrumb';\n\nexport {\n default as Card,\n CardColumns,\n CardDeck,\n CardImg,\n CardGroup,\n CardGrid,\n CardCarousel,\n CARD_VARIANTS,\n // @ts-ignore: has yet to be converted to TypeScript\n} from './Card';\nexport {\n default as Carousel, CarouselItem, CAROUSEL_NEXT_LABEL_TEXT, CAROUSEL_PREV_LABEL_TEXT,\n // @ts-ignore: has yet to be converted to TypeScript\n} from './Carousel';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as CloseButton } from './CloseButton';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Layout, Col, Row } from './Layout';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Collapse } from './Collapse';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Collapsible } from './Collapsible';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Scrollable } from './Scrollable';\nexport {\n default as Dropdown,\n DropdownToggle,\n DropdownButton,\n SplitButton,\n // @ts-ignore: has yet to be converted to TypeScript\n} from './Dropdown';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Fade } from './Fade';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as IconButtonToggle } from './IconButtonToggle';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Image, Figure } from './Image';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as MailtoLink, MAIL_TO_LINK_EXTERNAL_LINK_ALTERNATIVE_TEXT, MAIL_TO_LINK_EXTERNAL_LINK_TITLE } from './MailtoLink';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Media } from './Media';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Menu } from './Menu';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as MenuItem } from './Menu/MenuItem';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as SelectMenu, SELECT_MENU_DEFAULT_MESSAGE } from './Menu/SelectMenu';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as ModalCloseButton } from './Modal/ModalCloseButton';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as FullscreenModal, FULLSCREEN_MODAL_CLOSE_LABEL } from './Modal/FullscreenModal';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as MarketingModal } from './Modal/MarketingModal';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as StandardModal, STANDARD_MODAL_CLOSE_LABEL } from './Modal/StandardModal';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as AlertModal } from './Modal/AlertModal';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as ModalPopup } from './Modal/ModalPopup';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as PopperElement } from './Modal/PopperElement';\n\nexport {\n default as Nav,\n NavDropdown,\n NavItem,\n NavLink,\n // @ts-ignore: has yet to be converted to TypeScript\n} from './Nav';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Navbar, NavbarBrand, NAVBAR_LABEL } from './Navbar';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as PageBanner, PAGE_BANNER_DISMISS_ALT_TEXT } from './PageBanner';\nexport {\n default as Pagination,\n PAGINATION_BUTTON_LABEL_PREV,\n PAGINATION_BUTTON_ICON_BUTTON_NEXT_ALT,\n PAGINATION_BUTTON_ICON_BUTTON_PREV_ALT,\n PAGINATION_BUTTON_LABEL_PAGE_OF_COUNT,\n PAGINATION_BUTTON_LABEL_CURRENT_PAGE,\n PAGINATION_BUTTON_LABEL_NEXT,\n PAGINATION_BUTTON_LABEL_PAGE,\n // @ts-ignore: has yet to be converted to TypeScript\n} from './Pagination';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Popover, PopoverTitle, PopoverContent } from './Popover';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as ProgressBar } from './ProgressBar';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as ProductTour } from './ProductTour';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as ResponsiveEmbed } from './ResponsiveEmbed';\nexport {\n default as SearchField,\n SEARCH_FIELD_SCREEN_READER_TEXT_LABEL,\n SEARCH_FIELD_SCREEN_READER_TEXT_CLEAR_BUTTON,\n SEARCH_FIELD_SCREEN_READER_TEXT_SUBMIT_BUTTON,\n SEARCH_FIELD_BUTTON_TEXT,\n // @ts-ignore: has yet to be converted to TypeScript\n} from './SearchField';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Sheet } from './Sheet';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Spinner } from './Spinner';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Stepper } from './Stepper';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as StatefulButton } from './StatefulButton';\nexport {\n default as Tabs,\n Tab,\n TabContainer,\n TabContent,\n TabPane,\n// @ts-ignore: has yet to be converted to TypeScript\n} from './Tabs';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as TransitionReplace } from './TransitionReplace';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as ValidationMessage } from './ValidationMessage';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as DataTable } from './DataTable';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as TextFilter } from './DataTable/filters/TextFilter';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as CheckboxFilter } from './DataTable/filters/CheckboxFilter';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as DropdownFilter } from './DataTable/filters/DropdownFilter';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as MultiSelectDropdownFilter } from './DataTable/filters/MultiSelectDropdownFilter';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as TableHeaderCell } from './DataTable/TableHeaderCell';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as TableCell } from './DataTable/TableCell';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as TableFilters, TABLE_FILTERS_BUTTON_TEXT } from './DataTable/TableFilters';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as TableHeader } from './DataTable/TableHeaderRow';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as TableRow } from './DataTable/TableRow';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as TablePagination } from './DataTable/TablePagination';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as TablePaginationMinimal } from './DataTable/TablePaginationMinimal';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as DataTableContext } from './DataTable/DataTableContext';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as BulkActions } from './DataTable/BulkActions';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as TableControlBar } from './DataTable/TableControlBar';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as TableFooter } from './DataTable/TableFooter';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as CardView } from './DataTable/CardView';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Skeleton, SkeletonTheme } from './Skeleton/index';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Stack } from './Stack';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as ToggleButton, ToggleButtonGroup } from './ToggleButton';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Sticky } from './Sticky';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as SelectableBox } from './SelectableBox';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Variant } from './utils/constants';\nexport {\n OverflowScrollContext,\n OverflowScroll,\n useOverflowScroll,\n useOverflowScrollItems,\n // @ts-ignore: has yet to be converted to TypeScript\n} from './OverflowScroll';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Dropzone } from './Dropzone';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as messages } from './i18n';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Truncate } from './Truncate';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as ColorPicker } from './ColorPicker';\n\n// // // // // // // // // // // // // // // // // // // // // // // // // // //\n// Things that are deprecated\n// // // // // // // // // // // // // // // // // // // // // // // // // // //\n\n/** @deprecated Replaced by `Form.Checkbox`. */ // @ts-ignore: has yet to be converted to TypeScript\nexport { default as CheckBox } from './CheckBox';\n/** @deprecated Replaced by `Form.Checkbox` and `Form.CheckboxSet`. */ // @ts-ignore\nexport { default as CheckBoxGroup } from './CheckBoxGroup';\n/** @deprecated */ // @ts-ignore: has yet to be converted to TypeScript\nexport { default as Fieldset } from './Fieldset';\n/** @deprecated Replaced by `Form.Control`. */ // @ts-ignore: has yet to be converted to TypeScript\nexport { default as Input } from './Input';\n/** @deprecated Replaced by `Form.Control`. */ // @ts-ignore: has yet to be converted to TypeScript\nexport { default as InputSelect } from './InputSelect';\n/** @deprecated Replaced by `Form.Control`. */ // @ts-ignore: has yet to be converted to TypeScript\nexport { default as InputText } from './InputText';\n/** @deprecated */ // @ts-ignore: has yet to be converted to TypeScript\nexport { default as ListBox } from './ListBox';\n/** @deprecated */ // @ts-ignore: has yet to be converted to TypeScript\nexport { default as ListBoxOption } from './ListBoxOption';\n/** @deprecated Use `ModalDialog` instead. */ // @ts-ignore: has yet to be converted to TypeScript\nexport { default as Modal } from './Modal';\n/** @deprecated Replaced by `Form.Radio` and `Form.RadioSet`. */ // @ts-ignore: has yet to be converted to TypeScript\nexport { default as RadioButtonGroup, RadioButton } from './RadioButtonGroup';\n/** @deprecated Replaced by `Alert`. */ // @ts-ignore: has yet to be converted to TypeScript\nexport { default as StatusAlert } from './StatusAlert';\n/** @deprecated Replaced by `DataTable`. */ // @ts-ignore: has yet to be converted to TypeScript\nexport { default as Table } from './Table';\n/** @deprecated Replaced by `Form.Control`. */ // @ts-ignore: has yet to be converted to TypeScript\nexport { default as TextArea } from './TextArea';\n/** @deprecated Replaced by `Form.Group`. */ // @ts-ignore: has yet to be converted to TypeScript\nexport { default as ValidationFormGroup } from './ValidationFormGroup';\n\n// // // // // // // // // // // // // // // // // // // // // // // // // // //\n// Pass through any needed whole third-party library functionality\n// useTable for example is needed to use the DataTable component seamlessly\n// rather than setting a peer dependency in this project, we opt to tightly\n// couple these dependencies by passing through needed functionality.\n// // // // // // // // // // // // // // // // // // // // // // // // // // //\nexport {\n default as MediaQuery,\n useMediaQuery,\n Context as ResponsiveContext,\n} from 'react-responsive';\nexport {\n useTable,\n useFilters,\n useGlobalFilter,\n useSortBy,\n useGroupBy,\n useExpanded,\n usePagination,\n useRowSelect,\n useRowState,\n useColumnOrder,\n useResizeColumns,\n useBlockLayout,\n useAbsoluteLayout,\n useFlexLayout,\n} from 'react-table';\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,OAAO,IAAIC,KAAK,EAAEC,sBAAsB,QAAQ,SAAS;AAClE,SAASF,OAAO,IAAIG,MAAM,QAAQ,UAAU;AAC5C,SAASH,OAAO,IAAII,MAAM,EAAEC,WAAW,EAAEC,aAAa,QAAQ,UAAU;AACxE,SAASN,OAAO,IAAIO,IAAI,EAAEC,cAAc,QAAQ,QAAQ;AACxD,SAASR,OAAO,IAAIS,YAAY,QAAQ,gBAAgB;AACxD,SAAST,OAAO,IAAIU,SAAS,QAA4B,aAAa;AACtE,SACEV,OAAO,IAAIW,IAAI,EACfC,YAAY,EACZC,eAAe,EACfC,aAAa,EACbC,aAAa,EACbC,WAAW,EACXC,yBAAyB,EACzBC,mBAAmB,EACnBC,SAAS,EACTC,QAAQ,EACRC,SAAS,EAC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AmB;AACnB,SAASrL,OAAO,IAAIsL,aAAa,QAAQ,iBAAiB;AAC1D,8CAA8C;AAC9C,SAAStL,OAAO,IAAIuL,KAAK,QAAQ,SAAS;AAC1C,iEAAiE;AACjE,SAASvL,OAAO,IAAIwL,gBAAgB,EAAEC,WAAW,QAAQ,oBAAoB;AAC7E,wCAAwC;AACxC,SAASzL,OAAO,IAAI0L,WAAW,QAAQ,eAAe;AACtD,4CAA4C;AAC5C,SAAS1L,OAAO,IAAI2L,KAAK,QAAQ,SAAS;AAC1C,+CAA+C;AAC/C,SAAS3L,OAAO,IAAI4L,QAAQ,QAAQ,YAAY;AAChD,6CAA6C;AAC7C,SAAS5L,OAAO,IAAI6L,mBAAmB,QAAQ,uBAAuB;;AAEtE;AACA;AACA;AACA;AACA;AACA;AACA,SACE7L,OAAO,IAAI8L,UAAU,EACrBC,aAAa,EACbC,OAAO,IAAIC,iBAAiB,QACvB,kBAAkB;AACzB,SACEC,QAAQ,EACRC,UAAU,EACVC,eAAe,EACfC,SAAS,EACTC,UAAU,EACVC,WAAW,EACXC,aAAa,EACbC,YAAY,EACZC,WAAW,EACXC,cAAc,EACdC,gBAAgB,EAChBC,cAAc,EACdC,iBAAiB,EACjBC,aAAa,QACR,aAAa","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -27,7 +27,7 @@ function CheckboxFilter({
|
|
|
27
27
|
return (
|
|
28
28
|
<Form.Group role="group" aria-labelledby={ariaLabel.current}>
|
|
29
29
|
<FormLabel id={ariaLabel.current} className="pgn__checkbox-filter-label">{Header}</FormLabel>
|
|
30
|
-
<Form.CheckboxSet name={Header}>
|
|
30
|
+
<Form.CheckboxSet name={Header} value={checkedBoxes}>
|
|
31
31
|
{filterChoices.map(({ name, number, value }) => (
|
|
32
32
|
<Form.Checkbox
|
|
33
33
|
key={`${headerBasedId}${name}`}
|
|
@@ -75,4 +75,12 @@ describe('<CheckboxFilter />', () => {
|
|
|
75
75
|
const badge = screen.queryByText(String(palomino.number));
|
|
76
76
|
expect(badge).toBeNull();
|
|
77
77
|
});
|
|
78
|
+
|
|
79
|
+
it('renders unchecked checkboxes when filterValue is null', () => {
|
|
80
|
+
render(<CheckboxFilter column={{ ...props.column, filterValue: null }} />);
|
|
81
|
+
const checkboxes = screen.getAllByRole('checkbox');
|
|
82
|
+
checkboxes.forEach(checkbox => {
|
|
83
|
+
expect(checkbox).not.toBeChecked();
|
|
84
|
+
});
|
|
85
|
+
});
|
|
78
86
|
});
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { useMediaQuery } from 'react-responsive';
|
|
5
|
+
import { useIntl } from 'react-intl';
|
|
5
6
|
import ModalLayer from './ModalLayer';
|
|
6
7
|
// @ts-ignore for now - this needs to be converted to TypeScript
|
|
7
8
|
import ModalCloseButton from './ModalCloseButton';
|
|
@@ -18,8 +19,7 @@ import ModalDialogHero from './ModalDialogHero';
|
|
|
18
19
|
import Icon from '../Icon';
|
|
19
20
|
import IconButton from '../IconButton';
|
|
20
21
|
import { Close } from '../../icons';
|
|
21
|
-
|
|
22
|
-
export const MODAL_DIALOG_CLOSE_LABEL = 'Close';
|
|
22
|
+
import messages from './messages';
|
|
23
23
|
|
|
24
24
|
interface Props {
|
|
25
25
|
/** Specifies the content of the dialog */
|
|
@@ -64,7 +64,7 @@ function ModalDialog({
|
|
|
64
64
|
size = 'md',
|
|
65
65
|
variant = 'default',
|
|
66
66
|
hasCloseButton = true,
|
|
67
|
-
closeLabel
|
|
67
|
+
closeLabel,
|
|
68
68
|
isFullscreenScroll = false,
|
|
69
69
|
className,
|
|
70
70
|
isFullscreenOnMobile = false,
|
|
@@ -72,6 +72,8 @@ function ModalDialog({
|
|
|
72
72
|
zIndex,
|
|
73
73
|
isOverflowVisible,
|
|
74
74
|
}: Props) {
|
|
75
|
+
const intl = useIntl();
|
|
76
|
+
const closeButtonText = closeLabel || intl.formatMessage(messages.closeButtonText);
|
|
75
77
|
const isMobile = useMediaQuery({ query: '(max-width: 767.98px)' });
|
|
76
78
|
const showFullScreen = (isFullscreenOnMobile && isMobile);
|
|
77
79
|
return (
|
|
@@ -97,7 +99,7 @@ function ModalDialog({
|
|
|
97
99
|
iconAs={Icon}
|
|
98
100
|
invertColors={variant === 'dark'}
|
|
99
101
|
src={Close}
|
|
100
|
-
alt={
|
|
102
|
+
alt={closeButtonText}
|
|
101
103
|
/>
|
|
102
104
|
</div>
|
|
103
105
|
)}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { defineMessages } from 'react-intl';
|
|
2
|
+
|
|
3
|
+
const messages = defineMessages({
|
|
4
|
+
closeButtonText: {
|
|
5
|
+
id: 'pgn.Modal.closeButon',
|
|
6
|
+
defaultMessage: 'Close',
|
|
7
|
+
description: 'Accessible name for the close button in the modal dialog',
|
|
8
|
+
},
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
export default messages;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render, screen } from '@testing-library/react';
|
|
3
3
|
|
|
4
|
+
import { IntlProvider } from 'react-intl';
|
|
4
5
|
import AlertModal from '../AlertModal';
|
|
5
6
|
import { Info } from '../../../icons';
|
|
6
7
|
|
|
@@ -37,15 +38,17 @@ describe('<AlertModal />', () => {
|
|
|
37
38
|
|
|
38
39
|
it('renders the body when isOpen', () => {
|
|
39
40
|
render(
|
|
40
|
-
<
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
41
|
+
<IntlProvider locale="en" messages={{}}>
|
|
42
|
+
<AlertModal
|
|
43
|
+
title="some title"
|
|
44
|
+
isOpen={isOpen}
|
|
45
|
+
onClose={closeFn}
|
|
46
|
+
footerNode={<p>footer</p>}
|
|
47
|
+
isOverflowVisible={false}
|
|
48
|
+
>
|
|
49
|
+
<Body />
|
|
50
|
+
</AlertModal>
|
|
51
|
+
</IntlProvider>,
|
|
49
52
|
);
|
|
50
53
|
|
|
51
54
|
const body = screen.getByText('The body of alert.');
|
|
@@ -55,16 +58,18 @@ describe('<AlertModal />', () => {
|
|
|
55
58
|
describe('with variant prop', () => {
|
|
56
59
|
it('renders warning variant', () => {
|
|
57
60
|
render(
|
|
58
|
-
<
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
61
|
+
<IntlProvider locale="en" messages={{}}>
|
|
62
|
+
<AlertModal
|
|
63
|
+
title="warning"
|
|
64
|
+
isOpen={isOpen}
|
|
65
|
+
onClose={closeFn}
|
|
66
|
+
icon={Info}
|
|
67
|
+
footerNode={<p>footer</p>}
|
|
68
|
+
isOverflowVisible={false}
|
|
69
|
+
>
|
|
70
|
+
<Body />
|
|
71
|
+
</AlertModal>
|
|
72
|
+
</IntlProvider>,
|
|
68
73
|
);
|
|
69
74
|
|
|
70
75
|
const modalTitle = screen.getByTestId('title-icon');
|
|
@@ -73,16 +78,18 @@ describe('<AlertModal />', () => {
|
|
|
73
78
|
|
|
74
79
|
it('renders success variant', () => {
|
|
75
80
|
render(
|
|
76
|
-
<
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
81
|
+
<IntlProvider locale="en" messages={{}}>
|
|
82
|
+
<AlertModal
|
|
83
|
+
title="success"
|
|
84
|
+
isOpen={isOpen}
|
|
85
|
+
onClose={closeFn}
|
|
86
|
+
icon={Info}
|
|
87
|
+
footerNode={<p>footer</p>}
|
|
88
|
+
isOverflowVisible={false}
|
|
89
|
+
>
|
|
90
|
+
<Body />
|
|
91
|
+
</AlertModal>
|
|
92
|
+
</IntlProvider>,
|
|
86
93
|
);
|
|
87
94
|
|
|
88
95
|
const modalTitle = screen.getByTestId('title-icon');
|
|
@@ -91,16 +98,18 @@ describe('<AlertModal />', () => {
|
|
|
91
98
|
|
|
92
99
|
it('renders danger variant', () => {
|
|
93
100
|
render(
|
|
94
|
-
<
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
<IntlProvider locale="en" messages={{}}>
|
|
102
|
+
<AlertModal
|
|
103
|
+
title="danger"
|
|
104
|
+
isOpen={isOpen}
|
|
105
|
+
onClose={closeFn}
|
|
106
|
+
icon={Info}
|
|
107
|
+
footerNode={<p>footer</p>}
|
|
108
|
+
isOverflowVisible={false}
|
|
109
|
+
>
|
|
110
|
+
<Body />
|
|
111
|
+
</AlertModal>
|
|
112
|
+
</IntlProvider>,
|
|
104
113
|
);
|
|
105
114
|
|
|
106
115
|
const modalTitle = screen.getByTestId('title-icon');
|