wacomm 1.14.5 → 1.14.6

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 (163) hide show
  1. package/dist/A.d.ts +12 -0
  2. package/dist/AlertWrap.d.ts +9 -0
  3. package/dist/Autocomplete.d.ts +8 -0
  4. package/dist/CommentEditor.d.ts +8 -0
  5. package/dist/Copyright.d.ts +2 -0
  6. package/dist/Deletable.d.ts +8 -0
  7. package/dist/EditableBlock.d.ts +19 -0
  8. package/dist/ErrorMessage.d.ts +5 -0
  9. package/dist/ExpandableTextUpdater.d.ts +7 -0
  10. package/dist/H1.d.ts +8 -0
  11. package/dist/Img.d.ts +12 -0
  12. package/dist/LetterAvatar.d.ts +6 -0
  13. package/dist/List.d.ts +10 -0
  14. package/dist/Modal.d.ts +38 -0
  15. package/dist/NavArrows.d.ts +7 -0
  16. package/dist/NotFound.d.ts +5 -0
  17. package/dist/Picker.d.ts +16 -0
  18. package/dist/SearchBar.d.ts +8 -0
  19. package/dist/Tabs.d.ts +20 -0
  20. package/dist/Tag.d.ts +25 -0
  21. package/dist/TextInput.d.ts +10 -0
  22. package/dist/TextareaAutosize.d.ts +10 -0
  23. package/dist/buttons/AddButton.d.ts +7 -0
  24. package/dist/buttons/AddButton.stories.d.ts +7 -0
  25. package/dist/buttons/AddButton.test.d.ts +0 -0
  26. package/dist/buttons/Button.d.ts +11 -0
  27. package/dist/buttons/Button.stories.d.ts +10 -0
  28. package/dist/buttons/Button.test.d.ts +0 -0
  29. package/dist/buttons/CacheButton.d.ts +9 -0
  30. package/dist/buttons/CacheButton.stories.d.ts +7 -0
  31. package/dist/buttons/CacheButton.test.d.ts +0 -0
  32. package/dist/buttons/ModalButton.d.ts +7 -0
  33. package/dist/buttons/ModalButton.stories.d.ts +7 -0
  34. package/dist/buttons/ModalButton.test.d.ts +0 -0
  35. package/dist/buttons/StyledButton.d.ts +11 -0
  36. package/dist/buttons/StyledButton.stories.d.ts +9 -0
  37. package/dist/buttons/StyledButton.test.d.ts +0 -0
  38. package/dist/buttons/SvgButton.d.ts +20 -0
  39. package/dist/buttons/SvgButton.stories.d.ts +13 -0
  40. package/dist/buttons/SvgButton.test.d.ts +0 -0
  41. package/dist/buttons/ToggleButton.d.ts +10 -0
  42. package/dist/buttons/ToggleButton.stories.d.ts +9 -0
  43. package/dist/buttons/ToggleButton.test.d.ts +0 -0
  44. package/dist/buttons/YesNoButtons.d.ts +9 -0
  45. package/dist/buttons/YesNoButtons.stories.d.ts +6 -0
  46. package/dist/buttons/YesNoButtons.test.d.ts +0 -0
  47. package/dist/buttons/index.d.ts +8 -0
  48. package/dist/checkboxGroup/Checkbox.d.ts +13 -0
  49. package/dist/checkboxGroup/CheckboxGroup.d.ts +16 -0
  50. package/dist/containers/Column.d.ts +8 -0
  51. package/dist/containers/Column.stories.d.ts +7 -0
  52. package/dist/containers/Column.test.d.ts +0 -0
  53. package/dist/containers/Container.d.ts +9 -0
  54. package/dist/containers/Container.stories.d.ts +9 -0
  55. package/dist/containers/Container.test.d.ts +0 -0
  56. package/dist/containers/Row.d.ts +8 -0
  57. package/dist/containers/Row.stories.d.ts +7 -0
  58. package/dist/containers/Row.test.d.ts +0 -0
  59. package/dist/containers/index.d.ts +3 -0
  60. package/dist/datetime/DateDisplay.d.ts +5 -0
  61. package/dist/datetime/DateDisplay.stories.d.ts +8 -0
  62. package/dist/datetime/DateDisplay.test.d.ts +0 -0
  63. package/dist/datetime/DatePicker.d.ts +7 -0
  64. package/dist/datetime/DatePicker.stories.d.ts +10 -0
  65. package/dist/datetime/DatePicker.test.d.ts +0 -0
  66. package/dist/datetime/DateRange.d.ts +8 -0
  67. package/dist/datetime/DateTimePicker.d.ts +7 -0
  68. package/dist/datetime/MonthPicker.d.ts +7 -0
  69. package/dist/datetime/TimePicker.d.ts +7 -0
  70. package/dist/datetime/dateTimeFormatter.d.ts +6 -0
  71. package/dist/datetime/index.d.ts +8 -0
  72. package/dist/datetime/util.d.ts +3 -0
  73. package/dist/expandableContainer/ExpandableContainer.d.ts +9 -0
  74. package/dist/expandableContainer/ExpandableContainerHeader.d.ts +9 -0
  75. package/dist/expandableContainer/index.d.ts +1 -0
  76. package/dist/form/Checkbox.d.ts +11 -0
  77. package/dist/form/Dropdown.d.ts +12 -0
  78. package/dist/form/FileInput.d.ts +10 -0
  79. package/dist/form/FormButtons.d.ts +12 -0
  80. package/dist/form/Input.d.ts +18 -0
  81. package/dist/form/SubmitButton.d.ts +11 -0
  82. package/dist/form/Textarea.d.ts +14 -0
  83. package/dist/form/index.d.ts +6 -0
  84. package/dist/icons/CloseIcon.d.ts +8 -0
  85. package/dist/icons/EditIcon.d.ts +9 -0
  86. package/dist/icons/SendIcon.d.ts +8 -0
  87. package/dist/icons/index.d.ts +3 -0
  88. package/dist/index-BaFDSJ4G.mjs +45151 -0
  89. package/dist/index-CJzKrK-3.js +390 -0
  90. package/dist/index.d.ts +44 -0
  91. package/dist/inputs/NumberInput.d.ts +9 -0
  92. package/dist/inputs/TextInput.d.ts +10 -0
  93. package/dist/inputs/TextUpdater.d.ts +12 -0
  94. package/dist/inputs/index.d.ts +3 -0
  95. package/dist/likes/LikeSection.d.ts +10 -0
  96. package/dist/likes/LikesCount.d.ts +9 -0
  97. package/dist/likes/index.d.ts +1 -0
  98. package/dist/loading/LoadingIcon.d.ts +5 -0
  99. package/dist/loading/LoadingIndicator.d.ts +8 -0
  100. package/dist/loading/index.d.ts +2 -0
  101. package/dist/mapbox/MapboxMap.d.ts +15 -0
  102. package/dist/mapbox/MapboxMarkerList.d.ts +6 -0
  103. package/dist/mapbox/index.d.ts +3 -0
  104. package/dist/mapbox/util.d.ts +13 -0
  105. package/dist/mapbox-gl-BsU-51hN.mjs +35567 -0
  106. package/dist/mapbox-gl-D2OyHkRT.js +2986 -0
  107. package/dist/navbar/Navbar.d.ts +14 -0
  108. package/dist/navbar/NavbarTab.d.ts +10 -0
  109. package/dist/navbar/index.d.ts +1 -0
  110. package/dist/separators/MiddleDot.d.ts +5 -0
  111. package/dist/separators/VerticalLine.d.ts +5 -0
  112. package/dist/separators/index.d.ts +2 -0
  113. package/dist/subjectReaction/SubjectReactionSection.d.ts +11 -0
  114. package/dist/subjectReaction/SubjectReactionsCount.d.ts +10 -0
  115. package/dist/subjectReaction/index.d.ts +2 -0
  116. package/dist/subjectReaction/util.d.ts +14 -0
  117. package/dist/svgTags/CalendarTag.d.ts +13 -0
  118. package/dist/svgTags/CategoryTag.d.ts +10 -0
  119. package/dist/svgTags/ChatTag.d.ts +7 -0
  120. package/dist/svgTags/CommentTag.d.ts +7 -0
  121. package/dist/svgTags/CreateTag.d.ts +7 -0
  122. package/dist/svgTags/ExploreTag.d.ts +8 -0
  123. package/dist/svgTags/HomeTag.d.ts +8 -0
  124. package/dist/svgTags/InterestTag.d.ts +11 -0
  125. package/dist/svgTags/LogoutTag.d.ts +8 -0
  126. package/dist/svgTags/MapTag.d.ts +6 -0
  127. package/dist/svgTags/NewsfeedTag.d.ts +8 -0
  128. package/dist/svgTags/NotificationTag.d.ts +7 -0
  129. package/dist/svgTags/PartnersTag.d.ts +8 -0
  130. package/dist/svgTags/PrivateTag.d.ts +2 -0
  131. package/dist/svgTags/SvgTag.d.ts +20 -0
  132. package/dist/svgTags/UpArrowTag.d.ts +6 -0
  133. package/dist/svgTags/WorenaLogo.d.ts +6 -0
  134. package/dist/svgTags/index.d.ts +19 -0
  135. package/dist/svgTags/locations/CityTag.d.ts +7 -0
  136. package/dist/svgTags/locations/index.d.ts +1 -0
  137. package/dist/svgTags/posts/CreatePostTag.d.ts +11 -0
  138. package/dist/svgTags/posts/ImageTag.d.ts +11 -0
  139. package/dist/svgTags/posts/PollTag.d.ts +11 -0
  140. package/dist/svgTags/posts/TextPostTag.d.ts +13 -0
  141. package/dist/svgTags/posts/index.d.ts +4 -0
  142. package/dist/svgTags/profiles/ArenaTag.d.ts +13 -0
  143. package/dist/svgTags/profiles/CoachTag.d.ts +12 -0
  144. package/dist/svgTags/profiles/CollectionTag.d.ts +13 -0
  145. package/dist/svgTags/profiles/CreateArenaTag.d.ts +11 -0
  146. package/dist/svgTags/profiles/CreateCollectionTag.d.ts +11 -0
  147. package/dist/svgTags/profiles/CreateTeamTag.d.ts +11 -0
  148. package/dist/svgTags/profiles/EventTag.d.ts +13 -0
  149. package/dist/svgTags/profiles/GameTag.d.ts +13 -0
  150. package/dist/svgTags/profiles/LeaderboardTag.d.ts +13 -0
  151. package/dist/svgTags/profiles/MarketTag.d.ts +13 -0
  152. package/dist/svgTags/profiles/TeamTag.d.ts +13 -0
  153. package/dist/svgTags/profiles/UserTag.d.ts +9 -0
  154. package/dist/svgTags/profiles/index.d.ts +12 -0
  155. package/dist/tootips/InterestIconTooltip.d.ts +11 -0
  156. package/dist/tootips/MenuTooltip.d.ts +7 -0
  157. package/dist/tootips/SvgTooltip.d.ts +10 -0
  158. package/dist/tootips/Tooltip.d.ts +19 -0
  159. package/dist/tootips/index.d.ts +6 -0
  160. package/dist/wacomm.cjs.js +1 -0
  161. package/dist/wacomm.css +1 -0
  162. package/dist/wacomm.es.js +113 -0
  163. package/package.json +1 -1
