bonprix-design-system 0.63.1 → 0.64.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/dist/index.d.ts +59 -154
- package/dist/index.js +13539 -9970
- package/dist/index.js.map +1 -1
- package/dist/styles/fonts.css +5 -5
- package/package.json +35 -31
package/dist/index.d.ts
CHANGED
|
@@ -2,19 +2,28 @@ import { default as Availability } from '@bonprix-ds/react-availability';
|
|
|
2
2
|
import { AvailabilityProps } from '@bonprix-ds/react-availability';
|
|
3
3
|
import { default as BenefitTag } from '@bonprix-ds/react-benefit-tag';
|
|
4
4
|
import { BenefitTagProps } from '@bonprix-ds/react-benefit-tag';
|
|
5
|
+
import { Config } from '@bonprix-ds/utils';
|
|
6
|
+
import { configure } from '@bonprix-ds/utils';
|
|
5
7
|
import { default as Container } from '@bonprix-ds/react-container';
|
|
6
8
|
import { ContainerProps } from '@bonprix-ds/react-container';
|
|
7
|
-
import { Context } from 'react';
|
|
8
9
|
import { default as default_2 } from 'react';
|
|
9
10
|
import { ElementType } from 'react';
|
|
10
11
|
import { FC } from 'react';
|
|
12
|
+
import { default as Grid } from '@bonprix-ds/react-grid';
|
|
13
|
+
import { GridProps } from '@bonprix-ds/react-grid';
|
|
11
14
|
import { HTMLInputAutoCompleteAttribute } from 'react';
|
|
15
|
+
import { default as Icon } from '@bonprix-ds/react-icon';
|
|
16
|
+
import { IconProps } from '@bonprix-ds/react-icon';
|
|
17
|
+
import { IconType } from '@bonprix-ds/react-icon';
|
|
12
18
|
import { Options } from '@splidejs/react-splide';
|
|
19
|
+
import { default as Price } from '@bonprix-ds/react-price';
|
|
20
|
+
import { PriceProps } from '@bonprix-ds/react-price';
|
|
13
21
|
import { ReactElement } from 'react';
|
|
14
22
|
import { ReactNode } from 'react';
|
|
15
23
|
import { Ref } from 'react';
|
|
16
24
|
import { RefObject } from 'react';
|
|
17
25
|
import { SplideSlide } from '@splidejs/react-splide';
|
|
26
|
+
import { SVGSpriteContext } from '@bonprix-ds/utils';
|
|
18
27
|
|
|
19
28
|
declare type AccessibilityLabel = {
|
|
20
29
|
/** Sets an invisible header for the carousel to create a landmark. Do not use both `title` and `aria-labelledby`. */
|
|
@@ -155,7 +164,7 @@ export declare type BadgeIconButtonProps = AsLink | AsButton;
|
|
|
155
164
|
|
|
156
165
|
declare interface BaseProps {
|
|
157
166
|
/** If used, an icon will be additionally shown. The value is a name of one icon from our icon set. */
|
|
158
|
-
icon:
|
|
167
|
+
icon: IconType;
|
|
159
168
|
/** An accessible label of the icon button. */
|
|
160
169
|
label: string;
|
|
161
170
|
/** Standard HTML global attribute. Read more on <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/id">MDN, attributes - id</a>. */
|
|
@@ -166,30 +175,19 @@ declare interface BaseProps {
|
|
|
166
175
|
amount?: number;
|
|
167
176
|
}
|
|
168
177
|
|
|
169
|
-
declare interface BaseProps_10 {
|
|
170
|
-
/** This property should contain all of the subcomponents of the TabGroup component (TabGroup.Item, TabGroup.Content, TabGroup.List). */
|
|
171
|
-
children: ReactNode;
|
|
172
|
-
/** The currently active tab. Should be used in conjunction with the `onChange` prop. */
|
|
173
|
-
activeTab: string;
|
|
174
|
-
/** Callback function that is called when the active tab changes. */
|
|
175
|
-
onChange: (value: string) => void;
|
|
176
|
-
/** Sets "the variant. */
|
|
177
|
-
variant?: TabGroupVariant;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
declare interface BaseProps_11 extends TextInputBaseProps {
|
|
178
|
+
declare interface BaseProps_10 extends TextInputBaseProps {
|
|
181
179
|
/** The placeholder text for the input field. */
|
|
182
180
|
placeholder?: string;
|
|
183
181
|
/** Reference to the input element. */
|
|
184
182
|
inputRef?: RefObject<HTMLTextAreaElement>;
|
|
185
183
|
}
|
|
186
184
|
|
|
187
|
-
declare interface
|
|
185
|
+
declare interface BaseProps_11 extends TextInputBaseProps {
|
|
188
186
|
/** Reference to the input element. */
|
|
189
187
|
inputRef?: RefObject<HTMLInputElement>;
|
|
190
188
|
}
|
|
191
189
|
|
|
192
|
-
declare interface
|
|
190
|
+
declare interface BaseProps_12 extends TextInputBaseProps {
|
|
193
191
|
/** Callback that is triggered when the search button is clicked. */
|
|
194
192
|
onSearch: () => void;
|
|
195
193
|
/** Reference to the input element. */
|
|
@@ -200,7 +198,7 @@ declare interface BaseProps_2 {
|
|
|
200
198
|
/** The visible content of the component. */
|
|
201
199
|
children: string;
|
|
202
200
|
/** If used, an icon will be additionally shown. The value is a name of one icon from our icon set. */
|
|
203
|
-
icon?:
|
|
201
|
+
icon?: IconType;
|
|
204
202
|
/** The position of the icon relative to the content. */
|
|
205
203
|
iconPosition?: "start" | "end";
|
|
206
204
|
/** If true, the width of the component will shrink to the width of the content. */
|
|
@@ -241,7 +239,7 @@ declare interface BaseProps_3 {
|
|
|
241
239
|
|
|
242
240
|
declare interface BaseProps_4 {
|
|
243
241
|
/** Namr of the icon to use. The value must be from our icon set. */
|
|
244
|
-
icon:
|
|
242
|
+
icon: IconType;
|
|
245
243
|
/** An accessible label of the icon button. */
|
|
246
244
|
label: string;
|
|
247
245
|
/** Standard HTML global attribute. Read more on <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/id">MDN, attributes - id</a>. */
|
|
@@ -279,21 +277,6 @@ declare interface BaseProps_5 {
|
|
|
279
277
|
}
|
|
280
278
|
|
|
281
279
|
declare interface BaseProps_6 {
|
|
282
|
-
/** Current price of the item. */
|
|
283
|
-
currentPrice: number;
|
|
284
|
-
/** Amount of items in a pack. */
|
|
285
|
-
amount?: number;
|
|
286
|
-
/** Set it to `true`, if the price of different variants is not the same. */
|
|
287
|
-
isFromPrice?: boolean;
|
|
288
|
-
/** If `true`, the amount of the items in a pack, as well as the price per unit will be additionally shown. */
|
|
289
|
-
showUnits?: boolean;
|
|
290
|
-
/** Price per unit of the item. */
|
|
291
|
-
pricePerUnit?: number;
|
|
292
|
-
/** Size of the price component. */
|
|
293
|
-
size?: "small" | "large";
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
declare interface BaseProps_7 {
|
|
297
280
|
/** Current price of the item. Available and mandatory for all variants except `no-price`. */
|
|
298
281
|
finalPrice: number;
|
|
299
282
|
/** If set, the voucher is displayed with the given percentage. Optional for all variants except `no-price`. Can be used alongside `voucherDiscount` and `startPrice`! */
|
|
@@ -304,7 +287,7 @@ declare interface BaseProps_7 {
|
|
|
304
287
|
startPrice?: number;
|
|
305
288
|
}
|
|
306
289
|
|
|
307
|
-
declare interface
|
|
290
|
+
declare interface BaseProps_7 {
|
|
308
291
|
/** The id of the input field. */
|
|
309
292
|
id?: string;
|
|
310
293
|
/** The visible label for the input field. */
|
|
@@ -329,7 +312,7 @@ declare interface BaseProps_8 {
|
|
|
329
312
|
ref?: RefObject<HTMLButtonElement>;
|
|
330
313
|
}
|
|
331
314
|
|
|
332
|
-
declare interface
|
|
315
|
+
declare interface BaseProps_8 {
|
|
333
316
|
/** The visible label. **/
|
|
334
317
|
label: string;
|
|
335
318
|
/** If `true`, the switch will be disabled. */
|
|
@@ -340,6 +323,17 @@ declare interface BaseProps_9 {
|
|
|
340
323
|
description?: string;
|
|
341
324
|
}
|
|
342
325
|
|
|
326
|
+
declare interface BaseProps_9 {
|
|
327
|
+
/** This property should contain all of the subcomponents of the TabGroup component (TabGroup.Item, TabGroup.Content, TabGroup.List). */
|
|
328
|
+
children: ReactNode;
|
|
329
|
+
/** The currently active tab. Should be used in conjunction with the `onChange` prop. */
|
|
330
|
+
activeTab: string;
|
|
331
|
+
/** Callback function that is called when the active tab changes. */
|
|
332
|
+
onChange: (value: string) => void;
|
|
333
|
+
/** Sets "the variant. */
|
|
334
|
+
variant?: TabGroupVariant;
|
|
335
|
+
}
|
|
336
|
+
|
|
343
337
|
declare interface BasicProps {
|
|
344
338
|
/** The title. */
|
|
345
339
|
title?: string;
|
|
@@ -355,12 +349,6 @@ export { BenefitTag }
|
|
|
355
349
|
|
|
356
350
|
export { BenefitTagProps }
|
|
357
351
|
|
|
358
|
-
declare interface BestProps extends TwoPriceProps {
|
|
359
|
-
variant: "best-price";
|
|
360
|
-
/** The initial price, before the period of the last month. */
|
|
361
|
-
startPrice?: number;
|
|
362
|
-
}
|
|
363
|
-
|
|
364
352
|
export declare const BottomSheet: FC<BottomSheetProps> & SheetSubcomponents;
|
|
365
353
|
|
|
366
354
|
export declare interface BottomSheetProps extends SheetProps {
|
|
@@ -474,6 +462,8 @@ export declare type CarouselV2Props = AccessibilityLabel & {
|
|
|
474
462
|
invertButtons?: boolean;
|
|
475
463
|
/** If set to `true`, the horizontal padding for the arrow buttons will be removed. */
|
|
476
464
|
disableHorizontalPadding?: boolean;
|
|
465
|
+
/** If set to `true`, scrolling via mouse drag will be enabled just like you would expect from a mobile touch pointer. */
|
|
466
|
+
simulateTouch?: boolean;
|
|
477
467
|
/** A reference to the Carousel instance. You can call `moveToPage(pageNumber: number)` on this one, e.g. `carouselRef.current.moveToPage(2)`. */
|
|
478
468
|
ref?: Ref<CarouselV2Ref>;
|
|
479
469
|
};
|
|
@@ -541,8 +531,6 @@ export declare interface CollapsibleProps {
|
|
|
541
531
|
onInitialInView?: () => void;
|
|
542
532
|
}
|
|
543
533
|
|
|
544
|
-
declare type ColumnSpan = Span | 0;
|
|
545
|
-
|
|
546
534
|
declare interface CommonProps {
|
|
547
535
|
/** One of the valid logo variants. */
|
|
548
536
|
variant: Logo_2;
|
|
@@ -550,14 +538,9 @@ declare interface CommonProps {
|
|
|
550
538
|
className?: string;
|
|
551
539
|
}
|
|
552
540
|
|
|
553
|
-
export
|
|
554
|
-
iconSprite?: string;
|
|
555
|
-
logoSprite?: string;
|
|
556
|
-
figurineSprite?: string;
|
|
557
|
-
illustrationSprite?: string;
|
|
558
|
-
}
|
|
541
|
+
export { Config }
|
|
559
542
|
|
|
560
|
-
export
|
|
543
|
+
export { configure }
|
|
561
544
|
|
|
562
545
|
export { Container }
|
|
563
546
|
|
|
@@ -617,14 +600,14 @@ declare interface ControlledInputProps_2 extends Omit<ControlGroupProps, "compon
|
|
|
617
600
|
onChange: (value: string) => void;
|
|
618
601
|
}
|
|
619
602
|
|
|
620
|
-
declare interface ControlledInputProps_3 extends
|
|
603
|
+
declare interface ControlledInputProps_3 extends BaseProps_8 {
|
|
621
604
|
/** Controls, whether the switch is checked or not. Should be used in conjunction with `onChange`, if controlled. */
|
|
622
605
|
checked: boolean;
|
|
623
606
|
/** Callback which is triggered when the checked state changes. Should be used in conjunction with `checked`, if controlled from outside. Optional otherwise. */
|
|
624
607
|
onChange: (checked: boolean) => void;
|
|
625
608
|
}
|
|
626
609
|
|
|
627
|
-
declare type ControlledInputProps_4 =
|
|
610
|
+
declare type ControlledInputProps_4 = BaseProps_11 & {
|
|
628
611
|
/** The current value of the input field. Should be used in conjunction with `onChange`, when controlling the input. Should be `undefined` otherwise. */
|
|
629
612
|
value: string;
|
|
630
613
|
/** The default value of the input field. Should be used when the input is uncontrolled. */
|
|
@@ -642,7 +625,7 @@ declare type ControlledInputProps_5 = TextFieldBaseProps & {
|
|
|
642
625
|
onChange: (value: string) => void;
|
|
643
626
|
};
|
|
644
627
|
|
|
645
|
-
declare interface ControlledInputProps_6 extends
|
|
628
|
+
declare interface ControlledInputProps_6 extends BaseProps_12 {
|
|
646
629
|
/** The current value of the input field. Should be used in conjunction with `onChange`, when controlling the input. Should be `undefined` otherwise. */
|
|
647
630
|
value: string;
|
|
648
631
|
defaultValue?: never;
|
|
@@ -650,7 +633,7 @@ declare interface ControlledInputProps_6 extends BaseProps_13 {
|
|
|
650
633
|
onChange: (value: string) => void;
|
|
651
634
|
}
|
|
652
635
|
|
|
653
|
-
declare interface ControlledProps extends
|
|
636
|
+
declare interface ControlledProps extends BaseProps_10 {
|
|
654
637
|
/** The current value of the input field. Should be used in conjunction with `onChange`, when controlling the input. Should be `undefined` otherwise. */
|
|
655
638
|
value: string;
|
|
656
639
|
/** The default value of the input field. Should be used when the input is uncontrolled. */
|
|
@@ -659,7 +642,7 @@ declare interface ControlledProps extends BaseProps_11 {
|
|
|
659
642
|
onChange: (value: string) => void;
|
|
660
643
|
}
|
|
661
644
|
|
|
662
|
-
declare interface ControlledSelectProps extends
|
|
645
|
+
declare interface ControlledSelectProps extends BaseProps_7 {
|
|
663
646
|
/** The current value of the select. Should be used in conjunction with `onValueChange`. */
|
|
664
647
|
value: string;
|
|
665
648
|
/** The default value of the select. Should be used when select is uncontrolled. */
|
|
@@ -703,43 +686,9 @@ export declare interface FigurineProps {
|
|
|
703
686
|
className?: string;
|
|
704
687
|
}
|
|
705
688
|
|
|
706
|
-
export
|
|
707
|
-
Item: typeof GridItem;
|
|
708
|
-
};
|
|
689
|
+
export { Grid }
|
|
709
690
|
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
declare interface GridItemProps {
|
|
713
|
-
/** The content of the grid item. */
|
|
714
|
-
children?: ReactNode;
|
|
715
|
-
/** The number of columns the item should span. Can be used if the amount of columns is not changed between breakpoints. */
|
|
716
|
-
span?: Span;
|
|
717
|
-
/** The number of columns the item should span on the "s" breakpoint. */
|
|
718
|
-
s?: ColumnSpan;
|
|
719
|
-
/** The number of columns the item should span on the "m" breakpoint. */
|
|
720
|
-
m?: ColumnSpan;
|
|
721
|
-
/** The number of columns the item should span on the "l" breakpoint. */
|
|
722
|
-
l?: ColumnSpan;
|
|
723
|
-
/** The number of columns the item should span on the "xl" breakpoint. */
|
|
724
|
-
xl?: ColumnSpan;
|
|
725
|
-
/** The number of columns the item should span on the "xxl" breakpoint. */
|
|
726
|
-
xxl?: ColumnSpan;
|
|
727
|
-
/** The number of columns the item should span on the "xxxl" breakpoint. */
|
|
728
|
-
xxxl?: ColumnSpan;
|
|
729
|
-
/** Additional CSS classes to apply to the grid item. */
|
|
730
|
-
className?: string;
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
export declare interface GridProps {
|
|
734
|
-
/** A place where Grid.Item components should be added. */
|
|
735
|
-
children: ReactNode;
|
|
736
|
-
/** Classes for the Grid wrapper element. Intended mainly for customize gap size. */
|
|
737
|
-
className?: string;
|
|
738
|
-
/** If set to `true`, the grid will not have gutters between items.
|
|
739
|
-
* @deprecated Use `className="gap-x-0"` instead.
|
|
740
|
-
*/
|
|
741
|
-
disableGutters?: boolean;
|
|
742
|
-
}
|
|
691
|
+
export { GridProps }
|
|
743
692
|
|
|
744
693
|
declare interface HTMLInputAttributes {
|
|
745
694
|
/** <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/inputmode" target="_blank">HTML input mode attribute.</a> */
|
|
@@ -770,22 +719,13 @@ declare type HTMLInputPatternAttribute = HTMLInputElement["pattern"];
|
|
|
770
719
|
|
|
771
720
|
declare type HTMLInputSpellCheckAttribute = HTMLInputElement["spellcheck"];
|
|
772
721
|
|
|
773
|
-
export
|
|
774
|
-
|
|
775
|
-
declare type Icon_2 = typeof iconNames[number];
|
|
722
|
+
export { Icon }
|
|
776
723
|
|
|
777
724
|
export declare const IconButton: FC<IconButtonProps>;
|
|
778
725
|
|
|
779
726
|
export declare type IconButtonProps = AsLink_3 | AsButton_3;
|
|
780
727
|
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
export declare interface IconProps {
|
|
784
|
-
/** One of the valid icon variants. */
|
|
785
|
-
variant: Icon_2;
|
|
786
|
-
/** Additional CSS classes. */
|
|
787
|
-
className?: string;
|
|
788
|
-
}
|
|
728
|
+
export { IconProps }
|
|
789
729
|
|
|
790
730
|
export declare const Illustration: ({ variant, className }: IllustrationProps) => default_2.JSX.Element;
|
|
791
731
|
|
|
@@ -879,11 +819,6 @@ export declare interface ModalProps {
|
|
|
879
819
|
}
|
|
880
820
|
|
|
881
821
|
declare interface NoPriceProps {
|
|
882
|
-
variant: "no-price";
|
|
883
|
-
size: "small" | "large";
|
|
884
|
-
}
|
|
885
|
-
|
|
886
|
-
declare interface NoPriceProps_2 {
|
|
887
822
|
/** One of the valid variants of the price component. */
|
|
888
823
|
variant: "no-price";
|
|
889
824
|
}
|
|
@@ -939,19 +874,19 @@ declare interface PositionIndicatorProps {
|
|
|
939
874
|
ref?: Ref<HTMLDivElement>;
|
|
940
875
|
}
|
|
941
876
|
|
|
942
|
-
export
|
|
877
|
+
export { Price }
|
|
943
878
|
|
|
944
|
-
export
|
|
879
|
+
export { PriceProps }
|
|
945
880
|
|
|
946
881
|
export declare const PriceStacked: (props: PriceStackedProps) => default_2.JSX.Element;
|
|
947
882
|
|
|
948
|
-
export declare type PriceStackedProps =
|
|
883
|
+
export declare type PriceStackedProps = RegularProps | SaleProps | NoPriceProps;
|
|
949
884
|
|
|
950
|
-
declare const PrimaryButton: ({ children, onClick, type, form, icon, iconPosition }: SheetPrimaryButtonProps) => default_2.JSX.Element;
|
|
885
|
+
declare const PrimaryButton: ({ children, onClick, type, form, icon, iconPosition, disabled, loading }: SheetPrimaryButtonProps) => default_2.JSX.Element;
|
|
951
886
|
|
|
952
887
|
declare const PrimaryButton_2: FC<Props_2>;
|
|
953
888
|
|
|
954
|
-
declare const PrimaryButton_3: ({ children, onClick, type, form, icon, iconPosition }: SheetPrimaryButtonProps_2) => default_2.JSX.Element;
|
|
889
|
+
declare const PrimaryButton_3: ({ children, onClick, type, form, icon, iconPosition, disabled, loading }: SheetPrimaryButtonProps_2) => default_2.JSX.Element;
|
|
955
890
|
|
|
956
891
|
declare type Props = ControlledInputProps | UncontrolledInputProps;
|
|
957
892
|
|
|
@@ -976,7 +911,7 @@ declare interface Props_4 {
|
|
|
976
911
|
/** The text content of the list item. */
|
|
977
912
|
children: string;
|
|
978
913
|
/** The icon to display in front of the list item. */
|
|
979
|
-
icon?:
|
|
914
|
+
icon?: IconType;
|
|
980
915
|
/** Callback function to be called when the list item is clicked. */
|
|
981
916
|
onClick?: () => void;
|
|
982
917
|
/** If the `type` property of the List is set to `link`, this property is used to set the `href` attribute. */
|
|
@@ -1076,11 +1011,6 @@ declare interface RegularProps extends BaseProps_6 {
|
|
|
1076
1011
|
variant: "regular";
|
|
1077
1012
|
}
|
|
1078
1013
|
|
|
1079
|
-
declare interface RegularProps_2 extends BaseProps_7 {
|
|
1080
|
-
/** One of the valid variants of the price component. */
|
|
1081
|
-
variant: "regular";
|
|
1082
|
-
}
|
|
1083
|
-
|
|
1084
1014
|
export declare const RemovedItemPlaceholder: FC<RemovedItemPlaceholderProps>;
|
|
1085
1015
|
|
|
1086
1016
|
export declare interface RemovedItemPlaceholderProps {
|
|
@@ -1094,11 +1024,7 @@ export declare interface RemovedItemPlaceholderProps {
|
|
|
1094
1024
|
|
|
1095
1025
|
declare type ResponsiveNumber = Partial<Record<Breakpoint, number>>;
|
|
1096
1026
|
|
|
1097
|
-
declare interface SaleProps extends
|
|
1098
|
-
variant: "sale";
|
|
1099
|
-
}
|
|
1100
|
-
|
|
1101
|
-
declare interface SaleProps_2 extends BaseProps_7 {
|
|
1027
|
+
declare interface SaleProps extends BaseProps_6 {
|
|
1102
1028
|
/** One of the valid variants of the price component. */
|
|
1103
1029
|
variant: "sale";
|
|
1104
1030
|
}
|
|
@@ -1125,7 +1051,7 @@ declare interface SheetButtonProps {
|
|
|
1125
1051
|
/** The label of the button. */
|
|
1126
1052
|
children: string;
|
|
1127
1053
|
/** If used, an icon will be additionally shown. The value is a name of one icon from our icon set. */
|
|
1128
|
-
icon?:
|
|
1054
|
+
icon?: IconType;
|
|
1129
1055
|
/** The position of the icon relative to the content. */
|
|
1130
1056
|
iconPosition?: "start" | "end";
|
|
1131
1057
|
}
|
|
@@ -1134,7 +1060,7 @@ declare interface SheetButtonProps_2 {
|
|
|
1134
1060
|
/** The label of the button. */
|
|
1135
1061
|
children: string;
|
|
1136
1062
|
/** If used, an icon will be additionally shown. The value is a name of one icon from our icon set. */
|
|
1137
|
-
icon?:
|
|
1063
|
+
icon?: IconType;
|
|
1138
1064
|
/** The position of the icon relative to the content. */
|
|
1139
1065
|
iconPosition?: "start" | "end";
|
|
1140
1066
|
}
|
|
@@ -1346,8 +1272,6 @@ declare interface SourceSetMapper {
|
|
|
1346
1272
|
xxxl?: string;
|
|
1347
1273
|
}
|
|
1348
1274
|
|
|
1349
|
-
declare type Span = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
1350
|
-
|
|
1351
1275
|
export declare const Spinner: FC<SpinnerProps>;
|
|
1352
1276
|
|
|
1353
1277
|
declare interface SpinnerProps {
|
|
@@ -1418,13 +1342,13 @@ declare type SubmitResetVariantProps = AsButton_2 & {
|
|
|
1418
1342
|
type?: "submit" | "reset";
|
|
1419
1343
|
};
|
|
1420
1344
|
|
|
1421
|
-
export
|
|
1345
|
+
export { SVGSpriteContext }
|
|
1422
1346
|
|
|
1423
1347
|
export declare const Switch: FC<SwitchProps>;
|
|
1424
1348
|
|
|
1425
1349
|
export declare type SwitchProps = ControlledInputProps_3 | UncontrolledInputProps_3;
|
|
1426
1350
|
|
|
1427
|
-
declare interface TabBoxProps extends
|
|
1351
|
+
declare interface TabBoxProps extends BaseProps_9 {
|
|
1428
1352
|
variant?: "tab-box";
|
|
1429
1353
|
/** If true, the tab items will occupy the available width. */
|
|
1430
1354
|
fullWidth?: boolean;
|
|
@@ -1447,7 +1371,7 @@ export declare type TabGroupProps = TabBoxProps | TabProps;
|
|
|
1447
1371
|
|
|
1448
1372
|
declare type TabGroupVariant = "tab" | "tab-box";
|
|
1449
1373
|
|
|
1450
|
-
declare interface TabProps extends
|
|
1374
|
+
declare interface TabProps extends BaseProps_9 {
|
|
1451
1375
|
variant?: "tab";
|
|
1452
1376
|
fullWidth?: never;
|
|
1453
1377
|
}
|
|
@@ -1726,25 +1650,6 @@ export declare interface TooltipProps {
|
|
|
1726
1650
|
tabIndex?: number;
|
|
1727
1651
|
}
|
|
1728
1652
|
|
|
1729
|
-
declare interface TopDealProps extends BaseProps_6 {
|
|
1730
|
-
variant: "top-deal";
|
|
1731
|
-
/** The date, when the deal ends. */
|
|
1732
|
-
deadlineDate: Date;
|
|
1733
|
-
/** The future price of the item. The price will apply on the `futureDate`. */
|
|
1734
|
-
futurePrice: number;
|
|
1735
|
-
/** The date, when the `futurePrice` will apply. */
|
|
1736
|
-
futureDate: Date;
|
|
1737
|
-
/** The ratio between the current and start price. Can be both positive and negative. */
|
|
1738
|
-
increasedPriceRatio: number;
|
|
1739
|
-
}
|
|
1740
|
-
|
|
1741
|
-
declare interface TwoPriceProps extends BaseProps_6 {
|
|
1742
|
-
/** The previous price of the item. */
|
|
1743
|
-
oldPrice: number;
|
|
1744
|
-
/** The discount in percent, that is applied to the item (current price compared to the old price). */
|
|
1745
|
-
discountInPercent: number;
|
|
1746
|
-
}
|
|
1747
|
-
|
|
1748
1653
|
export declare const Typography: FC<TypographyProps>;
|
|
1749
1654
|
|
|
1750
1655
|
declare type TypographyColor = "inherit" | "primary" | "on-primary-high" | "on-primary-mid" | "on-bg-high" | "on-bg-mid" | "on-bg-low" | "error" | "alert" | "success" | "info" | "sale" | "on-sale" | "disabled" | "sustainable" | "black" | "white";
|
|
@@ -1794,14 +1699,14 @@ declare interface UncontrolledInputProps_2 extends Omit<ControlGroupProps, "comp
|
|
|
1794
1699
|
onChange?: (value: string) => void;
|
|
1795
1700
|
}
|
|
1796
1701
|
|
|
1797
|
-
declare interface UncontrolledInputProps_3 extends
|
|
1702
|
+
declare interface UncontrolledInputProps_3 extends BaseProps_8 {
|
|
1798
1703
|
checked?: never;
|
|
1799
1704
|
/** The default value of the switch. Should be used when the switch is uncontrolled. */
|
|
1800
1705
|
defaultChecked: boolean;
|
|
1801
1706
|
onChange?: (checked: boolean) => void;
|
|
1802
1707
|
}
|
|
1803
1708
|
|
|
1804
|
-
declare type UncontrolledInputProps_4 =
|
|
1709
|
+
declare type UncontrolledInputProps_4 = BaseProps_11 & {
|
|
1805
1710
|
value?: never;
|
|
1806
1711
|
defaultValue: string;
|
|
1807
1712
|
onChange?: (value: string) => void;
|
|
@@ -1813,20 +1718,20 @@ declare type UncontrolledInputProps_5 = TextFieldBaseProps & {
|
|
|
1813
1718
|
onChange?: (value: string) => void;
|
|
1814
1719
|
};
|
|
1815
1720
|
|
|
1816
|
-
declare interface UncontrolledInputProps_6 extends
|
|
1721
|
+
declare interface UncontrolledInputProps_6 extends BaseProps_12 {
|
|
1817
1722
|
value?: never;
|
|
1818
1723
|
/** The default value of the input field. Should be used when the input is uncontrolled. */
|
|
1819
1724
|
defaultValue: string;
|
|
1820
1725
|
onChange?: (value: string) => void;
|
|
1821
1726
|
}
|
|
1822
1727
|
|
|
1823
|
-
declare interface UncontrolledProps extends
|
|
1728
|
+
declare interface UncontrolledProps extends BaseProps_10 {
|
|
1824
1729
|
value?: never;
|
|
1825
1730
|
defaultValue: string;
|
|
1826
1731
|
onChange?: (value: string) => void;
|
|
1827
1732
|
}
|
|
1828
1733
|
|
|
1829
|
-
declare interface UncontrolledSelectProps extends
|
|
1734
|
+
declare interface UncontrolledSelectProps extends BaseProps_7 {
|
|
1830
1735
|
value?: never;
|
|
1831
1736
|
defaultValue: string;
|
|
1832
1737
|
onValueChange?: (value: string) => void;
|