@bjsdistribution/dms-client-return 0.0.87 → 0.0.89
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/assets/icons/DownloadIcon.d.ts +3 -0
- package/dist/dms-client-return.cjs.development.js +31 -4
- package/dist/dms-client-return.cjs.development.js.map +1 -1
- package/dist/dms-client-return.cjs.production.min.js +1 -1
- package/dist/dms-client-return.cjs.production.min.js.map +1 -1
- package/dist/dms-client-return.esm.js +31 -4
- package/dist/dms-client-return.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/assets/icons/DownloadIcon.tsx +36 -0
- package/src/components/order-view/order-details/expanded-content/orders-section/DeliveryDate.tsx +2 -4
- package/src/components/order-view/order-resources/columns/actions/index.tsx +2 -2
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.0.
|
|
2
|
+
"version": "0.0.89",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"testEnvironment": "jest-environment-jsdom-sixteen"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@bjsdistribution/dms-component-library": "0.1.
|
|
62
|
+
"@bjsdistribution/dms-component-library": "0.1.82",
|
|
63
63
|
"@size-limit/preset-small-lib": "^11.0.1",
|
|
64
64
|
"@tippyjs/react": "^4.2.6",
|
|
65
65
|
"@types/react": "^18.2.47",
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const DownloadIcon = () => {
|
|
4
|
+
return (
|
|
5
|
+
<svg
|
|
6
|
+
width="21"
|
|
7
|
+
height="21"
|
|
8
|
+
viewBox="0 0 21 21"
|
|
9
|
+
fill="none"
|
|
10
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
11
|
+
>
|
|
12
|
+
<g id="icon/import">
|
|
13
|
+
<rect
|
|
14
|
+
width="20"
|
|
15
|
+
height="20"
|
|
16
|
+
transform="translate(0.5 0.243164)"
|
|
17
|
+
fill="white"
|
|
18
|
+
/>
|
|
19
|
+
<path
|
|
20
|
+
id="Vector"
|
|
21
|
+
opacity="0.6"
|
|
22
|
+
d="M5.12684 17.7165C4.83921 17.7084 4.55614 17.6426 4.29443 17.523C4.03273 17.4034 3.79774 17.2324 3.60341 17.0202C3.40908 16.808 3.25938 16.5589 3.16319 16.2877C3.06701 16.0165 3.02631 15.7287 3.04351 15.4415C3.03351 13.6473 3.04351 11.8532 3.04351 10.059C3.04351 9.94849 3.08741 9.84251 3.16555 9.76437C3.24369 9.68623 3.34967 9.64233 3.46017 9.64233C3.57068 9.64233 3.67666 9.68623 3.7548 9.76437C3.83294 9.84251 3.87684 9.94849 3.87684 10.059C3.87684 11.8923 3.85017 13.7257 3.87684 15.559C3.89017 16.4815 4.58351 16.8832 5.40851 16.8832H15.7943C16.0566 16.8896 16.3146 16.8158 16.5338 16.6717C16.753 16.5275 16.923 16.3199 17.021 16.0765C17.1009 15.789 17.1291 15.4897 17.1043 15.1923V10.059C17.1043 9.94849 17.1482 9.84251 17.2264 9.76437C17.3045 9.68623 17.4105 9.64233 17.521 9.64233C17.6315 9.64233 17.7375 9.68623 17.8156 9.76437C17.8938 9.84251 17.9377 9.94849 17.9377 10.059C17.9377 11.9123 18.0085 13.7798 17.9377 15.6315C17.9305 15.9151 17.867 16.1944 17.7509 16.4532C17.6348 16.7119 17.4683 16.9451 17.2613 17.1389C17.0542 17.3328 16.8107 17.4836 16.5448 17.5824C16.279 17.6813 15.9961 17.7263 15.7127 17.7148L5.12684 17.7165Z"
|
|
23
|
+
fill="#3A3630"
|
|
24
|
+
/>
|
|
25
|
+
<path
|
|
26
|
+
id="Vector_2"
|
|
27
|
+
opacity="0.6"
|
|
28
|
+
d="M10.1916 13.4248C10.2602 13.4951 10.3533 13.5363 10.4516 13.5398C10.4632 13.5398 10.4741 13.5439 10.4866 13.5448C10.4991 13.5456 10.5091 13.5448 10.5207 13.5398C10.619 13.5364 10.7121 13.4952 10.7807 13.4248L13.8382 10.3673C13.9141 10.2887 13.9561 10.1834 13.9552 10.0742C13.9542 9.96495 13.9104 9.86044 13.8331 9.78319C13.7559 9.70594 13.6514 9.66212 13.5421 9.66117C13.4329 9.66022 13.3276 9.70222 13.2491 9.77812L10.9032 12.1239V3.17228C10.9032 3.06178 10.8593 2.95579 10.7812 2.87765C10.703 2.79951 10.5971 2.75562 10.4866 2.75562C10.376 2.75562 10.2701 2.79951 10.1919 2.87765C10.1138 2.95579 10.0699 3.06178 10.0699 3.17228V12.1239L7.72322 9.77812C7.64464 9.70222 7.53938 9.66022 7.43014 9.66117C7.32089 9.66212 7.21638 9.70594 7.13913 9.78319C7.06188 9.86044 7.01805 9.96495 7.01711 10.0742C7.01616 10.1834 7.05815 10.2887 7.13405 10.3673L10.1916 13.4248Z"
|
|
29
|
+
fill="#3A3630"
|
|
30
|
+
/>
|
|
31
|
+
</g>
|
|
32
|
+
</svg>
|
|
33
|
+
);
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export default DownloadIcon;
|
package/src/components/order-view/order-details/expanded-content/orders-section/DeliveryDate.tsx
CHANGED
|
@@ -13,7 +13,6 @@ function DeliveryDate() {
|
|
|
13
13
|
const [orderDetails, setOrderDetails] = useOrderDetails();
|
|
14
14
|
const [prevOrderDetails] = usePrevOrderDetails();
|
|
15
15
|
const [orderStatus] = useStatusDetails();
|
|
16
|
-
|
|
17
16
|
const routedStatus = orderStatus?.[0]?.routed;
|
|
18
17
|
|
|
19
18
|
const actionDate = orderDetails?.action_date
|
|
@@ -53,15 +52,14 @@ function DeliveryDate() {
|
|
|
53
52
|
});
|
|
54
53
|
}
|
|
55
54
|
};
|
|
56
|
-
|
|
57
55
|
return (
|
|
58
56
|
<MainContainer>
|
|
59
|
-
<Label label="Delivery Date
|
|
57
|
+
<Label label="Delivery Date" />
|
|
60
58
|
<DatePicker
|
|
61
59
|
onChange={onChange}
|
|
62
60
|
value={actionDate === null ? actionDate : dayjs(actionDate)}
|
|
63
61
|
format="DD/MM/YY"
|
|
64
|
-
|
|
62
|
+
disabledDate={current => current && current < dayjs().startOf('day')}
|
|
65
63
|
allowClear={false}
|
|
66
64
|
disabled={routedStatus}
|
|
67
65
|
/>
|
|
@@ -5,7 +5,7 @@ import styled from 'styled-components';
|
|
|
5
5
|
import { atom } from 'jotai';
|
|
6
6
|
import { useOrderProductsResources } from '../../../store';
|
|
7
7
|
import { notification } from 'antd';
|
|
8
|
-
import
|
|
8
|
+
import DownloadIcon from '../../../../../assets/icons/DownloadIcon';
|
|
9
9
|
|
|
10
10
|
export const selectedOrderIdAtom = atom<number[]>([]);
|
|
11
11
|
|
|
@@ -114,7 +114,7 @@ function Action({ row }: ActionProps) {
|
|
|
114
114
|
opacity: isDownloading ? 0.6 : 1,
|
|
115
115
|
}}
|
|
116
116
|
>
|
|
117
|
-
<
|
|
117
|
+
<DownloadIcon />
|
|
118
118
|
</TippyContainer>
|
|
119
119
|
</Tippy>
|
|
120
120
|
</Row>
|