@spothero/ui 25.12.0 → 25.16.0-beta.2

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 (50) hide show
  1. package/dist/components/Accordion/AccordionActionButton.d.ts +6 -2
  2. package/dist/components/Button/Button.styles.d.ts +46 -0
  3. package/dist/components/Menu/Menu.d.ts +6 -0
  4. package/dist/components/Menu/Menu.styles.d.ts +4 -258
  5. package/dist/components/Menu/index.d.ts +2 -0
  6. package/dist/components/Modal/AlwaysMountedModal.d.ts +7 -0
  7. package/dist/components/Modal/Modal.d.ts +17 -0
  8. package/dist/components/Modal/index.d.ts +3 -0
  9. package/dist/components/Modal/styles/body.d.ts +3 -6
  10. package/dist/components/Modal/styles/closeButton.d.ts +3 -4
  11. package/dist/components/Modal/styles/dialog.d.ts +3 -4
  12. package/dist/components/Modal/styles/dialogContainer.d.ts +12 -12
  13. package/dist/components/Modal/styles/footer.d.ts +13 -12
  14. package/dist/components/Modal/styles/header.d.ts +4 -6
  15. package/dist/components/Modal/styles/index.d.ts +4 -240
  16. package/dist/components/Modal/styles/overlay.d.ts +5 -5
  17. package/dist/components/Modal/types.d.ts +6 -0
  18. package/dist/components/Popover/Popover.d.ts +10 -0
  19. package/dist/components/Popover/PopoverArrow.d.ts +7 -0
  20. package/dist/components/Popover/PopoverCloseButton.d.ts +7 -0
  21. package/dist/components/Popover/PopoverContent.d.ts +15 -0
  22. package/dist/components/Popover/index.d.ts +4 -0
  23. package/dist/components/Popover/styles/index.d.ts +4 -100
  24. package/dist/components/Popover/styles/popover-arrow.d.ts +5 -0
  25. package/dist/components/Popover/styles/popover-body.d.ts +3 -2
  26. package/dist/components/Popover/styles/popover-close-button.d.ts +18 -0
  27. package/dist/components/Popover/styles/popover-content.d.ts +8 -5
  28. package/dist/components/Popover/styles/popover-header.d.ts +4 -4
  29. package/dist/components/Popover/styles/popper.d.ts +3 -3
  30. package/dist/components/Popover/types.d.ts +4 -0
  31. package/dist/components/SelectionCard/SelectionCard.d.ts +20 -0
  32. package/dist/components/SelectionCard/index.d.ts +1 -0
  33. package/dist/components/Table/Table.d.ts +1 -0
  34. package/dist/components/Table/Table.styles.d.ts +73 -65
  35. package/dist/components/Table/index.d.ts +2 -0
  36. package/dist/components/Tabs/Tabs.d.ts +10 -0
  37. package/dist/components/Tabs/combineSizeWithVariant.d.ts +120 -0
  38. package/dist/components/Tabs/index.d.ts +2 -0
  39. package/dist/components/Tabs/styles/index.d.ts +52 -298
  40. package/dist/components/ThemeProvider/ThemeProvider.d.ts +17 -0
  41. package/dist/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +27 -0
  42. package/dist/components/ToggleButtonGroup/index.d.ts +1 -0
  43. package/dist/components/ToggleButtonGroup/styles/index.d.ts +5 -0
  44. package/dist/index.cjs.js +743 -1039
  45. package/dist/index.cjs.js.map +1 -1
  46. package/dist/index.d.ts +143 -29
  47. package/dist/index.esm.js +743 -1039
  48. package/dist/index.esm.js.map +1 -1
  49. package/dist/utils/Spaces.d.ts +8 -0
  50. package/package.json +7 -5
@@ -1,3 +1,7 @@
1
- export default AccordionActionButton;
2
- declare const AccordionActionButton: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
3
1
  import React from 'react';
2
+ export type AccordionActionButtonProps = {
3
+ onClick?: () => void;
4
+ children: React.ReactNode;
5
+ };
6
+ declare const AccordionActionButton: React.ForwardRefExoticComponent<AccordionActionButtonProps & React.RefAttributes<HTMLDivElement>>;
7
+ export default AccordionActionButton;
@@ -78,6 +78,26 @@ export declare const variants: {
78
78
  readonly bg: string;
79
79
  };
80
80
  };
81
+ readonly iconSecondary: {
82
+ readonly bg: "white";
83
+ readonly borderColor: "gray.medium";
84
+ readonly color: "black";
85
+ readonly minW: "unset";
86
+ readonly px: 3;
87
+ readonly py: 3;
88
+ readonly _hover: {
89
+ readonly _disabled: {
90
+ bg: string;
91
+ borderColor: string;
92
+ color: string;
93
+ };
94
+ readonly bg: string;
95
+ readonly color: "black";
96
+ };
97
+ readonly _active: {
98
+ readonly bg: string;
99
+ };
100
+ };
81
101
  readonly secondaryOnDark: {
82
102
  readonly bg: "none";
83
103
  readonly borderColor: "white";
@@ -120,6 +140,32 @@ export declare const variants: {
120
140
  };
121
141
  };
