willba-component-library 0.2.78 → 0.2.79

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 (60) hide show
  1. package/lib/assets/IconsSvg.d.ts +9 -0
  2. package/lib/components/Button/Button.d.ts +29 -0
  3. package/lib/components/Button/Button.stories.d.ts +7 -0
  4. package/lib/components/Button/index.d.ts +1 -0
  5. package/lib/components/FilterBar/FilterBar.d.ts +5 -0
  6. package/lib/components/FilterBar/FilterBar.stories.d.ts +6 -0
  7. package/lib/components/FilterBar/FilterBarTypes.d.ts +56 -0
  8. package/lib/components/FilterBar/components/buttons/index.d.ts +4 -0
  9. package/lib/components/FilterBar/components/buttons/select-button/SelectButton.d.ts +10 -0
  10. package/lib/components/FilterBar/components/buttons/tab-button/TabButton.d.ts +10 -0
  11. package/lib/components/FilterBar/components/categories/Categories.d.ts +8 -0
  12. package/lib/components/FilterBar/components/divider/Divider.d.ts +3 -0
  13. package/lib/components/FilterBar/components/guests/GuestCount/GuestCount.d.ts +4 -0
  14. package/lib/components/FilterBar/components/guests/Guests.d.ts +10 -0
  15. package/lib/components/FilterBar/components/index.d.ts +4 -0
  16. package/lib/components/FilterBar/hooks/index.d.ts +2 -0
  17. package/lib/components/FilterBar/hooks/useFilterBar.d.ts +27 -0
  18. package/lib/components/FilterBar/hooks/useScrollInToView.d.ts +9 -0
  19. package/lib/components/FilterBar/index.d.ts +2 -0
  20. package/lib/components/FilterBar/utils/index.d.ts +1 -0
  21. package/lib/components/FilterBar/utils/parseGuests.d.ts +17 -0
  22. package/lib/components/FilterCalendar/FilterCalendar.d.ts +5 -0
  23. package/lib/components/FilterCalendar/FilterCalendar.stories.d.ts +8 -0
  24. package/lib/components/FilterCalendar/FilterCalendarTypes.d.ts +9 -0
  25. package/lib/components/FilterCalendar/components/Footer.d.ts +10 -0
  26. package/lib/components/FilterCalendar/hooks/useFilterCalendar.d.ts +28 -0
  27. package/lib/components/FilterCalendar/index.d.ts +2 -0
  28. package/lib/core/components/buttons/close-button/CloseButton.d.ts +7 -0
  29. package/lib/core/components/buttons/submit-button/SubmitButton.d.ts +13 -0
  30. package/lib/core/components/calendar/Calendar.d.ts +5 -0
  31. package/lib/core/components/calendar/CalendarTypes.d.ts +46 -0
  32. package/lib/core/components/calendar/hooks/index.d.ts +3 -0
  33. package/lib/core/components/calendar/hooks/useCalendarLoadingSpinner.d.ts +5 -0
  34. package/lib/core/components/calendar/hooks/useCalendarTooltips.d.ts +5 -0
  35. package/lib/core/components/calendar/hooks/useUpdateDisabledDates.d.ts +14 -0
  36. package/lib/core/components/calendar/utils/calendarSelectionRules.d.ts +15 -0
  37. package/lib/core/components/calendar/utils/checkForContinuousSelection.d.ts +11 -0
  38. package/lib/core/components/calendar/utils/disabledDatesByPage.d.ts +9 -0
  39. package/lib/core/components/calendar/utils/handleCalendarModifiers.d.ts +47 -0
  40. package/lib/core/components/calendar/utils/handleRangeContextDisabledDates.d.ts +27 -0
  41. package/lib/core/components/calendar/utils/index.d.ts +8 -0
  42. package/lib/core/components/calendar/utils/nightsCount.d.ts +6 -0
  43. package/lib/core/components/calendar/utils/parseDate.d.ts +7 -0
  44. package/lib/core/components/calendar/utils/parseDates.d.ts +6 -0
  45. package/lib/core/components/index.d.ts +3 -0
  46. package/lib/core/hooks/index.d.ts +3 -0
  47. package/lib/core/hooks/useAwaitRender.d.ts +1 -0
  48. package/lib/core/hooks/useCloseFilterSection.d.ts +8 -0
  49. package/lib/core/hooks/useUpdateTranslations.d.ts +5 -0
  50. package/lib/i18n.d.ts +2 -0
  51. package/lib/index.d.ts +127 -0
  52. package/lib/index.esm.js +12203 -0
  53. package/lib/index.esm.js.map +1 -0
  54. package/lib/index.js +12225 -0
  55. package/lib/index.js.map +1 -0
  56. package/lib/index.umd.js +12229 -0
  57. package/lib/index.umd.js.map +1 -0
  58. package/lib/themes/useTheme.d.ts +15 -0
  59. package/package.json +1 -1
  60. package/willba-component-library-0.2.77.tgz +0 -0
@@ -0,0 +1,15 @@
1
+ import { CSSProperties } from 'react';
2
+ export type Palette = {
3
+ primary: string;
4
+ secondary: string;
5
+ error: string;
6
+ };
7
+ export type ThemeProps = {
8
+ palette?: Palette;
9
+ };
10
+ export interface CustomPaletteTypes extends CSSProperties {
11
+ '--will-primary'?: string;
12
+ '--will-secondary'?: string;
13
+ '--will-error'?: string;
14
+ }
15
+ export default function useTheme({ palette }: ThemeProps): CustomPaletteTypes;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "willba-component-library",
3
- "version": "0.2.78",
3
+ "version": "0.2.79",
4
4
  "description": "A custom UI component library",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.esm.js",
Binary file