wacomm 2.26.2 → 2.26.3

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 (29) hide show
  1. package/dist/buttons/AddButton.d.ts +6 -1
  2. package/dist/index.d.ts +1 -1
  3. package/dist/socialMedia/DeletableSocialMediaLinks.d.ts +7 -0
  4. package/dist/socialMedia/DeletableSocialMediaLinks.stories.d.ts +6 -0
  5. package/dist/socialMedia/SocialMediaEditor.d.ts +11 -0
  6. package/dist/socialMedia/SocialMediaEditor.stories.d.ts +11 -0
  7. package/dist/socialMedia/SocialMediaLinks.d.ts +6 -0
  8. package/dist/socialMedia/SocialMediaLinks.stories.d.ts +8 -0
  9. package/dist/socialMedia/common/DeletableSocialMediaLink.d.ts +7 -0
  10. package/dist/socialMedia/common/DeletableSocialMediaLink.stories.d.ts +6 -0
  11. package/dist/socialMedia/common/SocialMediaIcon.d.ts +8 -0
  12. package/dist/socialMedia/common/SocialMediaIcon.stories.d.ts +7 -0
  13. package/dist/socialMedia/common/SocialMediaLink.d.ts +9 -0
  14. package/dist/socialMedia/common/SocialMediaLink.stories.d.ts +7 -0
  15. package/dist/socialMedia/common/SocialMediaPicker.d.ts +9 -0
  16. package/dist/socialMedia/common/SocialMediaPicker.stories.d.ts +7 -0
  17. package/dist/socialMedia/common/SocialMediaTag.d.ts +13 -0
  18. package/dist/socialMedia/common/SocialMediaTag.stories.d.ts +8 -0
  19. package/dist/socialMedia/common/index.d.ts +11 -0
  20. package/dist/socialMedia/common/util.d.ts +6 -0
  21. package/dist/socialMedia/modalContent/SocialMediaEditorModalContent.d.ts +11 -0
  22. package/dist/socialMedia/modalContent/SocialMediaLinkInput.d.ts +8 -0
  23. package/dist/socialMedia/modalContent/SocialMediaLinkInput.stories.d.ts +9 -0
  24. package/dist/socialMedia/modalContent/index.d.ts +2 -0
  25. package/dist/wacomm.cjs.js +18 -18
  26. package/dist/wacomm.css +1 -1
  27. package/dist/wacomm.es.js +18294 -17930
  28. package/package.json +2 -2
  29. package/dist/SocialMediaIcon.d.ts +0 -5
@@ -1,7 +1,12 @@
1
+ import { SvgSize } from 'wasvg';
1
2
  import { ZeroFuncType } from 'waujs';
2
3
  interface ControlButtonProps {
3
4
  label: string;
4
5
  onClick: ZeroFuncType;
6
+ svgSize?: SvgSize;
7
+ className?: string;
8
+ labelClassName?: string;
9
+ disabled?: boolean;
5
10
  }
6
- declare function AddButton({ label, onClick }: ControlButtonProps): import("react").JSX.Element;
11
+ declare function AddButton({ label, onClick, svgSize, className, labelClassName, disabled }: ControlButtonProps): import("react").JSX.Element;
7
12
  export default AddButton;
package/dist/index.d.ts CHANGED
@@ -13,7 +13,7 @@ export { default as RadioGroup } from './radioGroup/RadioGroup';
13
13
  export { default as TextUpdater } from './TextUpdater';
14
14
  export { default as TextareaAutosize } from './TextareaAutosize';
15
15
  export { default as TimeAgo } from './TimeAgo';
16
- export { default as SocialMediaIcon } from './SocialMediaIcon';
16
+ export * from './socialMedia/common';
17
17
  export { SvgSize } from 'wasvg';
18
18
  export * from './coordinates';
19
19
  export * from './expandableContainer';
