@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
@@ -2,10 +2,9 @@
2
2
  import * as React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import styleNames from '@pareto-engineering/bem/exports';
5
- import "./styles.scss";
6
5
 
7
6
  // Local Definitions
8
-
7
+ import "./styles.scss";
9
8
  const baseClassName = styleNames.base;
10
9
  const componentClassName = 'form-label';
11
10
 
@@ -20,20 +19,13 @@ const Label = ({
20
19
  name,
21
20
  color,
22
21
  optional,
23
- as: Wrapper,
24
- columnSpan,
25
- desktopColumnSpan
22
+ as: Wrapper
26
23
  // ...otherProps
27
24
  }) => /*#__PURE__*/React.createElement(Wrapper, {
28
25
  htmlFor: Wrapper === 'label' ? name : undefined,
29
26
  id: id,
30
27
  className: [baseClassName, componentClassName, userClassName, `x-${color}`].filter(e => e).join(' '),
31
- style: {
32
- ...style,
33
- '--column-span': columnSpan || 'var(--columns)',
34
- '--column-span-md': desktopColumnSpan || 'var(--columns)'
35
- }
36
- // {...otherProps}
28
+ style: style
37
29
  }, children, optional && ' (Optional)');
38
30
  Label.propTypes = {
39
31
  /**
@@ -67,15 +59,7 @@ Label.propTypes = {
67
59
  /**
68
60
  * Whether the input should have an optional tag
69
61
  */
70
- optional: PropTypes.bool,
71
- /**
72
- * How many columns the input should span
73
- */
74
- columnSpan: PropTypes.number,
75
- /**
76
- * How many columns the input should span on desktop
77
- */
78
- desktopColumnSpan: PropTypes.number
62
+ optional: PropTypes.bool
79
63
  };
