@seeqdev/qomponents 0.0.163 → 0.0.164

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 (374) hide show
  1. package/dist/index.esm.js +3 -2
  2. package/dist/index.esm.js.map +1 -1
  3. package/dist/index.js +3 -2
  4. package/dist/index.js.map +1 -1
  5. package/dist/src/Icon/Icon.types.d.ts +8 -4
  6. package/dist/styles.css +13 -6
  7. package/package.json +1 -1
  8. package/dist/Accordion/Accordion.d.ts +0 -4
  9. package/dist/Accordion/Accordion.js +0 -7
  10. package/dist/Accordion/Accordion.js.map +0 -1
  11. package/dist/Accordion/Accordion.stories.d.ts +0 -5
  12. package/dist/Accordion/Accordion.stories.js +0 -75
  13. package/dist/Accordion/Accordion.stories.js.map +0 -1
  14. package/dist/Accordion/Accordion.test.d.ts +0 -1
  15. package/dist/Accordion/Accordion.test.js +0 -55
  16. package/dist/Accordion/Accordion.test.js.map +0 -1
  17. package/dist/Accordion/Accordion.types.d.ts +0 -86
  18. package/dist/Accordion/Accordion.types.js +0 -2
  19. package/dist/Accordion/Accordion.types.js.map +0 -1
  20. package/dist/Accordion/index.d.ts +0 -1
  21. package/dist/Accordion/index.js +0 -2
  22. package/dist/Accordion/index.js.map +0 -1
  23. package/dist/Alert/Alert.d.ts +0 -7
  24. package/dist/Alert/Alert.js +0 -32
  25. package/dist/Alert/Alert.js.map +0 -1
  26. package/dist/Alert/Alert.stories.d.ts +0 -5
  27. package/dist/Alert/Alert.stories.js +0 -57
  28. package/dist/Alert/Alert.stories.js.map +0 -1
  29. package/dist/Alert/Alert.test.d.ts +0 -1
  30. package/dist/Alert/Alert.test.js +0 -50
  31. package/dist/Alert/Alert.test.js.map +0 -1
  32. package/dist/Alert/Alert.types.d.ts +0 -63
  33. package/dist/Alert/Alert.types.js +0 -2
  34. package/dist/Alert/Alert.types.js.map +0 -1
  35. package/dist/Alert/index.d.ts +0 -1
  36. package/dist/Alert/index.js +0 -2
  37. package/dist/Alert/index.js.map +0 -1
  38. package/dist/Button/Button.d.ts +0 -10
  39. package/dist/Button/Button.js +0 -89
  40. package/dist/Button/Button.js.map +0 -1
  41. package/dist/Button/Button.stories.d.ts +0 -8
  42. package/dist/Button/Button.stories.js +0 -25
  43. package/dist/Button/Button.stories.js.map +0 -1
  44. package/dist/Button/Button.test.d.ts +0 -1
  45. package/dist/Button/Button.test.js +0 -47
  46. package/dist/Button/Button.test.js.map +0 -1
  47. package/dist/Button/Button.types.d.ts +0 -148
  48. package/dist/Button/Button.types.js +0 -5
  49. package/dist/Button/Button.types.js.map +0 -1
  50. package/dist/Button/index.d.ts +0 -1
  51. package/dist/Button/index.js +0 -2
  52. package/dist/Button/index.js.map +0 -1
  53. package/dist/ButtonGroup/ButtonGroup.d.ts +0 -7
  54. package/dist/ButtonGroup/ButtonGroup.js +0 -35
  55. package/dist/ButtonGroup/ButtonGroup.js.map +0 -1
  56. package/dist/ButtonGroup/ButtonGroup.stories.d.ts +0 -5
  57. package/dist/ButtonGroup/ButtonGroup.stories.js +0 -317
  58. package/dist/ButtonGroup/ButtonGroup.stories.js.map +0 -1
  59. package/dist/ButtonGroup/ButtonGroup.test.d.ts +0 -1
  60. package/dist/ButtonGroup/ButtonGroup.test.js +0 -66
  61. package/dist/ButtonGroup/ButtonGroup.test.js.map +0 -1
  62. package/dist/ButtonGroup/ButtonGroup.types.d.ts +0 -81
  63. package/dist/ButtonGroup/ButtonGroup.types.js +0 -2
  64. package/dist/ButtonGroup/ButtonGroup.types.js.map +0 -1
  65. package/dist/ButtonGroup/index.d.ts +0 -1
  66. package/dist/ButtonGroup/index.js +0 -2
  67. package/dist/ButtonGroup/index.js.map +0 -1
  68. package/dist/ButtonWithDropdown/ButtonWithDropdown.d.ts +0 -4
  69. package/dist/ButtonWithDropdown/ButtonWithDropdown.js +0 -36
  70. package/dist/ButtonWithDropdown/ButtonWithDropdown.js.map +0 -1
  71. package/dist/ButtonWithDropdown/ButtonWithDropdown.stories.d.ts +0 -5
  72. package/dist/ButtonWithDropdown/ButtonWithDropdown.stories.js +0 -104
  73. package/dist/ButtonWithDropdown/ButtonWithDropdown.stories.js.map +0 -1
  74. package/dist/ButtonWithDropdown/ButtonWithDropdown.test.d.ts +0 -1
  75. package/dist/ButtonWithDropdown/ButtonWithDropdown.test.js +0 -93
  76. package/dist/ButtonWithDropdown/ButtonWithDropdown.test.js.map +0 -1
  77. package/dist/ButtonWithDropdown/ButtonWithDropdown.types.d.ts +0 -233
  78. package/dist/ButtonWithDropdown/ButtonWithDropdown.types.js +0 -2
  79. package/dist/ButtonWithDropdown/ButtonWithDropdown.types.js.map +0 -1
  80. package/dist/ButtonWithDropdown/index.d.ts +0 -1
  81. package/dist/ButtonWithDropdown/index.js +0 -2
  82. package/dist/ButtonWithDropdown/index.js.map +0 -1
  83. package/dist/ButtonWithPopover/ButtonWithPopover.d.ts +0 -4
  84. package/dist/ButtonWithPopover/ButtonWithPopover.js +0 -55
  85. package/dist/ButtonWithPopover/ButtonWithPopover.js.map +0 -1
  86. package/dist/ButtonWithPopover/ButtonWithPopover.stories.d.ts +0 -5
  87. package/dist/ButtonWithPopover/ButtonWithPopover.stories.js +0 -25
  88. package/dist/ButtonWithPopover/ButtonWithPopover.stories.js.map +0 -1
  89. package/dist/ButtonWithPopover/ButtonWithPopover.test.d.ts +0 -1
  90. package/dist/ButtonWithPopover/ButtonWithPopover.test.js +0 -81
  91. package/dist/ButtonWithPopover/ButtonWithPopover.test.js.map +0 -1
  92. package/dist/ButtonWithPopover/ButtonWithPopover.types.d.ts +0 -134
  93. package/dist/ButtonWithPopover/ButtonWithPopover.types.js +0 -2
  94. package/dist/ButtonWithPopover/ButtonWithPopover.types.js.map +0 -1
  95. package/dist/ButtonWithPopover/index.d.ts +0 -1
  96. package/dist/ButtonWithPopover/index.js +0 -2
  97. package/dist/ButtonWithPopover/index.js.map +0 -1
  98. package/dist/Carousel/Carousel.d.ts +0 -9
  99. package/dist/Carousel/Carousel.js +0 -75
  100. package/dist/Carousel/Carousel.js.map +0 -1
  101. package/dist/Carousel/Carousel.stories.d.ts +0 -5
  102. package/dist/Carousel/Carousel.stories.js +0 -63
  103. package/dist/Carousel/Carousel.stories.js.map +0 -1
  104. package/dist/Carousel/Carousel.test.d.ts +0 -1
  105. package/dist/Carousel/Carousel.test.js +0 -48
  106. package/dist/Carousel/Carousel.test.js.map +0 -1
  107. package/dist/Carousel/Carousel.types.d.ts +0 -86
  108. package/dist/Carousel/Carousel.types.js +0 -2
  109. package/dist/Carousel/Carousel.types.js.map +0 -1
  110. package/dist/Carousel/index.d.ts +0 -1
  111. package/dist/Carousel/index.js +0 -2
  112. package/dist/Carousel/index.js.map +0 -1
  113. package/dist/Checkbox/Checkbox.d.ts +0 -7
  114. package/dist/Checkbox/Checkbox.js +0 -25
  115. package/dist/Checkbox/Checkbox.js.map +0 -1
  116. package/dist/Checkbox/Checkbox.stories.d.ts +0 -5
  117. package/dist/Checkbox/Checkbox.stories.js +0 -12
  118. package/dist/Checkbox/Checkbox.stories.js.map +0 -1
  119. package/dist/Checkbox/Checkbox.test.d.ts +0 -1
  120. package/dist/Checkbox/Checkbox.test.js +0 -94
  121. package/dist/Checkbox/Checkbox.test.js.map +0 -1
  122. package/dist/Checkbox/Checkbox.types.d.ts +0 -92
  123. package/dist/Checkbox/Checkbox.types.js +0 -2
  124. package/dist/Checkbox/Checkbox.types.js.map +0 -1
  125. package/dist/Checkbox/index.d.ts +0 -1
  126. package/dist/Checkbox/index.js +0 -2
  127. package/dist/Checkbox/index.js.map +0 -1
  128. package/dist/Collapse/Collapse.d.ts +0 -4
  129. package/dist/Collapse/Collapse.js +0 -17
  130. package/dist/Collapse/Collapse.js.map +0 -1
  131. package/dist/Collapse/Collapse.stories.d.ts +0 -5
  132. package/dist/Collapse/Collapse.stories.js +0 -15
  133. package/dist/Collapse/Collapse.stories.js.map +0 -1
  134. package/dist/Collapse/Collapse.test.d.ts +0 -1
  135. package/dist/Collapse/Collapse.test.js +0 -17
  136. package/dist/Collapse/Collapse.test.js.map +0 -1
  137. package/dist/Collapse/Collapse.types.d.ts +0 -19
  138. package/dist/Collapse/Collapse.types.js +0 -2
  139. package/dist/Collapse/Collapse.types.js.map +0 -1
  140. package/dist/Collapse/index.d.ts +0 -1
  141. package/dist/Collapse/index.js +0 -2
  142. package/dist/Collapse/index.js.map +0 -1
  143. package/dist/Icon/Icon.d.ts +0 -10
  144. package/dist/Icon/Icon.js +0 -55
  145. package/dist/Icon/Icon.js.map +0 -1
  146. package/dist/Icon/Icon.stories.d.ts +0 -5
  147. package/dist/Icon/Icon.stories.js +0 -15
  148. package/dist/Icon/Icon.stories.js.map +0 -1
  149. package/dist/Icon/Icon.test.d.ts +0 -1
  150. package/dist/Icon/Icon.test.js +0 -55
  151. package/dist/Icon/Icon.test.js.map +0 -1
  152. package/dist/Icon/Icon.types.d.ts +0 -87
  153. package/dist/Icon/Icon.types.js +0 -16
  154. package/dist/Icon/Icon.types.js.map +0 -1
  155. package/dist/Icon/index.d.ts +0 -1
  156. package/dist/Icon/index.js +0 -2
  157. package/dist/Icon/index.js.map +0 -1
  158. package/dist/InputGroup/InputGroup.d.ts +0 -7
  159. package/dist/InputGroup/InputGroup.js +0 -34
  160. package/dist/InputGroup/InputGroup.js.map +0 -1
  161. package/dist/InputGroup/InputGroup.stories.d.ts +0 -5
  162. package/dist/InputGroup/InputGroup.stories.js +0 -129
  163. package/dist/InputGroup/InputGroup.stories.js.map +0 -1
  164. package/dist/InputGroup/InputGroup.test.d.ts +0 -1
  165. package/dist/InputGroup/InputGroup.test.js +0 -42
  166. package/dist/InputGroup/InputGroup.test.js.map +0 -1
  167. package/dist/InputGroup/InputGroup.types.d.ts +0 -62
  168. package/dist/InputGroup/InputGroup.types.js +0 -2
  169. package/dist/InputGroup/InputGroup.types.js.map +0 -1
  170. package/dist/InputGroup/index.d.ts +0 -2
  171. package/dist/InputGroup/index.js +0 -2
  172. package/dist/InputGroup/index.js.map +0 -1
  173. package/dist/Modal/Modal.d.ts +0 -5
  174. package/dist/Modal/Modal.js +0 -76
  175. package/dist/Modal/Modal.js.map +0 -1
  176. package/dist/Modal/Modal.stories.d.ts +0 -10
  177. package/dist/Modal/Modal.stories.js +0 -44
  178. package/dist/Modal/Modal.stories.js.map +0 -1
  179. package/dist/Modal/Modal.test.d.ts +0 -1
  180. package/dist/Modal/Modal.test.js +0 -108
  181. package/dist/Modal/Modal.test.js.map +0 -1
  182. package/dist/Modal/Modal.types.d.ts +0 -244
  183. package/dist/Modal/Modal.types.js +0 -2
  184. package/dist/Modal/Modal.types.js.map +0 -1
  185. package/dist/Modal/index.d.ts +0 -1
  186. package/dist/Modal/index.js +0 -2
  187. package/dist/Modal/index.js.map +0 -1
  188. package/dist/ProgressBar/ProgressBar.d.ts +0 -4
  189. package/dist/ProgressBar/ProgressBar.js +0 -72
  190. package/dist/ProgressBar/ProgressBar.js.map +0 -1
  191. package/dist/ProgressBar/ProgressBar.stories.d.ts +0 -5
  192. package/dist/ProgressBar/ProgressBar.stories.js +0 -35
  193. package/dist/ProgressBar/ProgressBar.stories.js.map +0 -1
  194. package/dist/ProgressBar/ProgressBar.test.d.ts +0 -1
  195. package/dist/ProgressBar/ProgressBar.test.js +0 -43
  196. package/dist/ProgressBar/ProgressBar.test.js.map +0 -1
  197. package/dist/ProgressBar/ProgressBar.types.d.ts +0 -77
  198. package/dist/ProgressBar/ProgressBar.types.js +0 -2
  199. package/dist/ProgressBar/ProgressBar.types.js.map +0 -1
  200. package/dist/ProgressBar/index.d.ts +0 -1
  201. package/dist/ProgressBar/index.js +0 -2
  202. package/dist/ProgressBar/index.js.map +0 -1
  203. package/dist/SeeqActionDropdown/SeeqActionDropdown.d.ts +0 -4
  204. package/dist/SeeqActionDropdown/SeeqActionDropdown.js +0 -39
  205. package/dist/SeeqActionDropdown/SeeqActionDropdown.js.map +0 -1
  206. package/dist/SeeqActionDropdown/SeeqActionDropdown.stories.d.ts +0 -5
  207. package/dist/SeeqActionDropdown/SeeqActionDropdown.stories.js +0 -56
  208. package/dist/SeeqActionDropdown/SeeqActionDropdown.stories.js.map +0 -1
  209. package/dist/SeeqActionDropdown/SeeqActionDropdown.test.d.ts +0 -1
  210. package/dist/SeeqActionDropdown/SeeqActionDropdown.test.js +0 -73
  211. package/dist/SeeqActionDropdown/SeeqActionDropdown.test.js.map +0 -1
  212. package/dist/SeeqActionDropdown/SeeqActionDropdown.types.d.ts +0 -160
  213. package/dist/SeeqActionDropdown/SeeqActionDropdown.types.js +0 -2
  214. package/dist/SeeqActionDropdown/SeeqActionDropdown.types.js.map +0 -1
  215. package/dist/SeeqActionDropdown/index.d.ts +0 -1
  216. package/dist/SeeqActionDropdown/index.js +0 -2
  217. package/dist/SeeqActionDropdown/index.js.map +0 -1
  218. package/dist/SeeqActionDropdown/variants.d.ts +0 -5
  219. package/dist/SeeqActionDropdown/variants.js +0 -29
  220. package/dist/SeeqActionDropdown/variants.js.map +0 -1
  221. package/dist/Select/Select.d.ts +0 -15
  222. package/dist/Select/Select.js +0 -177
  223. package/dist/Select/Select.js.map +0 -1
  224. package/dist/Select/Select.stories.d.ts +0 -5
  225. package/dist/Select/Select.stories.js +0 -40
  226. package/dist/Select/Select.stories.js.map +0 -1
  227. package/dist/Select/Select.test.d.ts +0 -1
  228. package/dist/Select/Select.test.js +0 -175
  229. package/dist/Select/Select.test.js.map +0 -1
  230. package/dist/Select/Select.types.d.ts +0 -220
  231. package/dist/Select/Select.types.js +0 -2
  232. package/dist/Select/Select.types.js.map +0 -1
  233. package/dist/Select/index.d.ts +0 -2
  234. package/dist/Select/index.js +0 -3
  235. package/dist/Select/index.js.map +0 -1
  236. package/dist/Slider/Slider.d.ts +0 -6
  237. package/dist/Slider/Slider.js +0 -10
  238. package/dist/Slider/Slider.js.map +0 -1
  239. package/dist/Slider/Slider.stories.d.ts +0 -5
  240. package/dist/Slider/Slider.stories.js +0 -14
  241. package/dist/Slider/Slider.stories.js.map +0 -1
  242. package/dist/Slider/Slider.test.d.ts +0 -1
  243. package/dist/Slider/Slider.test.js +0 -32
  244. package/dist/Slider/Slider.test.js.map +0 -1
  245. package/dist/Slider/Slider.types.d.ts +0 -85
  246. package/dist/Slider/Slider.types.js +0 -2
  247. package/dist/Slider/Slider.types.js.map +0 -1
  248. package/dist/Slider/index.d.ts +0 -1
  249. package/dist/Slider/index.js +0 -2
  250. package/dist/Slider/index.js.map +0 -1
  251. package/dist/SvgIcon/SvgIcon.d.ts +0 -20
  252. package/dist/SvgIcon/SvgIcon.js +0 -28
  253. package/dist/SvgIcon/SvgIcon.js.map +0 -1
  254. package/dist/SvgIcon/SvgIcon.stories.d.ts +0 -5
  255. package/dist/SvgIcon/SvgIcon.stories.js +0 -18
  256. package/dist/SvgIcon/SvgIcon.stories.js.map +0 -1
  257. package/dist/SvgIcon/SvgIcon.test.d.ts +0 -1
  258. package/dist/SvgIcon/SvgIcon.test.js +0 -41
  259. package/dist/SvgIcon/SvgIcon.test.js.map +0 -1
  260. package/dist/SvgIcon/SvgIcon.types.d.ts +0 -76
  261. package/dist/SvgIcon/SvgIcon.types.js +0 -3
  262. package/dist/SvgIcon/SvgIcon.types.js.map +0 -1
  263. package/dist/SvgIcon/index.d.ts +0 -1
  264. package/dist/SvgIcon/index.js +0 -2
  265. package/dist/SvgIcon/index.js.map +0 -1
  266. package/dist/Tabs/Tabs.d.ts +0 -4
  267. package/dist/Tabs/Tabs.js +0 -17
  268. package/dist/Tabs/Tabs.js.map +0 -1
  269. package/dist/Tabs/Tabs.stories.d.ts +0 -5
  270. package/dist/Tabs/Tabs.stories.js +0 -73
  271. package/dist/Tabs/Tabs.stories.js.map +0 -1
  272. package/dist/Tabs/Tabs.test.d.ts +0 -1
  273. package/dist/Tabs/Tabs.test.js +0 -86
  274. package/dist/Tabs/Tabs.test.js.map +0 -1
  275. package/dist/Tabs/Tabs.types.d.ts +0 -95
  276. package/dist/Tabs/Tabs.types.js +0 -2
  277. package/dist/Tabs/Tabs.types.js.map +0 -1
  278. package/dist/Tabs/index.d.ts +0 -1
  279. package/dist/Tabs/index.js +0 -2
  280. package/dist/Tabs/index.js.map +0 -1
  281. package/dist/TextArea/TextArea.d.ts +0 -7
  282. package/dist/TextArea/TextArea.js +0 -25
  283. package/dist/TextArea/TextArea.js.map +0 -1
  284. package/dist/TextArea/TextArea.stories.d.ts +0 -5
  285. package/dist/TextArea/TextArea.stories.js +0 -10
  286. package/dist/TextArea/TextArea.stories.js.map +0 -1
  287. package/dist/TextArea/TextArea.test.d.ts +0 -1
  288. package/dist/TextArea/TextArea.test.js +0 -68
  289. package/dist/TextArea/TextArea.test.js.map +0 -1
  290. package/dist/TextArea/TextArea.types.d.ts +0 -105
  291. package/dist/TextArea/TextArea.types.js +0 -2
  292. package/dist/TextArea/TextArea.types.js.map +0 -1
  293. package/dist/TextArea/index.d.ts +0 -1
  294. package/dist/TextArea/index.js +0 -2
  295. package/dist/TextArea/index.js.map +0 -1
  296. package/dist/TextField/TextField.d.ts +0 -7
  297. package/dist/TextField/TextField.js +0 -85
  298. package/dist/TextField/TextField.js.map +0 -1
  299. package/dist/TextField/TextField.stories.d.ts +0 -5
  300. package/dist/TextField/TextField.stories.js +0 -11
  301. package/dist/TextField/TextField.stories.js.map +0 -1
  302. package/dist/TextField/TextField.test.d.ts +0 -1
  303. package/dist/TextField/TextField.test.js +0 -41
  304. package/dist/TextField/TextField.test.js.map +0 -1
  305. package/dist/TextField/TextField.types.d.ts +0 -199
  306. package/dist/TextField/TextField.types.js +0 -2
  307. package/dist/TextField/TextField.types.js.map +0 -1
  308. package/dist/TextField/index.d.ts +0 -1
  309. package/dist/TextField/index.js +0 -2
  310. package/dist/TextField/index.js.map +0 -1
  311. package/dist/ToolbarButton/ToolbarButton.d.ts +0 -3
  312. package/dist/ToolbarButton/ToolbarButton.js +0 -57
  313. package/dist/ToolbarButton/ToolbarButton.js.map +0 -1
  314. package/dist/ToolbarButton/ToolbarButton.stories.d.ts +0 -5
  315. package/dist/ToolbarButton/ToolbarButton.stories.js +0 -28
  316. package/dist/ToolbarButton/ToolbarButton.stories.js.map +0 -1
  317. package/dist/ToolbarButton/ToolbarButton.test.d.ts +0 -1
  318. package/dist/ToolbarButton/ToolbarButton.test.js +0 -85
  319. package/dist/ToolbarButton/ToolbarButton.test.js.map +0 -1
  320. package/dist/ToolbarButton/ToolbarButton.types.d.ts +0 -122
  321. package/dist/ToolbarButton/ToolbarButton.types.js +0 -2
  322. package/dist/ToolbarButton/ToolbarButton.types.js.map +0 -1
  323. package/dist/ToolbarButton/index.d.ts +0 -1
  324. package/dist/ToolbarButton/index.js +0 -2
  325. package/dist/ToolbarButton/index.js.map +0 -1
  326. package/dist/Tooltip/QTip.stories.d.ts +0 -5
  327. package/dist/Tooltip/QTip.stories.js +0 -19
  328. package/dist/Tooltip/QTip.stories.js.map +0 -1
  329. package/dist/Tooltip/QTip.types.d.ts +0 -13
  330. package/dist/Tooltip/QTip.types.js +0 -2
  331. package/dist/Tooltip/QTip.types.js.map +0 -1
  332. package/dist/Tooltip/QTipPerformance.stories.d.ts +0 -5
  333. package/dist/Tooltip/QTipPerformance.stories.js +0 -26
  334. package/dist/Tooltip/QTipPerformance.stories.js.map +0 -1
  335. package/dist/Tooltip/Qtip.d.ts +0 -26
  336. package/dist/Tooltip/Qtip.js +0 -168
  337. package/dist/Tooltip/Qtip.js.map +0 -1
  338. package/dist/Tooltip/Tooltip.d.ts +0 -13
  339. package/dist/Tooltip/Tooltip.js +0 -34
  340. package/dist/Tooltip/Tooltip.js.map +0 -1
  341. package/dist/Tooltip/Tooltip.stories.d.ts +0 -5
  342. package/dist/Tooltip/Tooltip.stories.js +0 -15
  343. package/dist/Tooltip/Tooltip.stories.js.map +0 -1
  344. package/dist/Tooltip/Tooltip.types.d.ts +0 -22
  345. package/dist/Tooltip/Tooltip.types.js +0 -3
  346. package/dist/Tooltip/Tooltip.types.js.map +0 -1
  347. package/dist/Tooltip/TooltipPerformance.stories.d.ts +0 -5
  348. package/dist/Tooltip/TooltipPerformance.stories.js +0 -26
  349. package/dist/Tooltip/TooltipPerformance.stories.js.map +0 -1
  350. package/dist/Tooltip/index.d.ts +0 -2
  351. package/dist/Tooltip/index.js +0 -3
  352. package/dist/Tooltip/index.js.map +0 -1
  353. package/dist/Tooltip/qTip.utilities.d.ts +0 -3
  354. package/dist/Tooltip/qTip.utilities.js +0 -11
  355. package/dist/Tooltip/qTip.utilities.js.map +0 -1
  356. package/dist/index.d.ts +0 -46
  357. package/dist/setupTests.d.ts +0 -1
  358. package/dist/setupTests.js +0 -6
  359. package/dist/setupTests.js.map +0 -1
  360. package/dist/types.d.ts +0 -27
  361. package/dist/types.js +0 -26
  362. package/dist/types.js.map +0 -1
  363. package/dist/utils/browserId.d.ts +0 -9
  364. package/dist/utils/browserId.js +0 -29
  365. package/dist/utils/browserId.js.map +0 -1
  366. package/dist/utils/svg.d.ts +0 -15
  367. package/dist/utils/svg.js +0 -20
  368. package/dist/utils/svg.js.map +0 -1
  369. package/dist/utils/validateStyleDimension.d.ts +0 -2
  370. package/dist/utils/validateStyleDimension.js +0 -14
  371. package/dist/utils/validateStyleDimension.js.map +0 -1
  372. package/dist/utils/validateStyleDimension.test.d.ts +0 -1
  373. package/dist/utils/validateStyleDimension.test.js +0 -20
  374. package/dist/utils/validateStyleDimension.test.js.map +0 -1
