@goodhood-web/nebenan-base 1.3.0-development.8 → 1.3.0

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 (32) hide show
  1. package/index.d.ts +17 -14
  2. package/index.js +102 -60
  3. package/index.mjs +14749 -4992
  4. package/lib/ComplaintModal/ComplaintModal.d.ts +4 -0
  5. package/lib/ComplaintModal/ComplaintModal.types.d.ts +5 -0
  6. package/lib/DesktopNavbarSearchField/DesktopNavbarSearchField.types.d.ts +1 -1
  7. package/lib/LayoutLoadingSpinner/LayoutLoadingSpinner.d.ts +2 -0
  8. package/lib/LayoutLoadingSpinner/assets/index.d.ts +3 -0
  9. package/lib/MainLayout/MainLayout.d.ts +2 -2
  10. package/lib/MainLayout/MainLayout.types.d.ts +2 -1
  11. package/lib/MobileLayout/MobileLayout.types.d.ts +3 -3
  12. package/lib/MobileLayout/components/MobileHeaderBar/MobileHeaderBar.types.d.ts +4 -4
  13. package/lib/PointOfInterest/PointOfInterest.d.ts +4 -0
  14. package/lib/PointOfInterest/PointOfInterest.types.d.ts +14 -0
  15. package/lib/PointOfInterest/assets/index.d.ts +5 -0
  16. package/lib/PointOfInterest/components/POIPlaceholder.d.ts +4 -0
  17. package/lib/PointOfInterest/components/POIPlaceholder.types.d.ts +4 -0
  18. package/lib/{ReactionSelection → Reactions/ReactionSelection}/ReactionSelection.types.d.ts +3 -3
  19. package/lib/Reactions/ReactionStack/ReactionStack.d.ts +4 -0
  20. package/lib/{ReactionStack → Reactions/ReactionStack}/ReactionStack.types.d.ts +2 -1
  21. package/lib/{ReactionStack → Reactions/ReactionStack}/components/ReactionItem/ReactionItem.types.d.ts +1 -1
  22. package/lib/{ReactionStack → Reactions/ReactionStack}/components/ReactionPill/ReactionPill.d.ts +2 -2
  23. package/lib/{ReactionStack → Reactions/ReactionStack}/components/ReactionPill/ReactionPill.type.d.ts +2 -2
  24. package/lib/{ReactionTabList → Reactions/ReactionTabList}/ReactionTabList.types.d.ts +1 -1
  25. package/lib/Reactions/utils.d.ts +5 -0
  26. package/package.json +1 -1
  27. package/style.css +1 -1
  28. package/lib/ReactionStack/ReactionStack.d.ts +0 -4
  29. /package/lib/{ReactionSelection → Reactions/ReactionSelection}/ReactionSelection.d.ts +0 -0
  30. /package/lib/{ReactionStack → Reactions/ReactionStack}/components/ReactionItem/ReactionItem.d.ts +0 -0
  31. /package/lib/{ReactionStack → Reactions/ReactionStack}/index.d.ts +0 -0
  32. /package/lib/{ReactionTabList → Reactions/ReactionTabList}/ReactionTabList.d.ts +0 -0
