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

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/Description/Description.js +6 -5
  3. package/dist/cjs/f/common/Label/Label.js +9 -22
  4. package/dist/cjs/f/common/Label/styles.scss +0 -5
  5. package/dist/cjs/f/common/index.js +1 -21
  6. package/dist/cjs/f/fields/Checkbox/Checkbox.js +16 -21
  7. package/dist/cjs/f/fields/Checkbox/styles.scss +7 -5
  8. package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +13 -23
  9. package/dist/cjs/f/fields/ChoicesInput/styles.scss +44 -41
  10. package/dist/cjs/f/fields/EditorInput/EditorInput.js +11 -39
  11. package/dist/cjs/f/fields/EditorInput/styles.scss +92 -90
  12. package/dist/cjs/f/fields/LinkInput/LinkInput.js +14 -20
  13. package/dist/cjs/f/fields/LinkInput/styles.scss +52 -51
  14. package/dist/cjs/f/fields/QueryChoices/QueryChoices.js +2 -26
  15. package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +4 -30
  16. package/dist/cjs/f/fields/QueryCombobox/common/Combobox/Combobox.js +7 -16
  17. package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +9 -17
  18. package/dist/cjs/f/fields/QueryCombobox/styles.scss +38 -37
  19. package/dist/cjs/f/fields/QuerySelect/QuerySelect.js +2 -10
  20. package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +14 -38
  21. package/dist/cjs/f/fields/RatingsInput/styles.scss +5 -1
  22. package/dist/cjs/f/fields/SelectInput/SelectInput.js +14 -36
  23. package/dist/cjs/f/fields/SelectInput/styles.scss +5 -2
  24. package/dist/cjs/f/fields/TextInput/TextInput.js +19 -37
  25. package/dist/cjs/f/fields/TextInput/styles.scss +37 -30
  26. package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +15 -37
  27. package/dist/cjs/f/fields/TextareaInput/styles.scss +30 -27
  28. package/dist/cjs/f/fields/index.js +1 -26
  29. package/dist/es/f/FormInput/FormInput.js +3 -33
  30. package/dist/es/f/common/Description/Description.js +4 -1
  31. package/dist/es/f/common/Label/Label.js +15 -24
  32. package/dist/es/f/common/Label/styles.scss +0 -5
  33. package/dist/es/f/common/index.js +1 -3
  34. package/dist/es/f/fields/Checkbox/Checkbox.js +14 -19
  35. package/dist/es/f/fields/Checkbox/styles.scss +7 -5
  36. package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +31 -39
  37. package/dist/es/f/fields/ChoicesInput/styles.scss +44 -41
  38. package/dist/es/f/fields/EditorInput/EditorInput.js +12 -35
  39. package/dist/es/f/fields/EditorInput/styles.scss +92 -90
  40. package/dist/es/f/fields/LinkInput/LinkInput.js +14 -20
  41. package/dist/es/f/fields/LinkInput/styles.scss +52 -51
  42. package/dist/es/f/fields/QueryChoices/QueryChoices.js +2 -26
  43. package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +4 -26
  44. package/dist/es/f/fields/QueryCombobox/common/Combobox/Combobox.js +8 -17
  45. package/dist/es/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +10 -18
  46. package/dist/es/f/fields/QueryCombobox/styles.scss +38 -37
  47. package/dist/es/f/fields/QuerySelect/QuerySelect.js +2 -10
  48. package/dist/es/f/fields/RatingsInput/RatingsInput.js +15 -35
  49. package/dist/es/f/fields/RatingsInput/styles.scss +5 -1
  50. package/dist/es/f/fields/SelectInput/SelectInput.js +14 -36
  51. package/dist/es/f/fields/SelectInput/styles.scss +5 -2
  52. package/dist/es/f/fields/TextInput/TextInput.js +19 -37
  53. package/dist/es/f/fields/TextInput/styles.scss +37 -30
  54. package/dist/es/f/fields/TextareaInput/TextareaInput.js +15 -37
  55. package/dist/es/f/fields/TextareaInput/styles.scss +30 -27
  56. package/dist/es/f/fields/index.js +1 -2
  57. package/package.json +2 -2
  58. package/src/stories/f/Checkbox.stories.jsx +13 -21
  59. package/src/stories/f/ChoicesInput.stories.jsx +12 -27
  60. package/src/stories/f/EditorInput.stories.jsx +7 -14
  61. package/src/stories/f/LinkInput.stories.jsx +15 -22
  62. package/src/stories/f/QueryChoices.stories.jsx +12 -19
  63. package/src/stories/f/QueryCombobox.stories.jsx +16 -24
  64. package/src/stories/f/QuerySelect.stories.jsx +12 -19
  65. package/src/stories/f/RatingsInput.stories.jsx +7 -14
  66. package/src/stories/f/SelectInput.stories.jsx +12 -19
  67. package/src/stories/f/TextInput.stories.jsx +16 -23
  68. package/src/stories/f/TextareaInput.stories.jsx +7 -14
  69. package/src/ui/f/FormInput/FormInput.jsx +12 -57
  70. package/src/ui/f/common/Description/Description.jsx +6 -2
  71. package/src/ui/f/common/Label/Label.jsx +27 -37
  72. package/src/ui/f/common/Label/styles.scss +0 -5
  73. package/src/ui/f/common/index.js +0 -2
  74. package/src/ui/f/fields/Checkbox/Checkbox.jsx +27 -33
  75. package/src/ui/f/fields/Checkbox/styles.scss +7 -5
  76. package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +29 -38
  77. package/src/ui/f/fields/ChoicesInput/styles.scss +44 -41
  78. package/src/ui/f/fields/EditorInput/EditorInput.jsx +16 -41
  79. package/src/ui/f/fields/EditorInput/styles.scss +92 -90
  80. package/src/ui/f/fields/LinkInput/LinkInput.jsx +38 -45
  81. package/src/ui/f/fields/LinkInput/styles.scss +52 -51
  82. package/src/ui/f/fields/QueryChoices/QueryChoices.jsx +0 -28
  83. package/src/ui/f/fields/QueryCombobox/QueryCombobox.jsx +5 -31
  84. package/src/ui/f/fields/QueryCombobox/common/Combobox/Combobox.jsx +35 -46
  85. package/src/ui/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.jsx +63 -73
  86. package/src/ui/f/fields/QueryCombobox/styles.scss +38 -37
  87. package/src/ui/f/fields/QuerySelect/QuerySelect.jsx +0 -8
  88. package/src/ui/f/fields/RatingsInput/RatingsInput.jsx +20 -47
  89. package/src/ui/f/fields/RatingsInput/styles.scss +5 -1
  90. package/src/ui/f/fields/SelectInput/SelectInput.jsx +33 -61
  91. package/src/ui/f/fields/SelectInput/styles.scss +5 -2
  92. package/src/ui/f/fields/TextInput/TextInput.jsx +27 -50
  93. package/src/ui/f/fields/TextInput/styles.scss +37 -30
  94. package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +32 -59
  95. package/src/ui/f/fields/TextareaInput/styles.scss +30 -27
  96. package/src/ui/f/fields/index.js +0 -1
  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
