@taiv/ui 1.0.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.
- package/README.md +1 -0
- package/dist/components/Data/CheckboxTable.d.ts +21 -0
- package/dist/components/Data/CheckboxTable.d.ts.map +1 -0
- package/dist/components/Data/CheckboxTable.js +85 -0
- package/dist/components/Data/RemovableItemList.d.ts +10 -0
- package/dist/components/Data/RemovableItemList.d.ts.map +1 -0
- package/dist/components/Data/RemovableItemList.js +44 -0
- package/dist/components/Info/Modals/ConfirmationModal.d.ts +18 -0
- package/dist/components/Info/Modals/ConfirmationModal.d.ts.map +1 -0
- package/dist/components/Info/Modals/ConfirmationModal.js +76 -0
- package/dist/components/Info/Modals/InfoModal.d.ts +15 -0
- package/dist/components/Info/Modals/InfoModal.d.ts.map +1 -0
- package/dist/components/Info/Modals/InfoModal.js +70 -0
- package/dist/components/Info/Modals/Modal.d.ts +13 -0
- package/dist/components/Info/Modals/Modal.d.ts.map +1 -0
- package/dist/components/Info/Modals/Modal.js +42 -0
- package/dist/components/Info/Modals/ModalProvider.d.ts +5 -0
- package/dist/components/Info/Modals/ModalProvider.d.ts.map +1 -0
- package/dist/components/Info/Modals/ModalProvider.js +15 -0
- package/dist/components/Info/Modals/variants.d.ts +63 -0
- package/dist/components/Info/Modals/variants.d.ts.map +1 -0
- package/dist/components/Info/Modals/variants.js +63 -0
- package/dist/components/Info/Notifications/NotificationProvider.d.ts +2 -0
- package/dist/components/Info/Notifications/NotificationProvider.d.ts.map +1 -0
- package/dist/components/Info/Notifications/NotificationProvider.js +46 -0
- package/dist/components/Info/Notifications/Notifications.d.ts +16 -0
- package/dist/components/Info/Notifications/Notifications.d.ts.map +1 -0
- package/dist/components/Info/Notifications/Notifications.js +41 -0
- package/dist/components/Info/Notifications/variants.d.ts +39 -0
- package/dist/components/Info/Notifications/variants.d.ts.map +1 -0
- package/dist/components/Info/Notifications/variants.js +41 -0
- package/dist/components/Info/Tooltips/InfoTooltip.d.ts +18 -0
- package/dist/components/Info/Tooltips/InfoTooltip.d.ts.map +1 -0
- package/dist/components/Info/Tooltips/InfoTooltip.js +20 -0
- package/dist/components/Info/Tooltips/Tooltip.d.ts +13 -0
- package/dist/components/Info/Tooltips/Tooltip.d.ts.map +1 -0
- package/dist/components/Info/Tooltips/Tooltip.js +35 -0
- package/dist/components/Inputs/Buttons/Button.d.ts +11 -0
- package/dist/components/Inputs/Buttons/Button.d.ts.map +1 -0
- package/dist/components/Inputs/Buttons/Button.js +27 -0
- package/dist/components/Inputs/Buttons/UnstyledButton.d.ts +10 -0
- package/dist/components/Inputs/Buttons/UnstyledButton.d.ts.map +1 -0
- package/dist/components/Inputs/Buttons/UnstyledButton.js +6 -0
- package/dist/components/Inputs/Buttons/shared/sizes.d.ts +25 -0
- package/dist/components/Inputs/Buttons/shared/sizes.d.ts.map +1 -0
- package/dist/components/Inputs/Buttons/shared/sizes.js +7 -0
- package/dist/components/Inputs/Buttons/shared/variants.d.ts +141 -0
- package/dist/components/Inputs/Buttons/shared/variants.d.ts.map +1 -0
- package/dist/components/Inputs/Buttons/shared/variants.js +141 -0
- package/dist/components/Inputs/Controls/Checkbox.d.ts +27 -0
- package/dist/components/Inputs/Controls/Checkbox.d.ts.map +1 -0
- package/dist/components/Inputs/Controls/Checkbox.js +55 -0
- package/dist/components/Inputs/Controls/Toggle.d.ts +29 -0
- package/dist/components/Inputs/Controls/Toggle.d.ts.map +1 -0
- package/dist/components/Inputs/Controls/Toggle.js +42 -0
- package/dist/components/Inputs/Dropdowns/FontSelect.d.ts +14 -0
- package/dist/components/Inputs/Dropdowns/FontSelect.d.ts.map +1 -0
- package/dist/components/Inputs/Dropdowns/FontSelect.js +48 -0
- package/dist/components/Inputs/Dropdowns/MultiSelect.d.ts +12 -0
- package/dist/components/Inputs/Dropdowns/MultiSelect.d.ts.map +1 -0
- package/dist/components/Inputs/Dropdowns/MultiSelect.js +94 -0
- package/dist/components/Inputs/Dropdowns/Select.d.ts +11 -0
- package/dist/components/Inputs/Dropdowns/Select.d.ts.map +1 -0
- package/dist/components/Inputs/Dropdowns/Select.js +62 -0
- package/dist/components/Inputs/Dropdowns/shared/fontSelectList.d.ts +12 -0
- package/dist/components/Inputs/Dropdowns/shared/fontSelectList.d.ts.map +1 -0
- package/dist/components/Inputs/Dropdowns/shared/fontSelectList.js +68 -0
- package/dist/components/Inputs/Dropdowns/shared/sizes.d.ts +36 -0
- package/dist/components/Inputs/Dropdowns/shared/sizes.d.ts.map +1 -0
- package/dist/components/Inputs/Dropdowns/shared/sizes.js +33 -0
- package/dist/components/Inputs/Sliders/Slider.d.ts +16 -0
- package/dist/components/Inputs/Sliders/Slider.d.ts.map +1 -0
- package/dist/components/Inputs/Sliders/Slider.js +91 -0
- package/dist/components/Inputs/Sliders/VolumeSlider.d.ts +6 -0
- package/dist/components/Inputs/Sliders/VolumeSlider.d.ts.map +1 -0
- package/dist/components/Inputs/Sliders/VolumeSlider.js +37 -0
- package/dist/components/Inputs/Sliders/shared/sizes.d.ts +45 -0
- package/dist/components/Inputs/Sliders/shared/sizes.d.ts.map +1 -0
- package/dist/components/Inputs/Sliders/shared/sizes.js +27 -0
- package/dist/components/Inputs/TextInputs/AutoComplete.d.ts +11 -0
- package/dist/components/Inputs/TextInputs/AutoComplete.d.ts.map +1 -0
- package/dist/components/Inputs/TextInputs/AutoComplete.js +57 -0
- package/dist/components/Inputs/TextInputs/PasswordInput.d.ts +12 -0
- package/dist/components/Inputs/TextInputs/PasswordInput.d.ts.map +1 -0
- package/dist/components/Inputs/TextInputs/PasswordInput.js +52 -0
- package/dist/components/Inputs/TextInputs/SearchBar.d.ts +7 -0
- package/dist/components/Inputs/TextInputs/SearchBar.d.ts.map +1 -0
- package/dist/components/Inputs/TextInputs/SearchBar.js +23 -0
- package/dist/components/Inputs/TextInputs/TextArea.d.ts +12 -0
- package/dist/components/Inputs/TextInputs/TextArea.d.ts.map +1 -0
- package/dist/components/Inputs/TextInputs/TextArea.js +33 -0
- package/dist/components/Inputs/TextInputs/TextInput.d.ts +12 -0
- package/dist/components/Inputs/TextInputs/TextInput.d.ts.map +1 -0
- package/dist/components/Inputs/TextInputs/TextInput.js +32 -0
- package/dist/components/Inputs/TextInputs/shared/sizes.d.ts +27 -0
- package/dist/components/Inputs/TextInputs/shared/sizes.d.ts.map +1 -0
- package/dist/components/Inputs/TextInputs/shared/sizes.js +6 -0
- package/dist/components/Layout/Box.d.ts +10 -0
- package/dist/components/Layout/Box.d.ts.map +1 -0
- package/dist/components/Layout/Box.js +6 -0
- package/dist/components/Layout/Center.d.ts +9 -0
- package/dist/components/Layout/Center.d.ts.map +1 -0
- package/dist/components/Layout/Center.js +6 -0
- package/dist/components/Layout/Divider.d.ts +9 -0
- package/dist/components/Layout/Divider.d.ts.map +1 -0
- package/dist/components/Layout/Divider.js +7 -0
- package/dist/components/Layout/Frame.d.ts +12 -0
- package/dist/components/Layout/Frame.d.ts.map +1 -0
- package/dist/components/Layout/Frame.js +7 -0
- package/dist/components/Layout/Group.d.ts +10 -0
- package/dist/components/Layout/Group.d.ts.map +1 -0
- package/dist/components/Layout/Group.js +6 -0
- package/dist/components/Layout/Loader.d.ts +8 -0
- package/dist/components/Layout/Loader.d.ts.map +1 -0
- package/dist/components/Layout/Loader.js +6 -0
- package/dist/components/Layout/Stack.d.ts +10 -0
- package/dist/components/Layout/Stack.d.ts.map +1 -0
- package/dist/components/Layout/Stack.js +6 -0
- package/dist/components/Misc/Copy.d.ts +10 -0
- package/dist/components/Misc/Copy.d.ts.map +1 -0
- package/dist/components/Misc/Copy.js +18 -0
- package/dist/components/Misc/MediaQuery.d.ts +3 -0
- package/dist/components/Misc/MediaQuery.d.ts.map +1 -0
- package/dist/components/Misc/MediaQuery.js +2 -0
- package/dist/components/Misc/Transition.d.ts +4 -0
- package/dist/components/Misc/Transition.d.ts.map +1 -0
- package/dist/components/Misc/Transition.js +6 -0
- package/dist/components/Typography/CollapsibleText.d.ts +14 -0
- package/dist/components/Typography/CollapsibleText.d.ts.map +1 -0
- package/dist/components/Typography/CollapsibleText.js +16 -0
- package/dist/components/Typography/Text.d.ts +14 -0
- package/dist/components/Typography/Text.d.ts.map +1 -0
- package/dist/components/Typography/Text.js +20 -0
- package/dist/components/Typography/Title.d.ts +22 -0
- package/dist/components/Typography/Title.d.ts.map +1 -0
- package/dist/components/Typography/Title.js +30 -0
- package/dist/components/index.d.ts +38 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +43 -0
- package/dist/constants/colors.d.ts +79 -0
- package/dist/constants/colors.d.ts.map +1 -0
- package/dist/constants/colors.js +53 -0
- package/dist/constants/font.d.ts +245 -0
- package/dist/constants/font.d.ts.map +1 -0
- package/dist/constants/font.js +114 -0
- package/dist/constants/index.d.ts +3 -0
- package/dist/constants/index.d.ts.map +1 -0
- package/dist/constants/index.js +2 -0
- package/dist/hooks/index.d.ts +6 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +5 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/package.json +50 -0
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
declare const fontWeight: {
|
|
2
|
+
light: number;
|
|
3
|
+
regular: number;
|
|
4
|
+
medium: number;
|
|
5
|
+
semibold: number;
|
|
6
|
+
bold: number;
|
|
7
|
+
};
|
|
8
|
+
declare const fontBase: {
|
|
9
|
+
fontFamily: string;
|
|
10
|
+
WebkitFontSmoothing: string;
|
|
11
|
+
MozOsxFontSmoothing: string;
|
|
12
|
+
fontWeight: number;
|
|
13
|
+
};
|
|
14
|
+
declare const inputFontSize: {
|
|
15
|
+
sm: {
|
|
16
|
+
fontSize: string;
|
|
17
|
+
lineHeight: string;
|
|
18
|
+
};
|
|
19
|
+
md: {
|
|
20
|
+
fontSize: string;
|
|
21
|
+
lineHeight: string;
|
|
22
|
+
};
|
|
23
|
+
lg: {
|
|
24
|
+
fontSize: string;
|
|
25
|
+
lineHeight: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
declare const fontSize: {
|
|
29
|
+
xs: {
|
|
30
|
+
fontSize: string;
|
|
31
|
+
lineHeight: string;
|
|
32
|
+
};
|
|
33
|
+
sm: {
|
|
34
|
+
fontSize: string;
|
|
35
|
+
lineHeight: string;
|
|
36
|
+
};
|
|
37
|
+
md: {
|
|
38
|
+
fontSize: string;
|
|
39
|
+
lineHeight: string;
|
|
40
|
+
};
|
|
41
|
+
lg: {
|
|
42
|
+
fontSize: string;
|
|
43
|
+
lineHeight: string;
|
|
44
|
+
};
|
|
45
|
+
xl: {
|
|
46
|
+
fontSize: string;
|
|
47
|
+
lineHeight: string;
|
|
48
|
+
};
|
|
49
|
+
'2xl': {
|
|
50
|
+
fontSize: string;
|
|
51
|
+
lineHeight: string;
|
|
52
|
+
};
|
|
53
|
+
'3xl': {
|
|
54
|
+
fontSize: string;
|
|
55
|
+
lineHeight: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
declare const textStyle: {
|
|
59
|
+
body: {
|
|
60
|
+
fontWeight: number;
|
|
61
|
+
color: "#6D6D6D";
|
|
62
|
+
fontSize: string;
|
|
63
|
+
lineHeight: string;
|
|
64
|
+
fontFamily: string;
|
|
65
|
+
WebkitFontSmoothing: string;
|
|
66
|
+
MozOsxFontSmoothing: string;
|
|
67
|
+
};
|
|
68
|
+
subtle: {
|
|
69
|
+
fontWeight: number;
|
|
70
|
+
color: "#6D6D6D";
|
|
71
|
+
fontSize: string;
|
|
72
|
+
lineHeight: string;
|
|
73
|
+
fontFamily: string;
|
|
74
|
+
WebkitFontSmoothing: string;
|
|
75
|
+
MozOsxFontSmoothing: string;
|
|
76
|
+
};
|
|
77
|
+
label: {
|
|
78
|
+
fontWeight: number;
|
|
79
|
+
color: "#6D6D6D";
|
|
80
|
+
fontSize: string;
|
|
81
|
+
lineHeight: string;
|
|
82
|
+
fontFamily: string;
|
|
83
|
+
WebkitFontSmoothing: string;
|
|
84
|
+
MozOsxFontSmoothing: string;
|
|
85
|
+
};
|
|
86
|
+
caption: {
|
|
87
|
+
fontWeight: number;
|
|
88
|
+
color: "#6D6D6D";
|
|
89
|
+
fontSize: string;
|
|
90
|
+
lineHeight: string;
|
|
91
|
+
fontFamily: string;
|
|
92
|
+
WebkitFontSmoothing: string;
|
|
93
|
+
MozOsxFontSmoothing: string;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
declare const titleStyle: {
|
|
97
|
+
header: {
|
|
98
|
+
fontWeight: number;
|
|
99
|
+
color: string;
|
|
100
|
+
fontSize: string;
|
|
101
|
+
lineHeight: string;
|
|
102
|
+
fontFamily: string;
|
|
103
|
+
WebkitFontSmoothing: string;
|
|
104
|
+
MozOsxFontSmoothing: string;
|
|
105
|
+
};
|
|
106
|
+
sectionHeader: {
|
|
107
|
+
fontWeight: number;
|
|
108
|
+
color: string;
|
|
109
|
+
fontSize: string;
|
|
110
|
+
lineHeight: string;
|
|
111
|
+
fontFamily: string;
|
|
112
|
+
WebkitFontSmoothing: string;
|
|
113
|
+
MozOsxFontSmoothing: string;
|
|
114
|
+
};
|
|
115
|
+
subheader: {
|
|
116
|
+
fontWeight: number;
|
|
117
|
+
color: "#6D6D6D";
|
|
118
|
+
fontSize: string;
|
|
119
|
+
lineHeight: string;
|
|
120
|
+
fontFamily: string;
|
|
121
|
+
WebkitFontSmoothing: string;
|
|
122
|
+
MozOsxFontSmoothing: string;
|
|
123
|
+
};
|
|
124
|
+
sectionSubheader: {
|
|
125
|
+
fontWeight: number;
|
|
126
|
+
color: "#6D6D6D";
|
|
127
|
+
fontSize: string;
|
|
128
|
+
lineHeight: string;
|
|
129
|
+
fontFamily: string;
|
|
130
|
+
WebkitFontSmoothing: string;
|
|
131
|
+
MozOsxFontSmoothing: string;
|
|
132
|
+
};
|
|
133
|
+
cardHeader: {
|
|
134
|
+
fontWeight: number;
|
|
135
|
+
color: "#3F3F3F";
|
|
136
|
+
fontSize: string;
|
|
137
|
+
lineHeight: string;
|
|
138
|
+
fontFamily: string;
|
|
139
|
+
WebkitFontSmoothing: string;
|
|
140
|
+
MozOsxFontSmoothing: string;
|
|
141
|
+
};
|
|
142
|
+
cardSubheader: {
|
|
143
|
+
fontWeight: number;
|
|
144
|
+
color: "#6D6D6D";
|
|
145
|
+
fontSize: string;
|
|
146
|
+
lineHeight: string;
|
|
147
|
+
fontFamily: string;
|
|
148
|
+
WebkitFontSmoothing: string;
|
|
149
|
+
MozOsxFontSmoothing: string;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
declare const fontStyle: {
|
|
153
|
+
header: {
|
|
154
|
+
fontWeight: number;
|
|
155
|
+
color: string;
|
|
156
|
+
fontSize: string;
|
|
157
|
+
lineHeight: string;
|
|
158
|
+
fontFamily: string;
|
|
159
|
+
WebkitFontSmoothing: string;
|
|
160
|
+
MozOsxFontSmoothing: string;
|
|
161
|
+
};
|
|
162
|
+
sectionHeader: {
|
|
163
|
+
fontWeight: number;
|
|
164
|
+
color: string;
|
|
165
|
+
fontSize: string;
|
|
166
|
+
lineHeight: string;
|
|
167
|
+
fontFamily: string;
|
|
168
|
+
WebkitFontSmoothing: string;
|
|
169
|
+
MozOsxFontSmoothing: string;
|
|
170
|
+
};
|
|
171
|
+
subheader: {
|
|
172
|
+
fontWeight: number;
|
|
173
|
+
color: "#6D6D6D";
|
|
174
|
+
fontSize: string;
|
|
175
|
+
lineHeight: string;
|
|
176
|
+
fontFamily: string;
|
|
177
|
+
WebkitFontSmoothing: string;
|
|
178
|
+
MozOsxFontSmoothing: string;
|
|
179
|
+
};
|
|
180
|
+
sectionSubheader: {
|
|
181
|
+
fontWeight: number;
|
|
182
|
+
color: "#6D6D6D";
|
|
183
|
+
fontSize: string;
|
|
184
|
+
lineHeight: string;
|
|
185
|
+
fontFamily: string;
|
|
186
|
+
WebkitFontSmoothing: string;
|
|
187
|
+
MozOsxFontSmoothing: string;
|
|
188
|
+
};
|
|
189
|
+
cardHeader: {
|
|
190
|
+
fontWeight: number;
|
|
191
|
+
color: "#3F3F3F";
|
|
192
|
+
fontSize: string;
|
|
193
|
+
lineHeight: string;
|
|
194
|
+
fontFamily: string;
|
|
195
|
+
WebkitFontSmoothing: string;
|
|
196
|
+
MozOsxFontSmoothing: string;
|
|
197
|
+
};
|
|
198
|
+
cardSubheader: {
|
|
199
|
+
fontWeight: number;
|
|
200
|
+
color: "#6D6D6D";
|
|
201
|
+
fontSize: string;
|
|
202
|
+
lineHeight: string;
|
|
203
|
+
fontFamily: string;
|
|
204
|
+
WebkitFontSmoothing: string;
|
|
205
|
+
MozOsxFontSmoothing: string;
|
|
206
|
+
};
|
|
207
|
+
body: {
|
|
208
|
+
fontWeight: number;
|
|
209
|
+
color: "#6D6D6D";
|
|
210
|
+
fontSize: string;
|
|
211
|
+
lineHeight: string;
|
|
212
|
+
fontFamily: string;
|
|
213
|
+
WebkitFontSmoothing: string;
|
|
214
|
+
MozOsxFontSmoothing: string;
|
|
215
|
+
};
|
|
216
|
+
subtle: {
|
|
217
|
+
fontWeight: number;
|
|
218
|
+
color: "#6D6D6D";
|
|
219
|
+
fontSize: string;
|
|
220
|
+
lineHeight: string;
|
|
221
|
+
fontFamily: string;
|
|
222
|
+
WebkitFontSmoothing: string;
|
|
223
|
+
MozOsxFontSmoothing: string;
|
|
224
|
+
};
|
|
225
|
+
label: {
|
|
226
|
+
fontWeight: number;
|
|
227
|
+
color: "#6D6D6D";
|
|
228
|
+
fontSize: string;
|
|
229
|
+
lineHeight: string;
|
|
230
|
+
fontFamily: string;
|
|
231
|
+
WebkitFontSmoothing: string;
|
|
232
|
+
MozOsxFontSmoothing: string;
|
|
233
|
+
};
|
|
234
|
+
caption: {
|
|
235
|
+
fontWeight: number;
|
|
236
|
+
color: "#6D6D6D";
|
|
237
|
+
fontSize: string;
|
|
238
|
+
lineHeight: string;
|
|
239
|
+
fontFamily: string;
|
|
240
|
+
WebkitFontSmoothing: string;
|
|
241
|
+
MozOsxFontSmoothing: string;
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
export { fontStyle, textStyle, titleStyle, fontBase, fontSize, inputFontSize, fontWeight };
|
|
245
|
+
//# sourceMappingURL=font.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"font.d.ts","sourceRoot":"","sources":["../../src/constants/font.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,UAAU;;;;;;CAMf,CAAC;AAGF,QAAA,MAAM,QAAQ;;;;;CAKb,CAAC;AAGF,QAAA,MAAM,aAAa;;;;;;;;;;;;;CAIlB,CAAC;AAGF,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQb,CAAC;AAGF,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6Bd,CAAC;AAGF,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2Cf,CAAC;AAGF,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGd,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { neutral } from './colors';
|
|
2
|
+
// Human-readable names for font weights
|
|
3
|
+
const fontWeight = {
|
|
4
|
+
light: 300,
|
|
5
|
+
regular: 400,
|
|
6
|
+
medium: 500,
|
|
7
|
+
semibold: 600,
|
|
8
|
+
bold: 700,
|
|
9
|
+
};
|
|
10
|
+
// Style for base font - used for all variants
|
|
11
|
+
const fontBase = {
|
|
12
|
+
fontFamily: 'Poppins, sans-serif',
|
|
13
|
+
WebkitFontSmoothing: 'antialiased',
|
|
14
|
+
MozOsxFontSmoothing: 'grayscale',
|
|
15
|
+
fontWeight: 500,
|
|
16
|
+
};
|
|
17
|
+
// Input font sizes are slightly smaller - this is for visual hierarchy
|
|
18
|
+
const inputFontSize = {
|
|
19
|
+
sm: { fontSize: '1.15rem', lineHeight: '1.8rem' }, //~12px
|
|
20
|
+
md: { fontSize: '1.35rem', lineHeight: '2rem' }, //~14px
|
|
21
|
+
lg: { fontSize: '1.5rem', lineHeight: '2.2rem' }, //~16px
|
|
22
|
+
};
|
|
23
|
+
// Base font sizes
|
|
24
|
+
const fontSize = {
|
|
25
|
+
xs: { fontSize: '1rem', lineHeight: '1.6rem' }, //10px
|
|
26
|
+
sm: { fontSize: '1.2rem', lineHeight: '2rem' }, //12px
|
|
27
|
+
md: { fontSize: '1.4rem', lineHeight: '2.2rem' }, //14px
|
|
28
|
+
lg: { fontSize: '1.6rem', lineHeight: '2.4rem' }, //16px
|
|
29
|
+
xl: { fontSize: '2rem', lineHeight: '2.8rem' }, //20px
|
|
30
|
+
'2xl': { fontSize: '2.4rem', lineHeight: '3.2rem' }, //24px
|
|
31
|
+
'3xl': { fontSize: '2.8rem', lineHeight: '3.6rem' }, //28px
|
|
32
|
+
};
|
|
33
|
+
// Variants for body text
|
|
34
|
+
const textStyle = {
|
|
35
|
+
body: {
|
|
36
|
+
// Default
|
|
37
|
+
...fontBase,
|
|
38
|
+
...fontSize['md'],
|
|
39
|
+
fontWeight: fontWeight['medium'],
|
|
40
|
+
color: neutral[200],
|
|
41
|
+
},
|
|
42
|
+
subtle: {
|
|
43
|
+
// Empty states, etc.
|
|
44
|
+
...fontBase,
|
|
45
|
+
...fontSize['md'],
|
|
46
|
+
fontWeight: fontWeight['regular'],
|
|
47
|
+
color: neutral[200],
|
|
48
|
+
},
|
|
49
|
+
label: {
|
|
50
|
+
// Labels, tooltips, smaller text, etc.
|
|
51
|
+
...fontBase,
|
|
52
|
+
...fontSize['sm'],
|
|
53
|
+
fontWeight: fontWeight['medium'],
|
|
54
|
+
color: neutral[200],
|
|
55
|
+
},
|
|
56
|
+
caption: {
|
|
57
|
+
// Smallest text
|
|
58
|
+
...fontBase,
|
|
59
|
+
...fontSize['xs'],
|
|
60
|
+
fontWeight: fontWeight['regular'],
|
|
61
|
+
color: neutral[200],
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
// Variants for titles and headers
|
|
65
|
+
const titleStyle = {
|
|
66
|
+
header: {
|
|
67
|
+
// h1
|
|
68
|
+
...fontBase,
|
|
69
|
+
...fontSize['3xl'],
|
|
70
|
+
fontWeight: fontWeight['bold'],
|
|
71
|
+
color: 'black',
|
|
72
|
+
},
|
|
73
|
+
sectionHeader: {
|
|
74
|
+
// h2
|
|
75
|
+
...fontBase,
|
|
76
|
+
...fontSize['xl'],
|
|
77
|
+
fontWeight: fontWeight['semibold'],
|
|
78
|
+
color: 'black',
|
|
79
|
+
},
|
|
80
|
+
subheader: {
|
|
81
|
+
// h3
|
|
82
|
+
...fontBase,
|
|
83
|
+
...fontSize['lg'],
|
|
84
|
+
fontWeight: fontWeight['medium'],
|
|
85
|
+
color: neutral[200],
|
|
86
|
+
},
|
|
87
|
+
sectionSubheader: {
|
|
88
|
+
// h4
|
|
89
|
+
...fontBase,
|
|
90
|
+
...fontSize['md'],
|
|
91
|
+
fontWeight: fontWeight['regular'],
|
|
92
|
+
color: neutral[200],
|
|
93
|
+
},
|
|
94
|
+
cardHeader: {
|
|
95
|
+
// h5
|
|
96
|
+
...fontBase,
|
|
97
|
+
...fontSize['lg'],
|
|
98
|
+
fontWeight: fontWeight['semibold'],
|
|
99
|
+
color: neutral[300],
|
|
100
|
+
},
|
|
101
|
+
cardSubheader: {
|
|
102
|
+
// h6
|
|
103
|
+
...fontBase,
|
|
104
|
+
...fontSize['md'],
|
|
105
|
+
fontWeight: fontWeight['regular'],
|
|
106
|
+
color: neutral[200],
|
|
107
|
+
},
|
|
108
|
+
};
|
|
109
|
+
// Combined object for all variants - for convenience
|
|
110
|
+
const fontStyle = {
|
|
111
|
+
...textStyle,
|
|
112
|
+
...titleStyle,
|
|
113
|
+
};
|
|
114
|
+
export { fontStyle, textStyle, titleStyle, fontBase, fontSize, inputFontSize, fontWeight };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { useCopy } from '../components/Misc/Copy';
|
|
2
|
+
export { useMediaQuery } from '../components/Misc/MediaQuery';
|
|
3
|
+
export { useNotifications } from '../components/Info/Notifications/Notifications';
|
|
4
|
+
export { useConfirmationModal } from '../components/Info/Modals/ConfirmationModal';
|
|
5
|
+
export { useInfoModal } from '../components/Info/Modals/InfoModal';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { useCopy } from '../components/Misc/Copy';
|
|
2
|
+
export { useMediaQuery } from '../components/Misc/MediaQuery';
|
|
3
|
+
export { useNotifications } from '../components/Info/Notifications/Notifications';
|
|
4
|
+
export { useConfirmationModal } from '../components/Info/Modals/ConfirmationModal';
|
|
5
|
+
export { useInfoModal } from '../components/Info/Modals/InfoModal';
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC"}
|
package/dist/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@taiv/ui",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"author": "Taiv",
|
|
5
|
+
"description": "Taiv's web UI Toolkit built on Mantine v6",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "tsc",
|
|
13
|
+
"dev": "tsc --watch",
|
|
14
|
+
"clean": "rm -rf dist"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@tabler/icons-react": "^2.47.0",
|
|
18
|
+
"@mantine/core": "^6.0.0",
|
|
19
|
+
"@mantine/hooks": "^6.0.0",
|
|
20
|
+
"@mantine/modals": "^6.0.0",
|
|
21
|
+
"@mantine/notifications": "^6.0.0"
|
|
22
|
+
},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"react": "^17.0.0",
|
|
25
|
+
"react-dom": "^17.0.0"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@types/react": "^17.0.87",
|
|
29
|
+
"@types/react-dom": "^17.0.26",
|
|
30
|
+
"typescript": "^5.0.2"
|
|
31
|
+
},
|
|
32
|
+
"exports": {
|
|
33
|
+
".": {
|
|
34
|
+
"types": "./dist/index.d.ts",
|
|
35
|
+
"default": "./dist/index.js"
|
|
36
|
+
},
|
|
37
|
+
"./core": {
|
|
38
|
+
"types": "./dist/components/index.d.ts",
|
|
39
|
+
"default": "./dist/components/index.js"
|
|
40
|
+
},
|
|
41
|
+
"./hooks": {
|
|
42
|
+
"types": "./dist/hooks/index.d.ts",
|
|
43
|
+
"default": "./dist/hooks/index.js"
|
|
44
|
+
},
|
|
45
|
+
"./constants": {
|
|
46
|
+
"types": "./dist/constants/index.d.ts",
|
|
47
|
+
"default": "./dist/constants/index.js"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|