@@ -0,0 +1,4 @@
1
+ import { ComplaintModalProps } from './ComplaintModal.types';
2
+
3
+ declare const ComplaintModal: ({ handleModalClick, open, subjectId }: ComplaintModalProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default ComplaintModal;
@@ -0,0 +1,5 @@
1
+ export interface ComplaintModalProps {
2
+ handleModalClick: () => void;
3
+ open: boolean;
4
+ subjectId: number;
5
+ }
@@ -1,5 +1,5 @@
1
- import { ForwardedRef } from 'react';
2
1
  import { UseInputParameters } from '@mui/base/useInput';
2
+ import { ForwardedRef } from 'react';
3
3
 
4
4
  export interface DesktopNavbarSearchFieldProps extends UseInputParameters {
5
5
  className?: string;
@@ -0,0 +1,2 @@
1
+ declare const LayoutLoadingSpinner: () => import("react/jsx-runtime").JSX.Element;
2
+ export default LayoutLoadingSpinner;
@@ -0,0 +1,3 @@
1
+ import { default as HouseLogo } from './house_logo.svg?react';
2
+
3
+ export { HouseLogo };
@@ -1,5 +1,5 @@
1
- import { MainLayoutProps } from './MainLayout.types';
2
1
  import { PropsWithChildren } from 'react';
2
+ import { MainLayoutProps } from './MainLayout.types';
3
3
 
4
- declare const MainLayout: ({ children, desktop, mobile, }: PropsWithChildren<MainLayoutProps>) => import("react/jsx-runtime").JSX.Element;
4
+ declare const MainLayout: ({ children, desktop, keepLoading, mobile, }: PropsWithChildren<MainLayoutProps>) => import("react/jsx-runtime").JSX.Element;
5
5
  export default MainLayout;
@@ -1,7 +1,8 @@
1
- import { MobileLayoutProps } from '../MobileLayout/MobileLayout.types';
2
1
  import { DesktopLayoutTwoColumnProps } from '../DesktopLayoutTwoColumn/DesktopLayoutTwoColumn.types';
2
+ import { MobileLayoutProps } from '../MobileLayout/MobileLayout.types';
3
3
 
4
4
  export interface MainLayoutProps {
5
5
  desktop: Omit<DesktopLayoutTwoColumnProps, 'children'>;
6
+ keepLoading?: boolean;
6
7
  mobile: Omit<MobileLayoutProps, 'children'>;
7
8
  }
@@ -1,7 +1,7 @@
1
- import { MobileHeaderBarProps } from './components/MobileHeaderBar/MobileHeaderBar.types';
2
- import { NavBarProps } from '../../../../ui/src/lib/NavBar/NavBar.types';
3
- import { IconButtonProps } from '../../../../ui/src/lib/IconButton/IconButton.types';
4
1
  import { ReactElement, ReactNode } from 'react';
2
+ import { IconButtonProps } from '../../../../ui/src/lib/IconButton/IconButton.types';
3
+ import { NavBarProps } from '../../../../ui/src/lib/NavBar/NavBar.types';
4
+ import { MobileHeaderBarProps } from './components/MobileHeaderBar/MobileHeaderBar.types';
5
5
 
6
6
  export interface MobileLayoutProps {
7
7
  action?: ReactElement<IconButtonProps>;
@@ -1,8 +1,8 @@
1
- import { TypographyProps } from '../../../../../../ui/src/lib/Typography/Typography.types';
2
- import { NotificationBubbleProps } from '../../../../../../ui/src/lib/NotificationBubble/NotificationBubble.types';
3
- import { IconButtonProps } from '../../../../../../ui/src/lib/IconButton/IconButton.types';
4
- import { IconProps } from '../../../../../../ui/src/lib/Icon/Icon.types';
5
1
  import { ReactElement } from 'react';
2
+ import { IconProps } from '../../../../../../ui/src/lib/Icon/Icon.types';
3
+ import { IconButtonProps } from '../../../../../../ui/src/lib/IconButton/IconButton.types';
4
+ import { NotificationBubbleProps } from '../../../../../../ui/src/lib/NotificationBubble/NotificationBubble.types';
5
+ import { TypographyProps } from '../../../../../../ui/src/lib/Typography/Typography.types';
6
6
 
7
7
  export interface MobileHeaderBarProps {
8
8
  as?: Exclude<TypographyProps['as'], 'h1'>;
@@ -0,0 +1,4 @@
1
+ import { PointOfInterestProps } from './PointOfInterest.types';
2
+
3
+ declare const PointOfInterest: ({ address, badgeType, heartComponent, hood, imageSrc, isBlocked, onClick, onRemove, placeholderType, subcategory, title, }: PointOfInterestProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default PointOfInterest;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ export type PointOfInterestProps = {
3
+ address?: string;
4
+ badgeType?: 'localBiz' | 'localOrg';
5
+ heartComponent?: React.ReactNode;
6
+ hood?: string;
7
+ imageSrc?: string;
8
+ isBlocked?: boolean;
9
+ onClick?: () => void;
10
+ onRemove?: () => void;
11
+ placeholderType?: 'business' | 'organisation' | 'special_place';
12
+ subcategory?: string;
13
+ title: string;
14
+ };
@@ -0,0 +1,5 @@
1
+ import { default as Business } from './business.svg?react';
2
+ import { default as Organisation } from './organisation.svg?react';
3
+ import { default as SpecialPlace } from './special_place.svg?react';
4
+
5
+ export { SpecialPlace, Business, Organisation };
@@ -0,0 +1,4 @@
1
+ import { POIPlaceholderProps } from './POIPlaceholder.types';
2
+
3
+ declare const POIPlaceholder: ({ type }: POIPlaceholderProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default POIPlaceholder;
@@ -0,0 +1,4 @@
1
+ export type PoiPlaceholderIconTypes = 'business' | 'organisation' | 'special_place';
2
+ export type POIPlaceholderProps = {
3
+ type: PoiPlaceholderIconTypes;
4
+ };
@@ -1,7 +1,7 @@
1
- import { Reaction } from '../ReactionStack/ReactionStack.types';
2
- import { ReactionType } from '../../../../api/src/lib/types/reactions';
3
- import { ReactElement } from 'react';
4
1
  import { PopupPlacement } from '@mui/base';
2
+ import { ReactElement } from 'react';
3
+ import { ReactionType } from '../../../../../api/src/lib/types/reactions';
4
+ import { Reaction } from '../ReactionStack/ReactionStack.types';
5
5
 
6
6
  export interface ReactionSelectionProps {
7
7
  buttonContent: ReactElement;
@@ -0,0 +1,4 @@
1
+ import { ReactionStackProps } from './ReactionStack.types';
2
+
3
+ declare const ReactionStack: ({ activeReaction, expanded, limit, onClick, reactions, size, stack, }: ReactionStackProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default ReactionStack;
@@ -1,8 +1,9 @@
1
- import { ReactionType } from '../../../../api/src/lib/types/reactions';
1
+ import { ReactionType } from '../../../../../api/src/lib/types/reactions';
2
2
 
3
3
  export interface ReactionStackProps {
4
4
  activeReaction?: ReactionType;
5
5
  expanded?: boolean;
6
+ limit?: number;
6
7
  onClick?: (value: ReactionType) => void;
7
8
  reactions: Reaction[];
8
9
  size?: 'small' | 'big';
@@ -1,4 +1,4 @@
1
- import { ReactionType } from '../../../../../../api/src/lib/types/reactions';
1
+ import { ReactionType } from '../../../../../../../api/src/lib/types/reactions';
2
2
 
3
3
  export type ReactionItemProps = {
4
4
  activeReaction?: ReactionType;
@@ -1,6 +1,6 @@
1
- import { ReactionPillProps } from './ReactionPill.type';
2
- import { ReactionType } from '../../../../../../api/src/lib/types/reactions';
3
1
  import { ReactElement } from 'react';
2
+ import { ReactionType } from '../../../../../../../api/src/lib/types/reactions';
3
+ import { ReactionPillProps } from './ReactionPill.type';
4
4
 
5
5
  export declare const renderReaction: (type: ReactionType) => ReactElement;
6
6
  declare const ReactionPill: ({ className, count, expanded, onClick, reaction, selected, size, stack, }: ReactionPillProps) => ReactElement;
@@ -1,5 +1,5 @@
1
- import { BaseButtonProps } from '../../../../../../ui/src/lib/Button/Button.types';
2
- import { ReactionType } from '../../../../../../api/src/lib/types/reactions';
1
+ import { ReactionType } from '../../../../../../../api/src/lib/types/reactions';
2
+ import { BaseButtonProps } from '../../../../../../../ui/src/lib/Button/Button.types';
3
3
 
4
4
  export interface ReactionPillProps extends BaseButtonProps {
5
5
  className?: string;
@@ -1,4 +1,4 @@
1
- import { ReactionUser, ReactionsGetPayload, ReactionsGetResponse } from '../../../../api/src/lib/types/reactions';
1
+ import { ReactionUser, ReactionsGetPayload, ReactionsGetResponse } from '../../../../../api/src/lib/types/reactions';
2
2
 
3
3
  export interface ReactionTabListProps {
4
4
  closeText?: string;
@@ -0,0 +1,5 @@
1
+ import { ReactionType } from '../../../../api/src/lib/types/reactions';
2
+ import { Reaction } from './ReactionStack/ReactionStack.types';
3
+
4
+ export declare const sortReactions: <T extends Reaction>(reactions: T[]) => T[];
5
+ export declare const isReactionType: (key: string) => key is ReactionType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/nebenan-base",
3
- "version": "1.3.0-development.8",
3
+ "version": "1.3.0",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "publishConfig": {