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.
- package/dist/components/atoms/Avatar/index.js +2 -3
- package/dist/components/atoms/CheckBox/styles.js +1 -1
- package/dist/components/atoms/GeneralButton/styles.js +2 -6
- package/dist/components/atoms/InputFormatter/styles.js +3 -3
- package/dist/components/atoms/SliderToolTip/styles.js +1 -1
- package/dist/components/molecules/BoxAttribute/index.js +3 -3
- package/dist/components/molecules/BoxAttribute/styles.js +1 -1
- package/dist/components/molecules/BoxButtons/index.js +1 -0
- package/dist/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/dist/components/molecules/HeaderTop/index.js +11 -68
- package/dist/components/molecules/SignInLogin/index.js +28 -36
- package/dist/components/molecules/StripeCardSelector/CardSelector.stories.js +2 -1
- package/dist/components/organisms/Chat/Chat.stories.js +8 -27
- package/dist/components/organisms/Chat/ContainerItems/index.js +3 -19
- package/dist/components/organisms/Chat/ContainerItems/styles.js +1 -1
- package/dist/components/organisms/Chat/ContentChat/index.js +197 -350
- package/dist/components/organisms/Chat/Footer/index.js +39 -48
- package/dist/components/organisms/Chat/index.js +4 -49
- package/dist/components/organisms/Chat/styles.js +1 -1
- package/dist/components/organisms/DashboardMetric/index.js +6 -12
- package/dist/components/organisms/FullProductNameHeader/index.js +2 -2
- package/dist/components/organisms/InputGroup/index.js +10 -1
- package/dist/components/organisms/Modal/styles.js +1 -1
- package/dist/components/organisms/VersionSelector/index.js +4 -2
- package/dist/components/pages/Dashboard/Dashboard.stories.js +36 -33
- package/dist/components/pages/Dashboard/index.js +9 -37
- package/dist/components/pages/ProviderProductEdition/index.js +144 -120
- package/dist/components/pages/ProviderProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +0 -4
- package/dist/components/pages/RetailerProductEdition/index.js +273 -278
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/utils.js +2 -61
- package/dist/global-files/data.js +3 -11
- package/dist/global-files/variables.js +1 -7
- package/dist/index.js +58 -201
- package/package.json +1 -2
- package/src/components/atoms/Avatar/index.js +2 -8
- package/src/components/atoms/CheckBox/styles.js +0 -2
- package/src/components/atoms/GeneralButton/styles.js +0 -46
- package/src/components/atoms/InputFormatter/styles.js +4 -9
- package/src/components/atoms/SliderToolTip/styles.js +1 -1
- package/src/components/atoms/TabSection/index.js +1 -1
- package/src/components/atoms/TabSection/styles.js +1 -1
- package/src/components/molecules/BoxAttribute/index.js +25 -32
- package/src/components/molecules/BoxAttribute/styles.js +1 -1
- package/src/components/molecules/BoxButtons/index.js +22 -23
- package/src/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/src/components/molecules/HeaderTop/index.js +6 -52
- package/src/components/molecules/SignInLogin/index.js +11 -11
- package/src/components/molecules/StripeCardSelector/CardSelector.stories.js +2 -1
- package/src/components/molecules/TagAndInput/index.js +5 -6
- package/src/components/organisms/Chat/Chat.stories.js +7 -27
- package/src/components/organisms/Chat/ContainerItems/index.js +2 -18
- package/src/components/organisms/Chat/ContainerItems/styles.js +2 -14
- package/src/components/organisms/Chat/ContentChat/index.js +12 -88
- package/src/components/organisms/Chat/Footer/index.js +0 -11
- package/src/components/organisms/Chat/index.js +4 -46
- package/src/components/organisms/Chat/styles.js +0 -4
- package/src/components/organisms/DashboardMetric/index.js +3 -6
- package/src/components/organisms/FullProductNameHeader/index.js +1 -1
- package/src/components/organisms/InputGroup/index.js +119 -131
- package/src/components/organisms/Modal/styles.js +1 -4
- package/src/components/organisms/OrderDetail/utils/Table/utils.js +16 -6
- package/src/components/organisms/VersionSelector/index.js +2 -1
- package/src/components/pages/Dashboard/Dashboard.stories.js +38 -33
- package/src/components/pages/Dashboard/index.js +7 -36
- package/src/components/pages/ProviderProductEdition/index.js +131 -100
- package/src/components/pages/ProviderProductEdition/styles.js +1 -5
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +0 -4
- package/src/components/pages/RetailerProductEdition/index.js +135 -106
- package/src/components/pages/RetailerProductEdition/styles.js +0 -4
- package/src/components/pages/RetailerProductEdition/utils.js +0 -37
- package/src/global-files/data.js +10 -6
- package/src/global-files/variables.js +0 -6
- package/src/index.js +0 -11
- package/src/assets/images/Icons/infoNR.svg +0 -8
- package/src/assets/images/flagsv2/highPriority.svg +0 -3
- package/src/assets/images/flagsv2/lowPriority.svg +0 -3
- package/src/assets/images/flagsv2/mediumPriority.svg +0 -3
- package/src/assets/images/flagsv2/noPriority.svg +0 -3
- package/src/assets/images/generalButton/closeIconWhite.svg +0 -4
- package/src/assets/images/generalButton/closeIconv2.svg +0 -4
- package/src/components/atoms/CharsMissing/Wysiwyg.stories.js +0 -12
- package/src/components/atoms/CharsMissing/index.js +0 -60
- package/src/components/atoms/CharsMissing/styles.js +0 -44
- package/src/components/atoms/FeatureTagv2/FeatureTagv2.stories.js +0 -16
- package/src/components/atoms/FeatureTagv2/index.js +0 -10
- package/src/components/atoms/FeatureTagv2/styles.js +0 -56
- package/src/components/atoms/GeneralInputv2/GeneralInputv2.stories.js +0 -33
- package/src/components/atoms/GeneralInputv2/index.js +0 -155
- package/src/components/atoms/GeneralInputv2/styles.js +0 -67
- package/src/components/atoms/ImageCarousel/ImgeSlider.stories.js +0 -76
- package/src/components/atoms/ImageCarousel/index.js +0 -103
- package/src/components/atoms/ImageCarousel/styles.js +0 -79
- package/src/components/atoms/InputFormatterv2/Wysiwyg.stories.js +0 -12
- package/src/components/atoms/InputFormatterv2/index.js +0 -148
- package/src/components/atoms/InputFormatterv2/styles.js +0 -39
- package/src/components/atoms/InputImages/InputImages.stories.js +0 -19
- package/src/components/atoms/InputImages/index.js +0 -25
- package/src/components/atoms/InputImages/styles.js +0 -17
- package/src/components/atoms/NumberMandatory/NumberMandatory.stories.js +0 -19
- package/src/components/atoms/NumberMandatory/index.js +0 -16
- package/src/components/atoms/NumberMandatory/styles.js +0 -11
- package/src/components/atoms/PercentTag/PercentTag.stories.js +0 -7
- package/src/components/atoms/PercentTag/index.js +0 -9
- package/src/components/atoms/PercentTag/styles.js +0 -69
- package/src/components/atoms/PriorityFlagv2/PriorityFlagv2.stories.js +0 -20
- package/src/components/atoms/PriorityFlagv2/index.js +0 -20
- package/src/components/atoms/PriorityFlagv2/styles.js +0 -6
- package/src/components/atoms/ProductImagev2/ProductImagev2.stories.js +0 -28
- package/src/components/atoms/ProductImagev2/index.js +0 -16
- package/src/components/atoms/ProductImagev2/styles.js +0 -62
- package/src/components/atoms/Progress/Progress.stories.js +0 -25
- package/src/components/atoms/Progress/index.js +0 -74
- package/src/components/atoms/Progress/styles.js +0 -98
- package/src/components/atoms/RatingStars/RatingStars.stories.js +0 -10
- package/src/components/atoms/RatingStars/index.js +0 -31
- package/src/components/atoms/RatingStars/styles.js +0 -28
- package/src/components/atoms/RetailerCatalog/RetailerCatalog.stories.js +0 -36
- package/src/components/atoms/RetailerCatalog/index.js +0 -49
- package/src/components/atoms/RetailerCatalog/styles.js +0 -30
- package/src/components/atoms/RetailerOption/RetailerOption.stories.js +0 -15
- package/src/components/atoms/RetailerOption/index.js +0 -53
- package/src/components/atoms/RetailerOption/styles.js +0 -41
- package/src/components/atoms/RetailersList/RetailersList.stories.js +0 -33
- package/src/components/atoms/RetailersList/index.js +0 -20
- package/src/components/atoms/RetailersList/styles.js +0 -19
- package/src/components/atoms/ScreenHeaderv2/ScreenHeaderv2.stories.js +0 -53
- package/src/components/atoms/ScreenHeaderv2/index.js +0 -134
- package/src/components/atoms/ScreenHeaderv2/styles.js +0 -103
- package/src/components/atoms/Selectv2/VersionSelect.js +0 -27
- package/src/components/atoms/Selectv2/index.js +0 -35
- package/src/components/atoms/Selectv2/style.js +0 -93
- package/src/components/atoms/TabSectionv2/TabSection.stories.js +0 -25
- package/src/components/atoms/TabSectionv2/index.js +0 -9
- package/src/components/atoms/TabSectionv2/styles.js +0 -20
- package/src/components/atoms/TooltipLight/Tooltip.stories.js +0 -20
- package/src/components/atoms/TooltipLight/index.js +0 -46
- package/src/components/atoms/TooltipLight/styles.js +0 -65
- package/src/components/atoms/UserCatalog/UserCatalog.stories.js +0 -67
- package/src/components/atoms/UserCatalog/index.js +0 -100
- package/src/components/atoms/UserCatalog/styles.js +0 -24
- package/src/components/atoms/UserOption/UserOption.stories.js +0 -25
- package/src/components/atoms/UserOption/index.js +0 -95
- package/src/components/atoms/UserOption/styles.js +0 -61
- package/src/components/atoms/UserSelector/UserSelector.stories.js +0 -25
- package/src/components/atoms/UserSelector/index.js +0 -86
- package/src/components/atoms/UserSelector/styles.js +0 -55
- package/src/components/atoms/WordsMissing/Wysiwyg.stories.js +0 -12
- package/src/components/atoms/WordsMissing/index.js +0 -60
- package/src/components/atoms/WordsMissing/styles.js +0 -10
- package/src/components/molecules/AsignationInfo/AsignationInfo.stories.js +0 -17
- package/src/components/molecules/AsignationInfo/index.js +0 -108
- package/src/components/molecules/AsignationInfo/styles.js +0 -86
- package/src/components/molecules/EditionActiveImagev2/EditionActiveImagev2.stories.js +0 -12
- package/src/components/molecules/EditionActiveImagev2/index.js +0 -15
- package/src/components/molecules/EditionActiveImagev2/styles.js +0 -7
- package/src/components/molecules/FeaturesBarv2/FeaturesBarv2.stories.js +0 -20
- package/src/components/molecules/FeaturesBarv2/index.js +0 -32
- package/src/components/molecules/FeaturesBarv2/styles.js +0 -17
- package/src/components/molecules/GalleryElementv2/GalleryElementv2.stories.js +0 -30
- package/src/components/molecules/GalleryElementv2/index.js +0 -142
- package/src/components/molecules/GalleryElementv2/styles.js +0 -119
- package/src/components/molecules/GalleryHeaderv2/GalleryHeaderv2.stories.js +0 -10
- package/src/components/molecules/GalleryHeaderv2/index.js +0 -25
- package/src/components/molecules/GalleryHeaderv2/styles.js +0 -47
- package/src/components/molecules/GridItem/GridItem.stories.js +0 -126
- package/src/components/molecules/GridItem/index.js +0 -105
- package/src/components/molecules/GridItem/styles.js +0 -104
- package/src/components/molecules/HeaderItem/ColumnItem.js +0 -9
- package/src/components/molecules/HeaderItem/HeaderItem.stories.js +0 -24
- package/src/components/molecules/HeaderItem/index.js +0 -26
- package/src/components/molecules/HeaderItem/styles.js +0 -27
- package/src/components/molecules/HeaderTopv2/HeaderTopv2.stories.js +0 -10
- package/src/components/molecules/HeaderTopv2/index.js +0 -100
- package/src/components/molecules/HeaderTopv2/styles.js +0 -33
- package/src/components/molecules/ImageSelectorv2/ImageSelectorv2.stories.js +0 -46
- package/src/components/molecules/ImageSelectorv2/index.js +0 -22
- package/src/components/molecules/ImageSelectorv2/styles.js +0 -15
- package/src/components/molecules/Phase/Phase.stories.js +0 -37
- package/src/components/molecules/Phase/index.js +0 -56
- package/src/components/molecules/Phase/styles.js +0 -82
- package/src/components/molecules/ProductNameHeaderv2/ProductNameHeaderv2.stories.js +0 -37
- package/src/components/molecules/ProductNameHeaderv2/index.js +0 -12
- package/src/components/molecules/ProductNameHeaderv2/styles.js +0 -10
- package/src/components/molecules/ProductSkuStatus/ProductSkuStatus.stories.js +0 -37
- package/src/components/molecules/ProductSkuStatus/index.js +0 -26
- package/src/components/molecules/ProductSkuStatus/styles.js +0 -7
- package/src/components/molecules/RetailerSelectorv2/RetailerSelectorv2.stories.js +0 -35
- package/src/components/molecules/RetailerSelectorv2/index.js +0 -80
- package/src/components/molecules/RetailerSelectorv2/styles.js +0 -21
- package/src/components/molecules/RowItem/ColumnItem.js +0 -9
- package/src/components/molecules/RowItem/RowItem.stories.js +0 -5660
- package/src/components/molecules/RowItem/index.js +0 -45
- package/src/components/molecules/RowItem/styles.js +0 -40
- package/src/components/molecules/ServiceDataValidator/ServiceDataValidator.stories.js +0 -90
- package/src/components/molecules/ServiceDataValidator/index.js +0 -49
- package/src/components/molecules/ServiceDataValidator/styles.js +0 -36
- package/src/components/molecules/StatusRetailer/StatusAsignationInfo.stories.js +0 -17
- package/src/components/molecules/StatusRetailer/index.js +0 -55
- package/src/components/molecules/StatusRetailer/styles.js +0 -85
- package/src/components/molecules/TabsMenuv2/TabsMenuv2.stories.js +0 -19
- package/src/components/molecules/TabsMenuv2/index.js +0 -112
- package/src/components/molecules/TabsMenuv2/styles.js +0 -19
- package/src/components/molecules/TagAndInputv2/TagAndInputv2.stories.js +0 -24
- package/src/components/molecules/TagAndInputv2/index.js +0 -86
- package/src/components/molecules/TagAndInputv2/styles.js +0 -35
- package/src/components/molecules/Validation/Validation.stories.js +0 -12
- package/src/components/molecules/Validation/index.js +0 -77
- package/src/components/molecules/Validation/styles.js +0 -19
- package/src/components/molecules/VersionItemv2/VersionItemv2.stories.js +0 -14
- package/src/components/molecules/VersionItemv2/index.js +0 -59
- package/src/components/molecules/VersionItemv2/styles.js +0 -47
- package/src/components/organisms/BarButtons/BarButtons.stories.js +0 -13
- package/src/components/organisms/BarButtons/index.js +0 -150
- package/src/components/organisms/BarButtons/styles.js +0 -54
- package/src/components/organisms/Chatv2/ChatLists/ChatLists.stories.js +0 -65
- package/src/components/organisms/Chatv2/ChatLists/Rotoplas.jpeg +0 -0
- package/src/components/organisms/Chatv2/ChatLists/THD.png +0 -0
- package/src/components/organisms/Chatv2/ChatLists/index.js +0 -141
- package/src/components/organisms/Chatv2/ChatLists/styles.js +0 -162
- package/src/components/organisms/Chatv2/Chatv2.stories.js +0 -184
- package/src/components/organisms/Chatv2/ContainerItems/ContainerItems.stories.js +0 -142
- package/src/components/organisms/Chatv2/ContainerItems/index.js +0 -538
- package/src/components/organisms/Chatv2/ContainerItems/styles.js +0 -360
- package/src/components/organisms/Chatv2/ContentChat/ContentChat.stories.js +0 -102
- package/src/components/organisms/Chatv2/ContentChat/Rotoplas.jpeg +0 -0
- package/src/components/organisms/Chatv2/ContentChat/THD.png +0 -0
- package/src/components/organisms/Chatv2/ContentChat/index.js +0 -1016
- package/src/components/organisms/Chatv2/ContentChat/styles.js +0 -44
- package/src/components/organisms/Chatv2/Footer/Footer.stories.js +0 -22
- package/src/components/organisms/Chatv2/Footer/index.js +0 -668
- package/src/components/organisms/Chatv2/Footer/styles.js +0 -290
- package/src/components/organisms/Chatv2/Header/Header.stories.js +0 -66
- package/src/components/organisms/Chatv2/Header/index.js +0 -93
- package/src/components/organisms/Chatv2/Header/styles.js +0 -49
- package/src/components/organisms/Chatv2/index.js +0 -281
- package/src/components/organisms/Chatv2/styles.js +0 -85
- package/src/components/organisms/CompleteServices/CompleteServices.stories.js +0 -91
- package/src/components/organisms/CompleteServices/index.js +0 -82
- package/src/components/organisms/CompleteServices/styles.js +0 -35
- package/src/components/organisms/DragAndDropPhases/DragAndDropPhases.stories.js +0 -12
- package/src/components/organisms/DragAndDropPhases/index.js +0 -67
- package/src/components/organisms/DragAndDropPhases/styles.js +0 -20
- package/src/components/organisms/DragPrueba/DragPrueba.stories.js +0 -12
- package/src/components/organisms/DragPrueba/index.js +0 -57
- package/src/components/organisms/DragPrueba/styles.js +0 -8
- package/src/components/organisms/FullProductNamev2/FullProductNamev2.stories.js +0 -28
- package/src/components/organisms/FullProductNamev2/index.js +0 -101
- package/src/components/organisms/FullProductNamev2/styles.js +0 -49
- package/src/components/organisms/FullTabsMenuv2/FullTabsMenuv2.stories.js +0 -22
- package/src/components/organisms/FullTabsMenuv2/index.js +0 -142
- package/src/components/organisms/FullTabsMenuv2/styles.js +0 -47
- package/src/components/organisms/GridProducts/GridProducts.stories.js +0 -5485
- package/src/components/organisms/GridProducts/index.js +0 -50
- package/src/components/organisms/GridProducts/styles.js +0 -14
- package/src/components/organisms/GridProducts/utils.js +0 -111
- package/src/components/organisms/ImageDataTablev2/ImageDataTablev2.stories.js +0 -24
- package/src/components/organisms/ImageDataTablev2/index.js +0 -124
- package/src/components/organisms/ImageDataTablev2/styles.js +0 -18
- package/src/components/organisms/ImagePreviewerv2/ImagePreviewerv2.stories.js +0 -38
- package/src/components/organisms/ImagePreviewerv2/index.js +0 -22
- package/src/components/organisms/ImagePreviewerv2/styles.js +0 -7
- package/src/components/organisms/InputGroupv2/InputGroupv2.stories.js +0 -31
- package/src/components/organisms/InputGroupv2/index.js +0 -296
- package/src/components/organisms/InputGroupv2/styles.js +0 -90
- package/src/components/organisms/MandatoryBar/MandatoryBar.stories.js +0 -18
- package/src/components/organisms/MandatoryBar/index.js +0 -31
- package/src/components/organisms/MandatoryBar/styles.js +0 -12
- package/src/components/organisms/ProductImageModalv2/ProductImageModalv2.stories.js +0 -90
- package/src/components/organisms/ProductImageModalv2/index.js +0 -105
- package/src/components/organisms/ProductImageModalv2/styles.js +0 -71
- package/src/components/organisms/RenameImagesBar/RenameImagesBar.stories.js +0 -18
- package/src/components/organisms/RenameImagesBar/index.js +0 -30
- package/src/components/organisms/RenameImagesBar/styles.js +0 -12
- package/src/components/organisms/VersionSelectorv2/VersionSelectorv2.stories.js +0 -15
- package/src/components/organisms/VersionSelectorv2/index.js +0 -105
- package/src/components/organisms/VersionSelectorv2/styles.js +0 -45
- package/src/components/pages/ProductEditionv2/ProductEditionv2.stories.js +0 -213
- package/src/components/pages/ProductEditionv2/index.js +0 -1758
- package/src/components/pages/ProductEditionv2/styles.js +0 -154
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
import { FontFamily, GlobalColors } from "../../../global-files/variables";
|
|
3
|
-
|
|
4
|
-
export const Container = styled.div`
|
|
5
|
-
background-color: ${GlobalColors.s3};
|
|
6
|
-
width: fit-content;
|
|
7
|
-
height: 20px;
|
|
8
|
-
padding: 4px;
|
|
9
|
-
border-radius: 3px;
|
|
10
|
-
font-family: ${FontFamily.AvenirNext};
|
|
11
|
-
font-weight: 600;
|
|
12
|
-
font-size: 10px;
|
|
13
|
-
line-height: 12px;
|
|
14
|
-
color: ${(backgroundColor) =>
|
|
15
|
-
backgroundColor === "s2" || backgroundColor === "s1"
|
|
16
|
-
? GlobalColors.s4
|
|
17
|
-
: GlobalColors.white};
|
|
18
|
-
|
|
19
|
-
&.status-CA,
|
|
20
|
-
&.status-IE {
|
|
21
|
-
background-color: ${GlobalColors.in_progress};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&.status-R,
|
|
25
|
-
&.status-AS,
|
|
26
|
-
&.status-PA {
|
|
27
|
-
background-color: ${GlobalColors.reception};
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&.status-AA,
|
|
31
|
-
&.status-AP,
|
|
32
|
-
&.status-ACA,
|
|
33
|
-
&.status-AC {
|
|
34
|
-
background-color: ${GlobalColors.finished};
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&.status-RA,
|
|
38
|
-
&.status-RC,
|
|
39
|
-
&.status-RP,
|
|
40
|
-
&.status-RCA {
|
|
41
|
-
background-color: ${GlobalColors.rejected_status};
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&.status-Dat,
|
|
45
|
-
&.status-Dsc,
|
|
46
|
-
&.status-Imgs {
|
|
47
|
-
background-color: ${GlobalColors.s4};
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
&.status-Ex {
|
|
51
|
-
background-color: ${GlobalColors.exported};
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&.status-DDI {
|
|
55
|
-
background-color: ${GlobalColors.original_purpura};
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&.status-GLD {
|
|
59
|
-
background-color: ${GlobalColors.in_progress};
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&.status-TAB {
|
|
63
|
-
background-color: ${GlobalColors.deep_gray};
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
&.status-Pt {
|
|
67
|
-
background-color: ${GlobalColors.s2};
|
|
68
|
-
color: ${GlobalColors.s4};
|
|
69
|
-
}
|
|
70
|
-
`;
|
|
71
|
-
export const ContainerIcon = styled.div`
|
|
72
|
-
cursor: pointer;
|
|
73
|
-
@font-face {
|
|
74
|
-
font-family: "Material Symbols Outlined";
|
|
75
|
-
font-style: normal;
|
|
76
|
-
font-weight: 100 700;
|
|
77
|
-
src: url(https://fonts.gstatic.com/s/materialsymbolsoutlined/v68/kJEhBvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oFsLjBuVY.woff2)
|
|
78
|
-
format("woff2");
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.hola {
|
|
82
|
-
font-family: "Material Symbols Outlined";
|
|
83
|
-
font-size: 30px;
|
|
84
|
-
//line-height: 1;
|
|
85
|
-
margin-top: 10px;
|
|
86
|
-
}
|
|
87
|
-
.hola {
|
|
88
|
-
font-variation-settings: "FILL"
|
|
89
|
-
${(props) => (props.percentageRequired < 100 ? 0 : 1)},
|
|
90
|
-
"wght" 400, "GRAD" 0, "opsz" 48;
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
.icono-police{
|
|
94
|
-
font-size:20px;
|
|
95
|
-
color: ${(props) =>
|
|
96
|
-
props.percentageRequired < 100 ? "#d4d1d7" : "#ECDD1D"};
|
|
97
|
-
}
|
|
98
|
-
`;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { RatingStars } from ".";
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: "Components/atoms/RatingStars",
|
|
5
|
-
component: RatingStars,
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
const Template = (args) => <RatingStars {...args} />;
|
|
9
|
-
export const RatingStarsDefault = Template.bind({});
|
|
10
|
-
RatingStarsDefault.args = { percent: 80 };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Container } from "./styles";
|
|
2
|
-
import { faStar as starIcon } from "@fortawesome/free-regular-svg-icons";
|
|
3
|
-
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
4
|
-
import { useEffect } from "react";
|
|
5
|
-
import { useState } from "react";
|
|
6
|
-
|
|
7
|
-
export const RatingStars = ({ ratingValue = 0 }) => {
|
|
8
|
-
const [rating, setRating] = useState(0);
|
|
9
|
-
|
|
10
|
-
const handleRating = (value) => {
|
|
11
|
-
setRating(value);
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
useEffect(() => {
|
|
15
|
-
setRating(ratingValue);
|
|
16
|
-
}, []);
|
|
17
|
-
|
|
18
|
-
return (
|
|
19
|
-
<Container>
|
|
20
|
-
{[...Array(5)].map((_, index) => (
|
|
21
|
-
<span
|
|
22
|
-
key={index}
|
|
23
|
-
className={`star ${index < rating ? "active" : ""}`}
|
|
24
|
-
onClick={() => handleRating(index + 1)}
|
|
25
|
-
>
|
|
26
|
-
★
|
|
27
|
-
</span>
|
|
28
|
-
))}
|
|
29
|
-
</Container>
|
|
30
|
-
);
|
|
31
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
|
|
3
|
-
export const Container = styled.div`
|
|
4
|
-
font-size: 10px;
|
|
5
|
-
display: flex;
|
|
6
|
-
align-items: center;
|
|
7
|
-
|
|
8
|
-
.star {
|
|
9
|
-
cursor: pointer;
|
|
10
|
-
font-size: 12px;
|
|
11
|
-
color: #d9d9d9;
|
|
12
|
-
transition: color 0.3s;
|
|
13
|
-
line-height: 10px;
|
|
14
|
-
|
|
15
|
-
&:hover {
|
|
16
|
-
color: gold;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&.active {
|
|
20
|
-
transform: scale(1.2);
|
|
21
|
-
color: #8a6caa;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&:not(:first-child) {
|
|
25
|
-
margin-left: 5px;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
`;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { RetailerCatalog } from ".";
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: "Components/atoms/RetailerCatalog",
|
|
5
|
-
component: RetailerCatalog,
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
const Template = (args) => <RetailerCatalog {...args} />;
|
|
9
|
-
export const RetailerCatalogDefault = Template.bind({});
|
|
10
|
-
RetailerCatalogDefault.args = {
|
|
11
|
-
limit: 3,
|
|
12
|
-
articleId: 39474,
|
|
13
|
-
orderId: 15270,
|
|
14
|
-
retailers: [
|
|
15
|
-
{
|
|
16
|
-
id: 58,
|
|
17
|
-
name: "The Home Depot Golden",
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
id: 59,
|
|
21
|
-
name: "The Home Depot Platinum",
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
id: 60,
|
|
25
|
-
name: "The Home Depot Resizing",
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
id: 61,
|
|
29
|
-
name: "Home Depot TAB",
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
id: 68,
|
|
33
|
-
name: "The Home Depot Dropship",
|
|
34
|
-
},
|
|
35
|
-
],
|
|
36
|
-
};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { useState } from "react";
|
|
2
|
-
import { Avatar } from "../Avatar";
|
|
3
|
-
import { Container } from "./styles";
|
|
4
|
-
import { useEffect } from "react";
|
|
5
|
-
import { useCloseModal } from "../../../global-files/customHooks";
|
|
6
|
-
import { RetailersList } from "../RetailersList";
|
|
7
|
-
|
|
8
|
-
export const RetailerCatalog = ({
|
|
9
|
-
retailers = [],
|
|
10
|
-
limit = 3,
|
|
11
|
-
article,
|
|
12
|
-
id = "retailers-catalog",
|
|
13
|
-
}) => {
|
|
14
|
-
const [retLimit, setRetLimit] = useState(0);
|
|
15
|
-
const [showRetailers, setShowRetailers] = useCloseModal(id);
|
|
16
|
-
|
|
17
|
-
useEffect(() => {
|
|
18
|
-
setRetLimit(limit);
|
|
19
|
-
}, [retailers]);
|
|
20
|
-
|
|
21
|
-
return (
|
|
22
|
-
<Container
|
|
23
|
-
onClick={(e) => {
|
|
24
|
-
setShowRetailers(!showRetailers);
|
|
25
|
-
}}
|
|
26
|
-
id={id}
|
|
27
|
-
>
|
|
28
|
-
{retailers.map(
|
|
29
|
-
(retailer, i) =>
|
|
30
|
-
i < limit && (
|
|
31
|
-
<Avatar
|
|
32
|
-
key={retailer.id + "-" + i}
|
|
33
|
-
image={`https://content-management-images.s3.amazonaws.com/retailers/${retailer.id}.png`}
|
|
34
|
-
altText={retailer?.name}
|
|
35
|
-
imageType={"medium-image"}
|
|
36
|
-
/>
|
|
37
|
-
)
|
|
38
|
-
)}
|
|
39
|
-
{retailers.length > retLimit && (
|
|
40
|
-
<div className="retailers-limit">
|
|
41
|
-
<p>+{retailers.length - retLimit}</p>
|
|
42
|
-
</div>
|
|
43
|
-
)}
|
|
44
|
-
{showRetailers && (
|
|
45
|
-
<RetailersList retailers={retailers} article={article} />
|
|
46
|
-
)}
|
|
47
|
-
</Container>
|
|
48
|
-
);
|
|
49
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
import { FontFamily } from "../../../global-files/variables";
|
|
3
|
-
|
|
4
|
-
export const Container = styled.div`
|
|
5
|
-
display: flex;
|
|
6
|
-
align-items: center;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
cursor: pointer;
|
|
9
|
-
position: relative;
|
|
10
|
-
width: 100%;
|
|
11
|
-
|
|
12
|
-
.retailers-limit {
|
|
13
|
-
width: 26px;
|
|
14
|
-
height: 26px;
|
|
15
|
-
border-radius: 50%;
|
|
16
|
-
background-color: #f0f0f0;
|
|
17
|
-
|
|
18
|
-
p {
|
|
19
|
-
font-family: ${FontFamily.Lato};
|
|
20
|
-
font-size: 12px;
|
|
21
|
-
line-height: 26px;
|
|
22
|
-
color: #262626;
|
|
23
|
-
text-align: center;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
> * + * {
|
|
28
|
-
margin-left: -5px;
|
|
29
|
-
}
|
|
30
|
-
`;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { RetailerOption } from ".";
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: "Components/atoms/RetailerOptions",
|
|
5
|
-
component: RetailerOption,
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
const Template = (args) => <RetailerOption {...args} />;
|
|
9
|
-
export const RetailerOptionDefault = Template.bind({});
|
|
10
|
-
RetailerOptionDefault.args = {
|
|
11
|
-
retailer: {
|
|
12
|
-
id: 58,
|
|
13
|
-
name: "The Home Depot Golden",
|
|
14
|
-
},
|
|
15
|
-
};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { useState } from "react";
|
|
2
|
-
import { Avatar } from "../Avatar";
|
|
3
|
-
import { Container } from "./styles";
|
|
4
|
-
import { useEffect } from "react";
|
|
5
|
-
|
|
6
|
-
export const RetailerOption = ({ retailer, services = {} }) => {
|
|
7
|
-
const [service, setService] = useState([]);
|
|
8
|
-
|
|
9
|
-
useEffect(() => {
|
|
10
|
-
if (services[retailer.id]) {
|
|
11
|
-
setService(Object.keys(services[retailer.id]));
|
|
12
|
-
}
|
|
13
|
-
}, [services]);
|
|
14
|
-
|
|
15
|
-
return (
|
|
16
|
-
<Container>
|
|
17
|
-
<div className="avatar-and-retailer">
|
|
18
|
-
<Avatar
|
|
19
|
-
image={`https://content-management-images.s3.amazonaws.com/retailers/${retailer.id}.png`}
|
|
20
|
-
altText={retailer?.name}
|
|
21
|
-
imageType={"medium-image"}
|
|
22
|
-
/>
|
|
23
|
-
<p className="retailer-name">{retailer?.name}</p>
|
|
24
|
-
</div>
|
|
25
|
-
<div className="services-icons">
|
|
26
|
-
<span
|
|
27
|
-
key="datasheet"
|
|
28
|
-
className={`material-icons small ${
|
|
29
|
-
service.includes("datasheet") && "is-active"
|
|
30
|
-
}`}
|
|
31
|
-
>
|
|
32
|
-

|
|
33
|
-
</span>
|
|
34
|
-
<span
|
|
35
|
-
key="description"
|
|
36
|
-
className={`material-icons small ${
|
|
37
|
-
service.includes("description") && "is-active"
|
|
38
|
-
}`}
|
|
39
|
-
>
|
|
40
|
-

|
|
41
|
-
</span>
|
|
42
|
-
<span
|
|
43
|
-
key="images"
|
|
44
|
-
className={`material-icons small ${
|
|
45
|
-
service.includes("images") && "is-active"
|
|
46
|
-
}`}
|
|
47
|
-
>
|
|
48
|
-

|
|
49
|
-
</span>
|
|
50
|
-
</div>
|
|
51
|
-
</Container>
|
|
52
|
-
);
|
|
53
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
import { FontFamily } from "../../../global-files/variables";
|
|
3
|
-
|
|
4
|
-
export const Container = styled.div`
|
|
5
|
-
display: flex;
|
|
6
|
-
padding: 7px;
|
|
7
|
-
border: 1px solid #f0f0f0;
|
|
8
|
-
align-items: center;
|
|
9
|
-
justify-content: space-between;
|
|
10
|
-
border-radius: 5px;
|
|
11
|
-
|
|
12
|
-
.avatar-and-retailer {
|
|
13
|
-
display: flex;
|
|
14
|
-
align-items: center;
|
|
15
|
-
.retailer-name {
|
|
16
|
-
font-family: ${FontFamily.Lato};
|
|
17
|
-
font-size: 12px;
|
|
18
|
-
color: #262626;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
> * + * {
|
|
22
|
-
margin-left: 10px;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.services-icons {
|
|
27
|
-
display: flex;
|
|
28
|
-
|
|
29
|
-
span {
|
|
30
|
-
color: #f0f0f0;
|
|
31
|
-
font-size: 14px;
|
|
32
|
-
&.is-active {
|
|
33
|
-
color: #8a6caa;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
> * + * {
|
|
38
|
-
margin-left: 9px;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
`;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { RetailersList } from ".";
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: "Components/atoms/RetailersList",
|
|
5
|
-
component: RetailersList,
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
const Template = (args) => <RetailersList {...args} />;
|
|
9
|
-
export const RetailersListDefault = Template.bind({});
|
|
10
|
-
RetailersListDefault.args = {
|
|
11
|
-
retailers: [
|
|
12
|
-
{
|
|
13
|
-
id: 58,
|
|
14
|
-
name: "The Home Depot Golden",
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
id: 59,
|
|
18
|
-
name: "The Home Depot Platinum",
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
id: 60,
|
|
22
|
-
name: "The Home Depot Resizing",
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
id: 61,
|
|
26
|
-
name: "Home Depot TAB",
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
id: 68,
|
|
30
|
-
name: "The Home Depot Dropship",
|
|
31
|
-
},
|
|
32
|
-
],
|
|
33
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Container } from "./styles";
|
|
2
|
-
import { RetailerOption } from "../RetailerOption";
|
|
3
|
-
import { useState, useEffect } from "react";
|
|
4
|
-
import axios from "axios";
|
|
5
|
-
|
|
6
|
-
export const RetailersList = ({ retailers, article, id }) => {
|
|
7
|
-
const [services, setServices] = useState({});
|
|
8
|
-
|
|
9
|
-
useEffect(() => {
|
|
10
|
-
if (article) setServices(article.statusByRetailer);
|
|
11
|
-
}, [article]);
|
|
12
|
-
|
|
13
|
-
return (
|
|
14
|
-
<Container id={id}>
|
|
15
|
-
{retailers.map((retailer, i) => (
|
|
16
|
-
<RetailerOption key={i} retailer={retailer} services={services} />
|
|
17
|
-
))}
|
|
18
|
-
</Container>
|
|
19
|
-
);
|
|
20
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
|
|
3
|
-
export const Container = styled.div`
|
|
4
|
-
width: 370px;
|
|
5
|
-
max-height: 200px;
|
|
6
|
-
overflow: auto;
|
|
7
|
-
position: absolute;
|
|
8
|
-
z-index: 500;
|
|
9
|
-
right: 0%;
|
|
10
|
-
top: 100%;
|
|
11
|
-
border: 1px solid #f0f0f0;
|
|
12
|
-
padding: 10px;
|
|
13
|
-
padding-right: 5px;
|
|
14
|
-
background-color: white;
|
|
15
|
-
|
|
16
|
-
> * + * {
|
|
17
|
-
margin-top: 5px;
|
|
18
|
-
}
|
|
19
|
-
`;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { ScreenHeaderv2 } from ".";
|
|
2
|
-
import { FontFamily, GlobalColors } from "../../../global-files/variables";
|
|
3
|
-
|
|
4
|
-
export default {
|
|
5
|
-
title: "Components/atoms/ScreenHeaderv2",
|
|
6
|
-
label: "Screen Header",
|
|
7
|
-
component: ScreenHeaderv2,
|
|
8
|
-
argTypes: {
|
|
9
|
-
headerType: {
|
|
10
|
-
options: [
|
|
11
|
-
"with-bold-text",
|
|
12
|
-
"product-name-header",
|
|
13
|
-
"retailer-name-header",
|
|
14
|
-
"input-name-header",
|
|
15
|
-
"date-header",
|
|
16
|
-
"header-and-paragraph",
|
|
17
|
-
],
|
|
18
|
-
control: { type: "select" },
|
|
19
|
-
},
|
|
20
|
-
fontFamily: {
|
|
21
|
-
options: Object.values(FontFamily),
|
|
22
|
-
control: { type: "select" },
|
|
23
|
-
},
|
|
24
|
-
color: {
|
|
25
|
-
options: Object.values(GlobalColors),
|
|
26
|
-
control: { type: "select" },
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
const Template = (args) => <ScreenHeaderv2 {...args} />;
|
|
32
|
-
|
|
33
|
-
export const ScreenHeaderDefatult = Template.bind({});
|
|
34
|
-
|
|
35
|
-
ScreenHeaderDefatult.args = {
|
|
36
|
-
text: "Header Text",
|
|
37
|
-
boldText: "this is the bold text",
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export const ScreenHeaderDate = Template.bind({});
|
|
41
|
-
|
|
42
|
-
ScreenHeaderDate.args = {
|
|
43
|
-
text: "00/00/00",
|
|
44
|
-
headerType: "date-header",
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
export const ScreenHeaderAndParagraph = Template.bind({});
|
|
48
|
-
|
|
49
|
-
ScreenHeaderAndParagraph.args = {
|
|
50
|
-
text: "Primer texto antes del span//",
|
|
51
|
-
boldText: "se puede cambiar el color de este texto con span",
|
|
52
|
-
Paragraph: "Aquí se incerta el parrafo en general y su etiqueta es p"
|
|
53
|
-
};
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { GlobalColors } from "../../../global-files/variables";
|
|
2
|
-
import { Container} from "./styles";
|
|
3
|
-
import { TooltipLight } from "../TooltipLight";
|
|
4
|
-
import { useState } from "react";
|
|
5
|
-
import { WordsMissing } from "../WordsMissing";
|
|
6
|
-
import { CharsMissing } from "../CharsMissing";
|
|
7
|
-
|
|
8
|
-
export const ScreenHeaderv2 = ({
|
|
9
|
-
text,
|
|
10
|
-
boldText,
|
|
11
|
-
fontFamily,
|
|
12
|
-
color,
|
|
13
|
-
headerType,
|
|
14
|
-
Paragraph,
|
|
15
|
-
showInfoTool=false,
|
|
16
|
-
required,
|
|
17
|
-
minChar,
|
|
18
|
-
maxChar,
|
|
19
|
-
minWords,
|
|
20
|
-
maxWords,
|
|
21
|
-
description,
|
|
22
|
-
showMissingChars,
|
|
23
|
-
inputName,
|
|
24
|
-
inputId,
|
|
25
|
-
inputValue = "",
|
|
26
|
-
inputPlaceholder,
|
|
27
|
-
articleId,
|
|
28
|
-
updatedDescriptions,
|
|
29
|
-
setUpdatedDescriptions,
|
|
30
|
-
isRequired,
|
|
31
|
-
}) => {
|
|
32
|
-
const [textValue, setTextValue] = useState({
|
|
33
|
-
value: inputValue,
|
|
34
|
-
});
|
|
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
|
-
return (
|
|
86
|
-
<Container
|
|
87
|
-
fontFamily={fontFamily}
|
|
88
|
-
color={color}
|
|
89
|
-
className={headerType}
|
|
90
|
-
key={`title-${text}`}
|
|
91
|
-
>
|
|
92
|
-
<div className="tool-text">
|
|
93
|
-
{showInfoTool &&
|
|
94
|
-
<TooltipLight required={required} min_chars={minChar} max_chars={maxChar} min_words={minWords} max_words={maxWords} description={description}></TooltipLight>
|
|
95
|
-
}
|
|
96
|
-
{text} {boldText && <span> {boldText}</span>}
|
|
97
|
-
{Paragraph && <p>{Paragraph}</p>}
|
|
98
|
-
</div>
|
|
99
|
-
<div className="words-container">
|
|
100
|
-
{showMissingChars && <CharsMissing
|
|
101
|
-
name={inputName}
|
|
102
|
-
inputId={inputId}
|
|
103
|
-
placeholder={inputPlaceholder}
|
|
104
|
-
mainValue={textValue.value}
|
|
105
|
-
onChange={onHandleChange}
|
|
106
|
-
articleId={articleId}
|
|
107
|
-
updatedDescriptions={updatedDescriptions}
|
|
108
|
-
setUpdatedDescriptions={setUpdatedDescriptions}
|
|
109
|
-
maxChar={maxChar}
|
|
110
|
-
isRequired={isRequired}
|
|
111
|
-
/>}
|
|
112
|
-
{maxWords && <WordsMissing
|
|
113
|
-
name={inputName}
|
|
114
|
-
inputId={inputId}
|
|
115
|
-
placeholder={inputPlaceholder}
|
|
116
|
-
mainValue={textValue.value}
|
|
117
|
-
onChange={onHandleChange}
|
|
118
|
-
articleId={articleId}
|
|
119
|
-
updatedDescriptions={updatedDescriptions}
|
|
120
|
-
setUpdatedDescriptions={setUpdatedDescriptions}
|
|
121
|
-
maxWords={maxWords}
|
|
122
|
-
isRequired={isRequired}
|
|
123
|
-
/>}
|
|
124
|
-
</div>
|
|
125
|
-
|
|
126
|
-
</Container>
|
|
127
|
-
);
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
ScreenHeaderv2.defaultProps = {
|
|
131
|
-
text: "Header Text Default",
|
|
132
|
-
fontFamily: "RobotoRegular",
|
|
133
|
-
color: GlobalColors.black,
|
|
134
|
-
};
|