@goodhood-web/nebenan-base 3.4.0-development.6 → 3.4.0-development.60

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 (142) hide show
  1. package/index.d.ts +7 -1
  2. package/index.js +107 -103
  3. package/index.mjs +21418 -13909
  4. package/lib/ComplaintModal/ComplaintModal.types.d.ts +1 -1
  5. package/lib/DesktopLayoutTwoColumn/DesktopLayoutTwoColumn.d.ts +1 -1
  6. package/lib/DesktopLayoutTwoColumn/DesktopLayoutTwoColumn.types.d.ts +5 -2
  7. package/lib/Feed/FeedItem/Marketplace/InteractiveElements/InteractiveCardHeader.d.ts +1 -1
  8. package/lib/Feed/FeedItem/Marketplace/MarketplaceActions/MarketplaceActions.types.d.ts +1 -1
  9. package/lib/Feed/FeedItem/Marketplace/MarketplaceActions/components/BuyerActions/BuyerActions.d.ts +1 -1
  10. package/lib/Feed/FeedItem/Marketplace/MarketplaceBody/MarketplaceBody.types.d.ts +1 -1
  11. package/lib/Feed/FeedItem/Marketplace/MarketplaceDetailPage/MarketplaceDetailPage.d.ts +1 -1
  12. package/lib/Feed/FeedItem/Marketplace/MarketplaceDetailPage/MarketplaceDetailPage.types.d.ts +4 -2
  13. package/lib/Feed/FeedItem/Marketplace/MarketplaceDetailPage/components/CardAggregator/CardAggregator.d.ts +1 -1
  14. package/lib/Feed/FeedItem/Marketplace/MarketplaceDetailPage/components/MarketplaceContent/MarketplaceContent.d.ts +3 -1
  15. package/lib/Feed/FeedItem/Marketplace/MarketplaceMoreOptions/ComplaintModalComponent/ComplaintModalComponent.d.ts +1 -1
  16. package/lib/Feed/FeedItem/Marketplace/MarketplaceMoreOptions/InteractivePostInfo/utils.d.ts +1 -1
  17. package/lib/Feed/FeedItem/Marketplace/MarketplaceMoreOptions/MarketplaceMoreOptions.types.d.ts +1 -1
  18. package/lib/Feed/FeedItem/Reactions/PostReactions/PostReactions.d.ts +3 -0
  19. package/lib/Feed/FeedItem/Reactions/PostReactions/PostReactions.types.d.ts +13 -0
  20. package/lib/Feed/FeedItem/Reactions/PostReactions/utils.d.ts +8 -0
  21. package/lib/Feed/FeedItem/Reactions/ReplyReactions/Like/Like.d.ts +3 -0
  22. package/lib/Feed/FeedItem/Reactions/ReplyReactions/Like/Like.types.d.ts +21 -0
  23. package/lib/Feed/FeedItem/Reactions/ReplyReactions/Like/ReactionLabel/ReactionLabel.d.ts +7 -0
  24. package/lib/Feed/FeedItem/Reactions/ReplyReactions/ReplyReactions.d.ts +3 -0
  25. package/lib/Feed/FeedItem/Reactions/ReplyReactions/ReplyReactions.types.d.ts +16 -0
  26. package/lib/Feed/FeedItem/utils.d.ts +2 -2
  27. package/lib/Feed/GridFeed/GridFeed.types.d.ts +1 -1
  28. package/lib/Feed/utils.d.ts +1 -1
  29. package/lib/Forms/DynamicForm/DynamicForm.d.ts +1 -1
  30. package/lib/Forms/Fields/CodeField/CodeField.d.ts +3 -0
  31. package/lib/Forms/Fields/CodeField/CodeField.types.d.ts +9 -0
  32. package/lib/Forms/Fields/FormButton/FormButtonProps.d.ts +16 -0
  33. package/lib/Forms/Fields/FormCodeField.d.ts +5 -0
  34. package/lib/Forms/Fields/FormContentCreatorTile.d.ts +6 -0
  35. package/lib/Forms/Fields/FormGenderSelector.d.ts +5 -0
  36. package/lib/Forms/Fields/FormHeader/FormHeader.d.ts +3 -0
  37. package/lib/Forms/Fields/FormHeader/FormHeader.types.d.ts +10 -0
  38. package/lib/Forms/Fields/FormHeader/components/PhoneNumber.d.ts +4 -0
  39. package/lib/Forms/Fields/FormNameAbbreviation.d.ts +7 -0
  40. package/lib/Forms/Fields/FormPasswordField.d.ts +5 -0
  41. package/lib/Forms/Fields/FormPhoneInput.d.ts +5 -0
  42. package/lib/Forms/Fields/FormSelectInput.d.ts +12 -0
  43. package/lib/Forms/Fields/FormTextInput.d.ts +1 -1
  44. package/lib/Forms/Fields/GenderSelector/GenderSelector.d.ts +3 -0
  45. package/lib/Forms/Fields/GenderSelector/GenderSelector.types.d.ts +19 -0
  46. package/lib/Forms/Fields/GenderSelector/GenderSelector.utils.d.ts +4 -0
  47. package/lib/Forms/Fields/NameAbbreviation/NameAbbreviation.d.ts +3 -0
  48. package/lib/Forms/Fields/NameAbbreviation/NameAbbreviation.types.d.ts +11 -0
  49. package/lib/Forms/Fields/PasswordField/PasswordField.d.ts +3 -0
  50. package/lib/Forms/Fields/PasswordField/PasswordField.types.d.ts +16 -0
  51. package/lib/Forms/Fields/PasswordField/utils.d.ts +1 -0
  52. package/lib/Forms/Fields/PhoneInput/PhoneInput.d.ts +3 -0
  53. package/lib/Forms/Fields/PhoneInput/PhoneInput.types.d.ts +16 -0
  54. package/lib/Forms/Fields/PhoneInput/util.d.ts +153 -0
  55. package/lib/Forms/Fields/SelectInput/SelectInput.d.ts +3 -0
  56. package/lib/Forms/Fields/SelectInput/SelectInput.types.d.ts +31 -0
  57. package/lib/Forms/Fields/SelectInput/components/Input/Input.d.ts +3 -0
  58. package/lib/Forms/Fields/SelectInput/components/Input/Input.type.d.ts +5 -0
  59. package/lib/Forms/Fields/SelectInput/components/OptionsList/OptionsList.d.ts +3 -0
  60. package/lib/Forms/Fields/SelectInput/components/OptionsList/OptionsList.types.d.ts +11 -0
  61. package/lib/Forms/Fields/SelectInput/utils.d.ts +4 -0
  62. package/lib/Forms/Fields/index.d.ts +3 -1
  63. package/lib/Forms/Fields/utils.d.ts +1 -0
  64. package/lib/Forms/Form/Form.d.ts +1 -1
  65. package/lib/Forms/Form/Form.types.d.ts +12 -3
  66. package/lib/Forms/Form/utils/parseApiErrors.d.ts +5 -0
  67. package/lib/Forms/Form/utils/utils.d.ts +4 -0
  68. package/lib/Forms/Form.store.d.ts +7 -0
  69. package/lib/Forms/GridForm/GridForm.d.ts +1 -1
  70. package/lib/Forms/Wizard/Wizard.d.ts +1 -1
  71. package/lib/Forms/Wizard/Wizard.types.d.ts +70 -4
  72. package/lib/Forms/Wizard/WizardContext.d.ts +8 -1
  73. package/lib/Forms/Wizard/useWizard.d.ts +6 -1
  74. package/lib/Gallery/Gallery.d.ts +3 -0
  75. package/lib/Gallery/Gallery.types.d.ts +18 -0
  76. package/lib/Grids/Grid/Grid.types.d.ts +6 -5
  77. package/lib/Grids/Grid/GridItem/GridItem.d.ts +1 -1
  78. package/lib/Grids/Grid/GridItem/GridItem.types.d.ts +1 -0
  79. package/lib/ImageAttachment/ImageAttachment.d.ts +3 -0
  80. package/lib/ImageAttachment/ImageAttachment.types.d.ts +10 -0
  81. package/lib/ImageAttachment/components/CollageImageAttachment/CollageImageAttachment.d.ts +2 -0
  82. package/lib/ImageAttachment/components/PlaceholderImageAttachment/PlaceholderImageAttachment.d.ts +7 -0
  83. package/lib/ImageAttachment/components/SwiperImageAttachment/SwiperImageAttachment.d.ts +2 -0
  84. package/lib/ImageCropper/ImageCropper.d.ts +3 -0
  85. package/lib/{ImagePicker → ImageCropper}/ImageCropper.types.d.ts +1 -2
  86. package/lib/ImageCropper/util.d.ts +6 -0
  87. package/lib/MobileLayout/MobileLayout.types.d.ts +1 -0
  88. package/lib/ModalGallery/ModalGallery.d.ts +3 -0
  89. package/lib/ModalGallery/ModalGallery.types.d.ts +9 -0
  90. package/lib/ModalGallery/utils.d.ts +28 -0
  91. package/lib/Reactions/ReactionSelection/ReactionSelection.types.d.ts +1 -1
  92. package/lib/Reactions/ReactionStack/ReactionStack.types.d.ts +3 -7
  93. package/lib/Reactions/ReactionStack/components/ReactionItem/ReactionItem.types.d.ts +5 -4
  94. package/lib/Reactions/ReactionStack/components/ReactionPill/ReactionPill.d.ts +2 -2
  95. package/lib/Reactions/ReactionStack/components/ReactionPill/ReactionPill.type.d.ts +5 -2
  96. package/lib/Reactions/ReactionTabList/ReactionTabList.types.d.ts +1 -1
  97. package/lib/Reactions/utils.d.ts +1 -1
  98. package/lib/Register/Register.d.ts +3 -0
  99. package/lib/Register/Register.types.d.ts +4 -0
  100. package/lib/Register/components/PrivacyInfoModal/PrivacyInfoModal.d.ts +3 -0
  101. package/lib/Register/components/PrivacyInfoModal/PrivacyInfoModal.types.d.ts +3 -0
  102. package/lib/Registration/Registration.d.ts +3 -0
  103. package/lib/Registration/Registration.store.d.ts +4 -0
  104. package/lib/Registration/Registration.types.d.ts +17 -0
  105. package/lib/Registration/RegistrationCard/RegistrationCard.d.ts +9 -0
  106. package/lib/Registration/RegistrationFieldMappings/RegistrationFieldMappings.d.ts +3 -0
  107. package/lib/Registration/RegistrationForm/FieldMappings/FieldMappings.d.ts +3 -0
  108. package/lib/Registration/RegistrationForm/RegistrationForm.d.ts +3 -0
  109. package/lib/Registration/RegistrationForm/RegistrationForm.types.d.ts +5 -0
  110. package/lib/Registration/RegistrationForm/Steps/Address.d.ts +2 -0
  111. package/lib/Registration/RegistrationForm/Steps/Email.d.ts +3 -0
  112. package/lib/Registration/RegistrationForm/Steps/Name.d.ts +2 -0
  113. package/lib/Registration/RegistrationForm/Steps/index.d.ts +4 -0
  114. package/lib/Registration/RegistrationForm/network.d.ts +4 -0
  115. package/lib/Registration/VerificationForm/FieldMappings/FieldMappings.d.ts +3 -0
  116. package/lib/Registration/VerificationForm/Steps/Gps.d.ts +3 -0
  117. package/lib/Registration/VerificationForm/Steps/InviteCode.d.ts +3 -0
  118. package/lib/Registration/VerificationForm/Steps/Methods.d.ts +3 -0
  119. package/lib/Registration/VerificationForm/Steps/PostalCode.d.ts +3 -0
  120. package/lib/Registration/VerificationForm/Steps/PostalCodeRequested.d.ts +2 -0
  121. package/lib/Registration/VerificationForm/Steps/Sms.d.ts +3 -0
  122. package/lib/Registration/VerificationForm/Steps/SmsCode.d.ts +3 -0
  123. package/lib/Registration/VerificationForm/Steps/index.d.ts +7 -0
  124. package/lib/Registration/VerificationForm/VerificationForm.d.ts +3 -0
  125. package/lib/Registration/VerificationForm/VerificationForm.types.d.ts +10 -0
  126. package/lib/Registration/VerificationForm/data.d.ts +553 -0
  127. package/lib/Registration/VerificationForm/network.d.ts +7 -0
  128. package/lib/Registration/VerificationForm/utils.d.ts +67 -0
  129. package/lib/Registration/components/MandatoryEmailConfirmation/MandatoryEmailConfirmation.d.ts +3 -0
  130. package/lib/Registration/components/MandatoryEmailConfirmation/MandatoryEmailConfirmation.types.d.ts +3 -0
  131. package/lib/Registration/components/MandatoryEmailConfirmation/utils.d.ts +4 -0
  132. package/lib/Registration/components/SuccessScreen/SuccessScreen.d.ts +2 -0
  133. package/lib/Registration/utils.d.ts +2 -0
  134. package/lib/ResponsiveModal/ResponsiveModal.d.ts +1 -1
  135. package/lib/utils/hooks.d.ts +3 -0
  136. package/lib/utils/index.d.ts +1 -0
  137. package/package.json +1 -1
  138. package/style.css +1 -1
  139. package/lib/ImagePicker/ImageCropper.d.ts +0 -3
  140. package/lib/ImagePicker/hooks/useCropper.d.ts +0 -5
  141. package/lib/ImagePicker/util.d.ts +0 -2
  142. /package/lib/{ImagePicker → ImageCropper}/hooks/useImageLoader.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- import { ComplaintReason } from '../../../../api/src/lib/core/public/v1/types';
