@taiv/ui 1.12.0 → 1.14.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.
Files changed (264) hide show
  1. package/dist/assets/assets.d.ts +5 -0
  2. package/dist/assets/assets.d.ts.map +1 -0
  3. package/dist/assets/assets.js +18 -0
  4. package/dist/assets/icons.d.ts +12 -0
  5. package/dist/assets/icons.d.ts.map +1 -0
  6. package/dist/assets/icons.js +62 -0
  7. package/dist/assets/svgs/GoogleIcon.d.ts +5 -0
  8. package/dist/assets/svgs/GoogleIcon.d.ts.map +1 -0
  9. package/dist/assets/svgs/GoogleIcon.js +2 -0
  10. package/dist/components/Data/Cards/ChartCard/ChartCard.d.ts.map +1 -1
  11. package/dist/components/Data/Cards/ChartCard/ChartCard.js +3 -2
  12. package/dist/components/Data/Cards/PieChartCard/PieChartCard.d.ts.map +1 -1
  13. package/dist/components/Data/Cards/PieChartCard/PieChartCard.js +2 -1
  14. package/dist/components/Data/Cards/StatsCard/StatsCard.d.ts.map +1 -1
  15. package/dist/components/Data/Cards/StatsCard/StatsCard.js +2 -1
  16. package/dist/components/Data/Chart/Chart.d.ts.map +1 -1
  17. package/dist/components/Data/Chart/Chart.js +5 -4
  18. package/dist/components/Data/Chart/Chart.stories.d.ts.map +1 -1
  19. package/dist/components/Data/Chart/Chart.stories.js +6 -5
  20. package/dist/components/Data/CheckboxTable/CheckboxTable.d.ts.map +1 -1
  21. package/dist/components/Data/CheckboxTable/CheckboxTable.js +15 -14
  22. package/dist/components/Data/PieChart/PieChart.d.ts.map +1 -1
  23. package/dist/components/Data/PieChart/PieChart.js +4 -3
  24. package/dist/components/Data/PieChart/PieChart.stories.d.ts.map +1 -1
  25. package/dist/components/Data/PieChart/PieChart.stories.js +4 -3
  26. package/dist/components/Data/Progress/Progress.stories.d.ts.map +1 -1
  27. package/dist/components/Data/Progress/Progress.stories.js +7 -6
  28. package/dist/components/Data/RemovableItemList/RemovableItemList.d.ts.map +1 -1
  29. package/dist/components/Data/RemovableItemList/RemovableItemList.js +4 -3
  30. package/dist/components/Info/Badge/Badge.stories.d.ts.map +1 -1
  31. package/dist/components/Info/Badge/Badge.stories.js +5 -4
  32. package/dist/components/Info/Badge/sizes.d.ts.map +1 -1
  33. package/dist/components/Info/Badge/sizes.js +7 -6
  34. package/dist/components/Info/Badge/variants.d.ts.map +1 -1
  35. package/dist/components/Info/Badge/variants.js +3 -2
  36. package/dist/components/Info/InfoCard/InfoCard.d.ts.map +1 -1
  37. package/dist/components/Info/InfoCard/InfoCard.js +2 -1
  38. package/dist/components/Info/Modals/FormModal/FormModal.d.ts.map +1 -1
  39. package/dist/components/Info/Modals/FormModal/FormModal.js +12 -11
  40. package/dist/components/Info/Modals/FormModal/FormModal.stories.js +11 -11
  41. package/dist/components/Info/Modals/Modal/Modal.d.ts.map +1 -1
  42. package/dist/components/Info/Modals/Modal/Modal.js +7 -6
  43. package/dist/components/Info/Modals/Modal/Modal.stories.d.ts +7 -0
  44. package/dist/components/Info/Modals/Modal/Modal.stories.d.ts.map +1 -0
  45. package/dist/components/Info/Modals/Modal/Modal.stories.js +61 -0
  46. package/dist/components/Info/Modals/Modals.stories.d.ts +16 -0
  47. package/dist/components/Info/Modals/Modals.stories.d.ts.map +1 -0
  48. package/dist/components/Info/Modals/Modals.stories.js +102 -0
  49. package/dist/components/Info/Notifications/NotificationProvider/NotificationProvider.d.ts.map +1 -1
  50. package/dist/components/Info/Notifications/NotificationProvider/NotificationProvider.js +7 -6
  51. package/dist/components/Info/Notifications/Notifications.stories.d.ts +10 -0
  52. package/dist/components/Info/Notifications/Notifications.stories.d.ts.map +1 -0
  53. package/dist/components/Info/Notifications/Notifications.stories.js +107 -0
  54. package/dist/components/Info/Tooltips/FormulaTooltip/FormulaTooltip.d.ts.map +1 -1
  55. package/dist/components/Info/Tooltips/FormulaTooltip/FormulaTooltip.js +2 -1
  56. package/dist/components/Info/Tooltips/InfoTooltip/InfoTooltip.d.ts +4 -4
  57. package/dist/components/Info/Tooltips/InfoTooltip/InfoTooltip.js +4 -4
  58. package/dist/components/Info/Tooltips/Tooltip/Tooltip.d.ts.map +1 -1
  59. package/dist/components/Info/Tooltips/Tooltip/Tooltip.js +2 -1
  60. package/dist/components/Inputs/Buttons/Button/Button.js +2 -2
  61. package/dist/components/Inputs/Buttons/Button/Button.stories.d.ts +1 -0
  62. package/dist/components/Inputs/Buttons/Button/Button.stories.d.ts.map +1 -1
  63. package/dist/components/Inputs/Buttons/Button/Button.stories.js +53 -46
  64. package/dist/components/Inputs/Buttons/Button/sizes.d.ts.map +1 -1
  65. package/dist/components/Inputs/Buttons/Button/sizes.js +4 -3
  66. package/dist/components/Inputs/Buttons/IconButton/IconButton.js +2 -2
  67. package/dist/components/Inputs/Buttons/IconButton/IconButton.stories.d.ts.map +1 -1
  68. package/dist/components/Inputs/Buttons/IconButton/IconButton.stories.js +7 -6
  69. package/dist/components/Inputs/Buttons/IconButton/sizes.d.ts.map +1 -1
  70. package/dist/components/Inputs/Buttons/IconButton/sizes.js +4 -3
  71. package/dist/components/Inputs/Buttons/SSOButton/SSOButton.d.ts +35 -0
  72. package/dist/components/Inputs/Buttons/SSOButton/SSOButton.d.ts.map +1 -0
  73. package/dist/components/Inputs/Buttons/SSOButton/SSOButton.js +37 -0
  74. package/dist/components/Inputs/Buttons/SSOButton/SSOButton.stories.d.ts +14 -0
  75. package/dist/components/Inputs/Buttons/SSOButton/SSOButton.stories.d.ts.map +1 -0
  76. package/dist/components/Inputs/Buttons/SSOButton/SSOButton.stories.js +121 -0
  77. package/dist/components/Inputs/Buttons/UnstyledButton/UnstyledButton.stories.d.ts.map +1 -1
  78. package/dist/components/Inputs/Buttons/UnstyledButton/UnstyledButton.stories.js +4 -3
  79. package/dist/components/Inputs/Buttons/shared/variants.d.ts +29 -29
  80. package/dist/components/Inputs/Buttons/shared/variants.d.ts.map +1 -1
  81. package/dist/components/Inputs/Buttons/shared/variants.js +6 -5
  82. package/dist/components/Inputs/Controls/Checkbox/Checkbox.stories.js +3 -3
  83. package/dist/components/Inputs/Controls/Radio/Radio.js +1 -1
  84. package/dist/components/Inputs/Controls/Radio/Radio.stories.js +3 -3
  85. package/dist/components/Inputs/Controls/RadioList/RadioList.d.ts.map +1 -1
  86. package/dist/components/Inputs/Controls/RadioList/RadioList.js +3 -2
  87. package/dist/components/Inputs/Controls/RadioList/RadioList.stories.d.ts.map +1 -1
  88. package/dist/components/Inputs/Controls/RadioList/RadioList.stories.js +3 -2
  89. package/dist/components/Inputs/Controls/SegmentedControl/SegmentedControl.stories.d.ts.map +1 -1
  90. package/dist/components/Inputs/Controls/SegmentedControl/SegmentedControl.stories.js +6 -5
  91. package/dist/components/Inputs/Controls/Toggle/Toggle.d.ts +4 -4
  92. package/dist/components/Inputs/Controls/Toggle/Toggle.js +5 -5
  93. package/dist/components/Inputs/Controls/Toggle/Toggle.stories.js +4 -4
  94. package/dist/components/Inputs/Dates/DatePicker/DatePicker.d.ts.map +1 -1
  95. package/dist/components/Inputs/Dates/DatePicker/DatePicker.js +5 -4
  96. package/dist/components/Inputs/Dates/DatePicker/DatePicker.stories.js +4 -4
  97. package/dist/components/Inputs/Dropdowns/CascadingSelect/CascadingSelect.d.ts.map +1 -1
  98. package/dist/components/Inputs/Dropdowns/CascadingSelect/CascadingSelect.js +6 -5
  99. package/dist/components/Inputs/Dropdowns/CascadingSelect/CascadingSelect.stories.js +5 -5
  100. package/dist/components/Inputs/Dropdowns/FontSelect/FontSelect.js +3 -3
  101. package/dist/components/Inputs/Dropdowns/FontSelect/FontSelect.stories.js +5 -5
  102. package/dist/components/Inputs/Dropdowns/MultiSelect/MultiSelect.d.ts.map +1 -1
  103. package/dist/components/Inputs/Dropdowns/MultiSelect/MultiSelect.js +7 -6
  104. package/dist/components/Inputs/Dropdowns/MultiSelect/MultiSelect.stories.js +5 -5
  105. package/dist/components/Inputs/Dropdowns/Select/Select.d.ts.map +1 -1
  106. package/dist/components/Inputs/Dropdowns/Select/Select.js +6 -5
  107. package/dist/components/Inputs/Dropdowns/Select/Select.stories.js +4 -4
  108. package/dist/components/Inputs/Dropdowns/shared/sizes.js +18 -18
  109. package/dist/components/Inputs/Sliders/Slider/Slider.d.ts.map +1 -1
  110. package/dist/components/Inputs/Sliders/Slider/Slider.js +15 -14
  111. package/dist/components/Inputs/Sliders/VolumeSlider/VolumeSlider.d.ts.map +1 -1
  112. package/dist/components/Inputs/Sliders/VolumeSlider/VolumeSlider.js +5 -4
  113. package/dist/components/Inputs/Sliders/shared/sizes.d.ts +9 -9
  114. package/dist/components/Inputs/Sliders/shared/sizes.js +9 -9
  115. package/dist/components/Inputs/TextInputs/AutoComplete/AutoComplete.d.ts.map +1 -1
  116. package/dist/components/Inputs/TextInputs/AutoComplete/AutoComplete.js +5 -4
  117. package/dist/components/Inputs/TextInputs/AutoComplete/AutoComplete.stories.js +5 -5
  118. package/dist/components/Inputs/TextInputs/NumberInput/NumberInput.js +10 -10
  119. package/dist/components/Inputs/TextInputs/NumberInput/NumberInput.stories.js +5 -5
  120. package/dist/components/Inputs/TextInputs/PasswordInput/PasswordInput.js +8 -8
  121. package/dist/components/Inputs/TextInputs/PasswordInput/PasswordInput.stories.js +5 -5
  122. package/dist/components/Inputs/TextInputs/SearchBar/SearchBar.d.ts.map +1 -1
  123. package/dist/components/Inputs/TextInputs/SearchBar/SearchBar.js +4 -3
  124. package/dist/components/Inputs/TextInputs/SearchBar/SearchBar.stories.js +5 -5
  125. package/dist/components/Inputs/TextInputs/TextArea/TextArea.d.ts.map +1 -1
  126. package/dist/components/Inputs/TextInputs/TextArea/TextArea.js +6 -5
  127. package/dist/components/Inputs/TextInputs/TextArea/TextArea.stories.js +5 -5
  128. package/dist/components/Inputs/TextInputs/TextInput/TextInput.js +5 -5
  129. package/dist/components/Inputs/TextInputs/TextInput/TextInput.stories.js +5 -5
  130. package/dist/components/Inputs/TextInputs/shared/sizes.d.ts +6 -6
  131. package/dist/components/Inputs/TextInputs/shared/sizes.js +3 -3
  132. package/dist/components/Layout/AutoGrid/AutoGrid.stories.d.ts +7 -0
  133. package/dist/components/Layout/AutoGrid/AutoGrid.stories.d.ts.map +1 -0
  134. package/dist/components/Layout/AutoGrid/AutoGrid.stories.js +78 -0
  135. package/dist/components/Layout/Box/Box.d.ts +1 -3
  136. package/dist/components/Layout/Box/Box.d.ts.map +1 -1
  137. package/dist/components/Layout/Box/Box.js +2 -2
  138. package/dist/components/Layout/Box/Box.stories.d.ts +1 -2
  139. package/dist/components/Layout/Box/Box.stories.d.ts.map +1 -1
  140. package/dist/components/Layout/Box/Box.stories.js +28 -98
  141. package/dist/components/Layout/Card/Card.d.ts +1 -1
  142. package/dist/components/Layout/Card/Card.d.ts.map +1 -1
  143. package/dist/components/Layout/Card/Card.js +2 -2
  144. package/dist/components/Layout/Card/Card.stories.d.ts +10 -0
  145. package/dist/components/Layout/Card/Card.stories.d.ts.map +1 -0
  146. package/dist/components/Layout/Card/Card.stories.js +92 -0
  147. package/dist/components/Layout/Center/Center.d.ts +2 -3
  148. package/dist/components/Layout/Center/Center.d.ts.map +1 -1
  149. package/dist/components/Layout/Center/Center.js +2 -2
  150. package/dist/components/Layout/Center/Center.stories.d.ts +8 -0
  151. package/dist/components/Layout/Center/Center.stories.d.ts.map +1 -0
  152. package/dist/components/Layout/Center/Center.stories.js +70 -0
  153. package/dist/components/Layout/Divider/Divider.stories.d.ts +7 -0
  154. package/dist/components/Layout/Divider/Divider.stories.d.ts.map +1 -0
  155. package/dist/components/Layout/Divider/Divider.stories.js +67 -0
  156. package/dist/components/Layout/Frame/Frame.js +1 -1
  157. package/dist/components/Layout/Frame/Frame.stories.d.ts +8 -0
  158. package/dist/components/Layout/Frame/Frame.stories.d.ts.map +1 -0
  159. package/dist/components/Layout/Frame/Frame.stories.js +78 -0
  160. package/dist/components/Layout/Grid/Grid.stories.d.ts +8 -0
  161. package/dist/components/Layout/Grid/Grid.stories.d.ts.map +1 -0
  162. package/dist/components/Layout/Grid/Grid.stories.js +72 -0
  163. package/dist/components/Layout/Group/Group.stories.d.ts +10 -0
  164. package/dist/components/Layout/Group/Group.stories.d.ts.map +1 -0
  165. package/dist/components/Layout/Group/Group.stories.js +114 -0
  166. package/dist/components/Layout/Loader/Loader.stories.d.ts +10 -0
  167. package/dist/components/Layout/Loader/Loader.stories.d.ts.map +1 -0
  168. package/dist/components/Layout/Loader/Loader.stories.js +68 -0
  169. package/dist/components/Layout/SectionCard/SectionCard.d.ts +3 -5
  170. package/dist/components/Layout/SectionCard/SectionCard.d.ts.map +1 -1
  171. package/dist/components/Layout/SectionCard/SectionCard.js +3 -8
  172. package/dist/components/Layout/SectionCard/SectionCard.stories.d.ts +9 -0
  173. package/dist/components/Layout/SectionCard/SectionCard.stories.d.ts.map +1 -0
  174. package/dist/components/Layout/SectionCard/SectionCard.stories.js +98 -0
  175. package/dist/components/Layout/Stack/Stack.stories.d.ts +1 -2
  176. package/dist/components/Layout/Stack/Stack.stories.d.ts.map +1 -1
  177. package/dist/components/Layout/Stack/Stack.stories.js +47 -66
  178. package/dist/components/Layout/Table/Table.stories.d.ts.map +1 -1
  179. package/dist/components/Layout/Table/Table.stories.js +4 -3
  180. package/dist/components/Layout/Tabs/Tabs.d.ts +2 -4
  181. package/dist/components/Layout/Tabs/Tabs.d.ts.map +1 -1
  182. package/dist/components/Layout/Tabs/Tabs.js +7 -6
  183. package/dist/components/Layout/Tabs/Tabs.stories.d.ts +9 -0
  184. package/dist/components/Layout/Tabs/Tabs.stories.d.ts.map +1 -0
  185. package/dist/components/Layout/Tabs/Tabs.stories.js +141 -0
  186. package/dist/components/Misc/IconBadge/IconBadge.js +1 -1
  187. package/dist/components/Misc/IconBadge/IconBadge.stories.d.ts +7 -0
  188. package/dist/components/Misc/IconBadge/IconBadge.stories.d.ts.map +1 -0
  189. package/dist/components/Misc/IconBadge/IconBadge.stories.js +48 -0
  190. package/dist/components/Misc/Stepper/Step.d.ts +16 -0
  191. package/dist/components/Misc/Stepper/Step.d.ts.map +1 -0
  192. package/dist/components/Misc/Stepper/Step.js +7 -0
  193. package/dist/components/Misc/Stepper/Step.stories.d.ts +477 -0
  194. package/dist/components/Misc/Stepper/Step.stories.d.ts.map +1 -0
  195. package/dist/components/Misc/Stepper/Step.stories.js +83 -0
  196. package/dist/components/Misc/Stepper/Stepper.d.ts +10 -0
  197. package/dist/components/Misc/Stepper/Stepper.d.ts.map +1 -0
  198. package/dist/components/Misc/Stepper/Stepper.js +72 -0
  199. package/dist/components/Misc/Stepper/Stepper.stories.d.ts +13 -0
  200. package/dist/components/Misc/Stepper/Stepper.stories.d.ts.map +1 -0
  201. package/dist/components/Misc/Stepper/Stepper.stories.js +126 -0
  202. package/dist/components/Misc/Stepper/variants.d.ts +54 -0
  203. package/dist/components/Misc/Stepper/variants.d.ts.map +1 -0
  204. package/dist/components/Misc/Stepper/variants.js +48 -0
  205. package/dist/components/Typography/CollapsibleText/CollapsibleText.d.ts.map +1 -1
  206. package/dist/components/Typography/CollapsibleText/CollapsibleText.js +2 -1
  207. package/dist/components/Typography/CollapsibleText/CollapsibleText.stories.d.ts.map +1 -1
  208. package/dist/components/Typography/CollapsibleText/CollapsibleText.stories.js +4 -3
  209. package/dist/components/Typography/CollapsibleTitle/CollapsibleTitle.d.ts.map +1 -1
  210. package/dist/components/Typography/CollapsibleTitle/CollapsibleTitle.js +2 -1
  211. package/dist/components/Typography/CollapsibleTitle/CollapsibleTitle.stories.d.ts.map +1 -1
  212. package/dist/components/Typography/CollapsibleTitle/CollapsibleTitle.stories.js +4 -3
  213. package/dist/components/Typography/Formula/Formula.d.ts.map +1 -1
  214. package/dist/components/Typography/Formula/Formula.js +5 -4
  215. package/dist/components/Typography/Formula/Formula.stories.d.ts +10 -0
  216. package/dist/components/Typography/Formula/Formula.stories.d.ts.map +1 -0
  217. package/dist/components/Typography/Formula/Formula.stories.js +85 -0
  218. package/dist/components/Typography/Fraction/Fraction.d.ts.map +1 -1
  219. package/dist/components/Typography/Fraction/Fraction.js +2 -1
  220. package/dist/components/Typography/Fraction/Fraction.stories.d.ts +9 -0
  221. package/dist/components/Typography/Fraction/Fraction.stories.d.ts.map +1 -0
  222. package/dist/components/Typography/Fraction/Fraction.stories.js +87 -0
  223. package/dist/components/Typography/Text/Text.d.ts.map +1 -1
  224. package/dist/components/Typography/Text/Text.js +6 -0
  225. package/dist/components/Typography/Text/Text.stories.d.ts +10 -0
  226. package/dist/components/Typography/Text/Text.stories.d.ts.map +1 -0
  227. package/dist/components/Typography/Text/Text.stories.js +101 -0
  228. package/dist/components/Typography/Title/Title.stories.d.ts +9 -0
  229. package/dist/components/Typography/Title/Title.stories.d.ts.map +1 -0
  230. package/dist/components/Typography/Title/Title.stories.js +98 -0
  231. package/dist/components/index.d.ts +3 -0
  232. package/dist/components/index.d.ts.map +1 -1
  233. package/dist/components/index.js +3 -0
  234. package/dist/constants/breakpoints.d.ts +1 -1
  235. package/dist/constants/breakpoints.js +1 -1
  236. package/dist/constants/colors.d.ts +1 -0
  237. package/dist/constants/colors.d.ts.map +1 -1
  238. package/dist/constants/colors.js +1 -0
  239. package/dist/constants/font.js +10 -10
  240. package/dist/constants/index.d.ts +1 -0
  241. package/dist/constants/index.d.ts.map +1 -1
  242. package/dist/constants/index.js +1 -0
  243. package/dist/constants/spacing.d.ts +12 -0
  244. package/dist/constants/spacing.d.ts.map +1 -0
  245. package/dist/constants/spacing.js +11 -0
  246. package/dist/docs/AIGeneratedBanner.d.ts +2 -0
  247. package/dist/docs/AIGeneratedBanner.d.ts.map +1 -0
  248. package/dist/docs/AIGeneratedBanner.js +5 -0
  249. package/dist/docs/design/Colors.stories.d.ts +7 -0
  250. package/dist/docs/design/Colors.stories.d.ts.map +1 -0
  251. package/dist/docs/design/Colors.stories.js +29 -0
  252. package/dist/docs/design/Spacing.stories.d.ts +6 -0
  253. package/dist/docs/design/Spacing.stories.d.ts.map +1 -0
  254. package/dist/docs/design/Spacing.stories.js +24 -0
  255. package/dist/docs/hooks/Copy.stories.d.ts +6 -0
  256. package/dist/docs/hooks/Copy.stories.d.ts.map +1 -0
  257. package/dist/docs/hooks/Copy.stories.js +61 -0
  258. package/dist/hooks/useConfirmationModal.d.ts.map +1 -1
  259. package/dist/hooks/useConfirmationModal.js +10 -9
  260. package/dist/hooks/useInfoModal.d.ts.map +1 -1
  261. package/dist/hooks/useInfoModal.js +10 -9
  262. package/dist/hooks/useMediaQuery.d.ts +2 -2
  263. package/dist/hooks/useMediaQuery.js +6 -6
  264. package/package.json +43 -32
