willba-component-library 0.3.2 → 0.3.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.
- package/lib/assets/IconsSvg.d.ts +2 -1
- package/lib/components/Button/Button.d.ts +1 -1
- package/lib/components/FilterBar/FilterBar.d.ts +2 -1
- package/lib/components/FilterBar/components/buttons/tab-button/TabButton.d.ts +2 -1
- package/lib/components/FilterBar/components/categories/Categories.d.ts +2 -1
- package/lib/components/FilterBar/components/divider/Divider.d.ts +2 -1
- package/lib/components/FilterCalendar/FilterCalendar.d.ts +2 -1
- package/lib/components/FilterCalendar/components/Footer.d.ts +2 -1
- package/lib/core/components/buttons/close-button/CloseButton.d.ts +2 -1
- package/lib/core/components/buttons/submit-button/SubmitButton.d.ts +2 -2
- package/lib/index.d.ts +3 -4
- package/lib/index.esm.js +2589 -2794
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +2577 -2764
- package/lib/index.js.map +1 -1
- package/lib/index.umd.js +2581 -2767
- package/lib/index.umd.js.map +1 -1
- package/package.json +2 -2
- package/rollup.config.mjs +3 -2
package/lib/assets/IconsSvg.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
type Icon = 'spinner' | 'warning';
|
|
2
3
|
type Props = {
|
|
3
4
|
fill?: string;
|
|
4
5
|
size?: number;
|
|
5
6
|
icon: Icon;
|
|
6
7
|
};
|
|
7
|
-
export declare const IconsSvg: ({ fill, size, icon }: Props) =>
|
|
8
|
+
export declare const IconsSvg: ({ fill, size, icon }: Props) => React.JSX.Element | null;
|
|
8
9
|
export {};
|
|
@@ -25,5 +25,5 @@ export interface ButtonProps {
|
|
|
25
25
|
/**
|
|
26
26
|
* Primary UI component for user interaction
|
|
27
27
|
*/
|
|
28
|
-
declare const Button: ({ type, textColor, size, onClick, label, }: ButtonProps) =>
|
|
28
|
+
declare const Button: ({ type, textColor, size, onClick, label, }: ButtonProps) => React.JSX.Element;
|
|
29
29
|
export default Button;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import '../../themes/Default.css';
|
|
2
3
|
import { FilterBarTypes } from './FilterBarTypes';
|
|
3
4
|
import './FilterBar.css';
|
|
4
|
-
export default function FilterBar({ language, ageCategories, redirectUrl, palette, onSubmit, fullWidth, disableCalendarDates, mode, tabs, outerLoading, locations, }: FilterBarTypes):
|
|
5
|
+
export default function FilterBar({ language, ageCategories, redirectUrl, palette, onSubmit, fullWidth, disableCalendarDates, mode, tabs, outerLoading, locations, }: FilterBarTypes): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import './TabButton.css';
|
|
2
3
|
type Props = {
|
|
3
4
|
onClick?: () => void;
|
|
@@ -5,5 +6,5 @@ type Props = {
|
|
|
5
6
|
active?: boolean;
|
|
6
7
|
mode?: string;
|
|
7
8
|
};
|
|
8
|
-
export declare const TabButton: ({ onClick, label, active, mode }: Props) =>
|
|
9
|
+
export declare const TabButton: ({ onClick, label, active, mode }: Props) => React.JSX.Element;
|
|
9
10
|
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import './Categories.css';
|
|
2
3
|
type Props = {
|
|
3
4
|
categories: any;
|
|
4
5
|
setCategories: any;
|
|
5
6
|
};
|
|
6
|
-
export declare const Categories: ({ categories, setCategories }: Props) =>
|
|
7
|
+
export declare const Categories: ({ categories, setCategories }: Props) => React.JSX.Element;
|
|
7
8
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import '../../themes/Default.css';
|
|
2
3
|
import { FilterCalendarTypes } from './FilterCalendarTypes';
|
|
3
4
|
import './FilterCalendar.css';
|
|
4
|
-
export default function FilterCalendar({ calendarOffset, language, palette, onSubmit, disableCalendarDates: outerDisableCalendarDates, toggleCalendar, loadingData, setToggleCalendar, requestDates, showFeedback, noActiveSelection, rangeContext: outerRangeContext, }: FilterCalendarTypes):
|
|
5
|
+
export default function FilterCalendar({ calendarOffset, language, palette, onSubmit, disableCalendarDates: outerDisableCalendarDates, toggleCalendar, loadingData, setToggleCalendar, requestDates, showFeedback, noActiveSelection, rangeContext: outerRangeContext, }: FilterCalendarTypes): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { DateRange } from 'react-day-picker';
|
|
2
3
|
import { Palette } from '../../../themes/useTheme';
|
|
3
4
|
export declare const Footer: ({ calendarHasError, calendarRange, handleClearDates, language, palette, }: {
|
|
@@ -6,4 +7,4 @@ export declare const Footer: ({ calendarHasError, calendarRange, handleClearDate
|
|
|
6
7
|
handleClearDates: () => void;
|
|
7
8
|
language?: string;
|
|
8
9
|
palette: Palette;
|
|
9
|
-
}) =>
|
|
10
|
+
}) => React.JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import './CloseButton.css';
|
|
2
3
|
interface CloseButtonPropsType {
|
|
3
4
|
handleClose: () => void;
|
|
4
5
|
}
|
|
5
|
-
export declare const CloseButton: ({ handleClose }: CloseButtonPropsType) =>
|
|
6
|
+
export declare const CloseButton: ({ handleClose }: CloseButtonPropsType) => React.JSX.Element;
|
|
6
7
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import './SubmitButton.css';
|
|
3
3
|
type SubmitButtonVariant = 'text' | 'full';
|
|
4
4
|
type Props = {
|
|
@@ -9,5 +9,5 @@ type Props = {
|
|
|
9
9
|
isLoading?: boolean;
|
|
10
10
|
variant?: SubmitButtonVariant;
|
|
11
11
|
};
|
|
12
|
-
export declare const SubmitButton: ({ onClick, startIcon, label, disabled, isLoading, variant, }: Props) =>
|
|
12
|
+
export declare const SubmitButton: ({ onClick, startIcon, label, disabled, isLoading, variant, }: Props) => React.JSX.Element;
|
|
13
13
|
export {};
|
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import { DateRange, Matcher } from 'react-day-picker';
|
|
4
3
|
|
|
@@ -27,7 +26,7 @@ interface ButtonProps {
|
|
|
27
26
|
/**
|
|
28
27
|
* Primary UI component for user interaction
|
|
29
28
|
*/
|
|
30
|
-
declare const Button: ({ type, textColor, size, onClick, label, }: ButtonProps) =>
|
|
29
|
+
declare const Button: ({ type, textColor, size, onClick, label, }: ButtonProps) => React.JSX.Element;
|
|
31
30
|
|
|
32
31
|
type Palette = {
|
|
33
32
|
primary: string;
|
|
@@ -124,7 +123,7 @@ type Location = {
|
|
|
124
123
|
imageUrl?: string;
|
|
125
124
|
};
|
|
126
125
|
|
|
127
|
-
declare function FilterBar({ language, ageCategories, redirectUrl, palette, onSubmit, fullWidth, disableCalendarDates, mode, tabs, outerLoading, locations, }: FilterBarTypes):
|
|
126
|
+
declare function FilterBar({ language, ageCategories, redirectUrl, palette, onSubmit, fullWidth, disableCalendarDates, mode, tabs, outerLoading, locations, }: FilterBarTypes): React.JSX.Element;
|
|
128
127
|
|
|
129
128
|
interface FilterCalendarTypes extends Partial<CalendarTypes> {
|
|
130
129
|
palette: Palette;
|
|
@@ -133,6 +132,6 @@ interface FilterCalendarTypes extends Partial<CalendarTypes> {
|
|
|
133
132
|
setToggleCalendar: (val: boolean) => void;
|
|
134
133
|
}
|
|
135
134
|
|
|
136
|
-
declare function FilterCalendar({ calendarOffset, language, palette, onSubmit, disableCalendarDates: outerDisableCalendarDates, toggleCalendar, loadingData, setToggleCalendar, requestDates, showFeedback, noActiveSelection, rangeContext: outerRangeContext, }: FilterCalendarTypes):
|
|
135
|
+
declare function FilterCalendar({ calendarOffset, language, palette, onSubmit, disableCalendarDates: outerDisableCalendarDates, toggleCalendar, loadingData, setToggleCalendar, requestDates, showFeedback, noActiveSelection, rangeContext: outerRangeContext, }: FilterCalendarTypes): React.JSX.Element;
|
|
137
136
|
|
|
138
137
|
export { Button, FilterBar, FilterBarTypes, FilterCalendar, FilterCalendarTypes };
|