@nerdjs/sales-kit 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.
Files changed (78) hide show
  1. package/README.md +79 -0
  2. package/dist/cjs/components/calendar/calendar.d.ts +5 -0
  3. package/dist/cjs/components/calendar/day/day.d.ts +8 -0
  4. package/dist/cjs/components/calendar/day/index.d.ts +1 -0
  5. package/dist/cjs/components/calendar/day/typings.d.ts +16 -0
  6. package/dist/cjs/components/calendar/index.d.ts +2 -0
  7. package/dist/cjs/components/calendar/typings.d.ts +27 -0
  8. package/dist/cjs/components/customerFinder/customerFinder.d.ts +11 -0
  9. package/dist/cjs/components/customerFinder/index.d.ts +2 -0
  10. package/dist/cjs/components/customerFinder/optionTemplate.d.ts +6 -0
  11. package/dist/cjs/components/index.d.ts +4 -0
  12. package/dist/cjs/components/locationFinder/editLocation.d.ts +15 -0
  13. package/dist/cjs/components/locationFinder/index.d.ts +1 -0
  14. package/dist/cjs/components/locationFinder/locationByAddress.d.ts +18 -0
  15. package/dist/cjs/components/locationFinder/locationFinder.d.ts +7 -0
  16. package/dist/cjs/components/locationFinder/locationsFound.d.ts +12 -0
  17. package/dist/cjs/components/locationFinder/newLocationForm.d.ts +20 -0
  18. package/dist/cjs/components/locationFinder/optionTemplate.d.ts +8 -0
  19. package/dist/cjs/components/locationFinder/typings.d.ts +23 -0
  20. package/dist/cjs/components/salesQuote/components/aboutQuote/aboutQuote.d.ts +5 -0
  21. package/dist/cjs/components/salesQuote/components/aboutQuote/commodityDescription.d.ts +16 -0
  22. package/dist/cjs/components/salesQuote/components/aboutQuote/index.d.ts +2 -0
  23. package/dist/cjs/components/salesQuote/components/aboutQuote/quoteCheck.d.ts +6 -0
  24. package/dist/cjs/components/salesQuote/components/pallet/editPallet.d.ts +11 -0
  25. package/dist/cjs/components/salesQuote/components/pallet/palletChecker.d.ts +15 -0
  26. package/dist/cjs/components/salesQuote/components/pallet/palletCount.d.ts +13 -0
  27. package/dist/cjs/components/salesQuote/components/quoteCalendar/quoteCalendar.d.ts +24 -0
  28. package/dist/cjs/components/salesQuote/components/quoteResultAccordion/costBreakdown.d.ts +14 -0
  29. package/dist/cjs/components/salesQuote/components/quoteResultAccordion/marketCosts.d.ts +7 -0
  30. package/dist/cjs/components/salesQuote/components/quoteResultAccordion/quoteResultAccessorials.d.ts +13 -0
  31. package/dist/cjs/components/salesQuote/components/quoteResultAccordion/quoteResultAccordion.d.ts +17 -0
  32. package/dist/cjs/components/salesQuote/components/quoteSelect.d.ts +4 -0
  33. package/dist/cjs/components/salesQuote/components/quoteSummary/quoteSummary.d.ts +4 -0
  34. package/dist/cjs/components/salesQuote/components/quoteSummary/quoteSummaryBody.d.ts +12 -0
  35. package/dist/cjs/components/salesQuote/components/quoteSummary/quoteSummaryHeader.d.ts +10 -0
  36. package/dist/cjs/components/salesQuote/components/quoteSummary/typings.d.ts +47 -0
  37. package/dist/cjs/components/salesQuote/index.d.ts +4 -0
  38. package/dist/cjs/components/salesQuote/salesQuote.d.ts +17 -0
  39. package/dist/cjs/components/salesQuote/typings.d.ts +156 -0
  40. package/dist/cjs/components/shared/bootstrapDialogTitle/bootstrapDialogTitle.d.ts +11 -0
  41. package/dist/cjs/components/shared/bootstrapDialogTitle/index.d.ts +1 -0
  42. package/dist/cjs/components/shared/index.d.ts +2 -0
  43. package/dist/cjs/components/shared/loading/index.d.ts +1 -0
  44. package/dist/cjs/components/shared/loading/loading.d.ts +6 -0
  45. package/dist/cjs/components/stop/index.d.ts +2 -0
  46. package/dist/cjs/components/stop/menuAccessorials.d.ts +27 -0
  47. package/dist/cjs/components/stop/stop.d.ts +4 -0
  48. package/dist/cjs/components/stop/stopDetail.d.ts +5 -0
  49. package/dist/cjs/components/stop/stopDetailHeader.d.ts +6 -0
  50. package/dist/cjs/entities/customer/customer.d.ts +16 -0
  51. package/dist/cjs/entities/customer/helper.d.ts +5 -0
  52. package/dist/cjs/entities/customer/index.d.ts +1 -0
  53. package/dist/cjs/entities/index.d.ts +4 -0
  54. package/dist/cjs/entities/location/helper.d.ts +5 -0
  55. package/dist/cjs/entities/location/index.d.ts +2 -0
  56. package/dist/cjs/entities/location/location.d.ts +32 -0
  57. package/dist/cjs/entities/marketCosts/helper.d.ts +5 -0
  58. package/dist/cjs/entities/marketCosts/index.d.ts +2 -0
  59. package/dist/cjs/entities/marketCosts/marketCosts.d.ts +22 -0
  60. package/dist/cjs/entities/quote/helper.d.ts +5 -0
  61. package/dist/cjs/entities/quote/index.d.ts +2 -0
  62. package/dist/cjs/entities/quote/quote.d.ts +80 -0
  63. package/dist/cjs/index.d.ts +4 -0
  64. package/dist/cjs/index.js +3170 -0
  65. package/dist/cjs/index.js.map +1 -0
  66. package/dist/cjs/redux/calendar/calendarSlice.d.ts +12 -0
  67. package/dist/cjs/redux/calendar/index.d.ts +1 -0
  68. package/dist/cjs/redux/index.d.ts +3 -0
  69. package/dist/cjs/redux/nerdSalesKitReducer.d.ts +10 -0
  70. package/dist/cjs/redux/quote/index.d.ts +4 -0
  71. package/dist/cjs/redux/quote/quoteAction.d.ts +125 -0
  72. package/dist/cjs/redux/quote/quoteReducer.d.ts +28 -0
  73. package/dist/cjs/redux/quote/quoteSelector.d.ts +22 -0
  74. package/dist/cjs/redux/quote/quoteState.d.ts +124 -0
  75. package/dist/cjs/utils/constants.d.ts +5 -0
  76. package/dist/cjs/utils/helpers.d.ts +17 -0
  77. package/dist/cjs/utils/index.d.ts +2 -0
  78. package/package.json +93 -0