@@ -1,25 +1,25 @@
1
1
  import { inputFontSize } from '../../../../constants/font';
2
2
  export const componentSizes = {
3
3
  sm: {
4
- width: 20,
5
- trackHeight: 0.4,
6
- thumbSize: 1,
4
+ width: 200,
5
+ trackHeight: 4,
6
+ thumbSize: 10,
7
7
  labelFontSize: inputFontSize['sm'],
8
8
  valueFontSize: inputFontSize['sm'],
9
9
  iconSize: 18,
10
10
  },
11
11
  md: {
12
- width: 30,
13
- trackHeight: 0.5,
14
- thumbSize: 1.25,
12
+ width: 300,
13
+ trackHeight: 5,
14
+ thumbSize: 12.5,
15
15
  labelFontSize: inputFontSize['md'],
16
16
  valueFontSize: inputFontSize['md'],
17
17
  iconSize: 22,
18
18
  },
19
19
  lg: {
20
- width: 40,
21
- trackHeight: 0.6,
22
- thumbSize: 1.5,
20
+ width: 400,
21
+ trackHeight: 6,
22
+ thumbSize: 15,
23
23
  labelFontSize: inputFontSize['lg'],
24
24
  valueFontSize: inputFontSize['lg'],
25
25
  iconSize: 26,
@@ -1 +1 @@
1
- {"version":3,"file":"AutoComplete.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/TextInputs/AutoComplete/AutoComplete.tsx"],"names":[],"mappings":"AACA,OAAO,EAAuC,iBAAiB,IAAI,wBAAwB,EAAE,MAAM,eAAe,CAAC;AACnH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,MAAM,WAAW,iBAAkB,SAAQ,wBAAwB;IACjE,IAAI,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACpC;AAED,eAAO,MAAM,YAAY,GAAI,2DAA+F,iBAAiB,4CA4D5I,CAAC"}
1
+ {"version":3,"file":"AutoComplete.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/TextInputs/AutoComplete/AutoComplete.tsx"],"names":[],"mappings":"AACA,OAAO,EAAuC,iBAAiB,IAAI,wBAAwB,EAAE,MAAM,eAAe,CAAC;AACnH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,MAAM,WAAW,iBAAkB,SAAQ,wBAAwB;IACjE,IAAI,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACpC;AAED,eAAO,MAAM,YAAY,GAAI,2DAA+F,iBAAiB,4CA4D5I,CAAC"}
@@ -2,13 +2,14 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Autocomplete as MantineAutocomplete } from '@mantine/core';
3
3
  import { neutral, red } from '../../../../constants/colors';
