@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.
Files changed (180) hide show
  1. package/dist/index.cjs.js +54151 -0
  2. package/dist/index.cjs.js.map +1 -0
  3. package/dist/index.esm.js +53999 -0
  4. package/dist/index.esm.js.map +1 -0
  5. package/package.json +39 -40
  6. package/dist/components/Accordion/Accordion.stories.js +0 -91
  7. package/dist/components/Accordion/AccordionActionButton.js +0 -29
  8. package/dist/components/Accordion/index.js +0 -44
  9. package/dist/components/Accordion/styles/index.js +0 -76
  10. package/dist/components/Alert/Alert.js +0 -83
  11. package/dist/components/Alert/Alert.stories.js +0 -49
  12. package/dist/components/Alert/index.js +0 -13
  13. package/dist/components/AutoSuggestSelect/AutoSuggestSelect.js +0 -148
  14. package/dist/components/AutoSuggestSelect/AutoSuggestSelect.stories.js +0 -19
  15. package/dist/components/AutoSuggestSelect/index.js +0 -13
  16. package/dist/components/Badge/Badge.js +0 -12
  17. package/dist/components/Badge/Badge.stories.js +0 -28
  18. package/dist/components/Badge/styles/index.js +0 -32
  19. package/dist/components/Button/Button.js +0 -36
  20. package/dist/components/Button/Button.spec.js +0 -25
  21. package/dist/components/Button/Button.styles.js +0 -164
  22. package/dist/components/Button/button-props.js +0 -71
  23. package/dist/components/Button/index.js +0 -20
  24. package/dist/components/Button/stories/button.js +0 -45
  25. package/dist/components/Button/stories/index.stories.js +0 -94
  26. package/dist/components/Button/stories/overview.js +0 -63
  27. package/dist/components/Card/Card.js +0 -22
  28. package/dist/components/Card/Card.stories.js +0 -29
  29. package/dist/components/Checkbox/Checkbox.js +0 -38
  30. package/dist/components/Checkbox/Checkbox.stories.js +0 -65
  31. package/dist/components/Checkbox/index.js +0 -13
  32. package/dist/components/Checkbox/styles/index.js +0 -89
  33. package/dist/components/Container/Container.js +0 -17
  34. package/dist/components/Container/Container.stories.js +0 -43
  35. package/dist/components/Container/Container.styles.js +0 -16
  36. package/dist/components/CreatableSelect/CreatableSelect.js +0 -124
  37. package/dist/components/CreatableSelect/CreatableSelect.stories.js +0 -55
  38. package/dist/components/CreatableSelect/index.js +0 -13
  39. package/dist/components/Divider/Divider.js +0 -29
  40. package/dist/components/Divider/Divider.stories.js +0 -35
  41. package/dist/components/Divider/Divider.styles.js +0 -20
  42. package/dist/components/Drawer/Drawer.js +0 -24
  43. package/dist/components/Drawer/Drawer.stories.js +0 -39
  44. package/dist/components/Drawer/index.js +0 -56
  45. package/dist/components/Drawer/styles/index.js +0 -104
  46. package/dist/components/FormControl/FormControl.js +0 -67
  47. package/dist/components/Grid/Grid.js +0 -28
  48. package/dist/components/Grid/Grid.stories.js +0 -100
  49. package/dist/components/Grid/Grid.styles.js +0 -17
  50. package/dist/components/Grid/GridItem.js +0 -17
  51. package/dist/components/Grid/GridItem.styles.js +0 -13
  52. package/dist/components/Grid/index.js +0 -20
  53. package/dist/components/Heading/Heading.js +0 -27
  54. package/dist/components/Heading/Heading.stories.js +0 -41
  55. package/dist/components/Heading/Heading.styles.js +0 -63
  56. package/dist/components/Icon/Icon.js +0 -12
  57. package/dist/components/Icon/Icon.stories.js +0 -36
  58. package/dist/components/Image/Image.js +0 -73
  59. package/dist/components/Image/Image.spec.js +0 -77
  60. package/dist/components/Image/Image.stories.js +0 -74
  61. package/dist/components/Input/Input.js +0 -44
  62. package/dist/components/Input/Input.stories.js +0 -59
  63. package/dist/components/Input/index.js +0 -13
  64. package/dist/components/Input/styles/index.js +0 -64
  65. package/dist/components/Link/Link.js +0 -12
  66. package/dist/components/Link/Link.stories.js +0 -49
  67. package/dist/components/Link/Link.styles.js +0 -44
  68. package/dist/components/List/List.js +0 -61
  69. package/dist/components/List/List.stories.js +0 -75
  70. package/dist/components/List/index.js +0 -20
  71. package/dist/components/List/styles/index.js +0 -16
  72. package/dist/components/List/styles/item.styles.js +0 -10
  73. package/dist/components/Loader/Loader.js +0 -44
  74. package/dist/components/Loader/Loader.stories.js +0 -116
  75. package/dist/components/Menu/Menu.js +0 -16
  76. package/dist/components/Menu/Menu.stories.js +0 -159
  77. package/dist/components/Menu/Menu.styles.js +0 -173
  78. package/dist/components/Menu/index.js +0 -56
  79. package/dist/components/Modal/Modal.js +0 -42
  80. package/dist/components/Modal/Modal.stories.js +0 -184
  81. package/dist/components/Modal/index.js +0 -32
  82. package/dist/components/Modal/styles/body.js +0 -30
  83. package/dist/components/Modal/styles/closeButton.js +0 -24
  84. package/dist/components/Modal/styles/dialog.js +0 -22
  85. package/dist/components/Modal/styles/dialogContainer.js +0 -19
  86. package/dist/components/Modal/styles/footer.js +0 -11
  87. package/dist/components/Modal/styles/header.js +0 -17
  88. package/dist/components/Modal/styles/index.js +0 -53
  89. package/dist/components/Modal/styles/overlay.js +0 -10
  90. package/dist/components/Popover/Popover.js +0 -26
  91. package/dist/components/Popover/Popover.stories.js +0 -80
  92. package/dist/components/Popover/PopoverArrow.js +0 -19
  93. package/dist/components/Popover/PopoverCloseButton.js +0 -19
  94. package/dist/components/Popover/PopoverContent.js +0 -38
  95. package/dist/components/Popover/index.js +0 -40
  96. package/dist/components/Popover/styles/index.js +0 -24
  97. package/dist/components/Popover/styles/popover-arrow.js +0 -12
  98. package/dist/components/Popover/styles/popover-body.js +0 -10
  99. package/dist/components/Popover/styles/popover-close-button.js +0 -26
  100. package/dist/components/Popover/styles/popover-content.js +0 -26
  101. package/dist/components/Popover/styles/popover-header.js +0 -11
  102. package/dist/components/Popover/styles/popper.js +0 -10
  103. package/dist/components/Progress/Progress.js +0 -37
  104. package/dist/components/Progress/Progress.stories.js +0 -79
  105. package/dist/components/Progress/Progress.styles.js +0 -122
  106. package/dist/components/Radio/Radio.js +0 -37
  107. package/dist/components/Radio/Radio.stories.js +0 -138
  108. package/dist/components/Radio/RadioGroup.js +0 -47
  109. package/dist/components/Radio/index.js +0 -20
  110. package/dist/components/Radio/styles/index.js +0 -118
  111. package/dist/components/RefreshedInput/Button/Button.js +0 -67
  112. package/dist/components/RefreshedInput/Button/Button.stories.js +0 -79
  113. package/dist/components/RefreshedInput/Button/index.js +0 -13
  114. package/dist/components/RefreshedInput/Button/styles/index.js +0 -25
  115. package/dist/components/RefreshedInput/FormControl/index.js +0 -167
  116. package/dist/components/RefreshedInput/Input/Input.js +0 -61
  117. package/dist/components/RefreshedInput/Input/Input.stories.js +0 -74
  118. package/dist/components/RefreshedInput/Input/index.js +0 -13
  119. package/dist/components/RefreshedInput/Input/styles/index.js +0 -23
  120. package/dist/components/RefreshedInput/Select/Select.js +0 -65
  121. package/dist/components/RefreshedInput/Select/Select.stories.js +0 -80
  122. package/dist/components/RefreshedInput/Select/index.js +0 -13
  123. package/dist/components/RefreshedInput/Select/styles/index.js +0 -26
  124. package/dist/components/RefreshedInput/index.js +0 -34
  125. package/dist/components/RefreshedInput/storyAid/index.js +0 -19
  126. package/dist/components/Select/Select.js +0 -50
  127. package/dist/components/Select/Select.stories.js +0 -63
  128. package/dist/components/Select/index.js +0 -13
  129. package/dist/components/Select/styles/index.js +0 -46
  130. package/dist/components/SelectionCard/SelectionCard.js +0 -61
  131. package/dist/components/SelectionCard/SelectionCard.stories.js +0 -90
  132. package/dist/components/SelectionCard/index.js +0 -13
  133. package/dist/components/Skeleton/Skeleton.stories.js +0 -23
  134. package/dist/components/Skeleton/Skeleton.styles.js +0 -9
  135. package/dist/components/Skeleton/index.js +0 -24
  136. package/dist/components/Spinner/Spinner.js +0 -29
  137. package/dist/components/Spinner/Spinner.stories.js +0 -98
  138. package/dist/components/Spinner/Spinner.styles.js +0 -85
  139. package/dist/components/Switch/Switch.js +0 -40
  140. package/dist/components/Switch/Switch.stories.js +0 -76
  141. package/dist/components/Switch/index.js +0 -13
  142. package/dist/components/Switch/styles/index.js +0 -32
  143. package/dist/components/Table/Table.js +0 -12
  144. package/dist/components/Table/Table.stories.js +0 -69
  145. package/dist/components/Table/Table.styles.js +0 -66
  146. package/dist/components/Table/index.js +0 -62
  147. package/dist/components/Tabs/Tabs.js +0 -35
  148. package/dist/components/Tabs/Tabs.stories.js +0 -39
  149. package/dist/components/Tabs/combineSizeWithVariant.js +0 -36
  150. package/dist/components/Tabs/index.js +0 -38
  151. package/dist/components/Tabs/styles/index.js +0 -70
  152. package/dist/components/Text/Text.js +0 -33
  153. package/dist/components/Text/Text.stories.js +0 -42
  154. package/dist/components/Text/Text.styles.js +0 -45
  155. package/dist/components/Text/combineAsWithVariant.js +0 -100
  156. package/dist/components/Text/options.js +0 -8
  157. package/dist/components/Textarea/Textarea.js +0 -44
  158. package/dist/components/Textarea/Textarea.stories.js +0 -59
  159. package/dist/components/Textarea/index.js +0 -13
  160. package/dist/components/Textarea/styles/index.js +0 -64
  161. package/dist/components/ThemeProvider/ThemeProvider.js +0 -39
  162. package/dist/components/ThemeProvider/ThemeProvider.stories.js +0 -51
  163. package/dist/components/Toast/Toast.stories.js +0 -77
  164. package/dist/components/ToggleButtonGroup/ToggleButtonGroup.js +0 -59
  165. package/dist/components/ToggleButtonGroup/ToggleButtonGroup.stories.js +0 -53
  166. package/dist/components/ToggleButtonGroup/index.js +0 -13
  167. package/dist/components/ToggleButtonGroup/styles/index.js +0 -47
  168. package/dist/components/index.js +0 -785
  169. package/dist/components/styles.js +0 -188
  170. package/dist/theme/base/breakpoints.js +0 -23
  171. package/dist/theme/base/colors.js +0 -138
  172. package/dist/theme/base/index.js +0 -79
  173. package/dist/theme/base/notifications.js +0 -198
  174. package/dist/theme/base/shadows.js +0 -15
  175. package/dist/theme/base/sizes.js +0 -88
  176. package/dist/theme/base/typography.js +0 -38
  177. package/dist/theme/base/zindices.js +0 -33
  178. package/dist/theme/global.js +0 -110
  179. package/dist/theme/index.js +0 -33
  180. package/dist/utils/Spaces.js +0 -16
