@licklist/design 0.70.0-dev.0 → 0.70.0-dev.2
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/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts +0 -2
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.js +0 -2
- package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +8 -0
- package/package.json +4 -4
- package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +0 -3
- package/src/styles/ryft-payment-form/RyftPaymentForm.scss +8 -0
- package/yarn.lock +8 -34
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FieldValues, RefCallBack, UseFormClearErrors } from 'react-hook-form';
|
|
2
|
-
import { Zone } from '@licklist/core/dist/DataMapper/Provider/ZoneDataMapper';
|
|
3
2
|
import { Product, ProductCategory } from '@licklist/plugins/dist/types/context/sale/menuSteps';
|
|
4
3
|
interface FormOrderItem {
|
|
5
4
|
id: number;
|
|
@@ -7,7 +6,6 @@ interface FormOrderItem {
|
|
|
7
6
|
price: number;
|
|
8
7
|
productCategoryId: number;
|
|
9
8
|
hasDeposit?: boolean;
|
|
10
|
-
zoneId?: Zone['id'];
|
|
11
9
|
deposit?: number | null;
|
|
12
10
|
quantity: number;
|
|
13
11
|
capacity?: number | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductQuantityInput.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAC9E,OAAO,
|
|
1
|
+
{"version":3,"file":"ProductQuantityInput.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAC9E,OAAO,EACL,OAAO,EACP,eAAe,EAChB,MAAM,qDAAqD,CAAA;AAG5D,UAAU,aAAa;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,iBAAiB,EAAE,MAAM,CAAA;IACzB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACzB;AAED,UAAU,yBAAyB;IACjC,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,eAAe,CAAA;IACzB,WAAW,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAA;IAC5C,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAA;IACxC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,WAAW,CAAA;IACxB,OAAO,EAAE,OAAO,CAAA;IAChB,WAAW,EAAE,aAAa,CAAA;CAC3B;AAED,eAAO,MAAM,oBAAoB,gGAQ9B,yBAAyB,4CAiE3B,CAAA"}
|
|
@@ -8,7 +8,6 @@ var ProductQuantityInput = function(param) {
|
|
|
8
8
|
var product = param.product, category = param.category, _onChange = param.onChange, clearErrors = param.clearErrors, refCallback = param.refCallback, productInfo = param.productInfo, invalid = param.invalid;
|
|
9
9
|
var t = useTranslation('Design').t;
|
|
10
10
|
var onChange = function(quantity) {
|
|
11
|
-
var _category_zone;
|
|
12
11
|
_onChange({
|
|
13
12
|
id: product.id,
|
|
14
13
|
name: product.name,
|
|
@@ -16,7 +15,6 @@ var ProductQuantityInput = function(param) {
|
|
|
16
15
|
hasDeposit: category.allowDeposits && (product === null || product === void 0 ? void 0 : product.deposit) < product.price,
|
|
17
16
|
price: product.price,
|
|
18
17
|
productCategoryId: category.id,
|
|
19
|
-
zoneId: (_category_zone = category.zone) === null || _category_zone === void 0 ? void 0 : _category_zone.id,
|
|
20
18
|
quantity: quantity,
|
|
21
19
|
capacity: product === null || product === void 0 ? void 0 : product.capacity
|
|
22
20
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@licklist/design",
|
|
3
|
-
"version": "0.70.0-dev.
|
|
3
|
+
"version": "0.70.0-dev.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@licklist/core": "0.31.0-dev.0",
|
|
46
46
|
"@licklist/eslint-config": "0.5.6",
|
|
47
|
-
"@licklist/plugins": "0.
|
|
47
|
+
"@licklist/plugins": "0.34.0-dev.2",
|
|
48
48
|
"lodash": "4.17.21",
|
|
49
49
|
"luxon": "3.5.0",
|
|
50
50
|
"react": "17.0.2",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@fortawesome/free-solid-svg-icons": "5.15.2",
|
|
64
64
|
"@licklist/core": "0.31.0-dev.0",
|
|
65
65
|
"@licklist/eslint-config": "0.5.6",
|
|
66
|
-
"@licklist/plugins": "0.
|
|
66
|
+
"@licklist/plugins": "0.34.0-dev.2",
|
|
67
67
|
"@mantine/core": "6.0.22",
|
|
68
68
|
"@mantine/hooks": "6.0.22",
|
|
69
69
|
"@mdx-js/react": "1.6.22",
|
|
@@ -208,4 +208,4 @@
|
|
|
208
208
|
"yarn": "4.4.0"
|
|
209
209
|
},
|
|
210
210
|
"stableVersion": "0.69.1-dev.3"
|
|
211
|
-
}
|
|
211
|
+
}
|
|
@@ -2,7 +2,6 @@ import clsx from 'clsx'
|
|
|
2
2
|
import { Button } from 'react-bootstrap'
|
|
3
3
|
import { useTranslation } from 'react-i18next'
|
|
4
4
|
import { FieldValues, RefCallBack, UseFormClearErrors } from 'react-hook-form'
|
|
5
|
-
import { Zone } from '@licklist/core/dist/DataMapper/Provider/ZoneDataMapper'
|
|
6
5
|
import {
|
|
7
6
|
Product,
|
|
8
7
|
ProductCategory,
|
|
@@ -15,7 +14,6 @@ interface FormOrderItem {
|
|
|
15
14
|
price: number
|
|
16
15
|
productCategoryId: number
|
|
17
16
|
hasDeposit?: boolean
|
|
18
|
-
zoneId?: Zone['id']
|
|
19
17
|
deposit?: number | null
|
|
20
18
|
quantity: number
|
|
21
19
|
capacity?: number | null
|
|
@@ -51,7 +49,6 @@ export const ProductQuantityInput = ({
|
|
|
51
49
|
hasDeposit: category.allowDeposits && product?.deposit < product.price,
|
|
52
50
|
price: product.price,
|
|
53
51
|
productCategoryId: category.id,
|
|
54
|
-
zoneId: category.zone?.id,
|
|
55
52
|
quantity,
|
|
56
53
|
capacity: product?.capacity,
|
|
57
54
|
})
|
package/yarn.lock
CHANGED
|
@@ -2453,32 +2453,6 @@ __metadata:
|
|
|
2453
2453
|
languageName: node
|
|
2454
2454
|
linkType: hard
|
|
2455
2455
|
|
|
2456
|
-
"@licklist/core@npm:0.30.5-dev.0":
|
|
2457
|
-
version: 0.30.5-dev.0
|
|
2458
|
-
resolution: "@licklist/core@npm:0.30.5-dev.0"
|
|
2459
|
-
dependencies:
|
|
2460
|
-
"@sentry/browser": "npm:6.2.0"
|
|
2461
|
-
axios: "npm:0.26.0"
|
|
2462
|
-
i18next: "npm:19.4.5"
|
|
2463
|
-
luxon: "npm:3.5.0"
|
|
2464
|
-
react: "npm:17.0.2"
|
|
2465
|
-
react-dom: "npm:17.0.2"
|
|
2466
|
-
react-i18next: "npm:11.8.8"
|
|
2467
|
-
react-intl: "npm:6.6.8"
|
|
2468
|
-
uuid: "npm:9.0.0"
|
|
2469
|
-
wait-for-expect: "npm:3.0.2"
|
|
2470
|
-
peerDependencies:
|
|
2471
|
-
"@licklist/eslint-config": 0.5.6
|
|
2472
|
-
axios: 0.26.0
|
|
2473
|
-
luxon: 3.5.0
|
|
2474
|
-
react: 17.0.2
|
|
2475
|
-
react-dom: 17.0.2
|
|
2476
|
-
react-i18next: 11.8.8
|
|
2477
|
-
react-intl: 6.6.8
|
|
2478
|
-
checksum: 10c0/0ee67d6fe61b5db44e45d390428012c3829983ad5d0e3e835deb7f69b5f3cf9d429f82c8ce1b4d89cefcd251e11b16e3a429a5045933c7592b5df20682abb3af
|
|
2479
|
-
languageName: node
|
|
2480
|
-
linkType: hard
|
|
2481
|
-
|
|
2482
2456
|
"@licklist/core@npm:0.31.0-dev.0":
|
|
2483
2457
|
version: 0.31.0-dev.0
|
|
2484
2458
|
resolution: "@licklist/core@npm:0.31.0-dev.0"
|
|
@@ -2520,7 +2494,7 @@ __metadata:
|
|
|
2520
2494
|
"@fortawesome/free-solid-svg-icons": "npm:5.15.2"
|
|
2521
2495
|
"@licklist/core": "npm:0.31.0-dev.0"
|
|
2522
2496
|
"@licklist/eslint-config": "npm:0.5.6"
|
|
2523
|
-
"@licklist/plugins": "npm:0.
|
|
2497
|
+
"@licklist/plugins": "npm:0.34.0-dev.2"
|
|
2524
2498
|
"@mantine/core": "npm:6.0.22"
|
|
2525
2499
|
"@mantine/hooks": "npm:6.0.22"
|
|
2526
2500
|
"@mdx-js/react": "npm:1.6.22"
|
|
@@ -2651,7 +2625,7 @@ __metadata:
|
|
|
2651
2625
|
peerDependencies:
|
|
2652
2626
|
"@licklist/core": 0.31.0-dev.0
|
|
2653
2627
|
"@licklist/eslint-config": 0.5.6
|
|
2654
|
-
"@licklist/plugins": 0.
|
|
2628
|
+
"@licklist/plugins": 0.34.0-dev.2
|
|
2655
2629
|
lodash: 4.17.21
|
|
2656
2630
|
luxon: 3.5.0
|
|
2657
2631
|
react: 17.0.2
|
|
@@ -2681,11 +2655,11 @@ __metadata:
|
|
|
2681
2655
|
languageName: node
|
|
2682
2656
|
linkType: hard
|
|
2683
2657
|
|
|
2684
|
-
"@licklist/plugins@npm:0.
|
|
2685
|
-
version: 0.
|
|
2686
|
-
resolution: "@licklist/plugins@npm:0.
|
|
2658
|
+
"@licklist/plugins@npm:0.34.0-dev.2":
|
|
2659
|
+
version: 0.34.0-dev.2
|
|
2660
|
+
resolution: "@licklist/plugins@npm:0.34.0-dev.2"
|
|
2687
2661
|
dependencies:
|
|
2688
|
-
"@licklist/core": "npm:0.
|
|
2662
|
+
"@licklist/core": "npm:0.31.0-dev.0"
|
|
2689
2663
|
axios: "npm:0.26.0"
|
|
2690
2664
|
history: "npm:4.10.1"
|
|
2691
2665
|
laravel-echo: "npm:1.15.1"
|
|
@@ -2705,7 +2679,7 @@ __metadata:
|
|
|
2705
2679
|
rrule: "npm:2.6.8"
|
|
2706
2680
|
use-debounce: "npm:7.0.1"
|
|
2707
2681
|
peerDependencies:
|
|
2708
|
-
"@licklist/core": 0.
|
|
2682
|
+
"@licklist/core": 0.31.0-dev.0
|
|
2709
2683
|
"@licklist/eslint-config": 0.5.6
|
|
2710
2684
|
axios: 0.26.0
|
|
2711
2685
|
lodash: 4.17.21
|
|
@@ -2717,7 +2691,7 @@ __metadata:
|
|
|
2717
2691
|
react-loader: 2.4.7
|
|
2718
2692
|
react-query: 3.34.12
|
|
2719
2693
|
react-router-dom: 5.2.0
|
|
2720
|
-
checksum: 10c0/
|
|
2694
|
+
checksum: 10c0/cb71683c769ae56abc09dded995688d63732c456983eb033ff8f2818248d911101677745561b19c48779b0c8e534d04624c9785eeffadc98a7edee4bb8cd269d
|
|
2721
2695
|
languageName: node
|
|
2722
2696
|
linkType: hard
|
|
2723
2697
|
|