@@ -0,0 +1,7 @@
1
+ import { SocialMediaLinkProps } from './common';
2
+ interface DeletableSocialMediaLinksProps {
3
+ links: SocialMediaLinkProps[];
4
+ onSave: (links: SocialMediaLinkProps[]) => void;
5
+ }
6
+ declare function DeletableSocialMediaLinks({ links, onSave }: DeletableSocialMediaLinksProps): import("react").JSX.Element;
7
+ export default DeletableSocialMediaLinks;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { default as DeletableSocialMediaLinks } from './DeletableSocialMediaLinks';
3
+ declare const meta: Meta<typeof DeletableSocialMediaLinks>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -0,0 +1,11 @@
1
+ import { SocialMediaLinkProps } from './common/SocialMediaLink';
2
+ interface SocialMediaEditorProps {
3
+ links: SocialMediaLinkProps[];
4
+ onSave: (links: SocialMediaLinkProps[]) => void;
5
+ error?: string;
6
+ isEditable?: boolean;
7
+ className?: string;
8
+ disabled?: boolean;
9
+ }
10
+ declare function SocialMediaEditor({ links, onSave, error, isEditable, className, disabled }: SocialMediaEditorProps): import("react").JSX.Element | null;
11
+ export default SocialMediaEditor;
@@ -0,0 +1,11 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { default as SocialMediaEditor } from './SocialMediaEditor';
3
+ declare const meta: Meta<typeof SocialMediaEditor>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const NotEditableEmpty: Story;
7
+ export declare const NotEditableWithLinks: Story;
8
+ export declare const EditableEmpty: Story;
9
+ export declare const EditableWithLinks: Story;
10
+ export declare const Disabled: Story;
11
+ export declare const WithError: Story;
@@ -0,0 +1,6 @@
1
+ import { SocialMediaLinkProps } from './common';
2
+ interface SocialMediaLinksProps {
3
+ links: SocialMediaLinkProps[];
4
+ }
5
+ declare function SocialMediaLinks({ links }: SocialMediaLinksProps): import("react").JSX.Element;
6
+ export default SocialMediaLinks;
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { default as SocialMediaLinks } from './SocialMediaLinks';
3
+ declare const meta: Meta<typeof SocialMediaLinks>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Empty: Story;
7
+ export declare const WithLinks: Story;
8
+ export declare const AllTypes: Story;
@@ -0,0 +1,7 @@
1
+ import { SocialMediaLinkProps } from './SocialMediaLink';
2
+ interface DeletableSocialMediaLinkProps extends SocialMediaLinkProps {
3
+ onDelete: () => void;
4
+ className?: string;
5
+ }
6
+ declare function DeletableSocialMediaLink({ socialMediaType, link, onDelete, className }: DeletableSocialMediaLinkProps): import("react").JSX.Element;
7
+ export default DeletableSocialMediaLink;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { default as DeletableSocialMediaLink } from './DeletableSocialMediaLink';
3
+ declare const meta: Meta<typeof DeletableSocialMediaLink>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -0,0 +1,8 @@
1
+ import { SvgSize } from 'wasvg';
2
+ import { SocialMediaType } from './util';
3
+ interface SocialMediaIconProps {
4
+ socialMediaType: SocialMediaType;
5
+ size?: SvgSize;
6
+ }
7
+ declare function SocialMediaIcon({ socialMediaType, size }: SocialMediaIconProps): import("react").JSX.Element | null;
8
+ export default SocialMediaIcon;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { default as SocialMediaIcon } from './SocialMediaIcon';
3
+ declare const meta: Meta<typeof SocialMediaIcon>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const AllPlatforms: Story;
@@ -0,0 +1,9 @@
1
+ import { SocialMediaType } from './util';
2
+ export interface SocialMediaLinkProps {
3
+ socialMediaType: SocialMediaType;
4
+ link: string;
5
+ }
6
+ declare function SocialMediaLink({ socialMediaType, link, className }: SocialMediaLinkProps & {
7
+ className?: string;
8
+ }): import("react").JSX.Element;
9
+ export default SocialMediaLink;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { default as SocialMediaLink } from './SocialMediaLink';
3
+ declare const meta: Meta<typeof SocialMediaLink>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const Instagram: Story;
@@ -0,0 +1,9 @@
1
+ import { SocialMediaType } from './util';
2
+ interface SocialMediaPickerProps {
3
+ onChange: (socialMediaType: SocialMediaType) => void;
4
+ value?: SocialMediaType;
5
+ className?: string;
6
+ disabled?: boolean;
7
+ }
8
+ declare function SocialMediaPicker({ onChange, value, className, disabled }: SocialMediaPickerProps): import("react").JSX.Element;
9
+ export default SocialMediaPicker;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { default as SocialMediaPicker } from './SocialMediaPicker';
3
+ declare const meta: Meta<typeof SocialMediaPicker>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const Disabled: Story;
@@ -0,0 +1,13 @@
1
+ import { ZeroFuncType } from 'waujs';
2
+ import { SvgSize } from 'wasvg';
3
+ import { SocialMediaType } from './util';
4
+ interface SocialMediaTagProps {
5
+ socialMediaType: SocialMediaType;
6
+ svgSize?: SvgSize;
7
+ labelClassName?: string;
8
+ svgClassName?: string;
9
+ onClick?: ZeroFuncType;
10
+ className?: string;
11
+ }
12
+ declare function SocialMediaTag({ socialMediaType, svgSize, labelClassName, svgClassName, onClick, className }: SocialMediaTagProps): import("react").JSX.Element | null;
13
+ export default SocialMediaTag;
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { default as SocialMediaTag } from './SocialMediaTag';
3
+ declare const meta: Meta<typeof SocialMediaTag>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const CustomSvgColor: Story;
8
+ export declare const AllPlatforms: Story;
@@ -0,0 +1,11 @@
1
+ export { default as SocialMediaIcon } from './SocialMediaIcon';
2
+ export { default as SocialMediaTag } from './SocialMediaTag';
3
+ export { default as SocialMediaPicker } from './SocialMediaPicker';
4
+ export { default as SocialMediaLink } from './SocialMediaLink';
5
+ export type { SocialMediaLinkProps } from './SocialMediaLink';
6
+ export { default as DeletableSocialMediaLink } from './DeletableSocialMediaLink';
7
+ export { default as SocialMediaEditor } from '../SocialMediaEditor';
8
+ export { default as SocialMediaLinks } from '../SocialMediaLinks';
9
+ export { default as DeletableSocialMediaLinks } from '../DeletableSocialMediaLinks';
10
+ export type { SocialMediaType } from './util';
11
+ export { getSocialMediaLabel, SOCIAL_MEDIA_TYPES } from './util';
@@ -0,0 +1,6 @@
1
+ import { ElementType } from 'react';
2
+ export type SocialMediaType = 'none' | 'facebook' | 'linkedIn' | 'instagram' | 'x' | 'tikTok' | 'youTube' | 'snapchat' | 'pinterest' | 'telegram' | 'reddit' | 'other';
3
+ export declare const SOCIAL_MEDIA_TYPES: SocialMediaType[];
4
+ export declare function getSocialMediaLabel(socialMediaType: SocialMediaType): string;
5
+ export declare function isValidSocialMediaLink(socialMediaType: SocialMediaType, link: string): boolean;
6
+ export declare function getSocialMediaSvg(socialMediaType: SocialMediaType): ElementType | null;
@@ -0,0 +1,11 @@
1
+ import { SocialMediaLinkProps } from '../common/SocialMediaLink';
2
+ interface SocialMediaEditorModalContentProps {
3
+ links: SocialMediaLinkProps[];
4
+ onSave: (links: SocialMediaLinkProps[]) => void;
5
+ onSaveClick: () => void;
6
+ onCancelClick: () => void;
7
+ error?: string;
8
+ disabled?: boolean;
9
+ }
10
+ declare function SocialMediaEditorModalContent({ links, onSave, onSaveClick, onCancelClick, error, disabled }: SocialMediaEditorModalContentProps): import("react").JSX.Element;
11
+ export default SocialMediaEditorModalContent;
@@ -0,0 +1,8 @@
1
+ import { SocialMediaType } from '../common/util';
2
+ interface SocialMediaLinkInputProps {
3
+ onAdd: (socialMediaType: SocialMediaType, link: string) => void;
4
+ className?: string;
5
+ disabled?: boolean;
6
+ }
7
+ declare function SocialMediaLinkInput({ onAdd, className, disabled }: SocialMediaLinkInputProps): import("react").JSX.Element;
8
+ export default SocialMediaLinkInput;
@@ -0,0 +1,9 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { default as SocialMediaLinkInput } from './SocialMediaLinkInput';
3
+ declare const meta: Meta<typeof SocialMediaLinkInput>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const Disabled: Story;
8
+ export declare const Mobile: Story;
9
+ export declare const Desktop: Story;
@@ -0,0 +1,2 @@
1
+ export { default as SocialMediaEditorModalContent } from './SocialMediaEditorModalContent';
2
+ export { default as SocialMediaLinkInput } from './SocialMediaLinkInput';