@jetshop/ui 5.17.0-alpha.877568c0 → 5.17.0-alpha.89df5ca2

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.
@@ -12,5 +12,5 @@ interface CountriesProps {
12
12
  /**
13
13
  * Maps over the current channel's countries and displays them.
14
14
  */
15
- export declare function CountriesInput({ id, name, onChange, onFocus, countries, ...rest }: CountriesProps): JSX.Element;
15
+ export declare function CountriesInput({ id, name, onChange, onFocus, countries, ...rest }: CountriesProps): React.JSX.Element;
16
16
  export {};
package/Auth/LogOut.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { Customer } from '@jetshop/core/types';
2
2
  import { ApolloClient } from 'apollo-client';
3
- import { ButtonHTMLAttributes } from 'react';
3
+ import React, { ButtonHTMLAttributes } from 'react';
4
4
  export interface LogOutProps extends ButtonHTMLAttributes<HTMLButtonElement> {
5
5
  updateCustomer: (customer?: Customer) => void;
6
6
  client: ApolloClient<any>;
7
7
  updateLoggedIn(token?: string): void;
8
8
  }
9
- declare function LogOut(props: LogOutProps): JSX.Element;
9
+ declare function LogOut(props: LogOutProps): React.JSX.Element;
10
10
  export default LogOut;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { Product, Route } from '@jetshop/core/types';
3
3
  export interface BreadcrumbProps {
4
4
  hideLast?: boolean;
@@ -11,4 +11,4 @@ export interface BreadcrumbProps {
11
11
  export interface BreadcrumbsProps {
12
12
  hideLast: boolean;
13
13
  }
14
- export default function Breadcrumbs(props: BreadcrumbProps): JSX.Element;
14
+ export default function Breadcrumbs(props: BreadcrumbProps): React.JSX.Element;
package/Breakpoints.d.ts CHANGED
@@ -7,6 +7,6 @@ export type BreakpointHelperProps = {
7
7
  export type BreakpointBetweenProps = BreakpointHelperProps & {
8
8
  breakpoints: string[];
9
9
  };
10
- export declare const Above: ({ breakpoint, render, children }: BreakpointHelperProps) => JSX.Element;
11
- export declare function Below({ breakpoint, render, children }: BreakpointHelperProps): JSX.Element;
12
- export declare function Between({ children, render, breakpoints }: BreakpointBetweenProps): JSX.Element;
10
+ export declare const Above: ({ breakpoint, render, children }: BreakpointHelperProps) => React.JSX.Element;
11
+ export declare function Below({ breakpoint, render, children }: BreakpointHelperProps): React.JSX.Element;
12
+ export declare function Between({ children, render, breakpoints }: BreakpointBetweenProps): React.JSX.Element;
package/Button/Button.js CHANGED
@@ -40,7 +40,7 @@ const BaseButton = styled('button') `
40
40
  const BaseLink = styled('a') `
41
41
  ${buttonStyles};
42
42
  text-decoration: none;
43
- @media (--above.md) {
43
+ @media (--above-md) {
44
44
  max-width: 300px;
45
45
  }
46
46
 
@@ -46,5 +46,5 @@ interface ImageProps extends ImageParameters {
46
46
  className?: string;
47
47
  badges?: React.ReactElement<any>;
48
48
  }
49
- declare function B2BImage({ modifiedDate, ...props }: PropsWithChildren<ImageProps>): JSX.Element;
49
+ declare function B2BImage({ modifiedDate, ...props }: PropsWithChildren<ImageProps>): React.JSX.Element;
50
50
  export default B2BImage;
@@ -2,4 +2,4 @@ import React from 'react';
2
2
  /** Display this if JS is disabled. */
3
3
  export declare const Fallback: ({ children }: {
4
4
  children: React.ReactElement<{}>;
5
- }) => JSX.Element;
5
+ }) => React.JSX.Element;
@@ -48,5 +48,5 @@ interface ImageProps extends ImageParameters {
48
48
  className?: string;
49
49
  badges?: React.ReactElement<any>;
50
50
  }
51
- declare function FlightImage(props: ImageProps): JSX.Element;
51
+ declare function FlightImage(props: ImageProps): React.JSX.Element;
52
52
  export default FlightImage;
@@ -1,2 +1,6 @@
1
+ /**
2
+ * deprecate in favor of @jetshop/core/boot/NetworkStatusNotifier
3
+ * @deprecated deprecated in favor of @jetshop/core/boot/NetworkStatusNotifier
4
+ */
1
5
  declare const link: import("react-apollo-network-status/dist/src/ApolloLinkNetworkStatus").default, useApolloNetworkStatus: (options?: import("react-apollo-network-status/dist/src/useApolloNetworkStatus").UseApolloNetworkStatusOptions) => import("react-apollo-network-status").NetworkStatus;
2
6
  export { link, useApolloNetworkStatus };
@@ -1,4 +1,8 @@
1
1
  import { createNetworkStatusNotifier } from 'react-apollo-network-status';
2
+ /**
3
+ * deprecate in favor of @jetshop/core/boot/NetworkStatusNotifier
4
+ * @deprecated deprecated in favor of @jetshop/core/boot/NetworkStatusNotifier
5
+ */
2
6
  const { link, useApolloNetworkStatus } = createNetworkStatusNotifier();
3
7
  export { link, useApolloNetworkStatus };
4
8
  //# sourceMappingURL=NetworkStatusNotifier.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NetworkStatusNotifier.js","sourceRoot":"","sources":["NetworkStatusNotifier.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAE1E,MAAM,EAAE,IAAI,EAAE,sBAAsB,EAAE,GAAG,2BAA2B,EAAE,CAAC;AAEvE,OAAO,EAAE,IAAI,EAAE,sBAAsB,EAAE,CAAC"}
1
+ {"version":3,"file":"NetworkStatusNotifier.js","sourceRoot":"","sources":["NetworkStatusNotifier.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAE1E;;;GAGG;AACH,MAAM,EAAE,IAAI,EAAE,sBAAsB,EAAE,GAAG,2BAA2B,EAAE,CAAC;AAEvE,OAAO,EAAE,IAAI,EAAE,sBAAsB,EAAE,CAAC"}
@@ -24,5 +24,5 @@ export interface RecursiveTreeRender {
24
24
  /** Execute to recursively render subcategories in place */
25
25
  renderSubnav: React.ReactNode[];
26
26
  }
27
- declare const _default: React.ComponentClass<Pick<RecursiveTreeProps & RouteChildrenProps<{}, H.LocationState>, keyof RecursiveTreeProps>, any> & import("react-router").WithRouterStatics<React.FC<RecursiveTreeProps & RouteChildrenProps<{}, H.LocationState>>>;
27
+ declare const _default: React.ComponentClass<Pick<RecursiveTreeProps & RouteChildrenProps<{}, unknown>, keyof RecursiveTreeProps>, any> & import("react-router").WithRouterStatics<React.FC<RecursiveTreeProps & RouteChildrenProps<{}, unknown>>>;
28
28
  export default _default;
@@ -5,6 +5,6 @@ export interface FlyoutTargetProps {
5
5
  children: (args: Partial<ModalState>) => React.ReactNode;
6
6
  }
7
7
  export declare class FlyoutTarget extends React.Component<FlyoutTargetProps, any> {
8
- render(): JSX.Element;
8
+ render(): React.JSX.Element;
9
9
  }
10
10
  export default FlyoutTarget;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  declare const ModalProvider: ({ children }: {
3
3
  children: React.ReactNode;
4
- }) => JSX.Element;
4
+ }) => React.JSX.Element;
5
5
  export default ModalProvider;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const ModalRoot: () => JSX.Element;
1
+ import * as React from 'react';
2
+ declare const ModalRoot: () => React.JSX.Element;
3
3
  export default ModalRoot;
@@ -14,7 +14,7 @@ type PreOrderDatesType = {
14
14
  value: string;
15
15
  name: string;
16
16
  };
17
- export declare const PreOrderDropdown: ({ values, selectedDate, selectDate }: PreOrderDropdownType) => JSX.Element;
18
- export declare const PreOrderInput: ({ value, selectDate, callback, className }: PreOrderInputType) => JSX.Element;
17
+ export declare const PreOrderDropdown: ({ values, selectedDate, selectDate }: PreOrderDropdownType) => React.JSX.Element;
18
+ export declare const PreOrderInput: ({ value, selectDate, callback, className }: PreOrderInputType) => React.JSX.Element;
19
19
  declare const _default: React.ComponentType<unknown>;
20
20
  export default _default;
@@ -4,5 +4,5 @@ export declare const Table: import("linaria/lib/StyledMeta").StyledMeta & React.
4
4
  }>;
5
5
  declare const ProductSpecifications: ({ fields, ...rest }: {
6
6
  fields: any;
7
- }) => JSX.Element;
7
+ }) => React.JSX.Element;
8
8
  export default ProductSpecifications;
