@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,85 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {Box, Code} from '@chakra-ui/react';
|
|
3
|
-
|
|
4
|
-
import Component from './ThemeProvider';
|
|
5
|
-
import Spaces from 'v2/utils/Spaces';
|
|
6
|
-
import Text from 'v2/components/Text/Text';
|
|
7
|
-
import disableArgs from 'storybook/utils/disable-args';
|
|
8
|
-
|
|
9
|
-
const Usage = () => {
|
|
10
|
-
return (
|
|
11
|
-
<>
|
|
12
|
-
// RootComponent.jsx
|
|
13
|
-
<br />
|
|
14
|
-
...
|
|
15
|
-
<br />
|
|
16
|
-
return (
|
|
17
|
-
<br />
|
|
18
|
-
<Spaces />
|
|
19
|
-
<ThemeProvider>
|
|
20
|
-
<br />
|
|
21
|
-
<Spaces spaces={6} />
|
|
22
|
-
<App/>
|
|
23
|
-
<br />
|
|
24
|
-
<Spaces />
|
|
25
|
-
</ThemeProvider>
|
|
26
|
-
<br />
|
|
27
|
-
);
|
|
28
|
-
<br />
|
|
29
|
-
...
|
|
30
|
-
</>
|
|
31
|
-
);
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
export default {
|
|
35
|
-
title: 'v2/ThemeProvider',
|
|
36
|
-
component: Component,
|
|
37
|
-
parameters: {
|
|
38
|
-
removeBaseHtmlClass: true,
|
|
39
|
-
usage: [<Usage key={1} />],
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
const Template = (props, {hasDarkBackground}) => {
|
|
44
|
-
const contentTextColor = hasDarkBackground
|
|
45
|
-
? 'text.primary.dark'
|
|
46
|
-
: 'text.primary.light';
|
|
47
|
-
|
|
48
|
-
return (
|
|
49
|
-
<Box>
|
|
50
|
-
<Text mb={8} color={contentTextColor}>
|
|
51
|
-
As the name implies, this is a theme context provider that all
|
|
52
|
-
of your v2 components utilize. It is required by all apps moving
|
|
53
|
-
to v2
|
|
54
|
-
</Text>
|
|
55
|
-
<Text />
|
|
56
|
-
<Text mb={8} color={contentTextColor}>
|
|
57
|
-
ThemeProvider has a <Code>theme</Code> prop that takes a theme
|
|
58
|
-
object. Unlike how we are both overriding and extending
|
|
59
|
-
Chakra's default theme, this property only extends our
|
|
60
|
-
default theme configuration.
|
|
61
|
-
</Text>{' '}
|
|
62
|
-
<Text mb={8} color={contentTextColor}>
|
|
63
|
-
ThemeProvider has a <Code>useLegacyOverrides</Code> prop that is
|
|
64
|
-
a boolean. If true, the ThemeProvider will insert the typography
|
|
65
|
-
styling from .spothero-html
|
|
66
|
-
</Text>{' '}
|
|
67
|
-
<Text mb={8} color={contentTextColor}>
|
|
68
|
-
ThemeProvider also has a <Code>disableExternalFonts</Code> prop
|
|
69
|
-
that is a boolean. If true, the ThemeProvider will not load the
|
|
70
|
-
font files from Google's CDN, and you will be able to handle
|
|
71
|
-
fonts on a project-level.
|
|
72
|
-
</Text>{' '}
|
|
73
|
-
</Box>
|
|
74
|
-
);
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
export const ThemeProvider = Template.bind({});
|
|
78
|
-
ThemeProvider.parameters = {
|
|
79
|
-
importBy: 'ThemeProvider',
|
|
80
|
-
};
|
|
81
|
-
ThemeProvider.argTypes = disableArgs([
|
|
82
|
-
'theme',
|
|
83
|
-
'children',
|
|
84
|
-
'useLegacyOverrides',
|
|
85
|
-
]);
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
export {
|
|
2
|
-
AccordionIcon,
|
|
3
|
-
AccordionItem,
|
|
4
|
-
AccordionPanel,
|
|
5
|
-
AccordionButton,
|
|
6
|
-
default as Accordion,
|
|
7
|
-
} from './Accordion';
|
|
8
|
-
export {default as Alert} from './Alert';
|
|
9
|
-
export * from './Button';
|
|
10
|
-
export * from './Table';
|
|
11
|
-
export * from './Skeleton';
|
|
12
|
-
export {TabList, TabPanels, Tab, TabPanel, default as Tabs} from './Tabs';
|
|
13
|
-
export {default as Select} from './Select';
|
|
14
|
-
export {default as Switch} from './Switch';
|
|
15
|
-
export {default as Link} from './Link/Link';
|
|
16
|
-
export {default as Text} from './Text/Text';
|
|
17
|
-
export {default as Grid, GridItem} from './Grid';
|
|
18
|
-
export {default as List, ListItem} from './List';
|
|
19
|
-
export {default as Spinner} from './Spinner/Spinner';
|
|
20
|
-
export {default as Heading} from './Heading/Heading';
|
|
21
|
-
export {default as Container} from './Container/Container';
|
|
22
|
-
export {default as ThemeProvider} from './ThemeProvider/ThemeProvider';
|
|
23
|
-
export {default as Card} from './Card/Card';
|
|
24
|
-
export {default as Icon} from './Icon/Icon';
|
|
25
|
-
export {default as Image} from './Image/Image';
|
|
26
|
-
export {default as Loader} from './Loader/Loader';
|
|
27
|
-
export {default as Checkbox} from './Checkbox';
|
|
28
|
-
export {default as Input} from './Input';
|
|
29
|
-
export {default as Divider} from './Divider/Divider';
|
|
30
|
-
export {
|
|
31
|
-
Popover,
|
|
32
|
-
PopoverAnchor,
|
|
33
|
-
PopoverTrigger,
|
|
34
|
-
PopoverContent,
|
|
35
|
-
} from './Popover';
|
|
36
|
-
export {Modal} from './Modal';
|
|
37
|
-
export {Radio, RadioGroup} from './Radio';
|
|
38
|
-
export {AutoSuggestSelect} from './AutoSuggestSelect';
|
|
39
|
-
export {default as Badge} from './Badge/Badge';
|
|
40
|
-
|
|
41
|
-
// generic chakra reexports
|
|
42
|
-
export {
|
|
43
|
-
Box,
|
|
44
|
-
Flex,
|
|
45
|
-
Fade,
|
|
46
|
-
Slide,
|
|
47
|
-
Portal,
|
|
48
|
-
HStack,
|
|
49
|
-
useToken,
|
|
50
|
-
useTheme,
|
|
51
|
-
ScaleFade,
|
|
52
|
-
SlideFade,
|
|
53
|
-
createIcon,
|
|
54
|
-
InputGroup,
|
|
55
|
-
Breadcrumb,
|
|
56
|
-
useClipboard,
|
|
57
|
-
useDisclosure,
|
|
58
|
-
useMediaQuery,
|
|
59
|
-
BreadcrumbItem,
|
|
60
|
-
BreadcrumbLink,
|
|
61
|
-
InputLeftAddon,
|
|
62
|
-
InputRightAddon,
|
|
63
|
-
InputLeftElement,
|
|
64
|
-
InputRightElement,
|
|
65
|
-
useBreakpointValue,
|
|
66
|
-
useControllableProp,
|
|
67
|
-
Input as BasicInput,
|
|
68
|
-
useControllableState,
|
|
69
|
-
usePrefersReducedMotion,
|
|
70
|
-
} from '@chakra-ui/react';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export {default as List} from './List/styles';
|
|
2
|
-
export {default as Table} from './Table/Table.styles';
|
|
3
|
-
export {default as Text} from './Text/Text.styles';
|
|
4
|
-
export {default as Link} from './Link/Link.styles';
|
|
5
|
-
export {default as Accordion} from './Accordion/styles';
|
|
6
|
-
export {default as Button} from './Button/Button.styles';
|
|
7
|
-
export {default as GridItem} from './Grid/GridItem.styles';
|
|
8
|
-
export {default as Spinner} from './Spinner/Spinner.styles';
|
|
9
|
-
export {default as Heading} from './Heading/Heading.styles';
|
|
10
|
-
export {default as Divider} from './Divider/Divider.styles';
|
|
11
|
-
export {default as Tabs} from './Tabs/styles';
|
|
12
|
-
export {default as Select} from './Select/styles';
|
|
13
|
-
export {default as Checkbox} from './Checkbox/styles';
|
|
14
|
-
export {default as Alert} from './Alert/styles';
|
|
15
|
-
export {default as Switch} from './Switch/styles';
|
|
16
|
-
export {default as Popover} from './Popover/styles';
|
|
17
|
-
export {default as Input} from './Input/styles';
|
|
18
|
-
export {default as Modal} from './Modal/styles';
|
|
19
|
-
export {default as Radio} from './Radio/styles';
|
|
20
|
-
export {default as Skeleton} from './Skeleton/Skeleton.styles';
|
|
21
|
-
export {default as Badge} from './Badge/styles';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import {createBreakpoints} from '@chakra-ui/theme-tools';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* The "base" breakpoint is Chakra's default non-responsive value (from 0 upwards).
|
|
5
|
-
* While we don't explicitly enable a "mobile" breakpoint, we can consider "base" and
|
|
6
|
-
* "mobile" the same for all intents and purposes for mobile-first responsive styling.
|
|
7
|
-
* @see https://chakra-ui.com/docs/features/responsive-styles#customizing-breakpoints
|
|
8
|
-
*/
|
|
9
|
-
const breakpoints = createBreakpoints({
|
|
10
|
-
mobileXL: '30rem', // 480px
|
|
11
|
-
tablet: '48rem', // 768px
|
|
12
|
-
desktop: '64rem', // 1024px
|
|
13
|
-
desktopXL: '90rem', // 1440px
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
export default breakpoints;
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
const white = '#ffffff';
|
|
2
|
-
const black = '#000000';
|
|
3
|
-
const brandBlue = '#0082ff';
|
|
4
|
-
|
|
5
|
-
const gray = {
|
|
6
|
-
50: '#f6f7f9',
|
|
7
|
-
100: '#e1e6ec',
|
|
8
|
-
200: '#cbd4de',
|
|
9
|
-
300: '#afbdcc',
|
|
10
|
-
400: '#94a7ba',
|
|
11
|
-
500: '#7890a8',
|
|
12
|
-
600: '#537495',
|
|
13
|
-
700: '#3b5261',
|
|
14
|
-
800: '#2f3f4b',
|
|
15
|
-
900: '#26323c',
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
const blue = {
|
|
19
|
-
50: '#f6fbfd',
|
|
20
|
-
100: '#e6f8fd',
|
|
21
|
-
200: '#c0e9fb',
|
|
22
|
-
300: '#96d3fa',
|
|
23
|
-
400: '#5baafa',
|
|
24
|
-
500: '#1271eb',
|
|
25
|
-
600: '#1d58f2',
|
|
26
|
-
700: '#1b46da',
|
|
27
|
-
800: '#1735a6',
|
|
28
|
-
900: '#132b7f',
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
const navy = {
|
|
32
|
-
50: '#f4fafc',
|
|
33
|
-
100: '#e4f7fb',
|
|
34
|
-
200: '#bfebf6',
|
|
35
|
-
300: '#92d9f4',
|
|
36
|
-
400: '#51b7f0',
|
|
37
|
-
500: '#2590ea',
|
|
38
|
-
600: '#1a6cda',
|
|
39
|
-
700: '#1b55b6',
|
|
40
|
-
800: '#194185',
|
|
41
|
-
900: '#002d5b',
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
const green = {
|
|
45
|
-
50: '#ecf8f7',
|
|
46
|
-
100: '#d3f7ef',
|
|
47
|
-
200: '#a4f3d9',
|
|
48
|
-
300: '#65eabf',
|
|
49
|
-
400: '#1edb96',
|
|
50
|
-
500: '#09c66a',
|
|
51
|
-
600: '#08ad50',
|
|
52
|
-
700: '#008547',
|
|
53
|
-
800: '#11703e',
|
|
54
|
-
900: '#115a35',
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
const yellow = {
|
|
58
|
-
50: '#f9f5e5',
|
|
59
|
-
100: '#faf0bd',
|
|
60
|
-
200: '#f6e67c',
|
|
61
|
-
300: '#f1d439',
|
|
62
|
-
400: '#ffbf02',
|
|
63
|
-
500: '#e19706',
|
|
64
|
-
600: '#cf7404',
|
|
65
|
-
700: '#ae5708',
|
|
66
|
-
800: '#8e440e',
|
|
67
|
-
900: '#743710',
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
const red = {
|
|
71
|
-
50: '#fdf9f8',
|
|
72
|
-
100: '#fdeef3',
|
|
73
|
-
200: '#fbcee6',
|
|
74
|
-
300: '#fba4d1',
|
|
75
|
-
400: '#fc6bad',
|
|
76
|
-
500: '#fc4086',
|
|
77
|
-
600: '#f7265f',
|
|
78
|
-
700: '#e01438',
|
|
79
|
-
800: '#b4193c',
|
|
80
|
-
900: '#901530',
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
const colors = {
|
|
84
|
-
primary: {
|
|
85
|
-
...blue,
|
|
86
|
-
default: blue['500'],
|
|
87
|
-
},
|
|
88
|
-
secondary: {
|
|
89
|
-
...navy,
|
|
90
|
-
default: navy['900'],
|
|
91
|
-
},
|
|
92
|
-
gray: {
|
|
93
|
-
...gray,
|
|
94
|
-
light: gray['50'],
|
|
95
|
-
medium: gray['200'],
|
|
96
|
-
dark: gray['600'],
|
|
97
|
-
},
|
|
98
|
-
red: {
|
|
99
|
-
...red,
|
|
100
|
-
default: red['700'],
|
|
101
|
-
},
|
|
102
|
-
green: {
|
|
103
|
-
...green,
|
|
104
|
-
default: green['700'],
|
|
105
|
-
},
|
|
106
|
-
yellow: {
|
|
107
|
-
...yellow,
|
|
108
|
-
default: yellow['400'],
|
|
109
|
-
},
|
|
110
|
-
success: green['700'],
|
|
111
|
-
warning: yellow['400'],
|
|
112
|
-
error: red['700'],
|
|
113
|
-
accent: gray['200'],
|
|
114
|
-
text: {
|
|
115
|
-
primary: {
|
|
116
|
-
light: black,
|
|
117
|
-
dark: white,
|
|
118
|
-
},
|
|
119
|
-
secondary: {
|
|
120
|
-
light: gray['600'],
|
|
121
|
-
},
|
|
122
|
-
link: {
|
|
123
|
-
light: blue['500'],
|
|
124
|
-
dark: white,
|
|
125
|
-
},
|
|
126
|
-
},
|
|
127
|
-
background: {
|
|
128
|
-
gray: gray['50'],
|
|
129
|
-
white,
|
|
130
|
-
},
|
|
131
|
-
white,
|
|
132
|
-
black,
|
|
133
|
-
brandBlue,
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
export default colors;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
const container = {
|
|
2
|
-
base: '100%', // 640px
|
|
3
|
-
tablet: '45rem', // 720px
|
|
4
|
-
desktop: '72rem', // 1152px
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
const sizes = {
|
|
8
|
-
container,
|
|
9
|
-
0: '0',
|
|
10
|
-
0.5: '0.125rem', // 2px
|
|
11
|
-
1: '0.25rem', // 4px
|
|
12
|
-
1.5: '0.375rem', // 6px
|
|
13
|
-
2: '0.5rem', // 8px
|
|
14
|
-
2.5: '0.625rem', // 10px
|
|
15
|
-
3: '0.75rem', // 12px
|
|
16
|
-
3.5: '0.875rem', // 14px
|
|
17
|
-
4: '1rem', // 16px
|
|
18
|
-
5: '1.25rem', // 20px
|
|
19
|
-
6: '1.5rem', // 24px
|
|
20
|
-
7: '1.75rem', // 28px
|
|
21
|
-
8: '2rem', // 32px
|
|
22
|
-
9: '2.25rem', // 36px
|
|
23
|
-
10: '2.5rem', // 40px
|
|
24
|
-
12: '3rem', // 48px
|
|
25
|
-
14: '3.5rem', // 56px
|
|
26
|
-
16: '4rem', // 64px
|
|
27
|
-
20: '5rem', // 80px
|
|
28
|
-
24: '6rem', // 96px
|
|
29
|
-
28: '7rem', // 112px
|
|
30
|
-
32: '8rem', // 128px
|
|
31
|
-
36: '9rem', // 144px
|
|
32
|
-
40: '10rem', // 160px
|
|
33
|
-
44: '11rem', // 176px
|
|
34
|
-
48: '12rem', // 192px
|
|
35
|
-
52: '13rem', // 208px
|
|
36
|
-
56: '14rem', // 224px
|
|
37
|
-
60: '15rem', // 240px
|
|
38
|
-
64: '16rem', // 256px
|
|
39
|
-
72: '18rem', // 272px
|
|
40
|
-
80: '20rem', // 288px
|
|
41
|
-
96: '24rem', // 384px
|
|
42
|
-
px: '1px',
|
|
43
|
-
full: '100%',
|
|
44
|
-
max: 'max-content',
|
|
45
|
-
min: 'min-content',
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export default sizes;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export const fonts = {
|
|
2
|
-
heading: `"Open Sans", sans-serif`,
|
|
3
|
-
body: `"Open Sans", sans-serif`,
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
export const fontSizes = {
|
|
7
|
-
'5xl': '3.5rem', // 56px
|
|
8
|
-
'4xl': '3rem', // 48px
|
|
9
|
-
'3xl': '2.5rem', // 40px
|
|
10
|
-
'2xl': '2rem', // 32px
|
|
11
|
-
xl: '1.5rem', // 24px
|
|
12
|
-
lg: '1.25rem', // 20px
|
|
13
|
-
md: '1.125rem', // 18px
|
|
14
|
-
base: '1rem', // 16px
|
|
15
|
-
sm: '0.875rem', // 14px
|
|
16
|
-
xs: '0.75rem', // 12px
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export const fontWeights = {
|
|
20
|
-
light: 300,
|
|
21
|
-
normal: 400,
|
|
22
|
-
semibold: 600,
|
|
23
|
-
bold: 700,
|
|
24
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
const indices = {
|
|
2
|
-
hide: -100, // equivalent to $z-index-negative in fe-core (https://github.com/spothero/fe-core/blob/main/utils/_defaults.scss)
|
|
3
|
-
auto: 'auto',
|
|
4
|
-
base: 0, // equivalent to $z-index-back in fe-core
|
|
5
|
-
layer1: 100, // equivalent to $z-index-mid in fe-core
|
|
6
|
-
layer2: 200, // equivalent to $z-index-fore in fe-core
|
|
7
|
-
layer3: 300, // equivalent to $z-index-layer1 in fe-core
|
|
8
|
-
layer4: 400, // equivalent to $z-index-layer2 in fe-core
|
|
9
|
-
layer5: 500, // equivalent to $z-index-layer3 in fe-core
|
|
10
|
-
layer6: 600, // equivalent to $z-index-layer4 in fe-core
|
|
11
|
-
layer7: 700, // equivalent to $z-index-modal-shim in fe-core
|
|
12
|
-
layer8: 800, // equivalent to $z-index-modal in fe-core
|
|
13
|
-
layer9: 900, // equivalent to $z-index-notification in fe-core
|
|
14
|
-
layer10: 1000, // equivalent to $z-index-top in fe-core
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export default indices;
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import {Global} from '@emotion/react';
|
|
4
|
-
import {colors, fontSizes, fontWeights} from 'v2/theme/base';
|
|
5
|
-
|
|
6
|
-
const global = {
|
|
7
|
-
'html, body': {
|
|
8
|
-
color: 'text.primary.light',
|
|
9
|
-
},
|
|
10
|
-
// By default, Chakra has all svgs set to 'display: block',
|
|
11
|
-
// this breaks the layout of some older components, so now
|
|
12
|
-
// we set all svgs to 'display: inline-block;' and only set
|
|
13
|
-
// 'display: block;' on the components that need it
|
|
14
|
-
// (as of 3/9/2021 only the v1 AutoSuggestInput component
|
|
15
|
-
// needed this update)
|
|
16
|
-
svg: {
|
|
17
|
-
display: 'inline-block',
|
|
18
|
-
},
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export default global;
|
|
22
|
-
|
|
23
|
-
export const Fonts = () => (
|
|
24
|
-
<Global
|
|
25
|
-
styles={`
|
|
26
|
-
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');
|
|
27
|
-
/* Copied from https://fonts.googleapis.com/css2?family=Open+Sans:wght@700&display=swap */
|
|
28
|
-
/* latin-ext */
|
|
29
|
-
@font-face {
|
|
30
|
-
font-family: 'Open Sans';
|
|
31
|
-
font-style: normal;
|
|
32
|
-
font-weight: 700;
|
|
33
|
-
src: url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN7rgOXOhpKKSTj5PW.woff2) format('woff2');
|
|
34
|
-
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
35
|
-
}
|
|
36
|
-
/* latin-ext */
|
|
37
|
-
@font-face {
|
|
38
|
-
font-family: 'Open Sans';
|
|
39
|
-
font-style: normal;
|
|
40
|
-
font-weight: 600;
|
|
41
|
-
src: url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOXOhpKKSTj5PW.woff2) format('woff2');
|
|
42
|
-
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
43
|
-
}
|
|
44
|
-
/* latin-ext */
|
|
45
|
-
@font-face {
|
|
46
|
-
font-family: 'Open Sans';
|
|
47
|
-
font-style: normal;
|
|
48
|
-
font-weight: 400;
|
|
49
|
-
src: url(https://fonts.gstatic.com/s/opensans/v18/mem8YaGs126MiZpBA-UFW50bf8pkAp6a.woff2) format('woff2');
|
|
50
|
-
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
51
|
-
}
|
|
52
|
-
/* latin-ext */
|
|
53
|
-
@font-face {
|
|
54
|
-
font-family: 'Open Sans';
|
|
55
|
-
font-style: normal;
|
|
56
|
-
font-weight: 300;
|
|
57
|
-
src: url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OXOhpKKSTj5PW.woff2) format('woff2');
|
|
58
|
-
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
59
|
-
}
|
|
60
|
-
`}
|
|
61
|
-
/>
|
|
62
|
-
);
|
|
63
|
-
|
|
64
|
-
export const LegacyOverrides = ({useLegacyOverrides}) =>
|
|
65
|
-
useLegacyOverrides ? (
|
|
66
|
-
<Global
|
|
67
|
-
styles={`
|
|
68
|
-
h1,
|
|
69
|
-
h2,
|
|
70
|
-
h3,
|
|
71
|
-
h4,
|
|
72
|
-
h5,
|
|
73
|
-
h6 {
|
|
74
|
-
margin-top: 0;
|
|
75
|
-
font-weight: ${fontWeights.semibold};
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.heading-sm {
|
|
79
|
-
font-size: ${fontSizes.base};
|
|
80
|
-
}
|
|
81
|
-
.heading-md {
|
|
82
|
-
font-size: ${fontSizes.md};
|
|
83
|
-
}
|
|
84
|
-
.heading-lg {
|
|
85
|
-
font-size: ${fontSizes['5xl']};
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
p {
|
|
89
|
-
line-height: 1.5;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
a {
|
|
93
|
-
outline: none;
|
|
94
|
-
text-align: left;
|
|
95
|
-
color: ${colors.primary.default};
|
|
96
|
-
text-decoration: none;
|
|
97
|
-
|
|
98
|
-
&:active,
|
|
99
|
-
&:focus {
|
|
100
|
-
outline: none;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
&:hover {
|
|
104
|
-
color: ${colors.primary['700']};
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
small {
|
|
109
|
-
font-size: ${fontSizes.xs};
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
`}
|
|
113
|
-
/>
|
|
114
|
-
) : null;
|
|
115
|
-
LegacyOverrides.propTypes = {
|
|
116
|
-
/** If true, this will use the old `spothero-html` base styles */
|
|
117
|
-
useLegacyOverrides: PropTypes.bool,
|
|
118
|
-
};
|
package/styles/v2/theme/index.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import global from './global';
|
|
2
|
-
import * as base from './base';
|
|
3
|
-
// import merge from 'lodash/merge';
|
|
4
|
-
import {extendTheme} from '@chakra-ui/react';
|
|
5
|
-
import chakraDefaultTheme from '@chakra-ui/theme';
|
|
6
|
-
|
|
7
|
-
import * as components from 'v2/components/styles';
|
|
8
|
-
|
|
9
|
-
// use this to extend the base theme of chakra, this adds on top of what is defined in baseConfig
|
|
10
|
-
const extendedTheme = {
|
|
11
|
-
initialColorMode: 'light',
|
|
12
|
-
useSystemColorMode: false,
|
|
13
|
-
styles: {
|
|
14
|
-
global,
|
|
15
|
-
},
|
|
16
|
-
remToPixels: (rem, baseSize = 16) =>
|
|
17
|
-
!rem ? 0 : `${baseSize * Number(rem.replace('rem', ''))}`,
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
// use this to override base themes from Chakra
|
|
21
|
-
const baseConfig = {
|
|
22
|
-
...chakraDefaultTheme,
|
|
23
|
-
...base,
|
|
24
|
-
components,
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export default extendTheme(extendedTheme, baseConfig);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
|
|
4
|
-
const Spaces = ({spaces = 3}) => (
|
|
5
|
-
<span
|
|
6
|
-
dangerouslySetInnerHTML={{
|
|
7
|
-
__html: Array(spaces).fill(' ').join(''),
|
|
8
|
-
}}
|
|
9
|
-
/>
|
|
10
|
-
);
|
|
11
|
-
|
|
12
|
-
Spaces.propTypes = {
|
|
13
|
-
spaces: PropTypes.number,
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export default Spaces;
|
package/v1/assets-manifest.json
DELETED
package/v1/index.html
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="x-ua-compatible" content="ie=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><script defer="defer" src="/index.js"></script></head><body><div id="root"></div></body></html>
|