@ubnt/store.core 9.38.0-alpha.2 → 9.38.0-alpha.4

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 (101) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/lib/assets/attention.svg +5 -5
  3. package/lib/assets/attention2.svg +5 -5
  4. package/lib/assets/compact.svg +2 -2
  5. package/lib/assets/compact2.svg +2 -2
  6. package/lib/assets/plus2.svg +4 -1
  7. package/lib/assets/plus3.svg +1 -4
  8. package/lib/assets/ptz2.svg +2 -2
  9. package/lib/assets/ptz3.svg +2 -2
  10. package/lib/assets/udmPro.jpg +0 -0
  11. package/lib/assets/udmPro2.jpg +0 -0
  12. package/lib/assets/udmProMax.jpg +0 -0
  13. package/lib/assets/udmProMax2.jpg +0 -0
  14. package/lib/assets/udmProSpecial.jpg +0 -0
  15. package/lib/assets/udmProSpecial2.jpg +0 -0
  16. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.js +1 -1
  17. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.mjs +1 -1
  18. package/lib/components/FeaturesSection_deprecated/assets/plus.svg.js +1 -1
  19. package/lib/components/FeaturesSection_deprecated/assets/plus.svg.mjs +2 -2
  20. package/lib/components/Header/CartModalV2/Item/Item.js +3 -3
  21. package/lib/components/Header/CartModalV2/Item/Item.mjs +2 -2
  22. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +1 -1
  23. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
  24. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.js +1 -1
  25. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
  26. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +1 -1
  27. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +1 -1
  28. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
  29. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
  30. package/lib/constants/icons/generic/index.js +3 -3
  31. package/lib/constants/icons/generic/index.mjs +1 -1
  32. package/lib/constants/icons/generic/plus.svg.js +5 -5
  33. package/lib/constants/icons/generic/plus.svg.mjs +2 -2
  34. package/lib/constants/icons/options/colors/black.svg.js +5 -5
  35. package/lib/constants/icons/options/colors/index.js +3 -3
  36. package/lib/constants/icons/options/styles/black.svg.js +5 -5
  37. package/lib/constants/icons/options/styles/index.js +3 -3
  38. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
  39. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
  40. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
  41. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
  42. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
  43. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
  44. package/lib/constants/modelCompareData/assets/Consoles/udmPro.jpg.js +1 -1
  45. package/lib/constants/modelCompareData/assets/Consoles/udmPro.jpg.mjs +2 -2
  46. package/lib/constants/modelCompareData/assets/Consoles/udmProMax.jpg.js +1 -1
  47. package/lib/constants/modelCompareData/assets/Consoles/udmProMax.jpg.mjs +2 -2
  48. package/lib/constants/modelCompareData/assets/Consoles/udmProSpecial.jpg.js +1 -1
  49. package/lib/constants/modelCompareData/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
  50. package/lib/constants/modelCompareData/assets/compact.svg.js +1 -1
  51. package/lib/constants/modelCompareData/assets/compact.svg.mjs +2 -2
  52. package/lib/constants/modelCompareData/assets/product-list-assets/compact.svg.js +1 -1
  53. package/lib/constants/modelCompareData/assets/product-list-assets/compact.svg.mjs +2 -2
  54. package/lib/constants/modelCompareData/assets/product-list-assets/ptz.svg.js +1 -1
  55. package/lib/constants/modelCompareData/assets/product-list-assets/ptz.svg.mjs +2 -2
  56. package/lib/constants/modelCompareData/assets/ptz.svg.js +1 -1
  57. package/lib/constants/modelCompareData/assets/ptz.svg.mjs +2 -2
  58. package/lib/constants/modelCompareData/data/CloudGateways.js +9 -9
  59. package/lib/constants/modelCompareData/data/CloudGateways.mjs +6 -6
  60. package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Compact.js +1 -1
  61. package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Compact.mjs +1 -1
  62. package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Ptz.js +1 -1
  63. package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Ptz.mjs +1 -1
  64. package/lib/constants/modelCompareData/data/product-list-groups/compact.js +1 -1
  65. package/lib/constants/modelCompareData/data/product-list-groups/compact.mjs +1 -1
  66. package/lib/constants/modelCompareData/data/product-list-groups/ptz.js +1 -1
  67. package/lib/constants/modelCompareData/data/product-list-groups/ptz.mjs +1 -1
  68. package/lib/constants/modelCompareData/data/products/udmPro.js +1 -1
  69. package/lib/constants/modelCompareData/data/products/udmPro.mjs +1 -1
  70. package/lib/constants/modelCompareData/data/products/udmProMax.js +1 -1
  71. package/lib/constants/modelCompareData/data/products/udmProMax.mjs +1 -1
  72. package/lib/constants/modelCompareData/data/products/udmProSpecial.js +1 -1
  73. package/lib/constants/modelCompareData/data/products/udmProSpecial.mjs +1 -1
  74. package/lib/constants/optionIcons.js +6 -6
  75. package/lib/constants/optionIcons.mjs +4 -4
  76. package/package.json +1 -1
  77. package/lib/components/ModelCompareV4/CheckWithNote.d.ts +0 -3
  78. package/lib/components/ModelCompareV4/CompareTable.d.ts +0 -20
  79. package/lib/components/ModelCompareV4/CompareTable.styles.d.ts +0 -46
  80. package/lib/components/ModelCompareV4/CompareTableOverflowScrollButton.d.ts +0 -9
  81. package/lib/components/ModelCompareV4/EmptyState.d.ts +0 -3
  82. package/lib/components/ModelCompareV4/HeaderShadow.d.ts +0 -6
  83. package/lib/components/ModelCompareV4/ModelComparePropertyValueGridItem.d.ts +0 -8
  84. package/lib/components/ModelCompareV4/ModelCompareV4.d.ts +0 -18
  85. package/lib/components/ModelCompareV4/ProductGroupsGrid.d.ts +0 -7
  86. package/lib/components/ModelCompareV4/ProductList.d.ts +0 -8
  87. package/lib/components/ModelCompareV4/ProductList.styles.d.ts +0 -46
  88. package/lib/components/ModelCompareV4/ScrollGroup/ScrollGroup.d.ts +0 -15
  89. package/lib/components/ModelCompareV4/ScrollGroup/context.d.ts +0 -20
  90. package/lib/components/ModelCompareV4/ScrollGroup/index.d.ts +0 -4
  91. package/lib/components/ModelCompareV4/ScrollGroup/useScrollGroupItem.d.ts +0 -6
  92. package/lib/components/ModelCompareV4/ScrollGroup/useScrollGroupSetScroll.d.ts +0 -7
  93. package/lib/components/ModelCompareV4/ScrollGroup/useScrollGroupTo.d.ts +0 -9
  94. package/lib/components/ModelCompareV4/StickyGrid/StickyGrid.d.ts +0 -6
  95. package/lib/components/ModelCompareV4/StickyGrid/StickyGridBody.d.ts +0 -4
  96. package/lib/components/ModelCompareV4/StickyGrid/StickyGridHeader.d.ts +0 -10
  97. package/lib/components/ModelCompareV4/StickyGrid/StickyGridItem.d.ts +0 -9
  98. package/lib/components/ModelCompareV4/StickyGrid/StickyGridOverlay.d.ts +0 -8
  99. package/lib/components/ModelCompareV4/StickyGrid/context.d.ts +0 -18
  100. package/lib/components/ModelCompareV4/StickyGrid/index.d.ts +0 -5
  101. package/lib/components/ModelCompareV4/index.d.ts +0 -1
