contentoh-components-library 21.4.72 → 21.4.74

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 (281) hide show
  1. package/dist/components/atoms/Avatar/index.js +2 -3
  2. package/dist/components/atoms/CheckBox/styles.js +1 -1
  3. package/dist/components/atoms/GeneralButton/styles.js +2 -6
  4. package/dist/components/atoms/InputFormatter/styles.js +3 -3
  5. package/dist/components/atoms/SliderToolTip/styles.js +1 -1
  6. package/dist/components/molecules/BoxAttribute/index.js +3 -3
  7. package/dist/components/molecules/BoxAttribute/styles.js +1 -1
  8. package/dist/components/molecules/BoxButtons/index.js +1 -0
  9. package/dist/components/molecules/CarouselImagesLogin/index.js +1 -1
  10. package/dist/components/molecules/HeaderTop/index.js +11 -68
  11. package/dist/components/molecules/SignInLogin/index.js +28 -36
  12. package/dist/components/molecules/StripeCardSelector/CardSelector.stories.js +2 -1
  13. package/dist/components/organisms/Chat/Chat.stories.js +8 -27
  14. package/dist/components/organisms/Chat/ContainerItems/index.js +3 -19
  15. package/dist/components/organisms/Chat/ContainerItems/styles.js +1 -1
  16. package/dist/components/organisms/Chat/ContentChat/index.js +197 -350
  17. package/dist/components/organisms/Chat/Footer/index.js +39 -48
  18. package/dist/components/organisms/Chat/index.js +4 -49
  19. package/dist/components/organisms/Chat/styles.js +1 -1
  20. package/dist/components/organisms/DashboardMetric/index.js +6 -12
  21. package/dist/components/organisms/FullProductNameHeader/index.js +2 -2
  22. package/dist/components/organisms/InputGroup/index.js +10 -1
  23. package/dist/components/organisms/Modal/styles.js +1 -1
  24. package/dist/components/organisms/VersionSelector/index.js +4 -2
  25. package/dist/components/pages/Dashboard/Dashboard.stories.js +36 -33
  26. package/dist/components/pages/Dashboard/index.js +9 -37
  27. package/dist/components/pages/ProviderProductEdition/index.js +144 -120
  28. package/dist/components/pages/ProviderProductEdition/styles.js +1 -1
  29. package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +0 -4
  30. package/dist/components/pages/RetailerProductEdition/index.js +273 -278
  31. package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
  32. package/dist/components/pages/RetailerProductEdition/utils.js +2 -61
  33. package/dist/global-files/data.js +3 -11
  34. package/dist/global-files/variables.js +1 -7
  35. package/dist/index.js +58 -201
  36. package/package.json +1 -2
  37. package/src/components/atoms/Avatar/index.js +2 -8
  38. package/src/components/atoms/CheckBox/styles.js +0 -2
  39. package/src/components/atoms/GeneralButton/styles.js +0 -46
  40. package/src/components/atoms/InputFormatter/styles.js +4 -9
  41. package/src/components/atoms/SliderToolTip/styles.js +1 -1
  42. package/src/components/atoms/TabSection/index.js +1 -1
  43. package/src/components/atoms/TabSection/styles.js +1 -1
  44. package/src/components/molecules/BoxAttribute/index.js +25 -32
  45. package/src/components/molecules/BoxAttribute/styles.js +1 -1
  46. package/src/components/molecules/BoxButtons/index.js +22 -23
  47. package/src/components/molecules/CarouselImagesLogin/index.js +1 -1
  48. package/src/components/molecules/HeaderTop/index.js +6 -52
  49. package/src/components/molecules/SignInLogin/index.js +11 -11
  50. package/src/components/molecules/StripeCardSelector/CardSelector.stories.js +2 -1
  51. package/src/components/molecules/TagAndInput/index.js +5 -6
  52. package/src/components/organisms/Chat/Chat.stories.js +7 -27
  53. package/src/components/organisms/Chat/ContainerItems/index.js +2 -18
  54. package/src/components/organisms/Chat/ContainerItems/styles.js +2 -14
  55. package/src/components/organisms/Chat/ContentChat/index.js +12 -88
  56. package/src/components/organisms/Chat/Footer/index.js +0 -11
  57. package/src/components/organisms/Chat/index.js +4 -46
  58. package/src/components/organisms/Chat/styles.js +0 -4
  59. package/src/components/organisms/DashboardMetric/index.js +3 -6
  60. package/src/components/organisms/FullProductNameHeader/index.js +1 -1
  61. package/src/components/organisms/InputGroup/index.js +119 -131
  62. package/src/components/organisms/Modal/styles.js +1 -4
  63. package/src/components/organisms/OrderDetail/utils/Table/utils.js +16 -6
  64. package/src/components/organisms/VersionSelector/index.js +2 -1
  65. package/src/components/pages/Dashboard/Dashboard.stories.js +38 -33
  66. package/src/components/pages/Dashboard/index.js +7 -36
  67. package/src/components/pages/ProviderProductEdition/index.js +131 -100
  68. package/src/components/pages/ProviderProductEdition/styles.js +1 -5
  69. package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +0 -4
  70. package/src/components/pages/RetailerProductEdition/index.js +135 -106
  71. package/src/components/pages/RetailerProductEdition/styles.js +0 -4
  72. package/src/components/pages/RetailerProductEdition/utils.js +0 -37
  73. package/src/global-files/data.js +10 -6
  74. package/src/global-files/variables.js +0 -6
  75. package/src/index.js +0 -11
  76. package/src/assets/images/Icons/infoNR.svg +0 -8
  77. package/src/assets/images/flagsv2/highPriority.svg +0 -3
  78. package/src/assets/images/flagsv2/lowPriority.svg +0 -3
  79. package/src/assets/images/flagsv2/mediumPriority.svg +0 -3
  80. package/src/assets/images/flagsv2/noPriority.svg +0 -3
  81. package/src/assets/images/generalButton/closeIconWhite.svg +0 -4
  82. package/src/assets/images/generalButton/closeIconv2.svg +0 -4
  83. package/src/components/atoms/CharsMissing/Wysiwyg.stories.js +0 -12
  84. package/src/components/atoms/CharsMissing/index.js +0 -60
  85. package/src/components/atoms/CharsMissing/styles.js +0 -44
  86. package/src/components/atoms/FeatureTagv2/FeatureTagv2.stories.js +0 -16
  87. package/src/components/atoms/FeatureTagv2/index.js +0 -10
  88. package/src/components/atoms/FeatureTagv2/styles.js +0 -56
  89. package/src/components/atoms/GeneralInputv2/GeneralInputv2.stories.js +0 -33
  90. package/src/components/atoms/GeneralInputv2/index.js +0 -155
  91. package/src/components/atoms/GeneralInputv2/styles.js +0 -67
  92. package/src/components/atoms/ImageCarousel/ImgeSlider.stories.js +0 -76
  93. package/src/components/atoms/ImageCarousel/index.js +0 -103
  94. package/src/components/atoms/ImageCarousel/styles.js +0 -79
  95. package/src/components/atoms/InputFormatterv2/Wysiwyg.stories.js +0 -12
  96. package/src/components/atoms/InputFormatterv2/index.js +0 -148
  97. package/src/components/atoms/InputFormatterv2/styles.js +0 -39
  98. package/src/components/atoms/InputImages/InputImages.stories.js +0 -19
  99. package/src/components/atoms/InputImages/index.js +0 -25
  100. package/src/components/atoms/InputImages/styles.js +0 -17
  101. package/src/components/atoms/NumberMandatory/NumberMandatory.stories.js +0 -19
  102. package/src/components/atoms/NumberMandatory/index.js +0 -16
  103. package/src/components/atoms/NumberMandatory/styles.js +0 -11
  104. package/src/components/atoms/PercentTag/PercentTag.stories.js +0 -7
  105. package/src/components/atoms/PercentTag/index.js +0 -9
  106. package/src/components/atoms/PercentTag/styles.js +0 -69
  107. package/src/components/atoms/PriorityFlagv2/PriorityFlagv2.stories.js +0 -20
  108. package/src/components/atoms/PriorityFlagv2/index.js +0 -20
  109. package/src/components/atoms/PriorityFlagv2/styles.js +0 -6
  110. package/src/components/atoms/ProductImagev2/ProductImagev2.stories.js +0 -28
  111. package/src/components/atoms/ProductImagev2/index.js +0 -16
  112. package/src/components/atoms/ProductImagev2/styles.js +0 -62
  113. package/src/components/atoms/Progress/Progress.stories.js +0 -25
  114. package/src/components/atoms/Progress/index.js +0 -74
  115. package/src/components/atoms/Progress/styles.js +0 -98
  116. package/src/components/atoms/RatingStars/RatingStars.stories.js +0 -10
  117. package/src/components/atoms/RatingStars/index.js +0 -31
  118. package/src/components/atoms/RatingStars/styles.js +0 -28
  119. package/src/components/atoms/RetailerCatalog/RetailerCatalog.stories.js +0 -36
  120. package/src/components/atoms/RetailerCatalog/index.js +0 -49
  121. package/src/components/atoms/RetailerCatalog/styles.js +0 -30
  122. package/src/components/atoms/RetailerOption/RetailerOption.stories.js +0 -15
  123. package/src/components/atoms/RetailerOption/index.js +0 -53
  124. package/src/components/atoms/RetailerOption/styles.js +0 -41
  125. package/src/components/atoms/RetailersList/RetailersList.stories.js +0 -33
  126. package/src/components/atoms/RetailersList/index.js +0 -20
  127. package/src/components/atoms/RetailersList/styles.js +0 -19
  128. package/src/components/atoms/ScreenHeaderv2/ScreenHeaderv2.stories.js +0 -53
  129. package/src/components/atoms/ScreenHeaderv2/index.js +0 -134
  130. package/src/components/atoms/ScreenHeaderv2/styles.js +0 -103
  131. package/src/components/atoms/Selectv2/VersionSelect.js +0 -27
  132. package/src/components/atoms/Selectv2/index.js +0 -35
  133. package/src/components/atoms/Selectv2/style.js +0 -93
  134. package/src/components/atoms/TabSectionv2/TabSection.stories.js +0 -25
  135. package/src/components/atoms/TabSectionv2/index.js +0 -9
  136. package/src/components/atoms/TabSectionv2/styles.js +0 -20
  137. package/src/components/atoms/TooltipLight/Tooltip.stories.js +0 -20
  138. package/src/components/atoms/TooltipLight/index.js +0 -46
  139. package/src/components/atoms/TooltipLight/styles.js +0 -65
  140. package/src/components/atoms/UserCatalog/UserCatalog.stories.js +0 -67
  141. package/src/components/atoms/UserCatalog/index.js +0 -100
  142. package/src/components/atoms/UserCatalog/styles.js +0 -24
  143. package/src/components/atoms/UserOption/UserOption.stories.js +0 -25
  144. package/src/components/atoms/UserOption/index.js +0 -95
  145. package/src/components/atoms/UserOption/styles.js +0 -61
  146. package/src/components/atoms/UserSelector/UserSelector.stories.js +0 -25
  147. package/src/components/atoms/UserSelector/index.js +0 -86
  148. package/src/components/atoms/UserSelector/styles.js +0 -55
  149. package/src/components/atoms/WordsMissing/Wysiwyg.stories.js +0 -12
  150. package/src/components/atoms/WordsMissing/index.js +0 -60
  151. package/src/components/atoms/WordsMissing/styles.js +0 -10
  152. package/src/components/molecules/AsignationInfo/AsignationInfo.stories.js +0 -17
  153. package/src/components/molecules/AsignationInfo/index.js +0 -108
  154. package/src/components/molecules/AsignationInfo/styles.js +0 -86
  155. package/src/components/molecules/EditionActiveImagev2/EditionActiveImagev2.stories.js +0 -12
  156. package/src/components/molecules/EditionActiveImagev2/index.js +0 -15
  157. package/src/components/molecules/EditionActiveImagev2/styles.js +0 -7
  158. package/src/components/molecules/FeaturesBarv2/FeaturesBarv2.stories.js +0 -20
  159. package/src/components/molecules/FeaturesBarv2/index.js +0 -32
  160. package/src/components/molecules/FeaturesBarv2/styles.js +0 -17
  161. package/src/components/molecules/GalleryElementv2/GalleryElementv2.stories.js +0 -30
  162. package/src/components/molecules/GalleryElementv2/index.js +0 -142
  163. package/src/components/molecules/GalleryElementv2/styles.js +0 -119
  164. package/src/components/molecules/GalleryHeaderv2/GalleryHeaderv2.stories.js +0 -10
  165. package/src/components/molecules/GalleryHeaderv2/index.js +0 -25
  166. package/src/components/molecules/GalleryHeaderv2/styles.js +0 -47
  167. package/src/components/molecules/GridItem/GridItem.stories.js +0 -126
  168. package/src/components/molecules/GridItem/index.js +0 -105
  169. package/src/components/molecules/GridItem/styles.js +0 -104
  170. package/src/components/molecules/HeaderItem/ColumnItem.js +0 -9
  171. package/src/components/molecules/HeaderItem/HeaderItem.stories.js +0 -24
  172. package/src/components/molecules/HeaderItem/index.js +0 -26
  173. package/src/components/molecules/HeaderItem/styles.js +0 -27
  174. package/src/components/molecules/HeaderTopv2/HeaderTopv2.stories.js +0 -10
  175. package/src/components/molecules/HeaderTopv2/index.js +0 -100
  176. package/src/components/molecules/HeaderTopv2/styles.js +0 -33
  177. package/src/components/molecules/ImageSelectorv2/ImageSelectorv2.stories.js +0 -46
  178. package/src/components/molecules/ImageSelectorv2/index.js +0 -22
  179. package/src/components/molecules/ImageSelectorv2/styles.js +0 -15
  180. package/src/components/molecules/Phase/Phase.stories.js +0 -37
  181. package/src/components/molecules/Phase/index.js +0 -56
  182. package/src/components/molecules/Phase/styles.js +0 -82
  183. package/src/components/molecules/ProductNameHeaderv2/ProductNameHeaderv2.stories.js +0 -37
  184. package/src/components/molecules/ProductNameHeaderv2/index.js +0 -12
  185. package/src/components/molecules/ProductNameHeaderv2/styles.js +0 -10
  186. package/src/components/molecules/ProductSkuStatus/ProductSkuStatus.stories.js +0 -37
  187. package/src/components/molecules/ProductSkuStatus/index.js +0 -26
  188. package/src/components/molecules/ProductSkuStatus/styles.js +0 -7
  189. package/src/components/molecules/RetailerSelectorv2/RetailerSelectorv2.stories.js +0 -35
  190. package/src/components/molecules/RetailerSelectorv2/index.js +0 -80
  191. package/src/components/molecules/RetailerSelectorv2/styles.js +0 -21
  192. package/src/components/molecules/RowItem/ColumnItem.js +0 -9
  193. package/src/components/molecules/RowItem/RowItem.stories.js +0 -5660
  194. package/src/components/molecules/RowItem/index.js +0 -45
  195. package/src/components/molecules/RowItem/styles.js +0 -40
  196. package/src/components/molecules/ServiceDataValidator/ServiceDataValidator.stories.js +0 -90
  197. package/src/components/molecules/ServiceDataValidator/index.js +0 -49
  198. package/src/components/molecules/ServiceDataValidator/styles.js +0 -36
  199. package/src/components/molecules/StatusRetailer/StatusAsignationInfo.stories.js +0 -17
  200. package/src/components/molecules/StatusRetailer/index.js +0 -55
  201. package/src/components/molecules/StatusRetailer/styles.js +0 -85
  202. package/src/components/molecules/TabsMenuv2/TabsMenuv2.stories.js +0 -19
  203. package/src/components/molecules/TabsMenuv2/index.js +0 -112
  204. package/src/components/molecules/TabsMenuv2/styles.js +0 -19
  205. package/src/components/molecules/TagAndInputv2/TagAndInputv2.stories.js +0 -24
  206. package/src/components/molecules/TagAndInputv2/index.js +0 -86
  207. package/src/components/molecules/TagAndInputv2/styles.js +0 -35
  208. package/src/components/molecules/Validation/Validation.stories.js +0 -12
  209. package/src/components/molecules/Validation/index.js +0 -77
  210. package/src/components/molecules/Validation/styles.js +0 -19
  211. package/src/components/molecules/VersionItemv2/VersionItemv2.stories.js +0 -14
  212. package/src/components/molecules/VersionItemv2/index.js +0 -59
  213. package/src/components/molecules/VersionItemv2/styles.js +0 -47
  214. package/src/components/organisms/BarButtons/BarButtons.stories.js +0 -13
  215. package/src/components/organisms/BarButtons/index.js +0 -150
  216. package/src/components/organisms/BarButtons/styles.js +0 -54
  217. package/src/components/organisms/Chatv2/ChatLists/ChatLists.stories.js +0 -65
  218. package/src/components/organisms/Chatv2/ChatLists/Rotoplas.jpeg +0 -0
  219. package/src/components/organisms/Chatv2/ChatLists/THD.png +0 -0
  220. package/src/components/organisms/Chatv2/ChatLists/index.js +0 -141
  221. package/src/components/organisms/Chatv2/ChatLists/styles.js +0 -162
  222. package/src/components/organisms/Chatv2/Chatv2.stories.js +0 -184
  223. package/src/components/organisms/Chatv2/ContainerItems/ContainerItems.stories.js +0 -142
  224. package/src/components/organisms/Chatv2/ContainerItems/index.js +0 -538
  225. package/src/components/organisms/Chatv2/ContainerItems/styles.js +0 -360
  226. package/src/components/organisms/Chatv2/ContentChat/ContentChat.stories.js +0 -102
  227. package/src/components/organisms/Chatv2/ContentChat/Rotoplas.jpeg +0 -0
  228. package/src/components/organisms/Chatv2/ContentChat/THD.png +0 -0
  229. package/src/components/organisms/Chatv2/ContentChat/index.js +0 -1016
  230. package/src/components/organisms/Chatv2/ContentChat/styles.js +0 -44
  231. package/src/components/organisms/Chatv2/Footer/Footer.stories.js +0 -22
  232. package/src/components/organisms/Chatv2/Footer/index.js +0 -668
  233. package/src/components/organisms/Chatv2/Footer/styles.js +0 -290
  234. package/src/components/organisms/Chatv2/Header/Header.stories.js +0 -66
  235. package/src/components/organisms/Chatv2/Header/index.js +0 -93
  236. package/src/components/organisms/Chatv2/Header/styles.js +0 -49
  237. package/src/components/organisms/Chatv2/index.js +0 -281
  238. package/src/components/organisms/Chatv2/styles.js +0 -85
  239. package/src/components/organisms/CompleteServices/CompleteServices.stories.js +0 -91
  240. package/src/components/organisms/CompleteServices/index.js +0 -82
  241. package/src/components/organisms/CompleteServices/styles.js +0 -35
  242. package/src/components/organisms/DragAndDropPhases/DragAndDropPhases.stories.js +0 -12
  243. package/src/components/organisms/DragAndDropPhases/index.js +0 -67
  244. package/src/components/organisms/DragAndDropPhases/styles.js +0 -20
  245. package/src/components/organisms/DragPrueba/DragPrueba.stories.js +0 -12
  246. package/src/components/organisms/DragPrueba/index.js +0 -57
  247. package/src/components/organisms/DragPrueba/styles.js +0 -8
  248. package/src/components/organisms/FullProductNamev2/FullProductNamev2.stories.js +0 -28
  249. package/src/components/organisms/FullProductNamev2/index.js +0 -101
  250. package/src/components/organisms/FullProductNamev2/styles.js +0 -49
  251. package/src/components/organisms/FullTabsMenuv2/FullTabsMenuv2.stories.js +0 -22
  252. package/src/components/organisms/FullTabsMenuv2/index.js +0 -142
  253. package/src/components/organisms/FullTabsMenuv2/styles.js +0 -47
  254. package/src/components/organisms/GridProducts/GridProducts.stories.js +0 -5485
  255. package/src/components/organisms/GridProducts/index.js +0 -50
  256. package/src/components/organisms/GridProducts/styles.js +0 -14
  257. package/src/components/organisms/GridProducts/utils.js +0 -111
  258. package/src/components/organisms/ImageDataTablev2/ImageDataTablev2.stories.js +0 -24
  259. package/src/components/organisms/ImageDataTablev2/index.js +0 -124
  260. package/src/components/organisms/ImageDataTablev2/styles.js +0 -18
  261. package/src/components/organisms/ImagePreviewerv2/ImagePreviewerv2.stories.js +0 -38
  262. package/src/components/organisms/ImagePreviewerv2/index.js +0 -22
  263. package/src/components/organisms/ImagePreviewerv2/styles.js +0 -7
  264. package/src/components/organisms/InputGroupv2/InputGroupv2.stories.js +0 -31
  265. package/src/components/organisms/InputGroupv2/index.js +0 -296
  266. package/src/components/organisms/InputGroupv2/styles.js +0 -90
  267. package/src/components/organisms/MandatoryBar/MandatoryBar.stories.js +0 -18
  268. package/src/components/organisms/MandatoryBar/index.js +0 -31
  269. package/src/components/organisms/MandatoryBar/styles.js +0 -12
  270. package/src/components/organisms/ProductImageModalv2/ProductImageModalv2.stories.js +0 -90
  271. package/src/components/organisms/ProductImageModalv2/index.js +0 -105
  272. package/src/components/organisms/ProductImageModalv2/styles.js +0 -71
  273. package/src/components/organisms/RenameImagesBar/RenameImagesBar.stories.js +0 -18
  274. package/src/components/organisms/RenameImagesBar/index.js +0 -30
  275. package/src/components/organisms/RenameImagesBar/styles.js +0 -12
  276. package/src/components/organisms/VersionSelectorv2/VersionSelectorv2.stories.js +0 -15
  277. package/src/components/organisms/VersionSelectorv2/index.js +0 -105
  278. package/src/components/organisms/VersionSelectorv2/styles.js +0 -45
  279. package/src/components/pages/ProductEditionv2/ProductEditionv2.stories.js +0 -213
  280. package/src/components/pages/ProductEditionv2/index.js +0 -1758
  281. package/src/components/pages/ProductEditionv2/styles.js +0 -154
