@bubo-squared/ui-framework 0.1.96 → 0.1.98

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/dist/index.d.cts CHANGED
@@ -256,7 +256,7 @@ interface DropdownOption {
256
256
  value: string;
257
257
  }
258
258
  declare const dropdownTriggerVariants: (props?: ({
259
- size?: "large" | "extra-large" | null | undefined;
259
+ size?: "sm" | "md" | "lg" | "xl" | null | undefined;
260
260
  status?: "success" | "error" | "default" | null | undefined;
261
261
  } & class_variance_authority_types.ClassProp) | undefined) => string;
262
262
  interface DropdownProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "onChange">, VariantProps<typeof dropdownTriggerVariants> {
@@ -293,7 +293,7 @@ interface FieldProps {
293
293
  }
294
294
  declare const Field: React$1.FC<FieldProps>;
295
295
 
296
- type PasswordInputSize = "large" | "extra-large";
296
+ type PasswordInputSize = "sm" | "md" | "lg" | "xl";
297
297
  type PasswordInputStatus = "default" | "success" | "error";
298
298
  type PasswordInputVariant = "icons" | "action";
299
299
  interface PasswordInputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "disabled"> {
@@ -315,7 +315,7 @@ interface PasswordInputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputE
315
315
  }
316
316
  declare const PasswordInput: React$1.FC<PasswordInputProps>;
317
317
 
318
- type TextInputSize = "large" | "extra-large";
318
+ type TextInputSize = "sm" | "md" | "lg" | "xl";
319
319
  type TextInputStatus = "default" | "success" | "error";
320
320
  interface TextInputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size" | "disabled"> {
321
321
  label?: string;
@@ -370,7 +370,7 @@ interface RadioGroupProps extends Omit<RadioGroupPrimitive.RadioGroupProps, "chi
370
370
  }
371
371
  declare const RadioGroup: React$1.FC<RadioGroupProps>;
372
372
 
373
- type SearchInputSize = "large" | "extra-large";
373
+ type SearchInputSize = "sm" | "md" | "lg" | "xl";
374
374
  interface SearchInputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size" | "disabled"> {
375
375
  placeholder?: string;
376
376
  leadingIcon?: React$1.ReactNode;
@@ -382,11 +382,9 @@ interface SearchInputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputEle
382
382
  declare const SearchInput: React$1.FC<SearchInputProps>;
383
383
 
384
384
  type SliderDisplay = "flat" | "numeric" | "tooltip";
385
- type SliderType = "single" | "multi";
386
385
  type SliderTooltipPlacement = "top" | "bottom";
387
- interface SliderProps {
386
+ type SliderBaseProps = {
388
387
  display?: SliderDisplay;
389
- type?: SliderType;
390
388
  tooltipPlacement?: SliderTooltipPlacement;
391
389
  /**
392
390
  * Custom formatter for tooltip / numeric / accessibility text.
@@ -404,18 +402,19 @@ interface SliderProps {
404
402
  max?: number;
405
403
  step?: number;
406
404
  disabled?: boolean;
407
- /**
408
- * Current value(s). For `type="single"`, use a single-element array, e.g. `[30]`.
409
- * For `type="multi"`, use two values, e.g. `[0, 25]`.
410
- */
411
- value?: number[];
412
- /**
413
- * Initial value(s) for uncontrolled usage.
414
- */
415
- defaultValue?: number[];
416
- onValueChange?: (value: number[]) => void;
417
405
  className?: string;
418
- }
406
+ };
407
+ type SliderSingleProps = SliderBaseProps & {
408
+ value?: number;
409
+ defaultValue?: number;
410
+ onValueChange?: (value: number) => void;
411
+ };
412
+ type SliderRangeProps = SliderBaseProps & {
413
+ value?: [number, number];
414
+ defaultValue?: [number, number];
415
+ onValueChange?: (value: [number, number]) => void;
416
+ };
417
+ type SliderProps = SliderSingleProps | SliderRangeProps;
419
418
  declare const Slider: React$1.FC<SliderProps>;
420
419
 
421
420
  type TextAreaType = "responsive" | "character-limit" | "plain";