@@ -4,5 +4,5 @@ export type routeType = 'sortOrderChange' | 'filterChange' | 'paginationChange'
4
4
  export interface ScrollRestoreProps {
5
5
  ignoreForRouteTypes?: routeType[];
6
6
  }
7
- declare const _default: import("react").ComponentClass<Pick<ScrollRestoreProps & RouteComponentProps<{}, import("react-router").StaticContext, H.LocationState>, "ignoreForRouteTypes">, any> & import("react-router").WithRouterStatics<import("react").FC<ScrollRestoreProps & RouteComponentProps<{}, import("react-router").StaticContext, H.LocationState>>>;
7
+ declare const _default: import("react").ComponentClass<Pick<ScrollRestoreProps & RouteComponentProps<{}, import("react-router").StaticContext, unknown>, "ignoreForRouteTypes">, any> & import("react-router").WithRouterStatics<import("react").FC<ScrollRestoreProps & RouteComponentProps<{}, import("react-router").StaticContext, unknown>>>;
8
8
  export default _default;
@@ -41,5 +41,5 @@ export interface SearchFieldState {
41
41
  /** Whether the search field is open */
42
42
  isOpen: boolean;
43
43
  }
44
- declare const _default: React.ComponentClass<Pick<SearchFieldProps & RouteComponentProps<{}, import("react-router").StaticContext, H.LocationState>, keyof SearchFieldProps>, any> & import("react-router").WithRouterStatics<(props: SearchFieldProps & RouteComponentProps<{}, import("react-router").StaticContext, H.LocationState>) => JSX.Element>;
44
+ declare const _default: React.ComponentClass<Pick<SearchFieldProps & RouteComponentProps<{}, import("react-router").StaticContext, unknown>, keyof SearchFieldProps>, any> & import("react-router").WithRouterStatics<(props: SearchFieldProps & RouteComponentProps<{}, import("react-router").StaticContext, unknown>) => React.JSX.Element>;
45
45
  export default _default;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export declare const PageOf: ({ page, pages }: {
3
3
  page: number;
4
4
  pages: number;
5
- }) => JSX.Element;
5
+ }) => React.JSX.Element;
@@ -11,6 +11,6 @@ export declare const SearchMetaWrapper: import("linaria/lib/StyledMeta").StyledM
11
11
  declare class SearchMeta extends React.PureComponent<ISearchMetaProps & {
12
12
  className?: string;
13
13
  }, any> {
14
- render(): JSX.Element;
14
+ render(): React.JSX.Element;
15
15
  }