@@ -1,16 +0,0 @@
1
- import { FeatureTagv2 } from "./index";
2
-
3
- export default {
4
- title: "Components/atoms/FeatureTagv2",
5
- label: "Feature Tag",
6
- component: FeatureTagv2,
7
- };
8
-
9
- const Template = (args) => <FeatureTagv2 {...args} />;
10
-
11
- export const FeatureTagDefault = Template.bind({});
12
-
13
- FeatureTagDefault.args = {
14
- feature: "Feature",
15
- value: "Value",
16
- };
@@ -1,10 +0,0 @@
1
- import { Container } from "./styles";
2
-
3
- export const FeatureTagv2 = ({ feature, value, contClassName ,tagClassName }) => {
4
- return (
5
- <Container className={`${contClassName}`}>
6
- <p className={`feature-name ${tagClassName}`}>{feature}</p>
7
- <p className="feature-value">{value}</p>
8
- </Container>
9
- );
10
- };
@@ -1,56 +0,0 @@
1
- import styled from "styled-components";
2
- import "../../../global-files/global-styles.css";
3
- import { GlobalColors, FontFamily } from "../../../global-files/variables";
4
-
5
- export const Container = styled.div`
6
- border-radius: 3px;
7
- display: flex;
8
- width: fit-content;
9
- height: 20px;
10
- padding: 4px 5px;
11
- align-items: center;
12
-
13
- .feature-name {
14
- font-size: 10px;
15
- font-family: ${FontFamily.Raleway_500};
16
- font-style: normal;
17
- font-weight: 500;
18
- font-size: 10px;
19
- line-height: 12px;
20
- color: ${GlobalColors.gray};
21
-
22
- & + * {
23
- margin-left: 5px;
24
- }
25
- &.bar-container {
26
- background-color: #f0eef2;
27
- border-radius: 3px;
28
- height: 20px;
29
- padding: 4px 5px;
30
- min-width: 70px;
31
- text-align: center;
32
- }
33
- }
34
- .feature-value {
35
- font-family: ${FontFamily.AvenirNext};
36
- font-style: normal;
37
- font-weight: 400;
38
- font-size: 12px;
39
- line-height: 14px;
40
- height: 12px;
41
- letter-spacing: -0.015em;
42
- color: ${GlobalColors.gray};
43
- }
44
-
45
- &:last-of-type {
46
- p {
47
- font-size: 10px;
48
- }
49
- }
50
- &.bar-sku-cont {
51
- background-color: ${GlobalColors.purple};
52
- p{
53
- color: ${GlobalColors.white};
54
- }
55
- }
56
- `;
@@ -1,33 +0,0 @@
1
- import { GeneralInputv2 } from "./index";
2
-
3
- export default {
4
- title: "Components/atoms/GeneralInputv2",
5
- component: GeneralInputv2,
6
- argTypes: {
7
- inputType: {
8
- options: ["text", "textarea"],
9
- control: { type: "select" },
10
- },
11
- },
12
- };
13
-
14
- const Template = (args) => <GeneralInputv2 {...args} />;
15
-
16
- export const Input = Template.bind({});
17
-
18
- Input.args = {
19
- inputId: "default-input",
20
- inputType: "text",
21
- inputPlaceholder: "placeholder text",
22
- };
23
-
24
- export const TextArea = Template.bind({});
25
-
26
- TextArea.args = {
27
- inputType: "textarea",
28
- inputId: "default-input",
29
- inputCols: "50",
30
- inputRows: "5",
31
- inputName: "text-area-name",
32
- inputPlaceholder: "textarea placeholder",
33
- };
@@ -1,155 +0,0 @@
1
- import { useEffect, useState } from "react";
2
- import { Container } from "./styles";
3
- import { CheckBox } from "../CheckBox";
4
- import { InputFormatterv2 } from "../InputFormatterv2";
5
-
6
- export const GeneralInputv2 = ({
7
- inputType,
8
- inputId,
9
- inputName,
10
- inputValue = "",
11
- inputPlaceholder,
12
- validateInput,
13
- position,
14
- inputsArray,
15
- inputSize,
16
- articleId,
17
- updatedDatasheets,
18
- setUpdatedDatasheets,
19
- updatedDescriptions,
20
- setUpdatedDescriptions,
21
- maxChar,
22
- isRequired,
23
- version,
24
- optionList = [],
25
- description,
26
- inputOnChange,
27
- disabled,
28
- onKeyDown,
29
- auditClass,
30
- }) => {
31
- const [textValue, setTextValue] = useState({
32
- value: inputValue,
33
- });
34
- const [requiredEmpty, setRequiredEmpty] = useState(false);
35
-
36
- const onHandleChange = (evt) => {
37
- if (validateInput) {
38
- setTextValue({ value: validateInput(evt, position, inputsArray) });
39
- } else if (
40
- updatedDatasheets ||
41
- updatedDescriptions ||
42
- inputType === "textarea"
43
- ) {
44
- let generalValue;
45
- if (optionList?.length > 0) {
46
- let valueSelected = evt.target.value;
47
- generalValue = valueSelected;
48
- setTextValue({ value: generalValue });
49
- } else {
50
- generalValue =
51
- inputType === "checkbox" ? evt.target.checked : evt.target.value;
52
- setTextValue({
53
- value: generalValue,
54
- });
55
- }
56
- let dataSave = updatedDatasheets?.slice();
57
-
58
- if (dataSave?.length > 0) {
59
- const index = dataSave.findIndex((e) => e.attributeId === inputId);
60
- if (index !== -1) {
61
- if (generalValue !== inputValue) dataSave[index].value = generalValue;
62
- else dataSave.splice(index, 1);
63
- } else {
64
- dataSave.push({
65
- articleId: articleId,
66
- attributeId: inputId,
67
- value: generalValue,
68
- });
69
- }
70
- } else {
71
- if (generalValue !== inputValue) {
72
- dataSave.push({
73
- articleId: articleId,
74
- attributeId: inputId,
75
- value: generalValue,
76
- });
77
- }
78
- }
79
- setUpdatedDatasheets(dataSave);
80
- } else {
81
- setTextValue({ value: evt.target.value });
82
- inputOnChange && inputOnChange(evt);
83
- }
84
- };
85
-
86
- useEffect(() => {
87
- setRequiredEmpty(
88
- isRequired &&
89
- (textValue.value?.length === 0 || textValue.value === undefined)
90
- );
91
- }, [textValue]);
92
-
93
- const numberInputOnWheelPreventChange = (e) => {
94
- // Prevent the input value change
95
- e.target.blur();
96
- // Prevent the page/container scrolling
97
- e.stopPropagation();
98
- // Refocus immediately, on the next tick (after the current function is done)
99
- setTimeout(() => e.target.focus(), 0);
100
- };
101
-
102
- return (
103
- <Container isRequired={requiredEmpty} className={auditClass}>
104
- {optionList?.length > 0 ? (
105
- <select
106
- key={`dropdownK${inputId}`}
107
- id={`dropdown${inputId}`}
108
- onChange={(e) => onHandleChange(e)}
109
- defaultValue={textValue.value}
110
- >
111
- <option value="">{description}</option>
112
- {JSON.parse(optionList || "[]").map((element, index) => (
113
- <option key={element + "-" + index} value={element}>
114
- {element}
115
- </option>
116
- ))}
117
- </select>
118
- ) : inputType === "checkbox" ? (
119
- <CheckBox
120
- id={inputId}
121
- onChange={(e) => onHandleChange(e)}
122
- defaultChecked={textValue.value === "true" ? true : false}
123
- />
124
- ) : inputType !== "textarea" ? (
125
- <input
126
- type={inputType}
127
- disabled={disabled}
128
- id={inputId}
129
- size={inputSize}
130
- className="general-input"
131
- placeholder={inputPlaceholder}
132
- value={textValue.value}
133
- onInput={(e) => onHandleChange(e)}
134
- maxLength={maxChar}
135
- required={isRequired}
136
- onKeyDown={onKeyDown}
137
- onWheel={numberInputOnWheelPreventChange}
138
- />
139
- ) : (
140
- <InputFormatterv2
141
- name={inputName}
142
- inputId={inputId}
143
- placeholder={inputPlaceholder}
144
- mainValue={textValue.value}
145
- onChange={onHandleChange}
146
- articleId={articleId}
147
- updatedDescriptions={updatedDescriptions}
148
- setUpdatedDescriptions={setUpdatedDescriptions}
149
- maxChar={maxChar}
150
- isRequired={isRequired}
151
- />
152
- )}
153
- </Container>
154
- );
155
- };
@@ -1,67 +0,0 @@
1
- import styled from "styled-components";
2
- import { FontFamily, GlobalColors } from "../../../global-files/variables";
3
-
4
- export const Container = styled.div`
5
- width: 100%;
6
- > div {
7
- label {
8
- &:before {
9
- outline: 1px solid ${({ isRequired }) => (isRequired ? "red" : "none")};
10
- }
11
- }
12
- }
13
-
14
- input,
15
- textarea {
16
- width: 100%;
17
- border: 1px solid
18
- ${({ isRequired }) => (isRequired ? "red" : `${GlobalColors.s2}`)};
19
-
20
- font-family: ${FontFamily.AvenirNext};
21
- color: ${GlobalColors.deep_gray};
22
- font-weight: normal;
23
- font-size: 12px;
24
- line-height: 15px;
25
- padding: 10px;
26
- outline: none;
27
- border-radius: 5px;
28
- resize: none;
29
-
30
- &:focus {
31
- border: 1px solid ${GlobalColors.purple};
32
- }
33
- }
34
-
35
- select {
36
- background: #fafafa;
37
- outline: none;
38
- border: 1px solid
39
- ${({ isRequired }) => (isRequired ? "red" : `${GlobalColors.s2}`)};
40
- width: 100%;
41
- cursor: pointer;
42
- font-family: ${FontFamily.AvenirNext};
43
- color: ${GlobalColors.deep_gray};
44
- font-size: 12px;
45
- line-height: 21px;
46
- padding: 10px;
47
- border-right: 2px solid #e33aa9;
48
-
49
- &:focus {
50
- border: 1px solid ${GlobalColors.magenta_s2};
51
- }
52
- }
53
-
54
- p {
55
- font-family: ${FontFamily.Raleway};
56
- font-size: 12px;
57
- color: ${GlobalColors.deep_gray};
58
- }
59
-
60
- &.audit-class {
61
- input,
62
- .quill {
63
- border: 1px solid #8a6caa;
64
- background-color: #ededfc;
65
- }
66
- }
67
- `;
@@ -1,76 +0,0 @@
1
- import { ImageCarousel } from ".";
2
-
3
- export default {
4
- title: "Components/atoms/ImageCarousel",
5
- component: ImageCarousel,
6
- };
7
-
8
- const Template = (args) => <ImageCarousel {...args} />;
9
- export const ImageCarouselDefault = Template.bind({});
10
- ImageCarouselDefault.args = {
11
- imageArray: [
12
- {
13
- id: 35596,
14
- status: null,
15
- image_id: 1,
16
- packing_type: "3",
17
- image_type: "1",
18
- article_id: "38443",
19
- src: "https://d24s337exbt5zr.cloudfront.net/eyJidWNrZXQiOiJjb250ZW50LW1hbmFnZW1lbnQtaW1hZ2VzIiwia2V5IjoiaWQtMzg0NDMvMTUvMS1kNDQ2ZjIwNy0wYTkzLTQyNzgtYWZjNi01MTY2ZjIyY2EzNDMucG5nIiwiZWRpdHMiOnsicmVzaXplIjp7IndpZHRoIjoxMDAwLCJoZWlnaHQiOjEwMDAsImZpdCI6ImNvbnRhaW4iLCJiYWNrZ3JvdW5kIjp7InIiOjI1NSwiZyI6MjU1LCJiIjoyNTUsImFscGhhIjoxfX19fQ==",
20
- timestamp: "2023-05-30T03:01:12.000Z",
21
- id_version: 15,
22
- width: null,
23
- height: null,
24
- scene_type: null,
25
- image_shot_type: null,
26
- last_modified: "2023-06-05T23:49:49.000Z",
27
- name: "Central (Frente Comercial)",
28
- version: 15,
29
- ext: "png",
30
- uuid: "d446f207-0a93-4278-afc6-5166f22ca343",
31
- srcDB: "id-38443/15/1-d446f207-0a93-4278-afc6-5166f22ca343.png",
32
- },
33
- {
34
- id: 35597,
35
- status: null,
36
- image_id: 3,
37
- packing_type: "3",
38
- image_type: "1",
39
- article_id: "38443",
40
- src: "https://d24s337exbt5zr.cloudfront.net/eyJidWNrZXQiOiJjb250ZW50LW1hbmFnZW1lbnQtaW1hZ2VzIiwia2V5IjoiaWQtMzg0NDMvMTUvMy0yOTZkMzU3ZC00OTUzLTRiMzktYjFjMy04YWZmZDI2NDgwMWIucG5nIiwiZWRpdHMiOnsicmVzaXplIjp7IndpZHRoIjoxMDAwLCJoZWlnaHQiOjEwMDAsImZpdCI6ImNvbnRhaW4iLCJiYWNrZ3JvdW5kIjp7InIiOjI1NSwiZyI6MjU1LCJiIjoyNTUsImFscGhhIjoxfX19fQ==",
41
- timestamp: "2023-05-30T03:01:12.000Z",
42
- id_version: 15,
43
- width: null,
44
- height: null,
45
- scene_type: null,
46
- image_shot_type: null,
47
- last_modified: "2023-06-05T23:49:49.000Z",
48
- name: "Trasera (Back)",
49
- version: 15,
50
- ext: "png",
51
- uuid: "296d357d-4953-4b39-b1c3-8affd264801b",
52
- srcDB: "id-38443/15/3-296d357d-4953-4b39-b1c3-8affd264801b.png",
53
- },
54
- {
55
- id: 35598,
56
- status: null,
57
- image_id: 16,
58
- packing_type: "3",
59
- image_type: "1",
60
- article_id: "38443",
61
- src: "https://d24s337exbt5zr.cloudfront.net/eyJidWNrZXQiOiJjb250ZW50LW1hbmFnZW1lbnQtaW1hZ2VzIiwia2V5IjoiaWQtMzg0NDMvMTUvMTYtOGMzNDIzM2YtZTRiMC00MjU0LWFlYzUtZjEyN2ZiYjhkYmVkLnBuZyIsImVkaXRzIjp7InJlc2l6ZSI6eyJ3aWR0aCI6MTAwMCwiaGVpZ2h0IjoxMDAwLCJmaXQiOiJjb250YWluIiwiYmFja2dyb3VuZCI6eyJyIjoyNTUsImciOjI1NSwiYiI6MjU1LCJhbHBoYSI6MX19fX0=",
62
- timestamp: "2023-05-30T03:01:12.000Z",
63
- id_version: 15,
64
- width: null,
65
- height: null,
66
- scene_type: null,
67
- image_shot_type: null,
68
- last_modified: "2023-06-05T23:49:49.000Z",
69
- name: "Detalle / Características 1",
70
- version: 15,
71
- ext: "png",
72
- uuid: "8c34233f-e4b0-4254-aec5-f127fbb8dbed",
73
- srcDB: "id-38443/15/16-8c34233f-e4b0-4254-aec5-f127fbb8dbed.png",
74
- },
75
- ],
76
- };
@@ -1,103 +0,0 @@
1
- import { Container } from "./styles";
2
- import { useState, useEffect } from "react";
3
- import ReactImageFallback from "react-image-fallback";
4
- import spinner from "../../../assets/images/Icons/Spinner.gif";
5
- import ArrowBackIosIcon from "@mui/icons-material/ArrowBackIos";
6
- import productImage from "../../../assets/images/defaultImages/defaultProductImage.png";
7
-
8
- export const ImageCarousel = ({ imageArray = [] }) => {
9
- const [currentIndex, setCurrentIndex] = useState(0);
10
- const [transitioning, setTransitioning] = useState(false);
11
- const [isHover, setIsHover] = useState(false);
12
-
13
- const goToNextSlide = () => {
14
- if (!transitioning) {
15
- setTransitioning(true);
16
- setCurrentIndex((prevIndex) => (prevIndex + 1) % imageArray.length);
17
-
18
- setTimeout(() => {
19
- setTransitioning(false);
20
- }, 500); // Adjust the transition duration to match your CSS
21
- }
22
- };
23
-
24
- const goToPrevSlide = () => {
25
- if (!transitioning) {
26
- setTransitioning(true);
27
- setCurrentIndex(
28
- (prevIndex) => (prevIndex - 1 + imageArray.length) % imageArray.length
29
- );
30
-
31
- setTimeout(() => {
32
- setTransitioning(false);
33
- }, 500); // Adjust the transition duration to match your CSS
34
- }
35
- };
36
-
37
- // useEffect(() => {
38
- // const delay = 0;
39
- // let repeat;
40
- // setTimeout(() => {
41
- // repeat = setInterval(() => {
42
- // if (!isHover && imageArray.length > 1) goToNextSlide();
43
- // }, 10000);
44
- // }, delay);
45
- // return () => {
46
- // clearInterval(repeat);
47
- // };
48
- // }, [isHover]);
49
-
50
- return (
51
- <Container
52
- // onMouseEnter={() => setIsHover(true)}
53
- // onMouseLeave={() => setIsHover(false)}
54
- >
55
- {imageArray.length > 1 && (
56
- <button
57
- className="prev"
58
- onClick={(e) => {
59
- e.stopPropagation();
60
- goToPrevSlide();
61
- }}
62
- >
63
- <ArrowBackIosIcon />
64
- </button>
65
- )}
66
- <div className="slide-container">
67
- {imageArray.length ? (
68
- imageArray.map((img, index) => (
69
- <div
70
- key={index}
71
- className={`image-container slide ${
72
- index === currentIndex ? "active" : ""
73
- }`}
74
- >
75
- <ReactImageFallback
76
- key={index}
77
- src={`https://${process.env.REACT_APP_IMAGES_BUCKET}.s3.amazonaws.com/${img.src}`}
78
- fallbackImage={spinner}
79
- alt={img?.name}
80
- style={{
81
- transform: `translateX(-${currentIndex * 100}%)`,
82
- }}
83
- />
84
- </div>
85
- ))
86
- ) : (
87
- <img src={productImage} alt="not image" />
88
- )}
89
- </div>
90
- {imageArray.length > 1 && (
91
- <button
92
- className="next"
93
- onClick={(e) => {
94
- e.stopPropagation();
95
- goToNextSlide();
96
- }}
97
- >
98
- <ArrowBackIosIcon />
99
- </button>
100
- )}
101
- </Container>
102
- );
103
- };
@@ -1,79 +0,0 @@
1
- import styled from "styled-components";
2
-
3
- export const Container = styled.div`
4
- width: 174px;
5
- height: 175px;
6
- border-radius: 5px 5px 0px 0px;
7
- position: relative;
8
- overflow: hidden;
9
- display: flex;
10
- background-color: #f0f0f0;
11
-
12
- .slide-container {
13
- display: flex;
14
- width: 100%;
15
-
16
- .image-container {
17
- width: 100%;
18
- height: 100%;
19
-
20
- img {
21
- width: 100%;
22
- height: 100%;
23
- object-fit: fill;
24
- }
25
-
26
- &.slide {
27
- flex: 0 0 100%;
28
- opacity: 0;
29
- transition: opacity 0.5s ease-in-out;
30
-
31
- &.active {
32
- opacity: 1;
33
- }
34
- }
35
- }
36
-
37
- & > img {
38
- width: 100%;
39
- }
40
- }
41
-
42
- button {
43
- position: absolute;
44
- top: 0;
45
- border: none;
46
- cursor: pointer;
47
- background-color: transparent;
48
- color: white;
49
- z-index: 1;
50
- height: 100%;
51
- width: 30px;
52
-
53
- svg {
54
- font-size: 24px;
55
- }
56
-
57
- &.prev {
58
- left: 0;
59
-
60
- &:hover {
61
- background: linear-gradient(90deg, darkgray, transparent);
62
- }
63
- }
64
- &.next {
65
- right: 0;
66
-
67
- svg {
68
- transform: rotate(180deg);
69
- }
70
- &:hover {
71
- background: linear-gradient(-90deg, darkgray, transparent);
72
- }
73
- }
74
- }
75
-
76
- button:focus {
77
- outline: none;
78
- }
79
- `;
@@ -1,12 +0,0 @@
1
- import { InputFormatterv2 } from "./index";
2
-
3
- export default {
4
- title: "Components/atoms/InputFormatterv2",
5
- component: InputFormatterv2,
6
- };
7
-
8
- const Template = (args) => <InputFormatterv2 {...args} />;
9
-
10
- export const DefaultInputFormatterv2 = Template.bind({});
11
-
12
- DefaultInputFormatterv2.args = { text: "hola mundo" };