@spothero/ui 22.3.2 → 22.3.9-beta.0
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/index.cjs.js +54151 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.esm.js +53999 -0
- package/dist/index.esm.js.map +1 -0
- package/package.json +39 -40
- package/dist/components/Accordion/Accordion.stories.js +0 -91
- package/dist/components/Accordion/AccordionActionButton.js +0 -29
- package/dist/components/Accordion/index.js +0 -44
- package/dist/components/Accordion/styles/index.js +0 -76
- package/dist/components/Alert/Alert.js +0 -83
- package/dist/components/Alert/Alert.stories.js +0 -49
- package/dist/components/Alert/index.js +0 -13
- package/dist/components/AutoSuggestSelect/AutoSuggestSelect.js +0 -148
- package/dist/components/AutoSuggestSelect/AutoSuggestSelect.stories.js +0 -19
- package/dist/components/AutoSuggestSelect/index.js +0 -13
- package/dist/components/Badge/Badge.js +0 -12
- package/dist/components/Badge/Badge.stories.js +0 -28
- package/dist/components/Badge/styles/index.js +0 -32
- package/dist/components/Button/Button.js +0 -36
- package/dist/components/Button/Button.spec.js +0 -25
- package/dist/components/Button/Button.styles.js +0 -164
- package/dist/components/Button/button-props.js +0 -71
- package/dist/components/Button/index.js +0 -20
- package/dist/components/Button/stories/button.js +0 -45
- package/dist/components/Button/stories/index.stories.js +0 -94
- package/dist/components/Button/stories/overview.js +0 -63
- package/dist/components/Card/Card.js +0 -22
- package/dist/components/Card/Card.stories.js +0 -29
- package/dist/components/Checkbox/Checkbox.js +0 -38
- package/dist/components/Checkbox/Checkbox.stories.js +0 -65
- package/dist/components/Checkbox/index.js +0 -13
- package/dist/components/Checkbox/styles/index.js +0 -89
- package/dist/components/Container/Container.js +0 -17
- package/dist/components/Container/Container.stories.js +0 -43
- package/dist/components/Container/Container.styles.js +0 -16
- package/dist/components/CreatableSelect/CreatableSelect.js +0 -124
- package/dist/components/CreatableSelect/CreatableSelect.stories.js +0 -55
- package/dist/components/CreatableSelect/index.js +0 -13
- package/dist/components/Divider/Divider.js +0 -29
- package/dist/components/Divider/Divider.stories.js +0 -35
- package/dist/components/Divider/Divider.styles.js +0 -20
- package/dist/components/Drawer/Drawer.js +0 -24
- package/dist/components/Drawer/Drawer.stories.js +0 -39
- package/dist/components/Drawer/index.js +0 -56
- package/dist/components/Drawer/styles/index.js +0 -104
- package/dist/components/FormControl/FormControl.js +0 -67
- package/dist/components/Grid/Grid.js +0 -28
- package/dist/components/Grid/Grid.stories.js +0 -100
- package/dist/components/Grid/Grid.styles.js +0 -17
- package/dist/components/Grid/GridItem.js +0 -17
- package/dist/components/Grid/GridItem.styles.js +0 -13
- package/dist/components/Grid/index.js +0 -20
- package/dist/components/Heading/Heading.js +0 -27
- package/dist/components/Heading/Heading.stories.js +0 -41
- package/dist/components/Heading/Heading.styles.js +0 -63
- package/dist/components/Icon/Icon.js +0 -12
- package/dist/components/Icon/Icon.stories.js +0 -36
- package/dist/components/Image/Image.js +0 -73
- package/dist/components/Image/Image.spec.js +0 -77
- package/dist/components/Image/Image.stories.js +0 -74
- package/dist/components/Input/Input.js +0 -44
- package/dist/components/Input/Input.stories.js +0 -59
- package/dist/components/Input/index.js +0 -13
- package/dist/components/Input/styles/index.js +0 -64
- package/dist/components/Link/Link.js +0 -12
- package/dist/components/Link/Link.stories.js +0 -49
- package/dist/components/Link/Link.styles.js +0 -44
- package/dist/components/List/List.js +0 -61
- package/dist/components/List/List.stories.js +0 -75
- package/dist/components/List/index.js +0 -20
- package/dist/components/List/styles/index.js +0 -16
- package/dist/components/List/styles/item.styles.js +0 -10
- package/dist/components/Loader/Loader.js +0 -44
- package/dist/components/Loader/Loader.stories.js +0 -116
- package/dist/components/Menu/Menu.js +0 -16
- package/dist/components/Menu/Menu.stories.js +0 -159
- package/dist/components/Menu/Menu.styles.js +0 -173
- package/dist/components/Menu/index.js +0 -56
- package/dist/components/Modal/Modal.js +0 -42
- package/dist/components/Modal/Modal.stories.js +0 -184
- package/dist/components/Modal/index.js +0 -32
- package/dist/components/Modal/styles/body.js +0 -30
- package/dist/components/Modal/styles/closeButton.js +0 -24
- package/dist/components/Modal/styles/dialog.js +0 -22
- package/dist/components/Modal/styles/dialogContainer.js +0 -19
- package/dist/components/Modal/styles/footer.js +0 -11
- package/dist/components/Modal/styles/header.js +0 -17
- package/dist/components/Modal/styles/index.js +0 -53
- package/dist/components/Modal/styles/overlay.js +0 -10
- package/dist/components/Popover/Popover.js +0 -26
- package/dist/components/Popover/Popover.stories.js +0 -80
- package/dist/components/Popover/PopoverArrow.js +0 -19
- package/dist/components/Popover/PopoverCloseButton.js +0 -19
- package/dist/components/Popover/PopoverContent.js +0 -38
- package/dist/components/Popover/index.js +0 -40
- package/dist/components/Popover/styles/index.js +0 -24
- package/dist/components/Popover/styles/popover-arrow.js +0 -12
- package/dist/components/Popover/styles/popover-body.js +0 -10
- package/dist/components/Popover/styles/popover-close-button.js +0 -26
- package/dist/components/Popover/styles/popover-content.js +0 -26
- package/dist/components/Popover/styles/popover-header.js +0 -11
- package/dist/components/Popover/styles/popper.js +0 -10
- package/dist/components/Progress/Progress.js +0 -37
- package/dist/components/Progress/Progress.stories.js +0 -79
- package/dist/components/Progress/Progress.styles.js +0 -122
- package/dist/components/Radio/Radio.js +0 -37
- package/dist/components/Radio/Radio.stories.js +0 -138
- package/dist/components/Radio/RadioGroup.js +0 -47
- package/dist/components/Radio/index.js +0 -20
- package/dist/components/Radio/styles/index.js +0 -118
- package/dist/components/RefreshedInput/Button/Button.js +0 -67
- package/dist/components/RefreshedInput/Button/Button.stories.js +0 -79
- package/dist/components/RefreshedInput/Button/index.js +0 -13
- package/dist/components/RefreshedInput/Button/styles/index.js +0 -25
- package/dist/components/RefreshedInput/FormControl/index.js +0 -167
- package/dist/components/RefreshedInput/Input/Input.js +0 -61
- package/dist/components/RefreshedInput/Input/Input.stories.js +0 -74
- package/dist/components/RefreshedInput/Input/index.js +0 -13
- package/dist/components/RefreshedInput/Input/styles/index.js +0 -23
- package/dist/components/RefreshedInput/Select/Select.js +0 -65
- package/dist/components/RefreshedInput/Select/Select.stories.js +0 -80
- package/dist/components/RefreshedInput/Select/index.js +0 -13
- package/dist/components/RefreshedInput/Select/styles/index.js +0 -26
- package/dist/components/RefreshedInput/index.js +0 -34
- package/dist/components/RefreshedInput/storyAid/index.js +0 -19
- package/dist/components/Select/Select.js +0 -50
- package/dist/components/Select/Select.stories.js +0 -63
- package/dist/components/Select/index.js +0 -13
- package/dist/components/Select/styles/index.js +0 -46
- package/dist/components/SelectionCard/SelectionCard.js +0 -61
- package/dist/components/SelectionCard/SelectionCard.stories.js +0 -90
- package/dist/components/SelectionCard/index.js +0 -13
- package/dist/components/Skeleton/Skeleton.stories.js +0 -23
- package/dist/components/Skeleton/Skeleton.styles.js +0 -9
- package/dist/components/Skeleton/index.js +0 -24
- package/dist/components/Spinner/Spinner.js +0 -29
- package/dist/components/Spinner/Spinner.stories.js +0 -98
- package/dist/components/Spinner/Spinner.styles.js +0 -85
- package/dist/components/Switch/Switch.js +0 -40
- package/dist/components/Switch/Switch.stories.js +0 -76
- package/dist/components/Switch/index.js +0 -13
- package/dist/components/Switch/styles/index.js +0 -32
- package/dist/components/Table/Table.js +0 -12
- package/dist/components/Table/Table.stories.js +0 -69
- package/dist/components/Table/Table.styles.js +0 -66
- package/dist/components/Table/index.js +0 -62
- package/dist/components/Tabs/Tabs.js +0 -35
- package/dist/components/Tabs/Tabs.stories.js +0 -39
- package/dist/components/Tabs/combineSizeWithVariant.js +0 -36
- package/dist/components/Tabs/index.js +0 -38
- package/dist/components/Tabs/styles/index.js +0 -70
- package/dist/components/Text/Text.js +0 -33
- package/dist/components/Text/Text.stories.js +0 -42
- package/dist/components/Text/Text.styles.js +0 -45
- package/dist/components/Text/combineAsWithVariant.js +0 -100
- package/dist/components/Text/options.js +0 -8
- package/dist/components/Textarea/Textarea.js +0 -44
- package/dist/components/Textarea/Textarea.stories.js +0 -59
- package/dist/components/Textarea/index.js +0 -13
- package/dist/components/Textarea/styles/index.js +0 -64
- package/dist/components/ThemeProvider/ThemeProvider.js +0 -39
- package/dist/components/ThemeProvider/ThemeProvider.stories.js +0 -51
- package/dist/components/Toast/Toast.stories.js +0 -77
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.js +0 -59
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.stories.js +0 -53
- package/dist/components/ToggleButtonGroup/index.js +0 -13
- package/dist/components/ToggleButtonGroup/styles/index.js +0 -47
- package/dist/components/index.js +0 -785
- package/dist/components/styles.js +0 -188
- package/dist/theme/base/breakpoints.js +0 -23
- package/dist/theme/base/colors.js +0 -138
- package/dist/theme/base/index.js +0 -79
- package/dist/theme/base/notifications.js +0 -198
- package/dist/theme/base/shadows.js +0 -15
- package/dist/theme/base/sizes.js +0 -88
- package/dist/theme/base/typography.js +0 -38
- package/dist/theme/base/zindices.js +0 -33
- package/dist/theme/global.js +0 -110
- package/dist/theme/index.js +0 -33
- package/dist/utils/Spaces.js +0 -16
package/dist/theme/base/sizes.js
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
const container = {
|
|
8
|
-
base: '100%',
|
|
9
|
-
// 640px
|
|
10
|
-
tablet: '45rem',
|
|
11
|
-
// 720px
|
|
12
|
-
desktop: '72rem' // 1152px
|
|
13
|
-
};
|
|
14
|
-
const sizes = {
|
|
15
|
-
container,
|
|
16
|
-
0: '0',
|
|
17
|
-
0.5: '0.125rem',
|
|
18
|
-
// 2px
|
|
19
|
-
1: '0.25rem',
|
|
20
|
-
// 4px
|
|
21
|
-
1.5: '0.375rem',
|
|
22
|
-
// 6px
|
|
23
|
-
2: '0.5rem',
|
|
24
|
-
// 8px
|
|
25
|
-
2.5: '0.625rem',
|
|
26
|
-
// 10px
|
|
27
|
-
3: '0.75rem',
|
|
28
|
-
// 12px
|
|
29
|
-
3.5: '0.875rem',
|
|
30
|
-
// 14px
|
|
31
|
-
4: '1rem',
|
|
32
|
-
// 16px
|
|
33
|
-
5: '1.25rem',
|
|
34
|
-
// 20px
|
|
35
|
-
5.5: '1.375rem',
|
|
36
|
-
// 22px
|
|
37
|
-
6: '1.5rem',
|
|
38
|
-
// 24px
|
|
39
|
-
7: '1.75rem',
|
|
40
|
-
// 28px
|
|
41
|
-
8: '2rem',
|
|
42
|
-
// 32px
|
|
43
|
-
9: '2.25rem',
|
|
44
|
-
// 36px
|
|
45
|
-
10: '2.5rem',
|
|
46
|
-
// 40px
|
|
47
|
-
12: '3rem',
|
|
48
|
-
// 48px
|
|
49
|
-
14: '3.5rem',
|
|
50
|
-
// 56px
|
|
51
|
-
16: '4rem',
|
|
52
|
-
// 64px
|
|
53
|
-
20: '5rem',
|
|
54
|
-
// 80px
|
|
55
|
-
24: '6rem',
|
|
56
|
-
// 96px
|
|
57
|
-
28: '7rem',
|
|
58
|
-
// 112px
|
|
59
|
-
32: '8rem',
|
|
60
|
-
// 128px
|
|
61
|
-
36: '9rem',
|
|
62
|
-
// 144px
|
|
63
|
-
40: '10rem',
|
|
64
|
-
// 160px
|
|
65
|
-
44: '11rem',
|
|
66
|
-
// 176px
|
|
67
|
-
48: '12rem',
|
|
68
|
-
// 192px
|
|
69
|
-
52: '13rem',
|
|
70
|
-
// 208px
|
|
71
|
-
56: '14rem',
|
|
72
|
-
// 224px
|
|
73
|
-
60: '15rem',
|
|
74
|
-
// 240px
|
|
75
|
-
64: '16rem',
|
|
76
|
-
// 256px
|
|
77
|
-
72: '18rem',
|
|
78
|
-
// 272px
|
|
79
|
-
80: '20rem',
|
|
80
|
-
// 288px
|
|
81
|
-
96: '24rem',
|
|
82
|
-
// 384px
|
|
83
|
-
px: '1px',
|
|
84
|
-
full: '100%',
|
|
85
|
-
max: 'max-content',
|
|
86
|
-
min: 'min-content'
|
|
87
|
-
};
|
|
88
|
-
var _default = exports.default = sizes;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.fonts = exports.fontWeights = exports.fontSizes = void 0;
|
|
7
|
-
const fonts = exports.fonts = {
|
|
8
|
-
heading: `"Plus Jakarta Sans", sans-serif`,
|
|
9
|
-
body: `"Plus Jakarta Sans", sans-serif`
|
|
10
|
-
};
|
|
11
|
-
const fontSizes = exports.fontSizes = {
|
|
12
|
-
'5xl': '3.5rem',
|
|
13
|
-
// 56px
|
|
14
|
-
'4xl': '3rem',
|
|
15
|
-
// 48px
|
|
16
|
-
'3xl': '2.5rem',
|
|
17
|
-
// 40px
|
|
18
|
-
'2xl': '2rem',
|
|
19
|
-
// 32px
|
|
20
|
-
xl: '1.5rem',
|
|
21
|
-
// 24px
|
|
22
|
-
lg: '1.25rem',
|
|
23
|
-
// 20px
|
|
24
|
-
md: '1.125rem',
|
|
25
|
-
// 18px
|
|
26
|
-
base: '1rem',
|
|
27
|
-
// 16px
|
|
28
|
-
sm: '0.875rem',
|
|
29
|
-
// 14px
|
|
30
|
-
xs: '0.75rem' // 12px
|
|
31
|
-
};
|
|
32
|
-
const fontWeights = exports.fontWeights = {
|
|
33
|
-
light: 300,
|
|
34
|
-
normal: 400,
|
|
35
|
-
medium: 500,
|
|
36
|
-
semibold: 600,
|
|
37
|
-
bold: 700
|
|
38
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
const indices = {
|
|
8
|
-
hide: -100,
|
|
9
|
-
// equivalent to $z-index-negative in fe-core (https://github.com/spothero/fe-core/blob/main/utils/_defaults.scss)
|
|
10
|
-
auto: 'auto',
|
|
11
|
-
base: 0,
|
|
12
|
-
// equivalent to $z-index-back in fe-core
|
|
13
|
-
layer1: 100,
|
|
14
|
-
// equivalent to $z-index-mid in fe-core
|
|
15
|
-
layer2: 200,
|
|
16
|
-
// equivalent to $z-index-fore in fe-core
|
|
17
|
-
layer3: 300,
|
|
18
|
-
// equivalent to $z-index-layer1 in fe-core
|
|
19
|
-
layer4: 400,
|
|
20
|
-
// equivalent to $z-index-layer2 in fe-core
|
|
21
|
-
layer5: 500,
|
|
22
|
-
// equivalent to $z-index-layer3 in fe-core
|
|
23
|
-
layer6: 600,
|
|
24
|
-
// equivalent to $z-index-layer4 in fe-core
|
|
25
|
-
layer7: 700,
|
|
26
|
-
// equivalent to $z-index-modal-shim in fe-core
|
|
27
|
-
layer8: 800,
|
|
28
|
-
// equivalent to $z-index-modal in fe-core
|
|
29
|
-
layer9: 900,
|
|
30
|
-
// equivalent to $z-index-notification in fe-core
|
|
31
|
-
layer10: 1000 // equivalent to $z-index-top in fe-core
|
|
32
|
-
};
|
|
33
|
-
var _default = exports.default = indices;
|
package/dist/theme/global.js
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = exports.LegacyOverrides = exports.Fonts = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _react2 = require("@emotion/react");
|
|
10
|
-
var _base = require("./base");
|
|
11
|
-
const global = {
|
|
12
|
-
'html, body': {
|
|
13
|
-
color: 'text.primary.light'
|
|
14
|
-
},
|
|
15
|
-
// By default, Chakra has all svgs set to 'display: block',
|
|
16
|
-
// this breaks the layout of some older components, so now
|
|
17
|
-
// we set all svgs to 'display: inline-block;' and only set
|
|
18
|
-
// 'display: block;' on the components that need it
|
|
19
|
-
// (as of 3/9/2021 only the v1 AutoSuggestInput component
|
|
20
|
-
// needed this update)
|
|
21
|
-
svg: {
|
|
22
|
-
display: 'inline-block'
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
var _default = exports.default = global;
|
|
26
|
-
const Fonts = () => /*#__PURE__*/_react.default.createElement(_react2.Global, {
|
|
27
|
-
styles: `
|
|
28
|
-
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');
|
|
29
|
-
/* latin-ext */
|
|
30
|
-
@font-face {
|
|
31
|
-
font-family: "Plus Jakarta Sans", sans-serif;
|
|
32
|
-
font-style: normal;
|
|
33
|
-
font-weight: 700;
|
|
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: "Plus Jakarta Sans", sans-serif;
|
|
39
|
-
font-style: normal;
|
|
40
|
-
font-weight: 600;
|
|
41
|
-
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;
|
|
42
|
-
}
|
|
43
|
-
/* latin-ext */
|
|
44
|
-
@font-face {
|
|
45
|
-
font-family: "Plus Jakarta Sans", sans-serif;
|
|
46
|
-
font-style: normal;
|
|
47
|
-
font-weight: 400;
|
|
48
|
-
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;
|
|
49
|
-
}
|
|
50
|
-
/* latin-ext */
|
|
51
|
-
@font-face {
|
|
52
|
-
font-family: "Plus Jakarta Sans", sans-serif;
|
|
53
|
-
font-style: normal;
|
|
54
|
-
font-weight: 300;
|
|
55
|
-
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;
|
|
56
|
-
}
|
|
57
|
-
`
|
|
58
|
-
});
|
|
59
|
-
exports.Fonts = Fonts;
|
|
60
|
-
const LegacyOverrides = ({
|
|
61
|
-
useLegacyOverrides
|
|
62
|
-
}) => useLegacyOverrides ? /*#__PURE__*/_react.default.createElement(_react2.Global, {
|
|
63
|
-
styles: `
|
|
64
|
-
h1,
|
|
65
|
-
h2,
|
|
66
|
-
h3,
|
|
67
|
-
h4,
|
|
68
|
-
h5,
|
|
69
|
-
h6 {
|
|
70
|
-
margin-top: 0;
|
|
71
|
-
font-weight: ${_base.fontWeights.semibold};
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.heading-sm {
|
|
75
|
-
font-size: ${_base.fontSizes.base};
|
|
76
|
-
}
|
|
77
|
-
.heading-md {
|
|
78
|
-
font-size: ${_base.fontSizes.md};
|
|
79
|
-
}
|
|
80
|
-
.heading-lg {
|
|
81
|
-
font-size: ${_base.fontSizes['5xl']};
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
p {
|
|
85
|
-
line-height: 1.5;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
a {
|
|
89
|
-
outline: none;
|
|
90
|
-
text-align: left;
|
|
91
|
-
color: ${_base.colors.primary.default};
|
|
92
|
-
text-decoration: none;
|
|
93
|
-
|
|
94
|
-
&:active,
|
|
95
|
-
&:focus {
|
|
96
|
-
outline: none;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
&:hover {
|
|
100
|
-
color: ${_base.colors.primary['700']};
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
small {
|
|
105
|
-
font-size: ${_base.fontSizes.xs};
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
`
|
|
109
|
-
}) : null;
|
|
110
|
-
exports.LegacyOverrides = LegacyOverrides;
|
package/dist/theme/index.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _global = _interopRequireDefault(require("./global"));
|
|
9
|
-
var base = _interopRequireWildcard(require("./base"));
|
|
10
|
-
var _react = require("@chakra-ui/react");
|
|
11
|
-
var _theme = _interopRequireDefault(require("@chakra-ui/theme"));
|
|
12
|
-
var components = _interopRequireWildcard(require("../components/styles"));
|
|
13
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
14
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
|
-
// import merge from 'lodash/merge';
|
|
16
|
-
|
|
17
|
-
// use this to extend the base theme of chakra, this adds on top of what is defined in baseConfig
|
|
18
|
-
const extendedTheme = {
|
|
19
|
-
initialColorMode: 'light',
|
|
20
|
-
useSystemColorMode: false,
|
|
21
|
-
styles: {
|
|
22
|
-
global: _global.default
|
|
23
|
-
},
|
|
24
|
-
remToPixels: (rem, baseSize = 16) => !rem ? 0 : `${baseSize * Number(rem.replace('rem', ''))}`
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
// use this to override base themes from Chakra
|
|
28
|
-
const baseConfig = {
|
|
29
|
-
..._theme.default,
|
|
30
|
-
...base,
|
|
31
|
-
components
|
|
32
|
-
};
|
|
33
|
-
var _default = exports.default = (0, _react.extendTheme)(extendedTheme, baseConfig);
|
package/dist/utils/Spaces.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
const Spaces = ({
|
|
10
|
-
spaces = 3
|
|
11
|
-
}) => /*#__PURE__*/_react.default.createElement("span", {
|
|
12
|
-
dangerouslySetInnerHTML: {
|
|
13
|
-
__html: Array(spaces).fill(' ').join('')
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
var _default = exports.default = Spaces;
|