package/dist/A.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ import { ReactNode } from 'react';
2
+ export declare enum ATarget {
3
+ blank = "_blank",
4
+ self = "_self"
5
+ }
6
+ interface AProps {
7
+ target?: ATarget;
8
+ href: string;
9
+ children: ReactNode;
10
+ }
11
+ declare function A({ target, href, children }: AProps): import("react/jsx-runtime").JSX.Element;
12
+ export default A;
@@ -0,0 +1,9 @@
1
+ import { ReactElement } from 'react';
2
+ import { ZeroFuncType } from 'waujs';
3
+ interface AlertWrapProps {
4
+ count: number;
5
+ content: ReactElement;
6
+ onClick: ZeroFuncType;
7
+ }
8
+ declare function AlertWrap({ count, content, onClick }: AlertWrapProps): import("react/jsx-runtime").JSX.Element;
9
+ export default AlertWrap;
@@ -0,0 +1,8 @@
1
+ interface AutocompleteProps {
2
+ options: any[];
3
+ placeholder?: string;
4
+ onSelect: (placeID: string, description: string) => void;
5
+ onChange: (text: string) => void;
6
+ }
7
+ declare function Autocomplete({ options, onSelect, onChange, placeholder }: AutocompleteProps): import("react/jsx-runtime").JSX.Element;
8
+ export default Autocomplete;
@@ -0,0 +1,8 @@
1
+ interface CommentEditorProps {
2
+ onClick: (text: string) => void;
3
+ placeholder?: string;
4
+ className?: string;
5
+ rows?: number;
6
+ }
7
+ export default function CommentEditor({ onClick, placeholder, className, rows }: CommentEditorProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,2 @@
1
+ declare function Copyright(): import("react/jsx-runtime").JSX.Element;
2
+ export default Copyright;
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ interface DeletableProps {
3
+ content: ReactNode;
4
+ onDelete: () => void;
5
+ className?: string;
6
+ }
7
+ declare function Deletable({ content, onDelete, className }: DeletableProps): import("react/jsx-runtime").JSX.Element;
8
+ export default Deletable;
@@ -0,0 +1,19 @@
1
+ import { ElementType, ReactNode } from 'react';
2
+ import { ZeroFuncType } from 'waujs';
3
+ interface EditableBlockProps {
4
+ Edit: ElementType;
5
+ Display: ElementType;
6
+ optionalMenu?: ReactNode;
7
+ title: string | ReactNode;
8
+ defaultValues?: any;
9
+ editable?: boolean;
10
+ }
11
+ export interface EditableBlockEditProps {
12
+ cancelEdit: ZeroFuncType;
13
+ defaultValues: any;
14
+ }
15
+ export interface EditableBlockDisplayProps {
16
+ defaultValues: any;
17
+ }
18
+ declare function EditableBlock({ Edit, Display, title, defaultValues, editable, optionalMenu }: EditableBlockProps): import("react/jsx-runtime").JSX.Element;
19
+ export default EditableBlock;
@@ -0,0 +1,5 @@
1
+ interface ErrorMessageProps {
2
+ label: string;
3
+ }
4
+ declare function ErrorMessage({ label }: ErrorMessageProps): import("react/jsx-runtime").JSX.Element;
5
+ export default ErrorMessage;
@@ -0,0 +1,7 @@
1
+ import { TextUpdaterProps } from './inputs/TextUpdater';
2
+ interface ExpandableTextUpdaterProps extends TextUpdaterProps {
3
+ title: string;
4
+ isExpandable?: boolean;
5
+ }
6
+ declare function ExpandableTextUpdater({ content, onSave, isLoading, placeholder, classNameEdit, classNameDisplay, title, editable, isExpandable }: ExpandableTextUpdaterProps): import("react/jsx-runtime").JSX.Element;
7
+ export default ExpandableTextUpdater;
package/dist/H1.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ import { ZeroFuncType } from 'waujs';
2
+ interface H1Props {
3
+ label: string;
4
+ className?: string;
5
+ onClick?: ZeroFuncType;
6
+ }
7
+ export default function H1({ label, onClick, className }: H1Props): import("react/jsx-runtime").JSX.Element;
8
+ export {};
package/dist/Img.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ import { ZeroFuncType } from 'waujs';
3
+ interface ImgProps {
4
+ src: string;
5
+ alt: string;
6
+ className?: string;
7
+ onClick?: ZeroFuncType;
8
+ style?: Object;
9
+ onLoad?: any;
10
+ }
11
+ declare const Img: React.ForwardRefExoticComponent<ImgProps & React.RefAttributes<unknown>>;
12
+ export default Img;
@@ -0,0 +1,6 @@
1
+ interface LetterAvatarProps {
2
+ letter?: string;
3
+ className?: string;
4
+ }
5
+ declare function LetterAvatar({ letter, className }: LetterAvatarProps): import("react/jsx-runtime").JSX.Element;
6
+ export default LetterAvatar;
package/dist/List.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+ interface ListProps {
3
+ items: any[];
4
+ itemRenderer: (...args: any[]) => ReactNode;
5
+ className?: string;
6
+ fallback?: any;
7
+ autoScroll?: boolean;
8
+ }
9
+ declare function List({ items, itemRenderer, className, fallback, autoScroll }: ListProps): any;
10
+ export default List;
@@ -0,0 +1,38 @@
1
+ import { ReactElement, ReactNode } from 'react';
2
+ import { ZeroFuncType } from 'waujs';
3
+ interface ModalProps {
4
+ isOpen: boolean;
5
+ onClose: ZeroFuncType;
6
+ title: string | ReactElement;
7
+ content: ReactNode;
8
+ shouldCloseOnEsc?: boolean;
9
+ shouldCloseOnOverlayClick?: boolean;
10
+ isCloseIconHidden?: boolean;
11
+ style?: ModalStyleProps;
12
+ }
13
+ interface ModalStyleOverlayProps {
14
+ top?: number;
15
+ left?: number;
16
+ right?: number;
17
+ bottom?: number;
18
+ backgroundColor?: string;
19
+ }
20
+ interface ModalStyleContentProps {
21
+ top?: string;
22
+ left?: string;
23
+ transform?: string;
24
+ border?: string;
25
+ background?: string;
26
+ borderRadius?: string;
27
+ width?: string;
28
+ height?: string;
29
+ boxShadow?: string;
30
+ padding?: string;
31
+ overflow?: string;
32
+ }
33
+ export interface ModalStyleProps {
34
+ overlay?: ModalStyleOverlayProps;
35
+ content?: ModalStyleContentProps;
36
+ }
37
+ declare function Modal({ isOpen, onClose, title, content, shouldCloseOnEsc, shouldCloseOnOverlayClick, isCloseIconHidden, style }: ModalProps): import("react/jsx-runtime").JSX.Element;
38
+ export default Modal;
@@ -0,0 +1,7 @@
1
+ import { ZeroFuncType } from 'waujs';
2
+ interface NavArrowsProps {
3
+ handlePrev: ZeroFuncType;
4
+ handleNext: ZeroFuncType;
5
+ }
6
+ declare function NavArrows({ handleNext, handlePrev }: NavArrowsProps): import("react/jsx-runtime").JSX.Element;
7
+ export default NavArrows;
@@ -0,0 +1,5 @@
1
+ interface NotFoundProps {
2
+ label: string;
3
+ }
4
+ declare function NotFound({ label }: NotFoundProps): import("react/jsx-runtime").JSX.Element;
5
+ export default NotFound;
@@ -0,0 +1,16 @@
1
+ import { ReactNode } from 'react';
2
+ export interface PickerOptionProps {
3
+ value: any;
4
+ label: ReactNode;
5
+ }
6
+ export type onChangeType = (option: PickerOptionProps) => void;
7
+ interface PickerProps {
8
+ isSearchable?: boolean;
9
+ defaultOption?: PickerOptionProps;
10
+ options: PickerOptionProps[];
11
+ onChange: onChangeType;
12
+ className?: string;
13
+ disabled?: boolean;
14
+ }
15
+ declare function Picker({ defaultOption, options, onChange, isSearchable, className, disabled }: PickerProps): import("react/jsx-runtime").JSX.Element;
16
+ export default Picker;
@@ -0,0 +1,8 @@
1
+ interface SearchBarProps {
2
+ placeholder?: string;
3
+ className?: string;
4
+ onSubmit: (value: string) => void;
5
+ isLoading: boolean;
6
+ }
7
+ declare function SearchBar({ placeholder, className, onSubmit }: SearchBarProps): import("react/jsx-runtime").JSX.Element;
8
+ export default SearchBar;
package/dist/Tabs.d.ts ADDED
@@ -0,0 +1,20 @@
1
+ interface ClassNamesProps {
2
+ tabs?: string;
3
+ tab?: string;
4
+ left?: string;
5
+ mid?: string;
6
+ right?: string;
7
+ picked?: string;
8
+ }
9
+ interface TabProps {
10
+ label: string;
11
+ value: any;
12
+ }
13
+ interface TabsProps {
14
+ tabs: TabProps[];
15
+ classNames?: ClassNamesProps;
16
+ onClick: (value: any) => void;
17
+ pickedTab: any;
18
+ }
19
+ declare function Tabs({ tabs, classNames, onClick, pickedTab }: TabsProps): import("react/jsx-runtime").JSX.Element;
20
+ export default Tabs;
package/dist/Tag.d.ts ADDED
@@ -0,0 +1,25 @@
1
+ import { ZeroFuncType } from 'waujs';
2
+ interface TagProps {
3
+ label: string;
4
+ onClick?: ZeroFuncType;
5
+ className?: string;
6
+ labelSize?: TagLabelSize;
7
+ color?: TagColor;
8
+ }
9
+ export declare enum TagColor {
10
+ Red = "bg-red-600 text-white",
11
+ Lime = "bg-lime-700 text-white",
12
+ Blue = "bg-blue-500 text-white",
13
+ Violet = "bg-violet-600 text-white",
14
+ Slate = "bg-slate-300 text-white",
15
+ Cyan = "bg-cyan-600 text-white",
16
+ Yellow = "bg-yellow-700 text-white"
17
+ }
18
+ export declare enum TagLabelSize {
19
+ Lg = "text-lg",
20
+ Sm = "text-sm",
21
+ Xs = "text-xs",
22
+ Base = "text-base"
23
+ }
24
+ declare function Tag({ label, onClick, className, labelSize, color }: TagProps): import("react/jsx-runtime").JSX.Element;
25
+ export default Tag;
@@ -0,0 +1,10 @@
1
+ interface TextInputProps {
2
+ onChange: (value: string, name?: string) => void;
3
+ value: string;
4
+ name?: string;
5
+ placeholder?: string;
6
+ className?: string;
7
+ disabled?: boolean;
8
+ }
9
+ declare function TextInput({ value, name, placeholder, className, disabled, onChange }: TextInputProps): import("react/jsx-runtime").JSX.Element;
10
+ export default TextInput;
@@ -0,0 +1,10 @@
1
+ interface TextareaAutosizeProps {
2
+ className?: string;
3
+ placeholder?: string;
4
+ minRows?: number;
5
+ maxRows?: number;
6
+ value?: string;
7
+ onChange: (v: string) => void;
8
+ }
9
+ declare const TextareaAutosize: ({ className, placeholder, minRows, maxRows, value, onChange }: TextareaAutosizeProps) => import("react/jsx-runtime").JSX.Element;
10
+ export default TextareaAutosize;
@@ -0,0 +1,7 @@
1
+ import { ZeroFuncType } from 'waujs';
2
+ interface ControlButtonProps {
3
+ label: string;
4
+ onClick: ZeroFuncType;
5
+ }
6
+ declare function AddButton({ label, onClick }: ControlButtonProps): import("react/jsx-runtime").JSX.Element;
7
+ export default AddButton;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as AddButton } from './AddButton';
3
+ declare const meta: Meta<typeof AddButton>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const NamedLabel: Story;
File without changes
@@ -0,0 +1,11 @@
1
+ interface ButtonProps {
2
+ onClick: (e: any | null) => void;
3
+ isLoading?: boolean;
4
+ disabled?: boolean;
5
+ isHighlighted?: boolean;
6
+ label?: string;
7
+ className?: string;
8
+ labelClassName?: string;
9
+ }
10
+ declare function Button({ onClick, className, disabled, isLoading, isHighlighted, labelClassName, label }: ButtonProps): import("react/jsx-runtime").JSX.Element;
11
+ export default Button;
@@ -0,0 +1,10 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as Button } from './Button';
3
+ declare const meta: Meta<typeof Button>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const Highlighted: Story;
8
+ export declare const Disabled: Story;
9
+ export declare const Loading: Story;
10
+ export declare const CustomStyling: Story;
File without changes
@@ -0,0 +1,9 @@
1
+ import { ZeroFuncType } from 'waujs';
2
+ export interface CacheButtonProps {
3
+ id: string;
4
+ onClick: (cancelLoading: ZeroFuncType) => void;
5
+ label: string;
6
+ isHighlighted: boolean;
7
+ }
8
+ declare function CacheButton({ id, onClick, label, isHighlighted }: CacheButtonProps): import("react/jsx-runtime").JSX.Element;
9
+ export default CacheButton;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as CacheButton } from './CacheButton';
3
+ declare const meta: Meta<typeof CacheButton>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const Highlighted: Story;
File without changes
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ interface ModalButtonProps {
3
+ label: string;
4
+ content: ReactNode;
5
+ }
6
+ declare function ModalButton({ label, content }: ModalButtonProps): import("react/jsx-runtime").JSX.Element;
7
+ export default ModalButton;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as ModalButton } from './ModalButton';
3
+ declare const meta: Meta<typeof ModalButton>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const SimpleText: Story;
File without changes
@@ -0,0 +1,11 @@
1
+ import { ZeroFuncType } from 'waujs';
2
+ interface StyledButtonProps {
3
+ isHighlighted?: boolean;
4
+ isLoading?: boolean;
5
+ disabled?: boolean;
6
+ className?: string;
7
+ onClick: ZeroFuncType;
8
+ label: string;
9
+ }
10
+ declare function StyledButton({ isHighlighted, isLoading, disabled, className, onClick, label }: StyledButtonProps): import("react/jsx-runtime").JSX.Element;
11
+ export default StyledButton;
@@ -0,0 +1,9 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as StyledButton } from './StyledButton';
3
+ declare const meta: Meta<typeof StyledButton>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const Highlighted: Story;
8
+ export declare const Loading: Story;
9
+ export declare const HighlightedAndLoading: Story;
File without changes
@@ -0,0 +1,20 @@
1
+ import { ElementType } from 'react';
2
+ import { SvgSize } from 'wasvg';
3
+ export interface IconProps {
4
+ Svg: ElementType;
5
+ className?: string;
6
+ size?: SvgSize;
7
+ }
8
+ interface SvgButtonProps {
9
+ icon: IconProps;
10
+ onClick: (e: any | null) => void;
11
+ isLoading?: boolean;
12
+ disabled?: boolean;
13
+ isVertical?: boolean;
14
+ isHighlighted?: boolean;
15
+ label?: string;
16
+ className?: string;
17
+ labelClassName?: string;
18
+ }
19
+ declare function SvgButton({ icon, onClick, className, disabled, isLoading, isVertical, isHighlighted, labelClassName, label }: SvgButtonProps): import("react/jsx-runtime").JSX.Element;
20
+ export default SvgButton;
@@ -0,0 +1,13 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as SvgButton } from './SvgButton';
3
+ declare const meta: Meta<typeof SvgButton>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const Highlighted: Story;
8
+ export declare const Disabled: Story;
9
+ export declare const Loading: Story;
10
+ export declare const Vertical: Story;
11
+ export declare const IconOnly: Story;
12
+ export declare const LargeIcon: Story;
13
+ export declare const CustomStyling: Story;
File without changes
@@ -0,0 +1,10 @@
1
+ import { ReactElement } from 'react';
2
+ interface ToggleButtonProps {
3
+ label: string | ReactElement;
4
+ checked: boolean;
5
+ onChange: (v: boolean) => void;
6
+ className?: string;
7
+ disabled?: boolean;
8
+ }
9
+ declare function ToggleButton({ label, checked, onChange, className, disabled }: ToggleButtonProps): import("react/jsx-runtime").JSX.Element;
10
+ export default ToggleButton;
@@ -0,0 +1,9 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as ToggleButton } from './ToggleButton';
3
+ declare const meta: Meta<typeof ToggleButton>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const Checked: Story;
8
+ export declare const Disabled: Story;
9
+ export declare const DisabledChecked: Story;
File without changes
@@ -0,0 +1,9 @@
1
+ import { ZeroFuncType } from 'waujs';
2
+ interface YesNoButtonsProps {
3
+ yesLabel: string;
4
+ noLabel: string;
5
+ handleYes: ZeroFuncType;
6
+ handleNo: ZeroFuncType;
7
+ }
8
+ export default function YesNoButtons({ yesLabel, noLabel, handleYes, handleNo }: YesNoButtonsProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as YesNoButtons } from './YesNoButtons';
3
+ declare const meta: Meta<typeof YesNoButtons>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const YesNo: Story;
File without changes
@@ -0,0 +1,8 @@
1
+ export { default as Button } from './Button';
2
+ export { default as SvgButton } from './SvgButton';
3
+ export { default as ToggleButton } from './ToggleButton';
4
+ export { default as CacheButton } from './CacheButton';
5
+ export { default as ModalButton } from './ModalButton';
6
+ export { default as StyledButton } from './StyledButton';
7
+ export { default as AddButton } from './AddButton';
8
+ export { default as YesNoButtons } from './YesNoButtons';
@@ -0,0 +1,13 @@
1
+ import { ReactNode } from 'react';
2
+ interface CheckboxProps {
3
+ name: string;
4
+ label: ReactNode;
5
+ value: any;
6
+ isSelected: boolean;
7
+ toggle: (value: string, checked: boolean) => void;
8
+ disabled?: boolean;
9
+ className?: string;
10
+ labelClassName?: string;
11
+ }
12
+ declare function Checkbox({ name, label, value, isSelected, toggle, disabled, className, labelClassName }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
13
+ export default Checkbox;
@@ -0,0 +1,16 @@
1
+ import { ReactNode } from 'react';
2
+ export interface CheckboxGroupItemProps {
3
+ label: ReactNode;
4
+ value: any;
5
+ }
6
+ interface CheckboxGroupProps {
7
+ items: CheckboxGroupItemProps[];
8
+ toggle: (values: string[]) => void;
9
+ name?: string;
10
+ maxN?: number;
11
+ className?: string;
12
+ itemClassName?: string;
13
+ labelClassName?: string;
14
+ }
15
+ declare function CheckboxGroup({ items, toggle, name, maxN, className, itemClassName, labelClassName }: CheckboxGroupProps): import("react/jsx-runtime").JSX.Element;
16
+ export default CheckboxGroup;
@@ -0,0 +1,8 @@
1
+ import { ZeroFuncType } from 'waujs';
2
+ interface ColumnProps {
3
+ children: any;
4
+ className?: string;
5
+ onClick?: ZeroFuncType;
6
+ }
7
+ declare function Column({ children, className, onClick }: ColumnProps): import("react/jsx-runtime").JSX.Element;
8
+ export default Column;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as Column } from './Column';
3
+ declare const meta: Meta<typeof Column>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const WithCustomClassName: Story;
File without changes
@@ -0,0 +1,9 @@
1
+ import { ZeroFuncType } from 'waujs';
2
+ interface ContainerProps {
3
+ children: any;
4
+ className?: string;
5
+ isVertical?: boolean;
6
+ onClick?: ZeroFuncType;
7
+ }
8
+ declare function Container({ children, className, isVertical, onClick }: ContainerProps): import("react/jsx-runtime").JSX.Element;
9
+ export default Container;
@@ -0,0 +1,9 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as Container } from './Container';
3
+ declare const meta: Meta<typeof Container>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const HorizontalDefault: Story;
7
+ export declare const VerticalDefault: Story;
8
+ export declare const HorizontalWithCustomClassName: Story;
9
+ export declare const VerticalWithCustomClassName: Story;
File without changes
@@ -0,0 +1,8 @@
1
+ import { ZeroFuncType } from 'waujs';
2
+ interface RowProps {
3
+ children: any;
4
+ className?: string;
5
+ onClick?: ZeroFuncType;
6
+ }
7
+ declare function Row({ children, className, onClick }: RowProps): import("react/jsx-runtime").JSX.Element;
8
+ export default Row;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as Row } from './Row';
3
+ declare const meta: Meta<typeof Row>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const WithCustomClassName: Story;
File without changes
@@ -0,0 +1,3 @@
1
+ export { default as Row } from './Row';
2
+ export { default as Column } from './Column';
3
+ export { default as Container } from './Container';
@@ -0,0 +1,5 @@
1
+ interface DateDisplayProps {
2
+ date: string;
3
+ }
4
+ export default function DateDisplay({ date }: DateDisplayProps): import("react/jsx-runtime").JSX.Element | null;
5
+ export {};
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as DateDisplay } from './DateDisplay';
3
+ declare const meta: Meta<typeof DateDisplay>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const EmptyDate: Story;
8
+ export declare const InvalidDate: Story;
File without changes
@@ -0,0 +1,7 @@
1
+ import { DateTime, SetDateTime } from './util';
2
+ interface DatePickerProps {
3
+ value: DateTime;
4
+ setValue: SetDateTime;
5
+ }
6
+ declare function DatePicker({ value, setValue }: DatePickerProps): import("react/jsx-runtime").JSX.Element;
7
+ export default DatePicker;