@spothero/ui 17.1.0 → 17.1.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.
Files changed (137) hide show
  1. package/dist/components/Accordion/Accordion.stories.js +57 -49
  2. package/dist/components/Accordion/AccordionActionButton.js +31 -0
  3. package/dist/components/Accordion/index.js +17 -14
  4. package/dist/components/Accordion/styles/index.js +64 -19
  5. package/dist/components/Alert/Alert.js +26 -59
  6. package/dist/components/Alert/Alert.stories.js +18 -47
  7. package/dist/components/Alert/index.js +1 -3
  8. package/dist/components/AutoSuggestSelect/AutoSuggestSelect.js +84 -119
  9. package/dist/components/AutoSuggestSelect/AutoSuggestSelect.stories.js +4 -12
  10. package/dist/components/AutoSuggestSelect/index.js +1 -3
  11. package/dist/components/Badge/Badge.js +1 -2
  12. package/dist/components/Badge/Badge.stories.js +12 -20
  13. package/dist/components/Badge/styles/index.js +6 -12
  14. package/dist/components/Button/Button.js +17 -47
  15. package/dist/components/Button/Button.spec.js +4 -10
  16. package/dist/components/Button/Button.styles.js +36 -49
  17. package/dist/components/Button/button-props.js +2 -20
  18. package/dist/components/Button/index.js +2 -5
  19. package/dist/components/Button/stories/button.js +5 -17
  20. package/dist/components/Button/stories/index.stories.js +24 -48
  21. package/dist/components/Button/stories/overview.js +34 -62
  22. package/dist/components/Card/Card.js +11 -26
  23. package/dist/components/Card/Card.stories.js +5 -15
  24. package/dist/components/Checkbox/Checkbox.js +1 -2
  25. package/dist/components/Checkbox/Checkbox.stories.js +2 -10
  26. package/dist/components/Checkbox/index.js +1 -3
  27. package/dist/components/Checkbox/styles/index.js +3 -11
  28. package/dist/components/Container/Container.js +5 -21
  29. package/dist/components/Container/Container.stories.js +14 -43
  30. package/dist/components/Container/Container.styles.js +1 -1
  31. package/dist/components/Divider/Divider.js +8 -24
  32. package/dist/components/Divider/Divider.stories.js +3 -15
  33. package/dist/components/Divider/Divider.styles.js +2 -8
  34. package/dist/components/FormControl/FormControl.js +13 -29
  35. package/dist/components/Grid/Grid.js +7 -24
  36. package/dist/components/Grid/Grid.stories.js +36 -60
  37. package/dist/components/Grid/Grid.styles.js +2 -2
  38. package/dist/components/Grid/GridItem.js +5 -21
  39. package/dist/components/Grid/GridItem.styles.js +2 -1
  40. package/dist/components/Grid/index.js +2 -5
  41. package/dist/components/Heading/Heading.js +8 -29
  42. package/dist/components/Heading/Heading.stories.js +4 -15
  43. package/dist/components/Heading/Heading.styles.js +24 -38
  44. package/dist/components/Icon/Icon.js +1 -2
  45. package/dist/components/Icon/Icon.stories.js +19 -28
  46. package/dist/components/Image/Image.js +39 -69
  47. package/dist/components/Image/Image.spec.js +16 -22
  48. package/dist/components/Image/Image.stories.js +8 -19
  49. package/dist/components/Input/Input.js +14 -31
  50. package/dist/components/Input/Input.stories.js +5 -15
  51. package/dist/components/Input/index.js +1 -3
  52. package/dist/components/Input/styles/index.js +4 -10
  53. package/dist/components/Link/Link.js +1 -2
  54. package/dist/components/Link/Link.stories.js +5 -12
  55. package/dist/components/Link/Link.styles.js +8 -8
  56. package/dist/components/List/List.js +14 -37
  57. package/dist/components/List/List.stories.js +18 -59
  58. package/dist/components/List/index.js +2 -5
  59. package/dist/components/List/styles/index.js +2 -9
  60. package/dist/components/List/styles/item.styles.js +1 -1
  61. package/dist/components/Loader/Loader.js +17 -33
  62. package/dist/components/Loader/Loader.stories.js +24 -44
  63. package/dist/components/Modal/Modal.js +13 -28
  64. package/dist/components/Modal/Modal.stories.js +30 -100
  65. package/dist/components/Modal/index.js +1 -3
  66. package/dist/components/Modal/styles/body.js +11 -28
  67. package/dist/components/Modal/styles/closeButton.js +4 -4
  68. package/dist/components/Modal/styles/dialog.js +4 -4
  69. package/dist/components/Modal/styles/dialogContainer.js +5 -11
  70. package/dist/components/Modal/styles/header.js +5 -5
  71. package/dist/components/Modal/styles/index.js +12 -28
  72. package/dist/components/Popover/Popover.js +12 -33
  73. package/dist/components/Popover/Popover.stories.js +36 -62
  74. package/dist/components/Popover/PopoverArrow.js +3 -17
  75. package/dist/components/Popover/PopoverCloseButton.js +3 -17
  76. package/dist/components/Popover/PopoverContent.js +10 -27
  77. package/dist/components/Popover/index.js +4 -8
  78. package/dist/components/Popover/styles/index.js +9 -22
  79. package/dist/components/Popover/styles/popover-arrow.js +4 -4
  80. package/dist/components/Popover/styles/popover-body.js +3 -7
  81. package/dist/components/Popover/styles/popover-close-button.js +7 -10
  82. package/dist/components/Popover/styles/popover-content.js +5 -7
  83. package/dist/components/Popover/styles/popover-header.js +1 -1
  84. package/dist/components/Popover/styles/popper.js +1 -1
  85. package/dist/components/Radio/Radio.js +12 -27
  86. package/dist/components/Radio/Radio.stories.js +2 -12
  87. package/dist/components/Radio/RadioGroup.js +17 -33
  88. package/dist/components/Radio/index.js +2 -5
  89. package/dist/components/Radio/styles/index.js +5 -13
  90. package/dist/components/Select/Select.js +14 -33
  91. package/dist/components/Select/Select.stories.js +13 -22
  92. package/dist/components/Select/index.js +1 -3
  93. package/dist/components/Select/styles/index.js +4 -14
  94. package/dist/components/Skeleton/Skeleton.stories.js +6 -20
  95. package/dist/components/Skeleton/Skeleton.styles.js +0 -3
  96. package/dist/components/Skeleton/index.js +3 -4
  97. package/dist/components/Spinner/Spinner.js +9 -25
  98. package/dist/components/Spinner/Spinner.stories.js +42 -70
  99. package/dist/components/Spinner/Spinner.styles.js +56 -43
  100. package/dist/components/Switch/Switch.js +13 -30
  101. package/dist/components/Switch/Switch.stories.js +2 -10
  102. package/dist/components/Switch/index.js +1 -3
  103. package/dist/components/Switch/styles/index.js +10 -31
  104. package/dist/components/Table/Table.js +1 -2
  105. package/dist/components/Table/Table.stories.js +17 -37
  106. package/dist/components/Table/Table.styles.js +13 -32
  107. package/dist/components/Table/index.js +8 -11
  108. package/dist/components/Tabs/Tabs.js +14 -22
  109. package/dist/components/Tabs/Tabs.stories.js +4 -20
  110. package/dist/components/Tabs/combineSizeWithVariant.js +11 -17
  111. package/dist/components/Tabs/index.js +5 -8
  112. package/dist/components/Tabs/styles/index.js +2 -8
  113. package/dist/components/Text/Text.js +8 -17
  114. package/dist/components/Text/Text.stories.js +3 -15
  115. package/dist/components/Text/Text.styles.js +15 -35
  116. package/dist/components/Text/combineAsWithVariant.js +36 -57
  117. package/dist/components/Text/options.js +1 -1
  118. package/dist/components/ThemeProvider/ThemeProvider.js +10 -33
  119. package/dist/components/ThemeProvider/ThemeProvider.stories.js +7 -16
  120. package/dist/components/Toast/Toast.stories.js +11 -34
  121. package/dist/components/index.js +89 -156
  122. package/dist/components/styles.js +20 -41
  123. package/dist/theme/base/breakpoints.js +1 -4
  124. package/dist/theme/base/colors.js +32 -45
  125. package/dist/theme/base/index.js +10 -17
  126. package/dist/theme/base/notifications.js +5 -16
  127. package/dist/theme/base/sizes.js +4 -4
  128. package/dist/theme/base/typography.js +5 -6
  129. package/dist/theme/base/zindices.js +1 -2
  130. package/dist/theme/global.js +87 -20
  131. package/dist/theme/index.js +15 -41
  132. package/dist/utils/Spaces.js +5 -12
  133. package/package.json +3 -3
  134. package/dist/components/Accordion/Accordion.js +0 -13
  135. package/dist/components/Accordion/styles/button.js +0 -23
  136. package/dist/components/Accordion/styles/container.js +0 -15
  137. package/dist/components/Accordion/styles/panel.js +0 -13
