bonprix-design-system 0.54.2 → 0.55.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/assets/icons/voucher-icon.svg +4 -0
- package/dist/index.d.ts +106 -46
- package/dist/index.js +4142 -3871
- package/dist/index.js.map +1 -1
- package/dist/styles/dark-theme-variables.css +1 -0
- package/dist/styles/light-theme-variables.css +1 -0
- package/dist/styles/tailwind-components.css +4 -0
- package/dist/voucher-icon-CFqVDei4.js +6 -0
- package/dist/voucher-icon-CFqVDei4.js.map +1 -0
- package/package.json +17 -16
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24">
|
|
2
|
+
<path d="M21.4 6.5a.899.899 0 0 0-.808-.895L20.5 5.6h-17a.9.9 0 0 0-.9.9v2.917a2.694 2.694 0 0 1 0 5.163v2.92l.005.092a.899.899 0 0 0 .895.807h17l.092-.005a.899.899 0 0 0 .802-.802l.005-.092v-2.947a2.697 2.697 0 0 1 0-5.109V6.5Zm1.4 3.416a.804.804 0 0 1-.703.796A1.3 1.3 0 0 0 20.968 12l.006.122a1.299 1.299 0 0 0 1.125 1.165c.38.049.701.372.702.796V17.5a2.3 2.3 0 0 1-2.3 2.3h-17a2.3 2.3 0 0 1-2.3-2.3v-3.408c0-.438.342-.766.736-.8l.122-.017a1.297 1.297 0 0 0 1.057-1.15L3.121 12c0-.679-.52-1.236-1.185-1.294a.805.805 0 0 1-.736-.8V6.5a2.3 2.3 0 0 1 2.3-2.3h17a2.3 2.3 0 0 1 2.3 2.3v3.416Z"/>
|
|
3
|
+
<path d="M14.037 12.929a2.036 2.036 0 1 0 0 4.071 2.036 2.036 0 0 0 0-4.071Zm-.678 2.035a.679.679 0 1 1 1.357 0 .679.679 0 0 1-1.357 0ZM7.93 9.536a2.036 2.036 0 1 1 4.071 0 2.036 2.036 0 0 1-4.071 0Zm2.036-.679a.679.679 0 1 0 0 1.357.679.679 0 0 0 0-1.357Zm4.722-.253a.271.271 0 0 1 .384 0 1.086 1.086 0 0 1 0 1.535l-5.758 5.758a.271.271 0 0 1-.383 0 1.086 1.086 0 0 1 0-1.536l5.757-5.758Z"/>
|
|
4
|
+
</svg>
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,19 @@ import { Ref } from 'react';
|
|
|
11
11
|
import { RefObject } from 'react';
|
|
12
12
|
import { SplideSlide } from '@splidejs/react-splide';
|
|
13
13
|
|
|
14
|
+
declare type AccessibilityLabel = {
|
|
15
|
+
/** Sets an invisible header for the carousel to create a landmark. Do not use both `title` and `aria-labelledby`. */
|
|
16
|
+
title: string;
|
|
17
|
+
/** Defines the level of the used header element. Only applicable if using `title` instead of `aria-labelledby`. */
|
|
18
|
+
titleLevel?: "h2" | "h3" | "h4" | "h5" | "h6";
|
|
19
|
+
"aria-labelledby"?: never;
|
|
20
|
+
} | {
|
|
21
|
+
/** Use if a title already exists on the page. Do not use both `title`and `aria-labelledby`. */
|
|
22
|
+
"aria-labelledby": string;
|
|
23
|
+
title?: never;
|
|
24
|
+
titleLevel?: never;
|
|
25
|
+
};
|
|
26
|
+
|
|
14
27
|
export declare const Accordion: FC<AccordionProps> & {
|
|
15
28
|
Item: typeof Collapsible;
|
|
16
29
|
};
|
|
@@ -153,19 +166,30 @@ declare interface BaseProps {
|
|
|
153
166
|
amount?: number;
|
|
154
167
|
}
|
|
155
168
|
|
|
156
|
-
declare interface BaseProps_10
|
|
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 {
|
|
157
181
|
/** The placeholder text for the input field. */
|
|
158
182
|
placeholder?: string;
|
|
159
183
|
/** Reference to the input element. */
|
|
160
184
|
inputRef?: RefObject<HTMLTextAreaElement>;
|
|
161
185
|
}
|
|
162
186
|
|
|
163
|
-
declare interface
|
|
187
|
+
declare interface BaseProps_12 extends TextInputBaseProps {
|
|
164
188
|
/** Reference to the input element. */
|
|
165
189
|
inputRef?: RefObject<HTMLInputElement>;
|
|
166
190
|
}
|
|
167
191
|
|
|
168
|
-
declare interface
|
|
192
|
+
declare interface BaseProps_13 extends TextInputBaseProps {
|
|
169
193
|
/** Callback that is triggered when the search button is clicked. */
|
|
170
194
|
onSearch: () => void;
|
|
171
195
|
/** Reference to the input element. */
|
|
@@ -232,6 +256,8 @@ declare interface BaseProps_4 {
|
|
|
232
256
|
variant?: "primary" | "secondary" | "tertiary";
|
|
233
257
|
/** Standard HTML global attribute. Controls, if the button can be focused and how. Read more on <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/tabindex">MDN, Attributes - tabindex</a>. */
|
|
234
258
|
tabIndex?: number;
|
|
259
|
+
/** If `true`, inverts the colors of the component. */
|
|
260
|
+
inverted?: boolean;
|
|
235
261
|
}
|
|
236
262
|
|
|
237
263
|
declare interface BaseProps_5 {
|
|
@@ -248,6 +274,8 @@ declare interface BaseProps_5 {
|
|
|
248
274
|
tabIndex?: number;
|
|
249
275
|
/** Alternative label for the screen reader. This can for example be used, if a proper name cannot be setup because of the position in the text. */
|
|
250
276
|
srLabel?: string;
|
|
277
|
+
/** If `true`, inverts the colors of the component. */
|
|
278
|
+
inverted?: boolean;
|
|
251
279
|
}
|
|
252
280
|
|
|
253
281
|
declare interface BaseProps_6 {
|
|
@@ -266,6 +294,17 @@ declare interface BaseProps_6 {
|
|
|
266
294
|
}
|
|
267
295
|
|
|
268
296
|
declare interface BaseProps_7 {
|
|
297
|
+
/** Current price of the item. Available and mandatory for all variants except `no-price`. */
|
|
298
|
+
finalPrice: number;
|
|
299
|
+
/** If set, the voucher is displayed with the given percentage. Optional for all variants except `no-price`. Must be used alongside `voucherDiscount` and `startPrice`! */
|
|
300
|
+
discountInPercent?: number;
|
|
301
|
+
/** The price of the item without voucher discount. Optional for all variants except `no-price`. Must be used alongside `discountInPercent` and `startPrice`! */
|
|
302
|
+
voucherDiscount?: number;
|
|
303
|
+
/** The price of the item without discount. Optional for all variants except `no-price`. Must be used alongside `discountInPercent` and `voucherDiscount`! */
|
|
304
|
+
startPrice?: number;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
declare interface BaseProps_8 {
|
|
269
308
|
/** The id of the input field. */
|
|
270
309
|
id?: string;
|
|
271
310
|
/** The visible label for the input field. */
|
|
@@ -290,7 +329,7 @@ declare interface BaseProps_7 {
|
|
|
290
329
|
ref?: RefObject<HTMLButtonElement>;
|
|
291
330
|
}
|
|
292
331
|
|
|
293
|
-
declare interface
|
|
332
|
+
declare interface BaseProps_9 {
|
|
294
333
|
/** The visible label. **/
|
|
295
334
|
label: string;
|
|
296
335
|
/** If `true`, the switch will be disabled. */
|
|
@@ -301,17 +340,6 @@ declare interface BaseProps_8 {
|
|
|
301
340
|
description?: string;
|
|
302
341
|
}
|
|
303
342
|
|
|
304
|
-
declare interface BaseProps_9 {
|
|
305
|
-
/** This property should contain all of the subcomponents of the TabGroup component (TabGroup.Item, TabGroup.Content, TabGroup.List). */
|
|
306
|
-
children: ReactNode;
|
|
307
|
-
/** The currently active tab. Should be used in conjunction with the `onChange` prop. */
|
|
308
|
-
activeTab: string;
|
|
309
|
-
/** Callback function that is called when the active tab changes. */
|
|
310
|
-
onChange: (value: string) => void;
|
|
311
|
-
/** Sets "the variant. */
|
|
312
|
-
variant?: TabGroupVariant;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
343
|
declare interface BasicProps {
|
|
316
344
|
/** The title. */
|
|
317
345
|
title?: string;
|
|
@@ -342,6 +370,17 @@ declare interface BestProps extends TwoPriceProps {
|
|
|
342
370
|
|
|
343
371
|
export declare const BottomSheet: FC<BottomSheetProps> & Subcomponents;
|
|
344
372
|
|
|
373
|
+
declare interface BottomSheetButtonsBaseProps {
|
|
374
|
+
/** The label of the button. */
|
|
375
|
+
children: string;
|
|
376
|
+
/** If used, an icon will be additionally shown. The value is a name of one icon from our icon set. */
|
|
377
|
+
icon?: Icon_2;
|
|
378
|
+
/** The position of the icon relative to the content. */
|
|
379
|
+
iconPosition?: "start" | "end";
|
|
380
|
+
/** Size of the button. */
|
|
381
|
+
size?: Exclude<ButtonSize, "small">;
|
|
382
|
+
}
|
|
383
|
+
|
|
345
384
|
export declare interface BottomSheetProps {
|
|
346
385
|
/** All of the subcomponents should be placed inside this property. */
|
|
347
386
|
children: ReactNode;
|
|
@@ -349,10 +388,14 @@ export declare interface BottomSheetProps {
|
|
|
349
388
|
isOpen: boolean;
|
|
350
389
|
/** Callback function, that is triggered when the BottomSheet is attempted to be closed. `isOpen` should be set appropriately.*/
|
|
351
390
|
onClose: () => void;
|
|
391
|
+
/** Callback to execute when clicking back icon */
|
|
392
|
+
onBack?: () => void;
|
|
352
393
|
/** The z-index of the BottomSheet. */
|
|
353
394
|
zIndex?: number;
|
|
354
395
|
/** A reference to the root element of the BottomSheet. */
|
|
355
396
|
ref?: Ref<HTMLDivElement>;
|
|
397
|
+
/** If `true`, the horizontal padding around the content will be removed. */
|
|
398
|
+
disableHorizontalPadding?: boolean;
|
|
356
399
|
}
|
|
357
400
|
|
|
358
401
|
export declare const Breadcrumb: FC<BreadcrumbProps>;
|
|
@@ -440,13 +483,9 @@ export declare interface CarouselProps {
|
|
|
440
483
|
|
|
441
484
|
export declare const CarouselV2: FC<CarouselV2Props> & SubComponents;
|
|
442
485
|
|
|
443
|
-
export declare
|
|
486
|
+
export declare type CarouselV2Props = AccessibilityLabel & {
|
|
444
487
|
/** The content of the carousel. Here, all of the subcomponents should be placed. */
|
|
445
488
|
children: ReactNode;
|
|
446
|
-
/** Sets a visual header for the carousel. */
|
|
447
|
-
title: string;
|
|
448
|
-
/** Defines the level of the used header element. */
|
|
449
|
-
titleLevel?: "h2" | "h3" | "h4" | "h5" | "h6";
|
|
450
489
|
/** Amount of slides that will be visible at the same time, thus building a page. */
|
|
451
490
|
perPage?: number | ResponsiveNumber;
|
|
452
491
|
/** Amount of slides to move per arrow icon button click. */
|
|
@@ -469,9 +508,7 @@ export declare interface CarouselV2Props {
|
|
|
469
508
|
disableHorizontalPadding?: boolean;
|
|
470
509
|
/** Moves to a certain page imperatively. It's a one-time operation and is not supposed to fully control Carousel from the outside. */
|
|
471
510
|
moveToPage?: number;
|
|
472
|
-
|
|
473
|
-
"aria-labelledby"?: string;
|
|
474
|
-
}
|
|
511
|
+
};
|
|
475
512
|
|
|
476
513
|
export declare const Checkbox: FC<CheckboxProps>;
|
|
477
514
|
|
|
@@ -604,14 +641,14 @@ declare interface ControlledInputProps_2 extends Omit<ControlGroupProps, "compon
|
|
|
604
641
|
onChange: (value: string) => void;
|
|
605
642
|
}
|
|
606
643
|
|
|
607
|
-
declare interface ControlledInputProps_3 extends
|
|
644
|
+
declare interface ControlledInputProps_3 extends BaseProps_9 {
|
|
608
645
|
/** Controls, whether the switch is checked or not. Should be used in conjunction with `onChange`, if controlled. */
|
|
609
646
|
checked: boolean;
|
|
610
647
|
/** Callback which is triggered when the checked state changes. Should be used in conjunction with `checked`, if controlled from outside. Optional otherwise. */
|
|
611
648
|
onChange: (checked: boolean) => void;
|
|
612
649
|
}
|
|
613
650
|
|
|
614
|
-
declare type ControlledInputProps_4 =
|
|
651
|
+
declare type ControlledInputProps_4 = BaseProps_12 & {
|
|
615
652
|
/** The current value of the input field. Should be used in conjunction with `onChange`, when controlling the input. Should be `undefined` otherwise. */
|
|
616
653
|
value: string;
|
|
617
654
|
/** The default value of the input field. Should be used when the input is uncontrolled. */
|
|
@@ -629,7 +666,7 @@ declare interface ControlledInputProps_5 extends TextFieldBaseProps {
|
|
|
629
666
|
onChange: (value: string) => void;
|
|
630
667
|
}
|
|
631
668
|
|
|
632
|
-
declare interface ControlledInputProps_6 extends
|
|
669
|
+
declare interface ControlledInputProps_6 extends BaseProps_13 {
|
|
633
670
|
/** The current value of the input field. Should be used in conjunction with `onChange`, when controlling the input. Should be `undefined` otherwise. */
|
|
634
671
|
value: string;
|
|
635
672
|
defaultValue?: never;
|
|
@@ -637,7 +674,7 @@ declare interface ControlledInputProps_6 extends BaseProps_12 {
|
|
|
637
674
|
onChange: (value: string) => void;
|
|
638
675
|
}
|
|
639
676
|
|
|
640
|
-
declare interface ControlledProps extends
|
|
677
|
+
declare interface ControlledProps extends BaseProps_11 {
|
|
641
678
|
/** The current value of the input field. Should be used in conjunction with `onChange`, when controlling the input. Should be `undefined` otherwise. */
|
|
642
679
|
value: string;
|
|
643
680
|
/** The default value of the input field. Should be used when the input is uncontrolled. */
|
|
@@ -646,7 +683,7 @@ declare interface ControlledProps extends BaseProps_10 {
|
|
|
646
683
|
onChange: (value: string) => void;
|
|
647
684
|
}
|
|
648
685
|
|
|
649
|
-
declare interface ControlledSelectProps extends
|
|
686
|
+
declare interface ControlledSelectProps extends BaseProps_8 {
|
|
650
687
|
/** The current value of the select. Should be used in conjunction with `onValueChange`. */
|
|
651
688
|
value: string;
|
|
652
689
|
/** The default value of the select. Should be used when select is uncontrolled. */
|
|
@@ -752,7 +789,7 @@ export declare const IconButton: FC<IconButtonProps>;
|
|
|
752
789
|
|
|
753
790
|
export declare type IconButtonProps = AsLink_3 | AsButton_3;
|
|
754
791
|
|
|
755
|
-
declare const iconNames: readonly ["account-balanced", "address-book", "ai", "alarm-clock", "alert", "app", "apple", "armchair", "arrow-down", "arrow-left", "arrow-right", "arrow-up", "back", "bell", "bra", "briefcase", "cake-piece-full", "cake-piece", "calendar", "cart", "catalog", "chat", "check-bold", "check", "child", "closer", "clothing", "clothing-size", "communication", "connection", "control-panel", "cookie", "copy", "credit-card", "crown", "culture", "curtain-almost-dark", "curtain-dark", "curtain-opaque", "curtain-semi-transparent", "curtain-transparent", "customer", "delivery", "denied", "desktop", "diamond", "discount", "dots", "download", "edit", "education", "email", "error", "exchange", "family", "faq", "fast-delivery", "feedback-negative", "feedback-positive", "first-aid", "fitness", "fossil-fuel", "free-delivery", "friendship", "global-warming", "glossary", "handshake", "hanger", "hashtag", "health", "heart-eyes-emoji", "heart-full", "heart", "help", "hint", "home", "home2", "image-placeholder", "info", "invoice", "light-bulb-heart", "light-bulb", "lightning", "location", "locations", "lock", "lock-open", "logged-in", "logout", "mail", "menu", "minus", "newsletter", "not-yet-available", "order", "order2", "out-of-stock", "pause", "personal-data", "phone", "pin", "pinch-zoom", "plane", "play", "plus", "prepaid", "print", "process", "production-site", "puzzle", "qr-code", "quality", "question", "radio", "recently-viewed", "recycling", "religion", "return", "review-full", "review", "rocket", "roots", "scale", "search-categories", "search-form-arrow", "search", "sepa", "service", "share", "shopping-bag", "signpost", "signpost-single", "similar-products", "size", "social", "sold-out", "sort", "spark", "store", "success", "suitcase", "sustainable-animal-welfare", "sustainable-energy-efficient", "sustainable-natural-cosmetics", "sustainable-organic-materials", "sustainable-production", "sustainable-recyclable-design", "sustainable-recycling", "sustainable-resource", "sustainable-social-initiatives", "swords", "tablet", "teacup", "thumb-down-full", "thumb-down", "thumb-up-full", "thumb-up", "trash-bin", "tv", "user", "visibility", "visibility-off", "wallet", "water-pollution", "water-usage", "whatsapp-bell", "whatsapp-phone", "zoom-in", "zoom-out"];
|
|
792
|
+
declare const iconNames: readonly ["account-balanced", "address-book", "ai", "alarm-clock", "alert", "app", "apple", "armchair", "arrow-down", "arrow-left", "arrow-right", "arrow-up", "back", "bell", "bra", "briefcase", "cake-piece-full", "cake-piece", "calendar", "cart", "catalog", "chat", "check-bold", "check", "child", "closer", "clothing", "clothing-size", "communication", "connection", "control-panel", "cookie", "copy", "credit-card", "crown", "culture", "curtain-almost-dark", "curtain-dark", "curtain-opaque", "curtain-semi-transparent", "curtain-transparent", "customer", "delivery", "denied", "desktop", "diamond", "discount", "dots", "download", "edit", "education", "email", "error", "exchange", "family", "faq", "fast-delivery", "feedback-negative", "feedback-positive", "first-aid", "fitness", "fossil-fuel", "free-delivery", "friendship", "global-warming", "glossary", "handshake", "hanger", "hashtag", "health", "heart-eyes-emoji", "heart-full", "heart", "help", "hint", "home", "home2", "image-placeholder", "info", "invoice", "light-bulb-heart", "light-bulb", "lightning", "location", "locations", "lock", "lock-open", "logged-in", "logout", "mail", "menu", "minus", "newsletter", "not-yet-available", "order", "order2", "out-of-stock", "pause", "personal-data", "phone", "pin", "pinch-zoom", "plane", "play", "plus", "prepaid", "print", "process", "production-site", "puzzle", "qr-code", "quality", "question", "radio", "recently-viewed", "recycling", "religion", "return", "review-full", "review", "rocket", "roots", "scale", "search-categories", "search-form-arrow", "search", "sepa", "service", "share", "shopping-bag", "signpost", "signpost-single", "similar-products", "size", "social", "sold-out", "sort", "spark", "store", "success", "suitcase", "sustainable-animal-welfare", "sustainable-energy-efficient", "sustainable-natural-cosmetics", "sustainable-organic-materials", "sustainable-production", "sustainable-recyclable-design", "sustainable-recycling", "sustainable-resource", "sustainable-social-initiatives", "swords", "tablet", "teacup", "thumb-down-full", "thumb-down", "thumb-up-full", "thumb-up", "trash-bin", "tv", "user", "visibility", "visibility-off", "voucher", "wallet", "water-pollution", "water-usage", "whatsapp-bell", "whatsapp-phone", "zoom-in", "zoom-out"];
|
|
756
793
|
|
|
757
794
|
export declare interface IconProps {
|
|
758
795
|
/** One of the valid icon variants. */
|
|
@@ -825,6 +862,11 @@ declare interface NoPriceProps {
|
|
|
825
862
|
size: "small" | "large";
|
|
826
863
|
}
|
|
827
864
|
|
|
865
|
+
declare interface NoPriceProps_2 {
|
|
866
|
+
/** One of the valid variants of the price component. */
|
|
867
|
+
variant: "no-price";
|
|
868
|
+
}
|
|
869
|
+
|
|
828
870
|
declare const Notification_2: FC<NotificationProps>;
|
|
829
871
|
export { Notification_2 as Notification }
|
|
830
872
|
|
|
@@ -872,19 +914,25 @@ export declare const Price: FC<PriceProps>;
|
|
|
872
914
|
|
|
873
915
|
export declare type PriceProps = RegularProps | SaleProps | BestProps | TopDealProps | NoPriceProps;
|
|
874
916
|
|
|
875
|
-
declare const
|
|
917
|
+
export declare const PriceStacked: (props: PriceStackedProps) => default_2.JSX.Element;
|
|
918
|
+
|
|
919
|
+
export declare type PriceStackedProps = RegularProps_2 | SaleProps_2 | NoPriceProps_2;
|
|
920
|
+
|
|
921
|
+
declare const PrimaryButton: ({ children, onClick, type, form, icon, iconPosition, size }: PrimaryButtonProps) => default_2.JSX.Element;
|
|
876
922
|
|
|
877
923
|
declare const PrimaryButton_2: FC<Props_2>;
|
|
878
924
|
|
|
879
|
-
declare interface PrimaryButtonProps {
|
|
880
|
-
/** The label of the button. */
|
|
881
|
-
children: string;
|
|
925
|
+
declare interface PrimaryButtonProps extends BottomSheetButtonsBaseProps {
|
|
882
926
|
/** Callback, which is triggered when the button is activated. */
|
|
883
927
|
onClick?: (event: default_2.MouseEvent<HTMLButtonElement>) => void;
|
|
884
928
|
/** The type attribute of the button. */
|
|
885
929
|
type?: ButtonTypeAttribute;
|
|
886
930
|
/** Standard HTML attribute. Read more on <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/button#form">MDN, Button Element - form</a>. */
|
|
887
931
|
form?: string;
|
|
932
|
+
/** If `true`, the button will be disabled and thus not interactable. */
|
|
933
|
+
disabled?: boolean;
|
|
934
|
+
/** If `true`, a loading spinner will be shown instead of the content. */
|
|
935
|
+
loading?: boolean;
|
|
888
936
|
}
|
|
889
937
|
|
|
890
938
|
declare type Props = ControlledInputProps | UncontrolledInputProps;
|
|
@@ -942,6 +990,10 @@ declare interface Props_5 {
|
|
|
942
990
|
value: string;
|
|
943
991
|
/** The label of the radio button. */
|
|
944
992
|
label: string;
|
|
993
|
+
/** Suffix that will be placed on the far right side inside the `<label>` to further visualize the item's value, e.g. with icon(s) or logo(s). Make sure to only include allowed children here to avoid irregular HTML markup. */
|
|
994
|
+
suffix?: ReactNode;
|
|
995
|
+
/** Additional content to be displayed when item is selected. */
|
|
996
|
+
additional?: ReactNode;
|
|
945
997
|
}
|
|
946
998
|
|
|
947
999
|
declare interface Props_6 {
|
|
@@ -974,7 +1026,7 @@ declare interface Props_9 {
|
|
|
974
1026
|
|
|
975
1027
|
export declare const RadioGroup: FC<RadioGroupProps> & Subcomponents_6;
|
|
976
1028
|
|
|
977
|
-
declare const RadioGroupItem:
|
|
1029
|
+
declare const RadioGroupItem: ({ value, label, additional, suffix }: Props_5) => default_2.JSX.Element;
|
|
978
1030
|
|
|
979
1031
|
export declare type RadioGroupProps = ControlledInputProps_2 | UncontrolledInputProps_2;
|
|
980
1032
|
|
|
@@ -1005,6 +1057,11 @@ declare interface RegularProps extends BaseProps_6 {
|
|
|
1005
1057
|
variant: "regular";
|
|
1006
1058
|
}
|
|
1007
1059
|
|
|
1060
|
+
declare interface RegularProps_2 extends BaseProps_7 {
|
|
1061
|
+
/** One of the valid variants of the price component. */
|
|
1062
|
+
variant: "regular";
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1008
1065
|
export declare const RemovedItemPlaceholder: FC<RemovedItemPlaceholderProps>;
|
|
1009
1066
|
|
|
1010
1067
|
export declare interface RemovedItemPlaceholderProps {
|
|
@@ -1022,6 +1079,11 @@ declare interface SaleProps extends TwoPriceProps {
|
|
|
1022
1079
|
variant: "sale";
|
|
1023
1080
|
}
|
|
1024
1081
|
|
|
1082
|
+
declare interface SaleProps_2 extends BaseProps_7 {
|
|
1083
|
+
/** One of the valid variants of the price component. */
|
|
1084
|
+
variant: "sale";
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1025
1087
|
export declare const ScrollArea: FC<ScrollAreaProps>;
|
|
1026
1088
|
|
|
1027
1089
|
export declare interface ScrollAreaProps {
|
|
@@ -1041,14 +1103,11 @@ export declare const SearchField: FC<SearchFieldProps>;
|
|
|
1041
1103
|
|
|
1042
1104
|
export declare type SearchFieldProps = ControlledInputProps_6 | UncontrolledInputProps_6;
|
|
1043
1105
|
|
|
1044
|
-
declare const SecondaryButton: ({ children }: SecondaryButtonProps) => default_2.JSX.Element;
|
|
1106
|
+
declare const SecondaryButton: ({ children, icon, iconPosition, size }: SecondaryButtonProps) => default_2.JSX.Element;
|
|
1045
1107
|
|
|
1046
1108
|
declare const SecondaryButton_2: FC<Props_3>;
|
|
1047
1109
|
|
|
1048
|
-
declare
|
|
1049
|
-
/** The label of the button. */
|
|
1050
|
-
children: string;
|
|
1051
|
-
}
|
|
1110
|
+
declare type SecondaryButtonProps = BottomSheetButtonsBaseProps;
|
|
1052
1111
|
|
|
1053
1112
|
export declare const Select: FC<SelectProps> & Subcomponents_7;
|
|
1054
1113
|
|
|
@@ -1234,7 +1293,7 @@ export declare const Switch: FC<SwitchProps>;
|
|
|
1234
1293
|
|
|
1235
1294
|
export declare type SwitchProps = ControlledInputProps_3 | UncontrolledInputProps_3;
|
|
1236
1295
|
|
|
1237
|
-
declare interface TabBoxProps extends
|
|
1296
|
+
declare interface TabBoxProps extends BaseProps_10 {
|
|
1238
1297
|
variant?: "tab-box";
|
|
1239
1298
|
/** If true, the tab items will occupy the available width. */
|
|
1240
1299
|
fullWidth?: boolean;
|
|
@@ -1257,7 +1316,7 @@ export declare type TabGroupProps = TabBoxProps | TabProps;
|
|
|
1257
1316
|
|
|
1258
1317
|
declare type TabGroupVariant = "tab" | "tab-box";
|
|
1259
1318
|
|
|
1260
|
-
declare interface TabProps extends
|
|
1319
|
+
declare interface TabProps extends BaseProps_10 {
|
|
1261
1320
|
variant?: "tab";
|
|
1262
1321
|
fullWidth?: never;
|
|
1263
1322
|
}
|
|
@@ -1435,6 +1494,7 @@ export declare const tailwindConfig: {
|
|
|
1435
1494
|
error: string;
|
|
1436
1495
|
alert: string;
|
|
1437
1496
|
success: string;
|
|
1497
|
+
"success-inverse": string;
|
|
1438
1498
|
info: string;
|
|
1439
1499
|
};
|
|
1440
1500
|
sale: string;
|
|
@@ -1600,14 +1660,14 @@ declare interface UncontrolledInputProps_2 extends Omit<ControlGroupProps, "comp
|
|
|
1600
1660
|
onChange?: (value: string) => void;
|
|
1601
1661
|
}
|
|
1602
1662
|
|
|
1603
|
-
declare interface UncontrolledInputProps_3 extends
|
|
1663
|
+
declare interface UncontrolledInputProps_3 extends BaseProps_9 {
|
|
1604
1664
|
checked?: never;
|
|
1605
1665
|
/** The default value of the switch. Should be used when the switch is uncontrolled. */
|
|
1606
1666
|
defaultChecked: boolean;
|
|
1607
1667
|
onChange?: (checked: boolean) => void;
|
|
1608
1668
|
}
|
|
1609
1669
|
|
|
1610
|
-
declare type UncontrolledInputProps_4 =
|
|
1670
|
+
declare type UncontrolledInputProps_4 = BaseProps_12 & {
|
|
1611
1671
|
value?: never;
|
|
1612
1672
|
defaultValue: string;
|
|
1613
1673
|
onChange?: (value: string) => void;
|
|
@@ -1619,20 +1679,20 @@ declare interface UncontrolledInputProps_5 extends TextFieldBaseProps {
|
|
|
1619
1679
|
onChange?: (value: string) => void;
|
|
1620
1680
|
}
|
|
1621
1681
|
|
|
1622
|
-
declare interface UncontrolledInputProps_6 extends
|
|
1682
|
+
declare interface UncontrolledInputProps_6 extends BaseProps_13 {
|
|
1623
1683
|
value?: never;
|
|
1624
1684
|
/** The default value of the input field. Should be used when the input is uncontrolled. */
|
|
1625
1685
|
defaultValue: string;
|
|
1626
1686
|
onChange?: (value: string) => void;
|
|
1627
1687
|
}
|
|
1628
1688
|
|
|
1629
|
-
declare interface UncontrolledProps extends
|
|
1689
|
+
declare interface UncontrolledProps extends BaseProps_11 {
|
|
1630
1690
|
value?: never;
|
|
1631
1691
|
defaultValue: string;
|
|
1632
1692
|
onChange?: (value: string) => void;
|
|
1633
1693
|
}
|
|
1634
1694
|
|
|
1635
|
-
declare interface UncontrolledSelectProps extends
|
|
1695
|
+
declare interface UncontrolledSelectProps extends BaseProps_8 {
|
|
1636
1696
|
value?: never;
|
|
1637
1697
|
defaultValue: string;
|
|
1638
1698
|
onValueChange?: (value: string) => void;
|