4
4
  import { fontBase } from '../../../../constants/font';
5
+ import { spacing } from '../../../../constants/spacing';
5
6
  import { componentSizes } from '../../Dropdowns/shared/sizes';
6
7
  export const AutoComplete = ({ size = 'md', width, fullWidth = false, placeholder = 'Select an option', styles, ...props }) => {
7
8
  const selectedSize = componentSizes[size];
8
- const computedWidth = fullWidth ? '100%' : width || `${selectedSize.minWidth}rem`;
9
+ const computedWidth = fullWidth ? '100%' : width || `${selectedSize.minWidth}px`;
9
10
  const style = {
10
11
  input: {
11
- height: `${selectedSize.height}rem`,
12
+ height: `${selectedSize.height}px`,
12
13
  fontSize: selectedSize.fontSize,
13
14
  padding: selectedSize.inputPadding,
14
15
  ...fontBase,
@@ -25,7 +26,7 @@ export const AutoComplete = ({ size = 'md', width, fullWidth = false, placeholde
25
26
  },
26
27
  label: {
27
28
  ...fontBase,
28
- fontSize: `calc(${selectedSize.fontSize} - 0.05rem)`,
29
+ fontSize: `calc(${selectedSize.fontSize} - 0.5px)`,
29
30
  color: neutral[200],
30
31
  },
31
32
  dropdown: {
@@ -35,7 +36,7 @@ export const AutoComplete = ({ size = 'md', width, fullWidth = false, placeholde
35
36
  },
36
37
  item: {
37
38
  padding: selectedSize.dropdownPadding,
38
- marginBottom: '0.5rem',
39
+ marginBottom: spacing.xs,
39
40
  ...fontBase,
40
41
  fontSize: selectedSize.fontSize,
41
42
  color: neutral[200],
@@ -127,7 +127,7 @@ export const Default = {
127
127
  },
128
128
  };
129
129
  export const Variants = {
130
- render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(AutoComplete, { label: "Basic AutoComplete", data: basicOptions }), _jsx(AutoComplete, { label: "With Placeholder", placeholder: "Search fruits...", data: basicOptions }), _jsx(AutoComplete, { label: "With Description", description: "Select your favorite fruit", data: basicOptions })] })),
130
+ render: () => (_jsxs(Group, { gap: "20px", children: [_jsx(AutoComplete, { label: "Basic AutoComplete", data: basicOptions }), _jsx(AutoComplete, { label: "With Placeholder", placeholder: "Search fruits...", data: basicOptions }), _jsx(AutoComplete, { label: "With Description", description: "Select your favorite fruit", data: basicOptions })] })),
131
131
  parameters: {
132
132
  docs: {
133
133
  source: {
@@ -137,7 +137,7 @@ export const Variants = {
137
137
  },
138
138
  };
139
139
  export const Sizes = {
140
- render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(AutoComplete, { size: "sm", label: "Small AutoComplete", data: basicOptions }), _jsx(AutoComplete, { size: "md", label: "Medium AutoComplete (Default)", data: basicOptions }), _jsx(AutoComplete, { size: "lg", label: "Large AutoComplete", data: basicOptions })] })),
140
+ render: () => (_jsxs(Group, { gap: "20px", children: [_jsx(AutoComplete, { size: "sm", label: "Small AutoComplete", data: basicOptions }), _jsx(AutoComplete, { size: "md", label: "Medium AutoComplete (Default)", data: basicOptions }), _jsx(AutoComplete, { size: "lg", label: "Large AutoComplete", data: basicOptions })] })),
141
141
  parameters: {
142
142
  docs: {
143
143
  source: {
@@ -148,7 +148,7 @@ export const Sizes = {
148
148
  },
149
149
  };
150
150
  export const States = {
151
- render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(AutoComplete, { label: "Normal AutoComplete", data: basicOptions }), _jsx(AutoComplete, { label: "Disabled AutoComplete", data: basicOptions, disabled: true }), _jsx(AutoComplete, { label: "Required AutoComplete", data: basicOptions, required: true }), _jsx(AutoComplete, { label: "AutoComplete with Description", description: "Please select an option", data: basicOptions }), _jsx(AutoComplete, { label: "AutoComplete with Error", error: "This field is required", data: basicOptions })] })),
151
+ render: () => (_jsxs(Group, { gap: "20px", children: [_jsx(AutoComplete, { label: "Normal AutoComplete", data: basicOptions }), _jsx(AutoComplete, { label: "Disabled AutoComplete", data: basicOptions, disabled: true }), _jsx(AutoComplete, { label: "Required AutoComplete", data: basicOptions, required: true }), _jsx(AutoComplete, { label: "AutoComplete with Description", description: "Please select an option", data: basicOptions }), _jsx(AutoComplete, { label: "AutoComplete with Error", error: "This field is required", data: basicOptions })] })),
152
152
  parameters: {
153
153
  docs: {
154
154
  source: {
@@ -158,7 +158,7 @@ export const States = {
158
158
  },
159
159
  };
160
160
  export const AdditionalFunctionality = {
161
- render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(AutoComplete, { label: "Country Search", data: countryOptions, placeholder: "Search countries..." }), _jsx(AutoComplete, { label: "Custom Width AutoComplete", width: "300px", data: basicOptions }), _jsx(AutoComplete, { label: "Large Dataset", data: Array.from({ length: 50 }, (_, i) => `Option ${i + 1}`), placeholder: "Search options..." })] })),
161
+ render: () => (_jsxs(Group, { gap: "20px", children: [_jsx(AutoComplete, { label: "Country Search", data: countryOptions, placeholder: "Search countries..." }), _jsx(AutoComplete, { label: "Custom Width AutoComplete", width: "300px", data: basicOptions }), _jsx(AutoComplete, { label: "Large Dataset", data: Array.from({ length: 50 }, (_, i) => `Option ${i + 1}`), placeholder: "Search options..." })] })),
162
162
  parameters: {
163
163
  docs: {
164
164
  source: {
@@ -182,7 +182,7 @@ export const AdditionalFunctionality = {
182
182
  },
183
183
  };
184
184
  export const CustomStyling = {
185
- render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(AutoComplete, { label: "Custom Styled AutoComplete", data: basicOptions, styles: {
185
+ render: () => (_jsxs(Group, { gap: "20px", children: [_jsx(AutoComplete, { label: "Custom Styled AutoComplete", data: basicOptions, styles: {
186
186
  input: {
187
187
  borderColor: '#ff6b6b',
188
188
  '&:focus': {
@@ -5,13 +5,13 @@ import { fontBase } from '../../../../constants/font';
5
5
  import { componentSizes } from '../shared/sizes';
6
6
  const NumberInput = ({ size = 'md', width, fullWidth = false, styles, step = 1, ...props }) => {
7
7
  const selectedSize = componentSizes[size];
8
- const computedWidth = fullWidth ? '100%' : width || `${selectedSize.width}rem`;
8
+ const computedWidth = fullWidth ? '100%' : width || `${selectedSize.width}px`;
9
9
  const hasError = !!props.error;
10
10
  const style = {
11
11
  input: {
12
- height: `${selectedSize.height}rem`,
12
+ height: `${selectedSize.height}px`,
13
13
  fontSize: selectedSize.fontSize,
14
- padding: '0 1rem',
14
+ padding: '0 10px',
15
15
  ...fontBase,
16
16
  color: neutral[200],
17
17
  transition: 'all 200ms ease-in-out',
@@ -28,19 +28,19 @@ const NumberInput = ({ size = 'md', width, fullWidth = false, styles, step = 1,
28
28
  height: 'auto',
29
29
  margin: 'auto 0',
30
30
  gap: 0,
31
- width: '4.8rem',
31
+ width: '48px',
32
32
  alignItems: 'center',
33
33
  },
34
34
  control: {
35
35
  color: hasError ? red[200] : neutral[200],
36
36
  border: 'none',
37
37
  background: 'transparent',
38
- width: '2rem',
39
- height: '1.2rem',
38
+ width: '20px',
39
+ height: '12px',
40
40
  flex: '0 0 auto',
41
41
  '& svg': {
42
- width: '2rem',
43
- height: '1.2rem',
42
+ width: '20px',
43
+ height: '12px',
44
44
  },
45
45
  '&:hover': {
46
46
  cursor: 'pointer',
@@ -48,12 +48,12 @@ const NumberInput = ({ size = 'md', width, fullWidth = false, styles, step = 1,
48
48
  },
49
49
  label: {
50
50
  ...fontBase,
51
- fontSize: `calc(${selectedSize.fontSize} - 0.05rem)`,
51
+ fontSize: `calc(${selectedSize.fontSize} - 0.5px)`,
52
52
  color: neutral[200],
53
53
  },
54
54
  error: {
55
55
  ...fontBase,
56
- fontSize: `calc(${selectedSize.fontSize} - 0.05rem)`,
56
+ fontSize: `calc(${selectedSize.fontSize} - 0.5px)`,
57
57
  color: red[200],
58
58
  },
59
59
  ...styles,
@@ -151,7 +151,7 @@ export const Default = {
151
151
  },
152
152
  };
153
153
  export const Variants = {
154
- render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(NumberInput, { label: "Basic Number Input" }), _jsx(NumberInput, { label: "With Placeholder", placeholder: "Enter a value" }), _jsx(NumberInput, { label: "With Description", description: "Enter a value between 0 and 100", min: 0, max: 100 })] })),
154
+ render: () => (_jsxs(Group, { gap: "20px", children: [_jsx(NumberInput, { label: "Basic Number Input" }), _jsx(NumberInput, { label: "With Placeholder", placeholder: "Enter a value" }), _jsx(NumberInput, { label: "With Description", description: "Enter a value between 0 and 100", min: 0, max: 100 })] })),
155
155
  parameters: {
156
156
  docs: {
157
157
  source: {
@@ -161,7 +161,7 @@ export const Variants = {
161
161
  },
162
162
  };
163
163
  export const Sizes = {
164
- render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(NumberInput, { size: "sm", label: "Small Number Input", placeholder: "Small value" }), _jsx(NumberInput, { size: "md", label: "Medium Number Input (Default)", placeholder: "Medium value" }), _jsx(NumberInput, { size: "lg", label: "Large Number Input", placeholder: "Large value" })] })),
164
+ render: () => (_jsxs(Group, { gap: "20px", children: [_jsx(NumberInput, { size: "sm", label: "Small Number Input", placeholder: "Small value" }), _jsx(NumberInput, { size: "md", label: "Medium Number Input (Default)", placeholder: "Medium value" }), _jsx(NumberInput, { size: "lg", label: "Large Number Input", placeholder: "Large value" })] })),
165
165
  parameters: {
166
166
  docs: {
167
167
  source: {
@@ -172,7 +172,7 @@ export const Sizes = {
172
172
  },
173
173
  };
174
174
  export const States = {
175
- render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(NumberInput, { label: "Normal Number Input" }), _jsx(NumberInput, { label: "Disabled Number Input", disabled: true }), _jsx(NumberInput, { label: "Required Number Input", required: true }), _jsx(NumberInput, { label: "Number Input with Description", description: "Please enter a numeric value" }), _jsx(NumberInput, { label: "Number Input with Error", error: "Value is required" })] })),
175
+ render: () => (_jsxs(Group, { gap: "20px", children: [_jsx(NumberInput, { label: "Normal Number Input" }), _jsx(NumberInput, { label: "Disabled Number Input", disabled: true }), _jsx(NumberInput, { label: "Required Number Input", required: true }), _jsx(NumberInput, { label: "Number Input with Description", description: "Please enter a numeric value" }), _jsx(NumberInput, { label: "Number Input with Error", error: "Value is required" })] })),
176
176
  parameters: {
177
177
  docs: {
178
178
  source: {
@@ -182,7 +182,7 @@ export const States = {
182
182
  },
183
183
  };
184
184
  export const AdditionalFunctionality = {
185
- render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(NumberInput, { label: "Step of 1", placeholder: "Integer values", step: 1 }), _jsx(NumberInput, { label: "Step of 0.5", placeholder: "Decimal values", step: 0.5, precision: 1 }), _jsx(NumberInput, { label: "With Min/Max", placeholder: "Between 0 and 10", min: 0, max: 10, step: 1 }), _jsx(NumberInput, { label: "Custom Width", placeholder: "Custom width", width: "300rem" })] })),
185
+ render: () => (_jsxs(Group, { gap: "20px", children: [_jsx(NumberInput, { label: "Step of 1", placeholder: "Integer values", step: 1 }), _jsx(NumberInput, { label: "Step of 0.5", placeholder: "Decimal values", step: 0.5, precision: 1 }), _jsx(NumberInput, { label: "With Min/Max", placeholder: "Between 0 and 10", min: 0, max: 10, step: 1 }), _jsx(NumberInput, { label: "Custom Width", placeholder: "Custom width", width: "3000px" })] })),
186
186
  parameters: {
187
187
  docs: {
188
188
  source: {
@@ -209,7 +209,7 @@ export const AdditionalFunctionality = {
209
209
  },
210
210
  };
211
211
  export const CustomStyling = {
212
- render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(NumberInput, { label: "Custom Styled Number Input", styles: {
212
+ render: () => (_jsxs(Group, { gap: "20px", children: [_jsx(NumberInput, { label: "Custom Styled Number Input", styles: {
213
213
  input: {
214
214
  borderColor: '#ff6b6b',
215
215
  '&:focus': {
@@ -11,16 +11,16 @@ const mantineSize = {
11
11
  };
12
12
  const PasswordInput = ({ size = 'md', width, fullWidth = false, styles, placeholder = 'Enter password', ...props }) => {
13
13
  const selectedSize = componentSizes[size];
14
- const computedWidth = fullWidth ? '100%' : width || `${selectedSize.width}rem`;
14
+ const computedWidth = fullWidth ? '100%' : width || `${selectedSize.width}px`;
15
15
  const style = {
16
16
  input: {
17
17
  ...fontBase,
18
18
  color: neutral[200],
19
19
  transition: 'all 200ms ease-in-out',
20
20
  borderRadius: '8px',
21
- height: `${selectedSize.height}rem`,
21
+ height: `${selectedSize.height}px`,
22
22
  fontSize: selectedSize.fontSize,
23
- padding: '0 1rem',
23
+ padding: '0 10px',
24
24
  '&[data-invalid]': {
25
25
  borderColor: red[200],
26
26
  '&::placeholder': {
@@ -31,19 +31,19 @@ const PasswordInput = ({ size = 'md', width, fullWidth = false, styles, placehol
31
31
  label: {
32
32
  ...fontBase,
33
33
  color: neutral[200],
34
- fontSize: `calc(${selectedSize.fontSize} - 0.05rem)`,
34
+ fontSize: `calc(${selectedSize.fontSize} - 0.5px)`,
35
35
  },
36
36
  error: {
37
37
  ...fontBase,
38
- fontSize: `calc(${selectedSize.fontSize} - 0.05rem)`,
38
+ fontSize: `calc(${selectedSize.fontSize} - 0.5px)`,
39
39
  color: red[200],
40
40
  },
41
41
  innerInput: {
42
42
  ...fontBase,
43
43
  color: neutral[200],
44
- height: `${selectedSize.height}rem`,
44
+ height: `${selectedSize.height}px`,
45
45
  fontSize: selectedSize.fontSize,
46
- padding: '0 1rem',
46
+ padding: '0 10px',
47
47
  '&[data-invalid]': {
48
48
  color: neutral[200],
49
49
  '&::placeholder': {
@@ -53,7 +53,7 @@ const PasswordInput = ({ size = 'md', width, fullWidth = false, styles, placehol
53
53
  },
54
54
  visibilityToggle: {
55
55
  color: neutral[200],
56
- marginRight: '1.25rem',
56
+ marginRight: '12.5px',
57
57
  '&:hover': {
58
58
  backgroundColor: 'transparent',
59
59
  },
@@ -138,7 +138,7 @@ export const Default = {
138
138
  },
139
139
  };
140
140
  export const Variants = {
141
- render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(PasswordInput, { label: "Basic Password Input" }), _jsx(PasswordInput, { label: "With Placeholder", placeholder: "Enter your password" }), _jsx(PasswordInput, { label: "With Description", description: "Password must be at least 8 characters" })] })),
141
+ render: () => (_jsxs(Group, { gap: "20px", children: [_jsx(PasswordInput, { label: "Basic Password Input" }), _jsx(PasswordInput, { label: "With Placeholder", placeholder: "Enter your password" }), _jsx(PasswordInput, { label: "With Description", description: "Password must be at least 8 characters" })] })),
142
142
  parameters: {
143
143
  docs: {
144
144
  source: {
@@ -148,7 +148,7 @@ export const Variants = {
148
148
  },
149
149
  };
150
150
  export const Sizes = {
151
- render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(PasswordInput, { size: "sm", label: "Small Password", placeholder: "Enter password" }), _jsx(PasswordInput, { size: "md", label: "Medium Password (Default)", placeholder: "Enter password" }), _jsx(PasswordInput, { size: "lg", label: "Large Password", placeholder: "Enter password" })] })),
151
+ render: () => (_jsxs(Group, { gap: "20px", children: [_jsx(PasswordInput, { size: "sm", label: "Small Password", placeholder: "Enter password" }), _jsx(PasswordInput, { size: "md", label: "Medium Password (Default)", placeholder: "Enter password" }), _jsx(PasswordInput, { size: "lg", label: "Large Password", placeholder: "Enter password" })] })),
152
152
  parameters: {
153
153
  docs: {
154
154
  source: {
@@ -159,7 +159,7 @@ export const Sizes = {
159
159
  },
160
160
  };
161
161
  export const States = {
162
- render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(PasswordInput, { label: "Normal Password Input" }), _jsx(PasswordInput, { label: "Disabled Password Input", disabled: true }), _jsx(PasswordInput, { label: "Required Password Input", required: true }), _jsx(PasswordInput, { label: "Password Input with Description", description: "Password must be at least 8 characters" }), _jsx(PasswordInput, { label: "Password Input with Error", error: "Password is too short" })] })),
162
+ render: () => (_jsxs(Group, { gap: "20px", children: [_jsx(PasswordInput, { label: "Normal Password Input" }), _jsx(PasswordInput, { label: "Disabled Password Input", disabled: true }), _jsx(PasswordInput, { label: "Required Password Input", required: true }), _jsx(PasswordInput, { label: "Password Input with Description", description: "Password must be at least 8 characters" }), _jsx(PasswordInput, { label: "Password Input with Error", error: "Password is too short" })] })),
163
163
  parameters: {
164
164
  docs: {
165
165
  source: {
@@ -169,7 +169,7 @@ export const States = {
169
169
  },
170
170
  };
171
171
  export const AdditionalFunctionality = {
172
- render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(PasswordInput, { label: "New Password", description: "Password must be at least 8 characters", placeholder: "Create a strong password" }), _jsx(PasswordInput, { label: "Confirm Password", placeholder: "Re-enter password", error: "Passwords do not match" }), _jsx(PasswordInput, { label: "Custom Width Password", width: "300px" })] })),
172
+ render: () => (_jsxs(Group, { gap: "20px", children: [_jsx(PasswordInput, { label: "New Password", description: "Password must be at least 8 characters", placeholder: "Create a strong password" }), _jsx(PasswordInput, { label: "Confirm Password", placeholder: "Re-enter password", error: "Passwords do not match" }), _jsx(PasswordInput, { label: "Custom Width Password", width: "300px" })] })),
173
173
  parameters: {
174
174
  docs: {
175
175
  source: {
@@ -193,7 +193,7 @@ export const AdditionalFunctionality = {
193
193
  },
194
194
  };
195
195
  export const CustomStyling = {
196
- render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(PasswordInput, { label: "Custom Styled Password Input", styles: {
196
+ render: () => (_jsxs(Group, { gap: "20px", children: [_jsx(PasswordInput, { label: "Custom Styled Password Input", styles: {
197
197
  input: {
198
198
  borderColor: '#ff6b6b',
199
199
  '&:focus': {
@@ -1 +1 @@
1
- {"version":3,"file":"SearchBar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/TextInputs/SearchBar/SearchBar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAM/C,UAAU,cAAe,SAAQ,cAAc;IAC7C,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,QAAA,MAAM,SAAS,GAAI,8CAA6D,cAAc,4CAmC7F,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
1
+ {"version":3,"file":"SearchBar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/TextInputs/SearchBar/SearchBar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAO/C,UAAU,cAAe,SAAQ,cAAc;IAC7C,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,QAAA,MAAM,SAAS,GAAI,8CAA6D,cAAc,4CAmC7F,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
@@ -2,10 +2,11 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { TextInput } from '../TextInput/TextInput';
3
3
  import { neutral, red } from '../../../../constants/colors';
4
4
  import { fontBase } from '../../../../constants/font';
5
+ import { spacing } from '../../../../constants/spacing';
5
6
  import { componentSizes } from '../shared/sizes';
6
7
  const SearchBar = ({ width, fullWidth = false, size = 'md', styles, ...props }) => {
7
8
  const selectedSize = componentSizes[size || 'md'];
8
- const computedWidth = fullWidth ? '100%' : width || `${selectedSize.width}rem`;
9
+ const computedWidth = fullWidth ? '100%' : width || `${selectedSize.width}px`;
9
10
  const style = {
10
11
  input: {
11
12
  ...fontBase,
@@ -13,7 +14,7 @@ const SearchBar = ({ width, fullWidth = false, size = 'md', styles, ...props })
13
14
  color: neutral[200],
14
15
  border: `1px solid ${neutral[100]}`,
15
16
  borderRadius: '8px',
16
- height: `${selectedSize.height}rem`,
17
+ height: `${selectedSize.height}px`,
17
18
  transition: 'all 200ms ease-in-out',
18
19
  '&[data-invalid]': {
19
20
  borderColor: red[200],
@@ -25,6 +26,6 @@ const SearchBar = ({ width, fullWidth = false, size = 'md', styles, ...props })
25
26
  },
26
27
  ...styles,
27
28
  };
28
- return (_jsx(TextInput, { placeholder: "Search", width: computedWidth, styles: style, icon: _jsx("i", { className: "fas fa-search", style: { fontSize: 14, marginLeft: '0.25rem' } }), size: 'lg', fullWidth: fullWidth, ...props }));
29
+ return (_jsx(TextInput, { placeholder: "Search", width: computedWidth, styles: style, icon: _jsx("i", { className: "fas fa-search", style: { fontSize: 14, marginLeft: spacing.xxs } }), size: 'lg', fullWidth: fullWidth, ...props }));
29
30
  };
30
31
  export { SearchBar };
@@ -113,7 +113,7 @@ export const Default = {
113
113
  },
114
114
  };
115
115
  export const Variants = {
116
- render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(SearchBar, { label: "Find Users", description: "Search by name, email, or username" }), _jsx(SearchBar, { placeholder: "Search products..." }), _jsx(SearchBar, { label: "Product Search", error: "Search query is too short" })] })),
116
+ render: () => (_jsxs(Group, { gap: "20px", children: [_jsx(SearchBar, { label: "Find Users", description: "Search by name, email, or username" }), _jsx(SearchBar, { placeholder: "Search products..." }), _jsx(SearchBar, { label: "Product Search", error: "Search query is too short" })] })),
117
117
  parameters: {
118
118
  docs: {
119
119
  source: {
@@ -123,7 +123,7 @@ export const Variants = {
123
123
  },
124
124
  };
125
125
  export const Sizes = {
126
- render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(SearchBar, { size: "sm" }), _jsx(SearchBar, { size: "md" }), _jsx(SearchBar, { size: "lg" })] })),
126
+ render: () => (_jsxs(Group, { gap: "20px", children: [_jsx(SearchBar, { size: "sm" }), _jsx(SearchBar, { size: "md" }), _jsx(SearchBar, { size: "lg" })] })),
127
127
  parameters: {
128
128
  docs: {
129
129
  source: {
@@ -134,7 +134,7 @@ export const Sizes = {
134
134
  },
135
135
  };
136
136
  export const States = {
137
- render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(SearchBar, { label: "Normal Search Bar" }), _jsx(SearchBar, { label: "Disabled Search Bar", disabled: true }), _jsx(SearchBar, { label: "Required Search Bar", required: true }), _jsx(SearchBar, { label: "Search Bar with Description", description: "Enter your search terms" }), _jsx(SearchBar, { label: "Search Bar with Error", error: "Please enter a valid search term" })] })),
137
+ render: () => (_jsxs(Group, { gap: "20px", children: [_jsx(SearchBar, { label: "Normal Search Bar" }), _jsx(SearchBar, { label: "Disabled Search Bar", disabled: true }), _jsx(SearchBar, { label: "Required Search Bar", required: true }), _jsx(SearchBar, { label: "Search Bar with Description", description: "Enter your search terms" }), _jsx(SearchBar, { label: "Search Bar with Error", error: "Please enter a valid search term" })] })),
138
138
  parameters: {
139
139
  docs: {
140
140
  source: {
@@ -144,7 +144,7 @@ export const States = {
144
144
  },
145
145
  };
146
146
  export const AdditionalFunctionality = {
147
- render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(SearchBar, { width: 400, placeholder: "Search products..." }), _jsx(SearchBar, { label: "Find Users", description: "Search by name, email, or username" }), _jsx(SearchBar, { label: "Product Search", error: "Search query is too short" })] })),
147
+ render: () => (_jsxs(Group, { gap: "20px", children: [_jsx(SearchBar, { width: 400, placeholder: "Search products..." }), _jsx(SearchBar, { label: "Find Users", description: "Search by name, email, or username" }), _jsx(SearchBar, { label: "Product Search", error: "Search query is too short" })] })),
148
148
  parameters: {
149
149
  docs: {
150
150
  source: {
@@ -166,7 +166,7 @@ export const AdditionalFunctionality = {
166
166
  },
167
167
  };
168
168
  export const CustomStyling = {
169
- render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(SearchBar, { label: "Custom Styled Search Bar", styles: {
169
+ render: () => (_jsxs(Group, { gap: "20px", children: [_jsx(SearchBar, { label: "Custom Styled Search Bar", styles: {
170
170
  input: {
171
171
  borderColor: '#ff6b6b',
172
172
  '&:focus': {
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/TextInputs/TextArea/TextArea.tsx"],"names":[],"mappings":"AACA,OAAO,EAA+B,aAAa,IAAI,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACnG,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,KAAK,aAAa,GAAG,oBAAoB,GAAG;IAC1C,IAAI,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACpC,CAAC;AAEF,QAAA,MAAM,QAAQ,GAAI,8CAA6D,aAAa,4CAoC3F,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
1
+ {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/TextInputs/TextArea/TextArea.tsx"],"names":[],"mappings":"AACA,OAAO,EAA+B,aAAa,IAAI,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACnG,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,KAAK,aAAa,GAAG,oBAAoB,GAAG;IAC1C,IAAI,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACpC,CAAC;AAEF,QAAA,MAAM,QAAQ,GAAI,8CAA6D,aAAa,4CAoC3F,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -2,15 +2,16 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Textarea as MantineTextarea } from '@mantine/core';
3
3
  import { neutral, red } from '../../../../constants/colors';
4
4
  import { fontBase } from '../../../../constants/font';
5
+ import { spacing } from '../../../../constants/spacing';
5
6
  import { componentSizes } from '../shared/sizes';
6
7
  const TextArea = ({ size = 'md', width, fullWidth = false, styles, ...props }) => {
7
8
  const selectedSize = componentSizes[size];
8
- const computedWidth = fullWidth ? '100%' : width || `${selectedSize.width}rem`;
9
+ const computedWidth = fullWidth ? '100%' : width || `${selectedSize.width}px`;
9
10
  const style = {
10
11
  input: {
11
- minHeight: `${selectedSize.height}rem`,
12
+ minHeight: `${selectedSize.height}px`,
12
13
  fontSize: selectedSize.fontSize,
13
- padding: '0.75rem 1rem',
14
+ padding: `${spacing.sm} 10px`,
14
15
  ...fontBase,
15
16
  color: neutral[200],
16
17
  transition: 'all 200ms ease-in-out',
@@ -26,12 +27,12 @@ const TextArea = ({ size = 'md', width, fullWidth = false, styles, ...props }) =
26
27
  },
27
28
  label: {
28
29
  ...fontBase,
29
- fontSize: `calc(${selectedSize.fontSize} - 0.05rem)`,
30
+ fontSize: `calc(${selectedSize.fontSize} - 0.5px)`,
30
31
  color: neutral[200],
31
32
  },
32
33
  error: {
33
34
  ...fontBase,
34
- fontSize: `calc(${selectedSize.fontSize} - 0.05rem)`,
35
+ fontSize: `calc(${selectedSize.fontSize} - 0.5px)`,
35
36
  color: red[200],
36
37
  },
37
38
  ...styles,
@@ -139,7 +139,7 @@ export const Default = {
139
139
  },
140
140
  };
141
141
  export const Variants = {
142
- render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(TextArea, { label: "Basic TextArea" }), _jsx(TextArea, { label: "With Placeholder", placeholder: "Enter your text here..." }), _jsx(TextArea, { label: "With Description", description: "This is a description" })] })),
142
+ render: () => (_jsxs(Group, { gap: "20px", children: [_jsx(TextArea, { label: "Basic TextArea" }), _jsx(TextArea, { label: "With Placeholder", placeholder: "Enter your text here..." }), _jsx(TextArea, { label: "With Description", description: "This is a description" })] })),
143
143
  parameters: {
144
144
  docs: {
145
145
  source: {
@@ -149,7 +149,7 @@ export const Variants = {
149
149
  },
150
150
  };
151
151
  export const Sizes = {
152
- render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(TextArea, { size: "sm", label: "Small TextArea", placeholder: "Small textarea" }), _jsx(TextArea, { size: "md", label: "Medium TextArea (Default)", placeholder: "Medium textarea" }), _jsx(TextArea, { size: "lg", label: "Large TextArea", placeholder: "Large textarea" })] })),
152
+ render: () => (_jsxs(Group, { gap: "20px", children: [_jsx(TextArea, { size: "sm", label: "Small TextArea", placeholder: "Small textarea" }), _jsx(TextArea, { size: "md", label: "Medium TextArea (Default)", placeholder: "Medium textarea" }), _jsx(TextArea, { size: "lg", label: "Large TextArea", placeholder: "Large textarea" })] })),
153
153
  parameters: {
154
154
  docs: {
155
155
  source: {
@@ -160,7 +160,7 @@ export const Sizes = {
160
160
  },
161
161
  };
162
162
  export const States = {
163
- render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(TextArea, { label: "Normal TextArea" }), _jsx(TextArea, { label: "Disabled TextArea", disabled: true }), _jsx(TextArea, { label: "Required TextArea", required: true }), _jsx(TextArea, { label: "TextArea with Description", description: "Please provide detailed information" }), _jsx(TextArea, { label: "TextArea with Error", error: "This field is required" })] })),
163
+ render: () => (_jsxs(Group, { gap: "20px", children: [_jsx(TextArea, { label: "Normal TextArea" }), _jsx(TextArea, { label: "Disabled TextArea", disabled: true }), _jsx(TextArea, { label: "Required TextArea", required: true }), _jsx(TextArea, { label: "TextArea with Description", description: "Please provide detailed information" }), _jsx(TextArea, { label: "TextArea with Error", error: "This field is required" })] })),
164
164
  parameters: {
165
165
  docs: {
166
166
  source: {
@@ -170,7 +170,7 @@ export const States = {
170
170
  },
171
171
  };
172
172
  export const AdditionalFunctionality = {
173
- render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(TextArea, { label: "Auto-resize TextArea", autosize: true, placeholder: "This will grow as you type..." }), _jsx(TextArea, { label: "Fixed Rows", minRows: 3, maxRows: 6, placeholder: "Fixed height textarea" }), _jsx(TextArea, { label: "Custom Width TextArea", width: "400px", placeholder: "Custom width textarea" })] })),
173
+ render: () => (_jsxs(Group, { gap: "20px", children: [_jsx(TextArea, { label: "Auto-resize TextArea", autosize: true, placeholder: "This will grow as you type..." }), _jsx(TextArea, { label: "Fixed Rows", minRows: 3, maxRows: 6, placeholder: "Fixed height textarea" }), _jsx(TextArea, { label: "Custom Width TextArea", width: "400px", placeholder: "Custom width textarea" })] })),
174
174
  parameters: {
175
175
  docs: {
176
176
  source: {
@@ -195,7 +195,7 @@ export const AdditionalFunctionality = {
195
195
  },
196
196
  };
197
197
  export const CustomStyling = {
198
- render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(TextArea, { label: "Custom Styled TextArea", styles: {
198
+ render: () => (_jsxs(Group, { gap: "20px", children: [_jsx(TextArea, { label: "Custom Styled TextArea", styles: {
199
199
  input: {
200
200
  borderColor: '#ff6b6b',
201
201
  '&:focus': {
@@ -5,12 +5,12 @@ import { fontBase } from '../../../../constants/font';
5
5
  import { componentSizes } from '../shared/sizes';
6
6
  const TextInput = ({ size = 'md', width, fullWidth = false, styles, ...props }) => {
7
7
  const selectedSize = componentSizes[size];
8
- const computedWidth = fullWidth ? '100%' : width || `${selectedSize.width}rem`;
8
+ const computedWidth = fullWidth ? '100%' : width || `${selectedSize.width}px`;
9
9
  const style = {
10
10
  input: {
11
- height: `${selectedSize.height}rem`,
11
+ height: `${selectedSize.height}px`,
12
12
  fontSize: selectedSize.fontSize,
13
- padding: '0 1rem',
13
+ padding: '0 10px',
14
14
  ...fontBase,
15
15
  color: neutral[200],
16
16
  transition: 'all 200ms ease-in-out',
@@ -25,12 +25,12 @@ const TextInput = ({ size = 'md', width, fullWidth = false, styles, ...props })
25
25
  },
26
26
  label: {
27
27
  ...fontBase,
28
- fontSize: `calc(${selectedSize.fontSize} - 0.05rem)`,
28
+ fontSize: `calc(${selectedSize.fontSize} - 0.5px)`,
29
29
  color: neutral[200],
30
30
  },
31
31
  error: {
32
32
  ...fontBase,
33
- fontSize: `calc(${selectedSize.fontSize} - 0.05rem)`,
33
+ fontSize: `calc(${selectedSize.fontSize} - 0.5px)`,
34
34
  color: red[200]
35
35
  },
36
36
  ...styles,
@@ -126,7 +126,7 @@ export const Default = {
126
126
  },
127
127
  };
128
128
  export const Variants = {
129
- render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(TextInput, { label: "Basic Text Input" }), _jsx(TextInput, { label: "With Placeholder", placeholder: "Enter your text here" }), _jsx(TextInput, { label: "With Description", description: "This is a description" })] })),
129
+ render: () => (_jsxs(Group, { gap: "20px", children: [_jsx(TextInput, { label: "Basic Text Input" }), _jsx(TextInput, { label: "With Placeholder", placeholder: "Enter your text here" }), _jsx(TextInput, { label: "With Description", description: "This is a description" })] })),
130
130
  parameters: {
131
131
  docs: {
132
132
  source: {
@@ -136,7 +136,7 @@ export const Variants = {
136
136
  },
137
137
  };
138
138
  export const Sizes = {
139
- render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(TextInput, { size: "sm", label: "Small Input", placeholder: "Small text input" }), _jsx(TextInput, { size: "md", label: "Medium Input (Default)", placeholder: "Medium text input" }), _jsx(TextInput, { size: "lg", label: "Large Input", placeholder: "Large text input" })] })),
139
+ render: () => (_jsxs(Group, { gap: "20px", children: [_jsx(TextInput, { size: "sm", label: "Small Input", placeholder: "Small text input" }), _jsx(TextInput, { size: "md", label: "Medium Input (Default)", placeholder: "Medium text input" }), _jsx(TextInput, { size: "lg", label: "Large Input", placeholder: "Large text input" })] })),
140
140
  parameters: {
141
141
  docs: {
142
142
  source: {
@@ -147,7 +147,7 @@ export const Sizes = {
147
147
  },
148
148
  };
149
149
  export const States = {
150
- render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(TextInput, { label: "Normal Text Input" }), _jsx(TextInput, { label: "Disabled Text Input", disabled: true }), _jsx(TextInput, { label: "Required Text Input", required: true }), _jsx(TextInput, { label: "Text Input with Description", description: "Please enter your information" }), _jsx(TextInput, { label: "Text Input with Error", error: "This field is required" })] })),
150
+ render: () => (_jsxs(Group, { gap: "20px", children: [_jsx(TextInput, { label: "Normal Text Input" }), _jsx(TextInput, { label: "Disabled Text Input", disabled: true }), _jsx(TextInput, { label: "Required Text Input", required: true }), _jsx(TextInput, { label: "Text Input with Description", description: "Please enter your information" }), _jsx(TextInput, { label: "Text Input with Error", error: "This field is required" })] })),
151
151
  parameters: {
152
152
  docs: {
153
153
  source: {
@@ -157,7 +157,7 @@ export const States = {
157
157
  },
158
158
  };
159
159
  export const AdditionalFunctionality = {
160
- render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(TextInput, { label: "Email Address", description: "We'll never share your email", placeholder: "your@email.com", type: "email" }), _jsx(TextInput, { label: "Password", type: "password", placeholder: "Enter password", error: "Password must be at least 8 characters" }), _jsx(TextInput, { label: "Custom Width", placeholder: "Custom width input", width: "300px" })] })),
160
+ render: () => (_jsxs(Group, { gap: "20px", children: [_jsx(TextInput, { label: "Email Address", description: "We'll never share your email", placeholder: "your@email.com", type: "email" }), _jsx(TextInput, { label: "Password", type: "password", placeholder: "Enter password", error: "Password must be at least 8 characters" }), _jsx(TextInput, { label: "Custom Width", placeholder: "Custom width input", width: "300px" })] })),
161
161
  parameters: {
162
162
  docs: {
163
163
  source: {
@@ -183,7 +183,7 @@ export const AdditionalFunctionality = {
183
183
  },
184
184
  };
185
185
  export const CustomStyling = {
186
- render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(TextInput, { label: "Custom Styled Text Input", styles: {
186
+ render: () => (_jsxs(Group, { gap: "20px", children: [_jsx(TextInput, { label: "Custom Styled Text Input", styles: {
187
187
  input: {
188
188
  borderColor: '#ff6b6b',
189
189
  '&:focus': {
@@ -1,27 +1,27 @@
1
1
  export declare const componentSizes: {
2
2
  readonly sm: {
3
- readonly width: 20;
3
+ readonly width: 200;
4
4
  readonly minRows: 3;
5
5
  readonly maxRows: 6;
6
6
  readonly fontSize: string;
7
7
  readonly lineHeight: string;
8
- readonly height: 3.2;
8
+ readonly height: 32;
9
9
  };
10
10
  readonly md: {
11
- readonly width: 32.8;
11
+ readonly width: 328;
12
12
  readonly minRows: 4;
13
13
  readonly maxRows: 8;
14
14
  readonly fontSize: string;
15
15
  readonly lineHeight: string;
16
- readonly height: 4;
16
+ readonly height: 40;
17
17
  };
18
18
  readonly lg: {
19
- readonly width: 42;
19
+ readonly width: 420;
20
20
  readonly minRows: 6;
21
21
  readonly maxRows: 9;
22
22
  readonly fontSize: string;
23
23
  readonly lineHeight: string;
24
- readonly height: 4.8;
24
+ readonly height: 48;
25
25
  };
26
26
  };
27
27
  //# sourceMappingURL=sizes.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { inputFontSize } from '../../../../constants/font';
2
2
  export const componentSizes = {
3
- sm: { height: 3.2, ...inputFontSize['sm'], width: 20, minRows: 3, maxRows: 6 },
4
- md: { height: 4, ...inputFontSize['md'], width: 32.8, minRows: 4, maxRows: 8 },
5
- lg: { height: 4.8, ...inputFontSize['lg'], width: 42, minRows: 6, maxRows: 9 },
3
+ sm: { height: 32, ...inputFontSize['sm'], width: 200, minRows: 3, maxRows: 6 },
4
+ md: { height: 40, ...inputFontSize['md'], width: 328, minRows: 4, maxRows: 8 },
5
+ lg: { height: 48, ...inputFontSize['lg'], width: 420, minRows: 6, maxRows: 9 },
6
6
  };