@spothero/ui 15.10.9 → 16.0.0-beta.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/.eslintignore +1 -1
- package/babel.config.js +1 -0
- package/dex.config.js +1 -1
- package/jest.config.json +4 -2
- package/package.json +11 -26
- package/v2/index.js +1 -1
- package/v2/index.js.map +1 -1
- package/backlog/Alert/Alert.js +0 -37
- package/backlog/AutoSuggestInput/AutoSuggestInput.js +0 -474
- package/backlog/AutoSuggestInput/AutoSuggestItem.js +0 -99
- package/backlog/AutoSuggestInput/AutoSuggestList.js +0 -126
- package/backlog/Badge/Badge.js +0 -28
- package/backlog/Chart/Chart.js +0 -211
- package/backlog/Checkbox/Checkbox.js +0 -167
- package/backlog/DateTime/DatePicker.js +0 -279
- package/backlog/DateTime/DatePickerCalendar.js +0 -199
- package/backlog/DateTime/DatePickerCalendarNavigation.js +0 -102
- package/backlog/DateTime/DatePickerCalendarWithRange.js +0 -241
- package/backlog/DateTime/DateTimePicker.js +0 -216
- package/backlog/DateTime/DateTimeRangePicker.js +0 -530
- package/backlog/DateTime/TimePicker.js +0 -180
- package/backlog/DateTime/date-time-assertions.js +0 -66
- package/backlog/DateTime/index.js +0 -55
- package/backlog/ErrorBoundary/ErrorBoundary.js +0 -125
- package/backlog/Flyout/Flyout.js +0 -198
- package/backlog/Form/Form.js +0 -193
- package/backlog/Form/FormElementError.js +0 -24
- package/backlog/Form/FormGroup.js +0 -30
- package/backlog/Form/FormGroupError.js +0 -28
- package/backlog/Form/index.js +0 -39
- package/backlog/GooglePlacesSearchInput/GooglePlacesSearchInput.js +0 -253
- package/backlog/GooglePlacesSearchInput/PoweredByGoogle.js +0 -38
- package/backlog/GooglePlacesSearchInput/index.js +0 -23
- package/backlog/HorizontalRule/HorizontalRule.js +0 -30
- package/backlog/Label/Label.js +0 -31
- package/backlog/Notification/Notification.js +0 -178
- package/backlog/Notification/NotificationContainer.js +0 -131
- package/backlog/Notification/NotificationPropTypes.js +0 -37
- package/backlog/Notification/index.js +0 -23
- package/backlog/PasswordControl/PasswordControl.js +0 -201
- package/backlog/Portal/Portal.js +0 -110
- package/backlog/PulseLoader/PulseLoader.js +0 -62
- package/backlog/Radio/Radio.js +0 -135
- package/backlog/Radio/RadioGroup.js +0 -123
- package/backlog/Radio/index.js +0 -23
- package/backlog/RenderInBody/RenderInBody.js +0 -103
- package/backlog/Select/Select.js +0 -275
- package/backlog/Select/SelectItemPropTypes.js +0 -32
- package/backlog/Select/index.js +0 -23
- package/backlog/SelectControlled/SelectControlled.js +0 -270
- package/backlog/SelectControlled/index.js +0 -15
- package/backlog/Sprite/Sprite.js +0 -24
- package/backlog/Tabs/Tab.js +0 -94
- package/backlog/Tabs/TabContent.js +0 -56
- package/backlog/Tabs/TabNavigation.js +0 -108
- package/backlog/Tabs/TabPanel.js +0 -29
- package/backlog/Tabs/Tabs.js +0 -126
- package/backlog/Tabs/index.js +0 -47
- package/backlog/TextArea/TextArea.js +0 -155
- package/backlog/TextInput/TextInput.js +0 -230
- package/backlog/TextInput/TextInputPropTypes.js +0 -114
- package/backlog/TextInput/index.js +0 -23
- package/backlog/Tooltip/Tooltip.js +0 -249
- package/backlog/index.js +0 -393
- package/backlog/v1/components/Button/Button.js +0 -64
- package/backlog/v1/components/Button/button-props.js +0 -48
- package/backlog/v1/components/Image/Image.js +0 -193
- package/backlog/v1/components/Loader/Loader.js +0 -51
- package/backlog/v1/components/Modal/Modal.js +0 -325
- package/backlog/v1/components/Modal/ModalContent.js +0 -154
- package/backlog/v1/components/Modal/ModalFooter.js +0 -89
- package/backlog/v1/components/Modal/index.js +0 -31
- package/backlog/v1/components/Panel/Panel.js +0 -209
- package/backlog/v1/components/Table/Table.js +0 -336
- package/backlog/v1/components/Table/TableCell.js +0 -28
- package/backlog/v1/components/Table/TableCellPropTypes.js +0 -22
- package/backlog/v1/components/Table/TableControls.js +0 -56
- package/backlog/v1/components/Table/TableFooter.js +0 -63
- package/backlog/v1/components/Table/TableHeading.js +0 -126
- package/backlog/v1/components/Table/TableHeadingPropTypes.js +0 -35
- package/backlog/v1/components/Table/TableSortSelector.js +0 -125
- package/backlog/v1/components/Table/TableSortType.js +0 -11
- package/backlog/v1/components/Table/index.js +0 -47
- package/backlog/v1/components/TextButton/TextButton.js +0 -74
- package/backlog/v1/components/index.js +0 -75
- package/backlog/v1/utils/deprecate.js +0 -61
- package/styles/Alert/_Alert.scss +0 -51
- package/styles/AutoSuggestInput/_AutoSuggestInput.scss +0 -116
- package/styles/Badge/_Badge.scss +0 -33
- package/styles/Chart/_Chart.scss +0 -105
- package/styles/Chart/_chartist-settings.scss +0 -131
- package/styles/Chart/_chartist.scss +0 -295
- package/styles/Checkbox/_Checkbox.scss +0 -173
- package/styles/DateTime/_DatePicker.scss +0 -61
- package/styles/DateTime/_DatePickerCalendar.scss +0 -159
- package/styles/DateTime/_DateTime.scss +0 -4
- package/styles/DateTime/_DateTimePicker.scss +0 -46
- package/styles/DateTime/_TimePicker.scss +0 -30
- package/styles/ErrorBoundary/_ErrorBoundary.scss +0 -18
- package/styles/Flyout/_Flyout.scss +0 -73
- package/styles/Form/_Form.scss +0 -53
- package/styles/GooglePlacesSearchInput/_GooglePlacesSearchInput.scss +0 -3
- package/styles/GooglePlacesSearchInput/_PoweredByGoogle.scss +0 -21
- package/styles/HorizontalRule/_HorizontalRule.scss +0 -48
- package/styles/Label/_Label.scss +0 -6
- package/styles/Notification/_Notification.scss +0 -113
- package/styles/PasswordControl/_PasswordControl.scss +0 -86
- package/styles/PulseLoader/_PulseLoader.scss +0 -60
- package/styles/Radio/_Radio.scss +0 -93
- package/styles/Select/_Select.scss +0 -94
- package/styles/Tabs/_Tabs.scss +0 -57
- package/styles/TextArea/_TextArea.scss +0 -26
- package/styles/TextInput/_TextInput.scss +0 -43
- package/styles/Tooltip/_Tooltip.scss +0 -108
- package/styles/_index.scss +0 -34
- package/styles/common/sass/_control-sizing.scss +0 -5
- package/styles/common/sass/_disable-scrolling.scss +0 -7
- package/styles/common/sass/_forms.scss +0 -72
- package/styles/index.js +0 -50
- package/styles/v1/components/Button/Button.jsx +0 -48
- package/styles/v1/components/Button/Button.spec.js +0 -76
- package/styles/v1/components/Button/_Button.scss +0 -178
- package/styles/v1/components/Button/button-props.js +0 -30
- package/styles/v1/components/Button/stories/button.js +0 -20
- package/styles/v1/components/Button/stories/index.stories.js +0 -92
- package/styles/v1/components/Button/stories/overview.js +0 -87
- package/styles/v1/components/Button/stories/types.js +0 -31
- package/styles/v1/components/Image/Image.jsx +0 -175
- package/styles/v1/components/Image/Image.spec.js +0 -113
- package/styles/v1/components/Image/_Image.scss +0 -24
- package/styles/v1/components/Image/stories/Cloudinary.stories.js +0 -39
- package/styles/v1/components/Image/stories/Display.stories.js +0 -92
- package/styles/v1/components/Loader/Loader.jsx +0 -54
- package/styles/v1/components/Loader/Loader.spec.js +0 -67
- package/styles/v1/components/Loader/_Loader.scss +0 -18
- package/styles/v1/components/Loader/stories/Display.stories.js +0 -55
- package/styles/v1/components/Modal/Modal.jsx +0 -315
- package/styles/v1/components/Modal/Modal.spec.js +0 -293
- package/styles/v1/components/Modal/ModalContent.jsx +0 -126
- package/styles/v1/components/Modal/ModalFooter.jsx +0 -53
- package/styles/v1/components/Modal/_Modal.scss +0 -262
- package/styles/v1/components/Modal/index.js +0 -3
- package/styles/v1/components/Modal/stories/Content.stories.js +0 -314
- package/styles/v1/components/Modal/stories/Display.stories.js +0 -208
- package/styles/v1/components/Modal/stories/Methods.stories.js +0 -44
- package/styles/v1/components/Modal/stories/Width.stories.js +0 -82
- package/styles/v1/components/Modal/stories/helpers/ReduxConsumer.jsx +0 -21
- package/styles/v1/components/Panel/Panel.jsx +0 -202
- package/styles/v1/components/Panel/Panel.spec.js +0 -196
- package/styles/v1/components/Panel/_Panel.scss +0 -55
- package/styles/v1/components/Panel/stories/Display.stories.js +0 -82
- package/styles/v1/components/Panel/stories/Methods.stories.js +0 -76
- package/styles/v1/components/Table/Table.jsx +0 -367
- package/styles/v1/components/Table/Table.spec.js +0 -526
- package/styles/v1/components/Table/TableCell.jsx +0 -17
- package/styles/v1/components/Table/TableCellPropTypes.js +0 -10
- package/styles/v1/components/Table/TableControls.jsx +0 -61
- package/styles/v1/components/Table/TableFooter.jsx +0 -72
- package/styles/v1/components/Table/TableHeading.jsx +0 -58
- package/styles/v1/components/Table/TableHeadingPropTypes.js +0 -20
- package/styles/v1/components/Table/TableSortSelector.jsx +0 -63
- package/styles/v1/components/Table/TableSortType.js +0 -4
- package/styles/v1/components/Table/_Table.scss +0 -263
- package/styles/v1/components/Table/index.js +0 -5
- package/styles/v1/components/Table/stories/Display.stories.js +0 -194
- package/styles/v1/components/Table/stories/Methods.stories.js +0 -141
- package/styles/v1/components/Table/stories/helpers/TableCellEmail.jsx +0 -25
- package/styles/v1/components/Table/stories/helpers/TableCustomRow.jsx +0 -35
- package/styles/v1/components/Table/stories/helpers/TableHeadingEmail.jsx +0 -20
- package/styles/v1/components/Table/stories/helpers/table-data.js +0 -26
- package/styles/v1/components/Table/stories/helpers/table-headers.js +0 -14
- package/styles/v1/components/TextButton/TextButton.jsx +0 -78
- package/styles/v1/components/TextButton/TextButton.spec.js +0 -95
- package/styles/v1/components/TextButton/_TextButton.scss +0 -114
- package/styles/v1/components/TextButton/stories/Display.stories.js +0 -46
- package/styles/v1/components/index.js +0 -7
- package/styles/v1/utils/deprecate.js +0 -45
- package/styles/v2/components/Accordion/Accordion.jsx +0 -1
- package/styles/v2/components/Accordion/Accordion.stories.js +0 -103
- package/styles/v2/components/Accordion/index.js +0 -7
- package/styles/v2/components/Accordion/styles/button.js +0 -16
- package/styles/v2/components/Accordion/styles/container.js +0 -9
- package/styles/v2/components/Accordion/styles/index.js +0 -19
- package/styles/v2/components/Accordion/styles/panel.js +0 -7
- package/styles/v2/components/Alert/Alert.jsx +0 -121
- package/styles/v2/components/Alert/Alert.stories.js +0 -50
- package/styles/v2/components/Alert/index.js +0 -1
- package/styles/v2/components/Alert/styles/index.js +0 -166
- package/styles/v2/components/AutoSuggestSelect/AutoSuggestSelect.jsx +0 -187
- package/styles/v2/components/AutoSuggestSelect/index.js +0 -1
- package/styles/v2/components/Badge/Badge.jsx +0 -1
- package/styles/v2/components/Badge/Badge.stories.js +0 -32
- package/styles/v2/components/Badge/styles/index.js +0 -29
- package/styles/v2/components/Button/Button.jsx +0 -31
- package/styles/v2/components/Button/Button.spec.js +0 -29
- package/styles/v2/components/Button/Button.styles.js +0 -156
- package/styles/v2/components/Button/button-props.js +0 -66
- package/styles/v2/components/Button/index.js +0 -2
- package/styles/v2/components/Button/stories/button.js +0 -59
- package/styles/v2/components/Button/stories/index.stories.js +0 -82
- package/styles/v2/components/Button/stories/overview.js +0 -73
- package/styles/v2/components/Card/Card.jsx +0 -16
- package/styles/v2/components/Card/Card.stories.js +0 -33
- package/styles/v2/components/Checkbox/Checkbox.jsx +0 -1
- package/styles/v2/components/Checkbox/Checkbox.stories.js +0 -41
- package/styles/v2/components/Checkbox/index.js +0 -1
- package/styles/v2/components/Checkbox/styles/index.js +0 -31
- package/styles/v2/components/Container/Container.jsx +0 -10
- package/styles/v2/components/Container/Container.stories.js +0 -52
- package/styles/v2/components/Container/Container.styles.js +0 -11
- package/styles/v2/components/Divider/Divider.jsx +0 -31
- package/styles/v2/components/Divider/Divider.stories.js +0 -41
- package/styles/v2/components/Divider/Divider.styles.js +0 -15
- package/styles/v2/components/FormControl/FormControl.jsx +0 -77
- package/styles/v2/components/Grid/Grid.jsx +0 -25
- package/styles/v2/components/Grid/Grid.stories.js +0 -128
- package/styles/v2/components/Grid/Grid.styles.js +0 -12
- package/styles/v2/components/Grid/GridItem.jsx +0 -10
- package/styles/v2/components/Grid/GridItem.styles.js +0 -8
- package/styles/v2/components/Grid/index.js +0 -2
- package/styles/v2/components/Heading/Heading.jsx +0 -23
- package/styles/v2/components/Heading/Heading.stories.js +0 -40
- package/styles/v2/components/Heading/Heading.styles.js +0 -61
- package/styles/v2/components/Icon/Icon.jsx +0 -1
- package/styles/v2/components/Icon/Icon.stories.js +0 -38
- package/styles/v2/components/Image/Image.jsx +0 -97
- package/styles/v2/components/Image/Image.spec.js +0 -100
- package/styles/v2/components/Image/Image.stories.js +0 -142
- package/styles/v2/components/Input/Input.jsx +0 -51
- package/styles/v2/components/Input/Input.stories.js +0 -60
- package/styles/v2/components/Input/index.js +0 -1
- package/styles/v2/components/Input/styles/index.js +0 -49
- package/styles/v2/components/Link/Link.jsx +0 -1
- package/styles/v2/components/Link/Link.stories.js +0 -82
- package/styles/v2/components/Link/Link.styles.js +0 -38
- package/styles/v2/components/List/List.jsx +0 -57
- package/styles/v2/components/List/List.stories.js +0 -96
- package/styles/v2/components/List/index.js +0 -2
- package/styles/v2/components/List/styles/index.js +0 -12
- package/styles/v2/components/List/styles/item.styles.js +0 -5
- package/styles/v2/components/Loader/Loader.jsx +0 -75
- package/styles/v2/components/Loader/Loader.stories.js +0 -145
- package/styles/v2/components/Modal/Modal.jsx +0 -71
- package/styles/v2/components/Modal/Modal.stories.js +0 -278
- package/styles/v2/components/Modal/index.js +0 -1
- package/styles/v2/components/Modal/styles/body.js +0 -24
- package/styles/v2/components/Modal/styles/closeButton.js +0 -17
- package/styles/v2/components/Modal/styles/dialog.js +0 -10
- package/styles/v2/components/Modal/styles/dialogContainer.js +0 -10
- package/styles/v2/components/Modal/styles/footer.js +0 -5
- package/styles/v2/components/Modal/styles/header.js +0 -7
- package/styles/v2/components/Modal/styles/index.js +0 -47
- package/styles/v2/components/Modal/styles/overlay.js +0 -4
- package/styles/v2/components/Popover/Popover.jsx +0 -28
- package/styles/v2/components/Popover/Popover.stories.js +0 -113
- package/styles/v2/components/Popover/PopoverArrow.jsx +0 -10
- package/styles/v2/components/Popover/PopoverCloseButton.jsx +0 -10
- package/styles/v2/components/Popover/PopoverContent.jsx +0 -41
- package/styles/v2/components/Popover/index.js +0 -3
- package/styles/v2/components/Popover/styles/index.js +0 -21
- package/styles/v2/components/Popover/styles/popover-arrow.js +0 -5
- package/styles/v2/components/Popover/styles/popover-body.js +0 -5
- package/styles/v2/components/Popover/styles/popover-close-button.js +0 -17
- package/styles/v2/components/Popover/styles/popover-content.js +0 -16
- package/styles/v2/components/Popover/styles/popover-header.js +0 -6
- package/styles/v2/components/Popover/styles/popper.js +0 -5
- package/styles/v2/components/Radio/Radio.jsx +0 -50
- package/styles/v2/components/Radio/Radio.stories.js +0 -155
- package/styles/v2/components/Radio/RadioGroup.jsx +0 -69
- package/styles/v2/components/Radio/index.js +0 -2
- package/styles/v2/components/Radio/styles/index.js +0 -52
- package/styles/v2/components/Select/Select.jsx +0 -62
- package/styles/v2/components/Select/Select.stories.js +0 -60
- package/styles/v2/components/Select/index.js +0 -1
- package/styles/v2/components/Select/styles/index.js +0 -29
- package/styles/v2/components/Skeleton/Skeleton.stories.jsx +0 -34
- package/styles/v2/components/Skeleton/Skeleton.styles.js +0 -3
- package/styles/v2/components/Skeleton/index.js +0 -1
- package/styles/v2/components/Spinner/Spinner.jsx +0 -40
- package/styles/v2/components/Spinner/Spinner.stories.js +0 -98
- package/styles/v2/components/Spinner/Spinner.styles.js +0 -57
- package/styles/v2/components/Switch/Switch.jsx +0 -52
- package/styles/v2/components/Switch/Switch.stories.js +0 -88
- package/styles/v2/components/Switch/index.js +0 -1
- package/styles/v2/components/Switch/styles/index.js +0 -17
- package/styles/v2/components/Table/Table.jsx +0 -1
- package/styles/v2/components/Table/Table.stories.js +0 -90
- package/styles/v2/components/Table/Table.styles.js +0 -66
- package/styles/v2/components/Table/index.js +0 -2
- package/styles/v2/components/Tabs/Tabs.jsx +0 -39
- package/styles/v2/components/Tabs/Tabs.stories.js +0 -47
- package/styles/v2/components/Tabs/combineSizeWithVariant.js +0 -29
- package/styles/v2/components/Tabs/index.js +0 -2
- package/styles/v2/components/Tabs/styles/index.js +0 -40
- package/styles/v2/components/Text/Text.jsx +0 -35
- package/styles/v2/components/Text/Text.stories.js +0 -47
- package/styles/v2/components/Text/Text.styles.js +0 -33
- package/styles/v2/components/Text/combineAsWithVariant.js +0 -106
- package/styles/v2/components/Text/options.js +0 -92
- package/styles/v2/components/ThemeProvider/ThemeProvider.jsx +0 -39
- package/styles/v2/components/ThemeProvider/ThemeProvider.stories.js +0 -85
- package/styles/v2/components/index.js +0 -70
- package/styles/v2/components/styles.js +0 -21
- package/styles/v2/theme/base/breakpoints.js +0 -16
- package/styles/v2/theme/base/colors.js +0 -136
- package/styles/v2/theme/base/index.js +0 -5
- package/styles/v2/theme/base/sizes.js +0 -48
- package/styles/v2/theme/base/typography.js +0 -24
- package/styles/v2/theme/base/zindices.js +0 -17
- package/styles/v2/theme/global.js +0 -118
- package/styles/v2/theme/index.js +0 -27
- package/styles/v2/utils/Spaces.js +0 -16
- package/v1/assets-manifest.json +0 -5
- package/v1/index.html +0 -1
- package/v1/index.js +0 -3
- package/v1/index.js.LICENSE.txt +0 -23
- package/v1/index.js.map +0 -1
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import {build, fake} from '@jackfranklin/test-data-bot';
|
|
4
|
-
|
|
5
|
-
import Component from './List';
|
|
6
|
-
|
|
7
|
-
import {ListItem} from './index';
|
|
8
|
-
import Spaces from 'v2/utils/Spaces';
|
|
9
|
-
import Text from 'v2/components/Text/Text';
|
|
10
|
-
|
|
11
|
-
import disableArgs from 'storybook/utils/disable-args';
|
|
12
|
-
|
|
13
|
-
const DISABLE_TYPE = disableArgs('type');
|
|
14
|
-
|
|
15
|
-
const randomListText = build('ListText', {
|
|
16
|
-
fields: {
|
|
17
|
-
text: fake(f => f.random.words(10)),
|
|
18
|
-
},
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
const Usage = ({type}) => (
|
|
22
|
-
<Text>
|
|
23
|
-
<List{type ? ` type="${type}"` : ''}>
|
|
24
|
-
<br />
|
|
25
|
-
<Spaces />
|
|
26
|
-
<ListItem>
|
|
27
|
-
<br />
|
|
28
|
-
<Spaces spaces={6} />
|
|
29
|
-
...
|
|
30
|
-
<br />
|
|
31
|
-
<Spaces />
|
|
32
|
-
</ListItem>
|
|
33
|
-
<br />
|
|
34
|
-
<Spaces />
|
|
35
|
-
...
|
|
36
|
-
<br />
|
|
37
|
-
</List>
|
|
38
|
-
</Text>
|
|
39
|
-
);
|
|
40
|
-
|
|
41
|
-
Usage.propTypes = {
|
|
42
|
-
type: PropTypes.string,
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export default {
|
|
46
|
-
title: 'v2/List',
|
|
47
|
-
component: Component,
|
|
48
|
-
subcomponents: {ListItem},
|
|
49
|
-
parameters: {
|
|
50
|
-
importBy: 'List',
|
|
51
|
-
removeBaseHtmlClass: true,
|
|
52
|
-
},
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
const OverviewTemplate = props => (
|
|
56
|
-
<Component {...props}>
|
|
57
|
-
{Array(10)
|
|
58
|
-
.fill(null)
|
|
59
|
-
.map((_, index) => (
|
|
60
|
-
<ListItem key={index}>{randomListText().text}</ListItem>
|
|
61
|
-
))}
|
|
62
|
-
</Component>
|
|
63
|
-
);
|
|
64
|
-
|
|
65
|
-
export const Overview = OverviewTemplate.bind({});
|
|
66
|
-
Overview.parameters = {
|
|
67
|
-
usage: [<Usage key={1} />],
|
|
68
|
-
};
|
|
69
|
-
export const Unordered = OverviewTemplate.bind({});
|
|
70
|
-
Unordered.argTypes = DISABLE_TYPE;
|
|
71
|
-
Unordered.parameters = {
|
|
72
|
-
usage: [<Usage type="unordered" key={1} />],
|
|
73
|
-
};
|
|
74
|
-
Unordered.args = {
|
|
75
|
-
type: 'unordered',
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
export const Ordered = OverviewTemplate.bind({});
|
|
79
|
-
Ordered.argTypes = DISABLE_TYPE;
|
|
80
|
-
Ordered.parameters = {
|
|
81
|
-
usage: [<Usage type="ordered" key={1} />],
|
|
82
|
-
};
|
|
83
|
-
Ordered.args = {
|
|
84
|
-
type: 'ordered',
|
|
85
|
-
};
|
|
86
|
-
export const Unstyled = OverviewTemplate.bind({});
|
|
87
|
-
Unstyled.parameters = {
|
|
88
|
-
usage: [<Usage key={1} />],
|
|
89
|
-
};
|
|
90
|
-
Unstyled.argTypes = {
|
|
91
|
-
...DISABLE_TYPE,
|
|
92
|
-
...disableArgs('stylePosition'),
|
|
93
|
-
};
|
|
94
|
-
Unstyled.args = {
|
|
95
|
-
type: 'unstyled',
|
|
96
|
-
};
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import {CircularProgress as ChakraCircularProgress} from '@chakra-ui/react';
|
|
4
|
-
|
|
5
|
-
const Loader = ({
|
|
6
|
-
color = 'success',
|
|
7
|
-
loaderBackgroundColor = 'transparent',
|
|
8
|
-
isInfinite = true,
|
|
9
|
-
size = 12,
|
|
10
|
-
thickness = 2,
|
|
11
|
-
trackColor = 'gray.medium',
|
|
12
|
-
value = 0,
|
|
13
|
-
...props
|
|
14
|
-
}) => {
|
|
15
|
-
/* -------------------------------------------------------------------- *\
|
|
16
|
-
Note: Since most of the props for this component control multiple
|
|
17
|
-
styles at a time, it was decided that it made the most sense to set
|
|
18
|
-
up the default style-related properties here in lou of creating an
|
|
19
|
-
overly complex styles file.
|
|
20
|
-
\* -------------------------------------------------------------------- */
|
|
21
|
-
const loaderDefaultProps = {
|
|
22
|
-
color,
|
|
23
|
-
isIndeterminate: isInfinite,
|
|
24
|
-
size,
|
|
25
|
-
thickness,
|
|
26
|
-
trackColor,
|
|
27
|
-
value,
|
|
28
|
-
capIsRound: true,
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
return (
|
|
32
|
-
<ChakraCircularProgress
|
|
33
|
-
sx={{
|
|
34
|
-
'& svg > circle:first-of-type': {
|
|
35
|
-
fill: loaderBackgroundColor,
|
|
36
|
-
},
|
|
37
|
-
}}
|
|
38
|
-
{...loaderDefaultProps}
|
|
39
|
-
{...props}
|
|
40
|
-
/>
|
|
41
|
-
);
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
Loader.propTypes = {
|
|
45
|
-
/**
|
|
46
|
-
* The color of the Progress bar. Use color names defined within `theme/base/colors`.
|
|
47
|
-
*/
|
|
48
|
-
color: PropTypes.string,
|
|
49
|
-
/**
|
|
50
|
-
* Determines if Loader spins for an infinite amount of time. If `true` value prop will be ignored.
|
|
51
|
-
*/
|
|
52
|
-
isInfinite: PropTypes.bool,
|
|
53
|
-
/**
|
|
54
|
-
* Sets the background color of the Loader (inside the circle). Use color names defined within `theme/base/colors`.
|
|
55
|
-
*/
|
|
56
|
-
loaderBackgroundColor: PropTypes.string,
|
|
57
|
-
/**
|
|
58
|
-
* The size of the Loader. Used as both height and width. Number corresponds to Size token.
|
|
59
|
-
*/
|
|
60
|
-
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
61
|
-
/**
|
|
62
|
-
* The thickness of the Loader. Number is used as pixel width.
|
|
63
|
-
*/
|
|
64
|
-
thickness: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
65
|
-
/**
|
|
66
|
-
* The color of the Progress bar track. Use color names defined within `theme/base/colors`.
|
|
67
|
-
*/
|
|
68
|
-
trackColor: PropTypes.string,
|
|
69
|
-
/**
|
|
70
|
-
* The number passed in corresponds to the percentage "done" of the Loader.
|
|
71
|
-
*/
|
|
72
|
-
value: PropTypes.number,
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
export default Loader;
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import disableArgs from 'storybook/utils/disable-args';
|
|
4
|
-
import {createRangeControl} from 'storybook/utils/create-control';
|
|
5
|
-
|
|
6
|
-
import Component from './Loader';
|
|
7
|
-
|
|
8
|
-
export default {
|
|
9
|
-
title: 'v2/Loader',
|
|
10
|
-
component: Component,
|
|
11
|
-
parameters: {
|
|
12
|
-
removeBaseHtmlClass: true,
|
|
13
|
-
importBy: 'Loader',
|
|
14
|
-
},
|
|
15
|
-
argTypes: {
|
|
16
|
-
color: {
|
|
17
|
-
options: [
|
|
18
|
-
'primary.default',
|
|
19
|
-
'secondary.default',
|
|
20
|
-
'white',
|
|
21
|
-
'success',
|
|
22
|
-
'warning',
|
|
23
|
-
'error',
|
|
24
|
-
],
|
|
25
|
-
control: {
|
|
26
|
-
type: 'radio',
|
|
27
|
-
labels: {
|
|
28
|
-
'primary.default': 'Primary',
|
|
29
|
-
'secondary.default': 'Secondary',
|
|
30
|
-
white: 'White',
|
|
31
|
-
success: 'Success',
|
|
32
|
-
warning: 'Warning',
|
|
33
|
-
error: 'Error',
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
isInfinite: {
|
|
38
|
-
control: {
|
|
39
|
-
type: 'boolean',
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
loaderBackgroundColor: {
|
|
43
|
-
options: [
|
|
44
|
-
'white',
|
|
45
|
-
'gray.light',
|
|
46
|
-
'gray.medium',
|
|
47
|
-
'gray.dark',
|
|
48
|
-
'transparent',
|
|
49
|
-
],
|
|
50
|
-
control: {
|
|
51
|
-
type: 'radio',
|
|
52
|
-
labels: {
|
|
53
|
-
white: 'White',
|
|
54
|
-
'primary.default': 'Primary',
|
|
55
|
-
'gray.light': 'Light Gray',
|
|
56
|
-
'gray.medium': 'Medium Gray',
|
|
57
|
-
'gray.dark': 'Dark Gray',
|
|
58
|
-
transparent: 'Transparent',
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
size: {
|
|
63
|
-
options: [6, 12, 28, 48],
|
|
64
|
-
control: {
|
|
65
|
-
type: 'radio',
|
|
66
|
-
labels: {
|
|
67
|
-
6: 'Small',
|
|
68
|
-
12: 'Medium',
|
|
69
|
-
28: 'Large',
|
|
70
|
-
48: 'Extra Large',
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
trackColor: {
|
|
75
|
-
options: [
|
|
76
|
-
'primary.default',
|
|
77
|
-
'gray.light',
|
|
78
|
-
'gray.medium',
|
|
79
|
-
'gray.dark',
|
|
80
|
-
'white',
|
|
81
|
-
],
|
|
82
|
-
control: {
|
|
83
|
-
type: 'radio',
|
|
84
|
-
labels: {
|
|
85
|
-
'primary.default': 'Primary',
|
|
86
|
-
'gray.light': 'Light Gray',
|
|
87
|
-
'gray.medium': 'Medium Gray',
|
|
88
|
-
'gray.dark': 'Dark Gray',
|
|
89
|
-
white: 'White',
|
|
90
|
-
},
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
...createRangeControl({
|
|
94
|
-
name: 'thickness',
|
|
95
|
-
min: 2,
|
|
96
|
-
max: 16,
|
|
97
|
-
step: 2,
|
|
98
|
-
}),
|
|
99
|
-
...createRangeControl({name: 'value', min: 1, max: 100}),
|
|
100
|
-
},
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
const Template = props => <Component {...props} />;
|
|
104
|
-
|
|
105
|
-
export const Overview = Template.bind({});
|
|
106
|
-
Overview.args = {
|
|
107
|
-
color: 'success',
|
|
108
|
-
isInfinite: false,
|
|
109
|
-
loaderBackgroundColor: 'transparent',
|
|
110
|
-
size: 12,
|
|
111
|
-
thickness: 2,
|
|
112
|
-
trackColor: 'gray.medium',
|
|
113
|
-
value: 35,
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
export const FiniteLoader = Template.bind({});
|
|
117
|
-
FiniteLoader.argTypes = {
|
|
118
|
-
...disableArgs([
|
|
119
|
-
'color',
|
|
120
|
-
'isInfinite',
|
|
121
|
-
'loaderBackgroundColor',
|
|
122
|
-
'size',
|
|
123
|
-
'thickness',
|
|
124
|
-
'trackColor',
|
|
125
|
-
]),
|
|
126
|
-
};
|
|
127
|
-
FiniteLoader.args = {
|
|
128
|
-
isInfinite: false,
|
|
129
|
-
value: 35,
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
export const InfiniteLoader = Template.bind({});
|
|
133
|
-
InfiniteLoader.argTypes = {
|
|
134
|
-
...disableArgs([
|
|
135
|
-
'color',
|
|
136
|
-
'loaderBackgroundColor',
|
|
137
|
-
'size',
|
|
138
|
-
'thickness',
|
|
139
|
-
'trackColor',
|
|
140
|
-
'value',
|
|
141
|
-
]),
|
|
142
|
-
};
|
|
143
|
-
InfiniteLoader.args = {
|
|
144
|
-
isInfinite: true,
|
|
145
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import React, {forwardRef} from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import {
|
|
4
|
-
Modal as ChakraModal,
|
|
5
|
-
ModalOverlay,
|
|
6
|
-
ModalContent,
|
|
7
|
-
ModalHeader,
|
|
8
|
-
ModalFooter,
|
|
9
|
-
ModalBody,
|
|
10
|
-
ModalCloseButton,
|
|
11
|
-
useBreakpointValue,
|
|
12
|
-
Box,
|
|
13
|
-
} from '@chakra-ui/react';
|
|
14
|
-
import headerStyles from './styles/header';
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* @param {boolean} isMobile - Whether or not the Modal is opened in a mobile viewport
|
|
18
|
-
* @param {boolean} isOpen - Whether or not the Modal is open
|
|
19
|
-
* @param {React.ReactNode} children - The header text of the modal
|
|
20
|
-
* @param {()=>void} [onClose] - Callback invoked to close the Modal. Not required, but strongly suggested.
|
|
21
|
-
* @param {('sm'|'md'|'lg')} [size] - The size of the modal. If unspecified, uses "md" styles.
|
|
22
|
-
* @param {React.ReactNode} [header] - The node for the header. Likely just a string.
|
|
23
|
-
* @param {React.ReactNode} [footer] - The node for the footer. Likely some control buttons.
|
|
24
|
-
* @param {React.ReactNode} [hideCloseButton] - Whether or not to show the close button
|
|
25
|
-
* @returns {React.ReactElement} - The Modal component
|
|
26
|
-
*/
|
|
27
|
-
const Modal = forwardRef((props, ref) => {
|
|
28
|
-
const {header, footer, children, hideCloseButton, isMobile} = props;
|
|
29
|
-
|
|
30
|
-
return (
|
|
31
|
-
<ChakraModal
|
|
32
|
-
motionPreset={isMobile ? 'slideInBottom' : 'scale'}
|
|
33
|
-
{...props}
|
|
34
|
-
ref={ref}
|
|
35
|
-
>
|
|
36
|
-
<ModalOverlay />
|
|
37
|
-
<ModalContent>
|
|
38
|
-
{header ? (
|
|
39
|
-
<ModalHeader>{header}</ModalHeader>
|
|
40
|
-
) : (
|
|
41
|
-
<Box {...headerStyles(props)} />
|
|
42
|
-
)}
|
|
43
|
-
{hideCloseButton ? null : <ModalCloseButton />}
|
|
44
|
-
<ModalBody>{children}</ModalBody>
|
|
45
|
-
|
|
46
|
-
{footer ? <ModalFooter>{footer}</ModalFooter> : null}
|
|
47
|
-
</ModalContent>
|
|
48
|
-
</ChakraModal>
|
|
49
|
-
);
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
export default Modal;
|
|
53
|
-
|
|
54
|
-
Modal.propTypes = {
|
|
55
|
-
/** Whether or not the Modal is opened in a mobile viewport */
|
|
56
|
-
isMobile: PropTypes.bool.isRequired,
|
|
57
|
-
/** Whether or not the Modal is open */
|
|
58
|
-
isOpen: PropTypes.bool.isRequired,
|
|
59
|
-
/** React children. Body of the Modal. */
|
|
60
|
-
children: PropTypes.node.isRequired,
|
|
61
|
-
/** Callback invoked to close the Modal. Not required, but strongly suggested. */
|
|
62
|
-
onClose: PropTypes.func,
|
|
63
|
-
/** The size of the modal. If unspecified, uses md styles. */
|
|
64
|
-
size: PropTypes.oneOf(['sm', 'md', 'lg']),
|
|
65
|
-
/** The node for the header. Likely just a string (optional) */
|
|
66
|
-
header: PropTypes.node,
|
|
67
|
-
/** The node for the footer. Likely some control buttons (optional) */
|
|
68
|
-
footer: PropTypes.node,
|
|
69
|
-
/** Whether or not to show the close button (optional) */
|
|
70
|
-
hideCloseButton: PropTypes.bool,
|
|
71
|
-
};
|
|
@@ -1,278 +0,0 @@
|
|
|
1
|
-
import React, {useState} from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import {Box, useBreakpointValue} from '@chakra-ui/react';
|
|
4
|
-
import disableArgs from 'storybook/utils/disable-args';
|
|
5
|
-
import {createSelectControl} from 'storybook/utils/create-control';
|
|
6
|
-
|
|
7
|
-
import {Modal} from './index';
|
|
8
|
-
import Button from 'v2/components/Button/Button';
|
|
9
|
-
import Text from 'v2/components/Text/Text';
|
|
10
|
-
import Heading from 'v2/components/Heading/Heading';
|
|
11
|
-
import Accordion, {
|
|
12
|
-
AccordionIcon,
|
|
13
|
-
AccordionItem,
|
|
14
|
-
AccordionPanel,
|
|
15
|
-
AccordionButton,
|
|
16
|
-
} from 'v2/components/Accordion';
|
|
17
|
-
|
|
18
|
-
export default {
|
|
19
|
-
title: 'v2/Modal',
|
|
20
|
-
component: Modal,
|
|
21
|
-
parameters: {
|
|
22
|
-
importBy: 'Modal',
|
|
23
|
-
removeBaseHtmlClass: true,
|
|
24
|
-
chakraLink: 'https://chakra-ui.com/docs/overlay/Modal',
|
|
25
|
-
},
|
|
26
|
-
argTypes: {
|
|
27
|
-
...createSelectControl('size', ['sm', 'md', 'lg']),
|
|
28
|
-
...disableArgs(['isOpen', 'onClose', 'footer']),
|
|
29
|
-
hideCloseButton: {
|
|
30
|
-
control: {
|
|
31
|
-
type: 'boolean',
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
header: {
|
|
35
|
-
control: {type: 'text'},
|
|
36
|
-
},
|
|
37
|
-
children: {
|
|
38
|
-
control: {type: 'text'},
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
args: {
|
|
42
|
-
size: 'md',
|
|
43
|
-
},
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
export const Transactional = props => {
|
|
47
|
-
const [open, setOpen] = useState(false);
|
|
48
|
-
const isMobile = useBreakpointValue({base: true, tablet: false});
|
|
49
|
-
|
|
50
|
-
return (
|
|
51
|
-
<Box>
|
|
52
|
-
<Text marginBottom={2}>
|
|
53
|
-
A "Transactional" modal just refers to one with a{' '}
|
|
54
|
-
<code>footer</code> prop.
|
|
55
|
-
</Text>
|
|
56
|
-
<Button onClick={() => setOpen(true)}>Open Modal</Button>
|
|
57
|
-
|
|
58
|
-
<Modal
|
|
59
|
-
{...props}
|
|
60
|
-
footer={
|
|
61
|
-
<>
|
|
62
|
-
<Button
|
|
63
|
-
onClick={() => setOpen(false)}
|
|
64
|
-
variant="secondary"
|
|
65
|
-
marginRight={4}
|
|
66
|
-
>
|
|
67
|
-
Cancel
|
|
68
|
-
</Button>
|
|
69
|
-
<Button
|
|
70
|
-
onClick={() => setOpen(false)}
|
|
71
|
-
variant="primary"
|
|
72
|
-
>
|
|
73
|
-
Submit
|
|
74
|
-
</Button>
|
|
75
|
-
</>
|
|
76
|
-
}
|
|
77
|
-
isMobile={isMobile}
|
|
78
|
-
isOpen={open}
|
|
79
|
-
onClose={() => setOpen(false)}
|
|
80
|
-
>
|
|
81
|
-
{props.children}
|
|
82
|
-
</Modal>
|
|
83
|
-
</Box>
|
|
84
|
-
);
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
Transactional.propTypes = {
|
|
88
|
-
children: PropTypes.string,
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
Transactional.args = {
|
|
92
|
-
header: 'Transactional',
|
|
93
|
-
children:
|
|
94
|
-
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent tincidunt lectus et mauris viverra, nec tincidunt arcu rhoncus. Duis pellentesque vestibulum orci ut mattis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Duis vel malesuada ligula. Cras dapibus enim sem. Suspendisse potenti. Mauris tempus non tortor eu placerat. Pellentesque faucibus dui vitae purus iaculis, ac convallis turpis gravida. Ut ac massa pretium, finibus quam vitae, aliquet libero. orci ut mattis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Duis vel malesuada ligula. Cras dapibus enim sem. Suspendisse potenti. Mauris tempus non tortor eu placerat. Pellentesque faucibus dui vitae purus iaculis, ac convallis turpis gravida. Ut ac massa pretium, finibus quam vitae, aliquet libero.',
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
export const Passive = props => {
|
|
98
|
-
const [open, setOpen] = useState(false);
|
|
99
|
-
const isMobile = useBreakpointValue({base: true, tablet: false});
|
|
100
|
-
|
|
101
|
-
return (
|
|
102
|
-
<Box>
|
|
103
|
-
<Text marginBottom={2}>
|
|
104
|
-
A "Passive" modal just refers to one with no{' '}
|
|
105
|
-
<code>footer</code> prop.
|
|
106
|
-
</Text>
|
|
107
|
-
<Button onClick={() => setOpen(true)}>Open Modal</Button>
|
|
108
|
-
|
|
109
|
-
<Modal {...props} isMobile={isMobile} isOpen={open} onClose={() => setOpen(false)}>
|
|
110
|
-
{props.children}
|
|
111
|
-
</Modal>
|
|
112
|
-
</Box>
|
|
113
|
-
);
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
Passive.propTypes = {
|
|
117
|
-
children: PropTypes.string,
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
Passive.args = {
|
|
121
|
-
header: 'Passive',
|
|
122
|
-
children:
|
|
123
|
-
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent tincidunt lectus et mauris viverra, nec tincidunt arcu rhoncus. Duis pellentesque vestibulum orci ut mattis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Duis vel malesuada ligula. Cras dapibus enim sem. Suspendisse potenti. Mauris tempus non tortor eu placerat. Pellentesque faucibus dui vitae purus iaculis, ac convallis turpis gravida. Ut ac massa pretium, finibus quam vitae, aliquet libero. orci ut mattis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Duis vel malesuada ligula. Cras dapibus enim sem. Suspendisse potenti. Mauris tempus non tortor eu placerat. Pellentesque faucibus dui vitae purus iaculis, ac convallis turpis gravida. Ut ac massa pretium, finibus quam vitae, aliquet libero.',
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
export const TransactionalWithExpandingContent = props => {
|
|
127
|
-
const [open, setOpen] = useState(false);
|
|
128
|
-
const accordionRefs = [React.createRef(), React.createRef()];
|
|
129
|
-
const isMobile = useBreakpointValue({base: true, tablet: false});
|
|
130
|
-
|
|
131
|
-
const handleAccordionChange = index => {
|
|
132
|
-
if (accordionRefs[index]) {
|
|
133
|
-
// Timeout so that scroll doesn't happen until accordion animation complete
|
|
134
|
-
setTimeout(() => {
|
|
135
|
-
accordionRefs[index].current.scrollIntoView({
|
|
136
|
-
behavior: 'smooth',
|
|
137
|
-
block: 'start',
|
|
138
|
-
});
|
|
139
|
-
}, 150);
|
|
140
|
-
}
|
|
141
|
-
};
|
|
142
|
-
|
|
143
|
-
return (
|
|
144
|
-
<Box>
|
|
145
|
-
<Text marginBottom={2}>
|
|
146
|
-
When content inside a modal dynamically expands, the modal
|
|
147
|
-
should scroll to that new content.
|
|
148
|
-
</Text>
|
|
149
|
-
<Text marginBottom={2}>
|
|
150
|
-
However, this is something we'll need to implement on a
|
|
151
|
-
case by case basis when it applies.
|
|
152
|
-
</Text>
|
|
153
|
-
<Text marginBottom={2}>
|
|
154
|
-
Feel free to check the code of this demo to see an example of
|
|
155
|
-
how we might do that.
|
|
156
|
-
</Text>
|
|
157
|
-
<Button onClick={() => setOpen(true)}>Open Modal</Button>
|
|
158
|
-
|
|
159
|
-
<Modal
|
|
160
|
-
{...props}
|
|
161
|
-
header="Transactional with Expanding Content"
|
|
162
|
-
footer={
|
|
163
|
-
<>
|
|
164
|
-
<Button
|
|
165
|
-
onClick={() => setOpen(false)}
|
|
166
|
-
variant="secondary"
|
|
167
|
-
marginRight={4}
|
|
168
|
-
>
|
|
169
|
-
Cancel
|
|
170
|
-
</Button>
|
|
171
|
-
<Button variant="primary">Submit</Button>
|
|
172
|
-
</>
|
|
173
|
-
}
|
|
174
|
-
isMobile={isMobile}
|
|
175
|
-
isOpen={open}
|
|
176
|
-
onClose={() => setOpen(false)}
|
|
177
|
-
>
|
|
178
|
-
<Box>
|
|
179
|
-
<Text marginBottom={2}>
|
|
180
|
-
Try opening an Accordion when it is at the very bottom
|
|
181
|
-
of the modal.
|
|
182
|
-
</Text>
|
|
183
|
-
<Text marginBottom={2}>
|
|
184
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
|
185
|
-
Praesent tincidunt lectus et mauris viverra, nec
|
|
186
|
-
tincidunt arcu rhoncus. Duis pellentesque vestibulum
|
|
187
|
-
orci ut mattis. Class aptent taciti sociosqu ad litora
|
|
188
|
-
torquent per conubia nostra, per inceptos himenaeos.
|
|
189
|
-
Duis vel malesuada ligula. Cras dapibus enim sem.
|
|
190
|
-
Suspendisse potenti. Mauris tempus non tortor eu
|
|
191
|
-
placerat. Pellentesque faucibus dui vitae purus iaculis,
|
|
192
|
-
ac convallis turpis gravida. Ut ac massa pretium,
|
|
193
|
-
finibus quam vitae, aliquet libero. orci ut mattis.
|
|
194
|
-
Class aptent taciti sociosqu ad litora torquent per
|
|
195
|
-
conubia nostra, per inceptos himenaeos. Duis vel
|
|
196
|
-
malesuada ligula. Cras dapibus enim sem. Suspendisse
|
|
197
|
-
potenti. Mauris tempus non tortor eu placerat.
|
|
198
|
-
Pellentesque faucibus dui vitae purus iaculis, ac
|
|
199
|
-
convallis turpis gravida. Ut ac massa pretium, finibus
|
|
200
|
-
quam vitae, aliquet libero.
|
|
201
|
-
</Text>
|
|
202
|
-
<Accordion onChange={handleAccordionChange} allowToggle>
|
|
203
|
-
<AccordionItem ref={accordionRefs[0]}>
|
|
204
|
-
<Heading as="h3">
|
|
205
|
-
<AccordionButton>
|
|
206
|
-
<Box flex="1" textAlign="left">
|
|
207
|
-
Accordion 1
|
|
208
|
-
</Box>
|
|
209
|
-
<AccordionIcon />
|
|
210
|
-
</AccordionButton>
|
|
211
|
-
</Heading>
|
|
212
|
-
<AccordionPanel>
|
|
213
|
-
<Text>
|
|
214
|
-
Lorem ipsum dolor sit amet, consectetur
|
|
215
|
-
adipiscing elit. Praesent tincidunt lectus
|
|
216
|
-
et mauris viverra, nec tincidunt arcu
|
|
217
|
-
rhoncus. Duis pellentesque vestibulum orci
|
|
218
|
-
ut mattis. Class aptent taciti sociosqu ad
|
|
219
|
-
litora torquent per conubia nostra, per
|
|
220
|
-
inceptos himenaeos. Duis vel malesuada
|
|
221
|
-
ligula. Cras dapibus enim sem. Suspendisse
|
|
222
|
-
potenti. Mauris tempus non tortor eu
|
|
223
|
-
placerat. Pellentesque faucibus dui vitae
|
|
224
|
-
purus iaculis, ac convallis turpis gravida.
|
|
225
|
-
Ut ac massa pretium, finibus quam vitae,
|
|
226
|
-
aliquet libero. Aliquam et urna condimentum,
|
|
227
|
-
sagittis nisl hendrerit, elementum velit.
|
|
228
|
-
Nullam quis nisl dictum, suscipit ligula
|
|
229
|
-
nec, elementum libero. Nullam eu lorem
|
|
230
|
-
convallis, dictum nisl in, condimentum dui.
|
|
231
|
-
Lorem ipsum dolor sit amet, consectetur
|
|
232
|
-
adipiscing elit. Viva
|
|
233
|
-
</Text>
|
|
234
|
-
</AccordionPanel>
|
|
235
|
-
</AccordionItem>
|
|
236
|
-
<AccordionItem ref={accordionRefs[1]}>
|
|
237
|
-
<Heading as="h3">
|
|
238
|
-
<AccordionButton>
|
|
239
|
-
<Box flex="1" textAlign="left">
|
|
240
|
-
Accordion 2
|
|
241
|
-
</Box>
|
|
242
|
-
<AccordionIcon />
|
|
243
|
-
</AccordionButton>
|
|
244
|
-
</Heading>
|
|
245
|
-
<AccordionPanel>
|
|
246
|
-
<Text>
|
|
247
|
-
Lorem ipsum dolor sit amet, consectetur
|
|
248
|
-
adipiscing elit. Praesent tincidunt lectus
|
|
249
|
-
et mauris viverra, nec tincidunt arcu
|
|
250
|
-
rhoncus. Duis pellentesque vestibulum orci
|
|
251
|
-
ut mattis. Class aptent taciti sociosqu ad
|
|
252
|
-
litora torquent per conubia nostra, per
|
|
253
|
-
inceptos himenaeos. Duis vel malesuada
|
|
254
|
-
ligula. Cras dapibus enim sem. Suspendisse
|
|
255
|
-
potenti. Mauris tempus non tortor eu
|
|
256
|
-
placerat. Pellentesque faucibus dui vitae
|
|
257
|
-
purus iaculis, ac convallis turpis gravida.
|
|
258
|
-
Ut ac massa pretium, finibus quam vitae,
|
|
259
|
-
aliquet libero. Aliquam et urna condimentum,
|
|
260
|
-
sagittis nisl hendrerit, elementum velit.
|
|
261
|
-
Nullam quis nisl dictum, suscipit ligula
|
|
262
|
-
nec, elementum libero. Nullam eu lorem
|
|
263
|
-
convallis, dictum nisl in, condimentum dui.
|
|
264
|
-
Lorem ipsum dolor sit amet, consectetur
|
|
265
|
-
adipiscing elit. Viva
|
|
266
|
-
</Text>
|
|
267
|
-
</AccordionPanel>
|
|
268
|
-
</AccordionItem>
|
|
269
|
-
</Accordion>
|
|
270
|
-
</Box>
|
|
271
|
-
</Modal>
|
|
272
|
-
</Box>
|
|
273
|
-
);
|
|
274
|
-
};
|
|
275
|
-
|
|
276
|
-
TransactionalWithExpandingContent.argTypes = {
|
|
277
|
-
...disableArgs(['children', 'header']),
|
|
278
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {default as Modal} from './Modal';
|