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