@@ -15,7 +15,7 @@ import { Popover, LoadingCircle } from 'ui/a'
15
15
 
16
16
  import { Button } from 'ui/b'
17
17
 
18
- import { InputWrapper, lookUpInputValueFromFetchedOptions } from '../../../../common'
18
+ import { lookUpInputValueFromFetchedOptions } from '../../../../common'
19
19
 
20
20
  // Local Definitions
21
21
 
@@ -47,10 +47,6 @@ const Combobox = ({
47
47
  transformSearch,
48
48
  disabled,
49
49
  optional,
50
- labelSpan,
51
- desktopLabelSpan,
52
- inputSpan,
53
- desktopInputSpan,
54
50
  placeholder,
55
51
  promptCreateNewOption,
56
52
  // ...otherProps
@@ -107,61 +103,54 @@ const Combobox = ({
107
103
  const resetInputValue = () => setInputValue('')
108
104
 
109
105
  return (
110
- <>
106
+ <div
107
+ id={id}
108
+ className={[
109
+ baseClassName,
110
+ componentClassName,
111
+ userClassName,
112
+ `y-${color}`,
113
+ ]
114
+ .filter((e) => e)
115
+ .join(' ')}
116
+ style={style}
117
+ ref={parentRef}
118
+ {...getComboboxProps()}
119
+ >
111
120
  <FormLabel
112
121
  {...getLabelProps()}
113
122
  name={name}
114
123
  optional={optional}
115
124
  color={labelColor}
116
- columnSpan={labelSpan}
117
- desktopColumnSpan={desktopLabelSpan}
118
125
  >
119
126
  {label}
120
127
  </FormLabel>
121
-
122
- <InputWrapper
123
- id={id}
124
- className={[
125
- baseClassName,
126
- componentClassName,
127
- userClassName,
128
- `y-${color}`,
129
- ]
130
- .filter((e) => e)
131
- .join(' ')}
132
- style={style}
133
- ref={parentRef}
134
- {...getComboboxProps()}
135
- columnSpan={inputSpan}
136
- desktopColumnSpan={desktopInputSpan}
137
- >
138
- <input {...getInputProps()} className="input" disabled={disabled} placeholder={placeholder} />
139
- {isFetching && (
140
- <LoadingCircle className="x-main" />
141
- )}
142
- {inputValue.length > minLength && !isFetching && (
128
+ <input {...getInputProps()} className="input" disabled={disabled} placeholder={placeholder} />
129
+ {isFetching && (
130
+ <LoadingCircle className="x-main" />
131
+ )}
132
+ {inputValue.length > minLength && !isFetching && (
143
133
  <Button isSimple isCompact color="heading" onClick={resetInputValue}>
144
134
  <span className="icon">
145
135
  Y
146
136
  </span>
147
137
  </Button>
148
- )}
149
- <FormDescription className="s-1" description={description} name={name} />
150
- <Popover
138
+ )}
139
+ <FormDescription className="s-1" description={description} name={name} />
140
+ <Popover
141
+ isOpen={isOpen}
142
+ parentRef={parentRef}
143
+ >
144
+ <Menu
145
+ className={`y-${color}`}
151
146
  isOpen={isOpen}
152
- parentRef={parentRef}
153
- >
154
- <Menu
155
- className={`y-${color}`}
156
- isOpen={isOpen}
157
- getItemProps={getItemProps}
158
- highlightedIndex={highlightedIndex}
159
- items={items}
160
- {...getMenuProps()}
161
- />
162
- </Popover>
163
- </InputWrapper>
164
- </>
147
+ getItemProps={getItemProps}
148
+ highlightedIndex={highlightedIndex}
149
+ items={items}
150
+ {...getMenuProps()}
151
+ />
152
+ </Popover>
153
+ </div>
165
154
  )
166
155
  }
167
156
 
@@ -15,7 +15,7 @@ import { Popover, LoadingCircle } from 'ui/a'
15
15
 
16
16
  import { FormDescription, FormLabel } from 'ui/f'
17
17
 
18
- import { InputWrapper, lookUpInputValueFromFetchedOptions } from '../../../../common'
18
+ import { lookUpInputValueFromFetchedOptions } from '../../../../common'
19
19
 
20
20
  // Local Definitions
21
21
 
@@ -57,11 +57,7 @@ const MultipleCombobox = ({
57
57
  minLength,
58
58
  transformSearch,
59
59
  disabled,
60
- labelSpan,
61
- desktopLabelSpan,
62
- inputSpan,
63
60
  placeholder,
64
- desktopInputSpan,
65
61
  setOptions,
66
62
  promptCreateNewOption,
67
63
  // ...otherProps
@@ -168,7 +164,19 @@ const MultipleCombobox = ({
168
164
  const resetInputValue = () => setInputValue('')
169
165
 
170
166
  return (
171
- <>
167
+ <div
168
+ id={id}
169
+ className={[
170
+ baseClassName,
171
+ componentClassName,
172
+ userClassName,
173
+ ]
174
+ .filter((e) => e)
175
+ .join(' ')}
176
+ style={style}
177
+ ref={parentRef}
178
+ {...getComboboxProps()}
179
+ >
172
180
  <FormLabel
173
181
  className={[
174
182
  baseClassName,
@@ -180,63 +188,45 @@ const MultipleCombobox = ({
180
188
  name={name}
181
189
  optional={optional}
182
190
  color={labelColor}
183
- columnSpan={labelSpan}
184
- desktopColumnSpan={desktopLabelSpan}
185
191
  >
186
192
  {label}
187
193
  </FormLabel>
188
194
 
189
- <InputWrapper
190
- id={id}
191
- className={[
192
- baseClassName,
193
- componentClassName,
194
- userClassName,
195
- ]
196
- .filter((e) => e)
197
- .join(' ')}
198
- style={style}
199
- ref={parentRef}
200
- columnSpan={inputSpan}
201
- desktopColumnSpan={desktopInputSpan}
202
- {...getComboboxProps()}
203
- >
204
- {selectedItems?.length > 0 && (
205
- <div className="selected-items">
206
- {selectedItems.map((selectedItem, index) => (
207
- <div
208
- key={selectedItem.label}
209
- {...getSelectedItemProps({ selectedItem, index })}
210
- className="item"
195
+ {selectedItems?.length > 0 && (
196
+ <div className="selected-items">
197
+ {selectedItems.map((selectedItem, index) => (
198
+ <div
199
+ key={selectedItem.label}
200
+ {...getSelectedItemProps({ selectedItem, index })}
201
+ className="item"
202
+ >
203
+ <Button
204
+ onClick={(e) => {
205
+ e.stopPropagation()
206
+ removeSelectedItem(selectedItem)
207
+ }}
208
+ isCompact
209
+ color={color}
211
210
  >
212
- <Button
213
- onClick={(e) => {
214
- e.stopPropagation()
215
- removeSelectedItem(selectedItem)
216
- }}
217
- isCompact
218
- color={color}
219
- >
220
- <span>{selectedItem.label}</span>
221
- <span className="icon close">Y</span>
222
- </Button>
223
- </div>
224
- ))}
225
- </div>
211
+ <span>{selectedItem.label}</span>
212
+ <span className="icon close">Y</span>
213
+ </Button>
214
+ </div>
215
+ ))}
216
+ </div>
217
+ )}
218
+ <input
219
+ {...getInputProps(
220
+ getDropdownProps({ preventKeyAction: isOpen }),
226
221
  )}
227
-
228
- <input
229
- {...getInputProps(
230
- getDropdownProps({ preventKeyAction: isOpen }),
231
- )}
232
- className="input"
233
- disabled={disabled}
234
- placeholder={placeholder}
235
- />
236
- {isFetching && (
237
- <LoadingCircle className="x-main" />
238
- )}
239
- {inputValue.length > minLength && !isFetching && (
222
+ className="input"
223
+ disabled={disabled}
224
+ placeholder={placeholder}
225
+ />
226
+ {isFetching && (
227
+ <LoadingCircle className="x-main" />
228
+ )}
229
+ {inputValue.length > minLength && !isFetching && (
240
230
  <Button
241
231
  isSimple
242
232
  isCompact
@@ -247,24 +237,24 @@ const MultipleCombobox = ({
247
237
  Y
248
238
  </span>
249
239
  </Button>
250
- )}
240
+ )}
251
241
 
252
- <FormDescription className="s-1" description={description} name={name} />
253
- <Popover
242
+ <FormDescription className="s-1" description={description} name={name} />
243
+ <Popover
244
+ isOpen={isOpen}
245
+ parentRef={parentRef}
246
+ >
247
+ <Menu
248
+ className={`y-${color}`}
254
249
  isOpen={isOpen}
255
- parentRef={parentRef}
256
- >
257
- <Menu
258
- className={`y-${color}`}
259
- isOpen={isOpen}
260
- getItemProps={getItemProps}
261
- highlightedIndex={highlightedIndex}
262
- items={getFilteredItems()}
263
- {...getMenuProps()}
264
- />
265
- </Popover>
266
- </InputWrapper>
267
- </>
250
+ getItemProps={getItemProps}
251
+ highlightedIndex={highlightedIndex}
252
+ items={getFilteredItems()}
253
+ {...getMenuProps()}
254
+ />
255
+ </Popover>
256
+
257
+ </div>
268
258
  )
269
259
  }
270
260
 
@@ -20,9 +20,16 @@ $on-disabled-background: var(--on-background-inputs-30);
20
20
 
21
21
  .#{bem.$base}.combobox,
22
22
  .#{bem.$base}.multiple-combobox {
23
+ display: flex;
24
+ flex-direction: column;
23
25
  outline: none;
24
26
  position: relative;
25
27
 
28
+ > .#{bem.$base}.form-label {
29
+ margin-bottom: var(--gap);
30
+ }
31
+
32
+
26
33
  .#{bem.$base}.popover {
27
34
  border: $default-border;
28
35
  border-radius: $default-input-border-radius;
@@ -53,51 +60,45 @@ $on-disabled-background: var(--on-background-inputs-30);
53
60
  }
54
61
  }
55
62
 
56
- &.#{bem.$base}.input-wrapper {
57
- display: flex;
58
- flex-direction: column;
59
- position: relative;
63
+ >.#{bem.$base}.loading-circle,
64
+ >.#{bem.$base}.button {
65
+ position: absolute;
66
+ right: $default-loading-circle-displacement;
67
+ }
60
68
 
61
- >.#{bem.$base}.loading-circle,
62
- >.#{bem.$base}.button {
63
- position: absolute;
64
- right: $default-loading-circle-displacement;
65
- }
69
+ >.#{bem.$base}.loading-circle {
70
+ top: calc($default-loading-circle-displacement * 1.5);
71
+ }
66
72
 
67
- >.#{bem.$base}.loading-circle {
68
- top: calc($default-loading-circle-displacement * 1.5);
69
- }
73
+ >.#{bem.$base}.button {
74
+ top: $default-loading-circle-displacement;
75
+ }
70
76
 
71
- >.#{bem.$base}.button {
72
- top: $default-loading-circle-displacement;
73
- }
77
+ > .input {
78
+ background: $default-background;
79
+ border: $default-border;
80
+ border-radius: calc(var(--theme-default-border-radius) / 2);
81
+ color: $on-default-background;
82
+ outline: none;
83
+ padding: $default-input-padding;
74
84
 
75
- > .input {
76
- background: $default-background;
77
- border: $default-border;
78
- border-radius: calc(var(--theme-default-border-radius) / 2);
79
- color: $on-default-background;
80
- outline: none;
81
- padding: $default-input-padding;
85
+ &::placeholder {
86
+ color: var(--metadata);
87
+ }
82
88
 
83
- &::placeholder {
84
- color: var(--metadata);
85
- }
89
+ &:disabled {
90
+ background-color: $disabled-background;
91
+ color: $on-disabled-background;
92
+ }
86
93
 
87
- &:disabled {
88
- background-color: $disabled-background;
89
- color: $on-disabled-background;
94
+ &:not(:disabled) {
95
+ &:hover,
96
+ &:active {
97
+ border: $hover-border;
90
98
  }
91
99
 
92
- &:not(:disabled) {
93
- &:hover,
94
- &:active {
95
- border: $hover-border;
96
- }
97
-
98
- &:focus {
99
- border: $focus-border;
100
- }
100
+ &:focus {
101
+ border: $focus-border;
101
102
  }
102
103
  }
103
104
  }
@@ -33,10 +33,6 @@ const QuerySelect = ({
33
33
  loadingOption,
34
34
  defaultOption,
35
35
  validate,
36
- labelSpan,
37
- desktopLabelSpan,
38
- inputSpan,
39
- desktopInputSpan,
40
36
  // ...otherProps
41
37
  }) => {
42
38
  const [, , helpers] = useField({ name, validate })
@@ -101,10 +97,6 @@ const QuerySelect = ({
101
97
  disabled={isFetching || disabled}
102
98
  options={options}
103
99
  isLoading={isFetching}
104
- labelSpan={labelSpan}
105
- desktopLabelSpan={desktopLabelSpan}
106
- inputSpan={inputSpan}
107
- desktopInputSpan={desktopInputSpan}
108
100
  />
109
101
  )
110
102
  }
@@ -1,7 +1,7 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { useState, memo } from 'react'
4
+ import { useState, useInsertionEffect, memo } from 'react'
5
5
 
6
6
  import PropTypes from 'prop-types'
7
7
 
@@ -10,9 +10,7 @@ import styleNames from '@pareto-engineering/bem/exports'
10
10
  // Local Definitions
11
11
 
12
12
  import { Rating } from './common'
13
- import { FormLabel, InputWrapper } from '../../common'
14
-
15
- import './styles.scss'
13
+ import { FormLabel } from '../../common'
16
14
 
17
15
  const baseClassName = styleNames.base
18
16
 
@@ -35,40 +33,35 @@ const RatingsInput = ({
35
33
  labelMin,
36
34
  displayRatingsLabel,
37
35
  optional,
38
- labelSpan,
39
- desktopLabelSpan,
40
- inputSpan,
41
- desktopInputSpan,
42
36
  // ...otherProps
43
37
  }) => {
38
+ useInsertionEffect(() => {
39
+ import('./styles.scss')
40
+ }, [])
41
+
44
42
  const [hover, setHover] = useState(null)
45
43
 
46
44
  return (
47
- <>
45
+ <div
46
+ id={id}
47
+ className={[
48
+ baseClassName,
49
+ componentClassName,
50
+ userClassName,
51
+ ]
52
+ .filter((e) => e)
53
+ .join(' ')}
54
+ style={style}
55
+ >
48
56
  <FormLabel
49
57
  name={name}
50
58
  color={labelColor}
51
59
  optional={optional}
52
- columnSpan={labelSpan}
53
- desktopColumnSpan={desktopLabelSpan}
54
60
  // {...otherProps}
55
61
  >
56
62
  {label}
57
63
  </FormLabel>
58
- <InputWrapper
59
- id={id}
60
- className={[
61
- baseClassName,
62
- componentClassName,
63
- userClassName,
64
- 'stars',
65
- ]
66
- .filter((e) => e)
67
- .join(' ')}
68
- style={style}
69
- columnSpan={inputSpan}
70
- desktopColumnSpan={desktopInputSpan}
71
- >
64
+ <div className="stars">
72
65
  {displayRatingsLabel && <p className="label-text s-2 x-metadata c-x">{labelMin}</p>}
73
66
  {[...Array(ratingCount)].map((_, index) => {
74
67
  const ratingValue = index + 1
@@ -86,8 +79,8 @@ const RatingsInput = ({
86
79
  )
87
80
  })}
88
81
  {displayRatingsLabel && <p className="label-text s-2 x-metadata c-x">{labelMax}</p>}
89
- </InputWrapper>
90
- </>
82
+ </div>
83
+ </div>
91
84
  )
92
85
  }
93
86
 
@@ -149,26 +142,6 @@ RatingsInput.propTypes = {
149
142
  * String that will represent color for the label
150
143
  */
151
144
  labelColor:PropTypes.string,
152
-
153
- /**
154
- * The number of columns the label should span
155
- */
156
- labelSpan:PropTypes.number,
157
-
158
- /**
159
- * The number of columns the input should span
160
- */
161
- inputSpan:PropTypes.number,
162
-
163
- /**
164
- * The number of columns the label should span on desktop
165
- */
166
- desktopLabelSpan:PropTypes.number,
167
-
168
- /**
169
- * The number of columns the input should span on desktop
170
- */
171
- desktopInputSpan:PropTypes.number,
172
145
  }
173
146
 
174
147
  RatingsInput.defaultProps = {
@@ -9,7 +9,11 @@ $default-padding: .2em;
9
9
  $default-transition: all .2s;
10
10
 
11
11
  .#{bem.$base}.ratings-input {
12
- &.stars {
12
+ display: flex;
13
+ flex-direction: column;
14
+ gap: var(--gap);
15
+
16
+ >.stars {
13
17
  display: flex;
14
18
 
15
19
  >:not(:last-child) {
@@ -1,7 +1,7 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react'
3
3
 
4
- import { memo } from 'react'
4
+ import { useInsertionEffect, memo } from 'react'
5
5
 
6
6
  import { useField } from 'formik'
7
7
 
@@ -11,9 +11,7 @@ import styleNames from '@pareto-engineering/bem/exports'
11
11
 
12
12
  import { LoadingCircle } from 'ui/a'
13
13
 
14
- import { FormLabel, FormDescription, InputWrapper } from '../../common'
15
-
16
- import './styles.scss'
14
+ import { FormLabel, FormDescription } from '../../common'
17
15
 
18
16
  // Local Definitions
19
17
 
@@ -39,49 +37,44 @@ const SelectInput = ({
39
37
  disabled,
40
38
  isLoading,
41
39
  autoComplete,
42
- labelSpan,
43
- desktopLabelSpan,
44
- inputSpan,
45
- desktopInputSpan,
46
40
  // ...otherProps
47
41
  }) => {
42
+ useInsertionEffect(() => {
43
+ import('./styles.scss')
44
+ }, [])
45
+
48
46
  const [field] = useField({ name, validate })
49
47
 
50
48
  return (
51
- <>
49
+ <div
50
+ id={id}
51
+ className={[
52
+ baseClassName,
53
+ componentClassName,
54
+ userClassName,
55
+ ]
56
+ .filter((e) => e)
57
+ .join(' ')}
58
+ style={style}
59
+ >
52
60
  <FormLabel
53
61
  name={name}
54
62
  color={labelColor}
55
63
  optional={optional}
56
- columnSpan={labelSpan}
57
- desktopColumnSpan={desktopLabelSpan}
58
64
  // {...otherProps}
59
65
  >
60
66
  {label}
61
67
  </FormLabel>
62
- <InputWrapper
63
- id={id}
64
- className={[
65
- baseClassName,
66
- componentClassName,
67
- userClassName,
68
- ]
69
- .filter((e) => e)
70
- .join(' ')}
71
- style={style}
72
- columnSpan={inputSpan}
73
- desktopColumnSpan={desktopInputSpan}
74
- >
75
- <div className={`select-wrapper${disabled ? ' disabled' : ''}`}>
76
- <select
77
- className={`input y-${color}`}
78
- {...field}
79
- value={field.value || ''}
80
- id={name}
81
- disabled={disabled}
82
- autoComplete={autoComplete}
83
- >
84
- {
68
+ <div className={`select-wrapper${disabled ? ' disabled' : ''}`}>
69
+ <select
70
+ className={`input y-${color}`}
71
+ {...field}
72
+ value={field.value || ''}
73
+ id={name}
74
+ disabled={disabled}
75
+ autoComplete={autoComplete}
76
+ >
77
+ {
85
78
  options.map((option) => {
86
79
  // i.e if option is a string like "blah", return { value: "blah", label: "blah" }
87
80
  const newOption = typeof option === 'string' ? { value: option, label: option } : option
@@ -97,14 +90,13 @@ const SelectInput = ({
97
90
  )
98
91
  })
99
92
  }
100
- </select>
101
- {isLoading && (
93
+ </select>
94
+ {isLoading && (
102
95
  <LoadingCircle className="x-main" />
103
- )}
104
- </div>
105
- <FormDescription className="s-1" description={description} name={name} />
106
- </InputWrapper>
107
- </>
96
+ )}
97
+ </div>
98
+ <FormDescription className="s-1" description={description} name={name} />
99
+ </div>
108
100
  )
109
101
  }
110
102
 
@@ -181,26 +173,6 @@ SelectInput.propTypes = {
181
173
  */
182
174
  autoComplete:PropTypes.string,
183
175
 
184
- /**
185
- * The number of columns the label should span
186
- */
187
- labelSpan:PropTypes.number,
188
-
189
- /**
190
- * The number of columns the input should span
191
- */
192
- inputSpan:PropTypes.number,
193
-
194
- /**
195
- * The number of columns the label should span on desktop
196
- */
197
- desktopLabelSpan:PropTypes.number,
198
-
199
- /**
200
- * The number of columns the input should span on desktop
201
- */
202
- desktopInputSpan:PropTypes.number,
203
-
204
176
  /**
205
177
  * Whether the input is optional or not
206
178
  */