@hotelcard/ui 0.0.70 → 0.0.71

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.d.ts CHANGED
@@ -1403,53 +1403,41 @@ declare interface HotelCategoryFilterProps {
1403
1403
  export declare const Input: default_2.FC<InputProps>;
1404
1404
 
1405
1405
  export declare interface InputProps {
1406
- /** Label text above the input */
1407
1406
  label?: string;
1408
- /** Placeholder text */
1409
1407
  placeholder?: string;
1410
- /** Helper text below the input */
1411
1408
  helper?: string;
1412
- /** Controlled value */
1413
1409
  value?: string;
1414
- /** Default value for uncontrolled usage */
1415
1410
  defaultValue?: string;
1416
- /** Callback when value changes */
1417
1411
  onChange?: (value: string) => void;
1418
- /** Callback when input gains focus */
1419
1412
  onFocus?: () => void;
1420
- /** Callback when input loses focus */
1421
1413
  onBlur?: () => void;
1422
- /** Input type */
1423
- type?: InputType;
1424
- /** Show error state */
1414
+ type?: 'text' | 'email' | 'password' | 'tel' | 'number' | 'search' | 'url' | 'date';
1425
1415
  error?: boolean;
1426
- /** Disable the input */
1427
1416
  disabled?: boolean;
1428
- /** Icon to show on the left side */
1429
1417
  leftIcon?: React.ReactNode;
1430
- /** Icon or element to show on the right side */
1431
1418
  rightIcon?: React.ReactNode;
1432
- /** Prefix text (e.g., currency symbol) */
1433
1419
  prefix?: string;
1434
- /** Additional className for container */
1435
1420
  className?: string;
1436
- /** Additional className for input element */
1437
1421
  inputClassName?: string;
1438
- /** Additional className for wrapper */
1439
- wrapperClassName?: string;
1440
- /** Input name attribute */
1441
1422
  name?: string;
1442
- /** Input id attribute */
1443
1423
  id?: string;
1444
- /** Whether the input is required */
1445
1424
  required?: boolean;
1446
- /** Autocomplete attribute */
1447
1425
  autoComplete?: string;
1448
- /** Auto focus the input */
1449
1426
  autoFocus?: boolean;
1450
- /** Make the input read-only */
1451
1427
  readOnly?: boolean;
1452
- /** Additional input props */
1428
+ variant?: 'default' | 'phone' | 'dropdown';
1429
+ phonePrefix?: string;
1430
+ onPhonePrefixChange?: (value: string) => void;
1431
+ onPhonePrefixBlur?: () => void;
1432
+ options?: Array<{
1433
+ value: string;
1434
+ label: string;
1435
+ icon?: React.ReactNode;
1436
+ }>;
1437
+ onSelect?: (value: string) => void;
1438
+ dropdownOpen?: boolean;
1439
+ onDropdownToggle?: (open: boolean) => void;
1440
+ wrapperClassName?: string;
1453
1441
  inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
1454
1442
  }
1455
1443