contentoh-components-library 21.2.93 → 21.2.95
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/ButtonV2/ButtonV2.stories.js +1 -1
- package/dist/components/atoms/ButtonV2/index.js +1 -1
- package/dist/components/atoms/ButtonV2/styles.js +1 -1
- package/dist/components/atoms/Image/Image.stories.js +15 -5
- package/dist/components/atoms/Image/index.js +3 -1
- package/dist/components/atoms/Image/styles.js +10 -7
- package/dist/components/atoms/SelectItemV2/SelectItemV2.stories.js +45 -0
- package/dist/components/atoms/SelectItemV2/index.js +46 -0
- package/dist/components/atoms/SelectItemV2/styles.js +23 -0
- package/dist/components/molecules/SelectV2/SelectV2.stories.js +119 -0
- package/dist/components/molecules/SelectV2/index.js +298 -0
- package/dist/components/molecules/SelectV2/styles.js +42 -0
- package/dist/components/organisms/OrderDetail/OrderDetail.stories.js +3 -3
- package/dist/components/organisms/OrderDetail/index.js +5 -3
- package/dist/index.js +25 -12
- package/package.json +1 -1
- package/src/assets/fonts/{Roboto → roboto}/LICENSE.txt +0 -0
- package/src/assets/fonts/{Roboto → roboto}/Roboto-Black.ttf +0 -0
- package/src/assets/fonts/{Roboto → roboto}/Roboto-BlackItalic.ttf +0 -0
- package/src/assets/fonts/{Roboto → roboto}/Roboto-Bold.ttf +0 -0
- package/src/assets/fonts/{Roboto → roboto}/Roboto-BoldItalic.ttf +0 -0
- package/src/assets/fonts/{Roboto → roboto}/Roboto-Italic.ttf +0 -0
- package/src/assets/fonts/{Roboto → roboto}/Roboto-Light.ttf +0 -0
- package/src/assets/fonts/{Roboto → roboto}/Roboto-LightItalic.ttf +0 -0
- package/src/assets/fonts/{Roboto → roboto}/Roboto-Medium.ttf +0 -0
- package/src/assets/fonts/{Roboto → roboto}/Roboto-MediumItalic.ttf +0 -0
- package/src/assets/fonts/{Roboto → roboto}/Roboto-Regular.ttf +0 -0
- package/src/assets/fonts/{Roboto → roboto}/Roboto-Thin.ttf +0 -0
- package/src/assets/fonts/{Roboto → roboto}/Roboto-ThinItalic.ttf +0 -0
- package/src/components/atoms/ButtonV2/ButtonV2.stories.js +1 -0
- package/src/components/atoms/ButtonV2/index.js +11 -6
- package/src/components/atoms/ButtonV2/styles.js +9 -1
- package/src/components/atoms/Image/Image.stories.js +10 -2
- package/src/components/atoms/Image/index.js +2 -1
- package/src/components/atoms/Image/styles.js +9 -0
- package/src/components/atoms/SelectItemV2/SelectItemV2.stories.js +26 -0
- package/src/components/atoms/SelectItemV2/index.js +45 -0
- package/src/components/atoms/SelectItemV2/styles.js +55 -0
- package/src/components/molecules/SelectV2/SelectV2.stories.js +114 -0
- package/src/components/molecules/SelectV2/index.js +332 -0
- package/src/components/molecules/SelectV2/styles.js +100 -0
- package/src/components/organisms/OrderDetail/OrderDetail.stories.js +1 -1
- package/src/components/organisms/OrderDetail/index.js +2 -2
- package/src/index.js +1 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { FontFamily } from "../../../global-files/variables";
|
|
2
|
+
import styled from "styled-components";
|
|
3
|
+
|
|
4
|
+
export const Container = styled.div`
|
|
5
|
+
width: fit-content;
|
|
6
|
+
max-width: ${({ maxWidthSelect }) =>
|
|
7
|
+
maxWidthSelect ? maxWidthSelect : "unset"};
|
|
8
|
+
//border: 1px solid red;
|
|
9
|
+
border-radius: ${({ borderType }) => {
|
|
10
|
+
return borderType?.toLowerCase() === "rectangle"
|
|
11
|
+
? "6px"
|
|
12
|
+
: borderType?.toLowerCase() === "oval"
|
|
13
|
+
? "17px"
|
|
14
|
+
: "0px"; // default none
|
|
15
|
+
}};
|
|
16
|
+
`;
|
|
17
|
+
|
|
18
|
+
export const ContainerSelect = styled.div`
|
|
19
|
+
width: 100%;
|
|
20
|
+
border-radius: inherit;
|
|
21
|
+
|
|
22
|
+
.buttonSelect {
|
|
23
|
+
width: 100%;
|
|
24
|
+
border-radius: inherit;
|
|
25
|
+
|
|
26
|
+
.button {
|
|
27
|
+
padding: 10px 16px;
|
|
28
|
+
gap: 10px;
|
|
29
|
+
.icon {
|
|
30
|
+
font-size: 13px;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
+ .MuiTooltip-popper {
|
|
36
|
+
background-color: transparent;
|
|
37
|
+
|
|
38
|
+
.dropdownSelect {
|
|
39
|
+
--background: white;
|
|
40
|
+
box-shadow: 0px 0px 10px 1px gray;
|
|
41
|
+
background-color: var(--background);
|
|
42
|
+
padding: 6px 0px;
|
|
43
|
+
border-radius: 7px;
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
gap: 0px;
|
|
47
|
+
max-width: ${({ maxWidthDropdown }) =>
|
|
48
|
+
maxWidthDropdown ? maxWidthDropdown : "400px"};
|
|
49
|
+
max-height: ${({ maxHeightDropdown }) =>
|
|
50
|
+
maxHeightDropdown ? maxHeightDropdown : "80vh"};
|
|
51
|
+
|
|
52
|
+
.container-inputSearch {
|
|
53
|
+
width: 100%;
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-direction: row;
|
|
56
|
+
flex-wrap: nowrap;
|
|
57
|
+
align-items: center;
|
|
58
|
+
gap: 0px;
|
|
59
|
+
padding: 0px 10px 8px 10px;
|
|
60
|
+
border-bottom: 1px solid #f0f0f0;
|
|
61
|
+
|
|
62
|
+
.inputSearch {
|
|
63
|
+
padding-left: 8px;
|
|
64
|
+
flex-grow: 2;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.selectItemV2 {
|
|
69
|
+
width: 100%;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.container-items {
|
|
73
|
+
flex-grow: 2;
|
|
74
|
+
display: flex;
|
|
75
|
+
flex-direction: column;
|
|
76
|
+
flex-wrap: ${({ alignmentItemsOverflow }) =>
|
|
77
|
+
alignmentItemsOverflow === "columns" ? "wrap" : "nowrap"};
|
|
78
|
+
overflow: auto;
|
|
79
|
+
|
|
80
|
+
.selectItemV2 {
|
|
81
|
+
width: ${({ maxWidthItems }) =>
|
|
82
|
+
maxWidthItems ? maxWidthItems : "100%"};
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&[data-popper-placement*="bottom"] .dropdownSelect {
|
|
88
|
+
margin-top: 10px;
|
|
89
|
+
}
|
|
90
|
+
&[data-popper-placement*="top"] .dropdownSelect {
|
|
91
|
+
margin-bottom: 10px;
|
|
92
|
+
}
|
|
93
|
+
&[data-popper-placement*="left"] .dropdownSelect {
|
|
94
|
+
margin-right: 10px;
|
|
95
|
+
}
|
|
96
|
+
&[data-popper-placement*="right"] .dropdownSelect {
|
|
97
|
+
margin-left: 10px;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
`;
|
|
@@ -16,7 +16,7 @@ import Table from "./utils/Table";
|
|
|
16
16
|
|
|
17
17
|
moment.locale("es");
|
|
18
18
|
|
|
19
|
-
export
|
|
19
|
+
export const OrderDetail = (props) => {
|
|
20
20
|
const { order } = props;
|
|
21
21
|
const [showPaymentButton, setShowPaymentButton] = useState(
|
|
22
22
|
order.payment !== "pagado"
|
|
@@ -186,4 +186,4 @@ export default function OrderDetail(props) {
|
|
|
186
186
|
</div>
|
|
187
187
|
</MainContainer>
|
|
188
188
|
);
|
|
189
|
-
}
|
|
189
|
+
};
|
package/src/index.js
CHANGED
|
@@ -61,6 +61,7 @@ export * from "./components/molecules/RetailerSelector/index";
|
|
|
61
61
|
export * from "./components/molecules/CustomSelect/index";
|
|
62
62
|
export * from "./components/molecules/ButtonDownloadFile/index";
|
|
63
63
|
export * from "./components/molecules/ImageTooltip/index";
|
|
64
|
+
export * from "./components/molecules/SelectV2/index";
|
|
64
65
|
|
|
65
66
|
//organisms
|
|
66
67
|
export * from "./components/organisms/ChangePassword/index";
|