@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,240 +1,4 @@
1
- declare const _default: {
2
- baseStyle?: ((props: import("@chakra-ui/react").StyleFunctionProps) => {
3
- overlay: {
4
- bg: string;
5
- zIndex: string;
6
- };
7
- dialogContainer: {
8
- display: string;
9
- zIndex: string;
10
- justifyContent: string;
11
- alignItems: string;
12
- overflow: string;
13
- overscrollBehaviorY: string;
14
- };
15
- dialog: {
16
- [x: string]: string | {
17
- [x: string]: string;
18
- } | undefined;
19
- borderRadius: string;
20
- color: string;
21
- my: string;
22
- mx: string | undefined;
23
- zIndex: string;
24
- maxH: string | undefined;
25
- _dark: {
26
- [x: string]: string;
27
- };
28
- bg: string;
29
- boxShadow: string;
30
- };
31
- header: {
32
- px: string;
33
- py: string;
34
- fontSize: string;
35
- fontWeight: string;
36
- };
37
- closeButton: {
38
- position: string;
39
- top: string;
40
- insetEnd: string;
41
- };
42
- body: {
43
- px: string;
44
- py: string;
45
- flex: string;
46
- overflow: string | undefined;
47
- };
48
- footer: {
49
- px: string;
50
- py: string;
51
- };
52
- }) | undefined;
53
- sizes?: {
54
- xs: {
55
- dialog: {
56
- maxW: string;
57
- };
58
- };
59
- sm: {
60
- dialog: {
61
- maxW: string;
62
- };
63
- };
64
- md: {
65
- dialog: {
66
- maxW: string;
67
- };
68
- };
69
- lg: {
70
- dialog: {
71
- maxW: string;
72
- };
73
- };
74
- xl: {
75
- dialog: {
76
- maxW: string;
77
- };
78
- };
79
- "2xl": {
80
- dialog: {
81
- maxW: string;
82
- };
83
- };
84
- "3xl": {
85
- dialog: {
86
- maxW: string;
87
- };
88
- };
89
- "4xl": {
90
- dialog: {
91
- maxW: string;
92
- };
93
- };
94
- "5xl": {
95
- dialog: {
96
- maxW: string;
97
- };
98
- };
99
- "6xl": {
100
- dialog: {
101
- maxW: string;
102
- };
103
- };
104
- full: {
105
- dialog: {
106
- maxW: string;
107
- };
108
- };
109
- } | undefined;
110
- variants?: {
111
- [key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
112
- keys: ("overlay" | "dialogContainer" | "dialog" | "header" | "closeButton" | "body" | "footer")[];
113
- }>;
114
- } | undefined;
115
- defaultProps?: {
116
- size?: "md" | "full" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | undefined;
117
- variant?: string | number | undefined;
118
- colorScheme?: string | undefined;
119
- } | undefined;
120
- parts: ("overlay" | "dialogContainer" | "dialog" | "header" | "closeButton" | "body" | "footer")[];
121
- } & {
122
- baseStyle: (props: any) => {
123
- overlay: {
124
- background: string;
125
- zIndex: string;
126
- };
127
- dialogContainer: {
128
- display: string;
129
- zIndex: string;
130
- justifyContent: string;
131
- alignItems: {
132
- base: string;
133
- tablet: string;
134
- };
135
- height: string;
136
- minHeight: string;
137
- };
138
- header: {
139
- padding: number;
140
- fontSize: string;
141
- fontWeight: string;
142
- minHeight: number | null;
143
- };
144
- dialog: {
145
- borderRadius: string;
146
- borderBottomRadius: {
147
- base: string;
148
- tablet: string;
149
- };
150
- background: string;
151
- color: string;
152
- marginY: number;
153
- zIndex: string;
154
- boxShadow: string;
155
- paddingBottom: number;
156
- };
157
- closeButton: {
158
- position: string;
159
- top: number;
160
- insetEnd: number;
161
- color: string;
162
- borderRadius: string;
163
- width: number;
164
- height: number;
165
- _focus: {
166
- boxShadow: string;
167
- };
168
- _hover: {
169
- bg: string;
170
- };
171
- };
172
- body: {
173
- background: string;
174
- backgroundRepeat: string;
175
- backgroundColor: string;
176
- backgroundSize: string;
177
- backgroundAttachment: string;
178
- borderBottomRadius: string | null;
179
- paddingX: number;
180
- paddingBottom: number;
181
- flex: number;
182
- overflow: string;
183
- display: string;
184
- } | {
185
- background?: undefined;
186
- backgroundRepeat?: undefined;
187
- backgroundColor?: undefined;
188
- backgroundSize?: undefined;
189
- backgroundAttachment?: undefined;
190
- borderBottomRadius: string | null;
191
- paddingX: number;
192
- paddingBottom: number;
193
- flex: number;
194
- overflow: string;
195
- display: string;
196
- };
197
- footer: {
198
- borderTop: string;
199
- borderColor: string;
200
- padding: number;
201
- gap: number;
202
- justifyContent: string;
203
- flexDirection: {
204
- base: string;
205
- desktop: string;
206
- };
207
- };
208
- };
209
- sizes: {
210
- sm: {
211
- dialog: {
212
- maxWidth: string[];
213
- maxHeight: string[];
214
- minHeight: string[];
215
- };
216
- };
217
- 'sm-md': {
218
- dialog: {
219
- maxHeight: string[];
220
- minWidth: (string | number)[];
221
- maxWidth: string[];
222
- };
223
- };
224
- md: {
225
- dialog: {
226
- maxWidth: string[];
227
- maxHeight: string[];
228
- minHeight: string[];
229
- };
230
- };
231
- lg: {
232
- dialog: {
233
- maxWidth: string[];
234
- maxHeight: string[];
235
- minHeight: string[];
236
- };
237
- };
238
- };
239
- };
240
- export default _default;
1
+ import { theme as chakraDefaultTheme } from '@chakra-ui/react';
2
+ type ModalStyle = NonNullable<typeof chakraDefaultTheme.components.Modal>;
3
+ declare const modalStyle: ModalStyle;
4
+ export default modalStyle;
@@ -1,5 +1,5 @@
1
- declare namespace _default {
2
- let background: string;
3
- let zIndex: string;
4
- }
5
- export default _default;
1
+ declare const overlay: {
2
+ readonly background: "modalOverlay";
3
+ readonly zIndex: "layer8";
4
+ };
5
+ export default overlay;
@@ -0,0 +1,6 @@
1
+ export type ModalSize = 'sm' | 'sm-md' | 'md' | 'lg' | 'full';
2
+ export interface ModalStyleProps {
3
+ hasHeader?: boolean;
4
+ hasFooter?: boolean;
5
+ hideCloseButton?: boolean;
6
+ }
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { Popover as ChakraPopover } from '@chakra-ui/react';
3
+ import type { ForwardRefComponent } from '../../types/forwardRefComponent';
4
+ import type { PopoverVariant } from './types';
5
+ export interface PopoverProps extends React.ComponentProps<typeof ChakraPopover> {
6
+ children?: React.ReactNode;
7
+ variant?: PopoverVariant;
8
+ }
9
+ declare const Popover: ForwardRefComponent<HTMLDivElement, PopoverProps>;
10
+ export default Popover;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { PopoverArrow as ChakraPopoverArrow } from '@chakra-ui/react';
3
+ import type { ForwardRefComponent } from '../../types/forwardRefComponent';
4
+ import type { PopoverVariantProps } from './types';
5
+ export type PopoverArrowProps = React.ComponentProps<typeof ChakraPopoverArrow> & PopoverVariantProps;
6
+ declare const PopoverArrow: ForwardRefComponent<HTMLDivElement, PopoverArrowProps>;
7
+ export default PopoverArrow;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { PopoverCloseButton as ChakraPopoverCloseButton } from '@chakra-ui/react';
3
+ import type { ForwardRefComponent } from '../../types/forwardRefComponent';
4
+ import type { PopoverVariantProps } from './types';
5
+ type PopoverCloseButtonProps = React.ComponentProps<typeof ChakraPopoverCloseButton> & PopoverVariantProps;
6
+ declare const PopoverCloseButton: ForwardRefComponent<HTMLButtonElement, PopoverCloseButtonProps>;
7
+ export default PopoverCloseButton;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { PopoverBody, PopoverContent as ChakraPopoverContent } from '@chakra-ui/react';
3
+ import type { ForwardRefComponent } from '../../types/forwardRefComponent';
4
+ import type { PopoverVariant } from './types';
5
+ type PopoverBodyProps = React.ComponentProps<typeof PopoverBody>;
6
+ export type PopoverContentProps = React.ComponentProps<typeof ChakraPopoverContent> & {
7
+ children?: React.ReactNode;
8
+ hideCloseButton?: boolean;
9
+ hideArrow?: boolean;
10
+ variant?: PopoverVariant;
11
+ header?: React.ReactNode;
12
+ popoverBodyProps?: PopoverBodyProps;
13
+ };
14
+ declare const PopoverContent: ForwardRefComponent<HTMLDivElement, PopoverContentProps>;
15
+ export default PopoverContent;
@@ -0,0 +1,4 @@
1
+ export { PopoverTrigger, PopoverAnchor } from '@chakra-ui/react';
2
+ export { default as Popover } from './Popover';
3
+ export { default as PopoverContent } from './PopoverContent';
4
+ export { default as PopoverArrow } from './PopoverArrow';
@@ -1,100 +1,4 @@
1
- declare const _default: {
2
- baseStyle?: {
3
- popper: {
4
- zIndex: number;
5
- };
6
- content: {
7
- [x: string]: string | {
8
- [x: string]: string;
9
- outline?: undefined;
10
- boxShadow?: undefined;
11
- } | {
12
- outline: number;
13
- boxShadow: string;
14
- };
15
- bg: string;
16
- _dark: {
17
- [x: string]: string;
18
- };
19
- width: string;
20
- border: string;
21
- borderColor: string;
22
- borderRadius: string;
23
- boxShadow: string;
24
- zIndex: string;
25
- _focusVisible: {
26
- outline: number;
27
- boxShadow: string;
28
- };
29
- };
30
- header: {
31
- px: number;
32
- py: number;
33
- borderBottomWidth: string;
34
- };
35
- body: {
36
- px: number;
37
- py: number;
38
- };
39
- footer: {
40
- px: number;
41
- py: number;
42
- borderTopWidth: string;
43
- };
44
- closeButton: {
45
- position: string;
46
- borderRadius: string;
47
- top: number;
48
- insetEnd: number;
49
- padding: number;
50
- };
51
- } | undefined;
52
- sizes?: {
53
- [key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
54
- keys: ("content" | "header" | "closeButton" | "body" | "footer" | "popper" | "arrow")[];
55
- }>;
56
- } | undefined;
57
- variants?: {
58
- [key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
59
- keys: ("content" | "header" | "closeButton" | "body" | "footer" | "popper" | "arrow")[];
60
- }>;
61
- } | undefined;
62
- defaultProps?: {
63
- size?: string | number | undefined;
64
- variant?: string | number | undefined;
65
- colorScheme?: string | undefined;
66
- } | undefined;
67
- parts: ("content" | "header" | "closeButton" | "body" | "footer" | "popper" | "arrow")[];
68
- } & {
69
- parts: string[];
70
- baseStyle: (props: any) => {
71
- header: {
72
- marginBottom: number;
73
- fontWeight: string;
74
- };
75
- content: {
76
- padding: number;
77
- marginBottom: number;
78
- maxWidth: string;
79
- borderRadius: string;
80
- background: string;
81
- boxShadow: string;
82
- color: string;
83
- borderColor: string;
84
- borderWidth: string;
85
- borderStyle: string;
86
- '--popper-arrow-shadow-color': (t: any) => any;
87
- zIndex: string;
88
- _focusVisible: {
89
- outline: string;
90
- };
91
- };
92
- body: {
93
- fontSize: string;
94
- };
95
- popper: {
96
- borderRadius: string;
97
- };
98
- };
99
- };
100
- export default _default;
1
+ import { theme as chakraDefaultTheme } from '@chakra-ui/react';
2
+ type PopoverStyle = NonNullable<typeof chakraDefaultTheme.components.Popover>;
3
+ declare const popoverStyle: PopoverStyle;
4
+ export default popoverStyle;
@@ -0,0 +1,5 @@
1
+ import type { PopoverVariantProps } from '../types';
2
+ declare const arrowStyles: ({ variant }: PopoverVariantProps) => {
3
+ backgroundColor: string;
4
+ };
5
+ export default arrowStyles;
@@ -1,4 +1,5 @@
1
- export default body;
2
- declare function body(props: any): {
1
+ import type { PopoverVariantProps } from '../types';
2
+ declare const body: (_props: PopoverVariantProps) => {
3
3
  fontSize: string;
4
4
  };
5
+ export default body;
@@ -0,0 +1,18 @@
1
+ import type { PopoverVariantProps } from '../types';
2
+ declare const closeButtonStyles: ({ variant }: PopoverVariantProps) => {
3
+ color: string;
4
+ fontSize: string;
5
+ position: "absolute";
6
+ top: number;
7
+ right: number;
8
+ padding: number;
9
+ borderTopRightRadius: number;
10
+ _hover: {
11
+ bgColor: string;
12
+ };
13
+ _focus: {
14
+ boxShadow: string;
15
+ bgColor: string;
16
+ };
17
+ };
18
+ export default closeButtonStyles;
@@ -1,7 +1,5 @@
1
- export default popoverContentStyles;
2
- declare function popoverContentStyles({ variant }: {
3
- variant: any;
4
- }): {
1
+ import type { PopoverVariantProps } from '../types';
2
+ declare const popoverContentStyles: ({ variant }: PopoverVariantProps) => {
5
3
  padding: number;
6
4
  marginBottom: number;
7
5
  maxWidth: string;
@@ -12,9 +10,14 @@ declare function popoverContentStyles({ variant }: {
12
10
  borderColor: string;
13
11
  borderWidth: string;
14
12
  borderStyle: string;
15
- '--popper-arrow-shadow-color': (t: any) => any;
13
+ '--popper-arrow-shadow-color': (t: {
14
+ colors: {
15
+ gray: Record<string, string>;
16
+ };
17
+ }) => string;
16
18
  zIndex: string;
17
19
  _focusVisible: {
18
20
  outline: string;
19
21
  };
20
22
  };
23
+ export default popoverContentStyles;
@@ -1,5 +1,5 @@
1
+ declare const headerStyles: {
2
+ readonly marginBottom: 2;
3
+ readonly fontWeight: "semibold";
4
+ };
1
5
  export default headerStyles;
2
- declare namespace headerStyles {
3
- let marginBottom: number;
4
- let fontWeight: string;
5
- }
@@ -1,4 +1,4 @@
1
+ declare const popperStyles: {
2
+ readonly borderRadius: "base";
3
+ };
1
4
  export default popperStyles;
2
- declare namespace popperStyles {
3
- let borderRadius: string;
4
- }
@@ -0,0 +1,4 @@
1
+ export type PopoverVariant = 'light' | 'dark';
2
+ export interface PopoverVariantProps {
3
+ variant?: PopoverVariant;
4
+ }
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { type BoxProps } from '@chakra-ui/react';
3
+ import type { CheckboxProps } from '../Checkbox/Checkbox';
4
+ export type SelectionCardProps = Omit<CheckboxProps, 'children' | 'value' | 'size'> & {
5
+ label: React.ReactNode;
6
+ expandableChildren?: React.ReactNode;
7
+ defaultChecked?: boolean;
8
+ isChecked?: boolean;
9
+ isDisabled?: boolean;
10
+ value: string;
11
+ helperText?: string;
12
+ isRadio?: boolean;
13
+ isExpandable?: boolean;
14
+ expandableChildrenStyles?: BoxProps;
15
+ size?: 'sm' | 'md' | 'lg';
16
+ topChild?: React.ReactElement;
17
+ expandableContentKey?: string;
18
+ };
19
+ declare const SelectionCard: React.ForwardRefExoticComponent<Omit<SelectionCardProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
20
+ export default SelectionCard;
@@ -0,0 +1 @@
1
+ export { default as SelectionCard } from './SelectionCard';
@@ -0,0 +1 @@
1
+ export { Table as default } from '@chakra-ui/react';
@@ -1,66 +1,74 @@
1
- export namespace variants {
2
- export { roundedWhiteVariant as rounded };
3
- export { roundedGrayVariant as roundedGray };
4
- }
5
- declare namespace _default {
6
- export { parts };
7
- export { variants };
8
- export { baseStyle };
9
- export { defaultProps };
10
- }
1
+ export declare const variants: {
2
+ rounded: {
3
+ table: {
4
+ backgroundColor: string;
5
+ borderRadius: number;
6
+ boxShadow: string;
7
+ marginBottom: number;
8
+ };
9
+ };
10
+ roundedGray: {
11
+ table: {
12
+ backgroundColor: string;
13
+ borderRadius: number;
14
+ boxShadow: string;
15
+ marginBottom: number;
16
+ };
17
+ };
18
+ };
19
+ declare const _default: {
20
+ parts: string[];
21
+ variants: {
22
+ rounded: {
23
+ table: {
24
+ backgroundColor: string;
25
+ borderRadius: number;
26
+ boxShadow: string;
27
+ marginBottom: number;
28
+ };
29
+ };
30
+ roundedGray: {
31
+ table: {
32
+ backgroundColor: string;
33
+ borderRadius: number;
34
+ boxShadow: string;
35
+ marginBottom: number;
36
+ };
37
+ };
38
+ };
39
+ baseStyle: {
40
+ table: {
41
+ borderCollapse: string;
42
+ color: string;
43
+ width: string;
44
+ };
45
+ thead: {
46
+ borderBottom: string;
47
+ borderColor: string;
48
+ };
49
+ th: {
50
+ fontFamily: string;
51
+ fontSize: unknown;
52
+ fontWeight: string;
53
+ letterSpacing: string;
54
+ padding: number;
55
+ textAlign: string;
56
+ textTransform: string;
57
+ };
58
+ tr: {
59
+ borderBottom: string;
60
+ borderColor: string;
61
+ _last: {
62
+ border: string;
63
+ };
64
+ };
65
+ td: {
66
+ padding: number;
67
+ textAlign: string;
68
+ };
69
+ };
70
+ defaultProps: {
71
+ readonly variant: "rounded";
72
+ };
73
+ };
11
74
  export default _default;
12
- declare namespace roundedWhiteVariant {
13
- namespace table {
14
- let backgroundColor: string;
15
- let borderRadius: number;
16
- let boxShadow: string;
17
- let marginBottom: number;
18
- }
19
- }
20
- declare namespace roundedGrayVariant {
21
- export namespace table_1 {
22
- let backgroundColor_1: string;
23
- export { backgroundColor_1 as backgroundColor };
24
- }
25
- export { table_1 as table };
26
- }
27
- declare const parts: string[];
28
- declare namespace baseStyle {
29
- export namespace table_2 {
30
- let borderCollapse: string;
31
- let color: string;
32
- let width: string;
33
- }
34
- export { table_2 as table };
35
- export namespace thead {
36
- let borderBottom: string;
37
- let borderColor: string;
38
- }
39
- export namespace th {
40
- let fontFamily: string;
41
- let fontSize: unknown;
42
- let fontWeight: string;
43
- let letterSpacing: string;
44
- let padding: number;
45
- let textAlign: string;
46
- let textTransform: string;
47
- }
48
- export namespace tr {
49
- let borderBottom_1: string;
50
- export { borderBottom_1 as borderBottom };
51
- let borderColor_1: string;
52
- export { borderColor_1 as borderColor };
53
- export namespace _last {
54
- let border: string;
55
- }
56
- }
57
- export namespace td {
58
- let padding_1: number;
59
- export { padding_1 as padding };
60
- let textAlign_1: string;
61
- export { textAlign_1 as textAlign };
62
- }
63
- }
64
- declare namespace defaultProps {
65
- let variant: string;
66
- }
@@ -0,0 +1,2 @@
1
+ export { default as Table } from './Table';
2
+ export { Thead, Tbody, Tfoot, Tr, Th, Td, TableCaption, TableContainer, } from '@chakra-ui/react';