@grandbazar/ui-baza 1.2.13 → 1.2.15

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.ts CHANGED
@@ -496,6 +496,27 @@ declare function SegmentControlItem({ className, children, value, ...props }: TS
496
496
 
497
497
  declare function SegmentControlRoot({ className, children, value, size, ...props }: TSegmentControlRootProps): JSX.Element;
498
498
 
499
+ /**
500
+ * Stepper increments or decrements a controlled numeric value with minus and plus buttons.
501
+ * The buttons disable automatically when the value reaches the min or max bound.
502
+ *
503
+ * Has a default aria-label of "Stepper" — override it to describe what the value controls.
504
+ *
505
+ * @param value - Current value
506
+ * @param onChange - Called with the next value when one of the buttons is clicked
507
+ * @param min - Lower bound; the minus button is disabled once reached (expects min <= max)
508
+ * @param max - Upper bound; the plus button is disabled once reached
509
+ * @param step - Positive amount added or subtracted per click (default 1)
510
+ * @param size - Size of the stepper (md, sm)
511
+ * @param mode - Visual mode of the stepper (primary, secondary)
512
+ * @param disabled - Disables both buttons
513
+ */
514
+ export declare function Stepper({ value, onChange, min, max, step, size, mode, disabled, className, ...props }: TStepperProps): JSX.Element;
515
+
516
+ declare const STEPPER_MODES: readonly ["primary", "secondary"];
517
+
518
+ declare const STEPPER_SIZES: readonly ["md", "sm"];
519
+
499
520
  /**
500
521
  * Switch renders a toggle switch input with label and state indicators.
501
522
  * Supports on, off, and indeterminate states with animated visual feedback.
@@ -819,6 +840,17 @@ declare type TSegmentControlRootProps = Omit<React.HTMLAttributes<HTMLDivElement
819
840
 
820
841
  declare type TSegmentControlValue = string | number;
821
842
 
843
+ export declare type TStepperProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> & {
844
+ value: number;
845
+ onChange: (value: number) => void;
846
+ min?: number;
847
+ max?: number;
848
+ step?: number;
849
+ size?: TArrayElement<typeof STEPPER_SIZES>;
850
+ mode?: TArrayElement<typeof STEPPER_MODES>;
851
+ disabled?: boolean;
852
+ };
853
+
822
854
  declare type TSvgIconProps = React.SVGProps<SVGSVGElement>;
823
855
 
824
856
  declare type TSwitchProps = React.InputHTMLAttributes<HTMLInputElement> & {