contentoh-components-library 21.5.2 → 21.5.3
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/organisms/Table/styles.js +1 -1
- package/dist/components/pages/MultipleEdition/saveData.js +19 -9
- package/dist/components/pages/MultipleEdition/styles.js +1 -1
- package/dist/components/pages/MultipleEdition/utils.js +153 -86
- package/package.json +1 -4
- package/src/components/atoms/Avatar/index.js +2 -8
- package/src/components/atoms/ButtonV2/ButtonV2.stories.js +0 -1
- package/src/components/atoms/ButtonV2/index.js +0 -1
- package/src/components/atoms/ButtonV2/styles.js +0 -16
- package/src/components/atoms/CheckBox/CheckBox.stories.js +0 -5
- package/src/components/atoms/CheckBox/index.js +1 -5
- package/src/components/atoms/CheckBox/styles.js +3 -9
- package/src/components/atoms/GeneralButton/styles.js +0 -46
- package/src/components/atoms/GeneralInput/index.js +0 -3
- package/src/components/atoms/GeneralInput/styles.js +1 -19
- package/src/components/atoms/InputFormatter/index.js +1 -2
- package/src/components/atoms/InputFormatter/styles.js +4 -9
- package/src/components/atoms/ProductImage/index.js +11 -24
- package/src/components/atoms/ProductImage/styles.js +0 -7
- 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 +3 -0
- 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/GalleryElement/index.js +1 -76
- package/src/components/molecules/GalleryHeader/index.js +0 -1
- package/src/components/molecules/HeaderTop/index.js +6 -52
- package/src/components/molecules/ProductNameHeader/index.js +1 -19
- package/src/components/molecules/SignInLogin/index.js +11 -11
- package/src/components/molecules/StatusAsignationInfo/FinancedCompanies.js +63 -501
- package/src/components/molecules/StatusAsignationInfo/index.js +1 -1
- package/src/components/molecules/StripeCardSelector/CardSelector.stories.js +2 -1
- package/src/components/molecules/TagAndInput/index.js +6 -8
- 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 -13
- package/src/components/organisms/GridProducts/GridProducts.stories.js +107 -682
- package/src/components/organisms/InputGroup/index.js +144 -292
- package/src/components/organisms/InputGroup/styles.js +0 -31
- package/src/components/organisms/Modal/Modal.stories.js +1 -2
- package/src/components/organisms/Modal/index.js +2 -9
- package/src/components/organisms/Modal/styles.js +1 -8
- package/src/components/organisms/OrderDetail/utils/Table/utils.js +16 -6
- package/src/components/pages/Dashboard/Dashboard.stories.js +38 -33
- package/src/components/pages/Dashboard/index.js +7 -36
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +60 -56
- package/src/components/pages/ProviderProductEdition/index.js +133 -148
- 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 +300 -293
- 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 -12
- package/src/assets/images/Icons/addv2.svg +0 -8
- package/src/assets/images/Icons/beenhere.svg +0 -9
- package/src/assets/images/Icons/checkv2.svg +0 -8
- package/src/assets/images/Icons/close-magenta.svg +0 -9
- package/src/assets/images/Icons/close.svg +0 -8
- package/src/assets/images/Icons/closeCircle.svg +0 -8
- package/src/assets/images/Icons/delete-forever-red.svg +0 -9
- package/src/assets/images/Icons/delete-forever-white.svg +0 -10
- package/src/assets/images/Icons/edit.svg +0 -8
- package/src/assets/images/Icons/fullscreen.svg +0 -3
- package/src/assets/images/Icons/infoNR.svg +0 -8
- package/src/assets/images/Icons/options.svg +0 -3
- package/src/assets/images/Icons/save-white-gray.svg +0 -9
- package/src/assets/images/Icons/save-white.svg +0 -9
- package/src/assets/images/Icons/save.svg +0 -8
- package/src/assets/images/Icons/search.svg +0 -3
- package/src/assets/images/Icons/settings.svg +0 -8
- package/src/assets/images/Icons/trash.svg +0 -8
- package/src/assets/images/Icons/undo.svg +0 -8
- package/src/assets/images/Icons/upload-file-white.svg +0 -4
- package/src/assets/images/Icons/upload-file.svg +0 -10
- package/src/assets/images/Icons/upload_file.svg +0 -10
- package/src/assets/images/Icons/warningv2.svg +0 -3
- package/src/assets/images/checkBox/checkrosa.svg +0 -3
- package/src/assets/images/checkBox/checkverde.svg +0 -3
- 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/assets/images/generalButton/saveIconpink.svg +0 -3
- 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/CustomChip/CustomChip.stories.js +0 -16
- package/src/components/atoms/CustomChip/index.js +0 -34
- package/src/components/atoms/CustomChip/styles.js +0 -6
- 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/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/Multiselect/Multiselect.stories.js +0 -364
- package/src/components/atoms/Multiselect/index.js +0 -351
- package/src/components/atoms/Multiselect/styles.js +0 -33
- 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/ObservationFlag/ObservationFlag.stories.js +0 -20
- package/src/components/atoms/ObservationFlag/index.js +0 -167
- package/src/components/atoms/ObservationFlag/styles.js +0 -104
- 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/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/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/AddGroup/AddGroup.stories.js +0 -15
- package/src/components/molecules/AddGroup/index.js +0 -84
- package/src/components/molecules/AddGroup/styles.js +0 -141
- 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/EditionTabs/EditionTabs.stories.js +0 -12
- package/src/components/molecules/EditionTabs/index.js +0 -33
- package/src/components/molecules/EditionTabs/styles.js +0 -24
- 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/GroupSelect/GroupSelect.stories.js +0 -35
- package/src/components/molecules/GroupSelect/SelectItem.js +0 -105
- package/src/components/molecules/GroupSelect/index.js +0 -190
- package/src/components/molecules/GroupSelect/styles.js +0 -124
- 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 -107
- package/src/components/molecules/Phase/index.js +0 -391
- package/src/components/molecules/Phase/styles.js +0 -97
- 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/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 -13
- package/src/components/organisms/DragAndDropPhases/index.js +0 -336
- package/src/components/organisms/DragAndDropPhases/styles.js +0 -107
- 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/EditGroup/EditGroup.stories.js +0 -20
- package/src/components/organisms/EditGroup/index.js +0 -321
- package/src/components/organisms/EditGroup/styles.js +0 -207
- 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/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/ImageUploader/ImageUploader.stories.js +0 -15
- package/src/components/organisms/ImageUploader/index.js +0 -62
- package/src/components/organisms/ImageUploader/styles.js +0 -29
- package/src/components/organisms/ImageVisor/ImageVisor.stories.js +0 -15
- package/src/components/organisms/ImageVisor/index.js +0 -143
- package/src/components/organisms/ImageVisor/styles.js +0 -106
- 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/Table/Table.stories.js +0 -609
- package/src/components/organisms/Table/index.js +0 -84
- package/src/components/organisms/Table/styles.js +0 -114
- 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/MultipleEdition/MultipleEdition.stories.js +0 -17
- package/src/components/pages/MultipleEdition/components/ImageUploader.js +0 -62
- package/src/components/pages/MultipleEdition/components/ImageUploaderStyles.js +0 -29
- package/src/components/pages/MultipleEdition/components/ImageVisor.js +0 -143
- package/src/components/pages/MultipleEdition/components/styles.js +0 -106
- package/src/components/pages/MultipleEdition/index.js +0 -248
- package/src/components/pages/MultipleEdition/saveData.js +0 -92
- package/src/components/pages/MultipleEdition/styles.js +0 -201
- package/src/components/pages/MultipleEdition/utils.js +0 -1073
- 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
- package/src/components/pages/RetailerProductEdition/generateThumnail.js +0 -21
|
@@ -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,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" };
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import ReactQuill from "react-quill";
|
|
2
|
-
import "react-quill/dist/quill.snow.css";
|
|
3
|
-
import { useState } from "react";
|
|
4
|
-
import { Container } from "./styles";
|
|
5
|
-
|
|
6
|
-
export const InputFormatterv2 = ({
|
|
7
|
-
mainValue = "",
|
|
8
|
-
inputId,
|
|
9
|
-
articleId,
|
|
10
|
-
updatedDescriptions,
|
|
11
|
-
setUpdatedDescriptions,
|
|
12
|
-
isRequired,
|
|
13
|
-
maxChar,
|
|
14
|
-
}) => {
|
|
15
|
-
const [inputValue, setInputValue] = useState(mainValue);
|
|
16
|
-
const [selection, setSelection] = useState(false);
|
|
17
|
-
const [position, setPosition] = useState({ left: 0, top: 0 });
|
|
18
|
-
const [charsCounter, setCharsCounter] = useState(0);
|
|
19
|
-
const [quillState, setQuillState] = useState({});
|
|
20
|
-
const maxLength = maxChar ? maxChar : 999;
|
|
21
|
-
|
|
22
|
-
const getValue = (value) => {
|
|
23
|
-
let temp = value
|
|
24
|
-
.replace(/\n/gm, "<br>")
|
|
25
|
-
.replace(/\ /gm, " ")
|
|
26
|
-
.replace(/\&/gm, "&");
|
|
27
|
-
return temp;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
//const quillRef = useRef();
|
|
31
|
-
const setQuill = (ref) => {
|
|
32
|
-
if (!ref || ref === null) return;
|
|
33
|
-
if (typeof ref.getEditor !== "function") return;
|
|
34
|
-
setQuillState(ref.getEditor());
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
const valueFormater = (value) => {
|
|
38
|
-
return value
|
|
39
|
-
.replace(/<\/p><p>/gm, "\n")
|
|
40
|
-
.replace(/<\/?br>|<\/?p>/gm, "")
|
|
41
|
-
.replace(/\ /gm, " ")
|
|
42
|
-
.replace(/\&/gm, "&");
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
const onChange = (valueInput, h) => {
|
|
46
|
-
let value = "";
|
|
47
|
-
try {
|
|
48
|
-
if (h.getLength() - 1 <= maxLength) {
|
|
49
|
-
let unformattedText = valueInput
|
|
50
|
-
.replace(/<li.*?>/gm, " - ")
|
|
51
|
-
.replace(/<\/li>/gm, "\n")
|
|
52
|
-
.replace(/<\/p><p>/gm, "\n")
|
|
53
|
-
.replaceAll(/<\/?(?!\/?strong).*?>/gm, "")
|
|
54
|
-
.replace(/\ /gm, " ")
|
|
55
|
-
.replace(/\&/gm, "&");
|
|
56
|
-
setInputValue(valueInput);
|
|
57
|
-
value = unformattedText;
|
|
58
|
-
} else {
|
|
59
|
-
quillState.deleteText(maxLength, quillState.getLength());
|
|
60
|
-
setInputValue((val) => (val = quillState.getText()));
|
|
61
|
-
value = quillState.getText();
|
|
62
|
-
}
|
|
63
|
-
} catch (error) {
|
|
64
|
-
console.log(error);
|
|
65
|
-
}
|
|
66
|
-
setCharsCounter(h.getLength() - 1);
|
|
67
|
-
value = valueFormater(value);
|
|
68
|
-
|
|
69
|
-
if (updatedDescriptions) {
|
|
70
|
-
let idInput = inputId;
|
|
71
|
-
let dataSave = updatedDescriptions?.slice();
|
|
72
|
-
if (dataSave?.length > 0) {
|
|
73
|
-
const index = dataSave.findIndex((e) => e.attributeId === idInput);
|
|
74
|
-
if (index !== -1) {
|
|
75
|
-
if (value !== mainValue) dataSave[index].value = value;
|
|
76
|
-
else dataSave.splice(index, 1);
|
|
77
|
-
} else {
|
|
78
|
-
dataSave.push({
|
|
79
|
-
articleId: articleId,
|
|
80
|
-
attributeId: idInput,
|
|
81
|
-
value: value,
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
} else {
|
|
85
|
-
if (value !== mainValue) {
|
|
86
|
-
dataSave.push({
|
|
87
|
-
articleId: articleId,
|
|
88
|
-
attributeId: idInput,
|
|
89
|
-
value: value,
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
setUpdatedDescriptions(dataSave);
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
const getSelection = (range, a, b) => {
|
|
98
|
-
//getBounds(index,length)
|
|
99
|
-
const selected = b.getSelection();
|
|
100
|
-
const bounds = b.getBounds(selected?.index || 0, selected?.length || 0);
|
|
101
|
-
if (a === "user") {
|
|
102
|
-
setPosition({ left: bounds.left, top: bounds.top });
|
|
103
|
-
setSelection(selected?.length > 0);
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
return (
|
|
108
|
-
<Container
|
|
109
|
-
isRequired={
|
|
110
|
-
isRequired &&
|
|
111
|
-
(inputValue.replace(/<.*?>/gm, "").length === 0 || !inputValue)
|
|
112
|
-
}
|
|
113
|
-
selection={selection}
|
|
114
|
-
position={position}
|
|
115
|
-
>
|
|
116
|
-
<ReactQuill
|
|
117
|
-
id={inputId + ""}
|
|
118
|
-
ref={(el) => setQuill(el)}
|
|
119
|
-
defaultValue={getValue(inputValue)}
|
|
120
|
-
//disabled={!props.enableInputs}
|
|
121
|
-
modules={{ toolbar: ["bold"] }}
|
|
122
|
-
onKeyPress={(e) => {
|
|
123
|
-
if (charsCounter >= maxLength && e.key !== "Backspace") {
|
|
124
|
-
e.preventDefault();
|
|
125
|
-
}
|
|
126
|
-
}}
|
|
127
|
-
onKeyDown={(e) => {
|
|
128
|
-
let keysArray = [
|
|
129
|
-
"Backspace",
|
|
130
|
-
"Meta",
|
|
131
|
-
"ArrowLeft",
|
|
132
|
-
"ArrowRight",
|
|
133
|
-
"ArrowUp",
|
|
134
|
-
"ArrowDown",
|
|
135
|
-
];
|
|
136
|
-
if (
|
|
137
|
-
charsCounter >= maxLength &&
|
|
138
|
-
keysArray.every((key) => e.key !== key)
|
|
139
|
-
) {
|
|
140
|
-
e.preventDefault();
|
|
141
|
-
}
|
|
142
|
-
}}
|
|
143
|
-
onChange={(valueInput, user, range, h) => onChange(valueInput, h)}
|
|
144
|
-
onChangeSelection={getSelection}
|
|
145
|
-
/>
|
|
146
|
-
</Container>
|
|
147
|
-
);
|
|
148
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
import { GlobalColors, FontFamily } from "../../../global-files/variables";
|
|
3
|
-
|
|
4
|
-
export const Container = styled.div`
|
|
5
|
-
.quill {
|
|
6
|
-
background-color: ${GlobalColors.white};
|
|
7
|
-
border: 1px solid
|
|
8
|
-
${({ focus, isRequired }) =>
|
|
9
|
-
focus ? GlobalColors.magenta_s2 : isRequired ? "red" : GlobalColors.gray_light};
|
|
10
|
-
position: relative;
|
|
11
|
-
border-radius: 5px;
|
|
12
|
-
|
|
13
|
-
.ql-toolbar {
|
|
14
|
-
background-color: ${GlobalColors.s2};
|
|
15
|
-
position: absolute;
|
|
16
|
-
z-index: 10;
|
|
17
|
-
border: 1px solid ${GlobalColors.gray_light};
|
|
18
|
-
width: 45px;
|
|
19
|
-
height: 45px;
|
|
20
|
-
border-radius: 4px;
|
|
21
|
-
visibility: ${({ selection }) => (selection ? "visible" : "hidden")};
|
|
22
|
-
top: ${({ position }) => position.top}px;
|
|
23
|
-
left: ${({ position }) => position.left}px;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.ql-container {
|
|
27
|
-
border: none;
|
|
28
|
-
font-family: ${FontFamily.AvenirNext};
|
|
29
|
-
color: ${GlobalColors.deep_gray};
|
|
30
|
-
strong {
|
|
31
|
-
font-family: ${FontFamily.Raleway_900};
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.ql-editor{
|
|
35
|
-
padding: 8px 10px;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
`;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { InputImages } from ".";
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: "Components/atoms/InputImages",
|
|
5
|
-
component: InputImages,
|
|
6
|
-
argTypes: {
|
|
7
|
-
},
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export const Template = (args) => <InputImages {...args} />;
|
|
11
|
-
|
|
12
|
-
const InputImagesDefault = Template.bind({});
|
|
13
|
-
|
|
14
|
-
InputImagesDefault.args = {
|
|
15
|
-
description_small:"Descripción del campo",
|
|
16
|
-
required:true,
|
|
17
|
-
number:4,
|
|
18
|
-
typeImage:"Obligatorio"
|
|
19
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import Input from "../Input";
|
|
2
|
-
import { InputText } from "../InputText";
|
|
3
|
-
import { TooltipLight } from "../TooltipLight";
|
|
4
|
-
import { Container } from "./styles";
|
|
5
|
-
|
|
6
|
-
export const InputImages = ({ description_small, required, placeHolder }) => {
|
|
7
|
-
return (
|
|
8
|
-
<Container>
|
|
9
|
-
<TooltipLight
|
|
10
|
-
description_small={description_small}
|
|
11
|
-
required={required}
|
|
12
|
-
></TooltipLight>
|
|
13
|
-
<span> {placeHolder}</span>
|
|
14
|
-
<InputText
|
|
15
|
-
className="inputSearch"
|
|
16
|
-
type="black"
|
|
17
|
-
transparent
|
|
18
|
-
size={12}
|
|
19
|
-
placeHolder={placeHolder}
|
|
20
|
-
onChangeText={(newValue) => setTextInputSearch(newValue)}
|
|
21
|
-
onEnter={(event) => onClickSearch()}
|
|
22
|
-
></InputText>
|
|
23
|
-
</Container>
|
|
24
|
-
);
|
|
25
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
import { FontFamily, GlobalColors } from "../../../global-files/variables";
|
|
3
|
-
|
|
4
|
-
export const Container = styled.div`
|
|
5
|
-
display:flex;
|
|
6
|
-
align-items:center;
|
|
7
|
-
gap:5px;
|
|
8
|
-
span {
|
|
9
|
-
font-family:${FontFamily.RobotoMedium}, sans-serif;
|
|
10
|
-
font-size:12px;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.inputSearch{
|
|
14
|
-
border:1px solid ${GlobalColors.gray_light};
|
|
15
|
-
border-radius:5px;
|
|
16
|
-
}
|
|
17
|
-
`;
|