@scaleflex/ui-tw 0.0.1 → 0.0.3

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 (499) hide show
  1. package/LICENSE +1 -33
  2. package/README.md +2 -16
  3. package/button/button.component.d.ts +8 -0
  4. package/{core/button → button}/button.component.js +13 -12
  5. package/button/button.const.d.ts +13 -0
  6. package/button/button.const.js +4 -0
  7. package/{core/button → button}/button.types.d.ts +6 -9
  8. package/{core/button → button}/button.types.js +2 -4
  9. package/button/button.utils.d.ts +2 -0
  10. package/button/button.utils.js +19 -0
  11. package/button/components/end-icon.d.ts +7 -0
  12. package/button/components/end-icon.js +39 -0
  13. package/button/components/start-icon.d.ts +13 -0
  14. package/button/components/start-icon.js +53 -0
  15. package/button/index.d.ts +3 -0
  16. package/button/index.js +2 -0
  17. package/form/components/form-field-group.component.d.ts +19 -0
  18. package/form/components/form-field-group.component.js +41 -0
  19. package/form/form.component.d.ts +30 -0
  20. package/form/form.component.js +123 -0
  21. package/form/form.types.d.ts +7 -0
  22. package/{core/switcher/switcher-size.js → form/form.types.js} +1 -1
  23. package/form/index.d.ts +2 -0
  24. package/form/index.js +2 -0
  25. package/input/index.d.ts +3 -0
  26. package/input/index.js +2 -0
  27. package/input/input.component.d.ts +7 -0
  28. package/input/input.component.js +42 -0
  29. package/input/input.types.d.ts +17 -0
  30. package/input/input.types.js +10 -0
  31. package/label/components/info-outline-icon.d.ts +3 -0
  32. package/label/components/info-outline-icon.js +30 -0
  33. package/label/components/label-icon.d.ts +7 -0
  34. package/label/components/label-icon.js +43 -0
  35. package/label/index.d.ts +1 -0
  36. package/label/index.js +1 -0
  37. package/label/label.component.d.ts +4 -0
  38. package/label/label.component.js +44 -0
  39. package/label/label.types.d.ts +14 -0
  40. package/{core/tab/types/size.js → label/label.types.js} +1 -1
  41. package/label/label.utils.d.ts +2 -0
  42. package/label/label.utils.js +16 -0
  43. package/package.json +8 -4
  44. package/{theme/theme.css → theme.css} +8 -8
  45. package/tooltip/index.d.ts +1 -0
  46. package/tooltip/index.js +1 -0
  47. package/tooltip/tooltip.component.d.ts +10 -0
  48. package/tooltip/tooltip.component.js +51 -0
  49. package/tooltip/tooltip.types.d.ts +5 -0
  50. package/core/accordion/accordion.component.d.ts +0 -3
  51. package/core/accordion/accordion.component.js +0 -50
  52. package/core/accordion/accordion.props.d.ts +0 -13
  53. package/core/accordion/accordion.props.js +0 -1
  54. package/core/accordion/accordion.styles.d.ts +0 -6
  55. package/core/accordion/accordion.styles.js +0 -12
  56. package/core/accordion/index.d.ts +0 -2
  57. package/core/accordion/index.js +0 -1
  58. package/core/accordion-details/accordion-details.component.d.ts +0 -3
  59. package/core/accordion-details/accordion-details.component.js +0 -16
  60. package/core/accordion-details/accordion-details.props.d.ts +0 -4
  61. package/core/accordion-details/accordion-details.styles.d.ts +0 -6
  62. package/core/accordion-details/accordion-details.styles.js +0 -12
  63. package/core/accordion-details/index.d.ts +0 -2
  64. package/core/accordion-details/index.js +0 -1
  65. package/core/accordion-header/accordion-header.component.d.ts +0 -3
  66. package/core/accordion-header/accordion-header.component.js +0 -48
  67. package/core/accordion-header/accordion-header.props.d.ts +0 -11
  68. package/core/accordion-header/accordion-header.props.js +0 -1
  69. package/core/accordion-header/accordion-header.styles.d.ts +0 -19
  70. package/core/accordion-header/accordion-header.styles.js +0 -44
  71. package/core/accordion-header/index.d.ts +0 -2
  72. package/core/accordion-header/index.js +0 -1
  73. package/core/arrow/arrow.component.d.ts +0 -3
  74. package/core/arrow/arrow.component.js +0 -23
  75. package/core/arrow/arrow.mixin.d.ts +0 -6
  76. package/core/arrow/arrow.mixin.js +0 -4
  77. package/core/arrow/arrow.props.d.ts +0 -14
  78. package/core/arrow/arrow.props.js +0 -6
  79. package/core/arrow/arrow.styles.d.ts +0 -9
  80. package/core/arrow/arrow.styles.js +0 -18
  81. package/core/arrow/index.d.ts +0 -2
  82. package/core/arrow/index.js +0 -1
  83. package/core/arrow-tick/arrow-tick.component.d.ts +0 -3
  84. package/core/arrow-tick/arrow-tick.component.js +0 -28
  85. package/core/arrow-tick/arrow-tick.mixin.d.ts +0 -6
  86. package/core/arrow-tick/arrow-tick.mixin.js +0 -4
  87. package/core/arrow-tick/arrow-tick.props.d.ts +0 -14
  88. package/core/arrow-tick/arrow-tick.props.js +0 -6
  89. package/core/arrow-tick/arrow-tick.styles.d.ts +0 -7
  90. package/core/arrow-tick/arrow-tick.styles.js +0 -18
  91. package/core/arrow-tick/index.d.ts +0 -2
  92. package/core/arrow-tick/index.js +0 -1
  93. package/core/button/button.component.d.ts +0 -9
  94. package/core/button/button.utils.d.ts +0 -3
  95. package/core/button/button.utils.js +0 -18
  96. package/core/button/components/end-icon.d.ts +0 -12
  97. package/core/button/components/end-icon.js +0 -33
  98. package/core/button/components/start-icon.d.ts +0 -14
  99. package/core/button/components/start-icon.js +0 -40
  100. package/core/button/index.d.ts +0 -4
  101. package/core/button/index.js +0 -3
  102. package/core/check-box/check-box.component.d.ts +0 -3
  103. package/core/check-box/check-box.component.js +0 -62
  104. package/core/check-box/check-box.mixin.d.ts +0 -4
  105. package/core/check-box/check-box.mixin.js +0 -8
  106. package/core/check-box/check-box.props.d.ts +0 -15
  107. package/core/check-box/check-box.props.js +0 -1
  108. package/core/check-box/check-box.styles.d.ts +0 -19
  109. package/core/check-box/check-box.styles.js +0 -42
  110. package/core/check-box/check-box.utils.d.ts +0 -3
  111. package/core/check-box/check-box.utils.js +0 -21
  112. package/core/check-box/index.d.ts +0 -2
  113. package/core/check-box/index.js +0 -1
  114. package/core/check-box/types/index.d.ts +0 -2
  115. package/core/check-box/types/index.js +0 -2
  116. package/core/check-box/types/size.d.ts +0 -4
  117. package/core/check-box/types/size.js +0 -4
  118. package/core/check-box/types/type.d.ts +0 -4
  119. package/core/check-box/types/type.js +0 -4
  120. package/core/check-box-group/check-box-group.component.d.ts +0 -3
  121. package/core/check-box-group/check-box-group.component.js +0 -74
  122. package/core/check-box-group/check-box-group.mixin.d.ts +0 -5
  123. package/core/check-box-group/check-box-group.mixin.js +0 -10
  124. package/core/check-box-group/check-box-group.props.d.ts +0 -19
  125. package/core/check-box-group/check-box-group.props.js +0 -1
  126. package/core/check-box-group/check-box-group.styles.d.ts +0 -19
  127. package/core/check-box-group/check-box-group.styles.js +0 -33
  128. package/core/check-box-group/index.d.ts +0 -2
  129. package/core/check-box-group/index.js +0 -1
  130. package/core/check-box-group/types/index.d.ts +0 -1
  131. package/core/check-box-group/types/index.js +0 -1
  132. package/core/check-box-group/types/label-position.d.ts +0 -4
  133. package/core/check-box-group/types/label-position.js +0 -4
  134. package/core/cross-button/cross-button.component.d.ts +0 -3
  135. package/core/cross-button/cross-button.component.js +0 -35
  136. package/core/cross-button/cross-button.props.d.ts +0 -8
  137. package/core/cross-button/cross-button.props.js +0 -1
  138. package/core/cross-button/cross-button.styles.d.ts +0 -9
  139. package/core/cross-button/cross-button.styles.js +0 -21
  140. package/core/cross-button/index.d.ts +0 -2
  141. package/core/cross-button/index.js +0 -1
  142. package/core/cross-button/types/index.d.ts +0 -1
  143. package/core/cross-button/types/index.js +0 -1
  144. package/core/cross-button/types/size.d.ts +0 -6
  145. package/core/cross-button/types/size.js +0 -6
  146. package/core/dot/dot.component.d.ts +0 -3
  147. package/core/dot/dot.component.js +0 -17
  148. package/core/dot/dot.props.d.ts +0 -4
  149. package/core/dot/dot.props.js +0 -1
  150. package/core/dot/dot.styles.d.ts +0 -18
  151. package/core/dot/dot.styles.js +0 -32
  152. package/core/dot/index.d.ts +0 -2
  153. package/core/dot/index.js +0 -1
  154. package/core/dots-navigation/dots-navigation.component.d.ts +0 -3
  155. package/core/dots-navigation/dots-navigation.component.js +0 -24
  156. package/core/dots-navigation/dots-navigation.props.d.ts +0 -5
  157. package/core/dots-navigation/dots-navigation.props.js +0 -1
  158. package/core/dots-navigation/dots-navigation.styles.d.ts +0 -6
  159. package/core/dots-navigation/dots-navigation.styles.js +0 -15
  160. package/core/dots-navigation/index.d.ts +0 -2
  161. package/core/dots-navigation/index.js +0 -1
  162. package/core/input/index.d.ts +0 -2
  163. package/core/input/index.js +0 -1
  164. package/core/input/input.component.d.ts +0 -3
  165. package/core/input/input.component.js +0 -293
  166. package/core/input/input.mixin.d.ts +0 -18
  167. package/core/input/input.mixin.js +0 -25
  168. package/core/input/input.props.d.ts +0 -40
  169. package/core/input/input.props.js +0 -1
  170. package/core/input/input.styles.d.ts +0 -78
  171. package/core/input/input.styles.js +0 -148
  172. package/core/input/input.utils.d.ts +0 -4
  173. package/core/input/input.utils.js +0 -30
  174. package/core/input/types/index.d.ts +0 -1
  175. package/core/input/types/index.js +0 -1
  176. package/core/input/types/type.d.ts +0 -4
  177. package/core/input/types/type.js +0 -4
  178. package/core/modal/index.d.ts +0 -2
  179. package/core/modal/index.js +0 -1
  180. package/core/modal/modal-menu-context.d.ts +0 -5
  181. package/core/modal/modal-menu-context.js +0 -10
  182. package/core/modal/modal.component.d.ts +0 -3
  183. package/core/modal/modal.component.js +0 -97
  184. package/core/modal/modal.mixin.d.ts +0 -7
  185. package/core/modal/modal.mixin.js +0 -4
  186. package/core/modal/modal.props.d.ts +0 -16
  187. package/core/modal/modal.props.js +0 -1
  188. package/core/modal/modal.styles.d.ts +0 -22
  189. package/core/modal/modal.styles.js +0 -51
  190. package/core/modal/modal.utils.d.ts +0 -1
  191. package/core/modal/modal.utils.js +0 -4
  192. package/core/modal/types/index.d.ts +0 -1
  193. package/core/modal/types/index.js +0 -1
  194. package/core/modal/types/size.d.ts +0 -7
  195. package/core/modal/types/size.js +0 -7
  196. package/core/modal-actions/index.d.ts +0 -2
  197. package/core/modal-actions/index.js +0 -1
  198. package/core/modal-actions/modal-actions.component.d.ts +0 -3
  199. package/core/modal-actions/modal-actions.component.js +0 -18
  200. package/core/modal-actions/modal-actions.props.d.ts +0 -8
  201. package/core/modal-actions/modal-actions.props.js +0 -1
  202. package/core/modal-actions/modal-actions.styles.d.ts +0 -7
  203. package/core/modal-actions/modal-actions.styles.js +0 -17
  204. package/core/modal-actions/types/align.d.ts +0 -5
  205. package/core/modal-actions/types/align.js +0 -5
  206. package/core/modal-actions/types/index.d.ts +0 -1
  207. package/core/modal-actions/types/index.js +0 -1
  208. package/core/modal-content/index.d.ts +0 -2
  209. package/core/modal-content/index.js +0 -1
  210. package/core/modal-content/modal-content.component.d.ts +0 -3
  211. package/core/modal-content/modal-content.component.js +0 -15
  212. package/core/modal-content/modal-content.props.d.ts +0 -4
  213. package/core/modal-content/modal-content.props.js +0 -1
  214. package/core/modal-content/modal-content.styles.d.ts +0 -6
  215. package/core/modal-content/modal-content.styles.js +0 -12
  216. package/core/modal-title/index.d.ts +0 -2
  217. package/core/modal-title/index.js +0 -1
  218. package/core/modal-title/modal-title.component.d.ts +0 -6
  219. package/core/modal-title/modal-title.component.js +0 -37
  220. package/core/modal-title/modal-title.props.d.ts +0 -14
  221. package/core/modal-title/modal-title.props.js +0 -1
  222. package/core/modal-title/modal-title.styles.d.ts +0 -31
  223. package/core/modal-title/modal-title.styles.js +0 -64
  224. package/core/modal-title/types/index.d.ts +0 -1
  225. package/core/modal-title/types/index.js +0 -1
  226. package/core/modal-title/types/variant.d.ts +0 -4
  227. package/core/modal-title/types/variant.js +0 -4
  228. package/core/pagination/index.d.ts +0 -2
  229. package/core/pagination/index.js +0 -1
  230. package/core/pagination/pagination.component.d.ts +0 -3
  231. package/core/pagination/pagination.component.js +0 -81
  232. package/core/pagination/pagination.props.d.ts +0 -11
  233. package/core/pagination/pagination.props.js +0 -1
  234. package/core/pagination/pagination.styles.d.ts +0 -19
  235. package/core/pagination/pagination.styles.js +0 -36
  236. package/core/popper/index.d.ts +0 -2
  237. package/core/popper/index.js +0 -1
  238. package/core/popper/popper.component.d.ts +0 -3
  239. package/core/popper/popper.component.js +0 -150
  240. package/core/popper/popper.mixin.d.ts +0 -17
  241. package/core/popper/popper.mixin.js +0 -5
  242. package/core/popper/popper.props.d.ts +0 -41
  243. package/core/popper/popper.props.js +0 -1
  244. package/core/popper/popper.styles.d.ts +0 -25
  245. package/core/popper/popper.styles.js +0 -48
  246. package/core/popper/popper.utils.d.ts +0 -1
  247. package/core/popper/popper.utils.js +0 -10
  248. package/core/popper/types/index.d.ts +0 -3
  249. package/core/popper/types/index.js +0 -3
  250. package/core/popper/types/phases.d.ts +0 -11
  251. package/core/popper/types/phases.js +0 -11
  252. package/core/popper/types/position.d.ts +0 -17
  253. package/core/popper/types/position.js +0 -17
  254. package/core/popper/types/strategy.d.ts +0 -4
  255. package/core/popper/types/strategy.js +0 -4
  256. package/core/radio/index.d.ts +0 -3
  257. package/core/radio/index.js +0 -2
  258. package/core/radio/radio.component.d.ts +0 -3
  259. package/core/radio/radio.component.js +0 -38
  260. package/core/radio/radio.mixin.d.ts +0 -13
  261. package/core/radio/radio.mixin.js +0 -13
  262. package/core/radio/radio.props.d.ts +0 -13
  263. package/core/radio/radio.props.js +0 -1
  264. package/core/radio/radio.styles.d.ts +0 -19
  265. package/core/radio/radio.styles.js +0 -44
  266. package/core/radio/size.d.ts +0 -4
  267. package/core/radio/size.js +0 -4
  268. package/core/radio-group/index.d.ts +0 -2
  269. package/core/radio-group/index.js +0 -1
  270. package/core/radio-group/radio-group.component.d.ts +0 -3
  271. package/core/radio-group/radio-group.component.js +0 -48
  272. package/core/radio-group/radio-group.props.d.ts +0 -15
  273. package/core/radio-group/radio-group.props.js +0 -1
  274. package/core/radio-group/radio-group.styles.d.ts +0 -14
  275. package/core/radio-group/radio-group.styles.js +0 -30
  276. package/core/switcher/index.d.ts +0 -3
  277. package/core/switcher/index.js +0 -2
  278. package/core/switcher/switcher-size.d.ts +0 -5
  279. package/core/switcher/switcher.component.d.ts +0 -3
  280. package/core/switcher/switcher.component.js +0 -54
  281. package/core/switcher/switcher.mixin.d.ts +0 -21
  282. package/core/switcher/switcher.mixin.js +0 -17
  283. package/core/switcher/switcher.props.d.ts +0 -14
  284. package/core/switcher/switcher.props.js +0 -1
  285. package/core/switcher/switcher.styles.d.ts +0 -27
  286. package/core/switcher/switcher.styles.js +0 -54
  287. package/core/switcher/switcher.utils.d.ts +0 -4
  288. package/core/switcher/switcher.utils.js +0 -37
  289. package/core/switcher-group/index.d.ts +0 -2
  290. package/core/switcher-group/index.js +0 -1
  291. package/core/switcher-group/switcher-group.component.d.ts +0 -3
  292. package/core/switcher-group/switcher-group.component.js +0 -41
  293. package/core/switcher-group/switcher-group.props.d.ts +0 -13
  294. package/core/switcher-group/switcher-group.props.js +0 -1
  295. package/core/switcher-group/switcher-group.styles.d.ts +0 -10
  296. package/core/switcher-group/switcher-group.styles.js +0 -30
  297. package/core/tab/index.d.ts +0 -2
  298. package/core/tab/index.js +0 -1
  299. package/core/tab/tab.component.d.ts +0 -6
  300. package/core/tab/tab.component.js +0 -52
  301. package/core/tab/tab.mixin.d.ts +0 -11
  302. package/core/tab/tab.mixin.js +0 -15
  303. package/core/tab/tab.props.d.ts +0 -15
  304. package/core/tab/tab.props.js +0 -1
  305. package/core/tab/tab.styles.d.ts +0 -26
  306. package/core/tab/tab.styles.js +0 -61
  307. package/core/tab/types/index.d.ts +0 -1
  308. package/core/tab/types/index.js +0 -1
  309. package/core/tab/types/size.d.ts +0 -5
  310. package/core/tab-panel/index.d.ts +0 -2
  311. package/core/tab-panel/index.js +0 -1
  312. package/core/tab-panel/tab-panel.component.d.ts +0 -3
  313. package/core/tab-panel/tab-panel.component.js +0 -18
  314. package/core/tab-panel/tab-panel.props.d.ts +0 -6
  315. package/core/tab-panel/tab-panel.props.js +0 -1
  316. package/core/tab-panel/tab-panel.styles.d.ts +0 -6
  317. package/core/tab-panel/tab-panel.styles.js +0 -12
  318. package/core/upload-input/index.d.ts +0 -2
  319. package/core/upload-input/index.js +0 -1
  320. package/core/upload-input/upload-input.component.d.ts +0 -3
  321. package/core/upload-input/upload-input.component.js +0 -68
  322. package/core/upload-input/upload-input.props.d.ts +0 -9
  323. package/core/upload-input/upload-input.props.js +0 -1
  324. package/core/upload-input/upload-input.styles.d.ts +0 -11
  325. package/core/upload-input/upload-input.styles.js +0 -53
  326. package/hooks/README.md +0 -26
  327. package/hooks/use-controlled.d.ts +0 -1
  328. package/hooks/use-controlled.js +0 -20
  329. package/hooks/use-debounce.d.ts +0 -2
  330. package/hooks/use-debounce.js +0 -19
  331. package/hooks/use-drag.d.ts +0 -5
  332. package/hooks/use-drag.js +0 -37
  333. package/hooks/use-enhanced-effect.d.ts +0 -3
  334. package/hooks/use-enhanced-effect.js +0 -3
  335. package/hooks/use-event-callback.d.ts +0 -4
  336. package/hooks/use-event-callback.js +0 -19
  337. package/hooks/use-pagination.d.ts +0 -3
  338. package/hooks/use-pagination.js +0 -106
  339. package/hooks/use-portal.d.ts +0 -14
  340. package/hooks/use-portal.js +0 -75
  341. package/theme/README.md +0 -46
  342. package/theme/entity/index.d.ts +0 -1
  343. package/theme/entity/index.js +0 -1
  344. package/theme/entity/theme.d.ts +0 -34
  345. package/theme/hooks/index.d.ts +0 -2
  346. package/theme/hooks/index.js +0 -2
  347. package/theme/hooks/use-media-query.d.ts +0 -1
  348. package/theme/hooks/use-media-query.js +0 -27
  349. package/theme/hooks/use-theme.d.ts +0 -2
  350. package/theme/hooks/use-theme.js +0 -4
  351. package/theme/index.d.ts +0 -3
  352. package/theme/index.js +0 -1
  353. package/theme/roots/breakpoints/entity/breakpoints-map.d.ts +0 -8
  354. package/theme/roots/breakpoints/entity/breakpoints.d.ts +0 -73
  355. package/theme/roots/breakpoints/entity/create-breakpoints.d.ts +0 -3
  356. package/theme/roots/breakpoints/entity/create-breakpoints.js +0 -65
  357. package/theme/roots/breakpoints/entity/default-breakpoints.d.ts +0 -26
  358. package/theme/roots/breakpoints/entity/default-breakpoints.js +0 -22
  359. package/theme/roots/breakpoints/entity/index.d.ts +0 -3
  360. package/theme/roots/breakpoints/entity/index.js +0 -2
  361. package/theme/roots/breakpoints/index.d.ts +0 -3
  362. package/theme/roots/breakpoints/index.js +0 -1
  363. package/theme/roots/common-styles.d.ts +0 -2
  364. package/theme/roots/common-styles.js +0 -6
  365. package/theme/roots/index.d.ts +0 -2
  366. package/theme/roots/index.js +0 -2
  367. package/theme/roots/palette/entity/colors-map.d.ts +0 -4
  368. package/theme/roots/palette/entity/default-palette.d.ts +0 -282
  369. package/theme/roots/palette/entity/default-palette.js +0 -22
  370. package/theme/roots/palette/entity/index.d.ts +0 -2
  371. package/theme/roots/palette/entity/index.js +0 -2
  372. package/theme/roots/palette/index.d.ts +0 -2
  373. package/theme/roots/palette/index.js +0 -1
  374. package/theme/roots/shadows/entity/default-shadows.d.ts +0 -16
  375. package/theme/roots/shadows/entity/default-shadows.js +0 -5
  376. package/theme/roots/shadows/entity/index.d.ts +0 -2
  377. package/theme/roots/shadows/entity/index.js +0 -2
  378. package/theme/roots/shadows/entity/shadows-map.d.ts +0 -4
  379. package/theme/roots/shadows/index.d.ts +0 -2
  380. package/theme/roots/shadows/index.js +0 -1
  381. package/theme/roots/shape/index.d.ts +0 -1
  382. package/theme/roots/shape/index.js +0 -1
  383. package/theme/roots/shape/shape.props.d.ts +0 -5
  384. package/theme/roots/shape/shape.props.js +0 -1
  385. package/theme/roots/typography/entity/default-typography.d.ts +0 -398
  386. package/theme/roots/typography/entity/default-typography.js +0 -237
  387. package/theme/roots/typography/entity/index.d.ts +0 -1
  388. package/theme/roots/typography/entity/index.js +0 -1
  389. package/theme/roots/typography/index.d.ts +0 -3
  390. package/theme/roots/typography/index.js +0 -2
  391. package/theme/roots/typography/typography.component.d.ts +0 -2
  392. package/theme/roots/typography/typography.component.js +0 -7
  393. package/theme/roots/typography/typography.props.d.ts +0 -15
  394. package/theme/roots/typography/typography.props.js +0 -1
  395. package/theme/theme-provider/index.d.ts +0 -2
  396. package/theme/theme-provider/index.js +0 -1
  397. package/theme/theme-provider/theme-provider.context.d.ts +0 -4
  398. package/theme/theme-provider/theme-provider.context.js +0 -48
  399. package/theme/theme-provider/theme-provider.props.d.ts +0 -6
  400. package/theme/theme-provider/theme-provider.props.js +0 -1
  401. package/utils/README.md +0 -11
  402. package/utils/functions/apply-display-names.d.ts +0 -6
  403. package/utils/functions/apply-display-names.js +0 -12
  404. package/utils/functions/apply-polymorphic-function-prop.d.ts +0 -6
  405. package/utils/functions/apply-polymorphic-function-prop.js +0 -11
  406. package/utils/functions/color-picker/color-converters.d.ts +0 -11
  407. package/utils/functions/color-picker/color-converters.js +0 -159
  408. package/utils/functions/color-picker/map-number.d.ts +0 -1
  409. package/utils/functions/color-picker/map-number.js +0 -3
  410. package/utils/functions/color-picker/restrict-number.d.ts +0 -1
  411. package/utils/functions/color-picker/restrict-number.js +0 -8
  412. package/utils/functions/convert-to-string.d.ts +0 -1
  413. package/utils/functions/convert-to-string.js +0 -3
  414. package/utils/functions/escape-regexp.d.ts +0 -1
  415. package/utils/functions/escape-regexp.js +0 -3
  416. package/utils/functions/generate-class-names.d.ts +0 -1
  417. package/utils/functions/generate-class-names.js +0 -22
  418. package/utils/functions/get-elem-document-coords.d.ts +0 -6
  419. package/utils/functions/get-elem-document-coords.js +0 -21
  420. package/utils/functions/ignore-event.d.ts +0 -1
  421. package/utils/functions/ignore-event.js +0 -9
  422. package/utils/functions/index.d.ts +0 -14
  423. package/utils/functions/index.js +0 -15
  424. package/utils/functions/intrinsic-component.d.ts +0 -0
  425. package/utils/functions/intrinsic-component.js +0 -28
  426. package/utils/functions/object-keys.d.ts +0 -6
  427. package/utils/functions/object-keys.js +0 -6
  428. package/utils/functions/object-values.d.ts +0 -7
  429. package/utils/functions/object-values.js +0 -6
  430. package/utils/functions/on-click-by-mouse-down.d.ts +0 -2
  431. package/utils/functions/on-click-by-mouse-down.js +0 -9
  432. package/utils/functions/scrollbar.d.ts +0 -2
  433. package/utils/functions/scrollbar.js +0 -6
  434. package/utils/functions/set-ref.d.ts +0 -8
  435. package/utils/functions/set-ref.js +0 -13
  436. package/utils/functions/slider/utils.d.ts +0 -47
  437. package/utils/functions/slider/utils.js +0 -124
  438. package/utils/functions/use-fork-ref.d.ts +0 -2
  439. package/utils/functions/use-fork-ref.js +0 -18
  440. package/utils/types/color/icon-button-color.d.ts +0 -5
  441. package/utils/types/color/icon-button-color.js +0 -5
  442. package/utils/types/color/index.d.ts +0 -2
  443. package/utils/types/color/index.js +0 -2
  444. package/utils/types/color/input-background-color.d.ts +0 -4
  445. package/utils/types/color/input-background-color.js +0 -4
  446. package/utils/types/css/align.d.ts +0 -11
  447. package/utils/types/css/align.js +0 -11
  448. package/utils/types/css/breakpoint.d.ts +0 -18
  449. package/utils/types/css/breakpoint.js +0 -18
  450. package/utils/types/css/direction.d.ts +0 -8
  451. package/utils/types/css/direction.js +0 -4
  452. package/utils/types/css/index.d.ts +0 -4
  453. package/utils/types/css/index.js +0 -4
  454. package/utils/types/css/position.d.ts +0 -6
  455. package/utils/types/css/position.js +0 -6
  456. package/utils/types/index.d.ts +0 -8
  457. package/utils/types/index.js +0 -3
  458. package/utils/types/intrinsic-component.d.ts +0 -1
  459. package/utils/types/keys.d.ts +0 -4
  460. package/utils/types/palette/color.d.ts +0 -133
  461. package/utils/types/palette/color.js +0 -133
  462. package/utils/types/palette/index.d.ts +0 -1
  463. package/utils/types/palette/index.js +0 -1
  464. package/utils/types/position/index.d.ts +0 -1
  465. package/utils/types/position/index.js +0 -1
  466. package/utils/types/position/position.d.ts +0 -6
  467. package/utils/types/position/position.js +0 -6
  468. package/utils/types/prop-types/index.d.ts +0 -1
  469. package/utils/types/prop-types/index.js +0 -1
  470. package/utils/types/prop-types/record.d.ts +0 -1
  471. package/utils/types/prop-types/record.js +0 -6
  472. package/utils/types/shadows/index.d.ts +0 -1
  473. package/utils/types/shadows/index.js +0 -1
  474. package/utils/types/shadows/shadows.d.ts +0 -14
  475. package/utils/types/shadows/shadows.js +0 -14
  476. package/utils/types/shape/border-radius-size.d.ts +0 -5
  477. package/utils/types/shape/border-radius-size.js +0 -5
  478. package/utils/types/shape/index.d.ts +0 -1
  479. package/utils/types/shape/index.js +0 -1
  480. package/utils/types/size/index.d.ts +0 -1
  481. package/utils/types/size/index.js +0 -1
  482. package/utils/types/size/input-size.d.ts +0 -4
  483. package/utils/types/size/input-size.js +0 -4
  484. package/utils/types/stylable-component.d.ts +0 -7
  485. package/utils/types/typography/font-variant.d.ts +0 -58
  486. package/utils/types/typography/font-variant.js +0 -58
  487. package/utils/types/typography/font-weight.d.ts +0 -11
  488. package/utils/types/typography/font-weight.js +0 -11
  489. package/utils/types/typography/index.d.ts +0 -4
  490. package/utils/types/typography/index.js +0 -4
  491. package/utils/types/typography/text-align.d.ts +0 -5
  492. package/utils/types/typography/text-align.js +0 -5
  493. package/utils/types/typography/text-decoration.d.ts +0 -5
  494. package/utils/types/typography/text-decoration.js +0 -5
  495. package/utils/types/with.d.ts +0 -4
  496. /package/{core/accordion-details/accordion-details.props.js → tooltip/tooltip.types.js} +0 -0
  497. /package/{utils/types → types}/values.d.ts +0 -0
  498. /package/utils/{functions/shadcn-utils.d.ts → cn.d.ts} +0 -0
  499. /package/utils/{functions/shadcn-utils.js → cn.js} +0 -0