package/README.md ADDED
@@ -0,0 +1,79 @@
1
+ # Nerd Sales Kit User Guide
2
+
3
+
4
+ > This setup is meant for developing React component libraries (not apps!) that can be published to NPM. If you’re looking to build a React-based app, you should use `create-react-app`, `razzle`, `nextjs`, `gatsby`, or `react-static`.
5
+
6
+ > If you’re new to TypeScript and React, checkout [this handy cheatsheet](https://github.com/sw-yx/react-typescript-cheatsheet/)
7
+
8
+ ## Commands
9
+
10
+ The recommended workflow is to run the library in one terminal:
11
+
12
+ ```bash
13
+ npm start # or yarn start
14
+ ```
15
+
16
+ This builds to `/dist` and runs the project in watch mode so any edits you save inside `lib` causes a rebuild to `/dist`.
17
+
18
+ Then run the example inside another:
19
+
20
+ ```bash
21
+ cd example
22
+ npm i # or yarn to install dependencies
23
+ npm start # or yarn start
24
+ ```
25
+
26
+ The default example imports and live reloads whatever is in `/dist`.
27
+
28
+ To do a one-off build, use `npm run build` or `yarn build`.
29
+
30
+ To run tests, use `npm test` or `yarn test`.
31
+
32
+ ## Configuration
33
+
34
+ Code quality is set up for you with `prettier`. Adjust the respective fields in `package.json` accordingly.
35
+
36
+ ### Bundle analysis
37
+
38
+ Calculates the real cost of your library using [size-limit](https://github.com/ai/size-limit) with `npm run size` and visulize it with `npm run analyze`.
39
+
40
+ #### Setup Files
41
+
42
+ This is the folder structure we set up for you:
43
+
44
+ ```txt
45
+ /lib
46
+ index.tsx
47
+ .gitignore
48
+ package.json
49
+ README.md # EDIT THIS
50
+ tsconfig.json
51
+ ```
52
+
53
+ ### Rollup
54
+
55
+ TSDX uses [Rollup](https://rollupjs.org) as a bundler and generates multiple rollup configs for various module formats and build settings. See [Optimizations](#optimizations) for details.
56
+
57
+ ### TypeScript
58
+
59
+ `tsconfig.json` is set up to interpret `dom` and `esnext` types, as well as `react` for `jsx`. Adjust according to your needs.
60
+
61
+ ## Module Formats
62
+
63
+ CJS, ESModules, and UMD module formats are supported.
64
+
65
+ The appropriate paths are configured in `package.json` and `dist/index.js` accordingly. Please report if any issues are found.
66
+
67
+ ## Named Exports
68
+
69
+ Per Palmer Group guidelines, [always use named exports.](https://github.com/palmerhq/typescript#exports) Code split inside your React app instead of your React library.
70
+
71
+ ## Including Styles
72
+
73
+ There are many ways to ship styles, including with CSS-in-JS. TSDX has no opinion on this, configure how you like.
74
+
75
+ For vanilla CSS, you can include it at the root directory and add it to the `files` section in your `package.json`, so that it can be imported separately by your users and run through their bundler's loader.
76
+
77
+ ## Publishing to NPM
78
+
79
+ Use npm [npm](https://docs.npmjs.com/getting-started).
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { IQuoteCalendar } from "./typings";
3
+ import "./calendar.scss";
4
+ export declare const Calendar: (props: IQuoteCalendar) => JSX.Element;
5
+ export default Calendar;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { ICalendarDay } from "./typings";
3
+ import "./Day.scss";
4
+ /**
5
+ * @param props
6
+ */
7
+ export declare function Day(props: ICalendarDay): JSX.Element;
8
+ export default Day;
@@ -0,0 +1 @@
1
+ export * from "./day";
@@ -0,0 +1,16 @@
1
+ import * as Moment from "moment";
2
+ export interface ICalendarDay {
3
+ classes?: object;
4
+ theme?: object;
5
+ day: Moment.Moment;
6
+ selectable: boolean;
7
+ pickup: boolean;
8
+ selected?: boolean;
9
+ transit: boolean;
10
+ first: boolean;
11
+ last: boolean;
12
+ grouped: boolean;
13
+ color: string;
14
+ onSelect: (day: Moment.Moment) => void;
15
+ flexible: boolean;
16
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./calendar";
2
+ export * from "./typings";
@@ -0,0 +1,27 @@
1
+ export interface IserviceLevel {
2
+ id: string;
3
+ description: string;
4
+ serviceLevel: string;
5
+ baseRate: number;
6
+ extra: number;
7
+ fuelRate: number;
8
+ totalRate: number;
9
+ flexible: boolean;
10
+ from: string | Date;
11
+ to: string | Date;
12
+ grouped?: boolean;
13
+ }
14
+ export interface IQuoteCalendar {
15
+ serviceLevel: IserviceLevelWithIcon;
16
+ pickupDate: string | Date;
17
+ onSelect: ({ date, element, }: {
18
+ date: string;
19
+ element: IserviceLevel;
20
+ }) => void;
21
+ selected: unknown;
22
+ }
23
+ export interface IserviceLevelWithIcon extends IserviceLevel {
24
+ iconProps: {
25
+ [name: string]: string;
26
+ };
27
+ }
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { AnyAction, Dispatch } from "@reduxjs/toolkit";
3
+ /**
4
+ * @param props
5
+ */
6
+ export default function CustomerFinder(props: ICustomerFinder): JSX.Element;
7
+ interface ICustomerFinder {
8
+ dispatch: Dispatch<AnyAction>;
9
+ networkCompletionStack: Record<string, boolean>[];
10
+ }
11
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from "./customerFinder";
2
+ export * from "./optionTemplate";
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ export declare const RenderOptionTemplate: ({ renderOptionProps, option, }: {
3
+ renderOptionProps: React.HTMLAttributes<HTMLLIElement>;
4
+ option: any;
5
+ }) => JSX.Element;
6
+ export default RenderOptionTemplate;
@@ -0,0 +1,4 @@
1
+ export * from "./calendar";
2
+ export * from "./customerFinder";
3
+ export * from "./salesQuote";
4
+ export * from "./shared";
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { INewLocation } from "../../redux/quote";
3
+ import { INewLocationState } from "./newLocationForm";
4
+ export declare const editLocation: (props: IEditLocationProps) => JSX.Element;
5
+ export default editLocation;
6
+ interface IEditLocationProps {
7
+ isMobile: boolean;
8
+ openDialog: boolean;
9
+ handleClose: <T>(reason: string, item?: T | undefined) => void;
10
+ handleCallback: (disabled: boolean, newLocationData?: INewLocationState) => void;
11
+ locationData: Partial<INewLocation>;
12
+ onUpdateLocation: () => void;
13
+ onDeleteLocation?: () => void;
14
+ isDisabled: boolean;
15
+ }
@@ -0,0 +1 @@
1
+ export * from "./locationFinder";
@@ -0,0 +1,18 @@
1
+ /// <reference types="google.maps" />
2
+ /// <reference types="react" />
3
+ import { INewLocation } from "../../redux/quote";
4
+ import { AnyAction, Dispatch } from "@reduxjs/toolkit";
5
+ import Location from "../../entities/location/helper";
6
+ import { ServiceContextType } from "../salesQuote/typings";
7
+ export declare const LocationByAddress: (props: {
8
+ openDialog: boolean;
9
+ setOpenLocationsByAddress: (event: boolean) => void;
10
+ isDialogClosed: (reason: string, item?: Location) => void;
11
+ selectedLocation: google.maps.GeocoderResult;
12
+ dispatch: Dispatch<AnyAction>;
13
+ networkCompletionStack: Record<string, boolean>[];
14
+ locationState: ServiceContextType | null;
15
+ isMobile: boolean;
16
+ editLocation?: Location | Partial<INewLocation> | undefined;
17
+ }) => JSX.Element;
18
+ export default LocationByAddress;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { ILocationFinder } from "./typings";
3
+ /**
4
+ * @param props
5
+ */
6
+ export declare function LocationFinder(props: ILocationFinder): JSX.Element;
7
+ export default LocationFinder;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { Theme } from "@mui/material/styles";
3
+ /**
4
+ * @param props
5
+ */
6
+ export declare function LocationsFound<T>(props: Props<T>): JSX.Element;
7
+ interface Props<T> {
8
+ items: T[];
9
+ theme: Theme;
10
+ onLocationSelected?: (item: T) => void;
11
+ }
12
+ export {};
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * @param props
4
+ * @param props.isMobile
5
+ * @param props.handleCallback
6
+ * @param props.editLocationData
7
+ */
8
+ export declare function NewLocationForm(props: {
9
+ isMobile: boolean;
10
+ handleCallback: (disabled: boolean, newLocation?: INewLocationState) => void;
11
+ editLocationData?: any;
12
+ }): JSX.Element;
13
+ export interface INewLocationState {
14
+ name: string;
15
+ contact: string;
16
+ phone: string;
17
+ liftgate: boolean;
18
+ grocery: boolean;
19
+ liquor_permit: boolean;
20
+ }
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import Location from "../../entities/location/helper";
3
+ export declare const RenderOptionTemplate: ({ renderOptionProps, option, renderTemplateOptions, }: {
4
+ renderOptionProps: React.HTMLAttributes<HTMLLIElement>;
5
+ option: any;
6
+ renderTemplateOptions: Location[];
7
+ }) => JSX.Element;
8
+ export default RenderOptionTemplate;
@@ -0,0 +1,23 @@
1
+ /// <reference types="react" />
2
+ import { AnyAction, Dispatch } from "@reduxjs/toolkit";
3
+ import { INewLocation, IStateShippers } from "../../redux/quote";
4
+ import { GoogleServiceContextType } from "../salesQuote/salesQuote";
5
+ export interface WrapperProps<T> {
6
+ item: T;
7
+ renderItem: (item: T) => React.ReactNode | any;
8
+ handleClose: () => void;
9
+ }
10
+ export declare type CustomPick<T, K extends keyof T> = {
11
+ [P in K]: T[P];
12
+ };
13
+ export declare type newLocationPreview = CustomPick<INewLocation, "name" | "phone" | "contact" | "accessorialTags">;
14
+ export interface ILocationFinder {
15
+ stopType: string;
16
+ dispatch: Dispatch<AnyAction>;
17
+ networkCompletionStack: Record<string, boolean>[];
18
+ service: GoogleServiceContextType | null;
19
+ zipLocation: string;
20
+ onClickListItem?: (item: React.ReactNode) => void;
21
+ className?: string;
22
+ onLocationSelectedHandler?: (item: Partial<IStateShippers>) => void;
23
+ }
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { IQuoteObjProps } from "../../typings";
3
+ import { BoxProps } from "@mui/material";
4
+ export declare const AboutQuote: (props: IQuoteObjProps & BoxProps) => JSX.Element;
5
+ export default AboutQuote;
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import { SelectChangeEvent } from "@mui/material/Select";
3
+ import { ICommodityDescription } from "../../../../redux/quote";
4
+ declare type commodityDescription = {
5
+ commodityDescriptionAxeValue: string;
6
+ t: (key: string) => string | undefined;
7
+ isMobile: boolean;
8
+ commodityDescriptions: ICommodityDescription[];
9
+ commodity: string;
10
+ handleSelectChange: (event: SelectChangeEvent<string>, type: string) => void;
11
+ };
12
+ /**
13
+ * @param props
14
+ */
15
+ export default function CommodityDescription(props: commodityDescription): JSX.Element;
16
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from "./aboutQuote";
2
+ export * from "./quoteCheck";
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { nerdSalesQuoteCheckProps } from "../../typings";
3
+ /**
4
+ * @param props
5
+ */
6
+ export default function QuoteCheck(props: nerdSalesQuoteCheckProps): JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { ReactElement } from "react";
2
+ import { IPallet } from "../../typings";
3
+ interface IEditPallet {
4
+ fullScreen?: boolean;
5
+ open: boolean;
6
+ close: () => void;
7
+ pallet: IPallet;
8
+ save: (pallet: IPallet) => void;
9
+ }
10
+ declare const EditPallet: ({ fullScreen, open, close, pallet, save, }: IEditPallet) => ReactElement;
11
+ export default EditPallet;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { IPallet } from "../../typings";
3
+ import { ApiError } from "@nerdjs/nerd-network";
4
+ import { AnyAction, Dispatch } from "@reduxjs/toolkit";
5
+ import { IPalletUnits } from "../../../../redux/quote";
6
+ export declare const PalletChecker: (props: IPalletChecker) => JSX.Element;
7
+ interface IPalletChecker {
8
+ totalWeight: string;
9
+ palletDimensions: IPallet[];
10
+ dispatch: Dispatch<AnyAction>;
11
+ networkCompletionStack: Record<string, boolean>[];
12
+ units: IPalletUnits;
13
+ stateError: ApiError;
14
+ }
15
+ export default PalletChecker;
@@ -0,0 +1,13 @@
1
+ import { FocusEvent, KeyboardEvent, ChangeEvent } from "react";
2
+ import { IPallet } from "../../typings";
3
+ declare const PalletCount: ({ palletDimensions, tmpPallet, onChange, onKeyPress, onBlur, onDelete, onDimensionEdit, }: palletCount) => JSX.Element;
4
+ declare type palletCount = {
5
+ palletDimensions: IPallet[];
6
+ tmpPallet: IPallet;
7
+ onChange: (event: ChangeEvent<HTMLInputElement>) => void;
8
+ onKeyPress: (event: KeyboardEvent<HTMLInputElement>) => void;
9
+ onBlur: (event: FocusEvent<HTMLInputElement>) => void;
10
+ onDelete: (i: number) => void;
11
+ onDimensionEdit: (i: number) => void;
12
+ };
13
+ export default PalletCount;
@@ -0,0 +1,24 @@
1
+ import React from "react";
2
+ import "./QuoteCalendar.scss";
3
+ import QuoteRequest from "../../../../entities/quote/helper";
4
+ import { IselectedDateRangeState } from "../../../../redux/calendar";
5
+ import { AnyAction, Dispatch } from "@reduxjs/toolkit";
6
+ import { AppConfigServiceLevelsType } from "../../typings";
7
+ /**
8
+ * @param props
9
+ * @param props.setIsDateSelected
10
+ * @param props.isDateSelected
11
+ * @param props.responseState
12
+ * @param props.selectedDateRange
13
+ * @param props.dispatch
14
+ * @param props.appConfigServiceLevels
15
+ */
16
+ export declare function QuoteCalendar(props: {
17
+ setIsDateSelected: (value: React.SetStateAction<boolean>) => void;
18
+ isDateSelected: boolean;
19
+ responseState: QuoteRequest;
20
+ selectedDateRange: IselectedDateRangeState;
21
+ dispatch: Dispatch<AnyAction>;
22
+ appConfigServiceLevels: AppConfigServiceLevelsType;
23
+ }): JSX.Element;
24
+ export default QuoteCalendar;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { AnyAction, Dispatch } from "@reduxjs/toolkit";
3
+ /**
4
+ * @param root0
5
+ * @param root0.id
6
+ * @param root0.dispatch
7
+ * @param root0.networkCompletionStack
8
+ */
9
+ declare function CostBreakdown({ id, dispatch, networkCompletionStack, }: {
10
+ id: number;
11
+ dispatch: Dispatch<AnyAction>;
12
+ networkCompletionStack: Record<string, boolean>[];
13
+ }): JSX.Element;
14
+ export default CostBreakdown;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import MarketCosts from "../../../../entities/marketCosts/helper";
3
+ /**
4
+ * @param marketCosts
5
+ */
6
+ declare function MarketCostsComponent(marketCosts: MarketCosts): JSX.Element;
7
+ export default MarketCostsComponent;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * @param accessorials
4
+ */
5
+ declare function QuoteResultAccessorials(accessorials: quoteAccessorials[]): JSX.Element;
6
+ declare type quoteAccessorials = {
7
+ accessorialId: number;
8
+ costAmount: number;
9
+ name: string;
10
+ stopId: number;
11
+ stopName: string;
12
+ };
13
+ export default QuoteResultAccessorials;
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ import { AnyAction, Dispatch } from "@reduxjs/toolkit";
3
+ import QuoteRequest from "../../../../entities/quote/helper";
4
+ import MarketCosts from "../../../../entities/marketCosts/helper";
5
+ /**
6
+ * @param props
7
+ * @param props.responseState
8
+ * @param props.networkCompletionStack
9
+ * @param props.dispatch
10
+ * @param props.marketCosts
11
+ */
12
+ export default function QuoteResultAccorion(props: {
13
+ responseState: QuoteRequest;
14
+ networkCompletionStack: Record<string, boolean>[];
15
+ dispatch: Dispatch<AnyAction>;
16
+ marketCosts: MarketCosts;
17
+ }): JSX.Element;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IQuoteSelect } from "../typings";
3
+ export declare const QuoteSelect: ({ isMobile, selectOptions, onChange, value, labelId, inputLabel, required, }: IQuoteSelect) => JSX.Element;
4
+ export default QuoteSelect;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IQuoteSummary } from "./typings";
3
+ declare const QuoteSummary: (props: IQuoteSummary) => JSX.Element;
4
+ export default QuoteSummary;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { quoteSummaryBodyProps } from "./typings";
3
+ declare const defaultProps: {
4
+ dateSelected: string;
5
+ };
6
+ export declare const QuoteSummaryBody: {
7
+ ({ totalMiles, rowsSummaryAbout, stops, serviceLevelSelected, dateSelected, appConfigServiceLevels, }: quoteSummaryBodyProps & typeof defaultProps): JSX.Element;
8
+ defaultProps: {
9
+ dateSelected: string;
10
+ };
11
+ };
12
+ export {};
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { IserviceLevel } from "../../../calendar/typings";
3
+ interface IProps {
4
+ serviceLevelIconColor: {
5
+ [name: string]: string;
6
+ };
7
+ serviceLevelSelected: IserviceLevel;
8
+ }
9
+ declare const QuoteSummaryHeader: ({ serviceLevelIconColor, serviceLevelSelected, }: IProps) => JSX.Element;
10
+ export default QuoteSummaryHeader;
@@ -0,0 +1,47 @@
1
+ import QuoteRequest from "../../../../entities/quote/helper";
2
+ import { IserviceLevel } from "../../../calendar/typings";
3
+ import { AppConfigServiceLevelsType } from "../../typings";
4
+ export interface IQuoteSummary {
5
+ dateSelected: string;
6
+ serviceLevelSelected: IserviceLevel;
7
+ quoteResponse: QuoteRequest;
8
+ t: any;
9
+ appConfigServiceLevels: AppConfigServiceLevelsType;
10
+ }
11
+ export declare type quoteSummaryBodyProps = {
12
+ totalMiles: number | undefined;
13
+ rowsSummaryAbout: rowSummary[];
14
+ stops: stop[];
15
+ serviceLevelSelected: IserviceLevel;
16
+ appConfigServiceLevels: AppConfigServiceLevelsType;
17
+ };
18
+ export declare type rowSummary = {
19
+ id: number;
20
+ service: string;
21
+ mode: string;
22
+ commodityDescription: string;
23
+ totalWeight: number;
24
+ freightClass: string;
25
+ feet: number;
26
+ pallets: number;
27
+ miles: number;
28
+ };
29
+ export declare type stop = {
30
+ id: number;
31
+ name: string;
32
+ type: string;
33
+ date: string;
34
+ city: string;
35
+ state: string;
36
+ zip: string;
37
+ address: {
38
+ locationId: number | null;
39
+ line1: string;
40
+ line2?: string;
41
+ city: string;
42
+ state: string;
43
+ zip: string;
44
+ latitude: number;
45
+ longitude: number;
46
+ };
47
+ };
@@ -0,0 +1,4 @@
1
+ export * from "./salesQuote";
2
+ export * from "./components/aboutQuote";
3
+ export * from "../locationFinder";
4
+ export * from "../stop";
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ import { salesQuoteProps, ServiceContextType } from "./typings";
3
+ export declare const ServiceContext: import("react").Context<ServiceContextType | null>;
4
+ /**
5
+ * Nerd Sales Quote view
6
+ *
7
+ * @param props
8
+ * @param props.theme
9
+ * @param props.dispatch
10
+ * @param props.nerdSalesKitState
11
+ * @param props.t
12
+ * @param props.networkCompletionStack
13
+ * @param props.isCustomer
14
+ * @param props.appConfigServiceLevels
15
+ * @returns {React.ReactElement<any>} return as a function component
16
+ */
17
+ export declare const SalesQuote: ({ theme, dispatch, nerdSalesKitState, t, networkCompletionStack, isCustomer, appConfigServiceLevels, }: salesQuoteProps) => JSX.Element;