@pareto-engineering/design-system 4.0.0-alpha.63 → 4.0.0-alpha.65

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 (286) hide show
  1. package/dist/cjs/f/FormInput/FormInput.js +13 -43
  2. package/dist/cjs/f/common/Label/Label.js +3 -18
  3. package/dist/cjs/f/common/Label/styles.scss +0 -5
  4. package/dist/cjs/f/common/index.js +1 -21
  5. package/dist/cjs/f/fields/Checkbox/Checkbox.js +10 -20
  6. package/dist/cjs/f/fields/Checkbox/styles.scss +7 -5
  7. package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +8 -21
  8. package/dist/cjs/f/fields/ChoicesInput/styles.scss +44 -41
  9. package/dist/cjs/f/fields/EditorInput/EditorInput.js +8 -33
  10. package/dist/cjs/f/fields/EditorInput/styles.scss +92 -90
  11. package/dist/cjs/f/fields/LinkInput/LinkInput.js +10 -20
  12. package/dist/cjs/f/fields/LinkInput/styles.scss +52 -51
  13. package/dist/cjs/f/fields/QueryChoices/QueryChoices.js +2 -26
  14. package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +0 -24
  15. package/dist/cjs/f/fields/QueryCombobox/common/Combobox/Combobox.js +10 -17
  16. package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +13 -19
  17. package/dist/cjs/f/fields/QueryCombobox/styles.scss +11 -4
  18. package/dist/cjs/f/fields/QuerySelect/QuerySelect.js +2 -10
  19. package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +11 -33
  20. package/dist/cjs/f/fields/RatingsInput/styles.scss +5 -1
  21. package/dist/cjs/f/fields/SelectInput/SelectInput.js +9 -33
  22. package/dist/cjs/f/fields/SelectInput/styles.scss +5 -2
  23. package/dist/cjs/f/fields/TextInput/TextInput.js +15 -37
  24. package/dist/cjs/f/fields/TextInput/styles.scss +37 -30
  25. package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +11 -35
  26. package/dist/cjs/f/fields/TextareaInput/styles.scss +30 -27
  27. package/dist/cjs/f/fields/index.js +1 -26
  28. package/dist/es/f/FormInput/FormInput.js +3 -33
  29. package/dist/es/f/common/Description/Description.js +1 -1
  30. package/dist/es/f/common/Label/Label.js +4 -20
  31. package/dist/es/f/common/Label/styles.scss +0 -5
  32. package/dist/es/f/common/index.js +1 -3
  33. package/dist/es/f/fields/Checkbox/Checkbox.js +11 -20
  34. package/dist/es/f/fields/Checkbox/styles.scss +7 -5
  35. package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +9 -22
  36. package/dist/es/f/fields/ChoicesInput/styles.scss +44 -41
  37. package/dist/es/f/fields/EditorInput/EditorInput.js +9 -34
  38. package/dist/es/f/fields/EditorInput/styles.scss +92 -90
  39. package/dist/es/f/fields/LinkInput/LinkInput.js +11 -19
  40. package/dist/es/f/fields/LinkInput/styles.scss +52 -51
  41. package/dist/es/f/fields/QueryChoices/QueryChoices.js +2 -26
  42. package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +1 -25
  43. package/dist/es/f/fields/QueryCombobox/common/Combobox/Combobox.js +11 -18
  44. package/dist/es/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +14 -20
  45. package/dist/es/f/fields/QueryCombobox/styles.scss +11 -4
  46. package/dist/es/f/fields/QuerySelect/QuerySelect.js +2 -10
  47. package/dist/es/f/fields/RatingsInput/RatingsInput.js +12 -35
  48. package/dist/es/f/fields/RatingsInput/styles.scss +5 -1
  49. package/dist/es/f/fields/SelectInput/SelectInput.js +10 -34
  50. package/dist/es/f/fields/SelectInput/styles.scss +5 -2
  51. package/dist/es/f/fields/TextInput/TextInput.js +16 -36
  52. package/dist/es/f/fields/TextInput/styles.scss +37 -30
  53. package/dist/es/f/fields/TextareaInput/TextareaInput.js +11 -35
  54. package/dist/es/f/fields/TextareaInput/styles.scss +30 -27
  55. package/dist/es/f/fields/index.js +1 -2
  56. package/package.json +3 -3
  57. package/src/stories/f/Checkbox.stories.jsx +13 -21
  58. package/src/stories/f/ChoicesInput.stories.jsx +12 -27
  59. package/src/stories/f/EditorInput.stories.jsx +7 -14
  60. package/src/stories/f/LinkInput.stories.jsx +15 -22
  61. package/src/stories/f/QueryChoices.stories.jsx +12 -19
  62. package/src/stories/f/QueryCombobox.stories.jsx +16 -24
  63. package/src/stories/f/QuerySelect.stories.jsx +12 -19
  64. package/src/stories/f/RatingsInput.stories.jsx +7 -14
  65. package/src/stories/f/SelectInput.stories.jsx +12 -19
  66. package/src/stories/f/TextInput.stories.jsx +16 -23
  67. package/src/stories/f/TextareaInput.stories.jsx +7 -14
  68. package/src/ui/f/FormInput/FormInput.jsx +12 -57
  69. package/src/ui/f/common/Description/Description.jsx +2 -2
  70. package/src/ui/f/common/Label/Label.jsx +2 -20
  71. package/src/ui/f/common/Label/styles.scss +0 -5
  72. package/src/ui/f/common/index.js +0 -2
  73. package/src/ui/f/fields/Checkbox/Checkbox.jsx +22 -33
  74. package/src/ui/f/fields/Checkbox/styles.scss +7 -5
  75. package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +43 -57
  76. package/src/ui/f/fields/ChoicesInput/styles.scss +44 -41
  77. package/src/ui/f/fields/EditorInput/EditorInput.jsx +13 -40
  78. package/src/ui/f/fields/EditorInput/styles.scss +92 -90
  79. package/src/ui/f/fields/LinkInput/LinkInput.jsx +35 -44
  80. package/src/ui/f/fields/LinkInput/styles.scss +52 -51
  81. package/src/ui/f/fields/QueryChoices/QueryChoices.jsx +0 -28
  82. package/src/ui/f/fields/QueryCombobox/QueryCombobox.jsx +2 -30
  83. package/src/ui/f/fields/QueryCombobox/common/Combobox/Combobox.jsx +32 -41
  84. package/src/ui/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.jsx +55 -62
  85. package/src/ui/f/fields/QueryCombobox/styles.scss +11 -4
  86. package/src/ui/f/fields/QuerySelect/QuerySelect.jsx +0 -8
  87. package/src/ui/f/fields/RatingsInput/RatingsInput.jsx +16 -46
  88. package/src/ui/f/fields/RatingsInput/styles.scss +5 -1
  89. package/src/ui/f/fields/SelectInput/SelectInput.jsx +28 -58
  90. package/src/ui/f/fields/SelectInput/styles.scss +5 -2
  91. package/src/ui/f/fields/TextInput/TextInput.jsx +24 -49
  92. package/src/ui/f/fields/TextInput/styles.scss +37 -30
  93. package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +28 -57
  94. package/src/ui/f/fields/TextareaInput/styles.scss +30 -27
  95. package/src/ui/f/fields/index.js +0 -1
  96. package/tests/__snapshots__/Storyshots.test.js.snap +609 -8434
  97. package/dist/cjs/f/common/InputWrapper/InputWrapper.js +0 -73
  98. package/dist/cjs/f/common/InputWrapper/index.js +0 -13
  99. package/dist/cjs/f/common/InputWrapper/styles.scss +0 -13
  100. package/dist/cjs/f/common/V2/Description/Description.js +0 -76
  101. package/dist/cjs/f/common/V2/Description/index.js +0 -13
  102. package/dist/cjs/f/common/V2/Description/styles.scss +0 -10
  103. package/dist/cjs/f/common/V2/Label/Label.js +0 -84
  104. package/dist/cjs/f/common/V2/Label/index.js +0 -13
  105. package/dist/cjs/f/common/V2/Label/styles.scss +0 -9
  106. package/dist/cjs/f/common/V2/index.js +0 -19
  107. package/dist/cjs/f/fields/V2/Checkbox/Checkbox.js +0 -122
  108. package/dist/cjs/f/fields/V2/Checkbox/index.js +0 -13
  109. package/dist/cjs/f/fields/V2/Checkbox/styles.scss +0 -16
  110. package/dist/cjs/f/fields/V2/ChoicesInput/ChoicesInput.js +0 -154
  111. package/dist/cjs/f/fields/V2/ChoicesInput/common/Choice/Choice.js +0 -104
  112. package/dist/cjs/f/fields/V2/ChoicesInput/common/Choice/index.js +0 -13
  113. package/dist/cjs/f/fields/V2/ChoicesInput/common/index.js +0 -12
  114. package/dist/cjs/f/fields/V2/ChoicesInput/index.js +0 -13
  115. package/dist/cjs/f/fields/V2/ChoicesInput/styles.scss +0 -79
  116. package/dist/cjs/f/fields/V2/EditorInput/EditorInput.js +0 -197
  117. package/dist/cjs/f/fields/V2/EditorInput/common/Toolbar.js +0 -257
  118. package/dist/cjs/f/fields/V2/EditorInput/common/TreeViewPlugin.js +0 -18
  119. package/dist/cjs/f/fields/V2/EditorInput/common/index.js +0 -20
  120. package/dist/cjs/f/fields/V2/EditorInput/index.js +0 -13
  121. package/dist/cjs/f/fields/V2/EditorInput/styles.scss +0 -149
  122. package/dist/cjs/f/fields/V2/LinkInput/LinkInput.js +0 -156
  123. package/dist/cjs/f/fields/V2/LinkInput/index.js +0 -13
  124. package/dist/cjs/f/fields/V2/LinkInput/styles.scss +0 -90
  125. package/dist/cjs/f/fields/V2/QueryChoices/QueryChoices.js +0 -137
  126. package/dist/cjs/f/fields/V2/QueryChoices/index.js +0 -13
  127. package/dist/cjs/f/fields/V2/QueryCombobox/QueryCombobox.js +0 -229
  128. package/dist/cjs/f/fields/V2/QueryCombobox/common/Combobox/Combobox.js +0 -236
  129. package/dist/cjs/f/fields/V2/QueryCombobox/common/Combobox/index.js +0 -13
  130. package/dist/cjs/f/fields/V2/QueryCombobox/common/Menu/Menu.js +0 -83
  131. package/dist/cjs/f/fields/V2/QueryCombobox/common/Menu/index.js +0 -13
  132. package/dist/cjs/f/fields/V2/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +0 -300
  133. package/dist/cjs/f/fields/V2/QueryCombobox/common/MultipleCombobox/index.js +0 -13
  134. package/dist/cjs/f/fields/V2/QueryCombobox/common/index.js +0 -26
  135. package/dist/cjs/f/fields/V2/QueryCombobox/index.js +0 -13
  136. package/dist/cjs/f/fields/V2/QueryCombobox/styles.scss +0 -127
  137. package/dist/cjs/f/fields/V2/QuerySelect/QuerySelect.js +0 -198
  138. package/dist/cjs/f/fields/V2/QuerySelect/index.js +0 -13
  139. package/dist/cjs/f/fields/V2/RatingsInput/RatingsInput.js +0 -130
  140. package/dist/cjs/f/fields/V2/RatingsInput/common/Rating/Rating.js +0 -117
  141. package/dist/cjs/f/fields/V2/RatingsInput/common/Rating/index.js +0 -13
  142. package/dist/cjs/f/fields/V2/RatingsInput/common/index.js +0 -12
  143. package/dist/cjs/f/fields/V2/RatingsInput/index.js +0 -13
  144. package/dist/cjs/f/fields/V2/RatingsInput/styles.scss +0 -48
  145. package/dist/cjs/f/fields/V2/SelectInput/SelectInput.js +0 -154
  146. package/dist/cjs/f/fields/V2/SelectInput/index.js +0 -13
  147. package/dist/cjs/f/fields/V2/SelectInput/styles.scss +0 -87
  148. package/dist/cjs/f/fields/V2/TextInput/TextInput.js +0 -155
  149. package/dist/cjs/f/fields/V2/TextInput/index.js +0 -13
  150. package/dist/cjs/f/fields/V2/TextInput/styles.scss +0 -78
  151. package/dist/cjs/f/fields/V2/TextareaInput/TextareaInput.js +0 -152
  152. package/dist/cjs/f/fields/V2/TextareaInput/index.js +0 -13
  153. package/dist/cjs/f/fields/V2/TextareaInput/styles.scss +0 -53
  154. package/dist/cjs/f/fields/V2/index.js +0 -82
  155. package/dist/es/f/common/InputWrapper/InputWrapper.js +0 -61
  156. package/dist/es/f/common/InputWrapper/index.js +0 -2
  157. package/dist/es/f/common/InputWrapper/styles.scss +0 -13
  158. package/dist/es/f/common/V2/Description/Description.js +0 -68
  159. package/dist/es/f/common/V2/Description/index.js +0 -2
  160. package/dist/es/f/common/V2/Description/styles.scss +0 -10
  161. package/dist/es/f/common/V2/Label/Label.js +0 -76
  162. package/dist/es/f/common/V2/Label/index.js +0 -2
  163. package/dist/es/f/common/V2/Label/styles.scss +0 -9
  164. package/dist/es/f/common/V2/index.js +0 -2
  165. package/dist/es/f/fields/V2/Checkbox/Checkbox.js +0 -114
  166. package/dist/es/f/fields/V2/Checkbox/index.js +0 -2
  167. package/dist/es/f/fields/V2/Checkbox/styles.scss +0 -16
  168. package/dist/es/f/fields/V2/ChoicesInput/ChoicesInput.js +0 -148
  169. package/dist/es/f/fields/V2/ChoicesInput/common/Choice/Choice.js +0 -97
  170. package/dist/es/f/fields/V2/ChoicesInput/common/Choice/index.js +0 -2
  171. package/dist/es/f/fields/V2/ChoicesInput/common/index.js +0 -1
  172. package/dist/es/f/fields/V2/ChoicesInput/index.js +0 -2
  173. package/dist/es/f/fields/V2/ChoicesInput/styles.scss +0 -79
  174. package/dist/es/f/fields/V2/EditorInput/EditorInput.js +0 -192
  175. package/dist/es/f/fields/V2/EditorInput/common/Toolbar.js +0 -246
  176. package/dist/es/f/fields/V2/EditorInput/common/TreeViewPlugin.js +0 -11
  177. package/dist/es/f/fields/V2/EditorInput/common/index.js +0 -2
  178. package/dist/es/f/fields/V2/EditorInput/index.js +0 -2
  179. package/dist/es/f/fields/V2/EditorInput/styles.scss +0 -149
  180. package/dist/es/f/fields/V2/LinkInput/LinkInput.js +0 -148
  181. package/dist/es/f/fields/V2/LinkInput/index.js +0 -2
  182. package/dist/es/f/fields/V2/LinkInput/styles.scss +0 -90
  183. package/dist/es/f/fields/V2/QueryChoices/QueryChoices.js +0 -126
  184. package/dist/es/f/fields/V2/QueryChoices/index.js +0 -2
  185. package/dist/es/f/fields/V2/QueryCombobox/QueryCombobox.js +0 -221
  186. package/dist/es/f/fields/V2/QueryCombobox/common/Combobox/Combobox.js +0 -229
  187. package/dist/es/f/fields/V2/QueryCombobox/common/Combobox/index.js +0 -2
  188. package/dist/es/f/fields/V2/QueryCombobox/common/Menu/Menu.js +0 -73
  189. package/dist/es/f/fields/V2/QueryCombobox/common/Menu/index.js +0 -2
  190. package/dist/es/f/fields/V2/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +0 -293
  191. package/dist/es/f/fields/V2/QueryCombobox/common/MultipleCombobox/index.js +0 -2
  192. package/dist/es/f/fields/V2/QueryCombobox/common/index.js +0 -3
  193. package/dist/es/f/fields/V2/QueryCombobox/index.js +0 -2
  194. package/dist/es/f/fields/V2/QueryCombobox/styles.scss +0 -127
  195. package/dist/es/f/fields/V2/QuerySelect/QuerySelect.js +0 -186
  196. package/dist/es/f/fields/V2/QuerySelect/index.js +0 -2
  197. package/dist/es/f/fields/V2/RatingsInput/RatingsInput.js +0 -124
  198. package/dist/es/f/fields/V2/RatingsInput/common/Rating/Rating.js +0 -109
  199. package/dist/es/f/fields/V2/RatingsInput/common/Rating/index.js +0 -2
  200. package/dist/es/f/fields/V2/RatingsInput/common/index.js +0 -1
  201. package/dist/es/f/fields/V2/RatingsInput/index.js +0 -2
  202. package/dist/es/f/fields/V2/RatingsInput/styles.scss +0 -48
  203. package/dist/es/f/fields/V2/SelectInput/SelectInput.js +0 -146
  204. package/dist/es/f/fields/V2/SelectInput/index.js +0 -2
  205. package/dist/es/f/fields/V2/SelectInput/styles.scss +0 -87
  206. package/dist/es/f/fields/V2/TextInput/TextInput.js +0 -147
  207. package/dist/es/f/fields/V2/TextInput/index.js +0 -2
  208. package/dist/es/f/fields/V2/TextInput/styles.scss +0 -78
  209. package/dist/es/f/fields/V2/TextareaInput/TextareaInput.js +0 -146
  210. package/dist/es/f/fields/V2/TextareaInput/index.js +0 -2
  211. package/dist/es/f/fields/V2/TextareaInput/styles.scss +0 -53
  212. package/dist/es/f/fields/V2/index.js +0 -11
  213. package/src/stories/f/v2/Checkbox.stories.jsx +0 -102
  214. package/src/stories/f/v2/ChoicesInput.stories.jsx +0 -139
  215. package/src/stories/f/v2/EditorInput.stories.jsx +0 -81
  216. package/src/stories/f/v2/LinkInput.stories.jsx +0 -93
  217. package/src/stories/f/v2/QueryChoices.stories.jsx +0 -144
  218. package/src/stories/f/v2/QueryCombobox.stories.jsx +0 -301
  219. package/src/stories/f/v2/QuerySelect.stories.jsx +0 -150
  220. package/src/stories/f/v2/RatingsInput.stories.jsx +0 -77
  221. package/src/stories/f/v2/SelectInput.stories.jsx +0 -95
  222. package/src/stories/f/v2/TextInput.stories.jsx +0 -120
  223. package/src/stories/f/v2/TextareaInput.stories.jsx +0 -107
  224. package/src/stories/f/v2/__generated__/FormInputAllTaskStatusesQuery.graphql.js +0 -122
  225. package/src/stories/f/v2/__generated__/FormInputAllTeamsQuery.graphql.js +0 -139
  226. package/src/stories/f/v2/__generated__/QueryChoicesAllTaskStatusesQuery.graphql.js +0 -122
  227. package/src/stories/f/v2/__generated__/QueryComboboxAllTeamsQuery.graphql.js +0 -139
  228. package/src/stories/f/v2/__generated__/QuerySelectAllTaskStatusesQuery.graphql.js +0 -122
  229. package/src/ui/f/common/InputWrapper/InputWrapper.jsx +0 -83
  230. package/src/ui/f/common/InputWrapper/index.js +0 -2
  231. package/src/ui/f/common/InputWrapper/styles.scss +0 -13
  232. package/src/ui/f/common/V2/Description/Description.jsx +0 -94
  233. package/src/ui/f/common/V2/Description/index.js +0 -2
  234. package/src/ui/f/common/V2/Description/styles.scss +0 -10
  235. package/src/ui/f/common/V2/Label/Label.jsx +0 -102
  236. package/src/ui/f/common/V2/Label/index.js +0 -2
  237. package/src/ui/f/common/V2/Label/styles.scss +0 -9
  238. package/src/ui/f/common/V2/index.js +0 -2
  239. package/src/ui/f/fields/V2/Checkbox/Checkbox.jsx +0 -146
  240. package/src/ui/f/fields/V2/Checkbox/index.js +0 -2
  241. package/src/ui/f/fields/V2/Checkbox/styles.scss +0 -16
  242. package/src/ui/f/fields/V2/ChoicesInput/ChoicesInput.jsx +0 -183
  243. package/src/ui/f/fields/V2/ChoicesInput/common/Choice/Choice.jsx +0 -125
  244. package/src/ui/f/fields/V2/ChoicesInput/common/Choice/index.js +0 -2
  245. package/src/ui/f/fields/V2/ChoicesInput/common/index.js +0 -1
  246. package/src/ui/f/fields/V2/ChoicesInput/index.js +0 -2
  247. package/src/ui/f/fields/V2/ChoicesInput/styles.scss +0 -79
  248. package/src/ui/f/fields/V2/EditorInput/EditorInput.jsx +0 -244
  249. package/src/ui/f/fields/V2/EditorInput/common/Toolbar.jsx +0 -356
  250. package/src/ui/f/fields/V2/EditorInput/common/TreeViewPlugin.jsx +0 -16
  251. package/src/ui/f/fields/V2/EditorInput/common/index.jsx +0 -2
  252. package/src/ui/f/fields/V2/EditorInput/index.js +0 -2
  253. package/src/ui/f/fields/V2/EditorInput/styles.scss +0 -149
  254. package/src/ui/f/fields/V2/LinkInput/LinkInput.jsx +0 -187
  255. package/src/ui/f/fields/V2/LinkInput/index.js +0 -2
  256. package/src/ui/f/fields/V2/LinkInput/styles.scss +0 -90
  257. package/src/ui/f/fields/V2/QueryChoices/QueryChoices.jsx +0 -153
  258. package/src/ui/f/fields/V2/QueryChoices/index.js +0 -2
  259. package/src/ui/f/fields/V2/QueryCombobox/QueryCombobox.jsx +0 -254
  260. package/src/ui/f/fields/V2/QueryCombobox/common/Combobox/Combobox.jsx +0 -276
  261. package/src/ui/f/fields/V2/QueryCombobox/common/Combobox/index.js +0 -2
  262. package/src/ui/f/fields/V2/QueryCombobox/common/Menu/Menu.jsx +0 -103
  263. package/src/ui/f/fields/V2/QueryCombobox/common/Menu/index.js +0 -2
  264. package/src/ui/f/fields/V2/QueryCombobox/common/MultipleCombobox/MultipleCombobox.jsx +0 -362
  265. package/src/ui/f/fields/V2/QueryCombobox/common/MultipleCombobox/index.js +0 -2
  266. package/src/ui/f/fields/V2/QueryCombobox/common/index.js +0 -3
  267. package/src/ui/f/fields/V2/QueryCombobox/index.js +0 -2
  268. package/src/ui/f/fields/V2/QueryCombobox/styles.scss +0 -127
  269. package/src/ui/f/fields/V2/QuerySelect/QuerySelect.jsx +0 -220
  270. package/src/ui/f/fields/V2/QuerySelect/index.js +0 -2
  271. package/src/ui/f/fields/V2/RatingsInput/RatingsInput.jsx +0 -152
  272. package/src/ui/f/fields/V2/RatingsInput/common/Rating/Rating.jsx +0 -142
  273. package/src/ui/f/fields/V2/RatingsInput/common/Rating/index.js +0 -2
  274. package/src/ui/f/fields/V2/RatingsInput/common/index.js +0 -1
  275. package/src/ui/f/fields/V2/RatingsInput/index.js +0 -2
  276. package/src/ui/f/fields/V2/RatingsInput/styles.scss +0 -48
  277. package/src/ui/f/fields/V2/SelectInput/SelectInput.jsx +0 -187
  278. package/src/ui/f/fields/V2/SelectInput/index.js +0 -2
  279. package/src/ui/f/fields/V2/SelectInput/styles.scss +0 -87
  280. package/src/ui/f/fields/V2/TextInput/TextInput.jsx +0 -192
  281. package/src/ui/f/fields/V2/TextInput/index.js +0 -2
  282. package/src/ui/f/fields/V2/TextInput/styles.scss +0 -78
  283. package/src/ui/f/fields/V2/TextareaInput/TextareaInput.jsx +0 -180
  284. package/src/ui/f/fields/V2/TextareaInput/index.js +0 -2
  285. package/src/ui/f/fields/V2/TextareaInput/styles.scss +0 -53
  286. package/src/ui/f/fields/V2/index.js +0 -11
