@balby/booking-search 1.0.2 → 1.0.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/README.md CHANGED
@@ -40,12 +40,34 @@ This component requires React 19 and Tailwind CSS. Make sure they are installed:
40
40
  npm install react react-dom tailwindcss
41
41
  ```
42
42
 
43
+ ### Importing Styles
44
+
45
+ This package requires you to import the CSS file. There are several ways to do this:
46
+
47
+ **Option 1: Using the styles export (Recommended)**
48
+ ```tsx
49
+ import '@balby/booking-search/styles'
50
+ ```
51
+
52
+ **Option 2: Direct CSS import**
53
+ ```tsx
54
+ import '@balby/booking-search/dist/index.css'
55
+ ```
56
+
57
+ **Option 3: In your global CSS file**
58
+ ```css
59
+ @import '@balby/booking-search/styles';
60
+ ```
61
+
43
62
  ## 🎯 Quick Start
44
63
 
45
64
  ### Basic Usage
46
65
 
66
+ **Important:** You must import the CSS file for the component to display correctly.
67
+
47
68
  ```tsx
48
69
  import { BookingSearch } from '@balby/booking-search'
70
+ import '@balby/booking-search/styles'
49
71
  import type { BookingSearchPayload, Location, AvailabilityDay } from '@balby/booking-search'
50
72
 
51
73
  const locations: Location[] = [
@@ -152,7 +174,8 @@ export default {
152
174
  You can also use individual sub-components:
153
175
 
154
176
  ```tsx
155
- import { LocationCombobox, DateRangePicker, GuestSelector } from '@booking-search/react';
177
+ import { LocationCombobox, DateRangePicker, GuestSelector } from '@balby/booking-search'
178
+ import '@balby/booking-search/styles'
156
179
 
157
180
  // LocationCombobox
158
181
  <LocationCombobox