@spothero/ui 25.6.0 → 25.12.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 (69) hide show
  1. package/dist/components/Accordion/styles/index.d.ts +13 -89
  2. package/dist/components/Alert/Alert.d.ts +33 -0
  3. package/dist/components/Badge/Badge.d.ts +1 -0
  4. package/dist/components/Badge/styles/index.d.ts +11 -75
  5. package/dist/components/Button/Button.d.ts +27 -0
  6. package/dist/components/Button/Button.styles.d.ts +174 -553
  7. package/dist/components/Button/index.d.ts +2 -0
  8. package/dist/components/Checkbox/Checkbox.d.ts +10 -0
  9. package/dist/components/Checkbox/index.d.ts +1 -0
  10. package/dist/components/Checkbox/styles/index.d.ts +4 -200
  11. package/dist/components/Divider/Divider.styles.d.ts +5 -31
  12. package/dist/components/Drawer/Drawer.d.ts +10 -0
  13. package/dist/components/Drawer/index.d.ts +2 -0
  14. package/dist/components/Drawer/styles/index.d.ts +4 -149
  15. package/dist/components/Grid/Grid.d.ts +10 -0
  16. package/dist/components/Grid/Grid.styles.d.ts +10 -0
  17. package/dist/components/Grid/GridItem.d.ts +8 -0
  18. package/dist/components/Grid/GridItem.styles.d.ts +3 -3
  19. package/dist/components/Heading/Heading.d.ts +9 -0
  20. package/dist/components/Heading/Heading.styles.d.ts +12 -65
  21. package/dist/components/Image/Image.d.ts +21 -0
  22. package/dist/components/Input/Input.d.ts +12 -0
  23. package/dist/components/Input/index.d.ts +1 -0
  24. package/dist/components/Input/styles/index.d.ts +3 -217
  25. package/dist/components/Link/Link.d.ts +1 -0
  26. package/dist/components/Link/Link.styles.d.ts +11 -84
  27. package/dist/components/List/List.d.ts +25 -0
  28. package/dist/components/List/index.d.ts +2 -0
  29. package/dist/components/List/styles/index.d.ts +4 -32
  30. package/dist/components/List/styles/item.styles.d.ts +3 -3
  31. package/dist/components/Loader/Loader.d.ts +13 -0
  32. package/dist/components/Modal/styles/footer.d.ts +6 -0
  33. package/dist/components/Modal/styles/index.d.ts +13 -0
  34. package/dist/components/Progress/Progress.d.ts +8 -0
  35. package/dist/components/Progress/Progress.styles.d.ts +4 -75
  36. package/dist/components/Radio/Radio.d.ts +9 -0
  37. package/dist/components/Radio/RadioGroup.d.ts +14 -0
  38. package/dist/components/Radio/index.d.ts +2 -0
  39. package/dist/components/Radio/styles/index.d.ts +43 -277
  40. package/dist/components/RefreshedInput/Button/styles/index.d.ts +1 -263
  41. package/dist/components/RefreshedInput/Input/styles/index.d.ts +2 -254
  42. package/dist/components/RefreshedInput/Select/styles/index.d.ts +2 -71
  43. package/dist/components/Select/Select.d.ts +11 -0
  44. package/dist/components/Select/index.d.ts +1 -0
  45. package/dist/components/Select/styles/index.d.ts +28 -218
  46. package/dist/components/Skeleton/Skeleton.styles.d.ts +4 -26
  47. package/dist/components/Skeleton/index.d.ts +1 -0
  48. package/dist/components/Switch/Switch.d.ts +21 -0
  49. package/dist/components/Switch/index.d.ts +1 -0
  50. package/dist/components/Switch/styles/index.d.ts +4 -116
  51. package/dist/components/Table/Table.styles.d.ts +1 -4
  52. package/dist/components/Text/Text.d.ts +11 -0
  53. package/dist/components/Text/Text.styles.d.ts +29 -30
  54. package/dist/components/Text/combineAsWithVariant.d.ts +101 -0
  55. package/dist/components/Text/options.d.ts +2 -0
  56. package/dist/components/Textarea/Textarea.d.ts +12 -0
  57. package/dist/components/Textarea/index.d.ts +1 -0
  58. package/dist/components/Textarea/styles/index.d.ts +3 -0
  59. package/dist/index.cjs.js +2659 -3037
  60. package/dist/index.cjs.js.map +1 -1
  61. package/dist/index.d.ts +364 -59
  62. package/dist/index.esm.js +3088 -3467
  63. package/dist/index.esm.js.map +1 -1
  64. package/dist/theme/base/animation.d.ts +217 -0
  65. package/dist/theme/base/colors.d.ts +29 -13
  66. package/dist/theme/base/index.d.ts +1 -0
  67. package/dist/theme/base/notifications.d.ts +3 -3
  68. package/dist/types/forwardRefComponent.d.ts +2 -0
  69. package/package.json +8 -7