16
16
  export default SearchMeta;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { Product, Category } from '@jetshop/core/types';
3
3
  export interface SuggestedTermProps {
4
4
  className?: string;
@@ -12,5 +12,5 @@ interface SuggestedProduct extends SuggestedTermProps {
12
12
  interface SuggestedCategory extends SuggestedTermProps {
13
13
  item: Category;
14
14
  }
15
- declare const SuggestedTerm: (props: SuggestedProduct | SuggestedCategory) => JSX.Element;
15
+ declare const SuggestedTerm: (props: SuggestedProduct | SuggestedCategory) => React.JSX.Element;
16
16
  export default SuggestedTerm;
@@ -72,7 +72,7 @@ const InnerWrapper = styled('div') `
72
72
  border-top: 0;
73
73
  overflow-y: auto;
74
74
  max-height: 470px;
75
- @media (--below.sm) {
75
+ @media (--below-sm) {
76
76
  max-height: 100vh;
77
77
  }
78
78
  > button:first-child {
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
2
1
  import { ProductSortOrder } from '@jetshop/core/types';
2
+ import * as React from 'react';
3
3
  export interface SortOrderDropdownProps {
4
4
  sortOrders: ProductSortOrder[];
5
5
  }
6
6
  declare function SortOrderDropdown({ sortOrders }: {
7
7
  sortOrders: ProductSortOrder[];
8
- }): JSX.Element;
8
+ }): React.JSX.Element;
9
9
  export default SortOrderDropdown;
@@ -11,6 +11,11 @@ export interface StockStatusContainerProps {
11
11
  product: Product;
12
12
  }
13
13
  declare function StockStatusContainer({ product, children }: StockStatusContainerProps): React.ReactNode;
14
+ /**
15
+ * deprectaed
16
+ * @deprecated deprecated in favor of jetshop/core/hooks/useStockStatus
17
+ * @returns StockStatusContainerRender
18
+ */
14
19
  declare function useStockStatus(product: Product | ProductVariant): StockStatusContainerRender;
15
20
  export default StockStatusContainer;
16
21
  export { useStockStatus };
@@ -17,6 +17,11 @@ function StockStatusContainer({ product, children }) {
17
17
  stockDate
18
18
  });
19
19
  }
20
+ /**
21
+ * deprectaed
22
+ * @deprecated deprecated in favor of jetshop/core/hooks/useStockStatus
23
+ * @returns StockStatusContainerRender
24
+ */
20
25
  function useStockStatus(product) {
21
26
  const stockStatus = product === null || product === void 0 ? void 0 : product.stockStatus;
22
27
  if (!stockStatus) {
@@ -1 +1 @@
1
- {"version":3,"file":"StockStatusContainer.js","sourceRoot":"","sources":["StockStatusContainer.tsx"],"names":[],"mappings":"AAoBA,SAAS,SAAS,CAChB,YAAyB;IAEzB,OAAO,YAAY,CAAC,OAAO;QACzB,CAAC,CAAC,SAAS;QACX,CAAC,CAAC,YAAY,CAAC,wBAAwB;YACvC,CAAC,CAAC,gBAAgB;YAClB,CAAC,CAAC,YAAY,CAAC;AACnB,CAAC;AAED,SAAS,oBAAoB,CAAC,EAC5B,OAAO,EACP,QAAQ,EACkB;IAC1B,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,SAAS,EAAE,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC;IAE9E,IAAI,CAAC,MAAM;QAAE,OAAO,IAAI,CAAC;IAEzB,4BAA4B;IAC5B,OAAO,QAAQ,CAAC;QACd,MAAM;QACN,IAAI;QACJ,gBAAgB;QAChB,SAAS;KACV,CAAC,CAAC;AACL,CAAC;AAED,SAAS,cAAc,CACrB,OAAiC;IAEjC,MAAM,WAAW,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,CAAC;IAEzC,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO,CAAC,IAAI,CAAC,kDAAkD,CAAC,CAAC;QACjE,OAAO;YACL,MAAM,EAAE,IAAI;YACZ,IAAI,EAAE,IAAI;YACV,gBAAgB,EAAE,IAAI;YACtB,SAAS,EAAE,IAAI;SAChB,CAAC;KACH;IAED,OAAO;QACL,MAAM,EAAE,SAAS,CAAC,WAAW,CAAC;QAC9B,IAAI,EAAE,WAAW,CAAC,IAAI,IAAI,IAAI;QAC9B,gBAAgB,EAAE,WAAW,CAAC,gBAAgB;QAC9C,SAAS,EAAE,WAAW,CAAC,SAAS;KACjC,CAAC;AACJ,CAAC;AAED,eAAe,oBAAoB,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"StockStatusContainer.js","sourceRoot":"","sources":["StockStatusContainer.tsx"],"names":[],"mappings":"AAo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ca2",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "**/*.js",
@@ -63,5 +63,8 @@
63
63
  "peerDependencies": {
64
64
  "react": "^16.9.0",
65
65
  "react-dom": "^16.9.0"
66
+ },
67
+ "resolutions": {
68
+ "linaria": "2.3.1"
66
69
  }
67
70
  }