80
64
  Label.defaultProps = {
81
65
  as: 'label',
@@ -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
- export * from "./utils";
6
- export * from "./V2";
4
+ export * from "./utils";
@@ -4,11 +4,10 @@ import * as React from 'react';
4
4
  import PropTypes from 'prop-types';
5
5
  import styleNames from '@pareto-engineering/bem/exports';
6
6
  import { useField } from 'formik';
7
- import { FormLabel, FormDescription, InputWrapper } from "../../common";
8
- import "./styles.scss";
7
+ import { FormLabel, FormDescription } from "../../common";
9
8
 
10
9
  // Local Definitions
11
-
10
+ import "./styles.scss";
12
11
  const baseClassName = styleNames.base;
13
12
  const componentClassName = 'checkbox';
14
13
 
@@ -24,31 +23,23 @@ const Checkbox = ({
24
23
  description,
25
24
  disabled,
26
25
  optional,
27
- labelColor,
28
- labelSpan,
29
- desktopLabelSpan,
30
- inputSpan,
31
- desktopInputSpan
26
+ labelColor
32
27
  // ...otherProps
33
28
  }) => {
34
29
  const [field] = useField({
35
30
  name,
36
31
  type: 'checkbox'
37
32
  });
38
- return /*#__PURE__*/React.createElement(React.Fragment, null, label && /*#__PURE__*/React.createElement(FormLabel, {
33
+ return /*#__PURE__*/React.createElement("div", {
34
+ id: id,
35
+ className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
36
+ style: style
37
+ }, label && /*#__PURE__*/React.createElement(FormLabel, {
39
38
  name: name,
40
39
  color: labelColor,
41
- optional: optional,
42
- columnSpan: labelSpan,
43
- desktopColumnSpan: desktopLabelSpan
40
+ optional: optional
44
41
  // {...otherProps}
45
- }, label), /*#__PURE__*/React.createElement(InputWrapper, {
46
- id: id,
47
- className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
48
- style: style,
49
- columnSpan: inputSpan,
50
- desktopColumnSpan: desktopInputSpan
51
- }, /*#__PURE__*/React.createElement("input", _extends({
42
+ }, label), /*#__PURE__*/React.createElement("input", _extends({
52
43
  id: name,
53
44
  className: "input",
54
45
  type: "checkbox",
@@ -57,7 +48,7 @@ const Checkbox = ({
57
48
  className: "s-1",
58
49
  description: description,
59
50
  name: name
60
- })));
51
+ }));
61
52
  };
62
53
  Checkbox.propTypes = {
63
54
  /**
@@ -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
  }
@@ -8,7 +8,7 @@ import styleNames from '@pareto-engineering/bem/exports';
8
8
  // Local Definitions
9
9
 
10
10
  import { Choice } from "./common";
11
- import { FormDescription, FormLabel, InputWrapper } from "../../common";
11
+ import { FormDescription, FormLabel } from "../../common";
12
12
  import "./styles.scss";
13
13
  const baseClassName = styleNames.base;
14
14
  const componentClassName = 'choices-input';
@@ -31,25 +31,16 @@ const ChoicesInput = ({
31
31
  disabled,
32
32
  description,
33
33
  spaceBetween,
34
- labelSpan,
35
- desktopLabelSpan,
36
- inputSpan,
37
- desktopInputSpan,
38
34
  ...otherProps
39
- }) => /*#__PURE__*/React.createElement(React.Fragment, null, label && /*#__PURE__*/React.createElement(FormLabel, {
40
- name: name,
41
- color: labelColor,
42
- optional: optional,
43
- columnSpan: labelSpan,
44
- desktopColumnSpan: desktopLabelSpan
45
- // {...otherProps}
46
- }, label), /*#__PURE__*/React.createElement(InputWrapper, {
35
+ }) => /*#__PURE__*/React.createElement("div", {
47
36
  id: id,
48
37
  className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
49
- style: style,
50
- columnSpan: inputSpan,
51
- desktopColumnSpan: desktopInputSpan
52
- }, /*#__PURE__*/React.createElement("div", {
38
+ style: style
39
+ }, label && /*#__PURE__*/React.createElement(FormLabel, {
40
+ name: name,
41
+ color: labelColor,
42
+ optional: optional
43
+ }, label), /*#__PURE__*/React.createElement("div", {
53
44
  className: ['choices', spaceBetween && 'space-between'].filter(Boolean).join(' ')
54
45
  }, options.map(choice => /*#__PURE__*/React.createElement(Choice, _extends({
55
46
  className: `x-${color}`,
@@ -63,7 +54,7 @@ const ChoicesInput = ({
63
54
  className: "s-1",
64
55
  description: description,
65
56
  name: name
66
- })));
57
+ }));
67
58
  ChoicesInput.propTypes = {
68
59
  /**
69
60
  * The HTML id for this element
@@ -100,10 +91,6 @@ ChoicesInput.propTypes = {
100
91
  * how many columns should be displayed on the mobile grid
101
92
  */
102
93
  gridColumnsMobile: PropTypes.number,
103
- /**
104
- * how many columns should be displayed on the desktop grid
105
- */
106
- gridColumnsDesktop: PropTypes.number,
107
94
  /**
108
95
  * The choice color
109
96
  */
@@ -18,59 +18,62 @@ $default-background: var(--background-inputs);
18
18
  $disabled-background: var(--background-inputs-30);
19
19
 
20
20
  .#{bem.$base}.choices-input {
21
- &.#{bem.$base}.input-wrapper {
21
+ display: flex;
22
+ flex-direction: column;
23
+
24
+ > .#{bem.$base}.form-label {
25
+ margin-bottom: var(--gap);
26
+ }
27
+
28
+ > .choices {
22
29
  display: flex;
23
- flex-direction: column;
30
+ flex-wrap: wrap;
31
+ gap: $default-flex-separator;
24
32
 
25
- > .choices {
33
+ &.space-between {
34
+ justify-content: space-between;
35
+ }
36
+
37
+ >.choice {
26
38
  display: flex;
27
- flex-wrap: wrap;
28
- gap: $default-flex-separator;
29
39
 
30
- &.space-between {
31
- justify-content: space-between;
40
+ input {
41
+ opacity: 0;
42
+ position: fixed;
43
+ visibility: none;
44
+ z-index: -1;
32
45
  }
33
46
 
34
- >.choice {
35
- display: flex;
36
-
37
- input {
38
- opacity: 0;
39
- position: fixed;
40
- visibility: none;
41
- z-index: -1;
42
- }
43
-
44
- input:disabled + label {
45
- background-color: $disabled-background;
46
- }
47
+ input:disabled + label {
48
+ background-color: $disabled-background;
49
+ }
47
50
 
48
- > label {
49
- background-color: $default-background;
50
- border: $default-border;
51
- border-radius: $default-input-border-radius;
52
- color: var(--paragraph);
53
- cursor: pointer;
54
- display: block;
55
- height: $default-label-height;
56
- max-width: 100%;
57
- padding: $default-label-padding;
58
- position: relative;
59
- transition: $default-transition;
60
- white-space: nowrap;
51
+ > label {
52
+ background-color: $default-background;
53
+ border: $default-border;
54
+ border-radius: $default-input-border-radius;
55
+ color: var(--paragraph);
56
+ cursor: pointer;
57
+ display: block;
58
+ height: $default-label-height;
59
+ max-width: 100%;
60
+ padding: $default-label-padding;
61
+ position: relative;
62
+ transition: $default-transition;
63
+ white-space: nowrap;
61
64
 
62
- &:not(.disabled) {
63
- &:hover {
64
- border: $hover-border;
65
- }
65
+ &:not(.disabled) {
66
+ &:hover {
67
+ border: $hover-border;
66
68
  }
67
69
  }
70
+ }
68
71
 
69
- input:checked + label {
70
- background: var(--x);
71
- color: var(--on-x);
72
- }
72
+ input:checked + label {
73
+ background: var(--x);
74
+ color: var(--on-x);
73
75
  }
74
76
  }
75
77
  }
76
78
  }
79
+
@@ -15,12 +15,12 @@ import { AutoLinkNode, LinkNode } from '@lexical/link';
15
15
  import { ListItemNode, ListNode } from '@lexical/list';
16
16
  import PropTypes from 'prop-types';
17
17
  import styleNames from '@pareto-engineering/bem/exports';
18
- import "./styles.scss";
19
18
 
20
19
  // Local Definitions
21
20
 
22
- import { FormLabel, FormDescription, InputWrapper } from "../../common";
21
+ import { FormLabel, FormDescription } from "../../common";
23
22
  import { Toolbar, TreeViewPlugin } from "./common";
23
+ import "./styles.scss";
24
24
  const baseClassName = styleNames.base;
25
25
  const componentClassName = 'editor-input';
26
26
 
@@ -41,10 +41,6 @@ const EditorInput = ({
41
41
  labelColor,
42
42
  description,
43
43
  disabled,
44
- labelSpan,
45
- desktopLabelSpan,
46
- inputSpan,
47
- desktopInputSpan,
48
44
  showDebugger
49
45
  // ...otherProps
50
46
  }) => {
@@ -105,24 +101,19 @@ const EditorInput = ({
105
101
  };
106
102
  return /*#__PURE__*/React.createElement(LexicalComposer, {
107
103
  initialConfig: initialConfig
108
- }, /*#__PURE__*/React.createElement(FormLabel, {
109
- name: name,
110
- color: labelColor,
111
- optional: optional,
112
- columnSpan: labelSpan,
113
- desktopColumnSpan: desktopLabelSpan
114
- // {...otherProps}
115
- }, label), /*#__PURE__*/React.createElement(InputWrapper, {
104
+ }, /*#__PURE__*/React.createElement("div", {
116
105
  id: id,
117
106
  className: [baseClassName, componentClassName, userClassName, `y-${color}`, disabled && 'disabled'].filter(e => e).join(' '),
118
107
  style: {
119
108
  ...style,
120
109
  '--resize': resize,
121
110
  '--rows': `${rows}em`
122
- },
123
- columnSpan: inputSpan,
124
- desktopColumnSpan: desktopInputSpan
125
- }, !disabled && /*#__PURE__*/React.createElement(Toolbar, null), /*#__PURE__*/React.createElement(RichTextPlugin, {
111
+ }
112
+ }, /*#__PURE__*/React.createElement(FormLabel, {
113
+ name: name,
114
+ color: labelColor,
115
+ optional: optional
116
+ }, label), !disabled && /*#__PURE__*/React.createElement(Toolbar, null), /*#__PURE__*/React.createElement(RichTextPlugin, {
126
117
  contentEditable: /*#__PURE__*/React.createElement(ContentEditable, {
127
118
  id: name,
128
119
  className: "content-editable"
@@ -185,22 +176,6 @@ EditorInput.propTypes = {
185
176
  * Whether the input is optional or not
186
177
  */
187
178
  optional: PropTypes.bool,
188
- /**
189
- * The number of columns the label should span
190
- */
191
- labelSpan: PropTypes.number,
192
- /**
193
- * The number of columns the input should span
194
- */
195
- inputSpan: PropTypes.number,
196
- /**
197
- * The number of columns the label should span on desktop
198
- */
199
- desktopLabelSpan: PropTypes.number,
200
- /**
201
- * The number of columns the input should span on desktop
202
- */
203
- desktopInputSpan: PropTypes.number,
204
179
  /**
205
180
  * The resize property of the text area
206
181
  */
@@ -1,5 +1,4 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
- /* stylelint-disable max-nesting-depth -- required here */
3
2
 
4
3
  @use "@pareto-engineering/bem";
5
4
  @use "@pareto-engineering/styles/src/mixins";
@@ -18,124 +17,127 @@ $disabled-background: var(--background-inputs-30);
18
17
  $default-color-menu-padding: .5em .25em;
19
18
 
20
19
  .#{bem.$base}.editor-input {
21
- &.#{bem.$base}.input-wrapper {
20
+ display: flex;
21
+ flex-direction: column;
22
+
23
+ > .#{bem.$base}.form-label {
24
+ margin-bottom: var(--gap);
25
+ }
26
+
27
+ > .#{bem.$base}.toolbar {
22
28
  display: flex;
23
- flex-direction: column;
24
-
25
- > .#{bem.$base}.toolbar {
26
- display: flex;
27
- gap: $default-gap;
28
- margin-bottom: .25em;
29
-
30
- > .group {
31
- > button {
32
- background: $default-background;
33
- border: $default-border;
34
- color: $default-icon-color;
35
- padding: $default-padding;
36
-
37
- &.active {
38
- background-color: $active-background;
39
- }
29
+ gap: $default-gap;
30
+ margin-bottom: .25em;
31
+
32
+ > .group {
33
+ > button {
34
+ background: $default-background;
35
+ border: $default-border;
36
+ color: $default-icon-color;
37
+ padding: $default-padding;
38
+
39
+ &.active {
40
+ background-color: $active-background;
40
41
  }
41
42
  }
42
-
43
- .flip {
44
- transform: scaleX(-1);
45
- }
46
43
  }
47
44
 
48
- &:not(.disabled) {
49
- &:hover,
50
- &:focus,
51
- &:active {
52
- > .textarea {
53
- border: $focus-border;
54
- }
55
- }
45
+ .flip {
46
+ transform: scaleX(-1);
56
47
  }
48
+ }
57
49
 
58
- &.disabled {
50
+ &:not(.disabled) {
51
+ &:hover,
52
+ &:focus,
53
+ &:active {
59
54
  > .textarea {
60
- background: $disabled-background;
61
- color: var(--metadata);
62
- cursor: not-allowed;
55
+ border: $focus-border;
63
56
  }
64
57
  }
58
+ }
65
59
 
66
- .color-menu-button {
67
- &:hover {
68
- > .#{bem.$base}.popover {
69
- display: block;
70
- }
71
- }
60
+ &.disabled {
61
+ > .textarea {
62
+ background: $disabled-background;
63
+ color: var(--metadata);
64
+ cursor: not-allowed;
65
+ }
66
+ }
72
67
 
68
+ .color-menu-button {
69
+ &:hover {
73
70
  > .#{bem.$base}.popover {
74
- padding: $default-color-menu-padding;
75
-
76
- .color-menu {
77
- display: flex;
78
- flex-wrap: wrap;
79
- gap: calc($default-gap / 2);
80
- justify-content: center;
81
- max-width: 10em;
82
- min-width: 5em;
83
- }
84
-
85
- .color-option:hover {
86
- opacity: .5;
87
- }
71
+ display: block;
88
72
  }
89
73
  }
90
74
 
91
- > .content-editable {
92
- background: $default-background;
93
- border: $default-border;
94
- border-radius: $default-input-border-radius;
95
- color: var(--y);
96
- height: var(--rows);
97
- outline: none;
98
- overflow: auto;
99
- padding: $default-padding;
100
- resize: var(--resize);
101
- width: 100%;
102
-
103
- li:has(ol, ul) {
104
- list-style-type: none;
75
+ > .#{bem.$base}.popover {
76
+ padding: $default-color-menu-padding;
77
+
78
+ .color-menu {
79
+ display: flex;
80
+ flex-wrap: wrap;
81
+ gap: calc($default-gap / 2);
82
+ justify-content: center;
83
+ max-width: 10em;
84
+ min-width: 5em;
105
85
  }
106
86
 
107
- p,
108
- span,
109
- strong,
110
- em,
111
- li {
112
- &.underlined {
113
- text-decoration: underline;
114
-
115
- &.strikethrough {
116
- text-decoration: underline line-through;
117
- }
118
- }
87
+ .color-option:hover {
88
+ opacity: .5;
89
+ }
90
+ }
91
+ }
119
92
 
120
- &.strikethrough {
121
- text-decoration: line-through;
122
- }
93
+ > .content-editable {
94
+ background: $default-background;
95
+ border: $default-border;
96
+ border-radius: $default-input-border-radius;
97
+ color: var(--y);
98
+ height: var(--rows);
99
+ outline: none;
100
+ overflow: auto;
101
+ padding: $default-padding;
102
+ resize: var(--resize);
103
+ width: 100%;
123
104
 
124
- &.italic {
125
- font-style: italic;
105
+ li:has(ol, ul) {
106
+ list-style-type: none;
107
+ }
108
+
109
+ p,
110
+ span,
111
+ strong,
112
+ em,
113
+ li {
114
+ &.underlined {
115
+ text-decoration: underline;
116
+
117
+ &.strikethrough {
118
+ text-decoration: underline line-through;
126
119
  }
127
120
  }
128
121
 
129
- :first-child {
130
- margin-top: 0;
122
+ &.strikethrough {
123
+ text-decoration: line-through;
131
124
  }
132
125
 
133
- &::placeholder {
134
- color: var(--metadata);
126
+ &.italic {
127
+ font-style: italic;
135
128
  }
136
129
  }
130
+
131
+ :first-child {
132
+ margin-top: 0;
133
+ }
134
+
135
+ &::placeholder {
136
+ color: var(--metadata);
137
+ }
137
138
  }
138
139
 
140
+
139
141
  > .tree-view-output {
140
142
  background: $default-background;
141
143
  border: $default-border;
@@ -5,11 +5,11 @@ import { memo } from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import styleNames from '@pareto-engineering/bem/exports';
7
7
  import { useField } from 'formik';
8
- import { FormLabel, FormDescription, InputWrapper } from "../../common";
9
- import "./styles.scss";
8
+ import { FormLabel, FormDescription } from "../../common";
10
9
 
11
10
  // Local Definitions
12
11
 
12
+ import "./styles.scss";
13
13
  const baseClassName = styleNames.base;
14
14
  const componentClassName = 'link-input';
15
15
 
@@ -29,31 +29,23 @@ const LinkInput = ({
29
29
  disabled,
30
30
  placeholder,
31
31
  optional,
32
- autoComplete,
33
- labelSpan,
34
- desktopLabelSpan,
35
- inputSpan,
36
- desktopInputSpan
32
+ autoComplete
37
33
  // ...otherProps
38
34
  }) => {
39
35
  const [field] = useField({
40
36
  name,
41
37
  validate
42
38
  });
43
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormLabel, {
39
+ return /*#__PURE__*/React.createElement("div", {
40
+ id: id,
41
+ className: [baseClassName, componentClassName, userClassName, `y-${color}`].filter(e => e).join(' '),
42
+ style: style
43
+ }, /*#__PURE__*/React.createElement(FormLabel, {
44
44
  name: name,
45
45
  color: labelColor,
46
- optional: optional,
47
- columnSpan: labelSpan,
48
- desktopColumnSpan: desktopLabelSpan
46
+ optional: optional
49
47
  // {...otherProps}
50
- }, label), /*#__PURE__*/React.createElement(InputWrapper, {
51
- id: id,
52
- className: [baseClassName, componentClassName, userClassName, `y-${color}`].filter(e => e).join(' '),
53
- style: style,
54
- columnSpan: inputSpan,
55
- desktopColumnSpan: desktopInputSpan
56
- }, /*#__PURE__*/React.createElement("div", {
48
+ }, label), /*#__PURE__*/React.createElement("div", {
57
49
  className: "input-link-wrapper"
58
50
  }, /*#__PURE__*/React.createElement("input", _extends({
59
51
  id: name,
@@ -70,7 +62,7 @@ const LinkInput = ({
70
62
  className: "s-1",
71
63
  description: description,
72
64
  name: name
73
- })));
65
+ }));
74
66
  };
75
67
  LinkInput.propTypes = {
76
68
  /**