@korsolutions/ui 0.0.87 → 0.0.88

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 (200) hide show
  1. package/dist/module/components/alert/variants/default.js +2 -1
  2. package/dist/module/components/alert/variants/default.js.map +1 -1
  3. package/dist/module/components/alert/variants/destructive.js +2 -1
  4. package/dist/module/components/alert/variants/destructive.js.map +1 -1
  5. package/dist/module/components/alert-dialog/variants/default.js +4 -1
  6. package/dist/module/components/alert-dialog/variants/default.js.map +1 -1
  7. package/dist/module/components/avatar/variants/default.js +1 -0
  8. package/dist/module/components/avatar/variants/default.js.map +1 -1
  9. package/dist/module/components/badge/variants/default.js +1 -0
  10. package/dist/module/components/badge/variants/default.js.map +1 -1
  11. package/dist/module/components/badge/variants/secondary.js +1 -0
  12. package/dist/module/components/badge/variants/secondary.js.map +1 -1
  13. package/dist/module/components/button/button.js +3 -2
  14. package/dist/module/components/button/button.js.map +1 -1
  15. package/dist/module/components/button/variants/default.js +1 -0
  16. package/dist/module/components/button/variants/default.js.map +1 -1
  17. package/dist/module/components/button/variants/ghost.js +1 -0
  18. package/dist/module/components/button/variants/ghost.js.map +1 -1
  19. package/dist/module/components/button/variants/secondary.js +1 -0
  20. package/dist/module/components/button/variants/secondary.js.map +1 -1
  21. package/dist/module/components/calendar/calendar/variants/default.js +3 -0
  22. package/dist/module/components/calendar/calendar/variants/default.js.map +1 -1
  23. package/dist/module/components/calendar/timeline/variants/default.js +1 -0
  24. package/dist/module/components/calendar/timeline/variants/default.js.map +1 -1
  25. package/dist/module/components/calendar/week-calendar/variants/default.js +3 -0
  26. package/dist/module/components/calendar/week-calendar/variants/default.js.map +1 -1
  27. package/dist/module/components/card/variants/default.js +1 -0
  28. package/dist/module/components/card/variants/default.js.map +1 -1
  29. package/dist/module/components/checkbox/variants/default.js +2 -0
  30. package/dist/module/components/checkbox/variants/default.js.map +1 -1
  31. package/dist/module/components/checkbox/variants/outlined.js +2 -0
  32. package/dist/module/components/checkbox/variants/outlined.js.map +1 -1
  33. package/dist/module/components/combobox/variants/default.js +3 -0
  34. package/dist/module/components/combobox/variants/default.js.map +1 -1
  35. package/dist/module/components/empty/variants/default.js +2 -0
  36. package/dist/module/components/empty/variants/default.js.map +1 -1
  37. package/dist/module/components/field/variants/default.js +3 -0
  38. package/dist/module/components/field/variants/default.js.map +1 -1
  39. package/dist/module/components/input/variants/default.js +1 -0
  40. package/dist/module/components/input/variants/default.js.map +1 -1
  41. package/dist/module/components/input/variants/secondary.js +1 -0
  42. package/dist/module/components/input/variants/secondary.js.map +1 -1
  43. package/dist/module/components/link/variants/default.js +1 -0
  44. package/dist/module/components/link/variants/default.js.map +1 -1
  45. package/dist/module/components/menu/variants/default.js +3 -0
  46. package/dist/module/components/menu/variants/default.js.map +1 -1
  47. package/dist/module/components/phone-input/variants/default.js +4 -0
  48. package/dist/module/components/phone-input/variants/default.js.map +1 -1
  49. package/dist/module/components/portal/portal.web.js +15 -0
  50. package/dist/module/components/portal/portal.web.js.map +1 -1
  51. package/dist/module/components/radio-group/variants/default.js +2 -0
  52. package/dist/module/components/radio-group/variants/default.js.map +1 -1
  53. package/dist/module/components/radio-group/variants/outlined.js +2 -0
  54. package/dist/module/components/radio-group/variants/outlined.js.map +1 -1
  55. package/dist/module/components/select/variants/default.js +3 -0
  56. package/dist/module/components/select/variants/default.js.map +1 -1
  57. package/dist/module/components/sidebar/variants/default.js +1 -0
  58. package/dist/module/components/sidebar/variants/default.js.map +1 -1
  59. package/dist/module/components/tabs/variants/default.js +1 -0
  60. package/dist/module/components/tabs/variants/default.js.map +1 -1
  61. package/dist/module/components/tabs/variants/line.js +1 -0
  62. package/dist/module/components/tabs/variants/line.js.map +1 -1
  63. package/dist/module/components/textarea/variants/default.js +1 -0
  64. package/dist/module/components/textarea/variants/default.js.map +1 -1
  65. package/dist/module/components/toast/variants/danger.js +2 -0
  66. package/dist/module/components/toast/variants/danger.js.map +1 -1
  67. package/dist/module/components/toast/variants/default.js +2 -0
  68. package/dist/module/components/toast/variants/default.js.map +1 -1
  69. package/dist/module/components/toast/variants/success.js +2 -0
  70. package/dist/module/components/toast/variants/success.js.map +1 -1
  71. package/dist/module/components/typography/typography.js +7 -2
  72. package/dist/module/components/typography/typography.js.map +1 -1
  73. package/dist/module/components/typography/variants/body.js +28 -0
  74. package/dist/module/components/typography/variants/body.js.map +1 -0
  75. package/dist/module/components/typography/variants/heading.js +29 -0
  76. package/dist/module/components/typography/variants/heading.js.map +1 -0
  77. package/dist/module/components/typography/variants/index.js +4 -12
  78. package/dist/module/components/typography/variants/index.js.map +1 -1
  79. package/dist/module/utils/size-scale.js +3 -1
  80. package/dist/module/utils/size-scale.js.map +1 -1
  81. package/dist/typescript/src/components/alert/variants/default.d.ts.map +1 -1
  82. package/dist/typescript/src/components/alert/variants/destructive.d.ts.map +1 -1
  83. package/dist/typescript/src/components/alert-dialog/variants/default.d.ts.map +1 -1
  84. package/dist/typescript/src/components/avatar/variants/default.d.ts.map +1 -1
  85. package/dist/typescript/src/components/badge/variants/default.d.ts.map +1 -1
  86. package/dist/typescript/src/components/badge/variants/secondary.d.ts.map +1 -1
  87. package/dist/typescript/src/components/button/button.d.ts.map +1 -1
  88. package/dist/typescript/src/components/button/types.d.ts +3 -2
  89. package/dist/typescript/src/components/button/types.d.ts.map +1 -1
  90. package/dist/typescript/src/components/button/variants/default.d.ts.map +1 -1
  91. package/dist/typescript/src/components/button/variants/ghost.d.ts.map +1 -1
  92. package/dist/typescript/src/components/button/variants/secondary.d.ts.map +1 -1
  93. package/dist/typescript/src/components/calendar/calendar/variants/default.d.ts.map +1 -1
  94. package/dist/typescript/src/components/calendar/timeline/variants/default.d.ts.map +1 -1
  95. package/dist/typescript/src/components/calendar/week-calendar/variants/default.d.ts.map +1 -1
  96. package/dist/typescript/src/components/card/variants/default.d.ts.map +1 -1
  97. package/dist/typescript/src/components/checkbox/variants/default.d.ts.map +1 -1
  98. package/dist/typescript/src/components/checkbox/variants/outlined.d.ts.map +1 -1
  99. package/dist/typescript/src/components/combobox/variants/default.d.ts.map +1 -1
  100. package/dist/typescript/src/components/empty/variants/default.d.ts.map +1 -1
  101. package/dist/typescript/src/components/field/variants/default.d.ts.map +1 -1
  102. package/dist/typescript/src/components/input/variants/default.d.ts.map +1 -1
  103. package/dist/typescript/src/components/input/variants/secondary.d.ts.map +1 -1
  104. package/dist/typescript/src/components/link/variants/default.d.ts.map +1 -1
  105. package/dist/typescript/src/components/menu/variants/default.d.ts.map +1 -1
  106. package/dist/typescript/src/components/phone-input/variants/default.d.ts.map +1 -1
  107. package/dist/typescript/src/components/portal/portal.web.d.ts.map +1 -1
  108. package/dist/typescript/src/components/radio-group/variants/default.d.ts.map +1 -1
  109. package/dist/typescript/src/components/radio-group/variants/outlined.d.ts.map +1 -1
  110. package/dist/typescript/src/components/select/variants/default.d.ts.map +1 -1
  111. package/dist/typescript/src/components/sidebar/variants/default.d.ts.map +1 -1
  112. package/dist/typescript/src/components/tabs/variants/default.d.ts.map +1 -1
  113. package/dist/typescript/src/components/tabs/variants/line.d.ts.map +1 -1
  114. package/dist/typescript/src/components/textarea/variants/default.d.ts.map +1 -1
  115. package/dist/typescript/src/components/toast/variants/danger.d.ts.map +1 -1
  116. package/dist/typescript/src/components/toast/variants/default.d.ts.map +1 -1
  117. package/dist/typescript/src/components/toast/variants/success.d.ts.map +1 -1
  118. package/dist/typescript/src/components/typography/typography.d.ts +2 -0
  119. package/dist/typescript/src/components/typography/typography.d.ts.map +1 -1
  120. package/dist/typescript/src/components/typography/variants/body.d.ts +4 -0
  121. package/dist/typescript/src/components/typography/variants/body.d.ts.map +1 -0
  122. package/dist/typescript/src/components/typography/variants/heading.d.ts +4 -0
  123. package/dist/typescript/src/components/typography/variants/heading.d.ts.map +1 -0
  124. package/dist/typescript/src/components/typography/variants/index.d.ts +4 -12
  125. package/dist/typescript/src/components/typography/variants/index.d.ts.map +1 -1
  126. package/dist/typescript/src/utils/size-scale.d.ts +3 -1
  127. package/dist/typescript/src/utils/size-scale.d.ts.map +1 -1
  128. package/package.json +4 -5
  129. package/src/components/alert/variants/default.tsx +2 -1
  130. package/src/components/alert/variants/destructive.tsx +2 -1
  131. package/src/components/alert-dialog/variants/default.tsx +4 -1
  132. package/src/components/avatar/variants/default.tsx +1 -0
  133. package/src/components/badge/variants/default.tsx +1 -0
  134. package/src/components/badge/variants/secondary.tsx +1 -0
  135. package/src/components/button/button.tsx +2 -2
  136. package/src/components/button/types.ts +3 -2
  137. package/src/components/button/variants/default.tsx +1 -0
  138. package/src/components/button/variants/ghost.tsx +1 -0
  139. package/src/components/button/variants/secondary.tsx +1 -0
  140. package/src/components/calendar/calendar/variants/default.tsx +3 -0
  141. package/src/components/calendar/timeline/variants/default.tsx +1 -0
  142. package/src/components/calendar/week-calendar/variants/default.tsx +3 -0
  143. package/src/components/card/variants/default.tsx +1 -0
  144. package/src/components/checkbox/variants/default.tsx +2 -0
  145. package/src/components/checkbox/variants/outlined.tsx +2 -0
  146. package/src/components/combobox/variants/default.tsx +3 -0
  147. package/src/components/empty/variants/default.tsx +2 -0
  148. package/src/components/field/variants/default.tsx +3 -0
  149. package/src/components/input/variants/default.tsx +1 -0
  150. package/src/components/input/variants/secondary.tsx +1 -0
  151. package/src/components/link/variants/default.tsx +1 -0
  152. package/src/components/menu/variants/default.tsx +3 -0
  153. package/src/components/phone-input/variants/default.tsx +4 -0
  154. package/src/components/portal/portal.web.tsx +15 -0
  155. package/src/components/radio-group/variants/default.tsx +2 -0
  156. package/src/components/radio-group/variants/outlined.tsx +2 -0
  157. package/src/components/select/variants/default.tsx +3 -0
  158. package/src/components/sidebar/variants/default.tsx +1 -0
  159. package/src/components/tabs/variants/default.tsx +1 -0
  160. package/src/components/tabs/variants/line.tsx +1 -0
  161. package/src/components/textarea/variants/default.tsx +1 -0
  162. package/src/components/toast/variants/danger.tsx +2 -0
  163. package/src/components/toast/variants/default.tsx +2 -0
  164. package/src/components/toast/variants/success.tsx +2 -0
  165. package/src/components/typography/typography.tsx +5 -2
  166. package/src/components/typography/variants/body.tsx +26 -0
  167. package/src/components/typography/variants/heading.tsx +27 -0
  168. package/src/components/typography/variants/index.ts +4 -12
  169. package/src/utils/size-scale.ts +6 -2
  170. package/README.md +0 -4
  171. package/dist/module/components/typography/variants/body-lg.js +0 -18
  172. package/dist/module/components/typography/variants/body-lg.js.map +0 -1
  173. package/dist/module/components/typography/variants/body-md.js +0 -18
  174. package/dist/module/components/typography/variants/body-md.js.map +0 -1
  175. package/dist/module/components/typography/variants/body-sm.js +0 -18
  176. package/dist/module/components/typography/variants/body-sm.js.map +0 -1
  177. package/dist/module/components/typography/variants/heading-lg.js +0 -19
  178. package/dist/module/components/typography/variants/heading-lg.js.map +0 -1
  179. package/dist/module/components/typography/variants/heading-md.js +0 -19
  180. package/dist/module/components/typography/variants/heading-md.js.map +0 -1
  181. package/dist/module/components/typography/variants/heading-sm.js +0 -19
  182. package/dist/module/components/typography/variants/heading-sm.js.map +0 -1
  183. package/dist/typescript/src/components/typography/variants/body-lg.d.ts +0 -3
  184. package/dist/typescript/src/components/typography/variants/body-lg.d.ts.map +0 -1
  185. package/dist/typescript/src/components/typography/variants/body-md.d.ts +0 -3
  186. package/dist/typescript/src/components/typography/variants/body-md.d.ts.map +0 -1
  187. package/dist/typescript/src/components/typography/variants/body-sm.d.ts +0 -3
  188. package/dist/typescript/src/components/typography/variants/body-sm.d.ts.map +0 -1
  189. package/dist/typescript/src/components/typography/variants/heading-lg.d.ts +0 -3
  190. package/dist/typescript/src/components/typography/variants/heading-lg.d.ts.map +0 -1
  191. package/dist/typescript/src/components/typography/variants/heading-md.d.ts +0 -3
  192. package/dist/typescript/src/components/typography/variants/heading-md.d.ts.map +0 -1
  193. package/dist/typescript/src/components/typography/variants/heading-sm.d.ts +0 -3
  194. package/dist/typescript/src/components/typography/variants/heading-sm.d.ts.map +0 -1
  195. package/src/components/typography/variants/body-lg.tsx +0 -14
  196. package/src/components/typography/variants/body-md.tsx +0 -14
  197. package/src/components/typography/variants/body-sm.tsx +0 -14
  198. package/src/components/typography/variants/heading-lg.tsx +0 -15
  199. package/src/components/typography/variants/heading-md.tsx +0 -15
  200. package/src/components/typography/variants/heading-sm.tsx +0 -15