@@ -28,15 +28,11 @@ export default {
28
28
  ),
29
29
  ],
30
30
  argTypes:{
31
- color :{ control: 'text' },
32
- label :{ control: 'text' },
33
- labelColor :{ control: 'text' },
34
- isLoading :{ control: 'boolean' },
35
- optional :{ control: 'boolean' },
36
- labelSpan :{ control: 'number' },
37
- inputSpan :{ control: 'number' },
38
- desktopLabelSpan:{ control: 'number' },
39
- desktopInputSpan:{ control: 'number' },
31
+ color :{ control: 'text' },
32
+ label :{ control: 'text' },
33
+ labelColor:{ control: 'text' },
34
+ isLoading :{ control: 'boolean' },
35
+ optional :{ control: 'boolean' },
40
36
  },
41
37
  }
42
38
  const statuses = [
@@ -99,7 +95,13 @@ const Template = ({ isLoading, defaultFormikState, ...args }) => {
99
95
  }
100
96
 
101
97
  const Content = () => (
102
- <div className="grid">
98
+ <div
99
+ style={{
100
+ display :'flex',
101
+ flexDirection:'column',
102
+ gap :'1rem',
103
+ }}
104
+ >
103
105
  <QuerySelect
104
106
  name="status"
105
107
  label="Select Task Status"
@@ -146,12 +148,3 @@ export const Optional = Template.bind({})
146
148
  Optional.args = {
147
149
  optional:true,
148
150
  }
149
-
150
- export const OnSingleRow = Template.bind({})
151
- OnSingleRow.args = {
152
- ...Base.args,
153
- labelSpan :4,
154
- inputSpan :4,
155
- desktopLabelSpan:4,
156
- desktopInputSpan:10,
157
- }
@@ -33,15 +33,17 @@ export default {
33
33
  labelMax :{ control: 'text' },
34
34
  labelMin :{ control: 'text' },
35
35
  optional :{ control: 'boolean' },
36
- labelSpan :{ control: 'number' },
37
- inputSpan :{ control: 'number' },
38
- desktopLabelSpan :{ control: 'number' },
39
- desktopInputSpan :{ control: 'number' },
40
36
  },
41
37
  }
42
38
 
43
39
  const Template = (args) => (
44
- <div className="grid">
40
+ <div
41
+ style={{
42
+ display :'flex',
43
+ flexDirection:'column',
44
+ gap :'1rem',
45
+ }}
46
+ >
45
47
  <RatingsInput {...args} />
46
48
  <FormDebugger />
47
49
  </div>
@@ -73,12 +75,3 @@ Labels.args = {
73
75
  labelMin :'not satisfied.',
74
76
  displayRatingsLabel:true,
75
77
  }
76
-
77
- export const OnSingleRow = Template.bind({})
78
- OnSingleRow.args = {
79
- ...Base.args,
80
- labelSpan :4,
81
- inputSpan :4,
82
- desktopLabelSpan:4,
83
- desktopInputSpan:10,
84
- }
@@ -22,20 +22,22 @@ export default {
22
22
  ),
23
23
  ],
24
24
  argTypes:{
25
- color :{ control: 'text' },
26
- label :{ control: 'text' },
27
- labelColor :{ control: 'text' },
28
- disabled :{ control: 'boolean' },
29
- optional :{ control: 'boolean' },
30
- labelSpan :{ control: 'number' },
31
- inputSpan :{ control: 'number' },
32
- desktopLabelSpan:{ control: 'number' },
33
- desktopInputSpan:{ control: 'number' },
25
+ color :{ control: 'text' },
26
+ label :{ control: 'text' },
27
+ labelColor:{ control: 'text' },
28
+ disabled :{ control: 'boolean' },
29
+ optional :{ control: 'boolean' },
34
30
  },
35
31
  }
