@kivid/native-components 1.0.0-alpha.2 → 1.0.0-alpha.5

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 (136) hide show
  1. package/dist/commonjs/components/Avatar/assets/class-variants.js +23 -0
  2. package/dist/commonjs/components/Avatar/assets/class-variants.js.map +1 -0
  3. package/dist/commonjs/components/Avatar/enums/index.js +17 -0
  4. package/dist/commonjs/components/Avatar/enums/index.js.map +1 -0
  5. package/dist/commonjs/components/Avatar/enums/size.js +15 -0
  6. package/dist/commonjs/components/Avatar/enums/size.js.map +1 -0
  7. package/dist/commonjs/components/Avatar/images/girl.jpg +0 -0
  8. package/dist/commonjs/components/Avatar/index.js +97 -0
  9. package/dist/commonjs/components/Avatar/index.js.map +1 -0
  10. package/dist/commonjs/components/Avatar/types.js +6 -0
  11. package/dist/commonjs/components/Avatar/types.js.map +1 -0
  12. package/dist/commonjs/components/Button/assets/class-variants.js +0 -5
  13. package/dist/commonjs/components/Button/assets/class-variants.js.map +1 -1
  14. package/dist/commonjs/components/Button/index.js +10 -4
  15. package/dist/commonjs/components/Button/index.js.map +1 -1
  16. package/dist/commonjs/components/Chip/index.js +7 -3
  17. package/dist/commonjs/components/Chip/index.js.map +1 -1
  18. package/dist/commonjs/components/HighlightedText/index.js +20 -16
  19. package/dist/commonjs/components/HighlightedText/index.js.map +1 -1
  20. package/dist/commonjs/components/InputOTP/components/InformationStatus/index.js +3 -3
  21. package/dist/commonjs/components/InputOTP/components/InformationStatus/index.js.map +1 -1
  22. package/dist/commonjs/components/InputOTP/enums/index.js +9 -11
  23. package/dist/commonjs/components/InputOTP/enums/index.js.map +1 -1
  24. package/dist/commonjs/components/Toggle/enums/variant.js +8 -8
  25. package/dist/commonjs/components/Toggle/enums/variant.js.map +1 -1
  26. package/dist/commonjs/components/Toggle/index.js +1 -1
  27. package/dist/commonjs/components/Toggle/index.js.map +1 -1
  28. package/dist/commonjs/components/Typography/assets/class-variants.js +59 -0
  29. package/dist/commonjs/components/Typography/assets/class-variants.js.map +1 -0
  30. package/dist/commonjs/components/Typography/index.js +9 -5
  31. package/dist/commonjs/components/Typography/index.js.map +1 -1
  32. package/dist/commonjs/components/index.js +110 -11
  33. package/dist/commonjs/components/index.js.map +1 -1
  34. package/dist/commonjs/hooks/use-fonts.js +8 -0
  35. package/dist/commonjs/hooks/use-fonts.js.map +1 -1
  36. package/dist/module/components/Avatar/assets/class-variants.js +20 -0
  37. package/dist/module/components/Avatar/assets/class-variants.js.map +1 -0
  38. package/dist/module/components/Avatar/enums/index.js +4 -0
  39. package/dist/module/components/Avatar/enums/index.js.map +1 -0
  40. package/dist/module/components/Avatar/enums/size.js +11 -0
  41. package/dist/module/components/Avatar/enums/size.js.map +1 -0
  42. package/dist/module/components/Avatar/images/girl.jpg +0 -0
  43. package/dist/module/components/Avatar/index.js +92 -0
  44. package/dist/module/components/Avatar/index.js.map +1 -0
  45. package/dist/module/components/Avatar/types.js +4 -0
  46. package/dist/module/components/Avatar/types.js.map +1 -0
  47. package/dist/module/components/Button/assets/class-variants.js +0 -5
  48. package/dist/module/components/Button/assets/class-variants.js.map +1 -1
  49. package/dist/module/components/Button/index.js +11 -4
  50. package/dist/module/components/Button/index.js.map +1 -1
  51. package/dist/module/components/Chip/index.js +8 -4
  52. package/dist/module/components/Chip/index.js.map +1 -1
  53. package/dist/module/components/HighlightedText/index.js +20 -16
  54. package/dist/module/components/HighlightedText/index.js.map +1 -1
  55. package/dist/module/components/InputOTP/components/InformationStatus/index.js +1 -1
  56. package/dist/module/components/InputOTP/components/InformationStatus/index.js.map +1 -1
  57. package/dist/module/components/InputOTP/enums/index.js +8 -1
  58. package/dist/module/components/InputOTP/enums/index.js.map +1 -1
  59. package/dist/module/components/Toggle/enums/variant.js +7 -7
  60. package/dist/module/components/Toggle/enums/variant.js.map +1 -1
  61. package/dist/module/components/Toggle/index.js +2 -2
  62. package/dist/module/components/Toggle/index.js.map +1 -1
  63. package/dist/module/components/Typography/assets/class-variants.js +55 -0
  64. package/dist/module/components/Typography/assets/class-variants.js.map +1 -0
  65. package/dist/module/components/Typography/index.js +9 -5
  66. package/dist/module/components/Typography/index.js.map +1 -1
  67. package/dist/module/components/index.js +9 -0
  68. package/dist/module/components/index.js.map +1 -1
  69. package/dist/module/hooks/use-fonts.js +8 -0
  70. package/dist/module/hooks/use-fonts.js.map +1 -1
  71. package/dist/package.json +1 -2
  72. package/dist/typescript/components/Avatar/assets/class-variants.d.ts +5 -0
  73. package/dist/typescript/components/Avatar/enums/index.d.ts +1 -0
  74. package/dist/typescript/components/Avatar/enums/size.d.ts +7 -0
  75. package/dist/typescript/components/Avatar/index.d.ts +2 -0
  76. package/dist/typescript/components/Avatar/types.d.ts +6 -0
  77. package/dist/typescript/components/Button/assets/class-variants.d.ts +0 -1
  78. package/dist/typescript/components/Button/index.d.ts +2 -2
  79. package/dist/typescript/components/Chip/assets/class-variants.d.ts +1 -1
  80. package/dist/typescript/components/Chip/index.d.ts +2 -1
  81. package/dist/typescript/components/HighlightedText/index.d.ts +1 -0
  82. package/dist/typescript/components/HighlightedText/types.d.ts +9 -3
  83. package/dist/typescript/components/InputOTP/enums/index.d.ts +7 -1
  84. package/dist/typescript/components/Seal/assets/class-variants.d.ts +1 -1
  85. package/dist/typescript/components/Toggle/enums/variant.d.ts +1 -1
  86. package/dist/typescript/components/Toggle/types.d.ts +2 -2
  87. package/dist/typescript/components/Typography/assets/class-variants.d.ts +4 -0
  88. package/dist/typescript/components/Typography/index.d.ts +3 -3
  89. package/dist/typescript/components/Typography/types.d.ts +3 -3
  90. package/dist/typescript/components/index.d.ts +18 -0
  91. package/package.json +11 -13
  92. package/src/components/Avatar/assets/class-variants.ts +22 -0
  93. package/src/components/Avatar/enums/index.ts +1 -0
  94. package/src/components/Avatar/enums/size.ts +7 -0
  95. package/src/components/Avatar/images/girl.jpg +0 -0
  96. package/src/components/Avatar/index.stories.tsx +84 -0
  97. package/src/components/Avatar/index.tsx +98 -0
  98. package/src/components/Avatar/types.ts +7 -0
  99. package/src/components/Button/assets/class-variants.ts +0 -5
  100. package/src/components/Button/index.tsx +24 -6
  101. package/src/components/Chip/index.tsx +16 -8
  102. package/src/components/HighlightedText/index.stories.tsx +117 -18
  103. package/src/components/HighlightedText/index.tsx +36 -16
  104. package/src/components/HighlightedText/types.ts +9 -3
  105. package/src/components/InputOTP/components/InformationStatus/index.tsx +1 -1
  106. package/src/components/InputOTP/enums/index.ts +7 -1
  107. package/src/components/InputOTP/index.stories.tsx +13 -4
  108. package/src/components/Title/index.stories.tsx +185 -75
  109. package/src/components/Toggle/enums/variant.ts +1 -1
  110. package/src/components/Toggle/index.stories.tsx +19 -19
  111. package/src/components/Toggle/index.tsx +2 -2
  112. package/src/components/Toggle/types.ts +2 -2
  113. package/src/components/Typography/assets/class-variants.ts +56 -0
  114. package/src/components/Typography/index.stories.tsx +117 -159
  115. package/src/components/Typography/index.tsx +9 -5
  116. package/src/components/Typography/types.ts +5 -3
  117. package/src/components/index.ts +28 -0
  118. package/src/hooks/use-fonts.ts +8 -0
  119. package/assets/adaptive-icon.png +0 -0
  120. package/assets/favicon.png +0 -0
  121. package/assets/fonts/Nunito-Bold.ttf +0 -0
  122. package/assets/fonts/Nunito-BoldItalic.ttf +0 -0
  123. package/assets/fonts/Nunito-Italic.ttf +0 -0
  124. package/assets/fonts/Nunito-Medium.ttf +0 -0
  125. package/assets/fonts/Nunito-MediumItalic.ttf +0 -0
  126. package/assets/fonts/Nunito-Regular.ttf +0 -0
  127. package/assets/fonts/Nunito-SemiBold.ttf +0 -0
  128. package/assets/fonts/Nunito-SemiBoldItalic.ttf +0 -0
  129. package/assets/icon.png +0 -0
  130. package/assets/splash.png +0 -0
  131. package/dist/commonjs/components/InputOTP/enums/information-status.js +0 -15
  132. package/dist/commonjs/components/InputOTP/enums/information-status.js.map +0 -1
  133. package/dist/module/components/InputOTP/enums/information-status.js +0 -11
  134. package/dist/module/components/InputOTP/enums/information-status.js.map +0 -1
  135. package/dist/typescript/components/InputOTP/enums/information-status.d.ts +0 -7
  136. package/src/components/InputOTP/enums/information-status.ts +0 -7