@@ -1,188 +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
- Object.defineProperty(exports, "Accordion", {
8
- enumerable: true,
9
- get: function () {
10
- return _styles2.default;
11
- }
12
- });
13
- Object.defineProperty(exports, "Badge", {
14
- enumerable: true,
15
- get: function () {
16
- return _styles14.default;
17
- }
18
- });
19
- Object.defineProperty(exports, "Button", {
20
- enumerable: true,
21
- get: function () {
22
- return _Button.default;
23
- }
24
- });
25
- Object.defineProperty(exports, "ButtonRefreshed", {
26
- enumerable: true,
27
- get: function () {
28
- return _styles11.default;
29
- }
30
- });
31
- Object.defineProperty(exports, "Checkbox", {
32
- enumerable: true,
33
- get: function () {
34
- return _styles5.default;
35
- }
36
- });
37
- Object.defineProperty(exports, "Divider", {
38
- enumerable: true,
39
- get: function () {
40
- return _Divider.default;
41
- }
42
- });
43
- Object.defineProperty(exports, "Drawer", {
44
- enumerable: true,
45
- get: function () {
46
- return _styles15.default;
47
- }
48
- });
49
- Object.defineProperty(exports, "GridItem", {
50
- enumerable: true,
51
- get: function () {
52
- return _GridItem.default;
53
- }
54
- });
55
- Object.defineProperty(exports, "Heading", {
56
- enumerable: true,
57
- get: function () {
58
- return _Heading.default;
59
- }
60
- });
61
- Object.defineProperty(exports, "Input", {
62
- enumerable: true,
63
- get: function () {
64
- return _styles8.default;
65
- }
66
- });
67
- Object.defineProperty(exports, "InputRefreshed", {
68
- enumerable: true,
69
- get: function () {
70
- return _styles9.default;
71
- }
72
- });
73
- Object.defineProperty(exports, "Link", {
74
- enumerable: true,
75
- get: function () {
76
- return _Link.default;
77
- }
78
- });
79
- Object.defineProperty(exports, "List", {
80
- enumerable: true,
81
- get: function () {
82
- return _styles.default;
83
- }
84
- });
85
- Object.defineProperty(exports, "Menu", {
86
- enumerable: true,
87
- get: function () {
88
- return _Menu.default;
89
- }
90
- });
91
- Object.defineProperty(exports, "Modal", {
92
- enumerable: true,
93
- get: function () {
94
- return _styles12.default;
95
- }
96
- });
97
- Object.defineProperty(exports, "Popover", {
98
- enumerable: true,
99
- get: function () {
100
- return _styles7.default;
101
- }
102
- });
103
- Object.defineProperty(exports, "Progress", {
104
- enumerable: true,
105
- get: function () {
106
- return _Progress.default;
107
- }
108
- });
109
- Object.defineProperty(exports, "Radio", {
110
- enumerable: true,
111
- get: function () {
112
- return _styles13.default;
113
- }
114
- });
115
- Object.defineProperty(exports, "Select", {
116
- enumerable: true,
117
- get: function () {
118
- return _styles4.default;
119
- }
120
- });
121
- Object.defineProperty(exports, "SelectRefreshed", {
122
- enumerable: true,
123
- get: function () {
124
- return _styles10.default;
125
- }
126
- });
127
- Object.defineProperty(exports, "Skeleton", {
128
- enumerable: true,
129
- get: function () {
130
- return _Skeleton.default;
131
- }
132
- });
133
- Object.defineProperty(exports, "Spinner", {
134
- enumerable: true,
135
- get: function () {
136
- return _Spinner.default;
137
- }
138
- });
139
- Object.defineProperty(exports, "Switch", {
140
- enumerable: true,
141
- get: function () {
142
- return _styles6.default;
143
- }
144
- });
145
- Object.defineProperty(exports, "Table", {
146
- enumerable: true,
147
- get: function () {
148
- return _Table.default;
149
- }
150
- });
151
- Object.defineProperty(exports, "Tabs", {
152
- enumerable: true,
153
- get: function () {
154
- return _styles3.default;
155
- }
156
- });
157
- Object.defineProperty(exports, "Text", {
158
- enumerable: true,
159
- get: function () {
160
- return _Text.default;
161
- }
162
- });
163
- var _styles = _interopRequireDefault(require("./List/styles"));
164
- var _Table = _interopRequireDefault(require("./Table/Table.styles"));
165
- var _Text = _interopRequireDefault(require("./Text/Text.styles"));
166
- var _Link = _interopRequireDefault(require("./Link/Link.styles"));
167
- var _styles2 = _interopRequireDefault(require("./Accordion/styles"));
168
- var _Button = _interopRequireDefault(require("./Button/Button.styles"));
169
- var _GridItem = _interopRequireDefault(require("./Grid/GridItem.styles"));
170
- var _Spinner = _interopRequireDefault(require("./Spinner/Spinner.styles"));
171
- var _Heading = _interopRequireDefault(require("./Heading/Heading.styles"));
172
- var _Divider = _interopRequireDefault(require("./Divider/Divider.styles"));
173
- var _styles3 = _interopRequireDefault(require("./Tabs/styles"));
174
- var _styles4 = _interopRequireDefault(require("./Select/styles"));
175
- var _styles5 = _interopRequireDefault(require("./Checkbox/styles"));
176
- var _styles6 = _interopRequireDefault(require("./Switch/styles"));
177
- var _styles7 = _interopRequireDefault(require("./Popover/styles"));
178
- var _styles8 = _interopRequireDefault(require("./Input/styles"));
179
- var _styles9 = _interopRequireDefault(require("./RefreshedInput/Input/styles"));
180
- var _styles10 = _interopRequireDefault(require("./RefreshedInput/Select/styles"));
181
- var _styles11 = _interopRequireDefault(require("./RefreshedInput/Button/styles"));
182
- var _styles12 = _interopRequireDefault(require("./Modal/styles"));
183
- var _styles13 = _interopRequireDefault(require("./Radio/styles"));
184
- var _Skeleton = _interopRequireDefault(require("./Skeleton/Skeleton.styles"));
185
- var _styles14 = _interopRequireDefault(require("./Badge/styles"));
186
- var _styles15 = _interopRequireDefault(require("./Drawer/styles"));
187
- var _Progress = _interopRequireDefault(require("./Progress/Progress.styles"));
188
- var _Menu = _interopRequireDefault(require("./Menu/Menu.styles"));
@@ -1,23 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _themeTools = require("@chakra-ui/theme-tools");
8
- /**
9
- * The "base" breakpoint is Chakra's default non-responsive value (from 0 upwards).
10
- * While we don't explicitly enable a "mobile" breakpoint, we can consider "base" and
11
- * "mobile" the same for all intents and purposes for mobile-first responsive styling.
12
- * @see https://chakra-ui.com/docs/features/responsive-styles#customizing-breakpoints
13
- */
14
- const breakpoints = (0, _themeTools.createBreakpoints)({
15
- mobileXL: '30rem',
16
- // 480px
17
- tablet: '48rem',
18
- // 768px
19
- desktop: '64rem',
20
- // 1024px
21
- desktopXL: '90rem' // 1440px
22
- });
23
- var _default = exports.default = breakpoints;
@@ -1,138 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- const white = '#ffffff';
8
- const black = '#000000';
9
- const brandBlue = '#0082ff';
10
- const modalOverlay = '#21212160';
11
- const gray = {
12
- 50: '#f6f7f9',
13
- 100: '#e1e6ec',
14
- 200: '#cbd4de',
15
- 300: '#afbdcc',
16
- 400: '#94a7ba',
17
- 500: '#7890a8',
18
- 600: '#537495',
19
- 700: '#3b5261',
20
- 800: '#2f3f4b',
21
- 900: '#26323c'
22
- };
23
- const blue = {
24
- 50: '#f6fbfd',
25
- 100: '#e6f8fd',
26
- 200: '#c0e9fb',
27
- 300: '#96d3fa',
28
- 400: '#5baafa',
29
- 500: '#1271eb',
30
- 600: '#1d58f2',
31
- 700: '#1b46da',
32
- 800: '#1735a6',
33
- 900: '#132b7f'
34
- };
35
- const navy = {
36
- 50: '#f4fafc',
37
- 100: '#e4f7fb',
38
- 200: '#bfebf6',
39
- 300: '#92d9f4',
40
- 400: '#51b7f0',
41
- 500: '#2590ea',
42
- 600: '#1a6cda',
43
- 700: '#1b55b6',
44
- 800: '#194185',
45
- 900: '#002d5b'
46
- };
47
- const green = {
48
- 50: '#ecf8f7',
49
- 100: '#d3f7ef',
50
- 200: '#a4f3d9',
51
- 300: '#65eabf',
52
- 400: '#1edb96',
53
- 500: '#09c66a',
54
- 600: '#08ad50',
55
- 700: '#008547',
56
- 800: '#11703e',
57
- 900: '#115a35'
58
- };
59
- const yellow = {
60
- 50: '#f9f5e5',
61
- 100: '#faf0bd',
62
- 200: '#f6e67c',
63
- 300: '#f1d439',
64
- 400: '#ffbf02',
65
- 500: '#e19706',
66
- 600: '#cf7404',
67
- 700: '#ae5708',
68
- 800: '#8e440e',
69
- 900: '#743710'
70
- };
71
- const red = {
72
- 50: '#fdf9f8',
73
- 100: '#fdeef3',
74
- 200: '#fbcee6',
75
- 300: '#fba4d1',
76
- 400: '#fc6bad',
77
- 500: '#fc4086',
78
- 600: '#f7265f',
79
- 700: '#e01438',
80
- 800: '#b4193c',
81
- 900: '#901530'
82
- };
83
- const colors = {
84
- gray: {
85
- ...gray,
86
- light: gray['50'],
87
- medium: gray['200'],
88
- dark: gray['600']
89
- },
90
- blue,
91
- navy,
92
- red: {
93
- ...red,
94
- default: red['700']
95
- },
96
- green: {
97
- ...green,
98
- default: green['700']
99
- },
100
- yellow: {
101
- ...yellow,
102
- default: yellow['400']
103
- },
104
- primary: {
105
- ...blue,
106
- default: blue['500']
107
- },
108
- secondary: {
109
- ...navy,
110
- default: navy['900']
111
- },
112
- success: green['700'],
113
- warning: yellow['400'],
114
- error: red['700'],
115
- accent: gray['200'],
116
- text: {
117
- primary: {
118
- light: black,
119
- dark: white
120
- },
121
- secondary: {
122
- light: gray['600']
123
- },
124
- link: {
125
- light: blue['500'],
126
- dark: white
127
- }
128
- },
129
- background: {
130
- gray: gray['50'],
131
- white
132
- },
133
- white,
134
- black,
135
- brandBlue,
136
- modalOverlay
137
- };
138
- var _default = exports.default = colors;
@@ -1,79 +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
- Object.defineProperty(exports, "NOTIFICATION_STATUSES", {
8
- enumerable: true,
9
- get: function () {
10
- return _notifications.NOTIFICATION_STATUSES;
11
- }
12
- });
13
- Object.defineProperty(exports, "breakpoints", {
14
- enumerable: true,
15
- get: function () {
16
- return _breakpoints.default;
17
- }
18
- });
19
- Object.defineProperty(exports, "colors", {
20
- enumerable: true,
21
- get: function () {
22
- return _colors.default;
23
- }
24
- });
25
- Object.defineProperty(exports, "fontSizes", {
26
- enumerable: true,
27
- get: function () {
28
- return _typography.fontSizes;
29
- }
30
- });
31
- Object.defineProperty(exports, "fontWeights", {
32
- enumerable: true,
33
- get: function () {
34
- return _typography.fontWeights;
35
- }
36
- });
37
- Object.defineProperty(exports, "fonts", {
38
- enumerable: true,
39
- get: function () {
40
- return _typography.fonts;
41
- }
42
- });
43
- Object.defineProperty(exports, "notificationBaseStyle", {
44
- enumerable: true,
45
- get: function () {
46
- return _notifications.notificationBaseStyle;
47
- }
48
- });
49
- Object.defineProperty(exports, "notificationStatusStyles", {
50
- enumerable: true,
51
- get: function () {
52
- return _notifications.notificationStatusStyles;
53
- }
54
- });
55
- Object.defineProperty(exports, "shadows", {
56
- enumerable: true,
57
- get: function () {
58
- return _shadows.default;
59
- }
60
- });
61
- Object.defineProperty(exports, "sizes", {
62
- enumerable: true,
63
- get: function () {
64
- return _sizes.default;
65
- }
66
- });
67
- Object.defineProperty(exports, "zIndices", {
68
- enumerable: true,
69
- get: function () {
70
- return _zindices.default;
71
- }
72
- });
73
- var _sizes = _interopRequireDefault(require("./sizes"));
74
- var _colors = _interopRequireDefault(require("./colors"));
75
- var _shadows = _interopRequireDefault(require("./shadows"));
76
- var _zindices = _interopRequireDefault(require("./zindices"));
77
- var _breakpoints = _interopRequireDefault(require("./breakpoints"));
78
- var _typography = require("./typography");
79
- var _notifications = require("./notifications");
@@ -1,198 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.notificationStatusStyles = exports.notificationSizeStyles = exports.notificationBaseStyle = exports.NOTIFICATION_STATUSES = void 0;
7
- const NOTIFICATION_STATUSES = exports.NOTIFICATION_STATUSES = {
8
- NEUTRAL: 'neutral',
9
- ERROR: 'error',
10
- WARNING: 'warning',
11
- SUCCESS: 'success'
12
- };
13
- const NOTIFICATION_SIZES = {
14
- SM: 'sm',
15
- MD: 'md',
16
- LG: 'lg'
17
- };
18
- const notificationBaseStyle = exports.notificationBaseStyle = {
19
- container: {
20
- paddingY: 2,
21
- borderRadius: 'base'
22
- },
23
- actionButton: {
24
- fontSize: 'sm',
25
- height: 'fit-content',
26
- lineHeight: '1.4',
27
- color: 'primary.600',
28
- _hover: {
29
- color: 'primary.700'
30
- }
31
- },
32
- dismissButton: {
33
- color: 'gray.600',
34
- borderColor: 'transparent',
35
- borderWidth: '2px',
36
- padding: 0,
37
- width: 10,
38
- height: 10,
39
- backgroundColor: 'transparent',
40
- borderRadius: 'base',
41
- marginLeft: 2,
42
- _hover: {
43
- color: 'gray.700'
44
- },
45
- _focus: {
46
- color: 'gray.700',
47
- borderColor: 'white',
48
- boxShadow: 'outline'
49
- }
50
- },
51
- icon: {
52
- width: 6,
53
- marginRight: 2,
54
- height: 'auto'
55
- },
56
- description: {
57
- lineHeight: 1.4
58
- },
59
- title: {
60
- lineHeight: 1.4
61
- },
62
- variants: {},
63
- sizes: {
64
- sm: {
65
- title: {
66
- fontSize: 'xs'
67
- },
68
- description: {
69
- fontSize: 'xs'
70
- }
71
- },
72
- md: {
73
- title: {
74
- fontSize: 'sm'
75
- },
76
- description: {
77
- fontSize: 'sm'
78
- }
79
- },
80
- lg: {
81
- title: {
82
- fontSize: 'base'
83
- },
84
- description: {
85
- fontSize: 'base'
86
- }
87
- }
88
- }
89
- };
90
- const notificationStatusStyles = status => {
91
- switch (status) {
92
- case NOTIFICATION_STATUSES.NEUTRAL:
93
- return {
94
- container: {
95
- background: 'gray.light'
96
- },
97
- icon: {
98
- color: 'gray.dark'
99
- },
100
- dismissButton: {
101
- _hover: {
102
- background: 'gray.200'
103
- },
104
- _focus: {
105
- background: 'gray.200'
106
- }
107
- }
108
- };
109
- case NOTIFICATION_STATUSES.WARNING:
110
- return {
111
- container: {
112
- background: 'yellow.100'
113
- },
114
- icon: {
115
- color: 'yellow.500'
116
- },
117
- dismissButton: {
118
- _hover: {
119
- background: 'yellow.200'
120
- },
121
- _focus: {
122
- background: 'yellow.200'
123
- }
124
- }
125
- };
126
- case NOTIFICATION_STATUSES.ERROR:
127
- return {
128
- container: {
129
- background: 'red.100'
130
- },
131
- icon: {
132
- color: 'red.700'
133
- },
134
- dismissButton: {
135
- _hover: {
136
- background: 'red.200'
137
- },
138
- _focus: {
139
- background: 'red.200'
140
- }
141
- }
142
- };
143
- case NOTIFICATION_STATUSES.SUCCESS:
144
- return {
145
- container: {
146
- background: 'green.100'
147
- },
148
- icon: {
149
- color: 'green.700'
150
- },
151
- dismissButton: {
152
- _hover: {
153
- background: 'green.200'
154
- },
155
- _focus: {
156
- background: 'green.200'
157
- }
158
- }
159
- };
160
- default:
161
- return {};
162
- }
163
- };
164
- exports.notificationStatusStyles = notificationStatusStyles;
165
- const notificationSizeStyles = size => {
166
- switch (size) {
167
- case NOTIFICATION_SIZES.SM:
168
- return {
169
- title: {
170
- fontSize: 'xs'
171
- },
172
- description: {
173
- fontSize: 'xs'
174
- }
175
- };
176
- case NOTIFICATION_SIZES.MD:
177
- return {
178
- title: {
179
- fontSize: 'sm'
180
- },
181
- description: {
182
- fontSize: 'sm'
183
- }
184
- };
185
- case NOTIFICATION_SIZES.LG:
186
- return {
187
- title: {
188
- fontSize: 'base'
189
- },
190
- description: {
191
- fontSize: 'base'
192
- }
193
- };
194
- default:
195
- return {};
196
- }
197
- };
198
- exports.notificationSizeStyles = notificationSizeStyles;
@@ -1,15 +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 _merge = _interopRequireDefault(require("lodash/merge"));
9
- var _theme = _interopRequireDefault(require("@chakra-ui/theme"));
10
- const shadows = {
11
- outline: '0 0 0 3px rgba(91, 170, 250, 0.7)',
12
- // primary.400, 70% opacity
13
- drawer: '-8px 0 16px 0 rgba(33,33,33,.1)'
14
- };
15
- var _default = exports.default = (0, _merge.default)(_theme.default.shadows, shadows);