@hotelcard/ui 0.0.48 → 0.0.49
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.
Potentially problematic release.
This version of @hotelcard/ui might be problematic. Click here for more details.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +35 -0
- package/dist/index.js +2003 -1967
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -147,6 +147,33 @@ export declare interface BaseCardProps {
|
|
|
147
147
|
borderRadius?: number | string;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
+
/**
|
|
151
|
+
* BaseCardSkeleton - Base loading placeholder for card components
|
|
152
|
+
*
|
|
153
|
+
* Provides the shared card shell with image skeleton.
|
|
154
|
+
* Children should be skeleton placeholders for specific content.
|
|
155
|
+
*
|
|
156
|
+
* @example
|
|
157
|
+
* ```tsx
|
|
158
|
+
* <BaseCardSkeleton>
|
|
159
|
+
* <div className="skeleton" style={{ height: 20, width: '60%' }} />
|
|
160
|
+
* <div className="skeleton" style={{ height: 16, width: '40%' }} />
|
|
161
|
+
* </BaseCardSkeleton>
|
|
162
|
+
* ```
|
|
163
|
+
*/
|
|
164
|
+
export declare const BaseCardSkeleton: default_2.FC<BaseCardSkeletonProps>;
|
|
165
|
+
|
|
166
|
+
export declare interface BaseCardSkeletonProps {
|
|
167
|
+
/** Content placeholders to render below image */
|
|
168
|
+
children: default_2.ReactNode;
|
|
169
|
+
/** Image section height (default: 268.5px for mobile) */
|
|
170
|
+
imageHeight?: number | string;
|
|
171
|
+
/** Aspect ratio for image (alternative to fixed height) */
|
|
172
|
+
imageAspectRatio?: string;
|
|
173
|
+
/** Additional class name */
|
|
174
|
+
className?: string;
|
|
175
|
+
}
|
|
176
|
+
|
|
150
177
|
export declare interface BenefitItem {
|
|
151
178
|
icon?: string;
|
|
152
179
|
title: string;
|
|
@@ -1201,6 +1228,14 @@ export declare interface HotelCardProps {
|
|
|
1201
1228
|
className?: string;
|
|
1202
1229
|
}
|
|
1203
1230
|
|
|
1231
|
+
/**
|
|
1232
|
+
* HotelCardSkeleton - Loading placeholder for hotel cards
|
|
1233
|
+
*
|
|
1234
|
+
* Uses BaseCardSkeleton for the card shell and image,
|
|
1235
|
+
* with HotelCard-specific content placeholders.
|
|
1236
|
+
*/
|
|
1237
|
+
export declare const HotelCardSkeleton: default_2.FC;
|
|
1238
|
+
|
|
1204
1239
|
/**
|
|
1205
1240
|
* HotelCardUIProvider - Configure shared UI components
|
|
1206
1241
|
*
|