@@ -1,10 +1,16 @@
1
- import { Text, TextProps } from "react-native";
1
+ import { TextProps } from "react-native";
2
+ import type { TypographyProps } from "../Typography/types";
2
3
 
3
4
  export interface HighlightedTextProps extends TextProps {
4
5
  text: string;
5
6
  highlightText?: string;
6
- highlightTextClassName?: string;
7
7
  className?: string;
8
- ref?: React.RefObject<Text | null>;
9
8
  reverse?: boolean;
9
+ variant?: TypographyProps["variant"];
10
+ weight?: TypographyProps["weight"];
11
+ highlightedTextProps?: {
12
+ className?: string;
13
+ variant?: TypographyProps["variant"];
14
+ weight?: TypographyProps["weight"];
15
+ };
10
16
  }
@@ -4,7 +4,7 @@ import { useMemo } from "react";
4
4
  import type { InformationStatusProps } from "./types";
5
5
 
6
6
  import { merge } from "@kivid/tailwind-preset";
7
- import Button from "../../../Button";
7
+ import { Button } from "../../../Button";
8
8
  import { HighlightedText } from "../../../HighlightedText";
9
9
  import LoadingDots from "../../../LoadingDots";
10
10
  import { Chip } from "../../../Chip";
@@ -1 +1,7 @@
1
- export * from "./information-status";
1
+ export enum InformationStatusEnum {
2
+ DEFAULT = "default",
3
+ ERROR = "error",
4
+ SUCCESS = "success",
5
+ LOADING = "loading",
6
+ COOLDOWN = "cooldown",
7
+ }
@@ -3,6 +3,7 @@ import { InputOTP } from "./index";
3
3
  import { useState } from "react";
