willba-component-library 0.2.92 → 0.2.93

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.
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import '../../themes/Default.css';
3
- import { FilterBarProps } from './FilterBarTypes';
3
+ import { FilterBarTypes } from './FilterBarTypes';
4
4
  import './FilterBar.css';
5
- export default function FilterBar({ language, ageCategories, redirectUrl, palette, onSubmit, fullWidth, disableCalendarDates, mode, tabs, outerLoading, }: FilterBarProps): React.JSX.Element;
5
+ export default function FilterBar({ language, ageCategories, redirectUrl, palette, onSubmit, fullWidth, disableCalendarDates, mode, tabs, outerLoading, }: FilterBarTypes): React.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { DisableCalendarDates } from '../../core/components/calendar/CalendarTypes';
2
2
  import { Palette } from '../../themes/useTheme';
3
- export type FilterBarProps = {
3
+ export type FilterBarTypes = {
4
4
  language?: string;
5
5
  ageCategories?: AgeCategoryType[];
6
6
  redirectUrl?: string;
package/lib/index.d.ts CHANGED
@@ -79,7 +79,7 @@ type CalendarTypes = {
79
79
  calendarHasError?: boolean;
80
80
  };
81
81
 
82
- type FilterBarProps = {
82
+ type FilterBarTypes = {
83
83
  language?: string;
84
84
  ageCategories?: AgeCategoryType[];
85
85
  redirectUrl?: string;
@@ -112,7 +112,7 @@ type Tab = {
112
112
  label?: Translations;
113
113
  };
114
114
 
115
- declare function FilterBar({ language, ageCategories, redirectUrl, palette, onSubmit, fullWidth, disableCalendarDates, mode, tabs, outerLoading, }: FilterBarProps): React.JSX.Element;
115
+ declare function FilterBar({ language, ageCategories, redirectUrl, palette, onSubmit, fullWidth, disableCalendarDates, mode, tabs, outerLoading, }: FilterBarTypes): React.JSX.Element;
116
116
 
117
117
  interface FilterCalendarTypes extends Partial<CalendarTypes> {
118
118
  palette: Palette;
@@ -123,4 +123,4 @@ interface FilterCalendarTypes extends Partial<CalendarTypes> {
123
123
 
124
124
  declare function FilterCalendar({ calendarOffset, language, palette, onSubmit, disableCalendarDates: outerDisableCalendarDates, toggleCalendar, loadingData, setToggleCalendar, requestDates, showFeedback, noActiveSelection, rangeContext: outerRangeContext, }: FilterCalendarTypes): React.JSX.Element;
125
125
 
126
- export { Button, FilterBar, FilterCalendar, FilterCalendarTypes, Tab };
126
+ export { Button, FilterBar, FilterBarTypes, FilterCalendar, FilterCalendarTypes };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "willba-component-library",
3
- "version": "0.2.92",
3
+ "version": "0.2.93",
4
4
  "description": "A custom UI component library",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.esm.js",
@@ -13,7 +13,7 @@ import { Calendar, SubmitButton, CloseButton } from '../../core/components'
13
13
  import { parseDates } from '../../core/components/calendar/utils'
14
14
 
15
15
  import { parseGuests } from './utils'
16
- import { FilterBarProps, FilterSections, Pages } from './FilterBarTypes'
16
+ import { FilterBarTypes, FilterSections, Pages } from './FilterBarTypes'
17
17
  import { useFilterBar, useScrollInToView } from './hooks'
18
18
  import {
19
19
  TabButton,
@@ -36,7 +36,7 @@ export default function FilterBar({
36
36
  mode,
37
37
  tabs,
38
38
  outerLoading,
39
- }: FilterBarProps) {
39
+ }: FilterBarTypes) {
40
40
  const themePalette = useTheme({ palette })
41
41
 
42
42
  // Translations
@@ -1,7 +1,7 @@
1
1
  import { DisableCalendarDates } from '../../core/components/calendar/CalendarTypes'
2
2
  import { Palette } from '../../themes/useTheme'
3
3
 
4
- export type FilterBarProps = {
4
+ export type FilterBarTypes = {
5
5
  language?: string
6
6
  ageCategories?: AgeCategoryType[]
7
7
  redirectUrl?: string
package/src/index.ts CHANGED
@@ -4,5 +4,5 @@ import FilterCalendar from './components/FilterCalendar'
4
4
 
5
5
  export { Button, FilterBar, FilterCalendar }
6
6
 
7
- export type { Tab } from './components/FilterBar/FilterBarTypes'
7
+ export type { FilterBarTypes } from './components/FilterBar/FilterBarTypes'
8
8
  export type { FilterCalendarTypes } from './components/FilterCalendar/FilterCalendarTypes'