36
32
 
37
33
  const Template = (args) => (
38
- <div className="grid">
34
+ <div
35
+ style={{
36
+ display :'flex',
37
+ flexDirection:'column',
38
+ gap :'1rem',
39
+ }}
40
+ >
39
41
  <SelectInput {...args} />
40
42
  <FormDebugger />
41
43
  </div>
@@ -91,12 +93,3 @@ DisabledWithDescriptionSelectInput.args = {
91
93
  disabled :true,
92
94
  description:'This is a description',
93
95
  }
94
-
95
- export const OnSingleRow = Template.bind({})
96
- OnSingleRow.args = {
97
- ...Base.args,
98
- labelSpan :4,
99
- inputSpan :4,
100
- desktopLabelSpan:4,
101
- desktopInputSpan:10,
102
- }
@@ -27,25 +27,27 @@ export default {
27
27
  ],
28
28
  argTypes:{
29
29
  // backgroundColor:{ control: 'color' },
30
- placeholder :{ control: 'text' },
31
- autoComplete :{ control: 'select', options: ['off', 'on'] },
32
- disabled :{ control: 'boolean' },
33
- type :{ control: 'text' },
34
- name :{ control: 'text' },
35
- label :{ control: 'text' },
36
- labelColor :{ control: 'text' },
37
- optional :{ control: 'boolean' },
38
- symbol :{ control: 'text' },
39
- labelSpan :{ control: 'number' },
40
- inputSpan :{ control: 'number' },
41
- desktopLabelSpan:{ control: 'number' },
42
- desktopInputSpan:{ control: 'number' },
30
+ placeholder :{ control: 'text' },
31
+ autoComplete:{ control: 'select', options: ['off', 'on'] },
32
+ disabled :{ control: 'boolean' },
33
+ type :{ control: 'text' },
34
+ name :{ control: 'text' },
35
+ label :{ control: 'text' },
36
+ labelColor :{ control: 'text' },
37
+ optional :{ control: 'boolean' },
38
+ symbol :{ control: 'text' },
43
39
  },
44
40
  }