@@ -1,217 +1,3 @@
1
- declare const _default: {
2
- baseStyle?: {
3
- addon: {
4
- height: string;
5
- fontSize: string;
6
- px: string;
7
- borderRadius: string;
8
- };
9
- field: {
10
- width: string;
11
- height: string;
12
- fontSize: string;
13
- px: string;
14
- borderRadius: string;
15
- minWidth: number;
16
- outline: number;
17
- position: string;
18
- appearance: string;
19
- transitionProperty: string;
20
- transitionDuration: string;
21
- _disabled: {
22
- opacity: number;
23
- cursor: string;
24
- };
25
- };
26
- } | undefined;
27
- sizes?: {
28
- lg: {
29
- field: {
30
- [x: string]: string;
31
- };
32
- group: {
33
- [x: string]: string;
34
- };
35
- };
36
- md: {
37
- field: {
38
- [x: string]: string;
39
- };
40
- group: {
41
- [x: string]: string;
42
- };
43
- };
44
- sm: {
45
- field: {
46
- [x: string]: string;
47
- };
48
- group: {
49
- [x: string]: string;
50
- };
51
- };
52
- xs: {
53
- field: {
54
- [x: string]: string;
55
- };
56
- group: {
57
- [x: string]: string;
58
- };
59
- };
60
- } | undefined;
61
- variants?: {
62
- outline: (props: import("@chakra-ui/react").StyleFunctionProps) => {
63
- field: {
64
- border: string;
65
- borderColor: string;
66
- bg: string;
67
- _hover: {
68
- borderColor: string;
69
- };
70
- _readOnly: {
71
- boxShadow: string;
72
- userSelect: string;
73
- };
74
- _invalid: {
75
- borderColor: any;
76
- boxShadow: string;
77
- };
78
- _focusVisible: {
79
- zIndex: number;
80
- borderColor: any;
81
- boxShadow: string;
82
- };
83
- };
84
- addon: {
85
- border: string;
86
- borderColor: string;
87
- bg: string;
88
- };
89
- };
90
- filled: (props: import("@chakra-ui/react").StyleFunctionProps) => {
91
- field: {
92
- border: string;
93
- borderColor: string;
94
- bg: string;
95
- _hover: {
96
- bg: string;
97
- };
98
- _readOnly: {
99
- boxShadow: string;
100
- userSelect: string;
101
- };
102
- _invalid: {
103
- borderColor: any;
104
- };
105
- _focusVisible: {
106
- bg: string;
107
- borderColor: any;
108
- };
109
- };
110
- addon: {
111
- border: string;
112
- borderColor: string;
113
- bg: string;
114
- };
115
- };
116
- flushed: (props: import("@chakra-ui/react").StyleFunctionProps) => {
117
- field: {
118
- borderBottom: string;
119
- borderColor: string;
120
- borderRadius: string;
121
- px: string;
122
- bg: string;
123
- _readOnly: {
124
- boxShadow: string;
125
- userSelect: string;
126
- };
127
- _invalid: {
128
- borderColor: any;
129
- boxShadow: string;
130
- };
131
- _focusVisible: {
132
- borderColor: any;
133
- boxShadow: string;
134
- };
135
- };
136
- addon: {
137
- borderBottom: string;
138
- borderColor: string;
139
- borderRadius: string;
140
- px: string;
141
- bg: string;
142
- };
143
- };
144
- unstyled: {
145
- field: {
146
- bg: string;
147
- px: string;
148
- height: string;
149
- };
150
- addon: {
151
- bg: string;
152
- px: string;
153
- height: string;
154
- };
155
- };
156
- } | undefined;
157
- defaultProps?: {
158
- size?: "md" | "xs" | "sm" | "lg" | undefined;
159
- variant?: "outline" | "filled" | "unstyled" | "flushed" | undefined;
160
- colorScheme?: string | undefined;
161
- } | undefined;
162
- parts: ("element" | "group" | "addon" | "field")[];
163
- } & {
164
- baseStyle: {
165
- field: {
166
- fontFamily: string;
167
- _placeholder: {
168
- color: string;
169
- fontWeight: string;
170
- _disabled: {
171
- color: string;
172
- opacity: number;
173
- };
174
- };
175
- };
176
- };
177
- variants: {
178
- outline: {
179
- field: {
180
- border: string;
181
- borderColor: string;
182
- fontSize: string;
183
- paddingLeft: number;
184
- paddingRight: number;
185
- bg: string;
186
- fontWeight: string;
187
- boxShadow: string;
188
- _placeholder: {
189
- color: string;
190
- fontWeight: string;
191
- };
192
- _focus: {
193
- borderColor: string;
194
- };
195
- _hover: {
196
- borderColor: string;
197
- };
198
- _readOnly: {
199
- boxShadow: string;
200
- userSelect: string;
201
- };
202
- _disabled: {
203
- backgroundColor: string;
204
- opacity: number;
205
- cursor: string;
206
- };
207
- _invalid: {
208
- borderColor: string;
209
- _focus: {
210
- borderColor: string;
211
- };
212
- };
213
- };
214
- };
215
- };
216
- };
217
- export default _default;
1
+ import type { StyleConfig } from '@chakra-ui/react';
2
+ declare const inputStyle: StyleConfig;
3
+ export default inputStyle;
@@ -0,0 +1 @@
1
+ export { Link as default } from '@chakra-ui/react';
@@ -1,36 +1,7 @@
1
- export namespace variants {
2
- export { baseStyle as standard };
3
- export { linkOnDark as onDark };
4
- }
5
- declare const _default: {
6
- baseStyle?: {
7
- transitionProperty: string;
8
- transitionDuration: string;
9
- transitionTimingFunction: string;
10
- cursor: string;
11
- textDecoration: string;
12
- outline: string;
13
- color: string;
14
- _hover: {
15
- textDecoration: string;
16
- };
17
- _focusVisible: {
18
- boxShadow: string;
19
- };
20
- } | undefined;
21
- sizes?: {
22
- [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
23
- } | undefined;
24
- variants?: {
25
- [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
26
- } | undefined;
27
- defaultProps?: {
28
- size?: string | number | undefined;
29
- variant?: string | number | undefined;
30
- colorScheme?: string | undefined;
31
- } | undefined;
32
- } & {
33
- baseStyle: {
1
+ import { theme as chakraDefaultTheme } from '@chakra-ui/react';
2
+ type LinkStyle = NonNullable<typeof chakraDefaultTheme.components.Link>;
3
+ export declare const variants: {
4
+ standard: {
34
5
  transition: string;
35
6
  color: string;
36
7
  fontWeight: string;
@@ -38,7 +9,7 @@ declare const _default: {
38
9
  color: string;
39
10
  textDecoration: string;
40
11
  };
41
- _focus: {
12
+ _focusVisible: {
42
13
  boxShadow: string;
43
14
  };
44
15
  '& svg': {
@@ -46,57 +17,13 @@ declare const _default: {
46
17
  verticalAlign: string;
47
18
  };
48
19
  };
49
- variants: {
50
- standard: {
51
- transition: string;
52
- color: string;
53
- fontWeight: string;
54
- _hover: {
55
- color: string;
56
- textDecoration: string;
57
- };
58
- _focus: {
59
- boxShadow: string;
60
- };
61
- '& svg': {
62
- d: string;
63
- verticalAlign: string;
64
- };
65
- };
66
- onDark: {
20
+ onDark: {
21
+ color: string;
22
+ _hover: {
67
23
  color: string;
68
- _hover: {
69
- color: string;
70
- opacity: string;
71
- };
24
+ opacity: string;
72
25
  };
73
26
  };
74
- defaultProps: {
75
- variant: string;
76
- };
77
- };
78
- export default _default;
79
- declare const baseStyle: {
80
- transition: string;
81
- color: string;
82
- fontWeight: string;
83
- _hover: {
84
- color: string;
85
- textDecoration: string;
86
- };
87
- _focus: {
88
- boxShadow: string;
89
- };
90
- '& svg': {
91
- d: string;
92
- verticalAlign: string;
93
- };
94
27
  };
95
- declare namespace linkOnDark {
96
- let color: string;
97
- namespace _hover {
98
- let color_1: string;
99
- export { color_1 as color };
100
- export let opacity: string;
101
- }
102
- }
28
+ declare const linkStyle: LinkStyle;
29
+ export default linkStyle;
@@ -0,0 +1,25 @@
1
+ import { type ListProps as ChakraListProps } from '@chakra-ui/react';
2
+ import type { ForwardRefComponent } from '../../types/forwardRefComponent';
3
+ export declare const STYLE_POSITIONS: {
4
+ readonly unset: "unset";
5
+ readonly revert: "revert";
6
+ readonly inside: "inside";
7
+ readonly outside: "outside";
8
+ readonly initial: "initial";
9
+ readonly inherit: "inherit";
10
+ };
11
+ export declare const TYPES: {
12
+ readonly ordered: "ordered";
13
+ readonly unstyled: "unstyled";
14
+ readonly unordered: "unordered";
15
+ };
16
+ export type ListStylePosition = keyof typeof STYLE_POSITIONS;
17
+ export type ListType = keyof typeof TYPES;
18
+ export interface ListProps extends Omit<ChakraListProps, 'type'> {
19
+ /** The position of the list style */
20
+ stylePosition?: ListStylePosition;
21
+ /** Changes the underlying markup to be an ordered or unordered list. */
22
+ type?: ListType;
23
+ }
24
+ declare const List: ForwardRefComponent<HTMLUListElement | HTMLOListElement, ListProps>;
25
+ export default List;
@@ -0,0 +1,2 @@
1
+ export { default } from './List';
2
+ export { ListItem } from '@chakra-ui/react';
@@ -1,32 +1,4 @@
1
- declare const _default: {
2
- baseStyle?: {
3
- icon: {
4
- marginEnd: string;
5
- display: string;
6
- verticalAlign: string;
7
- };
8
- } | undefined;
9
- sizes?: {
10
- [key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
11
- keys: ("container" | "icon" | "item")[];
12
- }>;
13
- } | undefined;
14
- variants?: {
15
- [key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
16
- keys: ("container" | "icon" | "item")[];
17
- }>;
18
- } | undefined;
19
- defaultProps?: {
20
- size?: string | number | undefined;
21
- variant?: string | number | undefined;
22
- colorScheme?: string | undefined;
23
- } | undefined;
24
- parts: ("container" | "icon" | "item")[];
25
- } & {
26
- baseStyle: {
27
- item: {
28
- mb: number;
29
- };
30
- };
31
- };
32
- export default _default;
1
+ import { theme as chakraDefaultTheme } from '@chakra-ui/react';
2
+ type ListStyle = NonNullable<typeof chakraDefaultTheme.components.List>;
3
+ declare const listStyle: ListStyle;
4
+ export default listStyle;
@@ -1,4 +1,4 @@
1
+ declare const item: {
2
+ readonly mb: 2;
3
+ };
1
4
  export default item;
2
- declare namespace item {
3
- let mb: number;
4
- }
@@ -0,0 +1,13 @@
1
+ import { type CircularProgressProps as ChakraCircularProgressProps } from '@chakra-ui/react';
2
+ export type LoaderProps = ChakraCircularProgressProps & {
3
+ /**
4
+ * Determines if Loader spins for an infinite amount of time. If `true` value prop will be ignored.
5
+ */
6
+ isInfinite?: boolean;
7
+ /**
8
+ * Sets the background color of the Loader (inside the circle). Use color names defined within `theme/base/colors`.
9
+ */
10
+ loaderBackgroundColor?: string;
11
+ };
12
+ declare const Loader: ({ color, loaderBackgroundColor, isInfinite, size, thickness, trackColor, value, ...props }: LoaderProps) => import("react/jsx-runtime").JSX.Element;
13
+ export default Loader;
@@ -2,5 +2,11 @@ declare namespace _default {
2
2
  let borderTop: string;
3
3
  let borderColor: string;
4
4
  let padding: number;
5
+ let gap: number;
6
+ let justifyContent: string;
7
+ namespace flexDirection {
8
+ let base: string;
9
+ let desktop: string;
10
+ }
5
11
  }
6
12
  export default _default;
@@ -198,6 +198,12 @@ declare const _default: {
198
198
  borderTop: string;
199
199
  borderColor: string;
200
200
  padding: number;
201
+ gap: number;
202
+ justifyContent: string;
203
+ flexDirection: {
204
+ base: string;
205
+ desktop: string;
206
+ };
201
207
  };
202
208
  };
203
209
  sizes: {
@@ -208,6 +214,13 @@ declare const _default: {
208
214
  minHeight: string[];
209
215
  };
210
216
  };
217
+ 'sm-md': {
218
+ dialog: {
219
+ maxHeight: string[];
220
+ minWidth: (string | number)[];
221
+ maxWidth: string[];
222
+ };
223
+ };
211
224
  md: {
212
225
  dialog: {
213
226
  maxWidth: string[];
@@ -0,0 +1,8 @@
1
+ import { type ProgressProps as ChakraProgressProps } from '@chakra-ui/react';
2
+ import type { ForwardRefComponent } from '../../types/forwardRefComponent';
3
+ export type ProgressProps = ChakraProgressProps & {
4
+ /** If true, the Progress Bar and Track are rounded */
5
+ isRounded?: boolean;
6
+ };
7
+ declare const Progress: ForwardRefComponent<HTMLDivElement, ProgressProps>;
8
+ export default Progress;
@@ -1,75 +1,4 @@
1
- declare const _default: {
2
- defaultProps: {
3
- size: string;
4
- colorScheme: string;
5
- variant: string;
6
- };
7
- variants: {
8
- outlined: (props: any) => {
9
- track: {
10
- bg: string;
11
- borderWidth: string;
12
- borderColor: any;
13
- };
14
- };
15
- solid: (props: any) => {
16
- track: {
17
- bg: any;
18
- };
19
- };
20
- };
21
- sizes: {
22
- xl: {
23
- track: {
24
- height: number;
25
- };
26
- };
27
- lg: {
28
- track: {
29
- height: number;
30
- };
31
- };
32
- md: {
33
- track: {
34
- height: number;
35
- };
36
- };
37
- sm: {
38
- track: {
39
- height: number;
40
- };
41
- };
42
- xs: {
43
- track: {
44
- height: number;
45
- };
46
- };
47
- };
48
- baseStyle: (props: any) => {
49
- label: {
50
- lineHeight: string;
51
- fontSize: string;
52
- fontWeight: string;
53
- color: string;
54
- };
55
- filledTrack: any;
56
- track: {
57
- bg: string;
58
- };
59
- } & {
60
- filledTrack: {
61
- backgroundImage: string;
62
- borderRightRadius: string;
63
- } | {
64
- backgroundColor: any;
65
- backgroundImage?: string | undefined;
66
- borderRightRadius: string;
67
- };
68
- track: {
69
- borderRightRadius: string;
70
- borderLeftRadius: string;
71
- };
72
- };
73
- parts: ("label" | "filledTrack" | "track")[];
74
- };
75
- export default _default;
1
+ import { theme as chakraDefaultTheme } from '@chakra-ui/react';
2
+ type ChakraProgressStyle = NonNullable<typeof chakraDefaultTheme.components.Progress>;
3
+ declare const progressStyle: ChakraProgressStyle;
4
+ export default progressStyle;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { RadioProps as ChakraRadioProps } from '@chakra-ui/react';
3
+ export interface RadioProps extends Omit<ChakraRadioProps, 'size'> {
4
+ value: string;
5
+ helperText?: string;
6
+ size?: 'sm' | 'md' | 'lg';
7
+ }
8
+ declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLInputElement>>;
9
+ export default Radio;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { RadioGroupProps as ChakraRadioGroupProps } from '@chakra-ui/react';
3
+ export interface RadioGroupProps extends Omit<ChakraRadioGroupProps, 'onChange'> {
4
+ id: string;
5
+ label?: string;
6
+ errorMessage?: string;
7
+ isDisabled?: boolean;
8
+ isInvalid?: boolean;
9
+ isRequired?: boolean;
10
+ onChange?: (value: string) => void;
11
+ direction?: 'row' | 'column';
12
+ }
13
+ declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
14
+ export default RadioGroup;
@@ -0,0 +1,2 @@
1
+ export { default as Radio } from './Radio';
2
+ export { default as RadioGroup } from './RadioGroup';