@lets-events/react 12.2.9 → 12.2.11

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 (90) hide show
  1. package/.eslintrc.json +2 -2
  2. package/.turbo/turbo-build.log +19 -21
  3. package/CHANGELOG.md +12 -0
  4. package/dist/index.css +171 -0
  5. package/dist/index.d.mts +375 -3
  6. package/dist/index.d.ts +375 -3
  7. package/dist/index.js +43 -22
  8. package/dist/index.mjs +42 -22
  9. package/package.json +1 -1
  10. package/src/components/Alert.tsx +303 -303
  11. package/src/components/Avatar.tsx +55 -55
  12. package/src/components/Badge.tsx +125 -125
  13. package/src/components/Box.tsx +3 -3
  14. package/src/components/Button/index.tsx +16 -16
  15. package/src/components/Button/styledComponents.ts +300 -300
  16. package/src/components/ButtonGroup.tsx +484 -484
  17. package/src/components/Calendar/index.tsx +148 -148
  18. package/src/components/Calendar/styledComponents.ts +250 -250
  19. package/src/components/Card.tsx +48 -48
  20. package/src/components/CheckboxGroup.tsx +176 -176
  21. package/src/components/Container.tsx +39 -39
  22. package/src/components/Divider.tsx +7 -0
  23. package/src/components/Drawer/index.tsx +148 -138
  24. package/src/components/Drawer/styledComponents.ts +52 -52
  25. package/src/components/Dropdown.tsx +302 -302
  26. package/src/components/Filter.tsx +164 -164
  27. package/src/components/Flex.tsx +118 -118
  28. package/src/components/FormFields/AddressFormFields/CityFormField.tsx +111 -111
  29. package/src/components/FormFields/AddressFormFields/CountryFormField.tsx +33 -33
  30. package/src/components/FormFields/AddressFormFields/PostalCodeFormField.tsx +39 -39
  31. package/src/components/FormFields/AddressFormFields/StateFormField.tsx +32 -32
  32. package/src/components/FormFields/AddressFormFields/index.tsx +141 -141
  33. package/src/components/FormFields/BirthDateFormField.tsx +84 -84
  34. package/src/components/FormFields/CNPJFormField.tsx +87 -87
  35. package/src/components/FormFields/CPFFormField.tsx +78 -78
  36. package/src/components/FormFields/CalendarFormField.tsx +95 -95
  37. package/src/components/FormFields/CheckboxGroupFormField.tsx +91 -91
  38. package/src/components/FormFields/EmailFormField.tsx +27 -27
  39. package/src/components/FormFields/Form.tsx +39 -39
  40. package/src/components/FormFields/IdentityDocumentNumberFormField.tsx +32 -32
  41. package/src/components/FormFields/MultiSelectFormField.tsx +64 -64
  42. package/src/components/FormFields/PhoneFormField.tsx +40 -40
  43. package/src/components/FormFields/RadioGroupFormField.tsx +84 -84
  44. package/src/components/FormFields/RichEditorFormField.tsx +103 -102
  45. package/src/components/FormFields/SelectFormField.tsx +93 -93
  46. package/src/components/FormFields/SwitchFormField.tsx +46 -46
  47. package/src/components/FormFields/TextAreaFormField.tsx +57 -57
  48. package/src/components/FormFields/TextFormField.tsx +112 -112
  49. package/src/components/FormFields/TimePickerFormField.tsx +88 -88
  50. package/src/components/FormFields/subComponents/ErrorFormMessage.tsx +36 -36
  51. package/src/components/FormFields/subComponents/FormLabel.tsx +29 -29
  52. package/src/components/FormFields/utils/validation.ts +23 -23
  53. package/src/components/Grid.tsx +137 -137
  54. package/src/components/Icon.tsx +47 -47
  55. package/src/components/MenuDropdown/index.tsx +38 -38
  56. package/src/components/MenuDropdown/styledComponents.ts +31 -31
  57. package/src/components/Modal.tsx +90 -90
  58. package/src/components/MultiSelect/index.tsx +243 -243
  59. package/src/components/MultiSelect/styledComponents.ts +160 -160
  60. package/src/components/RadioGroup.tsx +210 -210
  61. package/src/components/RichEditor/QuillComponent.tsx +457 -455
  62. package/src/components/RichEditor/RichEditor.tsx +49 -49
  63. package/src/components/RichEditor/index.ts +2 -2
  64. package/src/components/RichEditor/styledComponents.ts +1151 -1151
  65. package/src/components/Section.tsx +33 -33
  66. package/src/components/Step.tsx +164 -164
  67. package/src/components/Switch.tsx +108 -108
  68. package/src/components/Text.tsx +38 -38
  69. package/src/components/TextField.tsx +372 -372
  70. package/src/components/TextareaField.tsx +127 -127
  71. package/src/components/TimePicker.tsx +328 -328
  72. package/src/components/Toast/components/ToastItem.tsx +41 -41
  73. package/src/components/Toast/components/ToastProvider.tsx +63 -63
  74. package/src/components/Toast/hooks/useToast.ts +12 -12
  75. package/src/components/Toast/index.tsx +5 -5
  76. package/src/components/Toast/styles/index.ts +135 -135
  77. package/src/components/Toast/types/index.ts +46 -46
  78. package/src/components/Tooltip/index.tsx +66 -66
  79. package/src/components/Tooltip/styles.ts +77 -77
  80. package/src/hooks/useCountries.ts +41 -41
  81. package/src/hooks/useImageUpload.ts +139 -139
  82. package/src/hooks/useOnClickOutside.tsx +42 -42
  83. package/src/index.tsx +69 -68
  84. package/src/styles/index.ts +38 -38
  85. package/src/types/typographyValues.ts +178 -178
  86. package/src/utils/getNestedValue.ts +3 -3
  87. package/src/utils/states.ts +29 -29
  88. package/src/utils/uploadService.ts +180 -180
  89. package/tsconfig.json +3 -3
  90. package/tsup.config.ts +38 -38
