@riosst100/pwa-marketplace 1.9.2 → 1.9.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/package.json +4 -2
- package/src/componentOverrideMapping.js +1 -0
- package/src/components/AccountLayout/accountlayout.module.css +11 -1
- package/src/components/AccountLayout/index.js +60 -13
- package/src/components/CrossSeller/starIcon.js +2 -5
- package/src/components/FavoriteSeller/favoriteSeller.js +32 -0
- package/src/components/FavoriteSeller/index.js +14 -0
- package/src/components/FavoriteSeller/item.js +140 -0
- package/src/components/LiveChat/chatContent.js +4 -4
- package/src/components/RFQ/index.js +39 -0
- package/src/components/RFQ/modalRfq.js +249 -0
- package/src/components/RFQPage/index.js +14 -0
- package/src/components/RFQPage/orderRow.js +318 -0
- package/src/components/RFQPage/quoteDetail.js +342 -0
- package/src/components/RFQPage/quoteDetailPage.js +14 -0
- package/src/components/RFQPage/quoteList.js +227 -0
- package/src/intercept.js +28 -0
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/components/auctionDetail.js +0 -1
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/productFullDetail.js +5 -0
- package/src/overwrites/venia-ui/lib/components/TextArea/index.js +1 -0
- package/src/overwrites/venia-ui/lib/components/TextArea/textArea.js +44 -0
- package/src/overwrites/venia-ui/lib/components/TextArea/textArea.module.css +27 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React, { Fragment } from 'react';
|
|
2
|
+
import { number, node, oneOf, oneOfType, shape, string } from 'prop-types';
|
|
3
|
+
import { TextArea as InformedTextArea } from 'informed';
|
|
4
|
+
import useFieldState from '@magento/peregrine/lib/hooks/hook-wrappers/useInformedFieldStateWrapper';
|
|
5
|
+
|
|
6
|
+
import { useStyle } from '@magento/venia-ui/lib/classify';
|
|
7
|
+
import { Message } from '@magento/venia-ui/lib/components/Field';
|
|
8
|
+
import defaultClasses from './textArea.module.css';
|
|
9
|
+
|
|
10
|
+
const TextArea = props => {
|
|
11
|
+
const { classes: propClasses, field, message, ...rest } = props;
|
|
12
|
+
const fieldState = useFieldState(field);
|
|
13
|
+
const classes = useStyle(defaultClasses, propClasses);
|
|
14
|
+
|
|
15
|
+
return (
|
|
16
|
+
<Fragment>
|
|
17
|
+
<InformedTextArea
|
|
18
|
+
{...rest}
|
|
19
|
+
className={classes.input}
|
|
20
|
+
field={field}
|
|
21
|
+
/>
|
|
22
|
+
<Message fieldState={fieldState}>{message}</Message>
|
|
23
|
+
</Fragment>
|
|
24
|
+
);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export default TextArea;
|
|
28
|
+
|
|
29
|
+
TextArea.defaultProps = {
|
|
30
|
+
cols: 40,
|
|
31
|
+
rows: 4,
|
|
32
|
+
wrap: 'hard'
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
TextArea.propTypes = {
|
|
36
|
+
classes: shape({
|
|
37
|
+
input: string
|
|
38
|
+
}),
|
|
39
|
+
cols: oneOfType([number, string]),
|
|
40
|
+
field: string.isRequired,
|
|
41
|
+
message: node,
|
|
42
|
+
rows: oneOfType([number, string]),
|
|
43
|
+
wrap: oneOf(['hard', 'soft'])
|
|
44
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
.input {
|
|
2
|
+
/* composes: input from '@magento/venia-ui/lib/components/Field/field.module.css'; */
|
|
3
|
+
|
|
4
|
+
composes: h-auto from global;
|
|
5
|
+
composes: max-w-full from global;
|
|
6
|
+
composes: min-w-full from global;
|
|
7
|
+
composes: px-xs from global;
|
|
8
|
+
composes: py-3 from global;
|
|
9
|
+
composes: border from global;
|
|
10
|
+
composes: border-gray-100 from global;
|
|
11
|
+
composes: rounded-md from global;
|
|
12
|
+
composes: rounded-md from global;
|
|
13
|
+
composes: focus-visible_outline-none from global;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.input_shimmer {
|
|
17
|
+
composes: h-auto from global;
|
|
18
|
+
composes: m-0 from global;
|
|
19
|
+
composes: max-w-full from global;
|
|
20
|
+
composes: min-h-[6.75rem] from global;
|
|
21
|
+
composes: min-w-full from global;
|
|
22
|
+
composes: px-[15px] from global;
|
|
23
|
+
composes: py-[12px] from global;
|
|
24
|
+
composes: rounded-md from global;
|
|
25
|
+
composes: w-full from global;
|
|
26
|
+
font-size: 1rem;
|
|
27
|
+
}
|