45
41
 
46
42
  // eslint-disable-next-line react/prop-types
47
43
  const Template = (args) => (
48
- <div className="grid">
44
+ <div
45
+ style={{
46
+ display :'flex',
47
+ flexDirection:'column',
48
+ gap :'1rem',
49
+ }}
50
+ >
49
51
  <TextInput {...args} />
50
52
  <FormDebugger />
51
53
  </div>
@@ -116,12 +118,3 @@ HasSymbol.args = {
116
118
  ...Base.args,
117
119
  symbol:"'$'",
118
120
  }
119
-
120
- export const OnSingleRow = Template.bind({})
121
- OnSingleRow.args = {
122
- ...Base.args,
123
- labelSpan :4,
124
- inputSpan :4,
125
- desktopLabelSpan:4,
126
- desktopInputSpan:10,
127
- }
@@ -32,15 +32,17 @@ export default {
32
32
  disabled :{ control: 'boolean' },
33
33
  labelAsDescription:{ control: 'boolean' },
34
34
  optional :{ control: 'boolean' },
35
- labelSpan :{ control: 'number' },
36
- inputSpan :{ control: 'number' },
37
- desktopLabelSpan :{ control: 'number' },
38
- desktopInputSpan :{ control: 'number' },
39
35
  },
40
36
  }