4
4
  import { Text, View } from "react-native";
5
5
  import { InformationStatusEnum } from "./enums";
6
+ import { Typography } from "../Typography";
6
7
 
7
8
  const meta: Meta<typeof InputOTP> = {
8
9
  title: "Components/InputOTP",
@@ -106,12 +107,20 @@ export const WithCustomInformation: Story = {
106
107
  {...args}
107
108
  customInformation={
108
109
  <View>
109
- <Text className="text-label_medium_700 text-blackberry-500">
110
+ <Typography
111
+ variant="label_medium"
112
+ weight="700"
113
+ className="text-blackberry-500"
114
+ >
110
115
  O código realmente é esse?
111
- </Text>
112
- <Text className="text-label_medium_700 text-chia-900">
116
+ </Typography>
117
+ <Typography
118
+ variant="label_medium"
119
+ weight="700"
120
+ className="text-chia-900"
121
+ >
113
122
  Tente novamente
114
- </Text>
123
+ </Typography>
115
124
  </View>
116
125
  }
117
126
  />
@@ -78,8 +78,12 @@ export const WithCustomIcon: Story = {
78
78
  <HighlightedText
79
79
  text="Custom"
80
80
  highlightText="icon"
81
- className="text-headline_large_300 "
82
- highlightTextClassName="text-headline_large_700"
81
+ variant="headline_large"
82
+ weight="400"
83
+ highlightedTextProps={{
84
+ variant: "headline_large",
85
+ weight: "700",
86
+ }}
83
87
  />
84
88
  </Title>
85
89
  </View>
@@ -102,14 +106,22 @@ export const Large2X: Story = {
102
106
  <HighlightedText
103
107
  text="Sub"
104
108
  highlightText="highlight"
105
- className="text-headline_large_300 "
106
- highlightTextClassName="text-headline_large_500"
109
+ variant="headline_large"
110
+ weight="400"
111
+ highlightedTextProps={{
112
+ variant: "headline_large",
113
+ weight: "700",
114
+ }}
107
115
  />
108
116
  <HighlightedText
109
117
  text="Sub"
110
118
  highlightText="highlight"
111
- className="text-headline_large_300 "
112
- highlightTextClassName="text-headline_large_500"
119
+ variant="headline_large"
120
+ weight="400"
121
+ highlightedTextProps={{
122
+ variant: "headline_large",
123
+ weight: "700",
124
+ }}
113
125
  />
114
126
  <HighlightedText
115
127
  text="Curabitur blandit tempus porttitor."
@@ -144,7 +156,7 @@ export const Large2X: Story = {
144
156
  parameters: {
145
157
  docs: {
146
158
  description: {
147
- story: "Title 2x large with Headline, subtitle and multiples texts",
159
+ story: "Title 2x large with Heading, subtitle and multiples texts",
148
160
  },
149
161
  },
150
162
  },
@@ -158,22 +170,34 @@ export const LargeX: Story = {
158
170
  <HighlightedText
159
171
  text="Sub"
160
172
  highlightText="highlight"
161
- className="text-headline_medium_300"
162
- highlightTextClassName="text-headline_medium_500"
173
+ variant="headline_medium"
174
+ weight="400"
175
+ highlightedTextProps={{
176
+ variant: "headline_medium",
177
+ weight: "700",
178
+ }}
163
179
  />
164
180
  <HighlightedText
165
181
  text="Sub"
166
182
  highlightText="highlight"
167
- className="text-headline_medium_300"
168
- highlightTextClassName="text-headline_medium_500"
183
+ variant="headline_medium"
184
+ weight="400"
185
+ highlightedTextProps={{
186
+ variant: "headline_medium",
187
+ weight: "700",
188
+ }}
169
189
  />
170
190
  <HighlightedText
171
191
  text="Curabitur blandit tempus porttitor."
172
- className="mt-400 text-body_medium_500"
192
+ variant="body_medium"
193
+ weight="500"
194
+ className="mt-400"
173
195
  />
174
196
  <HighlightedText
175
197
  text="Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis."
176
- className="mt-400 text-body_medium_500"
198
+ variant="body_medium"
199
+ weight="500"
200
+ className="mt-400"
177
201
  />
178
202
  </>
179
203
  );
@@ -200,7 +224,7 @@ export const LargeX: Story = {
200
224
  parameters: {
201
225
  docs: {
202
226
  description: {
203
- story: "Title x large with Headline, subtitle and multiples texts",
227
+ story: "Title x large with Heading, subtitle and multiples texts",
204
228
  },
205
229
  },
206
230
  },
@@ -214,22 +238,34 @@ export const Large: Story = {
214
238
  <HighlightedText
215
239
  text="Sub"
216
240
  highlightText="highlight"
217
- className="text-headline_small_300"
218
- highlightTextClassName="text-headline_small_500"
241
+ variant="headline_small"
242
+ weight="400"
243
+ highlightedTextProps={{
244
+ variant: "headline_small",
245
+ weight: "700",
246
+ }}
219
247
  />
220
248
  <HighlightedText
221
249
  text="Sub"
222
250
  highlightText="highlight"
223
- className="text-headline_small_300"
224
- highlightTextClassName="text-headline_small_500"
251
+ variant="headline_small"
252
+ weight="400"
253
+ highlightedTextProps={{
254
+ variant: "headline_small",
255
+ weight: "700",
256
+ }}
225
257
  />
226
258
  <HighlightedText
227
259
  text="Curabitur blandit tempus porttitor."
228
- className="mt-400 text-body_medium_500"
260
+ variant="body_medium"
261
+ weight="500"
262
+ className="mt-400"
229
263
  />
230
264
  <HighlightedText
231
265
  text="Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis."
232
- className="mt-400 text-body_medium_500"
266
+ variant="body_medium"
267
+ weight="500"
268
+ className="mt-400"
233
269
  />
234
270
  </>
235
271
  );
@@ -253,7 +289,7 @@ export const Large: Story = {
253
289
  parameters: {
254
290
  docs: {
255
291
  description: {
256
- story: "Title large with Headline, subtitle and multiples texts",
292
+ story: "Title large with Heading, subtitle and multiples texts",
257
293
  },
258
294
  },
259
295
  },
@@ -267,22 +303,34 @@ export const Medium: Story = {
267
303
  <HighlightedText
268
304
  text="Sub"
269
305
  highlightText="highlight"
270
- className="text-title_large_300"
271
- highlightTextClassName="text-title_large_500"
306
+ variant="title_large"
307
+ weight="400"
308
+ highlightedTextProps={{
309
+ variant: "title_large",
310
+ weight: "700",
311
+ }}
272
312
  />
273
313
  <HighlightedText
274
314
  text="Sub"
275
315
  highlightText="highlight"
276
- className="text-title_large_300"
277
- highlightTextClassName="text-title_large_500"
316
+ variant="title_large"
317
+ weight="400"
318
+ highlightedTextProps={{
319
+ variant: "title_large",
320
+ weight: "700",
321
+ }}
278
322
  />
279
323
  <HighlightedText
280
324
  text="Curabitur blandit tempus porttitor."
281
- className="mt-400 text-body_medium_500"
325
+ variant="body_medium"
326
+ weight="500"
327
+ className="mt-400"
282
328
  />
283
329
  <HighlightedText
284
330
  text="Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis."
285
- className="mt-400 text-body_medium_500"
331
+ variant="body_medium"
332
+ weight="500"
333
+ className="mt-400"
286
334
  />
287
335
  </>
288
336
  );
@@ -306,7 +354,7 @@ export const Medium: Story = {
306
354
  parameters: {
307
355
  docs: {
308
356
  description: {
309
- story: "Title medium with Headline, subtitle and multiples texts",
357
+ story: "Title medium with Heading, subtitle and multiples texts",
310
358
  },
311
359
  },
312
360
  },
@@ -320,22 +368,34 @@ export const Small: Story = {
320
368
  <HighlightedText
321
369
  text="Sub"
322
370
  highlightText="highlight"
323
- className="text-title_medium_300"
324
- highlightTextClassName="text-title_medium_700"
371
+ variant="title_medium"
372
+ weight="400"
373
+ highlightedTextProps={{
374
+ variant: "title_medium",
375
+ weight: "700",
376
+ }}
325
377
  />
326
378
  <HighlightedText
327
379
  text="Sub"
328
380
  highlightText="highlight"
329
- className="text-title_medium_300"
330
- highlightTextClassName="text-title_medium_700"
381
+ variant="title_medium"
382
+ weight="400"
383
+ highlightedTextProps={{
384
+ variant: "title_medium",
385
+ weight: "700",
386
+ }}
331
387
  />
332
388
  <HighlightedText
333
389
  text="Curabitur blandit tempus porttitor."
334
- className="mt-400 text-body_small_500"
390
+ variant="body_small"
391
+ weight="500"
392
+ className="mt-400"
335
393
  />
336
394
  <HighlightedText
337
395
  text="Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis."
338
- className="mt-400 text-body_small_500"
396
+ variant="body_small"
397
+ weight="500"
398
+ className="mt-400"
339
399
  />
340
400
  </>
341
401
  );
@@ -359,7 +419,7 @@ export const Small: Story = {
359
419
  parameters: {
360
420
  docs: {
361
421
  description: {
362
- story: "Title small with Headline, subtitle and multiples texts",
422
+ story: "Title small with Heading, subtitle and multiples texts",
363
423
  },
364
424
  },
365
425
  },
@@ -373,22 +433,34 @@ export const XSmall: Story = {
373
433
  <HighlightedText
374
434
  text="Sub"
375
435
  highlightText="highlight"
376
- className="text-title_small_300"
377
- highlightTextClassName="text-title_small_700"
436
+ variant="title_small"
437
+ weight="400"
438
+ highlightedTextProps={{
439
+ variant: "title_small",
440
+ weight: "700",
441
+ }}
378
442
  />
379
443
  <HighlightedText
380
444
  text="Sub"
381
445
  highlightText="highlight"
382
- className="text-title_small_300"
383
- highlightTextClassName="text-title_small_700"
446
+ variant="title_small"
447
+ weight="400"
448
+ highlightedTextProps={{
449
+ variant: "title_small",
450
+ weight: "700",
451
+ }}
384
452
  />
385
453
  <HighlightedText
386
454
  text="Curabitur blandit tempus porttitor."
387
- className="mt-400 text-body_small_500"
455
+ variant="body_small"
456
+ weight="500"
457
+ className="mt-400"
388
458
  />
389
459
  <HighlightedText
390
460
  text="Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis."
391
- className="mt-400 text-body_small_500"
461
+ variant="body_small"
462
+ weight="500"
463
+ className="mt-400"
392
464
  />
393
465
  </>
394
466
  );
@@ -412,7 +484,7 @@ export const XSmall: Story = {
412
484
  parameters: {
413
485
  docs: {
414
486
  description: {
415
- story: "Title x small with Headline, subtitle and multiples texts",
487
+ story: "Title x small with Heading, subtitle and multiples texts",
416
488
  },
417
489
  },
418
490
  },
@@ -424,42 +496,46 @@ export const MarkerSizesAndVariants: Story = {
424
496
  <View className="flex flex-column gap-400 mb-700">
425
497
  <HighlightedText
426
498
  text="Small"
427
- className="text-label_small_700 text-center"
499
+ variant="label_small"
500
+ weight="700"
501
+ className="text-center"
428
502
  />
429
503
 
430
504
  <View className="flex flex-row gap-300 justify-center">
431
505
  <Title head={<Title.Marker color="blackberry" size="small" />}>
432
506
  <HighlightedText
433
507
  text="Blackberry"
434
- className="text-label_small_700"
508
+ variant="label_small"
509
+ weight="700"
435
510
  />
436
511
  </Title>
437
512
  <Title head={<Title.Marker color="chia" size="small" />}>
438
- <HighlightedText text="Chia" className="text-label_small_700" />
513
+ <HighlightedText text="Chia" variant="label_small" weight="700" />
439
514
  </Title>
440
515
  <Title head={<Title.Marker color="java" size="small" />}>
441
- <HighlightedText text="Java" className="text-label_small_700" />
516
+ <HighlightedText text="Java" variant="label_small" weight="700" />
442
517
  </Title>
443
518
  <Title head={<Title.Marker color="grape" size="small" />}>
444
- <HighlightedText text="Grape" className="text-label_small_700" />
519
+ <HighlightedText text="Grape" variant="label_small" weight="700" />
445
520
  </Title>
446
521
  </View>
447
522
 
448
523
  <View className="flex flex-row gap-300 justify-center">
449
524
  <Title head={<Title.Marker color="mango" size="small" />}>
450
- <HighlightedText text="Mango" className="text-label_small_700" />
525
+ <HighlightedText text="Mango" variant="label_small" weight="700" />
451
526
  </Title>
452
527
  <Title head={<Title.Marker color="tangerine" size="small" />}>
453
528
  <HighlightedText
454
529
  text="Tangerine"
455
- className="text-label_small_700"
530
+ variant="label_small"
531
+ weight="700"
456
532
  />
457
533
  </Title>
458
534
  <Title head={<Title.Marker color="pear" size="small" />}>
459
- <HighlightedText text="Pear" className="text-label_small_700" />
535
+ <HighlightedText text="Pear" variant="label_small" weight="700" />
460
536
  </Title>
461
537
  <Title head={<Title.Marker color="ghost" size="small" />}>
462
- <HighlightedText text="Ghost" className="text-label_small_700" />
538
+ <HighlightedText text="Ghost" variant="label_small" weight="700" />
463
539
  </Title>
464
540
  </View>
465
541
  </View>
@@ -467,42 +543,46 @@ export const MarkerSizesAndVariants: Story = {
467
543
  <View className="flex flex-column gap-400">
468
544
  <HighlightedText
469
545
  text="Medium"
470
- className="text-label_medium_700 text-center"
546
+ variant="label_medium"
547
+ weight="700"
548
+ className="text-center"
471
549
  />
472
550
 
473
551
  <View className="flex flex-row gap-300 justify-center">
474
552
  <Title head={<Title.Marker color="blackberry" />}>
475
553
  <HighlightedText
476
554
  text="Blackberry"
477
- className="text-label_medium_700"
555
+ variant="label_medium"
556
+ weight="700"
478
557
  />
479
558
  </Title>
480
559
  <Title head={<Title.Marker color="chia" />}>
481
- <HighlightedText text="Chia" className="text-label_medium_700" />
560
+ <HighlightedText text="Chia" variant="label_medium" weight="700" />
482
561
  </Title>
483
562
  <Title head={<Title.Marker color="java" />}>
484
- <HighlightedText text="Java" className="text-label_medium_700" />
563
+ <HighlightedText text="Java" variant="label_medium" weight="700" />
485
564
  </Title>
486
565
  <Title head={<Title.Marker color="grape" />}>
487
- <HighlightedText text="Grape" className="text-label_medium_700" />
566
+ <HighlightedText text="Grape" variant="label_medium" weight="700" />
488
567
  </Title>
489
568
  </View>
490
569
 
491
570
  <View className="flex flex-row gap-300 justify-center">
492
571
  <Title head={<Title.Marker color="mango" />}>
493
- <HighlightedText text="Mango" className="text-label_medium_700" />
572
+ <HighlightedText text="Mango" variant="label_medium" weight="700" />
494
573
  </Title>
495
574
  <Title head={<Title.Marker color="tangerine" />}>
496
575
  <HighlightedText
497
576
  text="Tangerine"
498
- className="text-label_medium_700"
577
+ variant="label_medium"
578
+ weight="700"
499
579
  />
500
580
  </Title>
501
581
  <Title head={<Title.Marker color="pear" />}>
502
- <HighlightedText text="Pear" className="text-label_medium_700" />
582
+ <HighlightedText text="Pear" variant="label_medium" weight="700" />
503
583
  </Title>
504
584
  <Title head={<Title.Marker color="ghost" />}>
505
- <HighlightedText text="Ghost" className="text-label_medium_700" />
585
+ <HighlightedText text="Ghost" variant="label_medium" weight="700" />
506
586
  </Title>
507
587
  </View>
508
588
  </View>
@@ -524,27 +604,37 @@ export const IconSizesAndVariants: Story = {
524
604
  <View className="flex flex-column gap-300 mb-500">
525
605
  <HighlightedText
526
606
  text="Small"
527
- className="text-label_small_700 text-center"
607
+ variant="label_small"
608
+ weight="700"
609
+ className="text-center"
528
610
  />
529
611
 
530
612
  <View className="flex flex-row gap-300">
531
613
  <Title head={<Title.Icon size="small" variants={IconVariants.ADD} />}>
532
- <HighlightedText text="add" className="text-label_small_700" />
614
+ <HighlightedText text="add" variant="label_small" weight="700" />
533
615
  </Title>
534
616
  <Title
535
617
  head={<Title.Icon size="small" variants={IconVariants.WARNING} />}
536
618
  >
537
- <HighlightedText text="warning" className="text-label_small_700" />
619
+ <HighlightedText
620
+ text="warning"
621
+ variant="label_small"
622
+ weight="700"
623
+ />
538
624
  </Title>
539
625
  <Title
540
626
  head={<Title.Icon size="small" variants={IconVariants.ERROR} />}
541
627
  >
542
- <HighlightedText text="error" className="text-label_small_700" />
628
+ <HighlightedText text="error" variant="label_small" weight="700" />
543
629
  </Title>
544
630
  <Title
545
631
  head={<Title.Icon size="small" variants={IconVariants.SUCCESS} />}
546
632
  >
547
- <HighlightedText text="success" className="text-label_small_700" />
633
+ <HighlightedText
634
+ text="success"
635
+ variant="label_small"
636
+ weight="700"
637
+ />
548
638
  </Title>
549
639
  </View>
550
640
  </View>
@@ -552,29 +642,39 @@ export const IconSizesAndVariants: Story = {
552
642
  <View className="flex flex-column gap-300 mb-500">
553
643
  <HighlightedText
554
644
  text="Medium"
555
- className="text-label_medium_700 text-center"
645
+ variant="label_medium"
646
+ weight="700"
647
+ className="text-center"
556
648
  />
557
649
 
558
650
  <View className="flex flex-row gap-300">
559
651
  <Title
560
652
  head={<Title.Icon size="medium" variants={IconVariants.ADD} />}
561
653
  >
562
- <HighlightedText text="add" className="text-label_medium_700" />
654
+ <HighlightedText text="add" variant="label_medium" weight="700" />
563
655
  </Title>
564
656
  <Title
565
657
  head={<Title.Icon size="medium" variants={IconVariants.WARNING} />}
566
658
  >
567
- <HighlightedText text="warning" className="text-label_medium_700" />
659
+ <HighlightedText
660
+ text="warning"
661
+ variant="label_medium"
662
+ weight="700"
663
+ />
568
664
  </Title>
569
665
  <Title
570
666
  head={<Title.Icon size="medium" variants={IconVariants.ERROR} />}
571
667
  >
572
- <HighlightedText text="error" className="text-label_medium_700" />
668
+ <HighlightedText text="error" variant="label_medium" weight="700" />
573
669
  </Title>
574
670
  <Title
575
671
  head={<Title.Icon size="medium" variants={IconVariants.SUCCESS} />}
576
672
  >
577
- <HighlightedText text="success" className="text-label_medium_700" />
673
+ <HighlightedText
674
+ text="success"
675
+ variant="label_medium"
676
+ weight="700"
677
+ />
578
678
  </Title>
579
679
  </View>
580
680
  </View>
@@ -582,27 +682,37 @@ export const IconSizesAndVariants: Story = {
582
682
  <View className="flex flex-column gap-300 mb-500">
583
683
  <HighlightedText
584
684
  text="Large"
585
- className="text-label_large_700 text-center"
685
+ variant="label_large"
686
+ weight="700"
687
+ className="text-center"
586
688
  />
587
689
 
588
690
  <View className="flex flex-row gap-300">
589
691
  <Title head={<Title.Icon size="large" variants={IconVariants.ADD} />}>
590
- <HighlightedText text="add" className="text-label_large_700" />
692
+ <HighlightedText text="add" variant="label_large" weight="700" />
591
693
  </Title>
592
694
  <Title
593
695
  head={<Title.Icon size="large" variants={IconVariants.WARNING} />}
594
696
  >
595
- <HighlightedText text="warning" className="text-label_large_700" />
697
+ <HighlightedText
698
+ text="warning"
699
+ variant="label_large"
700
+ weight="700"
701
+ />
596
702
  </Title>
597
703
  <Title
598
704
  head={<Title.Icon size="large" variants={IconVariants.ERROR} />}
599
705
  >
600
- <HighlightedText text="error" className="text-label_large_700" />
706
+ <HighlightedText text="error" variant="label_large" weight="700" />
601
707
  </Title>
602
708
  <Title
603
709
  head={<Title.Icon size="large" variants={IconVariants.SUCCESS} />}
604
710
  >
605
- <HighlightedText text="success" className="text-label_large_700" />
711
+ <HighlightedText
712
+ text="success"
713
+ variant="label_large"
714
+ weight="700"
715
+ />
606
716
  </Title>
607
717
  </View>
608
718
  </View>
@@ -1,4 +1,4 @@
1
- export enum VariantEnum {
1
+ export enum ToggleVariantEnum {
2
2
  GRAPE = "grape",
3
3
  JAVA = "java",
4
4
  PEAR = "pear",