@@ -1,105 +0,0 @@
1
- /// <reference types="react" />
2
- import { FormControlElement } from '../types';
3
- /**
4
- * Props for the TextArea component that provides a multi-line text input control.
5
- */
6
- export interface TextAreaProps {
7
- /**
8
- * Additional CSS classes to apply to the textarea element.
9
- * Use this to customize the appearance beyond the default styling.
10
- */
11
- extraClassNames?: string;
12
- /**
13
- * HTML ID attribute for the textarea element.
14
- * Should be unique across the page for proper HTML semantics and accessibility.
15
- */
16
- id?: string;
17
- /**
18
- * Name attribute for the textarea used in form submission.
19
- * Identifies the textarea's data when the form is submitted to a server.
20
- */
21
- name?: string;
22
- /**
23
- * Callback function triggered when the textarea value changes.
24
- * Receives the change event containing the new value. Use this to update
25
- * your component state in controlled input scenarios.
26
- */
27
- onChange?: React.ChangeEventHandler<FormControlElement>;
28
- /**
29
- * Callback function triggered when a key is released while the textarea has focus.
30
- * Useful for implementing search-as-you-type functionality or debounced input handling.
31
- */
32
- onKeyUp?: React.KeyboardEventHandler<FormControlElement>;
33
- /**
34
- * Callback function triggered when a key is pressed while the textarea has focus.
35
- * Useful for implementing keyboard shortcuts, form submission shortcuts,
36
- * or preventing certain characters from being entered.
37
- */
38
- onKeyDown?: React.KeyboardEventHandler<FormControlElement>;
39
- /**
40
- * Callback function triggered when the textarea receives focus.
41
- * Use this to handle focus-related logic such as showing hints,
42
- * clearing placeholder text, or updating UI state.
43
- */
44
- onFocus?: React.FocusEventHandler<HTMLTextAreaElement>;
45
- /**
46
- * Callback function triggered when the textarea loses focus.
47
- * Commonly used for form validation, saving draft data, or
48
- * updating UI state when users finish interacting with the field.
49
- */
50
- onBlur?: React.FocusEventHandler<FormControlElement>;
51
- /**
52
- * Placeholder text displayed when the textarea is empty.
53
- * Provides users with a hint about what type of content is expected.
54
- * Should be descriptive but not replace proper labels.
55
- */
56
- placeholder?: string;
57
- /**
58
- * When true, makes the textarea read-only, preventing user input.
59
- * The field will display its value but users cannot modify it. Unlike disabled fields,
60
- * read-only fields can still receive focus and their values are included in form submissions.
61
- */
62
- readonly?: boolean;
63
- /**
64
- * When true, disables the textarea preventing any user interaction.
65
- * Disabled fields appear visually dimmed, cannot receive focus, and their
66
- * values are not included in form submissions.
67
- */
68
- disabled?: boolean;
69
- /**
70
- * Number of visible text lines in the textarea.
71
- * Controls the initial height of the textarea. Users can typically resize
72
- * the textarea if the browser allows it.
73
- * @default 3
74
- */
75
- rows?: number;
76
- /**
77
- * Number of visible character columns in the textarea.
78
- * Controls the initial width of the textarea based on average character width.
79
- * Less commonly used than CSS width styling.
80
- */
81
- cols?: number;
82
- /**
83
- * When true, automatically focuses this textarea when the component mounts.
84
- * Useful for modal dialogs or forms where immediate input is expected.
85
- * Should be used sparingly to avoid accessibility issues.
86
- */
87
- autoFocus?: boolean;
88
- /**
89
- * Test ID attribute for the textarea element used in automated testing.
90
- * Applied to the `data-testid` attribute for element selection in test suites.
91
- */
92
- testId?: string;
93
- /**
94
- * Current value of the textarea for controlled component behavior.
95
- * Can be a string for text content, an array of strings for multi-value scenarios,
96
- * or a number that will be converted to string. Use this for controlled input components.
97
- */
98
- value?: string | string[] | number;
99
- /**
100
- * When true, displays error styling on the textarea.
101
- * Typically changes border color to red and may add error-related visual cues.
102
- * Usually used in combination with error messages to provide validation feedback.
103
- */
104
- showError?: boolean;
105
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=TextArea.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextArea.types.js","sourceRoot":"","sources":["../../src/TextArea/TextArea.types.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export { TextArea as default } from './TextArea';
@@ -1,2 +0,0 @@
1
- export { TextArea as default } from './TextArea';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/TextArea/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,OAAO,EAAE,MAAM,YAAY,CAAC"}
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { InputLengthStyleProps, TextFieldProps } from './TextField.types';
3
- import '../styles.css';
4
- /**
5
- * Textfield.
6
- */
7
- export declare const TextField: React.FunctionComponent<TextFieldProps & InputLengthStyleProps>;
@@ -1,85 +0,0 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import React, { useEffect, useRef, useState } from 'react';
3
- import '../styles.css';
4
- import { setValidInputDimension } from '../utils/validateStyleDimension';
5
- import { getQTipData } from '../Tooltip/qTip.utilities';
6
- const errorClasses = 'tw-border-sq-danger-color';
7
- const borderColorClasses = [
8
- 'tw-border-sq-disabled-gray',
9
- 'dark:tw-border-sq-dark-disabled-gray',
10
- 'dark:focus:tw-border-sq-color-dark-dark',
11
- 'dark:active:tw-border-sq-color-dark-dark',
12
- 'focus:tw-border-sq-color-dark',
13
- 'active:tw-border-sq-color-dark',
14
- ].join(' ');
15
- const baseClasses = 'tw-h-inputs tw-leading-normal tw-outline-none tw-py-1 tw-px-3' +
16
- ' disabled:tw-pointer-events-none disabled:tw-bg-sq-light-gray disabled:dark:tw-bg-sq-dark-disabled-gray' +
17
- ' disabled:tw-cursor-not-allowed tw-p-1 tw-border-solid tw-border tw-placeholder-gray-400' +
18
- ' dark:tw-placeholder-sq-dark-text-lighter specTextField';
19
- const darkTheme = 'dark:tw-bg-sq-dark-background dark:tw-text-sq-dark-text disabled:dark:tw-text-sq-dark-text-lighter';
20
- const lightTheme = 'tw-text-sq-text-color disabled:tw-text-sq-darkish-gray';
21
- const sizeClasses = {
22
- sm: 'tw-text-sm',
23
- lg: 'tw-text-xl',
24
- };
25
- /**
26
- * Textfield.
27
- */
28
- export const TextField = React.forwardRef((props, ref) => {
29
- const { readonly = false, disabled = false, onChange, onKeyUp, onFocus, onBlur, onKeyDown, id, name, size = 'sm', value, placeholder, extraClassNames, testId, type = 'text', inputGroup, step, showError, errorText, min, max, maxLength, minLength, required = false, autoComplete = 'off', inputWidth = undefined, inputHeight = undefined, autoFocus = false, ...tooltipProps } = props;
30
- const internalRef = useRef(null);
31
- const [cursor, setCursor] = useState(null);
32
- const tooltipData = getQTipData(tooltipProps);
33
- const setAllRefs = (receivedRef) => {
34
- if (ref)
35
- ref.current = receivedRef;
36
- internalRef.current = receivedRef;
37
- };
38
- useEffect(() => {
39
- if (autoFocus) {
40
- setTimeout(() => {
41
- internalRef.current?.focus();
42
- }, 0);
43
- }
44
- }, []);
45
- useEffect(() => {
46
- const input = internalRef.current;
47
- if (input && type !== 'number' && type !== 'email')
48
- input.setSelectionRange(cursor, cursor);
49
- }, [ref, cursor, value]);
50
- const handleChange = (e) => {
51
- setCursor(e.target.selectionStart);
52
- onChange && onChange(e);
53
- };
54
- useEffect(() => {
55
- /**
56
- * we need to change the value only if it's different since the internal state of "input" will change it anyway
57
- * this will only be the case when the value has been changed externally via store (undo / redo)
58
- */
59
- if (value !== null && value !== undefined && value !== internalRef.current?.value && internalRef.current) {
60
- // we need to use this method because using the value props directly will switch the input to a "controlled"
61
- // component
62
- internalRef.current.value = `${value}`;
63
- }
64
- }, [value]);
65
- let borderRadius = 'tw-rounded-md';
66
- if (inputGroup === 'left') {
67
- borderRadius = 'tw-rounded-l-md tw-border-r-0 focus:tw-border-r' + ' active:tw-border-r';
68
- }
69
- else if (inputGroup === 'right') {
70
- borderRadius = 'tw-rounded-r-md tw-border-l-0 focus:tw-border-l active:tw-border-l';
71
- }
72
- const appliedClasses = `${baseClasses} ${sizeClasses[size]} ${extraClassNames} ${lightTheme} ${darkTheme} ${borderRadius} ${showError ? errorClasses : borderColorClasses} `;
73
- const inputProp = setValidInputDimension(inputWidth, inputHeight)
74
- ? {
75
- style: setValidInputDimension(inputWidth, inputHeight),
76
- }
77
- : {};
78
- const inputLenghtProp = {};
79
- if (maxLength)
80
- inputLenghtProp.maxLength = maxLength;
81
- if (minLength)
82
- inputLenghtProp.minLength = minLength;
83
- return (_jsxs(_Fragment, { children: [_jsx("input", { ref: setAllRefs, "data-testid": testId, name: name, id: id, type: type, value: value, className: appliedClasses, placeholder: placeholder, disabled: disabled, readOnly: readonly, autoComplete: autoComplete, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, onKeyDown: onKeyDown, onKeyUp: onKeyUp, step: step, required: required, min: min, max: max, ...inputLenghtProp, ...inputProp, ...tooltipData }), errorText && showError && _jsx("div", { className: "tw-text-sq-danger-color tw-text-xs tw-mt-1", children: errorText })] }));
84
- });
85
- //# sourceMappingURL=TextField.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextField.js","sourceRoot":"","sources":["../../src/TextField/TextField.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OA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,EAChB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,EAClB,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,KACJ,eAAe,KACf,SAAS,KACT,WAAW,GACf,EACD,SAAS,IAAI,SAAS,IAAI,cAAK,SAAS,EAAC,4CAA4C,YAAE,SAAS,GAAO,IACvG,CACJ,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- declare const _default: {
2
- title: string;
3
- };
4
- export default _default;
5
- export declare const AllTextFields: () => import("react/jsx-runtime").JSX.Element;
@@ -1,11 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { TextField } from './TextField';
3
- import { QTip } from '../Tooltip';
4
- export default {
5
- title: 'TextField',
6
- };
7
- export const AllTextFields = () => {
8
- const renderAllVariations = () => (_jsxs(_Fragment, { children: [_jsxs("div", { className: "tw-p-4 light", children: [_jsx("div", { className: "tw-p-4", children: _jsx(TextField, { value: "value provided" }) }), _jsx("div", { className: "tw-p-4", children: _jsx(TextField, { placeholder: "placeholder text" }) }), _jsx("div", { className: "tw-p-4", children: _jsx(TextField, { placeholder: "with error", showError: true }) }), _jsx("div", { className: "tw-p-4", children: _jsx(TextField, { placeholder: "with error text", showError: true, errorText: "this is a major test error and it is long on purpose to see its looks" }) }), _jsx("div", { className: "tw-p-4", children: _jsx(TextField, { value: "read-only", readonly: true, onFocus: (e) => e.currentTarget.select() }) }), _jsx("div", { className: "tw-p-4", children: _jsx(TextField, { value: "disabled", disabled: true, onFocus: (e) => e.currentTarget.select() }) }), _jsxs("div", { className: "tw-p-4", children: [_jsx("div", { children: "max value = 10" }), _jsx(TextField, { type: "number", value: 20, max: 10 })] }), _jsxs("div", { className: "tw-p-4", children: [_jsx("div", { children: "min value = 2" }), _jsx(TextField, { type: "number", value: 1, min: 2 })] }), _jsx("div", { className: "tw-p-4", children: _jsx(TextField, { value: "large", size: "lg" }) }), _jsx("div", { className: "tw-p-4", children: _jsx(TextField, { value: "with tooltip", tooltip: "small tooltip" }) })] }), _jsxs("div", { className: "tw-p-4 tw-dark tw-bg-sq-dark-background", children: [_jsx("div", { className: "tw-p-4", children: _jsx(TextField, { value: "value provided" }) }), _jsx("div", { className: "tw-p-4", children: _jsx(TextField, { placeholder: "placeholder text" }) }), _jsx("div", { className: "tw-p-4", children: _jsx(TextField, { placeholder: "with error", showError: true }) }), _jsx("div", { className: "tw-p-4", children: _jsx(TextField, { placeholder: "with error text", showError: true, errorText: "this is a major test error and it is long on purpose to see its looks" }) }), _jsx("div", { className: "tw-p-4", children: _jsx(TextField, { value: "read-only", readonly: true, onFocus: (e) => e.currentTarget.select() }) }), _jsx("div", { className: "tw-p-4", children: _jsx(TextField, { value: "disabled", disabled: true, onFocus: (e) => e.currentTarget.select() }) }), _jsxs("div", { className: "tw-p-4", children: [_jsx("div", { className: "tw-text-sq-color-dark dark:tw-text-sq-color-dark-dark", children: "max value = 10" }), _jsx(TextField, { type: "number", value: 8, max: 10 })] }), _jsxs("div", { className: "tw-p-4", children: [_jsx("div", { className: "tw-text-sq-color-dark dark:tw-text-sq-color-dark-dark", children: "min value = 2" }), _jsx(TextField, { type: "number", value: 10, min: 2 })] }), _jsx("div", { className: "tw-p-4", children: _jsx(TextField, { value: "large", size: "lg" }) }), _jsx("div", { className: "tw-p-4", children: _jsx(TextField, { value: "with tooltip", tooltip: "small tooltip" }) })] })] }));
9
- return (_jsxs("div", { className: "tw-grid tw-grid-cols-4 tw-gap-4", children: [_jsx(QTip, {}), _jsxs("div", { className: "color_topic", children: [_jsx("b", { children: "Topic Colors" }), renderAllVariations()] }), _jsxs("div", { className: "color_analysis", children: [_jsx("b", { children: "Analysis Colors" }), renderAllVariations()] }), _jsxs("div", { className: "color_datalab", children: [_jsx("b", { children: "Datalab Colors" }), renderAllVariations()] }), _jsxs("div", { className: "color_vantage", children: [_jsx("b", { children: "Vantage Colors" }), renderAllVariations()] })] }));
10
- };
11
- //# sourceMappingURL=TextField.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextField.stories.js","sourceRoot":"","sources":["../../src/TextField/TextField.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC,eAAe;IACb,KAAK,EAAE,WAAW;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,EAAE;IAChC,MAAM,mBAAmB,GAAG,GAAG,EAAE,CAAC,CAChC,8BACE,eAAK,SAAS,EAAC,cAAc,aAC3B,cAAK,SAAS,EAAC,QAAQ,YACrB,KAAC,SAAS,IAAC,KAAK,EAAC,gBAAgB,GAAG,GAChC,EACN,cAAK,SAAS,EAAC,QAAQ,YACrB,KAAC,SAAS,IAAC,WAAW,EAAC,kBAAkB,GAAG,GACxC,EACN,cAAK,SAAS,EAAC,QAAQ,YACrB,KAAC,SAAS,IAAC,WAAW,EAAC,YAAY,EAAC,SAAS,EAAE,IAAI,GAAI,GACnD,EACN,cAAK,SAAS,EAAC,QAAQ,YACrB,KAAC,SAAS,IACR,WAAW,EAAC,iBAAiB,EAC7B,SAAS,EAAE,IAAI,EACf,SAAS,EAAC,uEAAuE,GACjF,GACE,EACN,cAAK,SAAS,EAAC,QAAQ,YACrB,KAAC,SAAS,IAAC,KAAK,EAAC,WAAW,EAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,EAAE,GAAI,GACrF,EACN,cAAK,SAAS,EAAC,QAAQ,YACrB,KAAC,SAAS,IAAC,KAAK,EAAC,UAAU,EAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,EAAE,GAAI,GACpF,EACN,eAAK,SAAS,EAAC,QAAQ,aACrB,2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O,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,EAAE,GAAI,GACpF,EACN,eAAK,SAAS,EAAC,QAAQ,aACrB,cAAK,SAAS,EAAC,uDAAuD,+BAAqB,EAC3F,KAAC,SAAS,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,GAAI,IAC1C,EACN,eAAK,SAAS,EAAC,QAAQ,aACrB,cAAK,SAAS,EAAC,uDAAuD,8BAAoB,EAC1F,KAAC,SAAS,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,GAAI,IAC1C,EACN,cAAK,SAAS,EAAC,QAAQ,YACrB,KAAC,SAAS,IAAC,KAAK,EAAC,OAAO,EAAC,IAAI,EAAC,IAAI,GAAG,GACjC,EACN,cAAK,SAAS,EAAC,QAAQ,YACrB,KAAC,SAAS,IAAC,KAAK,EAAC,cAAc,EAAC,OAAO,EAAC,eAAe,GAAG,GACtD,IACF,IACL,CACJ,CAAC;IACF,OAAO,CACL,eAAK,SAAS,EAAC,iCAAiC,aAC9C,KAAC,IAAI,KAAG,EACR,eAAK,SAAS,EAAC,aAAa,aAC1B,uCAAmB,EAClB,mBAAmB,EAAE,IAClB,EAEN,eAAK,SAAS,EAAC,gBAAgB,aAC7B,0CAAsB,EACrB,mBAAmB,EAAE,IAClB,EAEN,eAAK,SAAS,EAAC,eAAe,aAC5B,yCAAqB,EACpB,mBAAmB,EAAE,IAClB,EAEN,eAAK,SAAS,EAAC,eAAe,aAC5B,yCAAqB,EACpB,mBAAmB,EAAE,IAClB,IACF,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- import '@testing-library/jest-dom';
@@ -1,41 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import '@testing-library/jest-dom';
3
- import { render, screen, waitFor } from '@testing-library/react';
4
- import userEvent from '@testing-library/user-event';
5
- import { TextField } from './TextField';
6
- describe('TextField', () => {
7
- class Context {
8
- testId = 'textFieldTestId';
9
- props = {
10
- onChange: jest.fn(),
11
- testId: this.testId,
12
- };
13
- }
14
- let tc;
15
- beforeEach(() => {
16
- tc = new Context();
17
- });
18
- const renderTextField = (props) => render(_jsx(TextField, { ...props }));
19
- it('renders the provided value', () => {
20
- const value = 'hello';
21
- renderTextField({ ...tc.props, value });
22
- expect(screen.getByDisplayValue(value)).toBeInTheDocument();
23
- });
24
- it('renders the provided placeholder', () => {
25
- const placeholder = 'Prompt to enter';
26
- renderTextField({ ...tc.props, placeholder });
27
- expect(screen.getByPlaceholderText(placeholder)).toBeInTheDocument();
28
- });
29
- it('calls onChange handler', async () => {
30
- renderTextField({ ...tc.props });
31
- await userEvent.type(screen.getByTestId(tc.testId), 'trigger');
32
- expect(tc.props.onChange).toHaveBeenCalled();
33
- });
34
- it('autofocuses the textfield', async () => {
35
- renderTextField({ ...tc.props, autoFocus: true });
36
- await waitFor(() => {
37
- expect(screen.getByTestId(tc.testId)).toHaveFocus();
38
- });
39
- });
40
- });
41
- //# sourceMappingURL=TextField.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextField.test.js","sourceRoot":"","sources":["../../src/TextField/TextField.test.tsx"],"names":[],"mappings":";AACA,OAAO,2BAA2B,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,SAAS,MAAM,6BAA6B,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;IACzB,MAAM,OAAO;QACX,MAAM,GAAG,iBAAiB,CAAC;QAC3B,KAAK,GAAmB;YACtB,QAAQ,EAAE,IAAI,CAAC,EAAE,EAAE;YACnB,MAAM,EAAE,IAAI,CAAC,MAAM;SACpB,CAAC;KACH;IAED,IAAI,EAAW,CAAC;IACh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AAM,OAAO,CAAC,GAAG,EAAE;YACjB,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;QACtD,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AAEL,CAAC,CAAC,CAAC"}
@@ -1,199 +0,0 @@
1
- /// <reference types="react" />
2
- import { TooltipComponentProps } from '../Tooltip/Tooltip.types';
3
- import { FormControlElement, InputGroupPlacement } from '../types';
4
- export interface TextFieldProps extends TooltipComponentProps {
5
- /**
6
- * When true, makes the text field read-only, preventing user input.
7
- * The field will display its value but users cannot modify it. Unlike disabled fields,
8
- * read-only fields can still receive focus and their values are included in form submissions.
9
- */
10
- readonly?: boolean;
11
- /**
12
- * When true, disables the text field preventing any user interaction.
13
- * Disabled fields appear visually dimmed, cannot receive focus, and their
14
- * values are not included in form submissions.
15
- */
16
- disabled?: boolean;
17
- /**
18
- * Callback function triggered when the text field value changes.
19
- * Receives the change event containing the new value. Use this to update
20
- * your component state in controlled input scenarios.
21
- */
22
- onChange?: React.ChangeEventHandler<FormControlElement>;
23
- /**
24
- * Callback function triggered when a key is released while the field has focus.
25
- * Useful for implementing search-as-you-type functionality or debounced input handling.
26
- * Receives the keyboard event with details about the released key.
27
- */
28
- onKeyUp?: React.KeyboardEventHandler<FormControlElement>;
29
- /**
30
- * Callback function triggered when a key is pressed while the field has focus.
31
- * Useful for implementing keyboard shortcuts, form submission on Enter,
32
- * or preventing certain characters from being entered.
33
- */
34
- onKeyDown?: React.KeyboardEventHandler<FormControlElement>;
35
- /**
36
- * Callback function triggered when the text field receives focus.
37
- * Use this to handle focus-related logic such as showing hints,
38
- * clearing placeholder text, or updating UI state.
39
- */
40
- onFocus?: React.FocusEventHandler<HTMLInputElement>;
41
- /**
42
- * Callback function triggered when the text field loses focus.
43
- * Commonly used for form validation, saving draft data, or
44
- * updating UI state when users finish interacting with the field.
45
- */
46
- onBlur?: React.FocusEventHandler<FormControlElement>;
47
- /**
48
- * HTML ID attribute for the text field element.
49
- * Should be unique across the entire page for proper HTML semantics and accessibility.
50
- * Used for associating labels and error messages with the input field.
51
- */
52
- id?: string;
53
- /**
54
- * Name attribute for the text field used in form submission.
55
- * This identifies the field's data when the form is submitted to a server.
56
- * Essential for proper form handling and data processing.
57
- */
58
- name?: string;
59
- /**
60
- * Size variant that controls the text field's height and text size:
61
- * - `sm`: Small field with compact padding and smaller text
62
- * - `lg`: Large field with generous padding and larger text
63
- * If not specified, uses the default/medium size.
64
- */
65
- size?: 'sm' | 'lg';
66
- /**
67
- * The current value of the text field.
68
- * Can be a string for text input, an array of strings for multi-value fields,
69
- * or a number for numeric inputs. Use this for controlled input components.
70
- */
71
- value?: string | string[] | number;
72
- /**
73
- * Placeholder text displayed when the field is empty.
74
- * Provides users with a hint about what type of content is expected.
75
- * Should be descriptive but not replace proper labels.
76
- */
77
- placeholder?: string;
78
- /**
79
- * Additional CSS classes to apply to the text field element.
80
- * These classes are combined with the component's built-in styling.
81
- * Use this to customize appearance beyond the standard size variants.
82
- */
83
- extraClassNames?: string;
84
- /**
85
- * HTML input type that determines the field's behavior and validation:
86
- * - `text`: Standard text input (default)
87
- * - `password`: Obscures entered text for security
88
- * - `number`: Numeric input with increment/decrement controls
89
- * - `email`: Email input with built-in email validation
90
- * @default 'text'
91
- */
92
- type?: 'text' | 'password' | 'number' | 'email';
93
- /**
94
- * Test ID attribute for the text field element used in automated testing.
95
- * Applied to the `data-testid` attribute for element selection in test suites.
96
- */
97
- testId?: string;
98
- /**
99
- * React ref object for direct access to the text field DOM element.
100
- * Use this when you need to programmatically focus the field,
101
- * measure its dimensions, or perform other direct DOM operations.
102
- */
103
- ref?: any;
104
- /**
105
- * Configuration for input group styling when the field is part of a group:
106
- * - `prepend`: Field is preceded by another element (button, icon, text)
107
- * - `append`: Field is followed by another element
108
- * Affects border radius and styling to create seamless grouped appearance.
109
- */
110
- inputGroup?: InputGroupPlacement;
111
- /**
112
- * Step value for numeric input types that defines the increment/decrement amount.
113
- * When users click the number input's up/down arrows or use arrow keys,
114
- * the value changes by this step amount. Can be a number or string.
115
- */
116
- step?: number | string;
117
- /**
118
- * When true, displays error styling on the text field.
119
- * Typically changes border color to red and may add error-related visual cues.
120
- * Usually used in combination with `errorText` to provide validation feedback.
121
- */
122
- showError?: boolean;
123
- /**
124
- * Error message text to display below the field when validation fails.
125
- * Provides specific feedback about what the user needs to correct.
126
- * Only shown when there's an actual error to communicate.
127
- */
128
- errorText?: string;
129
- /**
130
- * When true, marks the field as required for form validation.
131
- * May add visual indicators (like asterisks) and prevents form submission
132
- * if the field is empty. Essential for mandatory form fields.
133
- */
134
- required?: boolean;
135
- /**
136
- * HTML autocomplete attribute that helps browsers provide appropriate suggestions.
137
- * Values like 'email', 'name', 'new-password', 'current-password', etc.
138
- * Improves user experience by enabling relevant autocomplete functionality.
139
- */
140
- autoComplete?: string;
141
- /**
142
- * When true, automatically focuses this field when the component mounts.
143
- * Useful for modal dialogs or forms where immediate input is expected.
144
- * Should be used sparingly to avoid accessibility issues.
145
- */
146
- autoFocus?: boolean;
147
- /**
148
- * Fixed width in pixels for the text field input element.
149
- * Primarily used in the Editable Text component for precise sizing control.
150
- * Overrides default responsive width behavior when a specific width is needed.
151
- */
152
- inputWidth?: number;
153
- /**
154
- * Fixed height in pixels for the text field input element.
155
- * Primarily used in the Editable Text component for precise sizing control.
156
- * Overrides default height behavior when a specific height is needed.
157
- */
158
- inputHeight?: number;
159
- /**
160
- * Minimum allowed value for numeric, date, time, and range input types.
161
- * Prevents users from entering or selecting values below this threshold.
162
- * Used for validation and UI constraints in number-based inputs.
163
- */
164
- min?: number;
165
- /**
166
- * Maximum allowed value for numeric, date, time, and range input types.
167
- * Prevents users from entering or selecting values above this threshold.
168
- * Used for validation and UI constraints in number-based inputs.
169
- */
170
- max?: number;
171
- }
172
- /**
173
- * Interface for defining dimension styles with CSS-compatible values.
174
- * Used internally for styling components with dynamic width and height.
175
- */
176
- export interface DimensionStyle {
177
- /** CSS width value (e.g., '100px', '50%', 'auto') */
178
- width?: string;
179
- /** CSS height value (e.g., '40px', '2rem', 'auto') */
180
- height?: string;
181
- }
182
- /**
183
- * Interface for defining text input length constraints.
184
- * Used for validation and input limiting in text-based fields.
185
- */
186
- export interface InputLengthStyleProps {
187
- /**
188
- * Maximum number of characters allowed in the text field.
189
- * Prevents users from entering more text beyond this limit.
190
- * Useful for database field constraints and UI consistency.
191
- */
192
- maxLength?: number;
193
- /**
194
- * Minimum number of characters required in the text field.
195
- * Used for validation to ensure adequate input length.
196
- * Commonly used for passwords, codes, or required descriptions.
197
- */
198
- minLength?: number;
199
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=TextField.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextField.types.js","sourceRoot":"","sources":["../../src/TextField/TextField.types.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export { TextField as default } from './TextField';
@@ -1,2 +0,0 @@
1
- export { TextField as default } from './TextField';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/TextField/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,aAAa,CAAC"}
@@ -1,3 +0,0 @@
1
- import * as React from 'react';
2
- import { ToolbarButtonProps } from './ToolbarButton.types';
3
- export declare const ToolbarButton: React.FunctionComponent<ToolbarButtonProps>;
@@ -1,57 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import * as React from 'react';
3
- import * as PopoverPrimitive from '@radix-ui/react-popover';
4
- import Icon from '../Icon';
5
- import { DEFAULT_TOOL_TIP_DELAY } from '../Tooltip/Tooltip.types';
6
- import { getSvgIconPath } from '../utils/svg';
7
- const popoverBorderStyles = [
8
- 'tw-border-solid',
9
- 'tw-border',
10
- 'tw-rounded-md',
11
- 'tw-border-sq-disabled-gray',
12
- 'dark:tw-border-gray-500',
13
- ].join(' ');
14
- const triggerBackgroundStyles = [
15
- 'tw-bg-transparent',
16
- 'hover:tw-bg-sq-worksheetspanel-gray',
17
- 'active:tw-bg-sq-worksheetspanel-gray',
18
- 'dark:tw-bg-transparent',
19
- 'dark:hover:tw-bg-sq-field-disabled-gray',
20
- 'dark:active:tw-bg-sq-field-disabled-gray',
21
- ].join(' ');
22
- const activeBackgroundStyles = [
23
- 'active',
24
- 'tw-bg-sq-overlay-gray',
25
- 'hover:tw-bg-sq-overlay-gray',
26
- 'active:tw-bg-sq-overlay-gray',
27
- 'dark:tw-bg-sq-dark-disabled-gray',
28
- 'dark:hover:tw-border-sq-dark-disabled-gray',
29
- 'dark:active:tw-bg-sq-dark-disabled-gray',
30
- ].join(' ');
31
- const bgStyles = ['tw-bg-sq-white', 'dark:tw-bg-sq-dark-background'].join(' ');
32
- const disabledClasses = ['tw-opacity-50', 'tw-cursor-not-allowed'].join(' ');
33
- const PopoverContent = React.forwardRef(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (_jsx(PopoverPrimitive.Content, { ref: ref, align: align, sideOffset: sideOffset, ...props, asChild: true })));
34
- export const ToolbarButton = ({ isSmall = false, label, icon, secondIcon, forceSmallIcon = false, tooltipText, id, popoverContent, extraClassNames, testId, tooltipTestId, tooltipOptions, isActive = false, isHtmlTooltip = false, hasArrow = false, disabled = false, isPrimaryAnSvg = false, primaryIconExtraClassNames = false, iconHeight = 24, iconWidth = 24, primaryIconViewbox = '0 0 24 24', onClick, onHide, }) => {
35
- let tooltipData = undefined;
36
- if (tooltipText) {
37
- tooltipData = {
38
- 'data-qtip-text': tooltipText,
39
- 'data-qtip-placement': tooltipOptions?.position,
40
- 'data-qtip-is-html': isHtmlTooltip,
41
- 'data-qtip-testid': tooltipTestId,
42
- 'data-qtip-delay': tooltipOptions?.delay ?? DEFAULT_TOOL_TIP_DELAY,
43
- };
44
- }
45
- const onOpenChange = (open) => {
46
- if (!open) {
47
- onHide && onHide();
48
- }
49
- };
50
- return (_jsxs(PopoverPrimitive.Root, { defaultOpen: false, onOpenChange: onOpenChange, children: [_jsx(PopoverPrimitive.Trigger, { id: id, className: `tw-border-none tw-mx-[1.5px] first:tw-ml-0 last:tw-mr-0 ${isActive ? 'active' : ''}`, disabled: disabled, "data-testid": testId, onClick: (e) => {
51
- onClick && onClick(e);
52
- }, children: _jsxs("div", { ...tooltipData, className: `tw-flex tw-flex-col tw-items-center tw-rounded-md ${isSmall ? 'tw-py-[1px] tw-px-1' : 'tw-px-2 tw-py-[5px]'} ${disabled ? disabledClasses : isActive ? activeBackgroundStyles : triggerBackgroundStyles} ${extraClassNames || ''}`, children: [_jsxs("span", { className: "tw-nowrap", children: [isPrimaryAnSvg ? (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: `tw-text-sq-text-color dark:tw-text-sq-dark-text ${primaryIconExtraClassNames || ''}`, viewBox: primaryIconViewbox, height: `${iconHeight}px`, width: `${iconWidth}px`, fill: "currentColor", "data-testid": testId, children: _jsx("path", { d: getSvgIconPath(icon) }) })) : (_jsx(Icon, { icon: icon, testId: "firstIcon", type: "text", large: !isSmall && !label && !secondIcon && !forceSmallIcon, extraClassNames: `tw-text-sq-text-color dark:tw-text-sq-dark-text` })), secondIcon && _jsx(Icon, { icon: secondIcon, type: "text", testId: "secondIcon" }), popoverContent ? (_jsx(Icon, { icon: "fc-arrow-dropdown", extraClassNames: "tw-text-sq-text-color dark:tw-text-sq-dark-text tw-ml-[3px] tw-text-[0.5rem]", type: "text" })) : undefined] }), !isSmall && (_jsx("small", { className: "tw-text-sq-text-color dark:tw-text-sq-dark-text tw-text-[0.625rem]", children: label }))] }) }), !!popoverContent ? (_jsx(PopoverContent, { sideOffset: 2, align: "start", children: _jsxs("div", { className: bgStyles +
53
- ' tw-relative tw-z-[1000] tw-min-w-6 tw-p-[0.5rem] focus-visible:tw-outline-none tw-outline-none data-[state=open]:animate-in data-[state=closed]:animate-out' +
54
- ' data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2' +
55
- popoverBorderStyles, children: [hasArrow && (_jsx(PopoverPrimitive.Arrow, { asChild: true, children: _jsx("div", { className: " tw-fill-transparent tw-bg-white tw-w-[15px] tw-h-[15px] tw-mt-[-7px] tw-rotate-45 dark:tw-bg-sq-dark-background tw-border-b tw-border-r tw-border-sq-disabled-gray dark:tw-border-gray-500" }) })), popoverContent] }) })) : undefined] }));
56
- };
57
- //# sourceMappingURL=ToolbarButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ToolbarButton.js","sourceRoot":"","sources":["../../src/ToolbarButton/ToolbarButton.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAE5D,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,mBAAmB,GAAG;IAC1B,iBAAiB;IACjB,WAAW;IACX,eAAe;IACf,4BAA4B;IAC5B,yBAAyB;CAC1B,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEZ,MAAM,uBAAuB,GAAG;IAC9B,mBAAmB;IACnB,qCAAqC;IACrC,sCAAsC;IACtC,wBAAwB;IACxB,yCAAyC;IACzC,0CAA0C;CAC3C,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEZ,MAAM,sBAAsB,GAAG;IAC7B,QAAQ;IACR,uBAAuB;IACvB,6BAA6B;IAC7B,8BAA8B;IAC9B,kCAAkC;IAClC,4CAA4C;IAC5C,yCAAyC;CAC1C,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAE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I,EAAC,MAAM,EACX,KAAK,EAAE,CAAC,OAAO,IAAI,CAAC,KAAK,IAAI,CAAC,UAAU,IAAI,CAAC,cAAc,EAC3D,eAAe,EAAE,iDAAiD,GAClE,CACH,EAEA,UAAU,IAAI,KAAC,IAAI,IAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAC,MAAM,EAAC,MAAM,EAAC,YAAY,GAAG,EACxE,cAAc,CAAC,CAAC,CAAC,CAChB,KAAC,IAAI,IACH,IAAI,EAAC,mBAAmB,EACxB,eAAe,EAAC,8EAA8E,EAC9F,IAAI,EAAC,MAAM,GACX,CACH,CAAC,CAAC,CAAC,SAAS,IACR,EACN,CAAC,OAAO,IAAI,CACX,gBAAO,SAAS,EAAC,oEAAoE,YAAE,KAAK,GAAS,CACtG,IACG,GACmB,EAC1B,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAClB,KAAC,cAAc,IAAC,UAAU,EAAE,CAAC,EAAE,KAAK,EAAC,OAAO,YAC1C,eACE,SAAS,EACP,QAAQ;wBACR,8JAA8J;wBAC9J,sRAAsR;wBACtR,mBAAmB,aAEpB,QAAQ,IAAI,CACX,KAAC,gBAAgB,CAAC,KAAK,IAAC,OAAO,kBAC7B,cAAK,SAAS,EAAC,6LAA6L,GAAG,GACxL,CAC1B,EACA,cAAc,IACX,GACS,CAClB,CAAC,CAAC,CAAC,SAAS,IACS,CACzB,CAAC;AACJ,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- declare const _default: {
2
- title: string;
3
- };
4
- export default _default;
5
- export declare const AllToolbarButtonVariants: () => import("react/jsx-runtime").JSX.Element;