@open-tender/store 1.1.13 → 1.1.15
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/cjs/components/index.d.ts +1 -2
- package/dist/cjs/components/index.js +1 -3
- package/dist/cjs/config/modalContent.js +2 -1
- package/dist/esm/components/index.d.ts +1 -2
- package/dist/esm/components/index.js +1 -2
- package/dist/esm/config/modalContent.js +2 -1
- package/package.json +1 -5
- package/dist/cjs/components/Modal.d.ts +0 -9
- package/dist/cjs/components/Modal.js +0 -16
- package/dist/esm/components/Modal.d.ts +0 -9
- package/dist/esm/components/Modal.js +0 -13
|
@@ -23,7 +23,6 @@ import Loader from './Loader';
|
|
|
23
23
|
import MadeForNotes from './MadeForNotes';
|
|
24
24
|
import MenuCategory from './MenuCategory';
|
|
25
25
|
import MenuOther from './MenuOther';
|
|
26
|
-
import Modal from './Modal';
|
|
27
26
|
import ModalContent from './ModalContent';
|
|
28
27
|
import ModalHeader from './ModalHeader';
|
|
29
28
|
import NutritionalInfo from './NutritionalInfo';
|
|
@@ -46,4 +45,4 @@ import Tag from './Tag';
|
|
|
46
45
|
import TextArea from './TextArea';
|
|
47
46
|
import UpsellItem from './UpsellItem';
|
|
48
47
|
import Upsells from './Upsells';
|
|
49
|
-
export { Allergen, Applied, ButtonLink, Card, Cart, CartItem, CartUpsellItem, CategoryItem, CategoryNav, CategoryNavItem, CategoryNavOther, CheckTotals, Discount, ErrorMessage, Header, Ingredients, Input, ItemGroup, ItemGroups, ItemOption, ItemSelections, Loader, MadeForNotes, MenuCategory, MenuOther,
|
|
48
|
+
export { Allergen, Applied, ButtonLink, Card, Cart, CartItem, CartUpsellItem, CategoryItem, CategoryNav, CategoryNavItem, CategoryNavOther, CheckTotals, Discount, ErrorMessage, Header, Ingredients, Input, ItemGroup, ItemGroups, ItemOption, ItemSelections, Loader, MadeForNotes, MenuCategory, MenuOther, ModalContent, ModalHeader, NutritionalInfo, Option, OrderCard, PointsReward, PointsRewards, PromoCode, Quantity, Reward, Rewards, SignIn, SignInButton, SignInCheckout, SignInOptions, SignInPhone, SignInQr, SuccessMessage, Tag, TextArea, UpsellItem, Upsells };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Upsells = exports.UpsellItem = exports.TextArea = exports.Tag = exports.SuccessMessage = exports.SignInQr = exports.SignInPhone = exports.SignInOptions = exports.SignInCheckout = exports.SignInButton = exports.SignIn = exports.Rewards = exports.Reward = exports.Quantity = exports.PromoCode = exports.PointsRewards = exports.PointsReward = exports.OrderCard = exports.Option = exports.NutritionalInfo = exports.ModalHeader = exports.ModalContent = exports.
|
|
3
|
+
exports.Upsells = exports.UpsellItem = exports.TextArea = exports.Tag = exports.SuccessMessage = exports.SignInQr = exports.SignInPhone = exports.SignInOptions = exports.SignInCheckout = exports.SignInButton = exports.SignIn = exports.Rewards = exports.Reward = exports.Quantity = exports.PromoCode = exports.PointsRewards = exports.PointsReward = exports.OrderCard = exports.Option = exports.NutritionalInfo = exports.ModalHeader = exports.ModalContent = exports.MenuOther = exports.MenuCategory = exports.MadeForNotes = exports.Loader = exports.ItemSelections = exports.ItemOption = exports.ItemGroups = exports.ItemGroup = exports.Input = exports.Ingredients = exports.Header = exports.ErrorMessage = exports.Discount = exports.CheckTotals = exports.CategoryNavOther = exports.CategoryNavItem = exports.CategoryNav = exports.CategoryItem = exports.CartUpsellItem = exports.CartItem = exports.Cart = exports.Card = exports.ButtonLink = exports.Applied = exports.Allergen = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
var Allergen_1 = tslib_1.__importDefault(require("./Allergen"));
|
|
6
6
|
exports.Allergen = Allergen_1.default;
|
|
@@ -52,8 +52,6 @@ var MenuCategory_1 = tslib_1.__importDefault(require("./MenuCategory"));
|
|
|
52
52
|
exports.MenuCategory = MenuCategory_1.default;
|
|
53
53
|
var MenuOther_1 = tslib_1.__importDefault(require("./MenuOther"));
|
|
54
54
|
exports.MenuOther = MenuOther_1.default;
|
|
55
|
-
var Modal_1 = tslib_1.__importDefault(require("./Modal"));
|
|
56
|
-
exports.Modal = Modal_1.default;
|
|
57
55
|
var ModalContent_1 = tslib_1.__importDefault(require("./ModalContent"));
|
|
58
56
|
exports.ModalContent = ModalContent_1.default;
|
|
59
57
|
var ModalHeader_1 = tslib_1.__importDefault(require("./ModalHeader"));
|
|
@@ -23,7 +23,6 @@ import Loader from './Loader';
|
|
|
23
23
|
import MadeForNotes from './MadeForNotes';
|
|
24
24
|
import MenuCategory from './MenuCategory';
|
|
25
25
|
import MenuOther from './MenuOther';
|
|
26
|
-
import Modal from './Modal';
|
|
27
26
|
import ModalContent from './ModalContent';
|
|
28
27
|
import ModalHeader from './ModalHeader';
|
|
29
28
|
import NutritionalInfo from './NutritionalInfo';
|
|
@@ -46,4 +45,4 @@ import Tag from './Tag';
|
|
|
46
45
|
import TextArea from './TextArea';
|
|
47
46
|
import UpsellItem from './UpsellItem';
|
|
48
47
|
import Upsells from './Upsells';
|
|
49
|
-
export { Allergen, Applied, ButtonLink, Card, Cart, CartItem, CartUpsellItem, CategoryItem, CategoryNav, CategoryNavItem, CategoryNavOther, CheckTotals, Discount, ErrorMessage, Header, Ingredients, Input, ItemGroup, ItemGroups, ItemOption, ItemSelections, Loader, MadeForNotes, MenuCategory, MenuOther,
|
|
48
|
+
export { Allergen, Applied, ButtonLink, Card, Cart, CartItem, CartUpsellItem, CategoryItem, CategoryNav, CategoryNavItem, CategoryNavOther, CheckTotals, Discount, ErrorMessage, Header, Ingredients, Input, ItemGroup, ItemGroups, ItemOption, ItemSelections, Loader, MadeForNotes, MenuCategory, MenuOther, ModalContent, ModalHeader, NutritionalInfo, Option, OrderCard, PointsReward, PointsRewards, PromoCode, Quantity, Reward, Rewards, SignIn, SignInButton, SignInCheckout, SignInOptions, SignInPhone, SignInQr, SuccessMessage, Tag, TextArea, UpsellItem, Upsells };
|
|
@@ -23,7 +23,6 @@ import Loader from './Loader';
|
|
|
23
23
|
import MadeForNotes from './MadeForNotes';
|
|
24
24
|
import MenuCategory from './MenuCategory';
|
|
25
25
|
import MenuOther from './MenuOther';
|
|
26
|
-
import Modal from './Modal';
|
|
27
26
|
import ModalContent from './ModalContent';
|
|
28
27
|
import ModalHeader from './ModalHeader';
|
|
29
28
|
import NutritionalInfo from './NutritionalInfo';
|
|
@@ -46,4 +45,4 @@ import Tag from './Tag';
|
|
|
46
45
|
import TextArea from './TextArea';
|
|
47
46
|
import UpsellItem from './UpsellItem';
|
|
48
47
|
import Upsells from './Upsells';
|
|
49
|
-
export { Allergen, Applied, ButtonLink, Card, Cart, CartItem, CartUpsellItem, CategoryItem, CategoryNav, CategoryNavItem, CategoryNavOther, CheckTotals, Discount, ErrorMessage, Header, Ingredients, Input, ItemGroup, ItemGroups, ItemOption, ItemSelections, Loader, MadeForNotes, MenuCategory, MenuOther,
|
|
48
|
+
export { Allergen, Applied, ButtonLink, Card, Cart, CartItem, CartUpsellItem, CategoryItem, CategoryNav, CategoryNavItem, CategoryNavOther, CheckTotals, Discount, ErrorMessage, Header, Ingredients, Input, ItemGroup, ItemGroups, ItemOption, ItemSelections, Loader, MadeForNotes, MenuCategory, MenuOther, ModalContent, ModalHeader, NutritionalInfo, Option, OrderCard, PointsReward, PointsRewards, PromoCode, Quantity, Reward, Rewards, SignIn, SignInButton, SignInCheckout, SignInOptions, SignInPhone, SignInQr, SuccessMessage, Tag, TextArea, UpsellItem, Upsells };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.15",
|
|
4
4
|
"description": "A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our in-store POS API",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -41,7 +41,6 @@
|
|
|
41
41
|
"@reduxjs/toolkit": "^2.0.1",
|
|
42
42
|
"@types/react": "^18.2.45",
|
|
43
43
|
"@types/react-dom": "^18.2.18",
|
|
44
|
-
"@types/react-transition-group": "^4.4.10",
|
|
45
44
|
"@types/uuid": "^9.0.7",
|
|
46
45
|
"@typescript-eslint/eslint-plugin": "^6.14.0",
|
|
47
46
|
"@typescript-eslint/parser": "^6.14.0",
|
|
@@ -59,7 +58,6 @@
|
|
|
59
58
|
"react-dom": "^18.2.0",
|
|
60
59
|
"react-fast-compare": "^3.2.2",
|
|
61
60
|
"react-redux": "^9.0.4",
|
|
62
|
-
"react-transition-group": "^4.4.5",
|
|
63
61
|
"tslib": "^2.6.2",
|
|
64
62
|
"typescript": "^5.3.3",
|
|
65
63
|
"uuid": "^9.0.1"
|
|
@@ -70,13 +68,11 @@
|
|
|
70
68
|
"@open-tender/ui": "^0.3.14",
|
|
71
69
|
"@open-tender/utils": "^0.4.23",
|
|
72
70
|
"@reduxjs/toolkit": "^2.0.1",
|
|
73
|
-
"@types/react-transition-group": "^4.4.10",
|
|
74
71
|
"date-fns": "2.30.0",
|
|
75
72
|
"date-fns-tz": "^2.0.0",
|
|
76
73
|
"react": "^18.2.0",
|
|
77
74
|
"react-device-detect": "^2.2.3",
|
|
78
75
|
"react-dom": "^18.2.0",
|
|
79
|
-
"react-transition-group": "^4.4.5",
|
|
80
76
|
"uuid": "^9.0.1"
|
|
81
77
|
}
|
|
82
78
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ModalProps } from '@open-tender/ui';
|
|
2
|
-
import React, { ReactNode } from 'react';
|
|
3
|
-
declare const Modal: ({ show, close, content, children }: {
|
|
4
|
-
show: boolean;
|
|
5
|
-
close: () => void;
|
|
6
|
-
content: ReactNode;
|
|
7
|
-
children: (props: ModalProps) => ReactNode;
|
|
8
|
-
}) => React.JSX.Element | null;
|
|
9
|
-
export default Modal;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var tslib_1 = require("tslib");
|
|
4
|
-
var react_1 = tslib_1.__importDefault(require("react"));
|
|
5
|
-
var react_transition_group_1 = require("react-transition-group");
|
|
6
|
-
var hooks_1 = require("../app/hooks");
|
|
7
|
-
var slices_1 = require("../slices");
|
|
8
|
-
var Modal = function (_a) {
|
|
9
|
-
var show = _a.show, close = _a.close, content = _a.content, children = _a.children;
|
|
10
|
-
var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).modal;
|
|
11
|
-
var handlers = { close: close };
|
|
12
|
-
if (!config)
|
|
13
|
-
return null;
|
|
14
|
-
return (react_1.default.createElement(react_transition_group_1.TransitionGroup, { component: null }, show && (react_1.default.createElement(react_transition_group_1.CSSTransition, { key: "modal", classNames: "md", timeout: { enter: 250, exit: 250 } }, children({ config: config, handlers: handlers, children: content })))));
|
|
15
|
-
};
|
|
16
|
-
exports.default = Modal;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ModalProps } from '@open-tender/ui';
|
|
2
|
-
import React, { ReactNode } from 'react';
|
|
3
|
-
declare const Modal: ({ show, close, content, children }: {
|
|
4
|
-
show: boolean;
|
|
5
|
-
close: () => void;
|
|
6
|
-
content: ReactNode;
|
|
7
|
-
children: (props: ModalProps) => ReactNode;
|
|
8
|
-
}) => React.JSX.Element | null;
|
|
9
|
-
export default Modal;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { CSSTransition, TransitionGroup } from 'react-transition-group';
|
|
3
|
-
import { useAppSelector } from '../app/hooks';
|
|
4
|
-
import { selectKioskConfig } from '../slices';
|
|
5
|
-
var Modal = function (_a) {
|
|
6
|
-
var show = _a.show, close = _a.close, content = _a.content, children = _a.children;
|
|
7
|
-
var config = useAppSelector(selectKioskConfig).modal;
|
|
8
|
-
var handlers = { close: close };
|
|
9
|
-
if (!config)
|
|
10
|
-
return null;
|
|
11
|
-
return (React.createElement(TransitionGroup, { component: null }, show && (React.createElement(CSSTransition, { key: "modal", classNames: "md", timeout: { enter: 250, exit: 250 } }, children({ config: config, handlers: handlers, children: content })))));
|
|
12
|
-
};
|
|
13
|
-
export default Modal;
|