@@ -1,42 +1,42 @@
1
- import { useEffect } from "react";
2
-
3
- export function useOnClickOutside(
4
- ref: any,
5
- handler: (event?: MouseEvent | TouchEvent) => void
6
- ) {
7
- useEffect(() => {
8
- const listener = (event: MouseEvent | TouchEvent) => {
9
- if (!ref?.current || !event.target) {
10
- return;
11
- }
12
-
13
- const target = event.target as Element;
14
- const currentTarget = event.currentTarget as Element;
15
-
16
- if (ref.current.contains(target) || ref.current.contains(currentTarget)) {
17
- return;
18
- }
19
-
20
- if (target.tagName === "HTML" || target.tagName === "BODY") {
21
- const elementAtPoint = document.elementFromPoint(
22
- (event as MouseEvent).clientX,
23
- (event as MouseEvent).clientY
24
- );
25
-
26
- if (elementAtPoint && ref.current.contains(elementAtPoint)) {
27
- return;
28
- }
29
- }
30
-
31
- handler(event);
32
- };
33
-
34
- document.addEventListener("mousedown", listener);
35
- document.addEventListener("touchstart", listener);
36
-
37
- return () => {
38
- document.removeEventListener("mousedown", listener);
39
- document.removeEventListener("touchstart", listener);
40
- };
41
- }, [ref, handler]);
42
- }
1
+ import { useEffect } from "react";
2
+
3
+ export function useOnClickOutside(
4
+ ref: any,
5
+ handler: (event?: MouseEvent | TouchEvent) => void
6
+ ) {
7
+ useEffect(() => {
8
+ const listener = (event: MouseEvent | TouchEvent) => {
9
+ if (!ref?.current || !event.target) {
10
+ return;
11
+ }
12
+
13
+ const target = event.target as Element;
14
+ const currentTarget = event.currentTarget as Element;
15
+
16
+ if (ref.current.contains(target) || ref.current.contains(currentTarget)) {
17
+ return;
18
+ }
19
+
20
+ if (target.tagName === "HTML" || target.tagName === "BODY") {
21
+ const elementAtPoint = document.elementFromPoint(
22
+ (event as MouseEvent).clientX,
23
+ (event as MouseEvent).clientY
24
+ );
25
+
26
+ if (elementAtPoint && ref.current.contains(elementAtPoint)) {
27
+ return;
28
+ }
29
+ }
30
+
31
+ handler(event);
32
+ };
33
+
34
+ document.addEventListener("mousedown", listener);
35
+ document.addEventListener("touchstart", listener);
36
+
37
+ return () => {
38
+ document.removeEventListener("mousedown", listener);
39
+ document.removeEventListener("touchstart", listener);
40
+ };
41
+ }, [ref, handler]);
42
+ }
package/src/index.tsx CHANGED
@@ -1,68 +1,69 @@
1
- // Icon
2
- export * from "./components/Icon";
3
-
4
- // Text
5
- export * from "./components/Text";
6
-
7
- // Components
8
- export * from "./components/Button";
9
- export * from "./components/ButtonGroup";
10
- export * from "./components/Avatar";
11
- export * from "./components/TextField";
12
- export * from "./components/RadioGroup";
13
- export * from "./components/CheckboxGroup";
14
- export * from "./components/Filter";
15
- export * from "./components/Dropdown";
16
- export * from "./components/Badge";
17
- export * from "./components/Modal";
18
- export * from "./components/MenuDropdown";
19
- export * from "./components/Calendar";
20
- export * from "./components/Drawer";
21
- export * from "./components/TimePicker";
22
- export * from "./components/Alert";
23
- export * from "./components/Switch";
24
- export * from "./components/Step";
25
- export * from "./components/Card";
26
- export * from "./components/TextareaField";
27
- export * from "./components/Toast";
28
- export * from "./components/Tooltip";
29
- export * from "./components/MultiSelect";
30
-
31
- // Layouts
32
- export * from "./components/Flex";
33
- export * from "./components/Box";
34
- export * from "./components/Grid";
35
- export * from "./components/Container";
36
- export * from "./components/Section";
37
-
38
- //Form
39
- export * from "./components/FormFields/subComponents/ErrorFormMessage";
40
- export * from "./components/FormFields/subComponents/FormLabel";
41
- export * from "./components/FormFields/TextAreaFormField";
42
- export * from "./components/FormFields/TextFormField";
43
- export * from "./components/FormFields/Form";
44
- export * from "./components/FormFields/MultiSelectFormField";
45
- export * from "./components/FormFields/PhoneFormField";
46
- export * from "./components/FormFields/CPFFormField";
47
- export * from "./components/FormFields/CNPJFormField";
48
- export * from "./components/FormFields/BirthDateFormField";
49
- export * from "./components/FormFields/IdentityDocumentNumberFormField";
50
- export * from "./components/FormFields/AddressFormFields/index";
51
- export * from "./components/FormFields/RadioGroupFormField";
52
- export * from "./components/FormFields/CheckboxGroupFormField";
53
- export * from "./components/FormFields/AddressFormFields/CountryFormField";
54
- export * from "./components/FormFields/SelectFormField";
55
- export * from "./components/FormFields/SwitchFormField";
56
- export * from "./components/FormFields/EmailFormField";
57
- export * from "./components/FormFields/RichEditorFormField";
58
- export * from "./components/FormFields/CalendarFormField";
59
- export * from "./components/FormFields/TimePickerFormField";
60
-
61
- // Rich Editor
62
- export * from "./components/RichEditor";
63
-
64
- // Hooks
65
- export * from "./hooks/useImageUpload";
66
-
67
- // Utils
68
- export * from "./utils/uploadService";
1
+ // Icon
2
+ export * from "./components/Icon";
3
+
4
+ // Text
5
+ export * from "./components/Text";
6
+
7
+ // Components
8
+ export * from "./components/Button";
9
+ export * from "./components/ButtonGroup";
10
+ export * from "./components/Avatar";
11
+ export * from "./components/TextField";
12
+ export * from "./components/RadioGroup";
13
+ export * from "./components/CheckboxGroup";
14
+ export * from "./components/Filter";
15
+ export * from "./components/Dropdown";
16
+ export * from "./components/Badge";
17
+ export * from "./components/Modal";
18
+ export * from "./components/MenuDropdown";
19
+ export * from "./components/Calendar";
20
+ export * from "./components/Drawer";
21
+ export * from "./components/TimePicker";
22
+ export * from "./components/Alert";
23
+ export * from "./components/Switch";
24
+ export * from "./components/Step";
25
+ export * from "./components/Card";
26
+ export * from "./components/TextareaField";
27
+ export * from "./components/Toast";
28
+ export * from "./components/Tooltip";
29
+ export * from "./components/MultiSelect";
30
+ export * from "./components/Divider";
31
+
32
+ // Layouts
33
+ export * from "./components/Flex";
34
+ export * from "./components/Box";
35
+ export * from "./components/Grid";
36
+ export * from "./components/Container";
37
+ export * from "./components/Section";
38
+
39
+ //Form
40
+ export * from "./components/FormFields/subComponents/ErrorFormMessage";
41
+ export * from "./components/FormFields/subComponents/FormLabel";
42
+ export * from "./components/FormFields/TextAreaFormField";
43
+ export * from "./components/FormFields/TextFormField";
44
+ export * from "./components/FormFields/Form";
45
+ export * from "./components/FormFields/MultiSelectFormField";
46
+ export * from "./components/FormFields/PhoneFormField";
47
+ export * from "./components/FormFields/CPFFormField";
48
+ export * from "./components/FormFields/CNPJFormField";
49
+ export * from "./components/FormFields/BirthDateFormField";
50
+ export * from "./components/FormFields/IdentityDocumentNumberFormField";
51
+ export * from "./components/FormFields/AddressFormFields/index";
52
+ export * from "./components/FormFields/RadioGroupFormField";
53
+ export * from "./components/FormFields/CheckboxGroupFormField";
54
+ export * from "./components/FormFields/AddressFormFields/CountryFormField";
55
+ export * from "./components/FormFields/SelectFormField";
56
+ export * from "./components/FormFields/SwitchFormField";
57
+ export * from "./components/FormFields/EmailFormField";
58
+ export * from "./components/FormFields/RichEditorFormField";
59
+ export * from "./components/FormFields/CalendarFormField";
60
+ export * from "./components/FormFields/TimePickerFormField";
61
+
62
+ // Rich Editor
63
+ export * from "./components/RichEditor";
64
+
65
+ // Hooks
66
+ export * from "./hooks/useImageUpload";
67
+
68
+ // Utils
69
+ export * from "./utils/uploadService";
@@ -1,38 +1,38 @@
1
- import {
2
- colors,
3
- fontSizes,
4
- fontWeights,
5
- fonts,
6
- lineHeights,
7
- radii,
8
- space,
9
- } from '@lets-events/tokens'
10
-
11
- import { createStitches, defaultThemeMap } from '@stitches/react'
12
-
13
- export const {
14
- styled,
15
- css,
16
- globalCss,
17
- keyframes,
18
- getCssText,
19
- theme,
20
- createTheme,
21
- config,
22
- } = createStitches({
23
- themeMap: {
24
- ...defaultThemeMap,
25
- height: 'space',
26
- width: 'space',
27
- gap: 'space'
28
- },
29
- theme: {
30
- colors,
31
- fontSizes,
32
- fonts,
33
- fontWeights,
34
- lineHeights,
35
- radii,
36
- space,
37
- },
38
- })
1
+ import {
2
+ colors,
3
+ fontSizes,
4
+ fontWeights,
5
+ fonts,
6
+ lineHeights,
7
+ radii,
8
+ space,
9
+ } from '@lets-events/tokens'
10
+
11
+ import { createStitches, defaultThemeMap } from '@stitches/react'
12
+
13
+ export const {
14
+ styled,
15
+ css,
16
+ globalCss,
17
+ keyframes,
18
+ getCssText,
19
+ theme,
20
+ createTheme,
21
+ config,
22
+ } = createStitches({
23
+ themeMap: {
24
+ ...defaultThemeMap,
25
+ height: 'space',
26
+ width: 'space',
27
+ gap: 'space'
28
+ },
29
+ theme: {
30
+ colors,
31
+ fontSizes,
32
+ fonts,
33
+ fontWeights,
34
+ lineHeights,
35
+ radii,
36
+ space,
37
+ },
38
+ })
@@ -1,179 +1,179 @@
1
- export const typographyValues = {
2
- displayLarge: {
3
- fontSize: '$displayLarge',
4
- lineHeight: '$displayLarge',
5
- letterSpacing: '$displayLarge',
6
-
7
- },
8
- displayMedium: {
9
- fontSize: '$displayMedium',
10
- lineHeight: '$displayMedium',
11
- letterSpacing: '$displayMedium',
12
- },
13
- displaySmall: {
14
- fontSize: '$displaySmall',
15
- lineHeight: '$displaySmall',
16
- letterSpacing: '$displaySmall',
17
- },
18
- headline1: {
19
- fontSize: '$headline1',
20
- lineHeight: '$headline1',
21
- },
22
- headline2: {
23
- fontSize: '$headline2',
24
- lineHeight: '$headline2',
25
- },
26
- headline3: {
27
- fontSize: '$headline3',
28
- lineHeight: '$headline3',
29
- },
30
- headline4: {
31
- fontSize: '$headline4',
32
- lineHeight: '$headline4',
33
- },
34
- headline5: {
35
- fontSize: '$headline5',
36
- lineHeight: '$headline5',
37
- },
38
- headline6: {
39
- fontSize: '$headline6',
40
- lineHeight: '$headline6',
41
- },
42
- headline7: {
43
- fontSize: '$headline7',
44
- lineHeight: '$headline7',
45
- },
46
- headline8: {
47
- fontSize: '$headline8',
48
- lineHeight: '$headline8',
49
- },
50
- bodyXL: {
51
- fontSize: '$bodyXL',
52
- lineHeight: '$bodyXL',
53
- },
54
- bodyL: {
55
- fontSize: '$bodyL',
56
- lineHeight: '$bodyL',
57
- },
58
- bodyM: {
59
- fontSize: '$bodyM',
60
- lineHeight: '$bodyM',
61
- },
62
- bodyS: {
63
- fontSize: '$bodyS',
64
- lineHeight: '$bodyS',
65
- },
66
- bodyXS: {
67
- fontSize: '$bodyXS',
68
- lineHeight: '$bodyXS',
69
- },
70
- bodyXXS: {
71
- fontSize: '$bodyXXS',
72
- lineHeight: '$bodyXXS',
73
- },
74
- badgeLarge: {
75
- fontSize: '$badgeLarge',
76
- lineHeight: '$badgeLarge',
77
- },
78
- badgeMedium: {
79
- fontSize: '$badgeMedium',
80
- lineHeight: '$badgeMedium',
81
- },
82
- badgeSmall: {
83
- fontSize: '$badgeSmall',
84
- lineHeight: '$badgeSmall',
85
- },
86
- badgeExtraSmall: {
87
- fontSize: '$badgeExtraSmall',
88
- lineHeight: '$badgeExtraSmall',
89
- },
90
- tooltip: {
91
- fontSize: '$tooltip',
92
- lineHeight: '$tooltip',
93
- },
94
- popoversRegular: {
95
- fontSize: '$popoversRegular',
96
- lineHeight: '$popoversRegular',
97
- },
98
- captionLarge: {
99
- fontSize: '$captionLarge',
100
- lineHeight: '$captionLarge',
101
- },
102
- captionMedium: {
103
- fontSize: '$captionMedium',
104
- lineHeight: '$captionMedium',
105
- },
106
- captionSmall: {
107
- fontSize: '$captionSmall',
108
- lineHeight: '$captionSmall',
109
- },
110
- buttonLarge: {
111
- fontSize: '$buttonLarge',
112
- lineHeight: '$buttonLarge',
113
- },
114
- buttonMedium: {
115
- fontSize: '$buttonMedium',
116
- lineHeight: '$buttonMedium',
117
- },
118
- buttonSmall: {
119
- fontSize: '$buttonSmall',
120
- lineHeight: '$buttonSmall',
121
- },
122
- buttonExtraSmall: {
123
- fontSize: '$buttonExtraSmall',
124
- lineHeight: '$buttonExtraSmall',
125
- },
126
- labelLarge: {
127
- fontSize: '$labelLarge',
128
- lineHeight: '$labelLarge',
129
- },
130
- labelMedium: {
131
- fontSize: '$labelMedium',
132
- lineHeight: '$labelMedium',
133
- },
134
- labelSmall: {
135
- fontSize: '$labelSmall',
136
- lineHeight: '$labelSmall',
137
- },
138
- labelExtraSmall: {
139
- fontSize: '$labelExtraSmall',
140
- lineHeight: '$labelExtraSmall',
141
- },
142
-
143
- }
144
- export const typographyButtonValues = {
145
- buttonLarge: {
146
- fontSize: '$buttonLarge',
147
- lineHeight: '$buttonLarge',
148
- },
149
- buttonMedium: {
150
- fontSize: '$buttonMedium',
151
- lineHeight: '$buttonMedium',
152
- },
153
- buttonSmall: {
154
- fontSize: '$buttonSmall',
155
- lineHeight: '$buttonSmall',
156
- },
157
- buttonExtraSmall: {
158
- fontSize: '$buttonExtraSmall',
159
- lineHeight: '$buttonExtraSmall',
160
- },
161
- }
162
- export const typographyLabelValues = {
163
- labelLarge: {
164
- fontSize: '$labelLarge',
165
- lineHeight: '$labelLarge',
166
- },
167
- labelMedium: {
168
- fontSize: '$labelMedium',
169
- lineHeight: '$labelMedium',
170
- },
171
- labelSmall: {
172
- fontSize: '$labelSmall',
173
- lineHeight: '$labelSmall',
174
- },
175
- labelExtraSmall: {
176
- fontSize: '$labelExtraSmall',
177
- lineHeight: '$labelExtraSmall',
178
- },
1
+ export const typographyValues = {
2
+ displayLarge: {
3
+ fontSize: '$displayLarge',
4
+ lineHeight: '$displayLarge',
5
+ letterSpacing: '$displayLarge',
6
+
7
+ },
8
+ displayMedium: {
9
+ fontSize: '$displayMedium',
10
+ lineHeight: '$displayMedium',
11
+ letterSpacing: '$displayMedium',
12
+ },
13
+ displaySmall: {
14
+ fontSize: '$displaySmall',
15
+ lineHeight: '$displaySmall',
16
+ letterSpacing: '$displaySmall',
17
+ },
18
+ headline1: {
19
+ fontSize: '$headline1',
20
+ lineHeight: '$headline1',
21
+ },
22
+ headline2: {
23
+ fontSize: '$headline2',
24
+ lineHeight: '$headline2',
25
+ },
26
+ headline3: {
27
+ fontSize: '$headline3',
28
+ lineHeight: '$headline3',
29
+ },
30
+ headline4: {
31
+ fontSize: '$headline4',
32
+ lineHeight: '$headline4',
33
+ },
34
+ headline5: {
35
+ fontSize: '$headline5',
36
+ lineHeight: '$headline5',
37
+ },
38
+ headline6: {
39
+ fontSize: '$headline6',
40
+ lineHeight: '$headline6',
41
+ },
42
+ headline7: {
43
+ fontSize: '$headline7',
44
+ lineHeight: '$headline7',
45
+ },
46
+ headline8: {
47
+ fontSize: '$headline8',
48
+ lineHeight: '$headline8',
49
+ },
50
+ bodyXL: {
51
+ fontSize: '$bodyXL',
52
+ lineHeight: '$bodyXL',
53
+ },
54
+ bodyL: {
55
+ fontSize: '$bodyL',
56
+ lineHeight: '$bodyL',
57
+ },
58
+ bodyM: {
59
+ fontSize: '$bodyM',
60
+ lineHeight: '$bodyM',
61
+ },
62
+ bodyS: {
63
+ fontSize: '$bodyS',
64
+ lineHeight: '$bodyS',
65
+ },
66
+ bodyXS: {
67
+ fontSize: '$bodyXS',
68
+ lineHeight: '$bodyXS',
69
+ },
70
+ bodyXXS: {
71
+ fontSize: '$bodyXXS',
72
+ lineHeight: '$bodyXXS',
73
+ },
74
+ badgeLarge: {
75
+ fontSize: '$badgeLarge',
76
+ lineHeight: '$badgeLarge',
77
+ },
78
+ badgeMedium: {
79
+ fontSize: '$badgeMedium',
80
+ lineHeight: '$badgeMedium',
81
+ },
82
+ badgeSmall: {
83
+ fontSize: '$badgeSmall',
84
+ lineHeight: '$badgeSmall',
85
+ },
86
+ badgeExtraSmall: {
87
+ fontSize: '$badgeExtraSmall',
88
+ lineHeight: '$badgeExtraSmall',
89
+ },
90
+ tooltip: {
91
+ fontSize: '$tooltip',
92
+ lineHeight: '$tooltip',
93
+ },
94
+ popoversRegular: {
95
+ fontSize: '$popoversRegular',
96
+ lineHeight: '$popoversRegular',
97
+ },
98
+ captionLarge: {
99
+ fontSize: '$captionLarge',
100
+ lineHeight: '$captionLarge',
101
+ },
102
+ captionMedium: {
103
+ fontSize: '$captionMedium',
104
+ lineHeight: '$captionMedium',
105
+ },
106
+ captionSmall: {
107
+ fontSize: '$captionSmall',
108
+ lineHeight: '$captionSmall',
109
+ },
110
+ buttonLarge: {
111
+ fontSize: '$buttonLarge',
112
+ lineHeight: '$buttonLarge',
113
+ },
114
+ buttonMedium: {
115
+ fontSize: '$buttonMedium',
116
+ lineHeight: '$buttonMedium',
117
+ },
118
+ buttonSmall: {
119
+ fontSize: '$buttonSmall',
120
+ lineHeight: '$buttonSmall',
121
+ },
122
+ buttonExtraSmall: {
123
+ fontSize: '$buttonExtraSmall',
124
+ lineHeight: '$buttonExtraSmall',
125
+ },
126
+ labelLarge: {
127
+ fontSize: '$labelLarge',
128
+ lineHeight: '$labelLarge',
129
+ },
130
+ labelMedium: {
131
+ fontSize: '$labelMedium',
132
+ lineHeight: '$labelMedium',
133
+ },
134
+ labelSmall: {
135
+ fontSize: '$labelSmall',
136
+ lineHeight: '$labelSmall',
137
+ },
138
+ labelExtraSmall: {
139
+ fontSize: '$labelExtraSmall',
140
+ lineHeight: '$labelExtraSmall',
141
+ },
142
+
143
+ }
144
+ export const typographyButtonValues = {
145
+ buttonLarge: {
146
+ fontSize: '$buttonLarge',
147
+ lineHeight: '$buttonLarge',
148
+ },
149
+ buttonMedium: {
150
+ fontSize: '$buttonMedium',
151
+ lineHeight: '$buttonMedium',
152
+ },
153
+ buttonSmall: {
154
+ fontSize: '$buttonSmall',
155
+ lineHeight: '$buttonSmall',
156
+ },
157
+ buttonExtraSmall: {
158
+ fontSize: '$buttonExtraSmall',
159
+ lineHeight: '$buttonExtraSmall',
160
+ },
161
+ }
162
+ export const typographyLabelValues = {
163
+ labelLarge: {
164
+ fontSize: '$labelLarge',
165
+ lineHeight: '$labelLarge',
166
+ },
167
+ labelMedium: {
168
+ fontSize: '$labelMedium',
169
+ lineHeight: '$labelMedium',
170
+ },
171
+ labelSmall: {
172
+ fontSize: '$labelSmall',
173
+ lineHeight: '$labelSmall',
174
+ },
175
+ labelExtraSmall: {
176
+ fontSize: '$labelExtraSmall',
177
+ lineHeight: '$labelExtraSmall',
178
+ },
179
179
  }
@@ -1,3 +1,3 @@
1
- export function getNestedValue(obj: any, path: string): any {
2
- return path.split(".").reduce((acc, key) => acc?.[key], obj);
3
- }
1
+ export function getNestedValue(obj: any, path: string): any {
2
+ return path.split(".").reduce((acc, key) => acc?.[key], obj);
3
+ }