@@ -1 +1 @@
1
- {"version":3,"names":["useTextVariantBodyLg","useTextVariantBodyMd","useTextVariantBodySm","useTextVariantHeadingLg","useTextVariantHeadingMd","useTextVariantHeadingSm","TypographyVariants"],"sourceRoot":"../../../../../src","sources":["components/typography/variants/index.ts"],"mappings":";;AAAA,SAASA,oBAAoB,QAAQ,cAAW;AAChD,SAASC,oBAAoB,QAAQ,cAAW;AAChD,SAASC,oBAAoB,QAAQ,cAAW;AAChD,SAASC,uBAAuB,QAAQ,iBAAc;AACtD,SAASC,uBAAuB,QAAQ,iBAAc;AACtD,SAASC,uBAAuB,QAAQ,iBAAc;AAEtD,OAAO,MAAMC,kBAAkB,GAAG;EAChC,CAAC,SAAS,GAAGJ,oBAAoB;EACjC,CAAC,SAAS,GAAGD,oBAAoB;EACjC,CAAC,SAAS,GAAGD,oBAAoB;EACjC,CAAC,YAAY,GAAGK,uBAAuB;EACvC,CAAC,YAAY,GAAGD,uBAAuB;EACvC,CAAC,YAAY,GAAGD;AAClB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["useTextVariantBody","useTextVariantHeading","TypographyVariants","body","heading"],"sourceRoot":"../../../../../src","sources":["components/typography/variants/index.ts"],"mappings":";;AAAA,SAASA,kBAAkB,QAAQ,WAAQ;AAC3C,SAASC,qBAAqB,QAAQ,cAAW;AAEjD,OAAO,MAAMC,kBAAkB,GAAG;EAChCC,IAAI,EAAEH,kBAAkB;EACxBI,OAAO,EAAEH;AACX,CAAC","ignoreList":[]}
@@ -29,12 +29,14 @@ const scales = {
29
29
  export function getSizeScale(size = "md", spacing, fontSize) {
30
30
  const s = scales[size] ?? scales.md;
31
31
  const scaledFontSize = fontSize * s.fontScale;
32
+ const lineHeight = Math.round(scaledFontSize * 1.25);
32
33
  return {
33
34
  paddingVertical: spacing * s.pv,
34
35
  paddingHorizontal: spacing * s.ph,
35
36
  gap: spacing * s.gap,
36
37
  fontSize: scaledFontSize,
37
- iconSize: scaledFontSize,
38
+ lineHeight,
39
+ iconSize: lineHeight,
38
40
  strokeWidth: s.sw,
39
41
  height: spacing * s.h
40
42
  };
@@ -1 +1 @@
1
- {"version":3,"names":["scales","sm","pv","ph","gap","fontScale","sw","h","md","lg","getSizeScale","size","spacing","fontSize","s","scaledFontSize","paddingVertical","paddingHorizontal","iconSize","strokeWidth","height"],"sourceRoot":"../../../src","sources":["utils/size-scale.ts"],"mappings":";;AAmBA,MAAMA,MAGL,GAAG;EACFC,EAAE,EAAE;IAAEC,EAAE,EAAE,CAAC;IAAEC,EAAE,EAAE,GAAG;IAAEC,GAAG,EAAE,IAAI;IAAEC,SAAS,EAAE,KAAK;IAAEC,EAAE,EAAE,IAAI;IAAEC,CAAC,EAAE;EAAI,CAAC;EACrEC,EAAE,EAAE;IAAEN,EAAE,EAAE,GAAG;IAAEC,EAAE,EAAE,CAAC;IAAEC,GAAG,EAAE,CAAC;IAAEC,SAAS,EAAE,CAAC;IAAEC,EAAE,EAAE,CAAC;IAAEC,CAAC,EAAE;EAAE,CAAC;EACzDE,EAAE,EAAE;IAAEP,EAAE,EAAE,CAAC;IAAEC,EAAE,EAAE,CAAC;IAAEC,GAAG,EAAE,IAAI;IAAEC,SAAS,EAAE,KAAK;IAAEC,EAAE,EAAE,IAAI;IAAEC,CAAC,EAAE;EAAI;AACpE,CAAC;AAED,OAAO,SAASG,YAAYA,CAC1BC,IAAU,GAAG,IAAI,EACjBC,OAAe,EACfC,QAAgB,EACC;EACjB,MAAMC,CAAC,GAAGd,MAAM,CAACW,IAAI,CAAC,IAAIX,MAAM,CAACQ,EAAE;EACnC,MAAMO,cAAc,GAAGF,QAAQ,GAAGC,CAAC,CAACT,SAAS;EAC7C,OAAO;IACLW,eAAe,EAAEJ,OAAO,GAAGE,CAAC,CAACZ,EAAE;IAC/Be,iBAAiB,EAAEL,OAAO,GAAGE,CAAC,CAACX,EAAE;IACjCC,GAAG,EAAEQ,OAAO,GAAGE,CAAC,CAACV,GAAG;IACpBS,QAAQ,EAAEE,cAAc;IACxBG,QAAQ,EAAEH,cAAc;IACxBI,WAAW,EAAEL,CAAC,CAACR,EAAE;IACjBc,MAAM,EAAER,OAAO,GAAGE,CAAC,CAACP;EACtB,CAAC;AACH","ignoreList":[]}
1
+ {"version":3,"names":["scales","sm","pv","ph","gap","fontScale","sw","h","md","lg","getSizeScale","size","spacing","fontSize","s","scaledFontSize","lineHeight","Math","round","paddingVertical","paddingHorizontal","iconSize","strokeWidth","height"],"sourceRoot":"../../../src","sources":["utils/size-scale.ts"],"mappings":";;AAqBA,MAAMA,MAGL,GAAG;EACFC,EAAE,EAAE;IAAEC,EAAE,EAAE,CAAC;IAAEC,EAAE,EAAE,GAAG;IAAEC,GAAG,EAAE,IAAI;IAAEC,SAAS,EAAE,KAAK;IAAEC,EAAE,EAAE,IAAI;IAAEC,CAAC,EAAE;EAAI,CAAC;EACrEC,EAAE,EAAE;IAAEN,EAAE,EAAE,GAAG;IAAEC,EAAE,EAAE,CAAC;IAAEC,GAAG,EAAE,CAAC;IAAEC,SAAS,EAAE,CAAC;IAAEC,EAAE,EAAE,CAAC;IAAEC,CAAC,EAAE;EAAE,CAAC;EACzDE,EAAE,EAAE;IAAEP,EAAE,EAAE,CAAC;IAAEC,EAAE,EAAE,CAAC;IAAEC,GAAG,EAAE,IAAI;IAAEC,SAAS,EAAE,KAAK;IAAEC,EAAE,EAAE,IAAI;IAAEC,CAAC,EAAE;EAAI;AACpE,CAAC;AAED,OAAO,SAASG,YAAYA,CAC1BC,IAAU,GAAG,IAAI,EACjBC,OAAe,EACfC,QAAgB,EACC;EACjB,MAAMC,CAAC,GAAGd,MAAM,CAACW,IAAI,CAAC,IAAIX,MAAM,CAACQ,EAAE;EACnC,MAAMO,cAAc,GAAGF,QAAQ,GAAGC,CAAC,CAACT,SAAS;EAC7C,MAAMW,UAAU,GAAGC,IAAI,CAACC,KAAK,CAACH,cAAc,GAAG,IAAI,CAAC;EACpD,OAAO;IACLI,eAAe,EAAEP,OAAO,GAAGE,CAAC,CAACZ,EAAE;IAC/BkB,iBAAiB,EAAER,OAAO,GAAGE,CAAC,CAACX,EAAE;IACjCC,GAAG,EAAEQ,OAAO,GAAGE,CAAC,CAACV,GAAG;IACpBS,QAAQ,EAAEE,cAAc;IACxBC,UAAU;IACVK,QAAQ,EAAEL,UAAU;IACpBM,WAAW,EAAER,CAAC,CAACR,EAAE;IACjBiB,MAAM,EAAEX,OAAO,GAAGE,CAAC,CAACP;EACtB,CAAC;AACH","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/alert/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAGzC,eAAO,MAAM,sBAAsB,QAAO,WAmCzC,CAAC"}
1
+ {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/alert/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAGzC,eAAO,MAAM,sBAAsB,QAAO,WAoCzC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"destructive.d.ts","sourceRoot":"","sources":["../../../../../../src/components/alert/variants/destructive.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAGzC,eAAO,MAAM,0BAA0B,QAAO,WAoC7C,CAAC"}
1
+ {"version":3,"file":"destructive.d.ts","sourceRoot":"","sources":["../../../../../../src/components/alert/variants/destructive.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAGzC,eAAO,MAAM,0BAA0B,QAAO,WAqC7C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/alert-dialog/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,eAAO,MAAM,4BAA4B,GAAI,MAAM,IAAI,KAAG,iBAwFzD,CAAC"}
1
+ {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/alert-dialog/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,eAAO,MAAM,4BAA4B,GAAI,MAAM,IAAI,KAAG,iBA2FzD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/avatar/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1C,wBAAgB,uBAAuB,IAAI,YAAY,CA0BtD"}
1
+ {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/avatar/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1C,wBAAgB,uBAAuB,IAAI,YAAY,CA2BtD"}
@@ -1 +1 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/badge/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAGzC,eAAO,MAAM,sBAAsB,QAAO,WAyBzC,CAAC"}
1
+ {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/badge/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAGzC,eAAO,MAAM,sBAAsB,QAAO,WA0BzC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"secondary.d.ts","sourceRoot":"","sources":["../../../../../../src/components/badge/variants/secondary.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAGzC,eAAO,MAAM,wBAAwB,QAAO,WAyB3C,CAAC"}
1
+ {"version":3,"file":"secondary.d.ts","sourceRoot":"","sources":["../../../../../../src/components/badge/variants/secondary.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAGzC,eAAO,MAAM,wBAAwB,QAAO,WA0B3C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../../src/components/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,SAAS,EAEd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAItB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAEnD,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC;IACnE,OAAO,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;IACtC,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AASD,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,qBAwCxC"}
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../../src/components/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,SAAS,EAEd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAItB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAGnD,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC;IACnE,OAAO,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;IACtC,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AASD,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,qBAwCxC"}
@@ -1,10 +1,11 @@
1
- import type { ActivityIndicatorProps, TextStyle, ViewStyle } from "react-native";
1
+ import type { TextStyle, ViewStyle } from "react-native";
2
2
  import type { IconProps } from "../icon";
3
+ import type { SpinnerProps } from "../spinner";
3
4
  export type ButtonState = "default" | "disabled" | "loading" | "hovered";
4
5
  export interface ButtonStyles {
5
6
  root?: Partial<Record<ButtonState, ViewStyle>>;
6
7
  text?: Partial<Record<ButtonState, TextStyle>>;
7
8
  icon?: Partial<Record<ButtonState, IconProps>>;
8
- spinner?: Partial<Record<ButtonState, ActivityIndicatorProps>>;
9
+ spinner?: Partial<Record<ButtonState, SpinnerProps>>;
9
10
  }
10
11
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/button/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACjF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;AAEzE,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC;IAC/C,IAAI,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC;IAC/C,IAAI,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,sBAAsB,CAAC,CAAC,CAAC;CAChE"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/button/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;AAEzE,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC;IAC/C,IAAI,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC;IAC/C,IAAI,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC;CACtD"}
@@ -1 +1 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/button/variants/default.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,eAAO,MAAM,uBAAuB,GAAI,MAAM,IAAI,KAAG,YAoDpD,CAAC"}
1
+ {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/button/variants/default.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,eAAO,MAAM,uBAAuB,GAAI,MAAM,IAAI,KAAG,YAqDpD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ghost.d.ts","sourceRoot":"","sources":["../../../../../../src/components/button/variants/ghost.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,eAAO,MAAM,qBAAqB,GAAI,MAAM,IAAI,KAAG,YAoElD,CAAC"}
1
+ {"version":3,"file":"ghost.d.ts","sourceRoot":"","sources":["../../../../../../src/components/button/variants/ghost.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,eAAO,MAAM,qBAAqB,GAAI,MAAM,IAAI,KAAG,YAqElD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"secondary.d.ts","sourceRoot":"","sources":["../../../../../../src/components/button/variants/secondary.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,eAAO,MAAM,yBAAyB,GAAI,MAAM,IAAI,KAAG,YAsEtD,CAAC"}
1
+ {"version":3,"file":"secondary.d.ts","sourceRoot":"","sources":["../../../../../../src/components/button/variants/secondary.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,eAAO,MAAM,yBAAyB,GAAI,MAAM,IAAI,KAAG,YAuEtD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/calendar/calendar/variants/default.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,yBAAyB,QAAO,cA0I5C,CAAC"}
1
+ {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/calendar/calendar/variants/default.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,yBAAyB,QAAO,cA6I5C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/calendar/timeline/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAK/C,eAAO,MAAM,yBAAyB,QAAO,cAoD5C,CAAC"}
1
+ {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/calendar/timeline/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAK/C,eAAO,MAAM,yBAAyB,QAAO,cAqD5C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/calendar/week-calendar/variants/default.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,eAAO,MAAM,6BAA6B,QAAO,kBAwIhD,CAAC"}
1
+ {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/calendar/week-calendar/variants/default.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,eAAO,MAAM,6BAA6B,QAAO,kBA2IhD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/card/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAGxC,wBAAgB,qBAAqB,IAAI,UAAU,CAyClD"}
1
+ {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/card/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAGxC,wBAAgB,qBAAqB,IAAI,UAAU,CA0ClD"}
@@ -1 +1 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/checkbox/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,eAAO,MAAM,yBAAyB,QAAO,cAmE5C,CAAC"}
1
+ {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/checkbox/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,eAAO,MAAM,yBAAyB,QAAO,cAqE5C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"outlined.d.ts","sourceRoot":"","sources":["../../../../../../src/components/checkbox/variants/outlined.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,eAAO,MAAM,0BAA0B,QAAO,cAkF7C,CAAC"}
1
+ {"version":3,"file":"outlined.d.ts","sourceRoot":"","sources":["../../../../../../src/components/checkbox/variants/outlined.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,eAAO,MAAM,0BAA0B,QAAO,cAoF7C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/combobox/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,IAAI,GAAG,cAAc,CAmGpE"}
1
+ {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/combobox/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,IAAI,GAAG,cAAc,CAsGpE"}
@@ -1 +1 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/empty/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAGzC,wBAAgB,sBAAsB,IAAI,WAAW,CA+BpD"}
1
+ {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/empty/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAGzC,wBAAgB,sBAAsB,IAAI,WAAW,CAiCpD"}
@@ -1 +1 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/field/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAGzC,eAAO,MAAM,sBAAsB,QAAO,WAyBzC,CAAC"}
1
+ {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/field/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAGzC,eAAO,MAAM,sBAAsB,QAAO,WA4BzC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/input/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,IAAI,GAAG,WAAW,CAwC9D"}
1
+ {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/input/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,IAAI,GAAG,WAAW,CAyC9D"}
@@ -1 +1 @@
1
- {"version":3,"file":"secondary.d.ts","sourceRoot":"","sources":["../../../../../../src/components/input/variants/secondary.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,IAAI,GAAG,WAAW,CAwChE"}
1
+ {"version":3,"file":"secondary.d.ts","sourceRoot":"","sources":["../../../../../../src/components/input/variants/secondary.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,IAAI,GAAG,WAAW,CAyChE"}
@@ -1 +1 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/link/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,wBAAgB,qBAAqB,IAAI,SAAS,CAUjD"}
1
+ {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/link/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,wBAAgB,qBAAqB,IAAI,SAAS,CAWjD"}
@@ -1 +1 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/menu/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAGxC,eAAO,MAAM,qBAAqB,QAAO,UA6FxC,CAAC"}
1
+ {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/menu/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAGxC,eAAO,MAAM,qBAAqB,QAAO,UAgGxC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/phone-input/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,IAAI,GAAG,gBAAgB,CAyHxE"}
1
+ {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/phone-input/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,IAAI,GAAG,gBAAgB,CA6HxE"}
@@ -1 +1 @@
1
- {"version":3,"file":"portal.web.d.ts","sourceRoot":"","sources":["../../../../../src/components/portal/portal.web.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAE3E,wBAAgB,UAAU,gCAEzB;AAED,wBAAgB,MAAM,CAAC,EAAE,IAAI,EAAE,QAA8B,EAAE,QAAQ,EAAE,EAAE,WAAW,+BAcrF"}
1
+ {"version":3,"file":"portal.web.d.ts","sourceRoot":"","sources":["../../../../../src/components/portal/portal.web.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAE3E,wBAAgB,UAAU,gCAEzB;AAgBD,wBAAgB,MAAM,CAAC,EAAE,IAAI,EAAE,QAA8B,EAAE,QAAQ,EAAE,EAAE,WAAW,+BAerF"}
@@ -1 +1 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/radio-group/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,eAAO,MAAM,2BAA2B,QAAO,gBA0E9C,CAAC"}
1
+ {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/radio-group/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,eAAO,MAAM,2BAA2B,QAAO,gBA4E9C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"outlined.d.ts","sourceRoot":"","sources":["../../../../../../src/components/radio-group/variants/outlined.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,eAAO,MAAM,4BAA4B,QAAO,gBAsF/C,CAAC"}
1
+ {"version":3,"file":"outlined.d.ts","sourceRoot":"","sources":["../../../../../../src/components/radio-group/variants/outlined.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,eAAO,MAAM,4BAA4B,QAAO,gBAwF/C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/select/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,IAAI,GAAG,YAAY,CAkFhE"}
1
+ {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/select/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,IAAI,GAAG,YAAY,CAqFhE"}
@@ -1 +1 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/sidebar/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,wBAAgB,wBAAwB,IAAI,aAAa,CA4FxD"}
1
+ {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/sidebar/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,wBAAgB,wBAAwB,IAAI,aAAa,CA6FxD"}
@@ -1 +1 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/tabs/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,eAAO,MAAM,qBAAqB,QAAO,UA8DxC,CAAC"}
1
+ {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/tabs/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,eAAO,MAAM,qBAAqB,QAAO,UA+DxC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"line.d.ts","sourceRoot":"","sources":["../../../../../../src/components/tabs/variants/line.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAGxC,eAAO,MAAM,kBAAkB,QAAO,UAwDrC,CAAC"}
1
+ {"version":3,"file":"line.d.ts","sourceRoot":"","sources":["../../../../../../src/components/tabs/variants/line.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAGxC,eAAO,MAAM,kBAAkB,QAAO,UAyDrC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/textarea/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,wBAAgB,yBAAyB,IAAI,cAAc,CAwC1D"}
1
+ {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/textarea/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,wBAAgB,yBAAyB,IAAI,cAAc,CAyC1D"}
@@ -1 +1 @@
1
- {"version":3,"file":"danger.d.ts","sourceRoot":"","sources":["../../../../../../src/components/toast/variants/danger.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,eAAO,MAAM,qBAAqB,QAAO,WAuCxC,CAAC"}
1
+ {"version":3,"file":"danger.d.ts","sourceRoot":"","sources":["../../../../../../src/components/toast/variants/danger.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,eAAO,MAAM,qBAAqB,QAAO,WAyCxC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/toast/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,eAAO,MAAM,sBAAsB,QAAO,WAsCzC,CAAC"}
1
+ {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/toast/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,eAAO,MAAM,sBAAsB,QAAO,WAwCzC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"success.d.ts","sourceRoot":"","sources":["../../../../../../src/components/toast/variants/success.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,eAAO,MAAM,sBAAsB,QAAO,WAuCzC,CAAC"}
1
+ {"version":3,"file":"success.d.ts","sourceRoot":"","sources":["../../../../../../src/components/toast/variants/success.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,eAAO,MAAM,sBAAsB,QAAO,WAyCzC,CAAC"}
@@ -1,8 +1,10 @@
1
1
  import React from "react";
2
2
  import { type TextProps as RnTextProps } from "react-native";
3
+ import type { Size } from "../../utils/size-scale";
3
4
  import { TypographyVariants } from "./variants";
4
5
  export interface TypographyProps extends RnTextProps {
5
6
  variant?: keyof typeof TypographyVariants;
7
+ size?: Size;
6
8
  }
7
9
  export declare function Typography(props: TypographyProps): React.JSX.Element;
8
10
  //# sourceMappingURL=typography.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/typography.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAA8B,KAAK,SAAS,IAAI,WAAW,EAAE,MAAM,cAAc,CAAC;AACzF,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,WAAW,eAAgB,SAAQ,WAAW;IAClD,OAAO,CAAC,EAAE,MAAM,OAAO,kBAAkB,CAAC;CAC3C;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,qBAMhD"}
1
+ {"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/typography.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAA8B,KAAK,SAAS,IAAI,WAAW,EAAE,MAAM,cAAc,CAAC;AACzF,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,WAAW,eAAgB,SAAQ,WAAW;IAClD,OAAO,CAAC,EAAE,MAAM,OAAO,kBAAkB,CAAC;IAC1C,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,qBAOhD"}
@@ -0,0 +1,4 @@
1
+ import { type TextStyle } from "react-native";
2
+ import type { Size } from "../../../utils/size-scale";
3
+ export declare function useTextVariantBody(size: Size): TextStyle;
4
+ //# sourceMappingURL=body.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"body.d.ts","sourceRoot":"","sources":["../../../../../../src/components/typography/variants/body.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAStD,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,CAexD"}
@@ -0,0 +1,4 @@
1
+ import { type TextStyle } from "react-native";
2
+ import type { Size } from "../../../utils/size-scale";
3
+ export declare function useTextVariantHeading(size: Size): TextStyle;
4
+ //# sourceMappingURL=heading.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"heading.d.ts","sourceRoot":"","sources":["../../../../../../src/components/typography/variants/heading.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAStD,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,CAgB3D"}
@@ -1,15 +1,7 @@
1
- import { useTextVariantBodyLg } from "./body-lg";
2
- import { useTextVariantBodyMd } from "./body-md";
3
- import { useTextVariantBodySm } from "./body-sm";
4
- import { useTextVariantHeadingLg } from "./heading-lg";
5
- import { useTextVariantHeadingMd } from "./heading-md";
6
- import { useTextVariantHeadingSm } from "./heading-sm";
1
+ import { useTextVariantBody } from "./body";
2
+ import { useTextVariantHeading } from "./heading";
7
3
  export declare const TypographyVariants: {
8
- "body-sm": typeof useTextVariantBodySm;
9
- "body-md": typeof useTextVariantBodyMd;
10
- "body-lg": typeof useTextVariantBodyLg;
11
- "heading-sm": typeof useTextVariantHeadingSm;
12
- "heading-md": typeof useTextVariantHeadingMd;
13
- "heading-lg": typeof useTextVariantHeadingLg;
4
+ body: typeof useTextVariantBody;
5
+ heading: typeof useTextVariantHeading;
14
6
  };
15
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/typography/variants/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAEvD,eAAO,MAAM,kBAAkB;;;;;;;CAO9B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/typography/variants/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAElD,eAAO,MAAM,kBAAkB;;;CAG9B,CAAC"}
@@ -8,7 +8,9 @@ interface SizeScaleValues {
8
8
  gap: number;
9
9
  /** fontSize * 0.875 | 1 | 1.125 */
10
10
  fontSize: number;
11
- /** fontSize * 0.875 | 1 | 1.125 (alias for icon sizing) */
11
+ /** fontSize * 1.25 (line height for text) */
12
+ lineHeight: number;
13
+ /** Equal to lineHeight (icons match text line height) */
12
14
  iconSize: number;
13
15
  /** 1.75 | 2 | 2.25 */
14
16
  strokeWidth: number;
@@ -1 +1 @@
1
- {"version":3,"file":"size-scale.d.ts","sourceRoot":"","sources":["../../../../src/utils/size-scale.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEtC,UAAU,eAAe;IACvB,4BAA4B;IAC5B,eAAe,EAAE,MAAM,CAAC;IACxB,4BAA4B;IAC5B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gCAAgC;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,mCAAmC;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,2DAA2D;IAC3D,QAAQ,EAAE,MAAM,CAAC;IACjB,sBAAsB;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,8BAA8B;IAC9B,MAAM,EAAE,MAAM,CAAC;CAChB;AAWD,wBAAgB,YAAY,CAC1B,IAAI,EAAE,IAAI,YAAO,EACjB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,GACf,eAAe,CAYjB"}
1
+ {"version":3,"file":"size-scale.d.ts","sourceRoot":"","sources":["../../../../src/utils/size-scale.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEtC,UAAU,eAAe;IACvB,4BAA4B;IAC5B,eAAe,EAAE,MAAM,CAAC;IACxB,4BAA4B;IAC5B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gCAAgC;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,mCAAmC;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,6CAA6C;IAC7C,UAAU,EAAE,MAAM,CAAC;IACnB,yDAAyD;IACzD,QAAQ,EAAE,MAAM,CAAC;IACjB,sBAAsB;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,8BAA8B;IAC9B,MAAM,EAAE,MAAM,CAAC;CAChB;AAWD,wBAAgB,YAAY,CAC1B,IAAI,EAAE,IAAI,YAAO,EACjB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,GACf,eAAe,CAcjB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@korsolutions/ui",
3
- "version": "0.0.87",
3
+ "version": "0.0.88",
4
4
  "bugs": {
5
5
  "url": "https://github.com/KorSoftwareSolutions/ui/issues"
6
6
  },
@@ -27,12 +27,11 @@
27
27
  },
28
28
  "devDependencies": {
29
29
  "@react-navigation/native": "^7.1.28",
30
- "@types/react": "^19.2.3",
31
- "@types/react-dom": "^19.2.3",
30
+ "@types/react": "catalog:",
31
+ "@types/react-dom": "catalog:",
32
32
  "react-native-builder-bob": "^0.40.17",
33
33
  "react-native-reanimated": "catalog:",
34
- "react-native-worklets": "catalog:",
35
- "typescript": "^5.9.3"
34
+ "react-native-worklets": "catalog:"
36
35
  },
37
36
  "peerDependencies": {
38
37
  "react": "*",
@@ -25,6 +25,7 @@ export const useAlertVariantDefault = (): AlertStyles => {
25
25
  },
26
26
  title: {
27
27
  fontSize: fontSize,
28
+ lineHeight: Math.round(fontSize * 1.25),
28
29
  fontWeight: "600",
29
30
  color: colors.foreground,
30
31
  marginBottom: 4,
@@ -32,7 +33,7 @@ export const useAlertVariantDefault = (): AlertStyles => {
32
33
  description: {
33
34
  fontSize: fontSize * 0.875,
34
35
  color: colors.mutedForeground,
35
- lineHeight: 20,
36
+ lineHeight: Math.round(fontSize * 0.875 * 1.25),
36
37
  },
37
38
  }),
38
39
  );
@@ -25,6 +25,7 @@ export const useAlertVariantDestructive = (): AlertStyles => {
25
25
  },
26
26
  title: {
27
27
  fontSize: fontSize,
28
+ lineHeight: Math.round(fontSize * 1.25),
28
29
  fontWeight: "600",
29
30
  color: colors.danger,
30
31
  marginBottom: 4,
@@ -32,7 +33,7 @@ export const useAlertVariantDestructive = (): AlertStyles => {
32
33
  description: {
33
34
  fontSize: fontSize * 0.875,
34
35
  color: colors.danger,
35
- lineHeight: 20,
36
+ lineHeight: Math.round(fontSize * 0.875 * 1.25),
36
37
  opacity: 0.9,
37
38
  },
38
39
  }),
@@ -40,6 +40,7 @@ export const useAlertDialogVariantDefault = (size: Size): AlertDialogStyles => {
40
40
  },
41
41
  title: {
42
42
  fontSize: fontSize * 1.25,
43
+ lineHeight: Math.round(fontSize * 1.25 * 1.25),
43
44
  fontWeight: "600",
44
45
  color: colors.foreground,
45
46
  fontFamily,
@@ -49,7 +50,7 @@ export const useAlertDialogVariantDefault = (size: Size): AlertDialogStyles => {
49
50
  fontSize,
50
51
  color: colors.mutedForeground,
51
52
  fontFamily,
52
- lineHeight: fontSize * 1.5,
53
+ lineHeight: Math.round(fontSize * 1.25),
53
54
  },
54
55
  footer: {
55
56
  flexDirection: "row",
@@ -70,6 +71,7 @@ export const useAlertDialogVariantDefault = (size: Size): AlertDialogStyles => {
70
71
  cancelText: {
71
72
  color: colors.foreground,
72
73
  fontSize: s.fontSize,
74
+ lineHeight: s.lineHeight,
73
75
  fontWeight: "500",
74
76
  fontFamily,
75
77
  },
@@ -84,6 +86,7 @@ export const useAlertDialogVariantDefault = (size: Size): AlertDialogStyles => {
84
86
  actionText: {
85
87
  color: colors.primaryForeground,
86
88
  fontSize: s.fontSize,
89
+ lineHeight: s.lineHeight,
87
90
  fontWeight: "500",
88
91
  fontFamily,
89
92
  },
@@ -21,6 +21,7 @@ export function useAvatarVariantDefault(): AvatarStyles {
21
21
  fallback: {
22
22
  fontFamily,
23
23
  fontSize,
24
+ lineHeight: Math.round(fontSize * 1.25),
24
25
  color: colors.foreground,
25
26
  textAlign: "center",
26
27
  verticalAlign: "middle",
@@ -17,6 +17,7 @@ export const useBadgeVariantDefault = (): BadgeStyles => {
17
17
  text: {
18
18
  color: colors.primaryForeground,
19
19
  fontSize: fontSize * 0.75,
20
+ lineHeight: Math.round(fontSize * 0.75 * 1.25),
20
21
  fontWeight: "600",
21
22
  fontFamily,
22
23
  },
@@ -17,6 +17,7 @@ export const useBadgeVariantSecondary = (): BadgeStyles => {
17
17
  text: {
18
18
  color: colors.secondaryForeground,
19
19
  fontSize: fontSize * 0.75,
20
+ lineHeight: Math.round(fontSize * 0.75 * 1.25),
20
21
  fontWeight: "600",
21
22
  fontFamily,
22
23
  },
@@ -1,6 +1,5 @@
1
1
  import React, { useState } from "react";
2
2
  import {
3
- ActivityIndicator,
4
3
  Pressable,
5
4
  type PressableProps,
6
5
  type StyleProp,
@@ -11,6 +10,7 @@ import { useOrganizedChildren } from "../../hooks/use-organized-children";
11
10
  import { useComponentConfig } from "../../themes/provider";
12
11
  import { mergeStyles } from "../../utils/calculate-styles";
13
12
  import type { Size } from "../../utils/size-scale";
13
+ import { Spinner } from "../spinner";
14
14
  import type { ButtonState } from "./types";
15
15
  import { ButtonVariants } from "./variants";
16
16
 
@@ -69,7 +69,7 @@ export function Button(props: ButtonProps) {
69
69
  style={[variantStyles.root?.default, variantStyles.root?.[state], props.style]}
70
70
  >
71
71
  {organizedChildren}
72
- {props.isLoading && <ActivityIndicator {...spinnerProps} />}
72
+ {props.isLoading && <Spinner {...spinnerProps} />}
73
73
  </Pressable>
74
74
  );
75
75
  }
@@ -1,5 +1,6 @@
1
- import type { ActivityIndicatorProps, TextStyle, ViewStyle } from "react-native";
1
+ import type { TextStyle, ViewStyle } from "react-native";
2
2
  import type { IconProps } from "../icon";
3
+ import type { SpinnerProps } from "../spinner";
3
4
 
4
5
  export type ButtonState = "default" | "disabled" | "loading" | "hovered";
5
6
 
@@ -7,5 +8,5 @@ export interface ButtonStyles {
7
8
  root?: Partial<Record<ButtonState, ViewStyle>>;
8
9
  text?: Partial<Record<ButtonState, TextStyle>>;
9
10
  icon?: Partial<Record<ButtonState, IconProps>>;
10
- spinner?: Partial<Record<ButtonState, ActivityIndicatorProps>>;
11
+ spinner?: Partial<Record<ButtonState, SpinnerProps>>;
11
12
  }
@@ -39,6 +39,7 @@ export const useButtonVariantDefault = (size: Size): ButtonStyles => {
39
39
  default: {
40
40
  color: colors.primaryForeground,
41
41
  fontSize: sizeStyles.fontSize,
42
+ lineHeight: sizeStyles.lineHeight,
42
43
  fontFamily,
43
44
  },
44
45
  },
@@ -37,6 +37,7 @@ export const useButtonVariantGhost = (size: Size): ButtonStyles => {
37
37
  default: {
38
38
  color: colors.foreground,
39
39
  fontSize: sizeStyles.fontSize,
40
+ lineHeight: sizeStyles.lineHeight,
40
41
  fontFamily,
41
42
  },
42
43
  disabled: {
@@ -39,6 +39,7 @@ export const useButtonVariantSecondary = (size: Size): ButtonStyles => {
39
39
  default: {
40
40
  color: colors.secondaryForeground,
41
41
  fontSize: sizeStyles.fontSize,
42
+ lineHeight: sizeStyles.lineHeight,
42
43
  fontFamily,
43
44
  },
44
45
  disabled: {
@@ -22,6 +22,7 @@ export const useCalendarVariantDefault = (): CalendarStyles => {
22
22
  },
23
23
  headerTitle: {
24
24
  fontSize: fontSize * 1.125,
25
+ lineHeight: Math.round(fontSize * 1.125 * 1.25),
25
26
  fontWeight: "600",
26
27
  fontFamily,
27
28
  color: colors.foreground,
@@ -72,6 +73,7 @@ export const useCalendarVariantDefault = (): CalendarStyles => {
72
73
  },
73
74
  weekLabel: {
74
75
  fontSize: fontSize * 0.875,
76
+ lineHeight: Math.round(fontSize * 0.875 * 1.25),
75
77
  fontWeight: "500",
76
78
  fontFamily,
77
79
  color: colors.mutedForeground,
@@ -113,6 +115,7 @@ export const useCalendarVariantDefault = (): CalendarStyles => {
113
115
  dayText: {
114
116
  default: {
115
117
  fontSize,
118
+ lineHeight: Math.round(fontSize * 1.25),
116
119
  fontFamily,
117
120
  color: colors.foreground,
118
121
  fontWeight: "400",
@@ -29,6 +29,7 @@ export const useTimelineVariantDefault = (): TimelineStyles => {
29
29
  },
30
30
  timeText: {
31
31
  fontSize: fontSize * 0.75,
32
+ lineHeight: Math.round(fontSize * 0.75 * 1.25),
32
33
  fontWeight: "500",
33
34
  fontFamily,
34
35
  color: colors.mutedForeground,
@@ -21,6 +21,7 @@ export const useWeekCalendarVariantDefault = (): WeekCalendarStyles => {
21
21
  },
22
22
  headerTitle: {
23
23
  fontSize: fontSize * 1.125,
24
+ lineHeight: Math.round(fontSize * 1.125 * 1.25),
24
25
  fontWeight: "600",
25
26
  fontFamily,
26
27
  color: colors.foreground,
@@ -71,6 +72,7 @@ export const useWeekCalendarVariantDefault = (): WeekCalendarStyles => {
71
72
  },
72
73
  weekLabel: {
73
74
  fontSize: fontSize * 0.875,
75
+ lineHeight: Math.round(fontSize * 0.875 * 1.25),
74
76
  fontWeight: "500",
75
77
  fontFamily,
76
78
  color: colors.mutedForeground,
@@ -111,6 +113,7 @@ export const useWeekCalendarVariantDefault = (): WeekCalendarStyles => {
111
113
  dayText: {
112
114
  default: {
113
115
  fontSize,
116
+ lineHeight: Math.round(fontSize * 1.25),
114
117
  fontFamily,
115
118
  color: colors.foreground,
116
119
  fontWeight: "400",
@@ -22,6 +22,7 @@ export function useCardVariantDefault(): CardStyles {
22
22
  default: {
23
23
  fontFamily,
24
24
  fontSize: fontSize * 1.25,
25
+ lineHeight: Math.round(fontSize * 1.25 * 1.25),
25
26
  fontWeight: "600",
26
27
  color: colors.foreground,
27
28
  },