@@ -1,167 +1,146 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  Object.defineProperty(exports, "Accordion", {
9
8
  enumerable: true,
10
- get: function get() {
9
+ get: function () {
11
10
  return _styles2.default;
12
11
  }
13
12
  });
14
13
  Object.defineProperty(exports, "Badge", {
15
14
  enumerable: true,
16
- get: function get() {
15
+ get: function () {
17
16
  return _styles11.default;
18
17
  }
19
18
  });
20
19
  Object.defineProperty(exports, "Button", {
21
20
  enumerable: true,
22
- get: function get() {
21
+ get: function () {
23
22
  return _Button.default;
24
23
  }
25
24
  });
26
25
  Object.defineProperty(exports, "Checkbox", {
27
26
  enumerable: true,
28
- get: function get() {
27
+ get: function () {
29
28
  return _styles5.default;
30
29
  }
31
30
  });
32
31
  Object.defineProperty(exports, "Divider", {
33
32
  enumerable: true,
34
- get: function get() {
33
+ get: function () {
35
34
  return _Divider.default;
36
35
  }
37
36
  });
38
37
  Object.defineProperty(exports, "GridItem", {
39
38
  enumerable: true,
40
- get: function get() {
39
+ get: function () {
41
40
  return _GridItem.default;
42
41
  }
43
42
  });
44
43
  Object.defineProperty(exports, "Heading", {
45
44
  enumerable: true,
46
- get: function get() {
45
+ get: function () {
47
46
  return _Heading.default;
48
47
  }
49
48
  });
50
49
  Object.defineProperty(exports, "Input", {
51
50
  enumerable: true,
52
- get: function get() {
51
+ get: function () {
53
52
  return _styles8.default;
54
53
  }
55
54
  });
56
55
  Object.defineProperty(exports, "Link", {
57
56
  enumerable: true,
58
- get: function get() {
57
+ get: function () {
59
58
  return _Link.default;
60
59
  }
61
60
  });
62
61
  Object.defineProperty(exports, "List", {
63
62
  enumerable: true,
64
- get: function get() {
63
+ get: function () {
65
64
  return _styles.default;
66
65
  }
67
66
  });
68
67
  Object.defineProperty(exports, "Modal", {
69
68
  enumerable: true,
70
- get: function get() {
69
+ get: function () {
71
70
  return _styles9.default;
72
71
  }
73
72
  });
74
73
  Object.defineProperty(exports, "Popover", {
75
74
  enumerable: true,
76
- get: function get() {
75
+ get: function () {
77
76
  return _styles7.default;
78
77
  }
79
78
  });
80
79
  Object.defineProperty(exports, "Radio", {
81
80
  enumerable: true,
82
- get: function get() {
81
+ get: function () {
83
82
  return _styles10.default;
84
83
  }
85
84
  });
86
85
  Object.defineProperty(exports, "Select", {
87
86
  enumerable: true,
88
- get: function get() {
87
+ get: function () {
89
88
  return _styles4.default;
90
89
  }
91
90
  });
92
91
  Object.defineProperty(exports, "Skeleton", {
93
92
  enumerable: true,
94
- get: function get() {
93
+ get: function () {
95
94
  return _Skeleton.default;
96
95
  }
97
96
  });
98
97
  Object.defineProperty(exports, "Spinner", {
99
98
  enumerable: true,
100
- get: function get() {
99
+ get: function () {
101
100
  return _Spinner.default;
102
101
  }
103
102
  });
104
103
  Object.defineProperty(exports, "Switch", {
105
104
  enumerable: true,
106
- get: function get() {
105
+ get: function () {
107
106
  return _styles6.default;
108
107
  }
109
108
  });
110
109
  Object.defineProperty(exports, "Table", {
111
110
  enumerable: true,
112
- get: function get() {
111
+ get: function () {
113
112
  return _Table.default;
114
113
  }
115
114
  });
116
115
  Object.defineProperty(exports, "Tabs", {
117
116
  enumerable: true,
118
- get: function get() {
117
+ get: function () {
119
118
  return _styles3.default;
120
119
  }
121
120
  });
122
121
  Object.defineProperty(exports, "Text", {
123
122
  enumerable: true,
124
- get: function get() {
123
+ get: function () {
125
124
  return _Text.default;
126
125
  }
127
126
  });
128
-
129
127
  var _styles = _interopRequireDefault(require("./List/styles"));
130
-
131
128
  var _Table = _interopRequireDefault(require("./Table/Table.styles"));
132
-
133
129
  var _Text = _interopRequireDefault(require("./Text/Text.styles"));
134
-
135
130
  var _Link = _interopRequireDefault(require("./Link/Link.styles"));
136
-
137
131
  var _styles2 = _interopRequireDefault(require("./Accordion/styles"));
138
-
139
132
  var _Button = _interopRequireDefault(require("./Button/Button.styles"));
140
-
141
133
  var _GridItem = _interopRequireDefault(require("./Grid/GridItem.styles"));
142
-
143
134
  var _Spinner = _interopRequireDefault(require("./Spinner/Spinner.styles"));
144
-
145
135
  var _Heading = _interopRequireDefault(require("./Heading/Heading.styles"));
146
-
147
136
  var _Divider = _interopRequireDefault(require("./Divider/Divider.styles"));
148
-
149
137
  var _styles3 = _interopRequireDefault(require("./Tabs/styles"));
150
-
151
138
  var _styles4 = _interopRequireDefault(require("./Select/styles"));
152
-
153
139
  var _styles5 = _interopRequireDefault(require("./Checkbox/styles"));
154
-
155
140
  var _styles6 = _interopRequireDefault(require("./Switch/styles"));
156
-
157
141
  var _styles7 = _interopRequireDefault(require("./Popover/styles"));
158
-
159
142
  var _styles8 = _interopRequireDefault(require("./Input/styles"));
160
-
161
143
  var _styles9 = _interopRequireDefault(require("./Modal/styles"));
162
-
163
144
  var _styles10 = _interopRequireDefault(require("./Radio/styles"));
164
-
165
145
  var _Skeleton = _interopRequireDefault(require("./Skeleton/Skeleton.styles"));
166
-
167
146
  var _styles11 = _interopRequireDefault(require("./Badge/styles"));
@@ -4,16 +4,14 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _themeTools = require("@chakra-ui/theme-tools");
9
-
10
8
  /**
11
9
  * The "base" breakpoint is Chakra's default non-responsive value (from 0 upwards).
12
10
  * While we don't explicitly enable a "mobile" breakpoint, we can consider "base" and
13
11
  * "mobile" the same for all intents and purposes for mobile-first responsive styling.
14
12
  * @see https://chakra-ui.com/docs/features/responsive-styles#customizing-breakpoints
15
13
  */
16
- var breakpoints = (0, _themeTools.createBreakpoints)({
14
+ const breakpoints = (0, _themeTools.createBreakpoints)({
17
15
  mobileXL: '30rem',
18
16
  // 480px
19
17
  tablet: '48rem',
@@ -21,7 +19,6 @@ var breakpoints = (0, _themeTools.createBreakpoints)({
21
19
  desktop: '64rem',
22
20
  // 1024px
23
21
  desktopXL: '90rem' // 1440px
24
-
25
22
  });
26
23
  var _default = breakpoints;
27
24
  exports.default = _default;
@@ -1,32 +1,13 @@
1
1
  "use strict";
2
2
 
3
- var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
4
-
5
- var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
6
-
7
- var _filterInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
8
-
9
- var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
10
-
11
- var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors");
12
-
13
- var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
14
-
15
3
  Object.defineProperty(exports, "__esModule", {
16
4
  value: true
17
5
  });
18
6
  exports.default = void 0;
19
-
20
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
21
-
22
- function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
23
-
24
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? Object.defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
25
-
26
- var white = '#ffffff';
27
- var black = '#000000';
28
- var brandBlue = '#0082ff';
29
- var gray = {
7
+ const white = '#ffffff';
8
+ const black = '#000000';
9
+ const brandBlue = '#0082ff';
10
+ const gray = {
30
11
  50: '#f6f7f9',
31
12
  100: '#e1e6ec',
32
13
  200: '#cbd4de',
@@ -38,7 +19,7 @@ var gray = {
38
19
  800: '#2f3f4b',
39
20
  900: '#26323c'
40
21
  };
41
- var blue = {
22
+ const blue = {
42
23
  50: '#f6fbfd',
43
24
  100: '#e6f8fd',
44
25
  200: '#c0e9fb',
@@ -50,7 +31,7 @@ var blue = {
50
31
  800: '#1735a6',
51
32
  900: '#132b7f'
52
33
  };
53
- var navy = {
34
+ const navy = {
54
35
  50: '#f4fafc',
55
36
  100: '#e4f7fb',
56
37
  200: '#bfebf6',
@@ -62,7 +43,7 @@ var navy = {
62
43
  800: '#194185',
63
44
  900: '#002d5b'
64
45
  };
65
- var green = {
46
+ const green = {
66
47
  50: '#ecf8f7',
67
48
  100: '#d3f7ef',
68
49
  200: '#a4f3d9',
@@ -74,7 +55,7 @@ var green = {
74
55
  800: '#11703e',
75
56
  900: '#115a35'
76
57
  };
77
- var yellow = {
58
+ const yellow = {
78
59
  50: '#f9f5e5',
79
60
  100: '#faf0bd',
80
61
  200: '#f6e67c',
@@ -86,7 +67,7 @@ var yellow = {
86
67
  800: '#8e440e',
87
68
  900: '#743710'
88
69
  };
89
- var red = {
70
+ const red = {
90
71
  50: '#fdf9f8',
91
72
  100: '#fdeef3',
92
73
  200: '#fbcee6',
@@ -98,27 +79,33 @@ var red = {
98
79
  800: '#b4193c',
99
80
  900: '#901530'
100
81
  };
101
- var colors = {
102
- primary: _objectSpread(_objectSpread({}, blue), {}, {
82
+ const colors = {
83
+ primary: {
84
+ ...blue,
103
85
  default: blue['500']
104
- }),
105
- secondary: _objectSpread(_objectSpread({}, navy), {}, {
86
+ },
87
+ secondary: {
88
+ ...navy,
106
89
  default: navy['900']
107
- }),
108
- gray: _objectSpread(_objectSpread({}, gray), {}, {
90
+ },
91
+ gray: {
92
+ ...gray,
109
93
  light: gray['50'],
110
94
  medium: gray['200'],
111
95
  dark: gray['600']
112
- }),
113
- red: _objectSpread(_objectSpread({}, red), {}, {
96
+ },
97
+ red: {
98
+ ...red,
114
99
  default: red['700']
115
- }),
116
- green: _objectSpread(_objectSpread({}, green), {}, {
100
+ },
101
+ green: {
102
+ ...green,
117
103
  default: green['700']
118
- }),
119
- yellow: _objectSpread(_objectSpread({}, yellow), {}, {
104
+ },
105
+ yellow: {
106
+ ...yellow,
120
107
  default: yellow['400']
121
- }),
108
+ },
122
109
  success: green['700'],
123
110
  warning: yellow['400'],
124
111
  error: red['700'],
@@ -138,11 +125,11 @@ var colors = {
138
125
  },
139
126
  background: {
140
127
  gray: gray['50'],
141
- white: white
128
+ white
142
129
  },
143
- white: white,
144
- black: black,
145
- brandBlue: brandBlue
130
+ white,
131
+ black,
132
+ brandBlue
146
133
  };
147
134
  var _default = colors;
148
135
  exports.default = _default;
@@ -1,79 +1,72 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  Object.defineProperty(exports, "NOTIFICATION_STATUSES", {
9
8
  enumerable: true,
10
- get: function get() {
9
+ get: function () {
11
10
  return _notifications.NOTIFICATION_STATUSES;
12
11
  }
13
12
  });
14
13
  Object.defineProperty(exports, "breakpoints", {
15
14
  enumerable: true,
16
- get: function get() {
15
+ get: function () {
17
16
  return _breakpoints.default;
18
17
  }
19
18
  });
20
19
  Object.defineProperty(exports, "colors", {
21
20
  enumerable: true,
22
- get: function get() {
21
+ get: function () {
23
22
  return _colors.default;
24
23
  }
25
24
  });
26
25
  Object.defineProperty(exports, "fontSizes", {
27
26
  enumerable: true,
28
- get: function get() {
27
+ get: function () {
29
28
  return _typography.fontSizes;
30
29
  }
31
30
  });
32
31
  Object.defineProperty(exports, "fontWeights", {
33
32
  enumerable: true,
34
- get: function get() {
33
+ get: function () {
35
34
  return _typography.fontWeights;
36
35
  }
37
36
  });
38
37
  Object.defineProperty(exports, "fonts", {
39
38
  enumerable: true,
40
- get: function get() {
39
+ get: function () {
41
40
  return _typography.fonts;
42
41
  }
43
42
  });
44
43
  Object.defineProperty(exports, "notificationBaseStyle", {
45
44
  enumerable: true,
46
- get: function get() {
45
+ get: function () {
47
46
  return _notifications.notificationBaseStyle;
48
47
  }
49
48
  });
50
49
  Object.defineProperty(exports, "notificationStatusStyles", {
51
50
  enumerable: true,
52
- get: function get() {
51
+ get: function () {
53
52
  return _notifications.notificationStatusStyles;
54
53
  }
55
54
  });
56
55
  Object.defineProperty(exports, "sizes", {
57
56
  enumerable: true,
58
- get: function get() {
57
+ get: function () {
59
58
  return _sizes.default;
60
59
  }
61
60
  });
62
61
  Object.defineProperty(exports, "zIndices", {
63
62
  enumerable: true,
64
- get: function get() {
63
+ get: function () {
65
64
  return _zindices.default;
66
65
  }
67
66
  });
68
-
69
67
  var _sizes = _interopRequireDefault(require("./sizes"));
70
-
71
68
  var _colors = _interopRequireDefault(require("./colors"));
72
-
73
69
  var _zindices = _interopRequireDefault(require("./zindices"));
74
-
75
70
  var _breakpoints = _interopRequireDefault(require("./breakpoints"));
76
-
77
71
  var _typography = require("./typography");
78
-
79
72
  var _notifications = require("./notifications");
@@ -4,19 +4,19 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.notificationStatusStyles = exports.notificationSizeStyles = exports.notificationBaseStyle = exports.NOTIFICATION_STATUSES = void 0;
7
- var NOTIFICATION_STATUSES = {
7
+ const NOTIFICATION_STATUSES = {
8
8
  NEUTRAL: 'neutral',
9
9
  ERROR: 'error',
10
10
  WARNING: 'warning',
11
11
  SUCCESS: 'success'
12
12
  };
13
13
  exports.NOTIFICATION_STATUSES = NOTIFICATION_STATUSES;
14
- var NOTIFICATION_SIZES = {
14
+ const NOTIFICATION_SIZES = {
15
15
  SM: 'sm',
16
16
  MD: 'md',
17
17
  LG: 'lg'
18
18
  };
19
- var notificationBaseStyle = {
19
+ const notificationBaseStyle = {
20
20
  container: {
21
21
  paddingY: 2,
22
22
  borderRadius: 'base'
@@ -89,8 +89,7 @@ var notificationBaseStyle = {
89
89
  }
90
90
  };
91
91
  exports.notificationBaseStyle = notificationBaseStyle;
92
-
93
- var notificationStatusStyles = function notificationStatusStyles(status) {
92
+ const notificationStatusStyles = status => {
94
93
  switch (status) {
95
94
  case NOTIFICATION_STATUSES.NEUTRAL:
96
95
  return {
@@ -109,7 +108,6 @@ var notificationStatusStyles = function notificationStatusStyles(status) {
109
108
  }
110
109
  }
111
110
  };
112
-
113
111
  case NOTIFICATION_STATUSES.WARNING:
114
112
  return {
115
113
  container: {
@@ -127,7 +125,6 @@ var notificationStatusStyles = function notificationStatusStyles(status) {
127
125
  }
128
126
  }
129
127
  };
130
-
131
128
  case NOTIFICATION_STATUSES.ERROR:
132
129
  return {
133
130
  container: {
@@ -145,7 +142,6 @@ var notificationStatusStyles = function notificationStatusStyles(status) {
145
142
  }
146
143
  }
147
144
  };
148
-
149
145
  case NOTIFICATION_STATUSES.SUCCESS:
150
146
  return {
151
147
  container: {
@@ -163,15 +159,12 @@ var notificationStatusStyles = function notificationStatusStyles(status) {
163
159
  }
164
160
  }
165
161
  };
166
-
167
162
  default:
168
163
  return {};
169
164
  }
170
165
  };
171
-
172
166
  exports.notificationStatusStyles = notificationStatusStyles;
173
-
174
- var notificationSizeStyles = function notificationSizeStyles(size) {
167
+ const notificationSizeStyles = size => {
175
168
  switch (size) {
176
169
  case NOTIFICATION_SIZES.SM:
177
170
  return {
@@ -182,7 +175,6 @@ var notificationSizeStyles = function notificationSizeStyles(size) {
182
175
  fontSize: 'xs'
183
176
  }
184
177
  };
185
-
186
178
  case NOTIFICATION_SIZES.MD:
187
179
  return {
188
180
  title: {
@@ -192,7 +184,6 @@ var notificationSizeStyles = function notificationSizeStyles(size) {
192
184
  fontSize: 'sm'
193
185
  }
194
186
  };
195
-
196
187
  case NOTIFICATION_SIZES.LG:
197
188
  return {
198
189
  title: {
@@ -202,10 +193,8 @@ var notificationSizeStyles = function notificationSizeStyles(size) {
202
193
  fontSize: 'base'
203
194
  }
204
195
  };
205
-
206
196
  default:
207
197
  return {};
208
198
  }
209
199
  };
210
-
211
200
  exports.notificationSizeStyles = notificationSizeStyles;
@@ -4,16 +4,16 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var container = {
7
+ const container = {
8
8
  base: '100%',
9
9
  // 640px
10
10
  tablet: '45rem',
11
11
  // 720px
12
12
  desktop: '72rem' // 1152px
13
-
14
13
  };
15
- var sizes = {
16
- container: container,
14
+
15
+ const sizes = {
16
+ container,
17
17
  0: '0',
18
18
  0.5: '0.125rem',
19
19
  // 2px
@@ -4,12 +4,12 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.fonts = exports.fontWeights = exports.fontSizes = void 0;
7
- var fonts = {
8
- heading: "\"Open Sans\", sans-serif",
9
- body: "\"Open Sans\", sans-serif"
7
+ const fonts = {
8
+ heading: `"Open Sans", sans-serif`,
9
+ body: `"Open Sans", sans-serif`
10
10
  };
11
11
  exports.fonts = fonts;
12
- var fontSizes = {
12
+ const fontSizes = {
13
13
  '5xl': '3.5rem',
14
14
  // 56px
15
15
  '4xl': '3rem',
@@ -29,10 +29,9 @@ var fontSizes = {
29
29
  sm: '0.875rem',
30
30
  // 14px
31
31
  xs: '0.75rem' // 12px
32
-
33
32
  };
34
33
  exports.fontSizes = fontSizes;
35
- var fontWeights = {
34
+ const fontWeights = {
36
35
  light: 300,
37
36
  normal: 400,
38
37
  semibold: 600,
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var indices = {
7
+ const indices = {
8
8
  hide: -100,
9
9
  // equivalent to $z-index-negative in fe-core (https://github.com/spothero/fe-core/blob/main/utils/_defaults.scss)
10
10
  auto: 'auto',
@@ -29,7 +29,6 @@ var indices = {
29
29
  layer9: 900,
30
30
  // equivalent to $z-index-notification in fe-core
31
31
  layer10: 1000 // equivalent to $z-index-top in fe-core
32
-
33
32
  };
34
33
  var _default = indices;
35
34
  exports.default = _default;