41
37
 
42
38
  const Template = (args) => (
43
- <div className="grid">
39
+ <div
40
+ style={{
41
+ display :'flex',
42
+ flexDirection:'column',
43
+ gap :'1rem',
44
+ }}
45
+ >
44
46
  <TextareaInput {...args} />
45
47
  <FormDebugger />
46
48
  </div>
@@ -103,12 +105,3 @@ DisableResize.args = {
103
105
  ...Base.args,
104
106
  resize:'none',
105
107
  }
106
-
107
- export const OnSingleRow = Template.bind({})
108
- OnSingleRow.args = {
109
- ...Base.args,
110
- labelSpan :4,
111
- inputSpan :4,
112
- desktopLabelSpan:4,
113
- desktopInputSpan:10,
114
- }
@@ -6,28 +6,17 @@ import { memo } from 'react'
6
6
  import PropTypes from 'prop-types'
7
7
 
8
8
  import {
9
- TextInput as TextInputV1,
10
- TextareaInput as TextareaInputV1,
11
- ChoicesInput as ChoicesInputV1,
12
- SelectInput as SelectInputV1,
13
- QueryCombobox as QueryComboboxV1,
14
- QuerySelect as QuerySelectV1,
15
- RatingsInput as RatingsInputV1,
16
- Checkbox as CheckboxV1,
17
- QueryChoices as QueryChoicesV1,
18
- LinkInput as LinkInputV1,
19
- EditorInput as EditorInputV1,
20
- TextInputV2,
21
- TextareaInputV2,
22
- ChoicesInputV2,
23
- SelectInputV2,
24
- QueryComboboxV2,
25
- QuerySelectV2,
26
- RatingsInputV2,
27
- CheckboxV2,
28
- QueryChoicesV2,
29
- LinkInputV2,
30
- EditorInputV2,
9
+ TextInput,
10
+ TextareaInput,
11
+ ChoicesInput,
12
+ SelectInput,
13
+ QueryCombobox,
14
+ QuerySelect,
15
+ RatingsInput,
16
+ Checkbox,
17
+ QueryChoices,
18
+ LinkInput,
19
+ EditorInput,
31
20
  } from '../fields'
32
21
 
33
22
  import './styles.scss'
@@ -46,7 +35,6 @@ const FormInput = ({
46
35
  type,
47
36
  extraTypes,
48
37
  disabled,
49
- isVersionTwo,
50
38
  ...otherProps
51
39
  }) => {
52
40
  const newClassName = [
@@ -54,32 +42,6 @@ const FormInput = ({
54
42
  componentClassName,
55
43
  ].filter(Boolean).join(' ')
56
44
 
57
- let TextInput = TextInputV1
58
- let TextareaInput = TextareaInputV1
59
- let ChoicesInput = ChoicesInputV1
60
- let SelectInput = SelectInputV1
61
- let QueryCombobox = QueryComboboxV1
62
- let QuerySelect = QuerySelectV1
63
- let RatingsInput = RatingsInputV1
64
- let Checkbox = CheckboxV1
65
- let QueryChoices = QueryChoicesV1
66
- let LinkInput = LinkInputV1
67
- let EditorInput = EditorInputV1
68
-
69
- if (isVersionTwo) {
70
- TextInput = TextInputV2
71
- TextareaInput = TextareaInputV2
72
- ChoicesInput = ChoicesInputV2
73
- SelectInput = SelectInputV2
74
- QueryCombobox = QueryComboboxV2
75
- QuerySelect = QuerySelectV2
76
- RatingsInput = RatingsInputV2
77
- Checkbox = CheckboxV2
78
- QueryChoices = QueryChoicesV2
79
- LinkInput = LinkInputV2
80
- EditorInput = EditorInputV2
81
- }
82
-
83
45
  if (type === 'textarea') {
84
46
  return (
85
47
  <TextareaInput
@@ -234,17 +196,10 @@ FormInput.propTypes = {
234
196
  * Whether the Form input input should be disabled
235
197
  */
236
198
  disabled :PropTypes.bool,
237
-
238
- /**
239
- * Whethe the Form input is version 2
240
- */
241
- isVersionTwo:PropTypes.bool,
242
-
243
199
  }
244
200
 
245
201
  FormInput.defaultProps = {
246
- disabled :false,
247
- isVersionTwo:false,
202
+ disabled:false,
248
203
  }
249
204
 
250
205
  export default memo(FormInput)
@@ -7,10 +7,10 @@ import PropTypes from 'prop-types'
7
7
 
8
8
  import styleNames from '@pareto-engineering/bem/exports'
9
9
 
10
- import './styles.scss'
11
-
12
10
  // Local Definitions
13
11
 
12
+ import './styles.scss'
13
+
14
14
  const baseClassName = styleNames.base
15
15
 
16
16
  const componentClassName = 'description'
@@ -5,9 +5,8 @@ import PropTypes from 'prop-types'
5
5
 
6
6
  import styleNames from '@pareto-engineering/bem/exports'
7
7
 
8
- import './styles.scss'
9
-
10
8
  // Local Definitions
9
+ import './styles.scss'
11
10
 
12
11
  const baseClassName = styleNames.base
13
12
 
@@ -25,8 +24,6 @@ const Label = ({
25
24
  color,
26
25
  optional,
27
26
  as:Wrapper,
28
- columnSpan,
29
- desktopColumnSpan,
30
27
  // ...otherProps
31
28
  }) => (
32
29
  <Wrapper
@@ -40,12 +37,7 @@ const Label = ({
40
37
  ]
41
38
  .filter((e) => e)
42
39
  .join(' ')}
43
- style={{
44
- ...style,
45
- '--column-span' :columnSpan || 'var(--columns)',
46
- '--column-span-md':desktopColumnSpan || 'var(--columns)',
47
- }}
48
- // {...otherProps}
40
+ style={style}
49
41
  >
50
42
  {children}
51
43
  {optional && ' (Optional)'}
@@ -91,16 +83,6 @@ Label.propTypes = {
91
83
  * Whether the input should have an optional tag
92
84
  */
93
85
  optional:PropTypes.bool,
94
-
95
- /**
96
- * How many columns the input should span
97
- */
98
- columnSpan:PropTypes.number,
99
-
100
- /**
101
- * How many columns the input should span on desktop
102
- */
103
- desktopColumnSpan:PropTypes.number,
104
86
  }
105
87
 
106
88
  Label.defaultProps = {
@@ -6,9 +6,4 @@
6
6
 
7
7
  .#{bem.$base}.form-label {
8
8
  color: var(--x);
9
- grid-column: span var(--column-span);
10
-
11
- @include mixins.media($from: $sm-md) {
12
- grid-column: span var(--column-span-md);
13
- }
14
9
  }
@@ -1,6 +1,4 @@
1
1
  export { Label as FormLabel } from './Label'
2
2
  export { Description as FormDescription } from './Description'
3
3
  export { Debugger as FormDebugger } from './Debugger'
4
- export { InputWrapper } from './InputWrapper'
5
4
  export * from './utils'
6
- export * from './V2'
@@ -7,11 +7,10 @@ import styleNames from '@pareto-engineering/bem/exports'
7
7
 
8
8
  import { useField } from 'formik'
9
9
 
10
- import { FormLabel, FormDescription, InputWrapper } from '../../common'
11
-
12
- import './styles.scss'
10
+ import { FormLabel, FormDescription } from '../../common'
13
11
 
14
12
  // Local Definitions
13
+ import './styles.scss'
15
14
 
16
15
  const baseClassName = styleNames.base
17
16
 
@@ -30,51 +29,41 @@ const Checkbox = ({
30
29
  disabled,
31
30
  optional,
32
31
  labelColor,
33
- labelSpan,
34
- desktopLabelSpan,
35
- inputSpan,
36
- desktopInputSpan,
37
32
  // ...otherProps
38
33
  }) => {
39
34
  const [field] = useField({ name, type: 'checkbox' })
40
35
 
41
36
  return (
42
- <>
37
+ <div
38
+ id={id}
39
+ className={[
40
+ baseClassName,
41
+ componentClassName,
42
+ userClassName,
43
+ ]
44
+ .filter((e) => e)
45
+ .join(' ')}
46
+ style={style}
47
+ >
43
48
  {label && (
44
49
  <FormLabel
45
50
  name={name}
46
51
  color={labelColor}
47
52
  optional={optional}
48
- columnSpan={labelSpan}
49
- desktopColumnSpan={desktopLabelSpan}
50
53
  // {...otherProps}
51
54
  >
52
55
  {label}
53
56
  </FormLabel>
54
57
  )}
55
- <InputWrapper
56
- id={id}
57
- className={[
58
- baseClassName,
59
- componentClassName,
60
- userClassName,
61
- ]
62
- .filter((e) => e)
63
- .join(' ')}
64
- style={style}
65
- columnSpan={inputSpan}
66
- desktopColumnSpan={desktopInputSpan}
67
- >
68
- <input
69
- id={name}
70
- className="input"
71
- type="checkbox"
72
- disabled={disabled}
73
- {...field}
74
- />
75
- <FormDescription className="s-1" description={description} name={name} />
76
- </InputWrapper>
77
- </>
58
+ <input
59
+ id={name}
60
+ className="input"
61
+ type="checkbox"
62
+ disabled={disabled}
63
+ {...field}
64
+ />
65
+ <FormDescription className="s-1" description={description} name={name} />
66
+ </div>
78
67
  )
79
68
  }
80
69
 
@@ -5,10 +5,12 @@
5
5
  @use "@pareto-engineering/styles/src/globals" as *;
6
6
 
7
7
  .#{bem.$base}.checkbox {
8
- &.#{bem.$base}.input-wrapper {
9
- align-items: flex-start;
10
- display: flex;
11
- flex-direction: column;
12
- justify-content: center;
8
+ align-items: flex-start;
9
+ display: flex;
10
+ flex-direction: column;
11
+ justify-content: center;
12
+
13
+ > .#{bem.$base}.form-label {
14
+ margin-bottom: var(--gap);
13
15
  }
14
16
  }
@@ -11,7 +11,7 @@ import styleNames from '@pareto-engineering/bem/exports'
11
11
 
12
12
  import { Choice } from './common'
13
13
 
14
- import { FormDescription, FormLabel, InputWrapper } from '../../common'
14
+ import { FormDescription, FormLabel } from '../../common'
15
15
 
16
16
  import './styles.scss'
17
17
 
@@ -37,56 +37,45 @@ const ChoicesInput = ({
37
37
  disabled,
38
38
  description,
39
39
  spaceBetween,
40
- labelSpan,
41
- desktopLabelSpan,
42
- inputSpan,
43
- desktopInputSpan,
44
40
  ...otherProps
45
41
  }) => (
46
- <>
42
+ <div
43
+ id={id}
44
+ className={[
45
+ baseClassName,
46
+ componentClassName,
47
+ userClassName,
48
+ ]
49
+ .filter((e) => e)
50
+ .join(' ')}
51
+ style={style}
52
+ >
47
53
  {label && (
48
- <FormLabel
49
- name={name}
50
- color={labelColor}
51
- optional={optional}
52
- columnSpan={labelSpan}
53
- desktopColumnSpan={desktopLabelSpan}
54
- // {...otherProps}
55
- >
56
- {label}
57
- </FormLabel>
58
- )}
59
- <InputWrapper
60
- id={id}
61
- className={[
62
- baseClassName,
63
- componentClassName,
64
- userClassName,
65
- ]
66
- .filter((e) => e)
67
- .join(' ')}
68
- style={style}
69
- columnSpan={inputSpan}
70
- desktopColumnSpan={desktopInputSpan}
54
+ <FormLabel
55
+ name={name}
56
+ color={labelColor}
57
+ optional={optional}
71
58
  >
72
- <div className={['choices', spaceBetween && 'space-between'].filter(Boolean).join(' ')}>
73
- { options.map((choice) => (
74
- <Choice
75
- className={`x-${color}`}
76
- key={choice.value}
77
- name={name}
78
- id={`${name}-${choice.value}`}
79
- multiple={multiple}
80
- validate={validate}
81
- disabled={disabled}
82
- {...otherProps}
83
- {...choice}
84
- />
85
- ))}
86
- </div>
87
- <FormDescription className="s-1" description={description} name={name} />
88
- </InputWrapper>
89
- </>
59
+ {label}
60
+ </FormLabel>
61
+ )}
62
+ <div className={['choices', spaceBetween && 'space-between'].filter(Boolean).join(' ')}>
63
+ { options.map((choice) => (
64
+ <Choice
65
+ className={`x-${color}`}
66
+ key={choice.value}
67
+ name={name}
68
+ id={`${name}-${choice.value}`}
69
+ multiple={multiple}
70
+ validate={validate}
71
+ disabled={disabled}
72
+ {...otherProps}
73
+ {...choice}
74
+ />
75
+ ))}
76
+ </div>
77
+ <FormDescription className="s-1" description={description} name={name} />
78
+ </div>
90
79
  )
91
80
 
92
81
  ChoicesInput.propTypes = {
@@ -122,31 +111,28 @@ ChoicesInput.propTypes = {
122
111
  /**
123
112
  * If the input should be multiple - checkbox
124
113
  */
125
- multiple :PropTypes.bool,
114
+ multiple :PropTypes.bool,
126
115
  /**
127
116
  * how many columns should be displayed on the mobile grid
128
117
  */
129
- gridColumnsMobile :PropTypes.number,
130
- /**
131
- * how many columns should be displayed on the desktop grid
132
- */
133
- gridColumnsDesktop:PropTypes.number,
118
+ gridColumnsMobile:PropTypes.number,
119
+
134
120
  /**
135
121
  * The choice color
136
122
  */
137
- color :PropTypes.string,
123
+ color :PropTypes.string,
138
124
  /**
139
125
  * The selected choice color
140
126
  */
141
- colorChecked :PropTypes.string,
127
+ colorChecked:PropTypes.string,
142
128
  /**
143
129
  * The label of the choices input
144
130
  */
145
- label :PropTypes.string,
131
+ label :PropTypes.string,
146
132
  /**
147
133
  * Whether all the Choices inputs should be disabled
148
134
  */
149
- disabled :PropTypes.bool,
135
+ disabled :PropTypes.bool,
150
136
 
151
137
  /**
152
138
  * Whether the input is optional or not