@@ -1,2 +0,0 @@
1
- export { default } from './dots-navigation.component';
2
- export type { DotsNavigationProps } from './dots-navigation.props';
@@ -1 +0,0 @@
1
- export { default } from './dots-navigation.component';
@@ -1,2 +0,0 @@
1
- export { default } from './input.component';
2
- export type { InputProps } from './input.props';
@@ -1 +0,0 @@
1
- export { default } from './input.component';
@@ -1,3 +0,0 @@
1
- import type { InputProps } from './input.props';
2
- declare const Input: ({ inputType, children, iconStart, iconEnd, iconChange, inputActions, clearIcon, iconClickStart, iconClickEnd, clearIconClick, size, className, style, fullWidth, readOnly, disabled, hideCopyIcon, focusOnMount, focusOnClick, isEllipsis, copyTextMessage, copySuccessIcon, error, renderTags, showPlaceholder, InputProps: InputPropsData, ref, ...rest }: InputProps) => JSX.Element;
3
- export default Input;
@@ -1,293 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
- import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
- var _excluded = ["inputType", "children", "iconStart", "iconEnd", "iconChange", "inputActions", "clearIcon", "iconClickStart", "iconClickEnd", "clearIconClick", "size", "className", "style", "fullWidth", "readOnly", "disabled", "hideCopyIcon", "focusOnMount", "focusOnClick", "isEllipsis", "copyTextMessage", "copySuccessIcon", "error", "renderTags", "showPlaceholder", "InputProps", "ref"];
5
- import CopyOutline from '@scaleflex/icons-tw/copy-outline';
6
- import EyeClosed from '@scaleflex/icons-tw/eye-closed';
7
- import EyeOpen from '@scaleflex/icons-tw/eye-open';
8
- import Success from '@scaleflex/icons-tw/success';
9
- import React, { useEffect, useRef, useState } from 'react';
10
- import { cn } from '../../utils/functions/shadcn-utils';
11
- import { InputSize } from '../../utils/types';
12
- import { handleCopyIcon } from './input.utils';
13
- import { Type } from './types';
14
- var getIconSize = function getIconSize(sizeName, iconType) {
15
- switch (sizeName) {
16
- case InputSize.Md:
17
- return iconType === 'start' ? 15 : 14;
18
- case InputSize.Sm:
19
- default:
20
- return iconType === 'start' ? 13 : 10;
21
- }
22
- };
23
- var getPasswordIconSize = function getPasswordIconSize(sizeName) {
24
- switch (sizeName) {
25
- case InputSize.Md:
26
- return 16;
27
- case InputSize.Sm:
28
- default:
29
- return 14;
30
- }
31
- };
32
- var Input = function Input(_ref) {
33
- var _rest$selectedItems;
34
- var inputType = _ref.inputType,
35
- children = _ref.children,
36
- iconStart = _ref.iconStart,
37
- iconEnd = _ref.iconEnd,
38
- iconChange = _ref.iconChange,
39
- inputActions = _ref.inputActions,
40
- clearIcon = _ref.clearIcon,
41
- iconClickStart = _ref.iconClickStart,
42
- iconClickEnd = _ref.iconClickEnd,
43
- clearIconClick = _ref.clearIconClick,
44
- _ref$size = _ref.size,
45
- size = _ref$size === void 0 ? InputSize.Md : _ref$size,
46
- className = _ref.className,
47
- style = _ref.style,
48
- _ref$fullWidth = _ref.fullWidth,
49
- fullWidth = _ref$fullWidth === void 0 ? false : _ref$fullWidth,
50
- _ref$readOnly = _ref.readOnly,
51
- readOnly = _ref$readOnly === void 0 ? false : _ref$readOnly,
52
- _ref$disabled = _ref.disabled,
53
- disabled = _ref$disabled === void 0 ? false : _ref$disabled,
54
- _ref$hideCopyIcon = _ref.hideCopyIcon,
55
- hideCopyIcon = _ref$hideCopyIcon === void 0 ? false : _ref$hideCopyIcon,
56
- _ref$focusOnMount = _ref.focusOnMount,
57
- focusOnMount = _ref$focusOnMount === void 0 ? false : _ref$focusOnMount,
58
- _ref$focusOnClick = _ref.focusOnClick,
59
- focusOnClick = _ref$focusOnClick === void 0 ? true : _ref$focusOnClick,
60
- _ref$isEllipsis = _ref.isEllipsis,
61
- isEllipsis = _ref$isEllipsis === void 0 ? false : _ref$isEllipsis,
62
- _ref$copyTextMessage = _ref.copyTextMessage,
63
- copyTextMessage = _ref$copyTextMessage === void 0 ? 'Copied!' : _ref$copyTextMessage,
64
- _ref$copySuccessIcon = _ref.copySuccessIcon,
65
- copySuccessIcon = _ref$copySuccessIcon === void 0 ? /*#__PURE__*/React.createElement(Success, {
66
- size: 16
67
- }) : _ref$copySuccessIcon,
68
- _ref$error = _ref.error,
69
- error = _ref$error === void 0 ? false : _ref$error,
70
- renderTags = _ref.renderTags,
71
- showPlaceholder = _ref.showPlaceholder,
72
- InputPropsData = _ref.InputProps,
73
- ref = _ref.ref,
74
- rest = _objectWithoutProperties(_ref, _excluded);
75
- var _useState = useState(false),
76
- _useState2 = _slicedToArray(_useState, 2),
77
- isHovering = _useState2[0],
78
- setIsHovering = _useState2[1];
79
- var _useState3 = useState(false),
80
- _useState4 = _slicedToArray(_useState3, 2),
81
- showCopyMessage = _useState4[0],
82
- setShowCopyMessage = _useState4[1];
83
- var _useState5 = useState(false),
84
- _useState6 = _slicedToArray(_useState5, 2),
85
- isVisible = _useState6[0],
86
- setIsVisible = _useState6[1];
87
- var inputRef = useRef(null);
88
- var isSelectedItems = (_rest$selectedItems = rest.selectedItems) === null || _rest$selectedItems === void 0 ? void 0 : _rest$selectedItems.length;
89
- var placeholder = rest.value || isSelectedItems ? '' : rest.placeholder;
90
- var showCopyIcon = isHovering && readOnly && rest.value.length > 0 && !hideCopyIcon;
91
- var handleFocus = function handleFocus() {
92
- var _inputRef$current;
93
- if (disabled || readOnly) return;
94
- showPlaceholder === null || showPlaceholder === void 0 || showPlaceholder(false);
95
- (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.focus();
96
- };
97
- useEffect(function () {
98
- if (focusOnMount) {
99
- handleFocus();
100
- }
101
- }, []);
102
- useEffect(function () {
103
- setTimeout(function () {
104
- return setShowCopyMessage(false);
105
- }, 2000);
106
- }, [showCopyMessage]);
107
- var handleEntering = function handleEntering() {
108
- setTimeout(function () {
109
- setIsHovering(true);
110
- }, 150);
111
- };
112
- var handleLeaving = function handleLeaving() {
113
- setTimeout(function () {
114
- setIsHovering(false);
115
- }, 200);
116
- };
117
- var handleIconClick = function handleIconClick(event, type) {
118
- if (disabled || readOnly) return;
119
- if (focusOnClick) {
120
- handleFocus();
121
- }
122
- if (type === 'start') {
123
- if (iconClickStart) {
124
- iconClickStart(event);
125
- }
126
- } else if (type === 'end') {
127
- if (iconClickEnd) {
128
- iconClickEnd(event);
129
- }
130
- } else if (clearIconClick) {
131
- var _inputRef$current2;
132
- event.stopPropagation();
133
- (_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 || _inputRef$current2.blur();
134
- clearIconClick(event);
135
- }
136
- };
137
- var handleInputChange = function handleInputChange(event) {
138
- var _rest$onChange;
139
- var value = event.target.value;
140
- if (value !== null && value !== void 0 && value.startsWith('-0')) {
141
- return;
142
- }
143
- (_rest$onChange = rest.onChange) === null || _rest$onChange === void 0 || _rest$onChange.call(rest, event);
144
- };
145
- var renderIcon = function renderIcon(_icon, type) {
146
- return _icon ? /*#__PURE__*/React.createElement("span", {
147
- className: cn('renderIcon', 'text-icons-primary', 'flex', 'shrink-0', "".concat((iconClickStart || iconClickEnd) && !disabled && !readOnly ? 'pointer' : 'default'), "".concat(type === 'end' ? 'text-icons-secondary' : ''), "".concat(disabled && '!text-textplaceholder')),
148
- onClick: function onClick(event) {
149
- return handleIconClick(event, type);
150
- }
151
- }, typeof _icon === 'function' ? _icon({
152
- size: getIconSize(size, type)
153
- }) : _icon) : undefined;
154
- };
155
- var renderClearIcon = function renderClearIcon() {
156
- return disabled || readOnly || !clearIcon ? undefined : /*#__PURE__*/React.createElement("span", {
157
- className: "renderClearIcon text-icons-primary flex cursor-pointer",
158
- onClick: function onClick(event) {
159
- return handleIconClick(event, 'clear');
160
- }
161
- }, typeof clearIcon === 'function' ? clearIcon({
162
- size: getIconSize(size, 'clear')
163
- }) : clearIcon);
164
- };
165
- var copyIconClasses = 'text-icons-secondary flex cursor-pointer';
166
- var renderCopyIcon = function renderCopyIcon(icon) {
167
- return showCopyIcon ? /*#__PURE__*/React.createElement("span", {
168
- className: copyIconClasses,
169
- onClick: function onClick() {
170
- return handleCopyIcon(rest.value, setShowCopyMessage);
171
- }
172
- }, icon) : undefined;
173
- };
174
- var toggleVisibility = function toggleVisibility(event) {
175
- event.stopPropagation();
176
- setIsVisible(!isVisible);
177
- };
178
- var renderPasswordIcon = function renderPasswordIcon() {
179
- return /*#__PURE__*/React.createElement("span", {
180
- className: copyIconClasses,
181
- onClick: function onClick(event) {
182
- return toggleVisibility(event);
183
- }
184
- }, isVisible ? /*#__PURE__*/React.createElement(EyeClosed, {
185
- size: getPasswordIconSize(size)
186
- }) : /*#__PURE__*/React.createElement(EyeOpen, {
187
- size: getPasswordIconSize(size)
188
- }));
189
- };
190
- var getInputType = function getInputType() {
191
- if (!inputType && rest !== null && rest !== void 0 && rest.type) {
192
- return rest === null || rest === void 0 ? void 0 : rest.type;
193
- }
194
- if (inputType === Type.Password && !isVisible) {
195
- return Type.Password;
196
- }
197
- return Type.Text;
198
- };
199
- var renderField = function renderField() {
200
- return /*#__PURE__*/React.createElement("div", {
201
- className: cn('inline-flex h-full max-h-30 w-full flex-wrap gap-2 [&::-webkit-scrollbar]:hidden', "".concat(isSelectedItems ? 'overflow-y-auto' : ''))
202
- }, renderTags && renderTags(), /*#__PURE__*/React.createElement("input", _extends({
203
- className: cn('file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex min-w-0 rounded-md text-base transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm', 'aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive', '[&::placeholder]:text-textplaceholder m-0 block w-full min-w-fit border-0 bg-transparent p-0 text-inherit outline-none', "".concat(isEllipsis ? 'text-ellipsis' : ''))
204
- }, rest, {
205
- "data-slot": "input",
206
- placeholder: placeholder,
207
- ref: inputRef,
208
- readOnly: Boolean(readOnly),
209
- type: getInputType(),
210
- onChange: handleInputChange
211
- })));
212
- };
213
- var renderCopyText = function renderCopyText() {
214
- var bottomValue = size === InputSize.Md ? 'bottom-11' : 'bottom-9';
215
- return /*#__PURE__*/React.createElement("div", {
216
- className: "shadow-(0px 2px 6px) shadow-large-shadow absolute right-0 flex max-h-8 items-center gap-1.5 rounded-sm bg-white ".concat(bottomValue, " ")
217
- }, /*#__PURE__*/React.createElement("span", {
218
- className: "text-icons-primary flex"
219
- }, copySuccessIcon), /*#__PURE__*/React.createElement("span", {
220
- className: "text-textprimary flex flex-nowrap"
221
- }, copyTextMessage), /*#__PURE__*/React.createElement("span", {
222
- className: "text-textprimary flex whitespace-nowrap"
223
- }, copyTextMessage));
224
- };
225
- var renderInputActions = function renderInputActions(inputActions) {
226
- if (!inputActions) return;
227
- return /*#__PURE__*/React.createElement("div", {
228
- className: "box-border w-full pt-4"
229
- }, inputActions);
230
- };
231
-
232
- // ==========================
233
- // ==========================
234
-
235
- var divContainerWrapClassNames = cn(className, 'relative', 'flex', 'box-border', 'gap-2', 'cursor-text', 'transition-all', 'duration-100', 'ease-out', 'border-1', 'border-solid', 'rounded-sm', 'box-content', 'hover:[&_svg]:!text-secondary-hover');
236
- if (inputActions) {
237
- divContainerWrapClassNames = cn(divContainerWrapClassNames, 'items-stretch', 'column');
238
- } else {
239
- divContainerWrapClassNames = cn(divContainerWrapClassNames, 'row');
240
- }
241
- if (fullWidth) {
242
- divContainerWrapClassNames = cn(divContainerWrapClassNames, 'w-full');
243
- } else {
244
- divContainerWrapClassNames = cn(divContainerWrapClassNames, 'w-80'); // w-80 == 320px
245
- }
246
- if (readOnly || disabled) {
247
- divContainerWrapClassNames = cn(divContainerWrapClassNames, 'bg-background-hover');
248
- if (disabled) {
249
- divContainerWrapClassNames = cn(divContainerWrapClassNames, 'pointer-events-none', 'text-textplaceholder', 'border-borders-secondary');
250
- }
251
- if (readOnly) {
252
- divContainerWrapClassNames = cn(divContainerWrapClassNames, 'border-borders-item');
253
- }
254
-
255
- //.
256
- } else {
257
- // !readonly && !disabled
258
- divContainerWrapClassNames = cn(divContainerWrapClassNames, 'pointer-events-auto', 'bg-background-stateless', 'border-borders-primary-stateless', 'hover:bg-background-stateless', 'hover:border-borders-primary-hover', 'hover:[&_svg]:text-icons-primary',
259
- // &:hover svg { color: ... }
260
-
261
- 'focus-within:!bg-background-secondary', 'focus-within:border-accent-primary', 'focus-within:hover:border-accent-primary');
262
- }
263
- if (InputSize.Sm) {
264
- divContainerWrapClassNames = cn(divContainerWrapClassNames, 'py-2 px-3 h-8');
265
- }
266
- if (InputSize.Md) {
267
- divContainerWrapClassNames = cn(divContainerWrapClassNames, 'py-3 px-4 h-10');
268
- }
269
- if (isSelectedItems) {
270
- divContainerWrapClassNames = cn(divContainerWrapClassNames, 'h-fit');
271
- }
272
- if (error) {
273
- divContainerWrapClassNames = cn(divContainerWrapClassNames, 'bg-background-secondary', 'border-1', 'border-error');
274
- }
275
-
276
- // ==========================
277
- // ==========================
278
-
279
- var divContainerClassNames = cn('flex', 'items-center', 'w-full', 'gap-2', 'box-border');
280
- divContainerClassNames = cn(divContainerClassNames, '');
281
- return /*#__PURE__*/React.createElement("div", _extends({
282
- ref: ref,
283
- className: divContainerWrapClassNames,
284
- onMouseEnter: handleEntering,
285
- onMouseLeave: handleLeaving,
286
- style: style
287
- }, InputPropsData || {}), /*#__PURE__*/React.createElement("div", {
288
- className: divContainerClassNames
289
- }, renderIcon(iconStart, 'start'), renderField(), renderCopyIcon(/*#__PURE__*/React.createElement(CopyOutline, {
290
- size: getIconSize(size, 'copy')
291
- })), showCopyMessage && renderCopyText(), renderClearIcon(), inputType === Type.Password && renderPasswordIcon(), renderIcon(iconEnd, 'end'), renderIcon(iconChange, ''), children && /*#__PURE__*/React.createElement(React.Fragment, null, children)), renderInputActions(inputActions));
292
- };
293
- export default Input;
@@ -1,18 +0,0 @@
1
- import type { WithTheme } from '../../theme/entity';
2
- export declare const sizeInputMixin: {
3
- sm: string;
4
- md: string;
5
- };
6
- export declare const sizeCrossInputMixin: {
7
- sm: string;
8
- md: string;
9
- };
10
- export declare const fontSizeInputMixin: {
11
- sm: ({ theme: { typography: { font }, }, }: WithTheme) => import("styled-components").RuleSet<object>;
12
- md: ({ theme: { typography: { font }, }, }: WithTheme) => import("styled-components").RuleSet<object>;
13
- };
14
- export declare const sizeInputLabelMixin: {
15
- sm: ({ theme: { typography: { font }, }, }: WithTheme) => import("styled-components").RuleSet<object>;
16
- md: ({ theme: { typography: { font }, }, }: WithTheme) => import("styled-components").RuleSet<object>;
17
- };
18
- export declare const errorMixin: ({ theme: { palette } }: WithTheme) => import("styled-components").RuleSet<object>;
@@ -1,25 +0,0 @@
1
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- import { css } from 'styled-components';
3
- import { InputSize } from '../../utils/types';
4
- import { Color as PaletteColor } from '../../utils/types/palette';
5
- import { FontVariant as FV } from '../../utils/types/typography';
6
- export var sizeInputMixin = _defineProperty(_defineProperty({}, InputSize.Sm, "\n padding: 8px 12px;\n height: 32px;\n "), InputSize.Md, "\n padding: 11px 16px;\n height: 40px;\n ");
7
- export var sizeCrossInputMixin = _defineProperty(_defineProperty({}, InputSize.Sm, "\n padding: 4px 6px 4px 12px;\n max-height: 32px;\n "), InputSize.Md, "\n padding: 0px 4px 0px 16px;\n max-height: 40px;\n ");
8
- export var fontSizeInputMixin = _defineProperty(_defineProperty({}, InputSize.Sm, function (_ref) {
9
- var font = _ref.theme.typography.font;
10
- return css(["", ""], font[FV.InputMd]);
11
- }), InputSize.Md, function (_ref2) {
12
- var font = _ref2.theme.typography.font;
13
- return css(["", ""], font[FV.InputLg]);
14
- });
15
- export var sizeInputLabelMixin = _defineProperty(_defineProperty({}, InputSize.Sm, function (_ref3) {
16
- var font = _ref3.theme.typography.font;
17
- return css(font[FV.LabelSmall]);
18
- }), InputSize.Md, function (_ref4) {
19
- var font = _ref4.theme.typography.font;
20
- return css(font[FV.LabelMedium]);
21
- });
22
- export var errorMixin = function errorMixin(_ref5) {
23
- var palette = _ref5.theme.palette;
24
- return css(["background:", " !important;border:1px solid ", " !important;"], palette[PaletteColor.BackgroundSecondary], palette[PaletteColor.Error]);
25
- };
@@ -1,40 +0,0 @@
1
- import { IconProps } from '@scaleflex/icons-tw/icon.props';
2
- import React, { Ref } from 'react';
3
- import type { Values } from '../../utils/types';
4
- import { InputBackgroundColor, InputSize } from '../../utils/types';
5
- export type InputSizeType = Values<typeof InputSize>;
6
- export type InputBackgroundType = Values<typeof InputBackgroundColor>;
7
- export type IconFuncType = (props: IconProps) => React.ReactNode;
8
- export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> {
9
- readOnly?: boolean;
10
- disabled?: boolean;
11
- isEllipsis?: boolean;
12
- isHovering?: boolean;
13
- size?: InputSizeType;
14
- iconStart?: React.ReactNode | IconFuncType;
15
- iconEnd?: React.ReactNode | IconFuncType;
16
- inputActions?: React.ReactNode;
17
- iconChange?: React.ReactNode | IconFuncType;
18
- clearIcon?: React.ReactNode | IconFuncType;
19
- inputType?: string;
20
- type?: any;
21
- error?: boolean;
22
- fullWidth?: boolean;
23
- isSearchInput?: boolean;
24
- hideCopyIcon?: boolean;
25
- copyTextMessage?: string;
26
- copySuccessIcon?: React.ReactNode;
27
- value?: any;
28
- selectedItems?: any;
29
- isSelectedItems?: boolean;
30
- renderTags?: () => React.ReactNode;
31
- iconClickStart?: (event: Event) => void;
32
- iconClickEnd?: (event: Event) => void;
33
- clearIconClick?: (event: Event) => void;
34
- focusOnMount?: boolean;
35
- focusOnClick?: boolean;
36
- showPlaceholder?: (value: boolean) => void;
37
- placeholder?: string;
38
- InputProps?: React.HtmlHTMLAttributes<HTMLDivElement>;
39
- ref?: Ref<HTMLInputElement>;
40
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,78 +0,0 @@
1
- import type { InputProps } from './input.props';
2
- declare const Styled: {
3
- Input: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
- ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
5
- }>, never>, {
6
- $isSelectedItems?: boolean;
7
- $fullWidth?: boolean;
8
- $error?: boolean;
9
- $hasInputActions?: boolean;
10
- } & InputProps & {
11
- theme: import("styled-components").DefaultTheme;
12
- }>> & string;
13
- Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
14
- ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
15
- }>, never>, InputProps>> & string;
16
- Base: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
17
- ref?: ((instance: HTMLInputElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLInputElement> | null | undefined;
18
- }>, never>, {
19
- $isEllipsis?: boolean;
20
- } & {
21
- theme: import("styled-components").DefaultTheme;
22
- }>> & string;
23
- Icon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
24
- ref?: ((instance: HTMLSpanElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLSpanElement> | null | undefined;
25
- }>, never>, {
26
- $iconType: string;
27
- } & InputProps & {
28
- theme: import("styled-components").DefaultTheme;
29
- }>> & string;
30
- CopyIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
31
- ref?: ((instance: HTMLSpanElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLSpanElement> | null | undefined;
32
- }>, never>, {
33
- theme: import("styled-components").DefaultTheme;
34
- }>> & string;
35
- PasswordIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
36
- ref?: ((instance: HTMLSpanElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLSpanElement> | null | undefined;
37
- }>, never>, "theme"> & {
38
- theme: import("styled-components").DefaultTheme;
39
- }, import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
40
- ref?: ((instance: HTMLSpanElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLSpanElement> | null | undefined;
41
- }>, never>, "theme"> & {
42
- theme: import("styled-components").DefaultTheme;
43
- }>, never>, never>> & string;
44
- ClearIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
45
- ref?: ((instance: HTMLSpanElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLSpanElement> | null | undefined;
46
- }>, never>, {
47
- theme: import("styled-components").DefaultTheme;
48
- }>> & string;
49
- NotificationBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
50
- ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
51
- }>, never>, {
52
- isTextarea?: boolean;
53
- } & InputProps & {
54
- theme: import("styled-components").DefaultTheme;
55
- }>> & string;
56
- NotificationIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
57
- ref?: ((instance: HTMLSpanElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLSpanElement> | null | undefined;
58
- }>, never>, {
59
- theme: import("styled-components").DefaultTheme;
60
- }>> & string;
61
- NotificationText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
62
- ref?: ((instance: HTMLSpanElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLSpanElement> | null | undefined;
63
- }>, never>, {
64
- theme: import("styled-components").DefaultTheme;
65
- }>> & string;
66
- FieldWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
67
- ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
68
- }>, never>, {
69
- $isSelectedItems: boolean;
70
- }>> & string;
71
- InputActions: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
72
- ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
73
- }>, never>, never>> & string;
74
- InputContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
75
- ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
76
- }>, never>, never>> & string;
77
- };
78
- export default Styled;
@@ -1,148 +0,0 @@
1
- import styled, { css } from 'styled-components';
2
- import { applyDisplayNames, generateClassNames } from '../../utils/functions';
3
- import { InputSize } from '../../utils/types';
4
- import { Color as PColor } from '../../utils/types/palette';
5
- import { BorderRadiusSize as BRSize } from '../../utils/types/shape';
6
- import { FontVariant as FV } from '../../utils/types/typography';
7
- import { errorMixin, fontSizeInputMixin, sizeInputMixin } from './input.mixin';
8
- import { getInputBackgroundColor, getInputBorderColor, getInputTextColor } from './input.utils';
9
- var baseClassName = 'Input';
10
- var Icon = /*#__PURE__*/styled.span.attrs({
11
- className: generateClassNames(baseClassName, 'Icon')
12
- }).withConfig({
13
- componentId: "sc-p6n03x-0"
14
- })(function (_ref) {
15
- var iconClickStart = _ref.iconClickStart,
16
- iconClickEnd = _ref.iconClickEnd,
17
- disabled = _ref.disabled,
18
- readOnly = _ref.readOnly,
19
- $iconType = _ref.$iconType,
20
- palette = _ref.theme.palette;
21
- return css(["display:flex;color:", ";cursor:", ";flex-shrink:0;", ""], palette[PColor.IconsPrimary], (iconClickStart || iconClickEnd) && !disabled && !readOnly ? 'pointer' : 'default', $iconType === 'end' && css(["color:", ";"], palette[PColor.IconsSecondary]));
22
- });
23
- var CopyIcon = /*#__PURE__*/styled.span.attrs({
24
- className: generateClassNames(baseClassName, 'CopyIcon')
25
- }).withConfig({
26
- componentId: "sc-p6n03x-1"
27
- })(function (_ref2) {
28
- var palette = _ref2.theme.palette;
29
- return css(["display:flex;color:", ";cursor:pointer;"], palette[PColor.IconsSecondary]);
30
- });
31
- var PasswordIcon = /*#__PURE__*/styled(CopyIcon).attrs({
32
- className: generateClassNames(baseClassName, 'PasswordIcon')
33
- }).withConfig({
34
- componentId: "sc-p6n03x-2"
35
- })([""]);
36
- var Container = /*#__PURE__*/styled.div.attrs({
37
- className: generateClassNames(baseClassName, 'Container')
38
- }).withConfig({
39
- componentId: "sc-p6n03x-3"
40
- })(function () {
41
- return css(["display:block;color:inherit;font-size:inherit;width:100%;min-width:0;margin:0;padding:0;border:0;background-color:transparent;outline:none;"]);
42
- });
43
- var Base = /*#__PURE__*/styled.input.attrs({
44
- className: generateClassNames(baseClassName, 'Base')
45
- }).withConfig({
46
- componentId: "sc-p6n03x-4"
47
- })(function (_ref3) {
48
- var palette = _ref3.theme.palette,
49
- _ref3$$isEllipsis = _ref3.$isEllipsis,
50
- $isEllipsis = _ref3$$isEllipsis === void 0 ? false : _ref3$$isEllipsis;
51
- return css(["display:block;color:inherit;width:100%;min-width:fit-content;margin:0;padding:0;border:0;background-color:transparent;outline:none;", " &::placeholder{color:", ";}"], $isEllipsis && css(["text-overflow:ellipsis;"]), palette[PColor.TextPlaceholder]);
52
- });
53
- var Input = /*#__PURE__*/styled.div.attrs({
54
- className: generateClassNames(baseClassName, 'root')
55
- }).withConfig({
56
- componentId: "sc-p6n03x-5"
57
- })(function (_ref4) {
58
- var _ref4$size = _ref4.size,
59
- size = _ref4$size === void 0 ? InputSize.Md : _ref4$size,
60
- _ref4$$error = _ref4.$error,
61
- $error = _ref4$$error === void 0 ? false : _ref4$$error,
62
- _ref4$$fullWidth = _ref4.$fullWidth,
63
- $fullWidth = _ref4$$fullWidth === void 0 ? false : _ref4$$fullWidth,
64
- _ref4$readOnly = _ref4.readOnly,
65
- readOnly = _ref4$readOnly === void 0 ? false : _ref4$readOnly,
66
- _ref4$disabled = _ref4.disabled,
67
- disabled = _ref4$disabled === void 0 ? false : _ref4$disabled,
68
- _ref4$isHovering = _ref4.isHovering,
69
- isHovering = _ref4$isHovering === void 0 ? false : _ref4$isHovering,
70
- _ref4$$isSelectedItem = _ref4.$isSelectedItems,
71
- $isSelectedItems = _ref4$$isSelectedItem === void 0 ? false : _ref4$$isSelectedItem,
72
- _ref4$$hasInputAction = _ref4.$hasInputActions,
73
- $hasInputActions = _ref4$$hasInputAction === void 0 ? false : _ref4$$hasInputAction,
74
- theme = _ref4.theme;
75
- return css(["position:relative;display:flex;flex-direction:", ";", " box-sizing:border-box;column-gap:8px;cursor:text;transition:all 100ms ease-out;width:", ";pointer-events:", ";background-color:", ";border-radius:", ";border:1px solid ", ";color:", ";", " ", ";", "{", "}", " ", " &:hover{color:", ";}", ""], !$hasInputActions ? 'row' : 'column', $hasInputActions && 'align-items: stretch;', $fullWidth ? '100%' : '300px', disabled ? 'none' : 'auto', getInputBackgroundColor(readOnly, disabled), theme.shape.borderRadius[BRSize.Md], getInputBorderColor(readOnly, disabled), disabled ? theme.palette[PColor.TextPlaceholder] : theme.palette[PColor.TextPrimary], sizeInputMixin[size], $isSelectedItems && "\n height: fit-content;\n\n ".concat(Base, " {\n max-width: fit-content;\n min-width: 20px;\n flex-grow: 1;\n width: 40px;\n }\n "), Base, fontSizeInputMixin[size], !readOnly && !disabled && css(["&:focus-within{background-color:", "!important;border:1px solid ", ";&:hover{border:1px solid ", ";", "{color:", ";}}}", " &:hover{background-color:", ";border:1px solid ", ";", "{color:", ";}}"], theme.palette[PColor.BackgroundSecondary], theme.palette[PColor.AccentStateless], theme.palette[PColor.AccentStateless], Icon, theme.palette[PColor.IconsPrimary], isHovering && css(["", "{color:", ";}"], Icon, theme.palette[PColor.IconsPrimaryHover]), theme.palette[PColor.BackgroundStateless], theme.palette[PColor.BordersPrimaryHover], Icon, theme.palette[PColor.IconsPrimaryHover]), disabled && css(["", "{color:", ";}"], Icon, theme.palette[PColor.IconsMuted]), getInputTextColor(readOnly, disabled), $error && errorMixin);
76
- });
77
- var ClearIcon = /*#__PURE__*/styled.span.attrs({
78
- className: generateClassNames(baseClassName, 'ClearIcon')
79
- }).withConfig({
80
- componentId: "sc-p6n03x-6"
81
- })(function (_ref5) {
82
- var palette = _ref5.theme.palette;
83
- return css(["display:flex;cursor:pointer;color:", ";"], palette[PColor.IconsPrimary]);
84
- });
85
- var NotificationBox = /*#__PURE__*/styled.div.attrs({
86
- className: generateClassNames(baseClassName, 'NotificationBox')
87
- }).withConfig({
88
- componentId: "sc-p6n03x-7"
89
- })(function (_ref6) {
90
- var _ref6$size = _ref6.size,
91
- size = _ref6$size === void 0 ? InputSize.Md : _ref6$size,
92
- _ref6$isTextarea = _ref6.isTextarea,
93
- isTextarea = _ref6$isTextarea === void 0 ? false : _ref6$isTextarea,
94
- palette = _ref6.theme.palette;
95
- return css(["display:flex;position:absolute;align-items:center;max-height:34px;right:0px;padding:8px 12px;gap:6px;bottom:", ";box-shadow:0px 2px 6px ", ";background-color:", ";border-radius:4px;align-items:center;", ""], size === InputSize.Md ? '45px' : '35px', palette[PColor.LargeShadow], palette[PColor.BackgroundStateless], isTextarea && "\n bottom: ".concat(size === InputSize.Md ? 27 : 22, "px;\n right: ").concat(size === InputSize.Md ? 16 : 12, "px;\n "));
96
- });
97
- var NotificationIcon = /*#__PURE__*/styled.span.attrs({
98
- className: generateClassNames(baseClassName, 'NotificationIcon')
99
- }).withConfig({
100
- componentId: "sc-p6n03x-8"
101
- })(function (_ref7) {
102
- var palette = _ref7.theme.palette;
103
- return css(["display:flex;color:", ";"], palette[PColor.IconsPrimary]);
104
- });
105
- var NotificationText = /*#__PURE__*/styled.span.attrs({
106
- className: generateClassNames(baseClassName, 'NotificationText')
107
- }).withConfig({
108
- componentId: "sc-p6n03x-9"
109
- })(function (_ref8) {
110
- var _ref8$theme = _ref8.theme,
111
- palette = _ref8$theme.palette,
112
- font = _ref8$theme.typography.font;
113
- return css(["display:flex;white-space:nowrap;", ";color:", ";"], font[FV.TextSmall], palette[PColor.TextPrimary]);
114
- });
115
- var FieldWrapper = /*#__PURE__*/styled.div.attrs({
116
- className: generateClassNames(baseClassName, 'fieldWrapper')
117
- }).withConfig({
118
- componentId: "sc-p6n03x-10"
119
- })(function (_ref9) {
120
- var $isSelectedItems = _ref9.$isSelectedItems;
121
- return css(["width:100%;height:100%;display:inline-flex;flex-wrap:wrap;gap:8px;max-height:120px;", ";::-webkit-scrollbar{display:none;}"], $isSelectedItems && "\n overflow-y: auto;\n ");
122
- });
123
- var InputActions = /*#__PURE__*/styled.div.attrs({
124
- className: generateClassNames(baseClassName, 'inputActions')
125
- }).withConfig({
126
- componentId: "sc-p6n03x-11"
127
- })(["padding-top:16px;width:100%;box-sizing:border-box;"]);
128
- var InputContent = /*#__PURE__*/styled.div.attrs({
129
- className: generateClassNames(baseClassName, 'inputContent')
130
- }).withConfig({
131
- componentId: "sc-p6n03x-12"
132
- })(["display:flex;align-items:center;width:100%;column-gap:8px;box-sizing:border-box;"]);
133
- var Styled = applyDisplayNames({
134
- Input: Input,
135
- Container: Container,
136
- Base: Base,
137
- Icon: Icon,
138
- CopyIcon: CopyIcon,
139
- PasswordIcon: PasswordIcon,
140
- ClearIcon: ClearIcon,
141
- NotificationBox: NotificationBox,
142
- NotificationIcon: NotificationIcon,
143
- NotificationText: NotificationText,
144
- FieldWrapper: FieldWrapper,
145
- InputActions: InputActions,
146
- InputContent: InputContent
147
- });
148
- export default Styled;