@orderingstack/front-components-product-configurator 1.0.0 → 1.0.1
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/Counter/Counter.d.ts +11 -0
- package/dist/components/Counter/Counter.d.ts.map +1 -0
- package/dist/components/Counter/index.d.ts +3 -0
- package/dist/components/Counter/index.d.ts.map +1 -0
- package/dist/components/DisplayState/DisplayState.d.ts +2 -0
- package/dist/components/DisplayState/DisplayState.d.ts.map +1 -0
- package/dist/components/DisplayState/index.d.ts +3 -0
- package/dist/components/DisplayState/index.d.ts.map +1 -0
- package/dist/components/GroupStateInfo/GroupStateInfo.d.ts +9 -0
- package/dist/components/GroupStateInfo/GroupStateInfo.d.ts.map +1 -0
- package/dist/components/GroupStateInfo/index.d.ts +3 -0
- package/dist/components/GroupStateInfo/index.d.ts.map +1 -0
- package/dist/components/InfoLine/InfoLine.d.ts +8 -0
- package/dist/components/InfoLine/InfoLine.d.ts.map +1 -0
- package/dist/components/InfoLine/index.d.ts +3 -0
- package/dist/components/InfoLine/index.d.ts.map +1 -0
- package/dist/components/MenuItemsDispatcher/MenuItemsDispatcher.d.ts +13 -0
- package/dist/components/MenuItemsDispatcher/MenuItemsDispatcher.d.ts.map +1 -0
- package/dist/components/MenuItemsDispatcher/index.d.ts +3 -0
- package/dist/components/MenuItemsDispatcher/index.d.ts.map +1 -0
- package/dist/components/MenuItemsDispatcher/useMenuItemsDispatcher.d.ts +5 -0
- package/dist/components/MenuItemsDispatcher/useMenuItemsDispatcher.d.ts.map +1 -0
- package/dist/components/MenuOptions/MenuOptions.d.ts +10 -0
- package/dist/components/MenuOptions/MenuOptions.d.ts.map +1 -0
- package/dist/components/MenuOptions/MenuOptionsDefaultUI.d.ts +3 -0
- package/dist/components/MenuOptions/MenuOptionsDefaultUI.d.ts.map +1 -0
- package/dist/components/MenuOptions/index.d.ts +3 -0
- package/dist/components/MenuOptions/index.d.ts.map +1 -0
- package/dist/components/MenuOptions/useMenuOptions.d.ts +9 -0
- package/dist/components/MenuOptions/useMenuOptions.d.ts.map +1 -0
- package/dist/components/MenuProduct/MenuProduct.d.ts +11 -0
- package/dist/components/MenuProduct/MenuProduct.d.ts.map +1 -0
- package/dist/components/MenuProduct/index.d.ts +3 -0
- package/dist/components/MenuProduct/index.d.ts.map +1 -0
- package/dist/components/MenuProduct/useMenuProduct.d.ts +18 -0
- package/dist/components/MenuProduct/useMenuProduct.d.ts.map +1 -0
- package/dist/components/MenuProductRoot/MenuProductRoot.d.ts +3 -0
- package/dist/components/MenuProductRoot/MenuProductRoot.d.ts.map +1 -0
- package/dist/components/MenuProductRoot/MenuProductRootDefaultShitUI.d.ts +9 -0
- package/dist/components/MenuProductRoot/MenuProductRootDefaultShitUI.d.ts.map +1 -0
- package/dist/components/MenuProductRoot/index.d.ts +3 -0
- package/dist/components/MenuProductRoot/index.d.ts.map +1 -0
- package/dist/components/Price/Price.d.ts +11 -0
- package/dist/components/Price/Price.d.ts.map +1 -0
- package/dist/components/Price/index.d.ts +3 -0
- package/dist/components/Price/index.d.ts.map +1 -0
- package/dist/components/ProductConfigurator/ProductConfiguratorNew.d.ts +3 -0
- package/dist/components/ProductConfigurator/ProductConfiguratorNew.d.ts.map +1 -0
- package/dist/components/ProductConfigurator/useProductConfigurator.d.ts +13 -0
- package/dist/components/ProductConfigurator/useProductConfigurator.d.ts.map +1 -0
- package/dist/components/SimpleCheckbox/SimpleCheckbox.d.ts +12 -0
- package/dist/components/SimpleCheckbox/SimpleCheckbox.d.ts.map +1 -0
- package/dist/components/SimpleCheckbox/index.d.ts +3 -0
- package/dist/components/SimpleCheckbox/index.d.ts.map +1 -0
- package/dist/components/SimpleRadio/SimpleRadio.d.ts +13 -0
- package/dist/components/SimpleRadio/SimpleRadio.d.ts.map +1 -0
- package/dist/components/SimpleRadio/index.d.ts +3 -0
- package/dist/components/SimpleRadio/index.d.ts.map +1 -0
- package/dist/components/SubmitRow/SubmitRow.d.ts +13 -0
- package/dist/components/SubmitRow/SubmitRow.d.ts.map +1 -0
- package/dist/components/SubmitRow/index.d.ts +3 -0
- package/dist/components/SubmitRow/index.d.ts.map +1 -0
- package/dist/context/Components.d.ts +13 -0
- package/dist/context/Components.d.ts.map +1 -0
- package/dist/hooks/useEmitFilter.d.ts +3 -0
- package/dist/hooks/useEmitFilter.d.ts.map +1 -0
- package/dist/hooks/useExpand.d.ts +6 -0
- package/dist/hooks/useExpand.d.ts.map +1 -0
- package/dist/hooks/useValidate.d.ts +6 -0
- package/dist/hooks/useValidate.d.ts.map +1 -0
- package/dist/hooks/useWindow.d.ts +11 -0
- package/dist/hooks/useWindow.d.ts.map +1 -0
- package/dist/index.cjs.js +6 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +12 -1
- package/dist/index.es.js.map +1 -1
- package/dist/state/expandedItems.d.ts +10 -0
- package/dist/state/expandedItems.d.ts.map +1 -0
- package/dist/state/filter.d.ts +13 -0
- package/dist/state/filter.d.ts.map +1 -0
- package/dist/state/index.d.ts +7 -0
- package/dist/state/index.d.ts.map +1 -0
- package/dist/state/validate.d.ts +26 -0
- package/dist/state/validate.d.ts.map +1 -0
- package/dist/translations/dictionary.d.ts +65 -0
- package/dist/translations/dictionary.d.ts.map +1 -0
- package/dist/translations/i18n.d.ts +2 -0
- package/dist/translations/i18n.d.ts.map +1 -0
- package/dist/types/index.d.ts +137 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/utils/cleanSelected.d.ts +3 -0
- package/dist/utils/cleanSelected.d.ts.map +1 -0
- package/dist/utils/countPrice.d.ts +3 -0
- package/dist/utils/countPrice.d.ts.map +1 -0
- package/dist/utils/filter.d.ts +9 -0
- package/dist/utils/filter.d.ts.map +1 -0
- package/dist/utils/formatPrice.d.ts +8 -0
- package/dist/utils/formatPrice.d.ts.map +1 -0
- package/dist/utils/formatValues.d.ts +4 -0
- package/dist/utils/formatValues.d.ts.map +1 -0
- package/dist/utils/getContext.d.ts +4 -0
- package/dist/utils/getContext.d.ts.map +1 -0
- package/dist/utils/getProduct.d.ts +5 -0
- package/dist/utils/getProduct.d.ts.map +1 -0
- package/dist/utils/getSelCtxCntFromSelectedState.d.ts +4 -0
- package/dist/utils/getSelCtxCntFromSelectedState.d.ts.map +1 -0
- package/dist/utils/index.d.ts +9 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/validate.d.ts +4 -0
- package/dist/utils/validate.d.ts.map +1 -0
- package/dist/utils/validationMessagesToRefactor.d.ts +9 -0
- package/dist/utils/validationMessagesToRefactor.d.ts.map +1 -0
- package/dist/views/Modal/Modal.d.ts +8 -0
- package/dist/views/Modal/Modal.d.ts.map +1 -0
- package/dist/views/Modal/index.d.ts +3 -0
- package/dist/views/Modal/index.d.ts.map +1 -0
- package/dist/vite-env.d.ts +1 -0
- package/package.json +6 -4
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
value: number;
|
|
3
|
+
add: () => void;
|
|
4
|
+
subtract: () => void;
|
|
5
|
+
disabledSubtract?: boolean;
|
|
6
|
+
disabledAdd?: boolean;
|
|
7
|
+
size?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function Counter(props: Props): JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=Counter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Counter.d.ts","sourceRoot":"","sources":["Counter.tsx"],"names":[],"mappings":"AAAA,UAAU,KAAK;IACb,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,IAAI,CAAA;IACf,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,KAAK,eA6DnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,eAAe,OAAO,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DisplayState.d.ts","sourceRoot":"","sources":["DisplayState.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY,mBA6BxB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,eAAe,YAAY,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Attrs } from '../../types';
|
|
2
|
+
interface IGroupStateInfo {
|
|
3
|
+
productAttrs: Attrs;
|
|
4
|
+
selCnt: number;
|
|
5
|
+
qtyCnt: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const GroupStateInfo: (props: IGroupStateInfo) => JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=GroupStateInfo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupStateInfo.d.ts","sourceRoot":"","sources":["GroupStateInfo.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAEnC,UAAU,eAAe;IACvB,YAAY,EAAE,KAAK,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;CACf;AAED,eAAO,MAAM,cAAc,UAAW,eAAe,gBA2BpD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,eAAe,cAAc,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InfoLine.d.ts","sourceRoot":"","sources":["InfoLine.tsx"],"names":[],"mappings":"AAAA,UAAU,KAAK;IACb,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,EAAE,OAAO,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;CACb;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,KAAK,eAapC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,eAAe,QAAQ,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IProduct } from '@orderingstack/ordering-types';
|
|
2
|
+
export declare function MenuItemsDispatcher(props: {
|
|
3
|
+
productItems: IProduct[] | any;
|
|
4
|
+
nestedLvl?: number;
|
|
5
|
+
parentProduct: IProduct;
|
|
6
|
+
}): JSX.Element;
|
|
7
|
+
export interface MenuItemsUIProps {
|
|
8
|
+
productItems: IProduct[];
|
|
9
|
+
parentProduct: IProduct;
|
|
10
|
+
renderMenuItem: (item: IProduct) => JSX.Element;
|
|
11
|
+
}
|
|
12
|
+
export declare function MenuItemsDefaultUI(props: MenuItemsUIProps): JSX.Element;
|
|
13
|
+
//# sourceMappingURL=MenuItemsDispatcher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuItemsDispatcher.d.ts","sourceRoot":"","sources":["MenuItemsDispatcher.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgB,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AAMtE,OAAO,mBAAmB,CAAA;AAG1B,wBAAgB,mBAAmB,CAAC,KAAK,EAAE;IACzC,YAAY,EAAE,QAAQ,EAAE,GAAG,GAAG,CAAA;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,QAAQ,CAAA;CACxB,eAsCA;AAED,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,QAAQ,EAAE,CAAA;IACxB,aAAa,EAAE,QAAQ,CAAA;IACvB,cAAc,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,GAAG,CAAC,OAAO,CAAA;CAChD;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,gBAAgB,eA+CzD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAE3D,eAAe,mBAAmB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMenuItemsDispatcher.d.ts","sourceRoot":"","sources":["useMenuItemsDispatcher.ts"],"names":[],"mappings":"AAIA,wBAAgB,sBAAsB;;;EAcrC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IProduct } from '@orderingstack/ordering-types';
|
|
2
|
+
interface Props {
|
|
3
|
+
optionsItem: IProduct;
|
|
4
|
+
parentSelCtx: string;
|
|
5
|
+
nestedLvl: number;
|
|
6
|
+
parentKind: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const MenuOptions: (props: Props) => JSX.Element | null;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=MenuOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuOptions.d.ts","sourceRoot":"","sources":["MenuOptions.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AAKxD,UAAU,KAAK;IACb,WAAW,EAAE,QAAQ,CAAA;IACrB,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,WAAW,UAAW,KAAK,uBAuCvC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuOptionsDefaultUI.d.ts","sourceRoot":"","sources":["MenuOptionsDefaultUI.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAsB,MAAM,aAAa,CAAA;AAarE,eAAO,MAAM,oBAAoB,UAAW,mBAAmB,gBAuE9D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,eAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IProduct } from '@orderingstack/ordering-types';
|
|
2
|
+
export declare function useMenuOptions(product: IProduct, nestedLvl: number, parentKind: string, parentSelCtx: string): {
|
|
3
|
+
isFilterValidated: boolean;
|
|
4
|
+
selected: any;
|
|
5
|
+
isOnSubmitted: boolean;
|
|
6
|
+
selCnt: number;
|
|
7
|
+
qtyCnt: number;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=useMenuOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMenuOptions.d.ts","sourceRoot":"","sources":["useMenuOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AAYxD,wBAAgB,cAAc,CAC5B,OAAO,EAAE,QAAQ,EACjB,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM;;;;;;EAwCrB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IProduct, IProductAttrs } from '@orderingstack/ordering-types';
|
|
2
|
+
import { IMenuProductUIProps } from 'types';
|
|
3
|
+
interface Props {
|
|
4
|
+
product: IProduct;
|
|
5
|
+
parentAttrs: IProductAttrs;
|
|
6
|
+
nestedLvl: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const MenuProduct: (props: Props) => JSX.Element;
|
|
9
|
+
export declare const MenuProductDefaultUI: (props: IMenuProductUIProps) => JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=MenuProduct.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuProduct.d.ts","sourceRoot":"","sources":["MenuProduct.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAGvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAA;AAE3C,UAAU,KAAK;IACb,OAAO,EAAE,QAAQ,CAAA;IACjB,WAAW,EAAE,aAAa,CAAA;IAC1B,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,eAAO,MAAM,WAAW,UAAW,KAAK,gBA2DvC,CAAA;AAED,eAAO,MAAM,oBAAoB,UAAW,mBAAmB,gBAoF9D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,eAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IProduct, IProductAttrs } from '@orderingstack/ordering-types';
|
|
2
|
+
export declare function useMenuProduct(product: IProduct, parentAttrs: IProductAttrs): {
|
|
3
|
+
registerProps: import("react-hook-form").UseFormRegisterReturn<string>;
|
|
4
|
+
isRadio: boolean;
|
|
5
|
+
isCheckbox: boolean;
|
|
6
|
+
isCounter: boolean;
|
|
7
|
+
isDecrementEnabled: boolean;
|
|
8
|
+
isIncrementEnabled: any;
|
|
9
|
+
isChecked: boolean;
|
|
10
|
+
isCheckboxEnabled: any;
|
|
11
|
+
handleCounterIncrementQty: () => void;
|
|
12
|
+
handleCounterDecrementQty: () => void;
|
|
13
|
+
counterValue: number;
|
|
14
|
+
handleOnInputChange: (e: any) => void;
|
|
15
|
+
inputId: string;
|
|
16
|
+
radioInputValue: IProduct;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=useMenuProduct.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMenuProduct.d.ts","sourceRoot":"","sources":["useMenuProduct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAOvE,wBAAgB,cAAc,CAAC,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,aAAa;;;;;;;;;;;;6BA+C1C,GAAG;;;EAgCpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuProductRoot.d.ts","sourceRoot":"","sources":["MenuProductRoot.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,OAAO,CAAA;AAG/C,eAAO,MAAM,eAAe,UACnB,KAAK,uBAAuB,EAAE,UAAU,CAAC,gBAyBjD,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IMenuProductRootUIProps } from 'types';
|
|
2
|
+
export declare enum ModalSetSizeStage {
|
|
3
|
+
INIT = 0,
|
|
4
|
+
REFRESH = 1,
|
|
5
|
+
REFRESH_AGAIN = 2,
|
|
6
|
+
BLOCKED = 3
|
|
7
|
+
}
|
|
8
|
+
export declare function MenuProductRootDefaultShitUI(props: IMenuProductRootUIProps): JSX.Element;
|
|
9
|
+
//# sourceMappingURL=MenuProductRootDefaultShitUI.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuProductRootDefaultShitUI.d.ts","sourceRoot":"","sources":["MenuProductRootDefaultShitUI.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,OAAO,CAAA;AAU/C,oBAAY,iBAAiB;IAC3B,IAAI,IAAA;IACJ,OAAO,IAAA;IACP,aAAa,IAAA;IACb,OAAO,IAAA;CACR;AAED,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,uBAAuB,eAqK1E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,eAAe,eAAe,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
price: number;
|
|
3
|
+
addPlusBefore?: boolean;
|
|
4
|
+
size?: string;
|
|
5
|
+
showIfPriceZero?: boolean;
|
|
6
|
+
minPrice?: string;
|
|
7
|
+
hiddenIfPriceZero?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function Price(props: Props): JSX.Element | null;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=Price.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Price.d.ts","sourceRoot":"","sources":["Price.tsx"],"names":[],"mappings":"AAEA,UAAU,KAAK;IACb,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,KAAK,sBA4BjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,eAAe,KAAK,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductConfiguratorNew.d.ts","sourceRoot":"","sources":["ProductConfiguratorNew.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,yBAAyB,EAAE,MAAM,OAAO,CAAA;AAEjD,OAAO,aAAa,CAAA;AAEpB,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,yBAAyB,eAkFnE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IProduct } from '@orderingstack/ordering-types';
|
|
2
|
+
declare function useProductConfigurator(product: IProduct): {
|
|
3
|
+
encodedProduct: any;
|
|
4
|
+
initSelected: any;
|
|
5
|
+
filter: IProductStateFilter;
|
|
6
|
+
setIsOnSubmittedOnTrue: () => void;
|
|
7
|
+
getInvalidSelCtxArray: any;
|
|
8
|
+
productQuantity: number;
|
|
9
|
+
increaseProductQuantity: () => void;
|
|
10
|
+
decreaseProductQuantity: () => void;
|
|
11
|
+
};
|
|
12
|
+
export default useProductConfigurator;
|
|
13
|
+
//# sourceMappingURL=useProductConfigurator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useProductConfigurator.d.ts","sourceRoot":"","sources":["useProductConfigurator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AAKxD,iBAAS,sBAAsB,CAAC,OAAO,EAAE,QAAQ;;;;;;;;;EAoDhD;AAED,eAAe,sBAAsB,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { UseFormRegisterReturn } from 'react-hook-form';
|
|
2
|
+
import { IProduct } from '@orderingstack/ordering-types';
|
|
3
|
+
export interface Props {
|
|
4
|
+
product: IProduct;
|
|
5
|
+
inputId: string;
|
|
6
|
+
isDisabled: boolean;
|
|
7
|
+
registerProps: UseFormRegisterReturn;
|
|
8
|
+
size?: string;
|
|
9
|
+
children?: JSX.Element;
|
|
10
|
+
}
|
|
11
|
+
export declare const SimpleCheckbox: (props: Props) => JSX.Element;
|
|
12
|
+
//# sourceMappingURL=SimpleCheckbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SimpleCheckbox.d.ts","sourceRoot":"","sources":["SimpleCheckbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AAIvD,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AAExD,MAAM,WAAW,KAAK;IACpB,OAAO,EAAE,QAAQ,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,OAAO,CAAA;IACnB,aAAa,EAAE,qBAAqB,CAAA;IACpC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;CACvB;AACD,eAAO,MAAM,cAAc,UAAW,KAAK,gBAwD1C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAS,MAAM,kBAAkB,CAAA;AACxD,eAAe,cAAc,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { UseFormRegisterReturn } from 'react-hook-form';
|
|
2
|
+
import { IProduct } from '@orderingstack/ordering-types';
|
|
3
|
+
export interface Props {
|
|
4
|
+
product: IProduct;
|
|
5
|
+
inputId: string;
|
|
6
|
+
inputValue: string;
|
|
7
|
+
registerProps: UseFormRegisterReturn;
|
|
8
|
+
isChecked: boolean;
|
|
9
|
+
size?: string;
|
|
10
|
+
children?: JSX.Element;
|
|
11
|
+
}
|
|
12
|
+
export declare const SimpleRadio: (props: Props) => JSX.Element;
|
|
13
|
+
//# sourceMappingURL=SimpleRadio.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SimpleRadio.d.ts","sourceRoot":"","sources":["SimpleRadio.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AAEvD,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AAIxD,MAAM,WAAW,KAAK;IACpB,OAAO,EAAE,QAAQ,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,qBAAqB,CAAA;IACpC,SAAS,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;CACvB;AACD,eAAO,MAAM,WAAW,UAAW,KAAK,gBAoDvC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C,eAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
finalPrice: string;
|
|
3
|
+
isBackIcon?: boolean;
|
|
4
|
+
handleGoBack: () => void;
|
|
5
|
+
displayPriceFrom?: boolean;
|
|
6
|
+
productQuantity: number;
|
|
7
|
+
increaseProductQuantity: () => void;
|
|
8
|
+
decreaseProductQuantity: () => void;
|
|
9
|
+
handleOnSubmit: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function SubmitRow(props: Props): JSX.Element;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=SubmitRow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubmitRow.d.ts","sourceRoot":"","sources":["SubmitRow.tsx"],"names":[],"mappings":"AACA,OAAO,mBAAmB,CAAA;AAG1B,UAAU,KAAK;IACb,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,EAAE,MAAM,IAAI,CAAA;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,eAAe,EAAE,MAAM,CAAA;IACvB,uBAAuB,EAAE,MAAM,IAAI,CAAA;IACnC,uBAAuB,EAAE,MAAM,IAAI,CAAA;IACnC,cAAc,EAAE,MAAM,IAAI,CAAA;CAC3B;AACD,wBAAgB,SAAS,CAAC,KAAK,EAAE,KAAK,eAmFrC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC,eAAe,SAAS,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MenuItemsUIProps } from 'components/MenuItemsDispatcher/MenuItemsDispatcher';
|
|
3
|
+
import { MenuProductUIProps } from 'components/MenuProduct/MenuProduct';
|
|
4
|
+
import { IMenuOptionsUIProps, IMenuProductRootUIProps } from 'types';
|
|
5
|
+
export interface ComponentsContext {
|
|
6
|
+
MenuProductRootUI?: React.FC<IMenuProductRootUIProps>;
|
|
7
|
+
MenuItemsUI?: React.FC<MenuItemsUIProps>;
|
|
8
|
+
MenuOptionsUI?: React.FC<IMenuOptionsUIProps>;
|
|
9
|
+
MenuProductUI?: React.FC<MenuProductUIProps>;
|
|
10
|
+
}
|
|
11
|
+
export declare const ComponentsContext: React.Context<ComponentsContext | null>;
|
|
12
|
+
export declare function useComponents(): ComponentsContext;
|
|
13
|
+
//# sourceMappingURL=Components.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Components.d.ts","sourceRoot":"","sources":["Components.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oDAAoD,CAAA;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAA;AACvE,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,OAAO,CAAA;AAEpE,MAAM,WAAW,iBAAiB;IAChC,iBAAiB,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAAC,CAAA;IACrD,WAAW,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAAC,CAAA;IACxC,aAAa,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAAC,CAAA;IAC7C,aAAa,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAAC,CAAA;CAC7C;AAED,eAAO,MAAM,iBAAiB,yCAE7B,CAAA;AAED,wBAAgB,aAAa,sBAO5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useEmitFilter.d.ts","sourceRoot":"","sources":["useEmitFilter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AAMxD,wBAAgB,aAAa,CAAC,OAAO,EAAE,QAAQ,MAgB9C"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IProduct } from '@orderingstack/ordering-types';
|
|
2
|
+
export declare function useExpand(product: IProduct, parentSelCtx: string): {
|
|
3
|
+
isExpanded: any;
|
|
4
|
+
toggleExpanded: (selCtx: string, id: string, parentCtx: string) => void;
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=useExpand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useExpand.d.ts","sourceRoot":"","sources":["useExpand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AAIxD,wBAAgB,SAAS,CAAC,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM;;;EAWhE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useValidate.d.ts","sourceRoot":"","sources":["useValidate.ts"],"names":[],"mappings":"AAEA,wBAAgB,WAAW;;;;EAY1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWindow.d.ts","sourceRoot":"","sources":["useWindow.ts"],"names":[],"mappings":"AAEA,UAAU,KAAK;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAGD,eAAO,MAAM,SAAS,UAAW,KAAK;;;;;CAkCrC,CAAA"}
|