bonprix-design-system 0.45.3 → 0.46.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 +75 -42
- package/dist/index.js +3910 -3871
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -57,7 +57,7 @@ declare interface AsButton_3 extends BaseProps_3 {
|
|
|
57
57
|
onClick: () => void;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
declare interface AsButton_4 extends
|
|
60
|
+
declare interface AsButton_4 extends BaseProps_7 {
|
|
61
61
|
link?: false;
|
|
62
62
|
onClick: (event: default_2.MouseEvent<HTMLButtonElement>) => void;
|
|
63
63
|
}
|
|
@@ -84,7 +84,7 @@ declare interface AsLink_3 extends BaseProps_3 {
|
|
|
84
84
|
target?: "_blank" | "_self" | "_parent" | "_top";
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
declare interface AsLink_4 extends
|
|
87
|
+
declare interface AsLink_4 extends BaseProps_7, Anchor {
|
|
88
88
|
link: true;
|
|
89
89
|
onClick?: (event: default_2.MouseEvent<HTMLAnchorElement>) => void;
|
|
90
90
|
}
|
|
@@ -111,6 +111,23 @@ declare interface BaseProps {
|
|
|
111
111
|
tabIndex?: number;
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
+
declare interface BaseProps_10 extends HTMLInputAttributes {
|
|
115
|
+
onSearch: () => void;
|
|
116
|
+
onFocus?: () => void;
|
|
117
|
+
onBlur?: () => void;
|
|
118
|
+
inputRef?: RefObject<HTMLInputElement>;
|
|
119
|
+
label?: string;
|
|
120
|
+
name?: string;
|
|
121
|
+
id?: string;
|
|
122
|
+
helperText?: string;
|
|
123
|
+
errorText?: string;
|
|
124
|
+
disabled?: boolean;
|
|
125
|
+
required?: boolean;
|
|
126
|
+
error?: boolean;
|
|
127
|
+
describedBy?: string;
|
|
128
|
+
hideClear?: boolean;
|
|
129
|
+
}
|
|
130
|
+
|
|
114
131
|
declare interface BaseProps_2 {
|
|
115
132
|
icon: Icon_2;
|
|
116
133
|
label: string;
|
|
@@ -132,12 +149,21 @@ declare interface BaseProps_3 {
|
|
|
132
149
|
}
|
|
133
150
|
|
|
134
151
|
declare interface BaseProps_4 {
|
|
152
|
+
currentPrice: number;
|
|
153
|
+
amount?: number;
|
|
154
|
+
isFromPrice?: boolean;
|
|
155
|
+
showUnits?: boolean;
|
|
156
|
+
pricePerUnit?: number;
|
|
157
|
+
size?: "small" | "large";
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
declare interface BaseProps_5 {
|
|
135
161
|
label: string;
|
|
136
162
|
smallLabel?: boolean;
|
|
137
163
|
disabled?: boolean;
|
|
138
164
|
}
|
|
139
165
|
|
|
140
|
-
declare interface
|
|
166
|
+
declare interface BaseProps_6 {
|
|
141
167
|
label?: string;
|
|
142
168
|
placeholder?: string;
|
|
143
169
|
name?: string;
|
|
@@ -153,7 +179,7 @@ declare interface BaseProps_5 {
|
|
|
153
179
|
maxLength?: number;
|
|
154
180
|
}
|
|
155
181
|
|
|
156
|
-
declare interface
|
|
182
|
+
declare interface BaseProps_7 {
|
|
157
183
|
icon: Icon_2;
|
|
158
184
|
label: string;
|
|
159
185
|
id?: string;
|
|
@@ -161,7 +187,7 @@ declare interface BaseProps_6 {
|
|
|
161
187
|
amount?: number;
|
|
162
188
|
}
|
|
163
189
|
|
|
164
|
-
declare interface
|
|
190
|
+
declare interface BaseProps_8 extends HTMLInputAttributes {
|
|
165
191
|
onFocus?: () => void;
|
|
166
192
|
onBlur?: () => void;
|
|
167
193
|
inputRef?: RefObject<HTMLInputElement>;
|
|
@@ -176,7 +202,7 @@ declare interface BaseProps_7 extends HTMLInputAttributes {
|
|
|
176
202
|
describedBy?: string;
|
|
177
203
|
}
|
|
178
204
|
|
|
179
|
-
declare interface
|
|
205
|
+
declare interface BaseProps_9 extends HTMLInputAttributes {
|
|
180
206
|
onFocus?: () => void;
|
|
181
207
|
onBlur?: () => void;
|
|
182
208
|
label?: string;
|
|
@@ -195,23 +221,6 @@ declare interface BaseProps_8 extends HTMLInputAttributes {
|
|
|
195
221
|
maxLength?: number;
|
|
196
222
|
}
|
|
197
223
|
|
|
198
|
-
declare interface BaseProps_9 extends HTMLInputAttributes {
|
|
199
|
-
onSearch: () => void;
|
|
200
|
-
onFocus?: () => void;
|
|
201
|
-
onBlur?: () => void;
|
|
202
|
-
inputRef?: RefObject<HTMLInputElement>;
|
|
203
|
-
label?: string;
|
|
204
|
-
name?: string;
|
|
205
|
-
id?: string;
|
|
206
|
-
helperText?: string;
|
|
207
|
-
errorText?: string;
|
|
208
|
-
disabled?: boolean;
|
|
209
|
-
required?: boolean;
|
|
210
|
-
error?: boolean;
|
|
211
|
-
describedBy?: string;
|
|
212
|
-
hideClear?: boolean;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
224
|
declare interface BasicProps {
|
|
216
225
|
title?: string;
|
|
217
226
|
alt: string;
|
|
@@ -226,6 +235,11 @@ export declare interface BenefitTagProps {
|
|
|
226
235
|
size?: "large" | "small";
|
|
227
236
|
}
|
|
228
237
|
|
|
238
|
+
declare interface BestProps extends TwoPriceProps {
|
|
239
|
+
variant: "best-price";
|
|
240
|
+
startPrice: number;
|
|
241
|
+
}
|
|
242
|
+
|
|
229
243
|
export declare const BottomSheet: FC<BottomSheetProps>;
|
|
230
244
|
|
|
231
245
|
export declare interface BottomSheetProps {
|
|
@@ -363,30 +377,30 @@ declare interface ControlledInputProps extends ControlGroupProps {
|
|
|
363
377
|
onChange: (value: string) => void;
|
|
364
378
|
}
|
|
365
379
|
|
|
366
|
-
declare interface ControlledInputProps_2 extends
|
|
380
|
+
declare interface ControlledInputProps_2 extends BaseProps_5 {
|
|
367
381
|
checked: boolean;
|
|
368
382
|
onChange: (checked: boolean) => void;
|
|
369
383
|
}
|
|
370
384
|
|
|
371
|
-
declare type ControlledInputProps_3 =
|
|
385
|
+
declare type ControlledInputProps_3 = BaseProps_8 & {
|
|
372
386
|
value: string;
|
|
373
387
|
defaultValue?: never;
|
|
374
388
|
onChange: (value: string) => void;
|
|
375
389
|
};
|
|
376
390
|
|
|
377
|
-
declare interface ControlledInputProps_4 extends
|
|
391
|
+
declare interface ControlledInputProps_4 extends BaseProps_9 {
|
|
378
392
|
value: string;
|
|
379
393
|
defaultValue?: never;
|
|
380
394
|
onChange: (value: string) => void;
|
|
381
395
|
}
|
|
382
396
|
|
|
383
|
-
declare interface ControlledInputProps_5 extends
|
|
397
|
+
declare interface ControlledInputProps_5 extends BaseProps_10 {
|
|
384
398
|
value: string;
|
|
385
399
|
defaultValue?: never;
|
|
386
400
|
onChange: (value: string) => void;
|
|
387
401
|
}
|
|
388
402
|
|
|
389
|
-
declare interface ControlledProps extends
|
|
403
|
+
declare interface ControlledProps extends BaseProps_6 {
|
|
390
404
|
value: string;
|
|
391
405
|
defaultValue?: never;
|
|
392
406
|
onChange: (value: string) => void;
|
|
@@ -509,6 +523,11 @@ export declare interface ModalProps {
|
|
|
509
523
|
zIndex?: number;
|
|
510
524
|
}
|
|
511
525
|
|
|
526
|
+
declare interface NoPriceProps {
|
|
527
|
+
variant: "no-price";
|
|
528
|
+
size: "small" | "large";
|
|
529
|
+
}
|
|
530
|
+
|
|
512
531
|
declare const Notification_2: FC<NotificationProps>;
|
|
513
532
|
export { Notification_2 as Notification }
|
|
514
533
|
|
|
@@ -539,15 +558,7 @@ export declare type PasswordFieldProps = ControlledInputProps_3 | UncontrolledIn
|
|
|
539
558
|
|
|
540
559
|
export declare const Price: FC<PriceProps>;
|
|
541
560
|
|
|
542
|
-
export declare
|
|
543
|
-
variant: "regular" | "sale" | "best-price" | "no-price";
|
|
544
|
-
currentPrice: number;
|
|
545
|
-
size: "small" | "large";
|
|
546
|
-
isFromPrice?: boolean;
|
|
547
|
-
showUnits?: boolean;
|
|
548
|
-
amount?: number;
|
|
549
|
-
oldPrice?: number;
|
|
550
|
-
}
|
|
561
|
+
export declare type PriceProps = RegularProps | SaleProps | BestProps | TopDealProps | NoPriceProps;
|
|
551
562
|
|
|
552
563
|
declare const PrimaryButton: FC<Props_3>;
|
|
553
564
|
|
|
@@ -637,6 +648,14 @@ declare interface RegularImage extends BasicProps {
|
|
|
637
648
|
carousel?: false;
|
|
638
649
|
}
|
|
639
650
|
|
|
651
|
+
declare interface RegularProps extends BaseProps_4 {
|
|
652
|
+
variant: "regular";
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
declare interface SaleProps extends TwoPriceProps {
|
|
656
|
+
variant: "sale";
|
|
657
|
+
}
|
|
658
|
+
|
|
640
659
|
export declare const ScrollArea: FC<ScrollAreaProps>;
|
|
641
660
|
|
|
642
661
|
export declare interface ScrollAreaProps {
|
|
@@ -834,6 +853,20 @@ export declare interface TooltipProps {
|
|
|
834
853
|
content: ReactNode;
|
|
835
854
|
onOpenChange?: (open: boolean) => void;
|
|
836
855
|
zIndex?: number;
|
|
856
|
+
tabIndex?: number;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
declare interface TopDealProps extends BaseProps_4 {
|
|
860
|
+
variant: "top-deal";
|
|
861
|
+
deadlineDate: Date;
|
|
862
|
+
futurePrice: number;
|
|
863
|
+
futureDate: Date;
|
|
864
|
+
increasedPriceRatio: number;
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
declare interface TwoPriceProps extends BaseProps_4 {
|
|
868
|
+
oldPrice: number;
|
|
869
|
+
discountInPercent: number;
|
|
837
870
|
}
|
|
838
871
|
|
|
839
872
|
export declare const Typography: FC<TypographyProps>;
|
|
@@ -860,31 +893,31 @@ declare interface UncontrolledInputProps extends ControlGroupProps {
|
|
|
860
893
|
onChange?: (value: string) => void;
|
|
861
894
|
}
|
|
862
895
|
|
|
863
|
-
declare interface UncontrolledInputProps_2 extends
|
|
896
|
+
declare interface UncontrolledInputProps_2 extends BaseProps_5 {
|
|
864
897
|
checked?: never;
|
|
865
898
|
defaultChecked: boolean;
|
|
866
899
|
onChange?: (checked: boolean) => void;
|
|
867
900
|
}
|
|
868
901
|
|
|
869
|
-
declare type UncontrolledInputProps_3 =
|
|
902
|
+
declare type UncontrolledInputProps_3 = BaseProps_8 & {
|
|
870
903
|
value?: never;
|
|
871
904
|
defaultValue: string;
|
|
872
905
|
onChange?: (value: string) => void;
|
|
873
906
|
};
|
|
874
907
|
|
|
875
|
-
declare interface UncontrolledInputProps_4 extends
|
|
908
|
+
declare interface UncontrolledInputProps_4 extends BaseProps_9 {
|
|
876
909
|
value?: never;
|
|
877
910
|
defaultValue: string;
|
|
878
911
|
onChange?: (value: string) => void;
|
|
879
912
|
}
|
|
880
913
|
|
|
881
|
-
declare interface UncontrolledInputProps_5 extends
|
|
914
|
+
declare interface UncontrolledInputProps_5 extends BaseProps_10 {
|
|
882
915
|
value?: never;
|
|
883
916
|
defaultValue: string;
|
|
884
917
|
onChange?: (value: string) => void;
|
|
885
918
|
}
|
|
886
919
|
|
|
887
|
-
declare interface UncontrolledProps extends
|
|
920
|
+
declare interface UncontrolledProps extends BaseProps_6 {
|
|
888
921
|
value?: never;
|
|
889
922
|
defaultValue: string;
|
|
890
923
|
onChange?: (value: string) => void;
|