@grandbazar/ui-baza 1.2.21 → 1.3.0
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 +1 -0
- package/dist/index.cjs +380 -83
- package/dist/index.d.ts +60 -4
- package/dist/index.js +380 -84
- package/dist/style.css +150 -11
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,10 +2,6 @@ import { ComponentProps } from 'react';
|
|
|
2
2
|
import { CSSProperties } from 'react';
|
|
3
3
|
import { default as default_2 } from 'react';
|
|
4
4
|
import { Dispatch } from 'react';
|
|
5
|
-
import { IconGoogle } from './logos';
|
|
6
|
-
import { IconTelegram } from './logos';
|
|
7
|
-
import { IconVK } from './logos';
|
|
8
|
-
import { IconYandex } from './logos';
|
|
9
5
|
import { JSX } from 'react/jsx-runtime';
|
|
10
6
|
import { ReactPortal } from 'react';
|
|
11
7
|
import { SetStateAction } from 'react';
|
|
@@ -296,6 +292,8 @@ export declare namespace IconGear {
|
|
|
296
292
|
var Filled: (props: TSvgIconProps) => JSX.Element;
|
|
297
293
|
}
|
|
298
294
|
|
|
295
|
+
declare function IconGoogle(props: TSvgIconProps): JSX.Element;
|
|
296
|
+
|
|
299
297
|
export declare function IconHanger(props: TSvgIconProps): JSX.Element;
|
|
300
298
|
|
|
301
299
|
export declare function IconHome(props: TSvgIconProps): JSX.Element;
|
|
@@ -377,12 +375,16 @@ export declare namespace IconStore {
|
|
|
377
375
|
|
|
378
376
|
export declare function IconSwitch(props: TSvgIconProps): JSX.Element;
|
|
379
377
|
|
|
378
|
+
declare function IconTelegram(props: TSvgIconProps): JSX.Element;
|
|
379
|
+
|
|
380
380
|
export declare function IconTrash(props: TSvgIconProps): JSX.Element;
|
|
381
381
|
|
|
382
382
|
export declare namespace IconTrash {
|
|
383
383
|
var Filled: (props: TSvgIconProps) => JSX.Element;
|
|
384
384
|
}
|
|
385
385
|
|
|
386
|
+
declare function IconVK(props: TSvgIconProps): JSX.Element;
|
|
387
|
+
|
|
386
388
|
export declare function IconXMark(props: TSvgIconProps): JSX.Element;
|
|
387
389
|
|
|
388
390
|
export declare namespace IconXMark {
|
|
@@ -393,6 +395,8 @@ export declare function IconXMarkCircle(props: TSvgIconProps): JSX.Element;
|
|
|
393
395
|
|
|
394
396
|
declare function IconXMarkSmall(props: TSvgIconProps): JSX.Element;
|
|
395
397
|
|
|
398
|
+
declare function IconYandex(props: TSvgIconProps): JSX.Element;
|
|
399
|
+
|
|
396
400
|
export declare const LOCALE_FIRST_DAY_OF_WEEK: TLabel<number>;
|
|
397
401
|
|
|
398
402
|
declare const LOCALES: readonly ["en", "ru"];
|
|
@@ -508,6 +512,33 @@ declare function SegmentControlItem({ className, children, value, ...props }: TS
|
|
|
508
512
|
|
|
509
513
|
declare function SegmentControlRoot({ className, children, value, size, ...props }: TSegmentControlRootProps): JSX.Element;
|
|
510
514
|
|
|
515
|
+
/**
|
|
516
|
+
* Slider selects a single controlled numeric value by dragging a handle along a track.
|
|
517
|
+
* Values always snap to `step` and stay inside `[min, max]`.
|
|
518
|
+
*
|
|
519
|
+
* Renders a handle with `role="slider"` — pass `aria-label` to describe what the value controls.
|
|
520
|
+
*
|
|
521
|
+
* @param value - Current value
|
|
522
|
+
* @param onChange - Called with the next value on drag, track click or keyboard interaction
|
|
523
|
+
* @param min - Lower bound (default 0)
|
|
524
|
+
* @param max - Upper bound (default 100)
|
|
525
|
+
* @param step - Positive increment the value snaps to (default 1)
|
|
526
|
+
* @param marks - Tick marks under the track; a number renders itself as the label, `{ value }` renders a dot without one
|
|
527
|
+
* @param disabled - Disables interaction and removes the handle from the tab order
|
|
528
|
+
*
|
|
529
|
+
* @example
|
|
530
|
+
* <Slider value={value} onChange={setValue} />
|
|
531
|
+
*
|
|
532
|
+
* <Slider.Range value={[from, to]} onChange={setRange} min={1} max={10} marks={createRange(1, 10)} />
|
|
533
|
+
*/
|
|
534
|
+
export declare function Slider({ value, onChange, ...props }: TSliderProps): React.ReactElement;
|
|
535
|
+
|
|
536
|
+
export declare namespace Slider {
|
|
537
|
+
var Range: typeof SliderRange;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
declare function SliderRange({ value, onChange, ...props }: TSliderRangeProps): React.ReactElement;
|
|
541
|
+
|
|
511
542
|
/**
|
|
512
543
|
* Stepper increments or decrements a controlled numeric value with minus and plus buttons.
|
|
513
544
|
* The buttons disable automatically when the value reaches the min or max bound.
|
|
@@ -852,6 +883,31 @@ declare type TSegmentControlRootProps = Omit<React.HTMLAttributes<HTMLDivElement
|
|
|
852
883
|
|
|
853
884
|
declare type TSegmentControlValue = string | number;
|
|
854
885
|
|
|
886
|
+
declare type TSliderCommonProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue' | 'defaultChecked'> & {
|
|
887
|
+
min?: number;
|
|
888
|
+
max?: number;
|
|
889
|
+
step?: number;
|
|
890
|
+
marks?: TSliderMark[];
|
|
891
|
+
disabled?: boolean;
|
|
892
|
+
};
|
|
893
|
+
|
|
894
|
+
export declare type TSliderMark = number | {
|
|
895
|
+
value: number;
|
|
896
|
+
label?: React.ReactNode;
|
|
897
|
+
};
|
|
898
|
+
|
|
899
|
+
export declare type TSliderProps = TSliderCommonProps & {
|
|
900
|
+
value: number;
|
|
901
|
+
onChange: (value: number) => void;
|
|
902
|
+
};
|
|
903
|
+
|
|
904
|
+
export declare type TSliderRangeProps = TSliderCommonProps & {
|
|
905
|
+
value: TSliderRangeValue;
|
|
906
|
+
onChange: (value: TSliderRangeValue) => void;
|
|
907
|
+
};
|
|
908
|
+
|
|
909
|
+
export declare type TSliderRangeValue = [number, number];
|
|
910
|
+
|
|
855
911
|
export declare type TStepperProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> & {
|
|
856
912
|
value: number;
|
|
857
913
|
onChange: (value: number) => void;
|