@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
@@ -16,8 +16,11 @@ $default-background: var(--background-inputs);
16
16
  $disabled-background: var(--background-inputs-30);
17
17
 
18
18
  .#{bem.$base}.select-input {
19
- &.#{bem.$base}.label {
20
- margin-bottom: $default-spacing-size;
19
+ display: flex;
20
+ flex-direction: column;
21
+
22
+ > .#{bem.$base}.form-label {
23
+ margin-bottom: var(--gap);
21
24
  }
22
25
 
23
26
  .select-wrapper {
@@ -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 PropTypes from 'prop-types'
7
7
 
@@ -9,9 +9,7 @@ import styleNames from '@pareto-engineering/bem/exports'
9
9
 
10
10
  import { useField } from 'formik'
11
11
 
12
- import { FormLabel, FormDescription, InputWrapper } from '../../common'
13
-
14
- import './styles.scss'
12
+ import { FormLabel, FormDescription } from '../../common'
15
13
 
16
14
  // Local Definitions
17
15
 
@@ -37,47 +35,46 @@ const TextInput = ({
37
35
  placeholder,
38
36
  optional,
39
37
  autoComplete,
40
- labelSpan,
41
- desktopLabelSpan,
42
- inputSpan,
43
- desktopInputSpan,
44
38
  symbol,
45
39
  ...otherProps
46
40
  }) => {
41
+ useInsertionEffect(() => {
42
+ import('./styles.scss')
43
+ }, [])
44
+
47
45
  const [field] = useField({ name, validate })
48
46
  const symbolStyle = symbol
49
47
  ? { '--symbol': symbol }
50
48
  : {}
51
49
 
50
+ const InputWrapper = symbol ? 'div' : React.Fragment
51
+ const inputWrapperProps = symbol ? { className: 'input-wrapper' } : {}
52
+
52
53
  return (
53
- <>
54
+ <div
55
+ id={id}
56
+ className={[
57
+ baseClassName,
58
+ componentClassName,
59
+ userClassName,
60
+ `y-${color} ${symbol ? 'has-symbol' : ''}`,
61
+ ]
62
+ .filter((e) => e)
63
+ .join(' ')}
64
+ style={{
65
+ ...symbolStyle,
66
+ ...style,
67
+ }}
68
+ >
54
69
  <FormLabel
55
70
  name={name}
56
71
  color={labelColor}
57
72
  optional={optional}
58
- columnSpan={labelSpan}
59
- desktopColumnSpan={desktopLabelSpan}
60
73
  // {...otherProps}
61
74
  >
62
75
  {label}
63
76
  </FormLabel>
64
- <InputWrapper
65
- id={id}
66
- className={[
67
- baseClassName,
68
- componentClassName,
69
- userClassName,
70
- `y-${color} ${symbol ? 'has-symbol' : ''}`,
71
- ]
72
- .filter((e) => e)
73
- .join(' ')}
74
- style={{
75
- ...symbolStyle,
76
- ...style,
77
- }}
78
- columnSpan={inputSpan}
79
- desktopColumnSpan={desktopInputSpan}
80
- >
77
+ <InputWrapper {...inputWrapperProps}>
81
78
  <input
82
79
  id={name}
83
80
  className="input"
@@ -88,9 +85,9 @@ const TextInput = ({
88
85
  {...field}
89
86
  {...otherProps}
90
87
  />
91
- <FormDescription className="s-1" description={description} name={name} />
92
88
  </InputWrapper>
93
- </>
89
+ <FormDescription className="s-1" description={description} name={name} />
90
+ </div>
94
91
  )
95
92
  }
96
93
 
@@ -180,26 +177,6 @@ TextInput.propTypes = {
180
177
  */
181
178
  autoComplete:PropTypes.string,
182
179
 
183
- /**
184
- * The number of columns the label should span
185
- */
186
- labelSpan:PropTypes.number,
187
-
188
- /**
189
- * The number of columns the input should span
190
- */
191
- inputSpan:PropTypes.number,
192
-
193
- /**
194
- * The number of columns the label should span on desktop
195
- */
196
- desktopLabelSpan:PropTypes.number,
197
-
198
- /**
199
- * The number of columns the input should span on desktop
200
- */
201
- desktopInputSpan:PropTypes.number,
202
-
203
180
  /**
204
181
  * A symbol to be set inside the input field
205
182
  */
@@ -19,12 +19,18 @@ $default-background: var(--background-inputs);
19
19
  $disabled-background: var(--background-inputs-30);
20
20
 
21
21
  .#{bem.$base}.text-input {
22
- &.#{bem.$base}.input-wrapper {
23
- display: flex;
24
- flex-direction: column;
25
- position: relative;
22
+ display: flex;
23
+ flex-direction: column;
24
+
25
+ > .#{bem.$base}.form-label {
26
+ margin-bottom: var(--gap);
27
+ }
28
+
29
+
30
+ &.has-symbol {
31
+ > .input-wrapper {
32
+ position: relative;
26
33
 
27
- &.has-symbol {
28
34
  &::before {
29
35
  color: var(--y);
30
36
  content: var(--symbol);
@@ -33,39 +39,40 @@ $disabled-background: var(--background-inputs-30);
33
39
  top: 50%;
34
40
  transform: translate(-50%, -50%);
35
41
  }
42
+ }
36
43
 
37
- input {
38
- padding: $default-padding-with-symbol;
39
- }
44
+ input {
45
+ padding: $default-padding-with-symbol;
40
46
  }
47
+ }
41
48
 
42
- > input {
43
- background-color: $default-background;
44
- border: $default-border;
45
- border-radius: $default-input-border-radius;
46
- color: var(--y);
47
- outline: none;
48
- padding: $default-padding;
49
- width: 100%;
49
+ .input {
50
+ background-color: $default-background;
51
+ border: $default-border;
52
+ border-radius: $default-input-border-radius;
53
+ color: var(--y);
54
+ outline: none;
55
+ padding: $default-padding;
56
+ width: 100%;
50
57
 
51
- &::placeholder {
52
- color: var(--metadata);
53
- }
58
+ &::placeholder {
59
+ color: var(--metadata);
60
+ }
54
61
 
55
- &:disabled {
56
- background-color: $disabled-background;
57
- }
62
+ &:disabled {
63
+ background-color: $disabled-background;
64
+ }
58
65
 
59
- &:not(:disabled) {
60
- &:hover,
61
- &:active {
62
- border: $hover-border;
63
- }
66
+ &:not(:disabled) {
67
+ &:hover,
68
+ &:active {
69
+ border: $hover-border;
70
+ }
64
71
 
65
- &:focus {
66
- border: $focus-border;
67
- }
72
+ &:focus {
73
+ border: $focus-border;
68
74
  }
69
75
  }
70
76
  }
71
77
  }
78
+
@@ -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 PropTypes from 'prop-types'
7
7
 
@@ -11,9 +11,7 @@ import { useField } from 'formik'
11
11
 
12
12
  // Local Definitions
13
13
 
14
- import { FormLabel, FormDescription, InputWrapper } from '../../common'
15
-
16
- import './styles.scss'
14
+ import { FormLabel, FormDescription } from '../../common'
17
15
 
18
16
  const baseClassName = styleNames.base
19
17
 
@@ -38,55 +36,50 @@ const TextareaInput = ({
38
36
  placeholder,
39
37
  autoComplete,
40
38
  resize,
41
- labelSpan,
42
- desktopLabelSpan,
43
- inputSpan,
44
- desktopInputSpan,
45
39
  // ...otherProps
46
40
  }) => {
41
+ useInsertionEffect(() => {
42
+ import('./styles.scss')
43
+ }, [])
44
+
47
45
  const [field] = useField({ name, validate })
48
46
 
49
47
  return (
50
- <>
48
+ <div
49
+ id={id}
50
+ className={[
51
+ baseClassName,
52
+ componentClassName,
53
+ userClassName,
54
+ `y-${color}`,
55
+ ]
56
+ .filter((e) => e)
57
+ .join(' ')}
58
+ style={style}
59
+ >
51
60
  <FormLabel
52
61
  name={name}
53
62
  color={labelColor}
54
63
  optional={optional}
55
- columnSpan={labelSpan}
56
- desktopColumnSpan={desktopLabelSpan}
57
64
  // {...otherProps}
58
65
  >
59
66
  {label}
60
67
  </FormLabel>
61
- <InputWrapper
62
- id={id}
63
- className={[
64
- baseClassName,
65
- componentClassName,
66
- userClassName,
67
- `y-${color}`,
68
- ]
69
- .filter((e) => e)
70
- .join(' ')}
71
- style={style}
72
- columnSpan={inputSpan}
73
- desktopColumnSpan={desktopInputSpan}
68
+
69
+ <textarea
70
+ id={name}
71
+ className="textarea"
72
+ {...field}
73
+ style={{ resize }}
74
+ placeholder={placeholder}
75
+ rows={rows}
76
+ disabled={disabled}
77
+ autoComplete={autoComplete}
74
78
  >
75
- <textarea
76
- id={name}
77
- className="textarea"
78
- {...field}
79
- style={{ resize }}
80
- placeholder={placeholder}
81
- rows={rows}
82
- disabled={disabled}
83
- autoComplete={autoComplete}
84
- >
85
- {/* It was a dark and stormy night... */}
86
- </textarea>
87
- <FormDescription className="s-1" description={description} name={name} />
88
- </InputWrapper>
89
- </>
79
+ {/* It was a dark and stormy night... */}
80
+ </textarea>
81
+ <FormDescription className="s-1" description={description} name={name} />
82
+ </div>
90
83
  )
91
84
  }
92
85
 
@@ -175,26 +168,6 @@ TextareaInput.propTypes = {
175
168
  * Whether the input is optional or not
176
169
  */
177
170
  optional:PropTypes.bool,
178
-
179
- /**
180
- * The number of columns the label should span
181
- */
182
- labelSpan:PropTypes.number,
183
-
184
- /**
185
- * The number of columns the input should span
186
- */
187
- inputSpan:PropTypes.number,
188
-
189
- /**
190
- * The number of columns the label should span on desktop
191
- */
192
- desktopLabelSpan:PropTypes.number,
193
-
194
- /**
195
- * The number of columns the input should span on desktop
196
- */
197
- desktopInputSpan:PropTypes.number,
198
171
  }
199
172
 
200
173
  TextareaInput.defaultProps = {
@@ -14,36 +14,39 @@ $default-background: var(--background-inputs);
14
14
  $disabled-background: var(--background-inputs-30);
15
15
 
16
16
  .#{bem.$base}.text-area-input {
17
- &.#{bem.$base}.input-wrapper {
18
- display: flex;
19
- flex-direction: column;
20
-
21
- > .textarea {
22
- background: $default-background;
23
- border: $default-border;
24
- border-radius: $default-input-border-radius;
25
- color: var(--y);
26
- outline: none;
27
- padding: $default-padding;
28
- width: 100%;
29
-
30
- &::placeholder {
31
- color: var(--metadata);
32
- }
17
+ display: flex;
18
+ flex-direction: column;
33
19
 
34
- &:disabled {
35
- background-color: $disabled-background;
36
- }
20
+ > .#{bem.$base}.form-label {
21
+ margin-bottom: var(--gap);
22
+ }
23
+
24
+
25
+ > .textarea {
26
+ background: $default-background;
27
+ border: $default-border;
28
+ border-radius: $default-input-border-radius;
29
+ color: var(--y);
30
+ outline: none;
31
+ padding: $default-padding;
32
+ width: 100%;
37
33
 
38
- &:not(:disabled) {
39
- &:hover,
40
- &:active {
41
- border: $hover-border;
42
- }
34
+ &::placeholder {
35
+ color: var(--metadata);
36
+ }
37
+
38
+ &:disabled {
39
+ background-color: $disabled-background;
40
+ }
41
+
42
+ &:not(:disabled) {
43
+ &:hover,
44
+ &:active {
45
+ border: $hover-border;
46
+ }
43
47
 
44
- &:focus {
45
- border: $focus-border;
46
- }
48
+ &:focus {
49
+ border: $focus-border;
47
50
  }
48
51
  }
49
52
  }
@@ -9,4 +9,3 @@ export { Checkbox } from './Checkbox'
9
9
  export { QueryChoices } from './QueryChoices'
10
10
  export { LinkInput } from './LinkInput'
11
11
  export { EditorInput } from './EditorInput'
12
- export * from './V2'
@@ -1,73 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var React = _interopRequireWildcard(require("react"));
8
- var _propTypes = _interopRequireDefault(require("prop-types"));
9
- var _exports = _interopRequireDefault(require("@pareto-engineering/bem/exports"));
10
- require("./styles.scss");
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
13
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
14
- /* @pareto-engineering/generator-front 1.0.12 */
15
-
16
- // Local Definitions
17
-
18
- const baseClassName = _exports.default.base;
19
- const componentClassName = 'input-wrapper';
20
-
21
- /**
22
- * This is the component description.
23
- */
24
- const InputWrapper = _ref => {
25
- let {
26
- id,
27
- className: userClassName,
28
- style,
29
- children,
30
- columnSpan,
31
- desktopColumnSpan
32
- // ...otherProps
33
- } = _ref;
34
- return /*#__PURE__*/React.createElement("div", {
35
- id: id,
36
- className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
37
- style: {
38
- ...style,
39
- '--column-span': columnSpan || 'var(--columns)',
40
- '--column-span-md': desktopColumnSpan || 'var(--columns)'
41
- }
42
- }, children);
43
- };
44
- InputWrapper.propTypes = {
45
- /**
46
- * The HTML id for this element
47
- */
48
- id: _propTypes.default.string,
49
- /**
50
- * The HTML class names for this element
51
- */
52
- className: _propTypes.default.string,
53
- /**
54
- * The React-written, css properties for this element.
55
- */
56
- style: _propTypes.default.objectOf(_propTypes.default.string),
57
- /**
58
- * The children JSX
59
- */
60
- children: _propTypes.default.node,
61
- /**
62
- * How many columns the input should span
63
- */
64
- columnSpan: _propTypes.default.number,
65
- /**
66
- * How many columns the input should span on desktop
67
- */
68
- desktopColumnSpan: _propTypes.default.number
69
- };
70
- InputWrapper.defaultProps = {
71
- // as :'label',
72
- };
73
- var _default = exports.default = InputWrapper;
@@ -1,13 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "InputWrapper", {
7
- enumerable: true,
8
- get: function () {
9
- return _InputWrapper.default;
10
- }
11
- });
12
- var _InputWrapper = _interopRequireDefault(require("./InputWrapper"));
13
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -1,13 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
-
3
- @use "@pareto-engineering/bem";
4
- @use "@pareto-engineering/styles/src/mixins";
5
- @use "@pareto-engineering/styles/src/globals" as *;
6
-
7
- .#{bem.$base}.input-wrapper {
8
- grid-column: span var(--column-span);
9
-
10
- @include mixins.media($from: $sm-md) {
11
- grid-column: span var(--column-span-md);
12
- }
13
- }
@@ -1,76 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _react = _interopRequireWildcard(require("react"));
8
- var React = _react;
9
- var _formik = require("formik");
10
- var _propTypes = _interopRequireDefault(require("prop-types"));
11
- var _exports = _interopRequireDefault(require("@pareto-engineering/bem/exports"));
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
14
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } /* @pareto-engineering/generator-front 1.0.12 */
15
- // Local Definitions
16
-
17
- const baseClassName = _exports.default.base;
18
- const componentClassName = 'description';
19
-
20
- /**
21
- * This is the component description.
22
- */
23
- const Description = _ref => {
24
- let {
25
- id,
26
- className: userClassName,
27
- style,
28
- description,
29
- name,
30
- color
31
- // ...otherProps
32
- } = _ref;
33
- (0, _react.useInsertionEffect)(() => {
34
- Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
35
- }, []);
36
- const [, meta] = (0, _formik.useField)(name);
37
- const hasError = meta.touched && meta.error;
38
- if (hasError || description) {
39
- return /*#__PURE__*/React.createElement("div", {
40
- id: id,
41
- className: [baseClassName, componentClassName, userClassName, hasError ? 'x-error' : `x-${color}`].filter(e => e).join(' '),
42
- style: style
43
- }, hasError ? meta.error : description);
44
- }
45
- return null;
46
- };
47
- Description.propTypes = {
48
- /**
49
- * The HTML id for this element
50
- */
51
- id: _propTypes.default.string,
52
- /**
53
- * The HTML class names for this element
54
- */
55
- className: _propTypes.default.string,
56
- /**
57
- * The React-written, css properties for this element.
58
- */
59
- style: _propTypes.default.objectOf(_propTypes.default.string),
60
- /**
61
- * The base color for the description
62
- */
63
- color: _propTypes.default.string,
64
- /**
65
- * Input description - extra description to guide a use in filling the input
66
- */
67
- description: _propTypes.default.string,
68
- /**
69
- * The input name (html - and Formik state)
70
- */
71
- name: _propTypes.default.string.isRequired
72
- };
73
- Description.defaultProps = {
74
- color: 'metadata'
75
- };
76
- var _default = exports.default = Description;
@@ -1,13 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "Description", {
7
- enumerable: true,
8
- get: function () {
9
- return _Description.default;
10
- }
11
- });
12
- var _Description = _interopRequireDefault(require("./Description"));
13
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -1,10 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
-
3
- @use "@pareto-engineering/bem";
4
-
5
-
6
- .#{bem.$base}.description {
7
- color: var(--x);
8
- }
9
-
10
-