1
+ import { ComplaintReason } from '../../../../api/src/lib/core_v2/public/v1/types';
2
2
  export interface ComplaintModalProps {
3
3
  complaintReasons?: ComplaintReason[];
4
4
  handleModalClick: () => void;
@@ -1,3 +1,3 @@
1
1
  import { DesktopLayoutTwoColumnProps } from './DesktopLayoutTwoColumn.types';
2
- declare const DesktopLayoutTwoColumn: ({ banner, children, isMainFullWidth, leftAdSlot, navbar, right, rightAdSlot, enableAdSlots, }: DesktopLayoutTwoColumnProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const DesktopLayoutTwoColumn: ({ banner, children, enableAdSlots, isMainFullWidth, leftAdSlot, navbar, right, rightAdSlot, }: DesktopLayoutTwoColumnProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default DesktopLayoutTwoColumn;
@@ -1,11 +1,14 @@
1
1
  import { ReactElement, ReactNode } from 'react';
2
2
  export interface DesktopLayoutTwoColumnProps {
3
- banner?: ReactElement;
3
+ banner: {
4
+ adSlot?: ReactElement;
5
+ didRender: boolean;
6
+ };
4
7
  children: ReactNode;
5
8
  enableAdSlots?: boolean;
9
+ isMainFullWidth?: boolean;
6
10
  leftAdSlot?: ReactElement;
7
11
  navbar: ReactElement;
8
12
  right?: ReactElement;
9
13
  rightAdSlot?: ReactElement;
10
- isMainFullWidth?: boolean;
11
14
  }
@@ -1,4 +1,4 @@
1
- import { ProfileResponse } from '../../../../../../../api/src/lib/core';
1
+ import { ProfileResponse } from '../../../../../../../api/src/lib/core_v2';
2
2
  type InteractiveCardHeaderProps = {
3
3
  className?: string;
4
4
  id: number;
@@ -1,4 +1,4 @@
1
- import { PostImage } from '../../../../../../../api/src/lib/core';
1
+ import { PostImage } from '../../../../../../../api/src/lib/core_v2';
2
2
  import { default as PostAuthorProps } from '../../PostAuthor/PostAuthor.types';
3
3
  import { ProfileData } from '../MarketplaceDetailPage/MarketplaceDetailPage.types';
4
4
  export type MarketplaceActionsTypes = {
@@ -1,4 +1,4 @@
1
- import { PostImage } from '../../../../../../../../../api/src/lib/core';
1
+ import { PostImage } from '../../../../../../../../../api/src/lib/core_v2';
2
2
  import { default as PostAuthorProps } from '../../../../PostAuthor/PostAuthor.types';
3
3
  type BuyerActionsProps = {
4
4
  author: PostAuthorProps;
@@ -1,4 +1,4 @@
1
- import { EmbedResponse, LevelOfDetail, PostImage } from '../../../../../../../api/src/lib/core';
1
+ import { EmbedResponse, LevelOfDetail, PostImage } from '../../../../../../../api/src/lib/core_v2';
2
2
  import { default as PostAuthorProps } from '../../PostAuthor/PostAuthor.types';
3
3
  import { ProfileData } from '../MarketplaceDetailPage/MarketplaceDetailPage.types';
4
4
  export interface MarketplaceBodyTypes {
@@ -1,3 +1,3 @@
1
1
  import { MarketplaceDetailPageProps } from './MarketplaceDetailPage.types';
2
- export declare function MarketplaceDetailPage({ ads, author, categories, embeds, interactions, isBusinessProfile, postData, profile, related, renderAdSlot, renderGallery, }: MarketplaceDetailPageProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function MarketplaceDetailPage({ ads, author, categories, embeds, handleReserve, interactions, isBusinessProfile, isReserved, postData, profile, related, renderAdSlot, renderGallery, }: MarketplaceDetailPageProps): import("react/jsx-runtime").JSX.Element;
3
3
  export default MarketplaceDetailPage;
@@ -1,5 +1,5 @@
1
1
  import { ReactElement } from 'react';
2
- import { BusinessProfilesResponse, CategoriesResponse, EmbedResponse, InteractionResponse, NeighbourResponse, PostImage, PostResponse, ProfileResponse, RelatedPostsResponse } from '../../../../../../../api/src/lib/core';
2
+ import { BusinessProfilesResponse, CategoriesResponse, EmbedResponse, InteractionResponse, NeighbourResponse, PostResponse, ProfileResponse, RelatedPostsResponse } from '../../../../../../../api/src/lib/core_v2';
3
3
  export interface AdSlot {
4
4
  adnuntius?: {
5
5
  desktop: string;
@@ -15,11 +15,13 @@ export interface MarketplaceDetailPageProps {
15
15
  author: NeighbourResponse | BusinessProfilesResponse;
16
16
  categories: CategoriesResponse;
17
17
  embeds?: EmbedResponse[];
18
+ handleReserve: () => void;
18
19
  interactions: InteractionResponse;
19
20
  isBusinessProfile: boolean;
21
+ isReserved: boolean;
20
22
  postData: PostResponse;
21
23
  profile: ProfileResponse;
22
24
  related: RelatedPostsResponse;
23
25
  renderAdSlot: (slot: AdSlot) => ReactElement;
24
- renderGallery: (images: PostImage[]) => ReactElement;
26
+ renderGallery: ReactElement;
25
27
  }
@@ -1,4 +1,4 @@
1
- import { Section } from '../../../../../../../../../api/src/lib/core';
1
+ import { Section } from '../../../../../../../../../api/src/lib/core_v2';
2
2
  type CardAggregatorProps = {
3
3
  relatedBookmarks: number[];
4
4
  section: Section;
@@ -2,6 +2,8 @@ import { ReactElement } from 'react';
2
2
  import { MarketplaceBodyTypes } from '../../../MarketplaceBody/MarketplaceBody.types';
3
3
  export interface MarketplaceContentProps {
4
4
  children?: ReactElement;
5
+ handleReserve: () => void;
6
+ isReserved: boolean;
5
7
  marketplaceBodyItems: MarketplaceBodyTypes;
6
8
  }
7
- export declare const MarketplaceContent: ({ children, marketplaceBodyItems, }: MarketplaceContentProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const MarketplaceContent: ({ children, handleReserve, isReserved, marketplaceBodyItems, }: MarketplaceContentProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { ProfileResponse } from '../../../../../../../../api/src/lib/core';
1
+ import { ProfileResponse } from '../../../../../../../../api/src/lib/core_v2';
2
2
  export declare const ComplaintModalComponent: ({ handleReport, id, open, profile, }: {
3
3
  handleReport: () => void;
4
4
  id: number;
@@ -1,4 +1,4 @@
1
- import { PostResponse } from '../../../../../../../../api/src/lib/core';
1
+ import { PostResponse } from '../../../../../../../../api/src/lib/core_v2';
2
2
  export declare const getInfoData: (post: PostResponse) => {
3
3
  author: {
4
4
  name: string;
@@ -1,4 +1,4 @@
1
- import { ProfileResponse } from '../../../../../../../api/src/lib/core';
1
+ import { ProfileResponse } from '../../../../../../../api/src/lib/core_v2';
2
2
  export type MarketplaceMoreOptionsProps = {
3
3
  id: number;
4
4
  isMine?: boolean;
@@ -0,0 +1,3 @@
1
+ import { PostReactionsProps } from './PostReactions.types';
2
+ export declare const PostReactions: ({ getPicturePlaceholder, getReactions, itemId, limit, onReactionSelect, onToggleComments, reactions, replies, selectedReaction, tooltipReactions, }: PostReactionsProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default PostReactions;
@@ -0,0 +1,13 @@
1
+ import { ReactionType } from '../../../../../../../api/src/lib/types/reactions';
2
+ import { Reaction, ReactionStackProps } from '../../../../Reactions/ReactionStack/ReactionStack.types';
3
+ import { ReactionTabListProps } from '../../../../Reactions/ReactionTabList/ReactionTabList.types';
4
+ export type PostReactionsProps = Omit<ReactionStackProps, 'stack' | 'expanded' | 'onClick'> & {
5
+ getPicturePlaceholder: ReactionTabListProps['getPicturePlaceholder'];
6
+ getReactions: ReactionTabListProps['getReactions'];
7
+ itemId: number;
8
+ onReactionSelect: (emoji: ReactionType) => void;
9
+ onToggleComments: () => void;
10
+ replies?: number;
11
+ selectedReaction?: ReactionType;
12
+ tooltipReactions: Reaction[];
13
+ };
@@ -0,0 +1,8 @@
1
+ import { ReactionType } from '../../../../../../../api/src/lib/types/reactions';
2
+ import { Reaction } from '../../../../../index';
3
+ export declare const getReactionsArray: (reactions: Reaction[], selectedReaction?: ReactionType) => {
4
+ selected: boolean;
5
+ tooltip?: import('react').ReactNode;
6
+ count?: number | undefined;
7
+ reaction: ReactionType;
8
+ }[];
@@ -0,0 +1,3 @@
1
+ import { LikeProps } from './Like.types';
2
+ declare const Like: ({ isComment, isVerticalLayout, item, locked, reactions, setReaction, }: LikeProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Like;
@@ -0,0 +1,21 @@
1
+ import { ReactionType } from '../../../../../../../../api/src/lib/types/reactions';
2
+ import { ReplyReactionsProps } from '../ReplyReactions.types';
3
+ export interface Item {
4
+ id: string;
5
+ reaction?: ReactionType;
6
+ }
7
+ export interface Reaction {
8
+ count?: number;
9
+ reaction: ReactionType;
10
+ selected?: boolean;
11
+ tooltip?: string;
12
+ }
13
+ export type SetReaction = (reaction: ReactionType | null) => void;
14
+ export interface LikeProps {
15
+ isComment?: boolean;
16
+ isVerticalLayout?: boolean;
17
+ item: Item;
18
+ locked?: boolean;
19
+ reactions: ReplyReactionsProps['tooltipReactions'];
20
+ setReaction: SetReaction;
21
+ }
@@ -0,0 +1,7 @@
1
+ import { ReactionType } from '../../../../../../../../../api/src/lib/types/reactions';
2
+ type ReactionLabelProps = {
3
+ isLiked: boolean;
4
+ reaction: ReactionType;
5
+ };
6
+ export declare const ReactionLabel: ({ isLiked, reaction }: ReactionLabelProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,3 @@
1
+ import { ReplyReactionsProps } from './ReplyReactions.types';
2
+ export declare const ReplyReactions: ({ getPicturePlaceholder, getReactions, item, itemId, onReactionSelect, onReply, reactions, tooltipReactions, }: ReplyReactionsProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default ReplyReactions;
@@ -0,0 +1,16 @@
1
+ import { ReactionType } from '../../../../../../../api/src/lib/types/reactions';
2
+ import { Reaction } from '../../../../Reactions/ReactionStack/ReactionStack.types';
3
+ import { ReactionTabListProps } from '../../../../Reactions/ReactionTabList/ReactionTabList.types';
4
+ export type ReplyReactionsProps = {
5
+ getPicturePlaceholder: ReactionTabListProps['getPicturePlaceholder'];
6
+ getReactions: ReactionTabListProps['getReactions'];
7
+ item: {
8
+ id: string;
9
+ reaction?: ReactionType;
10
+ };
11
+ itemId: number;
12
+ onReactionSelect: (emoji: ReactionType | null) => void;
13
+ onReply: () => void;
14
+ reactions: Reaction[];
15
+ tooltipReactions: Reaction[];
16
+ };
@@ -1,5 +1,5 @@
1
- import { BusinessProfilesResponse, InteractionResponse, NeighbourResponse, PostResponse, ProfileResponse, Section } from '../../../../../api/src/lib/core';
2
- import { Category } from '../../../../../api/src/lib/core/v2/categories';
1
+ import { BusinessProfilesResponse, InteractionResponse, NeighbourResponse, PostResponse, ProfileResponse, Section } from '../../../../../api/src/lib/core_v2';
2
+ import { Category } from '../../../../../api/src/lib/core_v2/v2/categories';
3
3
  import { BadgeIconType } from '../../../../../api/src/lib/types/newsFeeds';
4
4
  import { MarketplaceBodyTypes } from './Marketplace/MarketplaceBody/MarketplaceBody.types';
5
5
  import { AdSlot } from './Marketplace/MarketplaceDetailPage/MarketplaceDetailPage.types';
@@ -1,4 +1,4 @@
1
- import { NewsFeedHoodMessage } from '../../../../../api/src/lib/core';
1
+ import { NewsFeedHoodMessage } from '../../../../../api/src/lib/core_v2';
2
2
  import { MarketplaceItemCardlessTypes } from '../FeedItem/Marketplace/MarketplaceItemCardless/MarketplaceItemCardless.types';
3
3
  export declare const GridFeedTypeEnum: {
4
4
  readonly event: "event";
@@ -1,4 +1,4 @@
1
- import { PostResponse } from '../../../../api/src/lib/core';
1
+ import { PostResponse } from '../../../../api/src/lib/core_v2';
2
2
  export declare const isBookmarked: (id: number, list: number[]) => boolean;
3
3
  export declare const getRelatedItemThumbnail: (item: PostResponse) => string;
4
4
  export declare const isPublic: (item: PostResponse) => boolean;
@@ -1,4 +1,4 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  import { WizardStepT } from '../Wizard/Wizard.types';
3
- export declare function DynamicForm({ fields, onSubmit }: PropsWithChildren<WizardStepT>): import("react/jsx-runtime").JSX.Element;
3
+ export declare function DynamicForm({ fields, formError, formFieldMap, formKey, id, onSubmit, spacing, validationMode, validationSchema, }: PropsWithChildren<WizardStepT>): import("react/jsx-runtime").JSX.Element;
4
4
  export default DynamicForm;
@@ -0,0 +1,3 @@
1
+ import { CodeInputProps } from './CodeField.types';
2
+ declare const CodeField: ({ disabled, errorText, onComplete, type, length, variant, value, }: CodeInputProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default CodeField;
@@ -0,0 +1,9 @@
1
+ export interface CodeInputProps {
2
+ disabled?: boolean;
3
+ errorText?: string;
4
+ length?: number;
5
+ onComplete?: (value: string) => void;
6
+ type?: 'invite' | 'sms';
7
+ value?: string;
8
+ variant?: 'filled' | 'outlined';
9
+ }
@@ -0,0 +1,16 @@
1
+ import { default as React } from 'react';
2
+ import { ButtonVariationProps } from '../../../../../../ui/src/lib/Atoms/Buttons/Button/Button.types';
3
+ import { TextButtonProps } from '../../../../../../ui/src/lib/Atoms/Buttons/TextButton/TextButton.types';
4
+ export type FormButtonProps = {
5
+ color?: TextButtonProps['color'];
6
+ disabled?: boolean;
7
+ goTo?: string;
8
+ label?: string;
9
+ onClick?: () => void;
10
+ size?: ButtonVariationProps['size'];
11
+ text?: string;
12
+ type?: React.ButtonHTMLAttributes<HTMLButtonElement>['type'];
13
+ variant?: 'primary' | 'secondary' | 'tertiary' | 'text';
14
+ };
15
+ declare const FormButton: ({ color, disabled, goTo, label, onClick, size, text, type, variant, }: FormButtonProps) => import("react/jsx-runtime").JSX.Element;
16
+ export default FormButton;
@@ -0,0 +1,5 @@
1
+ import { UseControllerProps } from 'react-hook-form';
2
+ import { CodeInputProps } from './CodeField/CodeField.types';
3
+ export type FormCodeInputProps = UseControllerProps & Omit<CodeInputProps, 'onComplete' | 'errorText'>;
4
+ export declare const FormCodeField: ({ disabled, length, name, rules, type, variant, }: FormCodeInputProps) => import("react/jsx-runtime").JSX.Element;
5
+ export default FormCodeField;
@@ -0,0 +1,6 @@
1
+ import { ContentCreatorTileProps } from '../../../../../ui/src/lib/Atoms/Buttons/Tiles/ContentCreatorTile/ContentCreatorTile.types';
2
+ export type FormContentCreatorTileProps = ContentCreatorTileProps & {
3
+ id: string;
4
+ };
5
+ export declare const FormContentCreatorTile: ({ description, headline, id, isActive, isPending, sticker, }: FormContentCreatorTileProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default FormContentCreatorTile;
@@ -0,0 +1,5 @@
1
+ import { UseControllerProps } from 'react-hook-form';
2
+ import { GenderSelectorProps } from './GenderSelector/GenderSelector.types';
3
+ export type FormGenderSelectorProps = UseControllerProps & Partial<GenderSelectorProps>;
4
+ export declare const FormGenderSelector: ({ name, rules, selectedGender, }: FormGenderSelectorProps) => import("react/jsx-runtime").JSX.Element;
5
+ export default FormGenderSelector;
@@ -0,0 +1,3 @@
1
+ import { FormHeaderProps } from './FormHeader.types';
2
+ declare const FormHeader: ({ description, header, notice, phoneNr, sticker, title, }: FormHeaderProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default FormHeader;
@@ -0,0 +1,10 @@
1
+ import { StickerProps } from '../../../../../../ui/src/lib/Atoms/Badges/Sticker/Sticker.types';
2
+ import { NoticeInfoProps, NoticeWarningProps } from '../../../../../../ui/src/lib/Molecules/Notices/Notice/Notice.types';
3
+ export interface FormHeaderProps {
4
+ description?: string;
5
+ header: string;
6
+ notice?: NoticeWarningProps | NoticeInfoProps;
7
+ phoneNr?: boolean;
8
+ sticker?: StickerProps;
9
+ title?: string;
10
+ }
@@ -0,0 +1,4 @@
1
+ declare const PhoneNumber: ({ className }: {
2
+ className: string;
3
+ }) => import("react/jsx-runtime").JSX.Element | null;
4
+ export default PhoneNumber;
@@ -0,0 +1,7 @@
1
+ import { UseControllerProps } from 'react-hook-form';
2
+ import { NameAbbreviationProps } from './NameAbbreviation/NameAbbreviation.types';
3
+ export type FormNameAbbreviationProps = UseControllerProps & Partial<NameAbbreviationProps> & {
4
+ defaultChecked?: boolean;
5
+ };
6
+ export declare const FormNameAbbreviation: ({ defaultChecked, label, name, rules, }: FormNameAbbreviationProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default FormNameAbbreviation;
@@ -0,0 +1,5 @@
1
+ import { UseControllerProps } from 'react-hook-form';
2
+ import { PasswordFieldProps } from './PasswordField/PasswordField.types';
3
+ export type FormPasswordFieldProps = UseControllerProps & Partial<PasswordFieldProps>;
4
+ declare const FormPasswordField: ({ colorScheme, id, label, name, passwordHint, progressBar, rules, size, value, }: FormPasswordFieldProps) => import("react/jsx-runtime").JSX.Element;
5
+ export default FormPasswordField;
@@ -0,0 +1,5 @@
1
+ import { UseControllerProps } from 'react-hook-form';
2
+ import { default as PhoneInputProps } from './PhoneInput/PhoneInput.types';
3
+ export type FormPhoneInputProps = UseControllerProps & Omit<PhoneInputProps, 'onChange'>;
4
+ export declare const FormPhoneInput: ({ disabledSelect, inputId, name, placeholder, rules, selectId, size, styleInput, styleSelect, }: FormPhoneInputProps) => import("react/jsx-runtime").JSX.Element;
5
+ export default FormPhoneInput;
@@ -0,0 +1,12 @@
1
+ import { UseControllerProps } from 'react-hook-form';
2
+ import { SelectInputProps } from './SelectInput/SelectInput.types';
3
+ type FormSelectInputApi = {
4
+ api: {
5
+ dataId: string;
6
+ endpoint: string;
7
+ key: string;
8
+ };
9
+ };
10
+ export type FormSelectInputProps = UseControllerProps & Omit<SelectInputProps, 'onSelect' | 'options'> & FormSelectInputApi;
11
+ export declare const FormSelectInput: ({ api, className, disabled, iconButton, id, label, name, rules, sheetBreakpoint, size, style, }: FormSelectInputProps) => import("react/jsx-runtime").JSX.Element;
12
+ export default FormSelectInput;
@@ -1,4 +1,4 @@
1
1
  import { UseControllerProps } from 'react-hook-form';
2
2
  import { TextInputProps } from '../../../../../ui/src/lib/Atoms/Inputs/TextInput/TextInput.types';
3
3
  export type FormTextInputProps = UseControllerProps & Partial<TextInputProps>;
4
- export default function FormTextInput({ colorScheme, id, label, name, rules, size, value, ...props }: FormTextInputProps): import("react/jsx-runtime").JSX.Element;
4
+ export default function FormTextInput({ colorScheme, hintText, id, label, name, rules, size, value, ...props }: FormTextInputProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { GenderSelectorProps } from './GenderSelector.types';
2
+ declare const GenderSelector: ({ onChange, selectedGender }: GenderSelectorProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default GenderSelector;
@@ -0,0 +1,19 @@
1
+ import { ToggleButtonGroupProps } from '../../../../../../ui/src/lib/Molecules/Selections/SelectablePillGroup/SelectablePillGroup.types';
2
+ export declare const GENDERS: number[];
3
+ export type SelectedGenderOptions = (typeof GENDER_VALUES)[keyof typeof GENDER_VALUES];
4
+ export type GenderSelectorProps = Omit<ToggleButtonGroupProps, 'multiselect' | 'items' | 'selectedItems'> & {
5
+ onChange: (value: SelectedGenderOptions) => void;
6
+ selectedGender: SelectedGenderOptions;
7
+ };
8
+ export declare const GENDER_LABELS: {
9
+ 3: string;
10
+ 0: string;
11
+ 1: string;
12
+ 2: string;
13
+ };
14
+ export declare const GENDER_VALUES: {
15
+ 3: string;
16
+ 0: string;
17
+ 1: string;
18
+ 2: string;
19
+ };
@@ -0,0 +1,4 @@
1
+ import { SelectablePillProps } from '../../../../../../ui/src/lib/Atoms/Selectables/SelectablePill/SelectablePill.types';
2
+ import { SelectedGenderOptions } from './GenderSelector.types';
3
+ export declare const getGenders: () => SelectablePillProps[];
4
+ export declare const getSelectedGender: (genders: SelectablePillProps[], selectedGender: SelectedGenderOptions) => SelectablePillProps[];
@@ -0,0 +1,3 @@
1
+ import { NameAbbreviationProps } from './NameAbbreviation.types';
2
+ declare const NameAbbreviation: ({ checked, firstname, label, lastname, onChange, placeholder, }: NameAbbreviationProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default NameAbbreviation;
@@ -0,0 +1,11 @@
1
+ import { ToggleProps } from '../../../../../../ui/src/lib/Atoms/Inputs/Toggle/Toggle.types';
2
+ export interface NameAbbreviationProps extends ToggleProps {
3
+ checked: boolean;
4
+ firstname: string;
5
+ label?: string;
6
+ lastname: string;
7
+ placeholder?: {
8
+ firstname: string;
9
+ lastname: string;
10
+ };
11
+ }
@@ -0,0 +1,3 @@
1
+ import { PasswordFieldProps } from './PasswordField.types';
2
+ declare const PasswordField: ({ colorScheme, errorText, id, label, name, onBlur, onChange, passwordHint, progressBar, size, value, }: PasswordFieldProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default PasswordField;
@@ -0,0 +1,16 @@
1
+ import { TextInputProps } from '../../../../../../ui/src/lib/Atoms/Inputs/TextInput/TextInput.types';
2
+ export type PasswordFieldProps = {
3
+ colorScheme?: TextInputProps['colorScheme'];
4
+ error?: TextInputProps['error'];
5
+ errorText?: TextInputProps['errorText'];
6
+ id?: TextInputProps['id'];
7
+ label?: TextInputProps['label'];
8
+ name: TextInputProps['name'];
9
+ onBlur?: TextInputProps['onBlur'];
10
+ onChange?: TextInputProps['onChange'];
11
+ passwordHint?: string;
12
+ progressBar?: boolean;
13
+ showInputHints?: TextInputProps['showInputHints'];
14
+ size?: TextInputProps['size'];
15
+ value?: string;
16
+ };
@@ -0,0 +1 @@
1
+ export declare const getProgressBarProgress: (password: string) => number;
@@ -0,0 +1,3 @@
1
+ import { default as PhoneInputProps } from './PhoneInput.types';
2
+ declare const PhoneInput: ({ defaultSelectValue, disabledSelect, errorText, inputId, onChange, placeholder, selectId, size, styleInput, styleSelect, value, }: PhoneInputProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default PhoneInput;
@@ -0,0 +1,16 @@
1
+ import { TextInputProps } from '../../../../../../ui/src/lib/Atoms/Inputs/TextInput/TextInput.types';
2
+ import { euCountriesOpened } from './util';
3
+ export type DialCode = (typeof euCountriesOpened)[number]['dial_code'];
4
+ export default interface PhoneInputProps {
5
+ defaultSelectValue?: DialCode;
6
+ disabledSelect?: TextInputProps['disabled'];
7
+ errorText?: TextInputProps['errorText'];
8
+ inputId?: string;
9
+ onChange: (selectValue: string, inputValue: string) => void;
10
+ placeholder?: string;
11
+ selectId?: string;
12
+ size?: TextInputProps['size'];
13
+ styleInput?: TextInputProps['colorScheme'];
14
+ styleSelect?: TextInputProps['colorScheme'];
15
+ value?: string;
16
+ }