@spothero/ui 25.4.0 → 25.5.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 (60) hide show
  1. package/dist/components/Accordion/styles/index.d.ts +2 -2
  2. package/dist/components/Badge/styles/index.d.ts +78 -0
  3. package/dist/components/Button/Button.styles.d.ts +601 -0
  4. package/dist/components/Card/Card.d.ts +4 -0
  5. package/dist/components/Checkbox/styles/index.d.ts +200 -0
  6. package/dist/components/Container/Container.d.ts +4 -0
  7. package/dist/components/Container/Container.styles.d.ts +10 -0
  8. package/dist/components/Divider/Divider.d.ts +11 -0
  9. package/dist/components/Divider/Divider.styles.d.ts +40 -0
  10. package/dist/components/Drawer/styles/index.d.ts +149 -0
  11. package/dist/components/FormControl/FormControl.d.ts +13 -0
  12. package/dist/components/Grid/GridItem.styles.d.ts +4 -0
  13. package/dist/components/Heading/Heading.styles.d.ts +66 -0
  14. package/dist/components/Icon/Icon.d.ts +1 -1
  15. package/dist/components/Input/styles/index.d.ts +217 -0
  16. package/dist/components/Link/Link.styles.d.ts +102 -0
  17. package/dist/components/List/styles/index.d.ts +32 -0
  18. package/dist/components/List/styles/item.styles.d.ts +4 -0
  19. package/dist/components/Menu/Menu.styles.d.ts +258 -0
  20. package/dist/components/Modal/styles/body.d.ts +30 -0
  21. package/dist/components/Modal/styles/closeButton.d.ts +18 -0
  22. package/dist/components/Modal/styles/dialog.d.ts +16 -0
  23. package/dist/components/Modal/styles/dialogContainer.d.ts +12 -0
  24. package/dist/components/Modal/styles/footer.d.ts +6 -0
  25. package/dist/components/Modal/styles/header.d.ts +10 -0
  26. package/dist/components/Modal/styles/index.d.ts +227 -0
  27. package/dist/components/Modal/styles/overlay.d.ts +5 -0
  28. package/dist/components/Popover/styles/index.d.ts +100 -0
  29. package/dist/components/Popover/styles/popover-body.d.ts +4 -0
  30. package/dist/components/Popover/styles/popover-content.d.ts +20 -0
  31. package/dist/components/Popover/styles/popover-header.d.ts +5 -0
  32. package/dist/components/Popover/styles/popper.d.ts +4 -0
  33. package/dist/components/Progress/Progress.styles.d.ts +75 -0
  34. package/dist/components/Radio/styles/index.d.ts +292 -0
  35. package/dist/components/RefreshedInput/Button/styles/index.d.ts +413 -0
  36. package/dist/components/RefreshedInput/Input/styles/index.d.ts +260 -0
  37. package/dist/components/Select/styles/index.d.ts +2 -2
  38. package/dist/components/Skeleton/Skeleton.styles.d.ts +26 -0
  39. package/dist/components/Spinner/Spinner.d.ts +12 -0
  40. package/dist/components/Spinner/Spinner.styles.d.ts +144 -0
  41. package/dist/components/Switch/styles/index.d.ts +116 -0
  42. package/dist/components/Table/Table.styles.d.ts +69 -0
  43. package/dist/components/Tabs/styles/index.d.ts +308 -0
  44. package/dist/components/Text/Text.styles.d.ts +30 -0
  45. package/dist/components/styles.d.ts +26 -0
  46. package/dist/index.cjs.js +1824 -713
  47. package/dist/index.cjs.js.map +1 -1
  48. package/dist/index.d.ts +248 -0
  49. package/dist/index.esm.js +1824 -713
  50. package/dist/index.esm.js.map +1 -1
  51. package/dist/theme/base/breakpoints.d.ts +6 -6
  52. package/dist/theme/base/colors.d.ts +106 -116
  53. package/dist/theme/base/index.d.ts +7 -7
  54. package/dist/theme/base/notifications.d.ts +80 -104
  55. package/dist/theme/base/sizes.d.ts +41 -41
  56. package/dist/theme/base/typography.d.ts +22 -22
  57. package/dist/theme/base/zindices.d.ts +15 -15
  58. package/dist/theme/global.d.ts +21 -0
  59. package/dist/theme/index.d.ts +2 -0
  60. package/package.json +5 -5
