@grandbazar/ui-baza 1.2.20 → 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 +6 -0
- package/dist/index.cjs +409 -83
- package/dist/index.d.ts +66 -4
- package/dist/index.js +408 -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;
|
|
@@ -369,14 +367,24 @@ export declare function IconSticker(props: TSvgIconProps): JSX.Element;
|
|
|
369
367
|
|
|
370
368
|
export declare function IconStop(props: TSvgIconProps): JSX.Element;
|
|
371
369
|
|
|
370
|
+
export declare function IconStore(props: TSvgIconProps): JSX.Element;
|
|
371
|
+
|
|
372
|
+
export declare namespace IconStore {
|
|
373
|
+
var Filled: (props: TSvgIconProps) => JSX.Element;
|
|
374
|
+
}
|
|
375
|
+
|
|
372
376
|
export declare function IconSwitch(props: TSvgIconProps): JSX.Element;
|
|
373
377
|
|
|
378
|
+
declare function IconTelegram(props: TSvgIconProps): JSX.Element;
|
|
379
|
+
|
|
374
380
|
export declare function IconTrash(props: TSvgIconProps): JSX.Element;
|
|
375
381
|
|
|
376
382
|
export declare namespace IconTrash {
|
|
377
383
|
var Filled: (props: TSvgIconProps) => JSX.Element;
|
|
378
384
|
}
|
|
379
385
|
|
|
386
|
+
declare function IconVK(props: TSvgIconProps): JSX.Element;
|
|
387
|
+
|
|
380
388
|
export declare function IconXMark(props: TSvgIconProps): JSX.Element;
|
|
381
389
|
|
|
382
390
|
export declare namespace IconXMark {
|
|
@@ -387,6 +395,8 @@ export declare function IconXMarkCircle(props: TSvgIconProps): JSX.Element;
|
|
|
387
395
|
|
|
388
396
|
declare function IconXMarkSmall(props: TSvgIconProps): JSX.Element;
|
|
389
397
|
|
|
398
|
+
declare function IconYandex(props: TSvgIconProps): JSX.Element;
|
|
399
|
+
|
|
390
400
|
export declare const LOCALE_FIRST_DAY_OF_WEEK: TLabel<number>;
|
|
391
401
|
|
|
392
402
|
declare const LOCALES: readonly ["en", "ru"];
|
|
@@ -502,6 +512,33 @@ declare function SegmentControlItem({ className, children, value, ...props }: TS
|
|
|
502
512
|
|
|
503
513
|
declare function SegmentControlRoot({ className, children, value, size, ...props }: TSegmentControlRootProps): JSX.Element;
|
|
504
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
|
+
|
|
505
542
|
/**
|
|
506
543
|
* Stepper increments or decrements a controlled numeric value with minus and plus buttons.
|
|
507
544
|
* The buttons disable automatically when the value reaches the min or max bound.
|
|
@@ -846,6 +883,31 @@ declare type TSegmentControlRootProps = Omit<React.HTMLAttributes<HTMLDivElement
|
|
|
846
883
|
|
|
847
884
|
declare type TSegmentControlValue = string | number;
|
|
848
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
|
+
|
|
849
911
|
export declare type TStepperProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> & {
|
|
850
912
|
value: number;
|
|
851
913
|
onChange: (value: number) => void;
|