122
142
  };
143
+ readonly iconTertiary: {
144
+ readonly bg: "none";
145
+ readonly borderWidth: "none";
146
+ readonly borderRadius: "unset";
147
+ readonly color: "black";
148
+ readonly h: "unset";
149
+ readonly m: "unset";
150
+ readonly minW: "unset";
151
+ readonly px: 2;
152
+ readonly py: 2;
153
+ readonly lineHeight: 1;
154
+ readonly _disabled: {
155
+ readonly bg: "none";
156
+ readonly color: "gray.dark";
157
+ };
158
+ readonly _hover: {
159
+ readonly _disabled: {
160
+ readonly color: "gray.dark";
161
+ };
162
+ };
163
+ readonly _active: {
164
+ readonly _disabled: {
165
+ readonly color: "gray.dark";
166
+ };
167
+ };
168
+ };
123
169
  readonly tertiaryOnDark: {
124
170
  readonly bg: "none";
125
171
  readonly borderRadius: "unset";
@@ -0,0 +1,6 @@
1
+ import { type MenuProps as ChakraMenuProps } from '@chakra-ui/react';
2
+ import type { ForwardRefComponent } from '../../types/forwardRefComponent';
3
+ export interface MenuProps extends ChakraMenuProps {
4
+ }
5
+ declare const Menu: ForwardRefComponent<HTMLDivElement, MenuProps>;
6
+ export default Menu;
@@ -1,258 +1,4 @@
1
- declare const _default: {
2
- baseStyle?: {
3
- button: {
4
- transitionProperty: string;
5
- transitionDuration: string;
6
- };
7
- list: {
8
- [x: string]: string | number | {
9
- [x: string]: string;
10
- };
11
- _dark: {
12
- [x: string]: string;
13
- };
14
- color: string;
15
- minW: string;
16
- py: string;
17
- zIndex: number;
18
- borderRadius: string;
19
- borderWidth: string;
20
- bg: string;
21
- boxShadow: string;
22
- };
23
- item: {
24
- py: string;
25
- px: string;
26
- transitionProperty: string;
27
- transitionDuration: string;
28
- transitionTimingFunction: string;
29
- _focus: {
30
- [x: string]: string | {
31
- [x: string]: string;
32
- };
33
- _dark: {
34
- [x: string]: string;
35
- };
36
- };
37
- _active: {
38
- [x: string]: string | {
39
- [x: string]: string;
40
- };
41
- _dark: {
42
- [x: string]: string;
43
- };
44
- };
45
- _expanded: {
46
- [x: string]: string | {
47
- [x: string]: string;
48
- };
49
- _dark: {
50
- [x: string]: string;
51
- };
52
- };
53
- _disabled: {
54
- opacity: number;
55
- cursor: string;
56
- };
57
- bg: string;
58
- };
59
- groupTitle: {
60
- mx: number;
61
- my: number;
62
- fontWeight: string;
63
- fontSize: string;
64
- };
65
- icon: {
66
- display: string;
67
- alignItems: string;
68
- justifyContent: string;
69
- flexShrink: number;
70
- };
71
- command: {
72
- opacity: number;
73
- };
74
- divider: {
75
- border: number;
76
- borderBottom: string;
77
- borderColor: string;
78
- my: string;
79
- opacity: number;
80
- };
81
- } | undefined;
82
- sizes?: {
83
- [key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
84
- keys: ("button" | "icon" | "item" | "list" | "groupTitle" | "command" | "divider")[];
85
- }>;
86
- } | undefined;
87
- variants?: {
88
- [key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
89
- keys: ("button" | "icon" | "item" | "list" | "groupTitle" | "command" | "divider")[];
90
- }>;
91
- } | undefined;
92
- defaultProps?: {
93
- size?: string | number | undefined;
94
- variant?: string | number | undefined;
95
- colorScheme?: string | undefined;
96
- } | undefined;
97
- parts: ("button" | "icon" | "item" | "list" | "groupTitle" | "command" | "divider")[];
98
- } & {
99
- baseStyle: {
100
- button: {
101
- px: number;
102
- py: number;
103
- fontSize: string;
104
- fontFamily: string;
105
- lineHeight: number;
106
- fontWeight: string;
107
- borderWidth: string;
108
- borderStyle: string;
109
- borderRadius: string;
110
- textTransform: string;
111
- transition: string;
112
- _hover: {
113
- bg: string;
114
- borderColor: string;
115
- };
116
- _disabled: {
117
- cursor: string;
118
- opacity: number;
119
- bg: string;
120
- borderColor: string;
121
- color: string;
122
- };
123
- _focus: {
124
- zIndex: number;
125
- boxShadow: string;
126
- };
127
- };
128
- list: {
129
- bg: string;
130
- boxShadow: string;
131
- padding: number;
132
- zIndex: string;
133
- width: number;
134
- };
135
- item: {
136
- paddingX: number;
137
- paddingY: number;
138
- _focus: {
139
- zIndex: number;
140
- boxShadow: string;
141
- };
142
- };
143
- groupTitle: {
144
- fontWeight: string;
145
- color: string;
146
- padding: number;
147
- };
148
- command: {
149
- opacity: string;
150
- fontFamily: string;
151
- fontSize: string;
152
- letterSpacing: string;
153
- paddingL: number;
154
- };
155
- divider: {
156
- marginY: number;
157
- borderColor: string;
158
- };
159
- };
160
- variants: {
161
- basic: {
162
- button: {
163
- bg: string;
164
- borderColor: string;
165
- color: string;
166
- _hover: {
167
- bg: string;
168
- borderColor: string;
169
- color: string;
170
- _disabled: {
171
- bg: string;
172
- borderColor: string;
173
- color: string;
174
- };
175
- };
176
- };
177
- list: {
178
- bg: string;
179
- boxShadow: string;
180
- zIndex: string;
181
- borderColor: string;
182
- borderWidth: string;
183
- borderStyle: string;
184
- borderRadius: string;
185
- padding: number;
186
- width: number;
187
- };
188
- groupTitle: {
189
- fontWeight: string;
190
- fontSize: string;
191
- color: string;
192
- padding: number;
193
- };
194
- item: {
195
- fontWeight: string;
196
- _hover: {
197
- color: string;
198
- };
199
- };
200
- };
201
- full: {
202
- button: {
203
- height: number;
204
- fontSize: string;
205
- fontWeight: string;
206
- color: string;
207
- borderColor: string;
208
- backgroundColor: string;
209
- borderRadius: string;
210
- paddingX: number;
211
- paddingY: string;
212
- _hover: {
213
- color: string;
214
- backgroundColor: string;
215
- borderColor: string;
216
- };
217
- _active: {
218
- color: string;
219
- backgroundColor: string;
220
- borderColor: string;
221
- _hover: {
222
- color: string;
223
- backgroundColor: string;
224
- borderColor: string;
225
- };
226
- };
227
- };
228
- list: {
229
- height: string;
230
- width: string;
231
- padding: number;
232
- backgroundColor: string;
233
- };
234
- groupTitle: {
235
- fontSize: string;
236
- weight: string;
237
- color: string;
238
- };
239
- item: {
240
- display: string;
241
- paddingX: number;
242
- paddingY: number;
243
- marginBottom: number;
244
- _last: {
245
- marginBottom: number;
246
- };
247
- _hover: {
248
- backgroundColor: string;
249
- };
250
- _focus: {
251
- boxShadow: string;
252
- backgroundColor: string;
253
- };
254
- };
255
- };
256
- };
257
- };
258
- export default _default;
1
+ import { theme as chakraDefaultTheme } from '@chakra-ui/react';
2
+ type MenuStyle = NonNullable<typeof chakraDefaultTheme.components.Menu>;
3
+ declare const menuStyle: MenuStyle;
4
+ export default menuStyle;
@@ -0,0 +1,2 @@
1
+ export { default } from './Menu';
2
+ export { MenuButton, MenuList, MenuItem, MenuItemOption, MenuGroup, MenuOptionGroup, MenuDivider, } from '@chakra-ui/react';
@@ -0,0 +1,7 @@
1
+ import type { ForwardRefComponent } from '../../types/forwardRefComponent';
2
+ import type { ModalProps } from './Modal';
3
+ export interface AlwaysMountedModalProps extends ModalProps {
4
+ onCloseComplete?: () => void;
5
+ }
6
+ declare const AlwaysMountedModal: ForwardRefComponent<HTMLDivElement, AlwaysMountedModalProps>;
7
+ export default AlwaysMountedModal;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { ModalOverlay, ModalContent, Modal as ChakraModal } from '@chakra-ui/react';
3
+ import type { ForwardRefComponent } from '../../types/forwardRefComponent';
4
+ import type { ModalSize, ModalStyleProps } from './types';
5
+ type ChakraModalProps = Omit<React.ComponentProps<typeof ChakraModal>, 'children' | 'size'>;
6
+ type ModalContentProps = React.ComponentProps<typeof ModalContent>;
7
+ type ModalOverlayProps = React.ComponentProps<typeof ModalOverlay>;
8
+ export interface ModalProps extends ChakraModalProps, ModalStyleProps {
9
+ children: React.ReactNode;
10
+ isOpen: boolean;
11
+ size?: ModalSize;
12
+ isMobile?: boolean;
13
+ contentStyling?: ModalContentProps;
14
+ overlayProps?: ModalOverlayProps;
15
+ }
16
+ declare const Modal: ForwardRefComponent<HTMLDivElement, ModalProps>;
17
+ export default Modal;
@@ -0,0 +1,3 @@
1
+ export { ModalBody, ModalFooter, ModalHeader } from '@chakra-ui/react';
2
+ export { default as Modal } from './Modal';
3
+ export { default as AlwaysMountedModal } from './AlwaysMountedModal';
@@ -1,8 +1,5 @@
1
- declare function _default({ hasFooter, hasHeader, hideCloseButton }: {
2
- hasFooter: any;
3
- hasHeader: any;
4
- hideCloseButton: any;
5
- }): {
1
+ import type { ModalStyleProps } from '../types';
2
+ declare const body: ({ hasFooter, hasHeader, hideCloseButton }: ModalStyleProps) => {
6
3
  background: string;
7
4
  backgroundRepeat: string;
8
5
  backgroundColor: string;
@@ -27,4 +24,4 @@ declare function _default({ hasFooter, hasHeader, hideCloseButton }: {
27
24
  overflow: string;
28
25
  display: string;
29
26
  };
30
- export default _default;
27
+ export default body;
@@ -1,6 +1,5 @@
1
- declare function _default({ hasHeader }: {
2
- hasHeader: any;
3
- }): {
1
+ import type { ModalStyleProps } from '../types';
2
+ declare const closeButton: ({ hasHeader }: ModalStyleProps) => {
4
3
  position: string;
5
4
  top: number;
6
5
  insetEnd: number;
@@ -15,4 +14,4 @@ declare function _default({ hasHeader }: {
15
14
  bg: string;
16
15
  };
17
16
  };
18
- export default _default;
17
+ export default closeButton;
@@ -1,6 +1,5 @@
1
- declare function _default({ hasFooter }: {
2
- hasFooter: any;
3
- }): {
1
+ import type { ModalStyleProps } from '../types';
2
+ declare const dialog: ({ hasFooter }: ModalStyleProps) => {
4
3
  borderRadius: string;
5
4
  borderBottomRadius: {
6
5
  base: string;
@@ -13,4 +12,4 @@ declare function _default({ hasFooter }: {
13
12
  boxShadow: string;
14
13
  paddingBottom: number;
15
14
  };
16
- export default _default;
15
+ export default dialog;
@@ -1,12 +1,12 @@
1
- declare namespace _default {
2
- let display: string;
3
- let zIndex: string;
4
- let justifyContent: string;
5
- namespace alignItems {
6
- let base: string;
7
- let tablet: string;
8
- }
9
- let height: string;
10
- let minHeight: string;
11
- }
12
- export default _default;
1
+ declare const dialogContainer: {
2
+ readonly display: "flex";
3
+ readonly zIndex: "layer8";
4
+ readonly justifyContent: "center";
5
+ readonly alignItems: {
6
+ readonly base: "flex-end";
7
+ readonly tablet: "center";
8
+ };
9
+ readonly height: "100%";
10
+ readonly minHeight: "fill-available";
11
+ };
12
+ export default dialogContainer;
@@ -1,12 +1,13 @@
1
- declare namespace _default {
2
- let borderTop: string;
3
- let borderColor: string;
4
- let padding: number;
5
- let gap: number;
6
- let justifyContent: string;
7
- namespace flexDirection {
8
- let base: string;
9
- let desktop: string;
10
- }
11
- }
12
- export default _default;
1
+ declare const footer: {
2
+ readonly borderTop: "1px";
3
+ readonly borderColor: "gray.100";
4
+ readonly padding: 4;
5
+ readonly gap: 4;
6
+ readonly justifyContent: "flex-start";
7
+ readonly alignItems: "normal";
8
+ readonly flexDirection: {
9
+ readonly base: "column";
10
+ readonly desktop: "row-reverse";
11
+ };
12
+ };
13
+ export default footer;
@@ -1,10 +1,8 @@
1
- declare function _default({ hideCloseButton, hasHeader }: {
2
- hideCloseButton: any;
3
- hasHeader: any;
4
- }): {
1
+ import type { ModalStyleProps } from '../types';
2
+ declare const header: ({ hideCloseButton, hasHeader }: ModalStyleProps) => {
5
3
  padding: number;
6
4
  fontSize: string;
7
5
  fontWeight: string;
8
- minHeight: number | null;
6
+ minHeight: number | undefined;
9
7
  };
10
- export default _default;
8
+ export default header;