package/dist/index.d.ts CHANGED
@@ -256,7 +256,7 @@ interface DropdownOption {
256
256
  value: string;
257
257
  }
258
258
  declare const dropdownTriggerVariants: (props?: ({
259
- size?: "large" | "extra-large" | null | undefined;
259
+ size?: "sm" | "md" | "lg" | "xl" | null | undefined;
260
260
  status?: "success" | "error" | "default" | null | undefined;
261
261
  } & class_variance_authority_types.ClassProp) | undefined) => string;
262
262
  interface DropdownProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "onChange">, VariantProps<typeof dropdownTriggerVariants> {
@@ -293,7 +293,7 @@ interface FieldProps {
293
293
  }
294
294
  declare const Field: React$1.FC<FieldProps>;
295
295
 
296
- type PasswordInputSize = "large" | "extra-large";
296
+ type PasswordInputSize = "sm" | "md" | "lg" | "xl";
297
297
  type PasswordInputStatus = "default" | "success" | "error";
298
298
  type PasswordInputVariant = "icons" | "action";
299
299
  interface PasswordInputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "disabled"> {
@@ -315,7 +315,7 @@ interface PasswordInputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputE
315
315
  }
316
316
  declare const PasswordInput: React$1.FC<PasswordInputProps>;
317
317
 
318
- type TextInputSize = "large" | "extra-large";
318
+ type TextInputSize = "sm" | "md" | "lg" | "xl";
319
319
  type TextInputStatus = "default" | "success" | "error";
320
320
  interface TextInputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size" | "disabled"> {
321
321
  label?: string;
@@ -370,7 +370,7 @@ interface RadioGroupProps extends Omit<RadioGroupPrimitive.RadioGroupProps, "chi
370
370
  }
371
371
  declare const RadioGroup: React$1.FC<RadioGroupProps>;
372
372
 
373
- type SearchInputSize = "large" | "extra-large";
373
+ type SearchInputSize = "sm" | "md" | "lg" | "xl";
374
374
  interface SearchInputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size" | "disabled"> {
375
375
  placeholder?: string;
376
376
  leadingIcon?: React$1.ReactNode;
@@ -382,11 +382,9 @@ interface SearchInputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputEle
382
382
  declare const SearchInput: React$1.FC<SearchInputProps>;
383
383
 
384
384
  type SliderDisplay = "flat" | "numeric" | "tooltip";
385
- type SliderType = "single" | "multi";
386
385
  type SliderTooltipPlacement = "top" | "bottom";
387
- interface SliderProps {
386
+ type SliderBaseProps = {
388
387
  display?: SliderDisplay;
389
- type?: SliderType;
390
388
  tooltipPlacement?: SliderTooltipPlacement;
391
389
  /**
392
390
  * Custom formatter for tooltip / numeric / accessibility text.
@@ -404,18 +402,19 @@ interface SliderProps {
404
402
  max?: number;
405
403
  step?: number;
406
404
  disabled?: boolean;
407
- /**
408
- * Current value(s). For `type="single"`, use a single-element array, e.g. `[30]`.
409
- * For `type="multi"`, use two values, e.g. `[0, 25]`.
410
- */
411
- value?: number[];
412
- /**
413
- * Initial value(s) for uncontrolled usage.
414
- */
415
- defaultValue?: number[];
416
- onValueChange?: (value: number[]) => void;
417
405
  className?: string;
418
- }
406
+ };
407
+ type SliderSingleProps = SliderBaseProps & {
408
+ value?: number;
409
+ defaultValue?: number;
410
+ onValueChange?: (value: number) => void;
411
+ };
412
+ type SliderRangeProps = SliderBaseProps & {
413
+ value?: [number, number];
414
+ defaultValue?: [number, number];
415
+ onValueChange?: (value: [number, number]) => void;
416
+ };
417
+ type SliderProps = SliderSingleProps | SliderRangeProps;
419
418
  declare const Slider: React$1.FC<SliderProps>;
420
419
 
421
420
  type TextAreaType = "responsive" | "character-limit" | "plain";