@@ -1,7 +1,7 @@
1
+ declare const breakpoints: {
2
+ readonly mobileXL: "30rem";
3
+ readonly tablet: "48rem";
4
+ readonly desktop: "64rem";
5
+ readonly desktopXL: "90rem";
6
+ };
1
7
  export default breakpoints;
2
- declare namespace breakpoints {
3
- let mobileXL: string;
4
- let tablet: string;
5
- let desktop: string;
6
- let desktopXL: string;
7
- }
@@ -1,24 +1,20 @@
1
- export default colors;
2
- declare namespace colors {
3
- export let gray: {
4
- light: string;
5
- medium: string;
6
- dark: string;
7
- 50: string;
8
- 100: string;
9
- 200: string;
10
- 300: string;
11
- 400: string;
12
- 500: string;
13
- 600: string;
14
- 700: string;
15
- 800: string;
16
- 900: string;
1
+ declare const colors: {
2
+ readonly gray: {
3
+ readonly light: string;
4
+ readonly medium: string;
5
+ readonly dark: string;
6
+ readonly 50: string;
7
+ readonly 100: string;
8
+ readonly 200: string;
9
+ readonly 300: string;
10
+ readonly 400: string;
11
+ readonly 500: string;
12
+ readonly 600: string;
13
+ readonly 700: string;
14
+ readonly 800: string;
15
+ readonly 900: string;
17
16
  };
18
- export { blue };
19
- export { navy };
20
- export let red: {
21
- default: string;
17
+ readonly blue: {
22
18
  50: string;
23
19
  100: string;
24
20
  200: string;
@@ -30,8 +26,7 @@ declare namespace colors {
30
26
  800: string;
31
27
  900: string;
32
28
  };
33
- export let green: {
34
- default: string;
29
+ readonly navy: {
35
30
  50: string;
36
31
  100: string;
37
32
  200: string;
@@ -43,101 +38,96 @@ declare namespace colors {
43
38
  800: string;
44
39
  900: string;
45
40
  };
46
- export let yellow: {
47
- default: string;
48
- 50: string;
49
- 100: string;
50
- 200: string;
51
- 300: string;
52
- 400: string;
53
- 500: string;
54
- 600: string;
55
- 700: string;
56
- 800: string;
57
- 900: string;
41
+ readonly red: {
42
+ readonly default: string;
43
+ readonly 50: string;
44
+ readonly 100: string;
45
+ readonly 200: string;
46
+ readonly 300: string;
47
+ readonly 400: string;
48
+ readonly 500: string;
49
+ readonly 600: string;
50
+ readonly 700: string;
51
+ readonly 800: string;
52
+ readonly 900: string;
58
53
  };
59
- export let primary: {
60
- default: string;
61
- brand: string;
62
- 50: string;
63
- 100: string;
64
- 200: string;
65
- 300: string;
66
- 400: string;
67
- 500: string;
68
- 600: string;
69
- 700: string;
70
- 800: string;
71
- 900: string;
54
+ readonly green: {
55
+ readonly default: string;
56
+ readonly 50: string;
57
+ readonly 100: string;
58
+ readonly 200: string;
59
+ readonly 300: string;
60
+ readonly 400: string;
61
+ readonly 500: string;
62
+ readonly 600: string;
63
+ readonly 700: string;
64
+ readonly 800: string;
65
+ readonly 900: string;
72
66
  };
73
- export let secondary: {
74
- default: string;
75
- 50: string;
76
- 100: string;
77
- 200: string;
78
- 300: string;
79
- 400: string;
80
- 500: string;
81
- 600: string;
82
- 700: string;
83
- 800: string;
84
- 900: string;
67
+ readonly yellow: {
68
+ readonly default: string;
69
+ readonly 50: string;
70
+ readonly 100: string;
71
+ readonly 200: string;
72
+ readonly 300: string;
73
+ readonly 400: string;
74
+ readonly 500: string;
75
+ readonly 600: string;
76
+ readonly 700: string;
77
+ readonly 800: string;
78
+ readonly 900: string;
85
79
  };
86
- export let success: string;
87
- export let warning: string;
88
- export let error: string;
89
- export let accent: string;
90
- export namespace text {
91
- export namespace primary_1 {
92
- export { black as light };
93
- export { white as dark };
94
- }
95
- export { primary_1 as primary };
96
- export namespace secondary_1 {
97
- let light: string;
98
- }
99
- export { secondary_1 as secondary };
100
- export namespace link {
101
- let light_1: string;
102
- export { light_1 as light };
103
- export { white as dark };
104
- }
105
- }
106
- export namespace background {
107
- let gray_1: string;
108
- export { gray_1 as gray };
109
- export { white };
110
- }
111
- export { white };
112
- export { black };
113
- export { brandBlue };
114
- export { modalOverlay };
115
- }
116
- declare const blue: {
117
- 50: string;
118
- 100: string;
119
- 200: string;
120
- 300: string;
121
- 400: string;
122
- 500: string;
123
- 600: string;
124
- 700: string;
125
- 800: string;
126
- 900: string;
127
- };
128
- declare const navy: {
129
- 50: string;
130
- 100: string;
131
- 200: string;
132
- 300: string;
133
- 400: string;
134
- 500: string;
135
- 600: string;
136
- 700: string;
137
- 800: string;
138
- 900: string;
80
+ readonly primary: {
81
+ readonly default: string;
82
+ readonly brand: string;
83
+ readonly 50: string;
84
+ readonly 100: string;
85
+ readonly 200: string;
86
+ readonly 300: string;
87
+ readonly 400: string;
88
+ readonly 500: string;
89
+ readonly 600: string;
90
+ readonly 700: string;
91
+ readonly 800: string;
92
+ readonly 900: string;
93
+ };
94
+ readonly secondary: {
95
+ readonly default: string;
96
+ readonly 50: string;
97
+ readonly 100: string;
98
+ readonly 200: string;
99
+ readonly 300: string;
100
+ readonly 400: string;
101
+ readonly 500: string;
102
+ readonly 600: string;
103
+ readonly 700: string;
104
+ readonly 800: string;
105
+ readonly 900: string;
106
+ };
107
+ readonly success: string;
108
+ readonly warning: string;
109
+ readonly error: string;
110
+ readonly accent: string;
111
+ readonly text: {
112
+ readonly primary: {
113
+ readonly light: "#000000";
114
+ readonly dark: "#ffffff";
115
+ };
116
+ readonly secondary: {
117
+ readonly light: string;
118
+ };
119
+ readonly link: {
120
+ readonly light: string;
121
+ readonly dark: "#ffffff";
122
+ };
123
+ };
124
+ readonly background: {
125
+ readonly gray: string;
126
+ readonly white: "#ffffff";
127
+ };
128
+ readonly white: "#ffffff";
129
+ readonly black: "#000000";
130
+ readonly brandBlue: "#0082ff";
131
+ readonly modalOverlay: "#21212160";
139
132
  };
140
- declare const black: "#000000";
141
- declare const white: "#ffffff";
142
- declare const brandBlue: "#0082ff";
143
- declare const modalOverlay: "#21212160";
133
+ export default colors;
@@ -1,7 +1,7 @@
1
- export { default as sizes } from "./sizes";
2
- export { default as colors } from "./colors";
3
- export { default as shadows } from "./shadows";
4
- export { default as zIndices } from "./zindices";
5
- export { default as breakpoints } from "./breakpoints";
6
- export { fonts, fontSizes, fontWeights } from "./typography";
7
- export { notificationBaseStyle, notificationStatusStyles, NOTIFICATION_STATUSES } from "./notifications";
1
+ export { default as sizes } from './sizes';
2
+ export { default as colors } from './colors';
3
+ export { default as shadows } from './shadows';
4
+ export { default as zIndices } from './zindices';
5
+ export { default as breakpoints } from './breakpoints';
6
+ export { fonts, fontSizes, fontWeights } from './typography';
7
+ export { notificationBaseStyle, notificationStatusStyles, NOTIFICATION_STATUSES, } from './notifications';
@@ -1,106 +1,82 @@
1
- export namespace NOTIFICATION_STATUSES {
2
- let NEUTRAL: string;
3
- let ERROR: string;
4
- let WARNING: string;
5
- let SUCCESS: string;
6
- }
7
- export namespace notificationBaseStyle {
8
- namespace container {
9
- let paddingY: number;
10
- let borderRadius: string;
11
- }
12
- namespace actionButton {
13
- let fontSize: string;
14
- let height: string;
15
- let lineHeight: string;
16
- let color: string;
17
- namespace _hover {
18
- let color_1: string;
19
- export { color_1 as color };
20
- }
21
- }
22
- namespace dismissButton {
23
- let color_2: string;
24
- export { color_2 as color };
25
- export let borderColor: string;
26
- export let borderWidth: string;
27
- export let padding: number;
28
- export let width: number;
29
- let height_1: number;
30
- export { height_1 as height };
31
- export let backgroundColor: string;
32
- let borderRadius_1: string;
33
- export { borderRadius_1 as borderRadius };
34
- export let marginLeft: number;
35
- export namespace _hover_1 {
36
- let color_3: string;
37
- export { color_3 as color };
38
- }
39
- export { _hover_1 as _hover };
40
- export namespace _focus {
41
- let color_4: string;
42
- export { color_4 as color };
43
- let borderColor_1: string;
44
- export { borderColor_1 as borderColor };
45
- export let boxShadow: string;
46
- }
47
- }
48
- namespace icon {
49
- let width_1: number;
50
- export { width_1 as width };
51
- export let marginRight: number;
52
- let height_2: string;
53
- export { height_2 as height };
54
- }
55
- namespace description {
56
- let lineHeight_1: number;
57
- export { lineHeight_1 as lineHeight };
58
- }
59
- namespace title {
60
- let lineHeight_2: number;
61
- export { lineHeight_2 as lineHeight };
62
- }
63
- let variants: {};
64
- namespace sizes {
65
- namespace sm {
66
- export namespace title_1 {
67
- let fontSize_1: string;
68
- export { fontSize_1 as fontSize };
69
- }
70
- export { title_1 as title };
71
- export namespace description_1 {
72
- let fontSize_2: string;
73
- export { fontSize_2 as fontSize };
74
- }
75
- export { description_1 as description };
76
- }
77
- namespace md {
78
- export namespace title_2 {
79
- let fontSize_3: string;
80
- export { fontSize_3 as fontSize };
81
- }
82
- export { title_2 as title };
83
- export namespace description_2 {
84
- let fontSize_4: string;
85
- export { fontSize_4 as fontSize };
86
- }
87
- export { description_2 as description };
88
- }
89
- namespace lg {
90
- export namespace title_3 {
91
- let fontSize_5: string;
92
- export { fontSize_5 as fontSize };
93
- }
94
- export { title_3 as title };
95
- export namespace description_3 {
96
- let fontSize_6: string;
97
- export { fontSize_6 as fontSize };
98
- }
99
- export { description_3 as description };
100
- }
101
- }
102
- }
103
- export function notificationStatusStyles(status: any): {
1
+ export declare const NOTIFICATION_STATUSES: {
2
+ readonly NEUTRAL: "neutral";
3
+ readonly ERROR: "error";
4
+ readonly WARNING: "warning";
5
+ readonly SUCCESS: "success";
6
+ };
7
+ export declare const notificationBaseStyle: {
8
+ container: {
9
+ paddingY: number;
10
+ borderRadius: string;
11
+ };
12
+ actionButton: {
13
+ fontSize: string;
14
+ height: string;
15
+ lineHeight: string;
16
+ color: string;
17
+ _hover: {
18
+ color: string;
19
+ };
20
+ };
21
+ dismissButton: {
22
+ color: string;
23
+ borderColor: string;
24
+ borderWidth: string;
25
+ padding: number;
26
+ width: number;
27
+ height: number;
28
+ backgroundColor: string;
29
+ borderRadius: string;
30
+ marginLeft: number;
31
+ _hover: {
32
+ color: string;
33
+ };
34
+ _focus: {
35
+ color: string;
36
+ borderColor: string;
37
+ boxShadow: string;
38
+ };
39
+ };
40
+ icon: {
41
+ width: number;
42
+ marginRight: number;
43
+ height: string;
44
+ };
45
+ description: {
46
+ lineHeight: number;
47
+ };
48
+ title: {
49
+ lineHeight: number;
50
+ };
51
+ variants: {};
52
+ sizes: {
53
+ sm: {
54
+ title: {
55
+ fontSize: string;
56
+ };
57
+ description: {
58
+ fontSize: string;
59
+ };
60
+ };
61
+ md: {
62
+ title: {
63
+ fontSize: string;
64
+ };
65
+ description: {
66
+ fontSize: string;
67
+ };
68
+ };
69
+ lg: {
70
+ title: {
71
+ fontSize: string;
72
+ };
73
+ description: {
74
+ fontSize: string;
75
+ };
76
+ };
77
+ };
78
+ };
79
+ export declare const notificationStatusStyles: (status: string) => {
104
80
  container: {
105
81
  background: string;
106
82
  };
@@ -120,7 +96,7 @@ export function notificationStatusStyles(status: any): {
120
96
  icon?: undefined;
121
97
  dismissButton?: undefined;
122
98
  };
123
- export function notificationSizeStyles(size: any): {
99
+ export declare const notificationSizeStyles: (size: string) => {
124
100
  title: {
125
101
  fontSize: string;
126
102
  };
@@ -1,47 +1,47 @@
1
- export default sizes;
2
1
  declare const sizes: {
3
- container: {
2
+ readonly container: {
4
3
  base: string;
5
4
  tablet: string;
6
5
  desktop: string;
7
6
  };
8
- 0: string;
9
- 0.5: string;
10
- 1: string;
11
- 1.5: string;
12
- 2: string;
13
- 2.5: string;
14
- 3: string;
15
- 3.5: string;
16
- 4: string;
17
- 4.5: string;
18
- 5: string;
19
- 5.5: string;
20
- 6: string;
21
- 7: string;
22
- 8: string;
23
- 9: string;
24
- 10: string;
25
- 12: string;
26
- 14: string;
27
- 16: string;
28
- 20: string;
29
- 24: string;
30
- 28: string;
31
- 32: string;
32
- 36: string;
33
- 40: string;
34
- 44: string;
35
- 48: string;
36
- 52: string;
37
- 56: string;
38
- 60: string;
39
- 64: string;
40
- 72: string;
41
- 80: string;
42
- 96: string;
43
- px: string;
44
- full: string;
45
- max: string;
46
- min: string;
7
+ readonly 0: "0";
8
+ readonly 0.5: "0.125rem";
9
+ readonly 1: "0.25rem";
10
+ readonly 1.5: "0.375rem";
11
+ readonly 2: "0.5rem";
12
+ readonly 2.5: "0.625rem";
13
+ readonly 3: "0.75rem";
14
+ readonly 3.5: "0.875rem";
15
+ readonly 4: "1rem";
16
+ readonly 4.5: "1.125rem";
17
+ readonly 5: "1.25rem";
18
+ readonly 5.5: "1.375rem";
19
+ readonly 6: "1.5rem";
20
+ readonly 7: "1.75rem";
21
+ readonly 8: "2rem";
22
+ readonly 9: "2.25rem";
23
+ readonly 10: "2.5rem";
24
+ readonly 12: "3rem";
25
+ readonly 14: "3.5rem";
26
+ readonly 16: "4rem";
27
+ readonly 20: "5rem";
28
+ readonly 24: "6rem";
29
+ readonly 28: "7rem";
30
+ readonly 32: "8rem";
31
+ readonly 36: "9rem";
32
+ readonly 40: "10rem";
33
+ readonly 44: "11rem";
34
+ readonly 48: "12rem";
35
+ readonly 52: "13rem";
36
+ readonly 56: "14rem";
37
+ readonly 60: "15rem";
38
+ readonly 64: "16rem";
39
+ readonly 72: "18rem";
40
+ readonly 80: "20rem";
41
+ readonly 96: "24rem";
42
+ readonly px: "1px";
43
+ readonly full: "100%";
44
+ readonly max: "max-content";
45
+ readonly min: "min-content";
47
46
  };
47
+ export default sizes;
@@ -1,23 +1,23 @@
1
- export namespace fonts {
2
- let heading: string;
3
- let body: string;
4
- }
5
- export const fontSizes: {
6
- '5xl': string;
7
- '4xl': string;
8
- '3xl': string;
9
- '2xl': string;
10
- xl: string;
11
- lg: string;
12
- md: string;
13
- base: string;
14
- sm: string;
15
- xs: string;
1
+ export declare const fonts: {
2
+ readonly heading: "\"Plus Jakarta Sans\", sans-serif";
3
+ readonly body: "\"Plus Jakarta Sans\", sans-serif";
4
+ };
5
+ export declare const fontSizes: {
6
+ readonly '5xl': "3.5rem";
7
+ readonly '4xl': "3rem";
8
+ readonly '3xl': "2.5rem";
9
+ readonly '2xl': "2rem";
10
+ readonly xl: "1.5rem";
11
+ readonly lg: "1.25rem";
12
+ readonly md: "1.125rem";
13
+ readonly base: "1rem";
14
+ readonly sm: "0.875rem";
15
+ readonly xs: "0.75rem";
16
+ };
17
+ export declare const fontWeights: {
18
+ readonly light: 300;
19
+ readonly normal: 400;
20
+ readonly medium: 500;
21
+ readonly semibold: 600;
22
+ readonly bold: 700;
16
23
  };
17
- export namespace fontWeights {
18
- let light: number;
19
- let normal: number;
20
- let medium: number;
21
- let semibold: number;
22
- let bold: number;
23
- }
@@ -1,16 +1,16 @@
1
+ declare const indices: {
2
+ readonly hide: -100;
3
+ readonly auto: "auto";
4
+ readonly base: 0;
5
+ readonly layer1: 100;
6
+ readonly layer2: 200;
7
+ readonly layer3: 300;
8
+ readonly layer4: 400;
9
+ readonly layer5: 500;
10
+ readonly layer6: 600;
11
+ readonly layer7: 700;
12
+ readonly layer8: 800;
13
+ readonly layer9: 900;
14
+ readonly layer10: 1000;
15
+ };
1
16
  export default indices;
2
- declare namespace indices {
3
- let hide: number;
4
- let auto: string;
5
- let base: number;
6
- let layer1: number;
7
- let layer2: number;
8
- let layer3: number;
9
- let layer4: number;
10
- let layer5: number;
11
- let layer6: number;
12
- let layer7: number;
13
- let layer8: number;
14
- let layer9: number;
15
- let layer10: number;
16
- }
@@ -0,0 +1,21 @@
1
+ interface LegacyOverridesProps {
2
+ /** If true, this will use the old `spothero-html` base styles */
3
+ useLegacyOverrides?: boolean;
4
+ }
5
+ declare const global: {
6
+ 'html, body': {
7
+ color: string;
8
+ };
9
+ svg: {
10
+ display: string;
11
+ };
12
+ '.chakra-input__group': {
13
+ isolation: string;
14
+ };
15
+ 'h1, h2, h3, h4, h5, h6': {
16
+ margin: number;
17
+ };
18
+ };
19
+ export default global;
20
+ export declare const Fonts: () => import("react/jsx-runtime").JSX.Element;
21
+ export declare const LegacyOverrides: ({ useLegacyOverrides }: LegacyOverridesProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,2 @@
1
+ declare const _default: Record<string, any>;
2
+ export default _default;