@@ -1,20 +0,0 @@
1
- import type { Dispatch, ReactNode, SetStateAction } from "react";
2
- import type React from "react";
3
- import type { ProductId, Section } from "../../constants/modelCompareData/types";
4
- export declare const CompareTable: ({ headerStickOffset, overlayTopOffset, showBuyButton, onLinkClick, linkToStoreTitleClick, additionalProductData, selectedProducts, setSelectedProducts, section, hasBeenObserved, }: {
5
- headerStickOffset?: (context: {
6
- maxImageHeight: number;
7
- }) => number;
8
- overlayTopOffset?: number;
9
- showBuyButton: boolean;
10
- onLinkClick?: (e: React.MouseEvent<HTMLElement>, href: string) => void;
11
- linkToStoreTitleClick?: boolean;
12
- additionalProductData?: {
13
- id: `${ProductId}`;
14
- addToCartButton?: ReactNode;
15
- }[];
16
- selectedProducts: ProductId[];
17
- setSelectedProducts: Dispatch<SetStateAction<ProductId[]>>;
18
- section: Section;
19
- hasBeenObserved: boolean;
20
- }) => JSX.Element | null;
@@ -1,46 +0,0 @@
1
- import type { LanguageDirectionType } from "../../contexts/MenuContext/utils";
2
- import { StickyGridItem } from "./StickyGrid";
3
- export declare const MOBILE_BREAKPOINT = 650;
4
- export declare const textSize: import("styled-components").FlattenSimpleInterpolation;
5
- export declare const PlaceholderGridItem: import("styled-components").StyledComponent<typeof StickyGridItem, import("styled-components").DefaultTheme, {}, never>;
6
- export declare const CenterPlaceholderGridItem: import("styled-components").StyledComponent<typeof StickyGridItem, import("styled-components").DefaultTheme, {}, never>;
7
- export declare const HeaderGridItem: import("styled-components").StyledComponent<typeof StickyGridItem, import("styled-components").DefaultTheme, {}, never>;
8
- export declare const EmptyHeaderGridItem: import("styled-components").StyledComponent<typeof StickyGridItem, import("styled-components").DefaultTheme, {}, never>;
9
- export declare const HeaderGridItemContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
10
- export declare const RemoveProductButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
11
- export declare const ProductMeta: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
12
- export declare const ProductTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
13
- export declare const ProductTitleLink: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../Button/Button.types").ButtonProps & {
14
- children?: import("react").ReactNode;
15
- } & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>>, import("styled-components").DefaultTheme, {}, never>;
16
- export declare const ProductDescription: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
17
- $maxWidth?: number;
18
- $direction: LanguageDirectionType;
19
- }, never>;
20
- export declare const ProductNote: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
21
- export declare const Badge: import("styled-components").StyledComponent<({ className, variant, children, }: import("react").PropsWithChildren<import("../Badge/Badge.types").BadgeProps>) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
22
- export declare const BadgeWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
23
- export declare const PropertyTitleGridItem: import("styled-components").StyledComponent<typeof StickyGridItem, import("styled-components").DefaultTheme, {}, never>;
24
- export declare const EmptyPropertyTitleGridItem: import("styled-components").StyledComponent<typeof StickyGridItem, import("styled-components").DefaultTheme, {}, never>;
25
- export declare const PropertyTitleGridItemContent: import("styled-components").StyledComponent<typeof StickyGridItem, import("styled-components").DefaultTheme, {}, never>;
26
- export declare const PropertyTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
27
- export declare const PropertyIcon: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
28
- export declare const ProductImage: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, {}, never>;
29
- export declare const ProductImageWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
30
- height: number;
31
- }, never>;
32
- export declare const PropertyTooltip: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
33
- export declare const PropertyTooltipContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
34
- export declare const TooltipIcon: import("styled-components").StyledComponent<({ src, width, height, renderedHeight, className, }: import("../StyleableSvgImage").StyleableSvgImageProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
35
- export declare const ButtonWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
36
- export declare const Button: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../Button/Button.types").ButtonProps & {
37
- children?: import("react").ReactNode;
38
- } & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>>, import("styled-components").DefaultTheme, {}, never>;
39
- export declare const ComingSoon: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../Button/Button.types").ButtonProps & {
40
- children?: import("react").ReactNode;
41
- } & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>>, import("styled-components").DefaultTheme, {}, never>;
42
- export declare const NotesWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
43
- export declare const Note: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
44
- export declare const FootnotesWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
45
- export declare const Footnote: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
46
- export declare const KitIncluded: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -1,9 +0,0 @@
1
- export declare function ModelCompareOverflowScrollButton({ isVisible, color, rotationDegrees, onClickColumnDiff, totalColumns, totalDeadSpace, isSmallScreen, }: {
2
- isVisible: boolean;
3
- color: string;
4
- rotationDegrees: number;
5
- onClickColumnDiff: number;
6
- totalDeadSpace: number;
7
- totalColumns: number;
8
- isSmallScreen: boolean;
9
- }): JSX.Element;
@@ -1,3 +0,0 @@
1
- export declare const EmptyState: ({ copy }: {
2
- copy: string;
3
- }) => JSX.Element;
@@ -1,6 +0,0 @@
1
- export declare function HeaderShadow({ width, leftColumnWidth, shadowLeftColumn, show, }: {
2
- width: number;
3
- leftColumnWidth: number;
4
- shadowLeftColumn: boolean;
5
- show: boolean;
6
- }): JSX.Element;
@@ -1,8 +0,0 @@
1
- import type { MutatedProperty, MutatedPropertyValue } from "../../constants/modelCompareData/types";
2
- export declare function ModelComparePropertyValueGridItem({ productProperty, includeProperty, property, isLastProduct, index, }: {
3
- productProperty: MutatedPropertyValue | undefined;
4
- includeProperty: boolean;
5
- property: MutatedProperty;
6
- isLastProduct: boolean;
7
- index: number;
8
- }): JSX.Element;
@@ -1,18 +0,0 @@
1
- import type { ReactNode } from "react";
2
- import type { ProductId, Section } from "../../constants/modelCompareData/types";
3
- export declare const SELECTED_PRODUCTS_LIMIT = 5;
4
- export declare const ModelCompareV4: ({ headerStickOffset, overlayTopOffset, showBuyButton, onLinkClick, linkToStoreTitleClick, additionalProductData, section, defaultSelectedProductsCount, }: {
5
- headerStickOffset?: (context: {
6
- maxImageHeight: number;
7
- }) => number;
8
- overlayTopOffset?: number;
9
- showBuyButton: boolean;
10
- onLinkClick?: (e: React.MouseEvent<HTMLElement>, href: string) => void;
11
- linkToStoreTitleClick?: boolean;
12
- additionalProductData?: {
13
- id: `${ProductId}`;
14
- addToCartButton?: ReactNode;
15
- }[];
16
- section: Section;
17
- defaultSelectedProductsCount?: number;
18
- }) => JSX.Element;
@@ -1,7 +0,0 @@
1
- import type { MutatedProduct } from "../../constants/modelCompareData/types";
2
- interface ProductGroupsGridProps {
3
- products: MutatedProduct[];
4
- showSecondaryProductGroup: boolean;
5
- }
6
- export declare const ProductGroupsGrid: ({ products, showSecondaryProductGroup, }: ProductGroupsGridProps) => JSX.Element;
7
- export {};
@@ -1,8 +0,0 @@
1
- import type { Dispatch, SetStateAction } from "react";
2
- import type { ProductId, Product as ProductType } from "../../constants/modelCompareData/types";
3
- export declare const ProductList: ({ products, selectedProducts, setSelectedProducts, hasBeenObserved, }: {
4
- products: ProductType[];
5
- selectedProducts: ProductId[];
6
- setSelectedProducts: Dispatch<SetStateAction<ProductId[]>>;
7
- hasBeenObserved: boolean;
8
- }) => JSX.Element;
@@ -1,46 +0,0 @@
1
- export declare const Wrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
- export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
3
- $isHovering: boolean;
4
- }, never>;
5
- export declare const ProductGroupProductListContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6
- export declare const GroupTabsContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
7
- export declare const GroupTabs: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8
- export declare const GroupTab: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
9
- $isActive: boolean;
10
- }, never>;
11
- export declare const GroupTabCopy: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
12
- export declare const ProductGroups: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
13
- $columns: number;
14
- }, never>;
15
- export declare const ProductGroupLabelContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
16
- $span: number;
17
- }, never>;
18
- export declare const ProductGroupLabel: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {
19
- $isActive: boolean;
20
- }, never>;
21
- export declare const ProductGroupLabelLineContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
22
- export declare const ProductGroupLabelLine: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
23
- $isActive: boolean;
24
- $playAnimation: boolean;
25
- }, never>;
26
- export declare const ProductList: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
27
- $columns: number;
28
- $isDragging: boolean;
29
- }, never>;
30
- export declare const Product: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
31
- $isActive: boolean;
32
- $groupIndex: number;
33
- $playAnimation: boolean;
34
- $groupLength: number;
35
- $hasBeenObserved: boolean;
36
- }, never>;
37
- export declare const Image: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, {}, never>;
38
- export declare const DescriptionButtonContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
39
- export declare const Name: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
40
- export declare const Description: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
41
- export declare const Button: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
42
- $isSelected: boolean;
43
- $disabled: boolean;
44
- }, never>;
45
- export declare const ButtonIcon: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
46
- export declare const ButtonCopy: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
@@ -1,15 +0,0 @@
1
- import type { ReactNode } from "react";
2
- /**
3
- * Provider for useScrollGroupItem() and useScrollGroupTo() functionality.
4
- * Unifies and syncs scrolling for all scrollGroupItems added with useScrollGroupItem()
5
- *
6
- * Inspired by
7
- * https://stackoverflow.com/a/70035102/14438753
8
- * https://stackoverflow.com/questions/56164315/how-to-describe-type-scroll-events
9
- */
10
- export declare function ScrollGroup({ children, onScrollItem, onAddItem, onResizeItem, }: {
11
- children: ReactNode;
12
- onScrollItem?: (element: HTMLElement, event: Event) => void;
13
- onAddItem?: (element: HTMLElement) => void;
14
- onResizeItem?: (element: HTMLElement) => void;
15
- }): JSX.Element;
@@ -1,20 +0,0 @@
1
- import type { MutableRefObject, RefObject } from "react";
2
- export declare const ScrollGroupContext: import("react").Context<ScrollGroupContextType | null>;
3
- type ScrollGroupContextType = {
4
- registerItem: (item: ScrollGroupItem) => () => void;
5
- scrollGroupItemsRef: RefObject<ScrollGroupItem[]>;
6
- currentManualScrollMetaRef: MutableRefObject<null | {
7
- target: {
8
- top?: number;
9
- left?: number;
10
- };
11
- }>;
12
- onScrollItem: ((element: HTMLElement, event: Event) => void) | undefined;
13
- onAddItem: ((element: HTMLElement) => void) | undefined;
14
- onResizeItem: ((element: HTMLElement) => void) | undefined;
15
- };
16
- export type ScrollGroupItem = {
17
- refObject: RefObject<HTMLElement>;
18
- };
19
- export declare function useScrollGroupContext(): ScrollGroupContextType;
20
- export {};
@@ -1,4 +0,0 @@
1
- export { ScrollGroup } from "./ScrollGroup";
2
- export { useScrollGroupContext } from "./context";
3
- export { useScrollGroupTo } from "./useScrollGroupTo";
4
- export { useScrollGroupItem } from "./useScrollGroupItem";
@@ -1,6 +0,0 @@
1
- import type { ScrollGroupItem } from "./context";
2
- /**
3
- * Register a ref for the scroll group. The element within the ref will have its
4
- * scroll synced with all other items in the group. Remember to memoize the item.
5
- */
6
- export declare function useScrollGroupItem(item: ScrollGroupItem): void;
@@ -1,7 +0,0 @@
1
- /**
2
- * Returns a function that sets the scroll position of all items directly.
3
- */
4
- export declare function useScrollGroupSetScroll(): (offset: {
5
- left?: number;
6
- top?: number;
7
- }) => void;
@@ -1,9 +0,0 @@
1
- /**
2
- * Programmatically scroll all items in the group. The arguments of the returned function is similar
3
- * to element.scrollTo(...args)
4
- */
5
- export declare function useScrollGroupTo(): (offset: {
6
- top?: number;
7
- left?: number;
8
- behavior?: "smooth";
9
- }) => void;
@@ -1,6 +0,0 @@
1
- import type { ReactNode } from "react";
2
- export declare function StickyGrid({ children, templateColumns, gap, }: {
3
- children: ReactNode;
4
- templateColumns: string;
5
- gap?: string;
6
- }): JSX.Element;
@@ -1,4 +0,0 @@
1
- import type { ReactNode } from "react";
2
- export declare function StickyGridBody({ children }: {
3
- children: ReactNode;
4
- }): JSX.Element;
@@ -1,10 +0,0 @@
1
- import type { ReactNode } from "react";
2
- import type { StickyGridContextType } from "./context";
3
- export declare function StickyGridHeader({ children, nonScrollChildren, stickOffset, }: {
4
- children: ReactNode;
5
- nonScrollChildren?: (context: {
6
- grid: StickyGridContextType;
7
- isStuck: boolean;
8
- }) => ReactNode;
9
- stickOffset?: number;
10
- }): JSX.Element;
@@ -1,9 +0,0 @@
1
- import type { ComponentProps } from "react";
2
- export declare function StickyGridItem({ stickX, ...props }: {
3
- stickY?: boolean;
4
- stickX?: boolean | string;
5
- } & ComponentProps<typeof StyledStickyGridItem>): JSX.Element;
6
- declare const StyledStickyGridItem: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
7
- stickX?: boolean | string;
8
- }, never>;
9
- export {};
@@ -1,8 +0,0 @@
1
- import type { ComponentProps, ReactNode } from "react";
2
- import type { StickyGridContextType } from "./context";
3
- export declare function StickyGridOverlay({ children, topOffset, ...props }: {
4
- children: ReactNode | ((context: StickyGridContextType) => ReactNode);
5
- topOffset?: number;
6
- } & Omit<ComponentProps<typeof StyledStickyGridOverlayWrap>, "children">): JSX.Element;
7
- declare const StyledStickyGridOverlayWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8
- export {};
@@ -1,18 +0,0 @@
1
- import type { RefObject } from "react";
2
- import type { ScrollGroupItem } from "../ScrollGroup/context";
3
- export declare const StickyGridContext: import("react").Context<StickyGridContextType | null>;
4
- export type StickyGridContextType = {
5
- templateColumns: string;
6
- gap: string | undefined;
7
- isAtMinX: boolean;
8
- isAtMaxX: boolean;
9
- setIsAtMaxX: (value: boolean) => void;
10
- setIsAtMinX: (value: boolean) => void;
11
- scrollTo: (offset: {
12
- top?: number | undefined;
13
- left?: number | undefined;
14
- behavior?: "smooth" | undefined;
15
- }) => void;
16
- scrollGroupItemsRef: RefObject<ScrollGroupItem[]>;
17
- };
18
- export declare function useStickyGrid(): StickyGridContextType;
@@ -1,5 +0,0 @@
1
- export { StickyGrid } from "./StickyGrid";
2
- export { StickyGridBody } from "./StickyGridBody";
3
- export { StickyGridHeader } from "./StickyGridHeader";
4
- export { StickyGridItem } from "./StickyGridItem";
5
- export { StickyGridOverlay } from "./StickyGridOverlay";
@@ -1 +0,0 @@
1
- export * from "./ModelCompareV4";