krl-alfred 2.23.13 → 2.23.15
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/components/Accordion/Accordion.styled.d.ts +21 -7
- package/dist/components/Accordion/stories/Accordion.stories.d.ts +105 -28
- package/dist/components/Accordion/stories/Accordion.stories.js +73 -129
- package/dist/components/ActionButton/ActionButton.styled.d.ts +51 -17
- package/dist/components/ActionButton/stories/ActionButton.stories.d.ts +210 -18
- package/dist/components/ActionButton/stories/ActionButton.stories.js +87 -140
- package/dist/components/AddressCard/AddressCard.styled.d.ts +6 -2
- package/dist/components/AddressCard/stories/AddressCard.stories.d.ts +148 -26
- package/dist/components/AddressCard/stories/AddressCard.stories.js +96 -167
- package/dist/components/Agreement/Agreement.styled.d.ts +3 -1
- package/dist/components/Agreement/stories/Agreement.stories.d.ts +263 -1
- package/dist/components/Agreement/stories/Agreement.stories.js +89 -11
- package/dist/components/Alert/Alert.styled.d.ts +3 -1
- package/dist/components/Alert/stories/Alert.stories.d.ts +138 -8
- package/dist/components/Alert/stories/Alert.stories.js +68 -119
- package/dist/components/AutocompleteInput/AutocompleteInput.styled.d.ts +12 -4
- package/dist/components/AutocompleteInput/stories/AutocompleteInput.stories.d.ts +737 -2
- package/dist/components/AutocompleteInput/stories/AutocompleteInput.stories.js +161 -74
- package/dist/components/Badges/layouts/belt/belt.styled.d.ts +3 -1
- package/dist/components/Badges/layouts/dark/dark.styled.d.ts +3 -1
- package/dist/components/Badges/layouts/text/text.styled.d.ts +3 -1
- package/dist/components/Badges/stories/Badges.stories.d.ts +228 -10
- package/dist/components/Badges/stories/Badges.stories.js +113 -55
- package/dist/components/BannerCard/BannerCard.styled.d.ts +3 -1
- package/dist/components/BannerCard/stories/BannerCard.stories.d.ts +278 -5
- package/dist/components/BannerCard/stories/BannerCard.stories.js +82 -24
- package/dist/components/BlogCard/BlogCard.styled.d.ts +3 -1
- package/dist/components/BlogCard/stories/BlogCard.stories.d.ts +161 -9
- package/dist/components/BlogCard/stories/BlogCard.stories.js +84 -41
- package/dist/components/Breadcrumbs/Breadcrumbs.styled.d.ts +39 -13
- package/dist/components/Breadcrumbs/stories/Breadcrumbs.stories.d.ts +380 -10
- package/dist/components/Breadcrumbs/stories/Breadcrumbs.stories.js +170 -13
- package/dist/components/Button/Button.styled.d.ts +6 -2
- package/dist/components/Button/stories/Button.stories.d.ts +301 -49
- package/dist/components/Button/stories/Button.stories.js +105 -46
- package/dist/components/CampaignCard/CampaignCard.styled.d.ts +3 -1
- package/dist/components/CampaignCard/stories/CampaignCard.stories.d.ts +118 -3
- package/dist/components/CampaignCard/stories/CampaignCard.stories.js +55 -32
- package/dist/components/CategoryMenu/CategoryMenu.styled.d.ts +24 -8
- package/dist/components/CategoryMenu/stories/CategoryMenu.stories.d.ts +807 -29
- package/dist/components/CategoryMenu/stories/CategoryMenu.stories.js +198 -31
- package/dist/components/Checkbox/Checkbox.styled.d.ts +15 -5
- package/dist/components/Checkbox/stories/Checkbox.stories.d.ts +313 -7
- package/dist/components/Checkbox/stories/Checkbox.stories.js +69 -25
- package/dist/components/CheckboxGroup/CheckboxGroup.styled.d.ts +3 -1
- package/dist/components/CheckboxGroup/stories/CheckboxGroup.stories.d.ts +400 -2
- package/dist/components/CheckboxGroup/stories/CheckboxGroup.stories.js +129 -43
- package/dist/components/CircleProgress/CircleProgress.styled.d.ts +3 -1
- package/dist/components/CircleProgress/stories/CircleProgress.stories.d.ts +142 -3
- package/dist/components/CircleProgress/stories/CircleProgress.stories.js +133 -7
- package/dist/components/CircleProgressPro/CircleProgressPro.styled.d.ts +33 -11
- package/dist/components/CircleProgressPro/stories/CircleProgressPro.stories.d.ts +25 -2
- package/dist/components/CircleProgressPro/stories/CircleProgressPro.stories.js +50 -5
- package/dist/components/ColorPalette/ColorPalette.styled.d.ts +27 -9
- package/dist/components/CouponCode/CouponCode.styled.d.ts +9 -3
- package/dist/components/CouponCode/stories/CouponCode.stories.d.ts +311 -1
- package/dist/components/CouponCode/stories/CouponCode.stories.js +100 -18
- package/dist/components/DescriptionCard/DescriptionCard.styled.d.ts +117 -46
- package/dist/components/DescriptionCard/stories/DescriptionCard.stories.d.ts +788 -2
- package/dist/components/DescriptionCard/stories/DescriptionCard.stories.js +74 -3
- package/dist/components/Divider/Divider.styled.d.ts +6 -2
- package/dist/components/Divider/stories/Divider.stories.d.ts +85 -2
- package/dist/components/Divider/stories/Divider.stories.js +65 -12
- package/dist/components/Dropdown/Dropdown.styled.d.ts +6 -2
- package/dist/components/Dropdown/stories/Dropdown.stories.d.ts +395 -5
- package/dist/components/Dropdown/stories/Dropdown.stories.js +166 -36
- package/dist/components/DropdownButton/DropdownButton.styled.d.ts +9 -3
- package/dist/components/DropdownButton/stories/DropdownButton.stories.d.ts +177 -5
- package/dist/components/DropdownButton/stories/DropdownButton.stories.js +84 -36
- package/dist/components/Icon/Icon.styled.d.ts +9 -3
- package/dist/components/Icon/props.d.ts +2 -2
- package/dist/components/Icon/stories/Icons.stories.d.ts +134 -3
- package/dist/components/Icon/stories/Icons.stories.js +55 -17
- package/dist/components/InfoBox/InfoBox.styled.d.ts +24 -8
- package/dist/components/InfoBox/stories/InfoBox.stories.d.ts +25 -1
- package/dist/components/InfoBox/stories/InfoBox.stories.js +23 -13
- package/dist/components/InlineProgress/InlineProgress.styled.d.ts +3 -1
- package/dist/components/InlineProgress/stories/InlineProgress.stories.d.ts +69 -2
- package/dist/components/InlineProgress/stories/InlineProgress.stories.js +50 -7
- package/dist/components/Input/Input.styled.d.ts +27 -9
- package/dist/components/Input/stories/Input.stories.d.ts +62 -1
- package/dist/components/Input/stories/Input.stories.js +59 -40
- package/dist/components/InstallmentBox/InstallmentBox.styled.d.ts +3 -1
- package/dist/components/InstallmentBox/stories/InstallmentBox.stories.d.ts +41 -2
- package/dist/components/InstallmentBox/stories/InstallmentBox.stories.js +36 -13
- package/dist/components/InsuranceBox/InsuranceBox.styled.d.ts +21 -7
- package/dist/components/InsuranceBox/stories/InsuranceBox.stories.d.ts +53 -0
- package/dist/components/InsuranceBox/stories/InsuranceBox.stories.js +19 -1
- package/dist/components/ListGroup/ListGroup.styled.d.ts +15 -5
- package/dist/components/ListGroup/stories/ListGroup.stories.d.ts +21 -1
- package/dist/components/ListGroup/stories/ListGroup.stories.js +28 -1
- package/dist/components/Loader/Loader.styled.d.ts +6 -2
- package/dist/components/Loader/stories/Loader.stories.d.ts +22 -4
- package/dist/components/Loader/stories/Loader.stories.js +8 -1
- package/dist/components/Modal/Modal.styled.d.ts +7 -5
- package/dist/components/Modal/stories/Modal.stories.d.ts +98 -1
- package/dist/components/Modal/stories/Modal.stories.js +64 -38
- package/dist/components/OptionMenu/OptionMenu.styled.d.ts +15 -5
- package/dist/components/OptionMenu/stories/OptionMenu.stories.d.ts +126 -44
- package/dist/components/OptionMenu/stories/OptionMenu.stories.js +82 -11
- package/dist/components/OtpInput/OtpInput.styled.d.ts +12 -4
- package/dist/components/OtpInput/stories/OtpInput.stories.d.ts +29 -1
- package/dist/components/OtpInput/stories/OtpInput.stories.js +30 -19
- package/dist/components/Pagination/Pagination.styled.d.ts +3 -1
- package/dist/components/Pagination/stories/Pagination.stories.d.ts +95 -3
- package/dist/components/Pagination/stories/Pagination.stories.js +79 -18
- package/dist/components/PaymentCart/PaymentCart.styled.d.ts +36 -12
- package/dist/components/PaymentCart/stories/PaymentCart.stories.d.ts +180 -1
- package/dist/components/PaymentCart/stories/PaymentCart.stories.js +47 -14
- package/dist/components/ProductCardCheckbox/ProductCardCheckbox.d.ts +1 -1
- package/dist/components/ProductCardCheckbox/ProductCardCheckbox.js +2 -2
- package/dist/components/ProductCardCheckbox/ProductCardCheckbox.styled.d.ts +57 -19
- package/dist/components/ProductCardCheckbox/ProductCardCheckbox.styled.js +15 -13
- package/dist/components/ProductCardCheckbox/ProductCardCheckbox.test.d.ts +1 -0
- package/dist/components/ProductCardCheckbox/ProductCardCheckbox.test.js +94 -0
- package/dist/components/ProductCardCheckbox/props.d.ts +2 -0
- package/dist/components/ProductCardCheckbox/props.js +1 -0
- package/dist/components/ProductCardCheckbox/stories/ProductCardCheckbox.stories.d.ts +190 -0
- package/dist/components/ProductCardCheckbox/stories/ProductCardCheckbox.stories.js +51 -14
- package/dist/components/ProductCardHorizontal/ProductCardHorizontal.styled.d.ts +3 -1
- package/dist/components/ProductCardHorizontal/stories/ProductCardHorizontal.stories.d.ts +57 -0
- package/dist/components/ProductCardHorizontal/stories/ProductCardHorizontal.stories.js +29 -9
- package/dist/components/ProductCardHorizontalMd/ProductCardHorizontalMd.styled.d.ts +60 -29
- package/dist/components/ProductCardHorizontalMd/stories/ProductCardHorizontalMd.stories.d.ts +106 -0
- package/dist/components/ProductCardHorizontalMd/stories/ProductCardHorizontalMd.stories.js +35 -10
- package/dist/components/ProductCardHorizontalSm/ProductCardHorizontalSm.styled.d.ts +33 -11
- package/dist/components/ProductCardHorizontalSm/stories/ProductCardHorizontalSm.stories.d.ts +192 -0
- package/dist/components/ProductCardHorizontalSm/stories/ProductCardHorizontalSm.stories.js +72 -40
- package/dist/components/ProductCardRadio/ProductCardRadio.styled.d.ts +43 -17
- package/dist/components/ProductCardRadio/stories/ProductCardRadio.stories.d.ts +275 -12
- package/dist/components/ProductCardRadio/stories/ProductCardRadio.stories.js +72 -105
- package/dist/components/ProductCardVertical/ProductCardVertical.styled.d.ts +63 -21
- package/dist/components/ProductCardVertical/stories/ProductCardVertical.stories.d.ts +139 -0
- package/dist/components/ProductCardVertical/stories/ProductCardVertical.stories.js +19 -1
- package/dist/components/QuantitySelector/QuantitySelector.styled.d.ts +15 -5
- package/dist/components/QuantitySelector/stories/QuantitySelector.stories.d.ts +114 -0
- package/dist/components/QuantitySelector/stories/QuantitySelector.stories.js +58 -12
- package/dist/components/RadioButton/layouts/basic/Basic.styled.d.ts +15 -5
- package/dist/components/RadioButton/layouts/boxed/Boxed.styled.d.ts +24 -8
- package/dist/components/RadioButton/layouts/boxed/Boxed.styled.js +1 -1
- package/dist/components/RadioButton/layouts/boxedMd/BoxedMd.styled.d.ts +12 -4
- package/dist/components/RadioButton/layouts/boxedSm/BoxedSm.styled.d.ts +12 -4
- package/dist/components/RadioButton/layouts/boxedSm/BoxedSm.styled.js +1 -1
- package/dist/components/RadioButton/layouts/boxedWithIcon/BoxedWithIcon.styled.d.ts +25 -12
- package/dist/components/RadioButton/layouts/color/Color.styled.d.ts +9 -3
- package/dist/components/RadioButton/layouts/horizontal/Horizontal.js +2 -2
- package/dist/components/RadioButton/layouts/horizontal/Horizontal.styled.d.ts +55 -18
- package/dist/components/RadioButton/layouts/horizontal/Horizontal.styled.js +1 -1
- package/dist/components/RadioButton/layouts/horizontal/Horizontal.test.d.ts +1 -0
- package/dist/components/RadioButton/layouts/horizontal/Horizontal.test.js +56 -0
- package/dist/components/RadioButton/props.d.ts +4 -0
- package/dist/components/RadioButton/props.js +3 -0
- package/dist/components/RadioButton/stories/RadioButton.stories.d.ts +14 -0
- package/dist/components/RadioButton/stories/RadioButton.stories.js +15 -1
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.styled.d.ts +21 -7
- package/dist/components/RadioGroup/RadioGroup.test.d.ts +1 -0
- package/dist/components/RadioGroup/RadioGroup.test.js +40 -0
- package/dist/components/RadioGroup/props.d.ts +4 -0
- package/dist/components/RadioScale/RadioScale.styled.d.ts +9 -3
- package/dist/components/RadioScale/stories/RadioScale.stories.d.ts +37 -0
- package/dist/components/RadioScale/stories/RadioScale.stories.js +16 -1
- package/dist/components/ReviewBlock/ReviewBlock.styled.d.ts +57 -19
- package/dist/components/ReviewBlock/stories/ReviewBlock.stories.d.ts +108 -0
- package/dist/components/ReviewBlock/stories/ReviewBlock.stories.js +23 -1
- package/dist/components/ReviewCard/ReviewCard.styled.d.ts +39 -13
- package/dist/components/ReviewCard/stories/ReviewCard.stories.d.ts +55 -0
- package/dist/components/ReviewCard/stories/ReviewCard.stories.js +19 -1
- package/dist/components/RichTextEditor/RichTextEditor.js +20 -12
- package/dist/components/RichTextEditor/RichTextEditor.styled.d.ts +36 -22
- package/dist/components/RichTextEditor/RichTextEditor.styled.js +1 -1
- package/dist/components/RichTextEditor/RichTextEditor.test.d.ts +1 -0
- package/dist/components/RichTextEditor/RichTextEditor.test.js +250 -0
- package/dist/components/RichTextEditor/props.d.ts +6 -0
- package/dist/components/RichTextEditor/props.js +3 -0
- package/dist/components/RichTextEditor/stories/RichTextEditor.stories.d.ts +74 -0
- package/dist/components/RichTextEditor/stories/RichTextEditor.stories.js +83 -1
- package/dist/components/RichTextEditor/utils/sanitize.d.ts +5 -3
- package/dist/components/RichTextEditor/utils/sanitize.js +38 -10
- package/dist/components/SearchBox/SearchBox.styled.d.ts +6 -2
- package/dist/components/SearchBox/stories/SearchBox.stories.d.ts +175 -0
- package/dist/components/SearchBox/stories/SearchBox.stories.js +53 -9
- package/dist/components/SelectBox/SelectBox.styled.d.ts +3 -1
- package/dist/components/SelectBox/stories/SelectBox.stories.d.ts +162 -2
- package/dist/components/SelectBox/stories/SelectBox.stories.js +24 -1
- package/dist/components/ShoppingCartProduct/ShoppingCartProduct.styled.d.ts +150 -56
- package/dist/components/ShoppingCartProduct/stories/ShoppingCartProduct.stories.d.ts +227 -0
- package/dist/components/ShoppingCartProduct/stories/ShoppingCartProduct.stories.js +31 -1
- package/dist/components/SkeletonLoader/SkeletonLoader.styled.d.ts +3 -1
- package/dist/components/SkeletonLoader/stories/SkeletonLoader.stories.d.ts +36 -2
- package/dist/components/SkeletonLoader/stories/SkeletonLoader.stories.js +41 -15
- package/dist/components/StepSlider/StepSlider.styled.d.ts +16 -8
- package/dist/components/StepSlider/stories/StepSlider.stories.d.ts +136 -6
- package/dist/components/StepSlider/stories/StepSlider.stories.js +86 -39
- package/dist/components/Stepper/Stepper.styled.d.ts +12 -4
- package/dist/components/Stepper/stories/Stepper.stories.d.ts +149 -3
- package/dist/components/Stepper/stories/Stepper.stories.js +92 -9
- package/dist/components/SuggestBox/SuggestBox.styled.d.ts +3 -1
- package/dist/components/SuggestBox/stories/SuggestBox.stories.d.ts +68 -2
- package/dist/components/SuggestBox/stories/SuggestBox.stories.js +48 -9
- package/dist/components/Table/Table.styled.d.ts +9 -3
- package/dist/components/Table/stories/Table.stories.d.ts +167 -2
- package/dist/components/Table/stories/Table.stories.js +72 -19
- package/dist/components/Tabs/Tabs.styled.d.ts +15 -5
- package/dist/components/Tabs/stories/Tabs.stories.d.ts +168 -12
- package/dist/components/Tabs/stories/Tabs.stories.js +118 -65
- package/dist/components/Tag/Tag.styled.d.ts +13 -8
- package/dist/components/Tag/stories/Tag.stories.d.ts +63 -5
- package/dist/components/Tag/stories/Tag.stories.js +41 -28
- package/dist/components/TagInput/TagInput.styled.d.ts +22 -11
- package/dist/components/TagInput/stories/TagInput.stories.d.ts +172 -4
- package/dist/components/TagInput/stories/TagInput.stories.js +80 -26
- package/dist/components/TextLink/TextLink.styled.d.ts +12 -4
- package/dist/components/TextLink/stories/TextLink.stories.d.ts +153 -7
- package/dist/components/TextLink/stories/TextLink.stories.js +61 -25
- package/dist/components/Textarea/Textarea.styled.d.ts +6 -2
- package/dist/components/Textarea/stories/Textarea.stories.d.ts +180 -6
- package/dist/components/Textarea/stories/Textarea.stories.js +59 -40
- package/dist/components/Toast/Toast.styled.d.ts +6 -2
- package/dist/components/Toast/stories/Toast.stories.d.ts +369 -5
- package/dist/components/Toast/stories/Toast.stories.js +77 -33
- package/dist/components/Tooltip/Tooltip.styled.d.ts +21 -7
- package/dist/components/Tooltip/stories/Tooltip.stories.d.ts +249 -19
- package/dist/components/Tooltip/stories/Tooltip.stories.js +72 -25
- package/dist/components/Typography/Typography.styled.d.ts +21 -7
- package/dist/components/Uploader/Uploader.styled.d.ts +49 -37
- package/dist/components/Uploader/stories/Uploader.stories.d.ts +219 -4
- package/dist/components/Uploader/stories/Uploader.stories.js +86 -46
- package/dist/components/VideoCard/VideoCard.styled.d.ts +18 -6
- package/dist/components/VideoCard/stories/VideoCard.stories.d.ts +50 -2
- package/dist/components/VideoCard/stories/VideoCard.stories.js +40 -10
- package/dist/setupTests.d.ts +1 -0
- package/dist/setupTests.js +3 -0
- package/package.json +9 -1
|
@@ -1,29 +1,71 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ProductCardVerticalStyledProps } from "./props";
|
|
3
|
-
export declare const ProductCardRoot: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
export declare const ProductCardRoot: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
4
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
5
|
+
}, ProductCardVerticalStyledProps>> & string;
|
|
6
|
+
export declare const CardLink: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "style"> & {
|
|
7
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
8
|
+
}> & string;
|
|
9
|
+
export declare const CardBody: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
10
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
11
|
+
}> & string;
|
|
6
12
|
type CartBadgeProps = {
|
|
7
13
|
$isInset?: boolean;
|
|
8
14
|
$isResponsive?: boolean;
|
|
9
15
|
};
|
|
10
|
-
export declare const CartBadge: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export declare const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export declare const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export declare const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export declare const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
export declare const
|
|
26
|
-
|
|
16
|
+
export declare const CartBadge: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
17
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
18
|
+
}, CartBadgeProps>> & string;
|
|
19
|
+
export declare const ImageSection: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
20
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
21
|
+
}, ProductCardVerticalStyledProps>> & string;
|
|
22
|
+
export declare const OutOfStock: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
23
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
24
|
+
}> & string;
|
|
25
|
+
export declare const ImageInfoText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
26
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
27
|
+
}, ProductCardVerticalStyledProps>> & string;
|
|
28
|
+
export declare const ProductCardContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
29
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
30
|
+
}, ProductCardVerticalStyledProps>> & string;
|
|
31
|
+
export declare const ProductTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "style"> & {
|
|
32
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
33
|
+
}, ProductCardVerticalStyledProps>> & string;
|
|
34
|
+
export declare const ProductDescription: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "style"> & {
|
|
35
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
36
|
+
}, ProductCardVerticalStyledProps>> & string;
|
|
37
|
+
export declare const PriceLayout: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
38
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
39
|
+
}, ProductCardVerticalStyledProps>> & string;
|
|
40
|
+
export declare const DiscountPill: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
41
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
42
|
+
}, ProductCardVerticalStyledProps>> & string;
|
|
43
|
+
export declare const PriceStack: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
44
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
45
|
+
}> & string;
|
|
46
|
+
export declare const OldPrice: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
47
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
48
|
+
}> & string;
|
|
49
|
+
export declare const OldPriceAmount: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
50
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
51
|
+
}, ProductCardVerticalStyledProps>> & string;
|
|
52
|
+
export declare const OldPricePeriod: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
53
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
54
|
+
}, ProductCardVerticalStyledProps>> & string;
|
|
55
|
+
export declare const NewPrice: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
56
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
57
|
+
}> & string;
|
|
58
|
+
export declare const NewPriceAmount: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
59
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
60
|
+
}, ProductCardVerticalStyledProps>> & string;
|
|
61
|
+
export declare const NewPricePeriod: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
62
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
63
|
+
}, ProductCardVerticalStyledProps>> & string;
|
|
64
|
+
export declare const CardButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
65
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
66
|
+
}, ProductCardVerticalStyledProps>> & string;
|
|
27
67
|
/** Dış tüketimde kullanım için (root ile aynı) */
|
|
28
|
-
export declare const ProductCardVerticalStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").
|
|
68
|
+
export declare const ProductCardVerticalStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
69
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
70
|
+
}, ProductCardVerticalStyledProps>> & string;
|
|
29
71
|
export {};
|
|
@@ -648,3 +648,142 @@ export declare const ResponsiveWithButton: {
|
|
|
648
648
|
buttonOnClick?(e: React.MouseEvent<HTMLButtonElement, MouseEvent>): void;
|
|
649
649
|
};
|
|
650
650
|
};
|
|
651
|
+
export declare const WithoutLink: {
|
|
652
|
+
args: {
|
|
653
|
+
slug: any;
|
|
654
|
+
component: any;
|
|
655
|
+
title?: string;
|
|
656
|
+
description?: string;
|
|
657
|
+
hasDiscount?: boolean;
|
|
658
|
+
hasCustomBadge?: boolean;
|
|
659
|
+
price?: string;
|
|
660
|
+
oldPrice?: string;
|
|
661
|
+
oldPricePeriod?: string;
|
|
662
|
+
period?: string;
|
|
663
|
+
discountRate?: number;
|
|
664
|
+
isResponsive?: boolean;
|
|
665
|
+
image?: React.ReactNode;
|
|
666
|
+
customBadge?: React.ReactNode;
|
|
667
|
+
hasNewImageType?: boolean;
|
|
668
|
+
hasSquareFillImage?: boolean;
|
|
669
|
+
hasOutOfStock?: boolean;
|
|
670
|
+
hasBeltBadge?: boolean;
|
|
671
|
+
isShowOldPrice?: boolean;
|
|
672
|
+
beltBadgeVariant?: string;
|
|
673
|
+
beltBadgeTitle?: string;
|
|
674
|
+
imageInfoText?: string;
|
|
675
|
+
imageInfoTextVariant?: string;
|
|
676
|
+
isOldPricePeriodUnderline?: boolean;
|
|
677
|
+
hasImageOffset?: boolean;
|
|
678
|
+
hasSingleLineDescription?: boolean;
|
|
679
|
+
hasButton?: boolean;
|
|
680
|
+
buttonOnClick?(e: React.MouseEvent<HTMLButtonElement, MouseEvent>): void;
|
|
681
|
+
buttonText?: string;
|
|
682
|
+
};
|
|
683
|
+
};
|
|
684
|
+
export declare const Empty: {
|
|
685
|
+
args: {
|
|
686
|
+
title: any;
|
|
687
|
+
description: any;
|
|
688
|
+
price: any;
|
|
689
|
+
oldPrice: any;
|
|
690
|
+
period: any;
|
|
691
|
+
slug: any;
|
|
692
|
+
component: any;
|
|
693
|
+
image: any;
|
|
694
|
+
hasDiscount: boolean;
|
|
695
|
+
discountRate: number;
|
|
696
|
+
hasBeltBadge: boolean;
|
|
697
|
+
isShowOldPrice: boolean;
|
|
698
|
+
imageInfoText: any;
|
|
699
|
+
hasButton: boolean;
|
|
700
|
+
hasCustomBadge?: boolean;
|
|
701
|
+
oldPricePeriod?: string;
|
|
702
|
+
isResponsive?: boolean;
|
|
703
|
+
customBadge?: React.ReactNode;
|
|
704
|
+
hasNewImageType?: boolean;
|
|
705
|
+
hasSquareFillImage?: boolean;
|
|
706
|
+
hasOutOfStock?: boolean;
|
|
707
|
+
beltBadgeVariant?: string;
|
|
708
|
+
beltBadgeTitle?: string;
|
|
709
|
+
imageInfoTextVariant?: string;
|
|
710
|
+
isOldPricePeriodUnderline?: boolean;
|
|
711
|
+
hasImageOffset?: boolean;
|
|
712
|
+
hasSingleLineDescription?: boolean;
|
|
713
|
+
buttonOnClick?(e: React.MouseEvent<HTMLButtonElement, MouseEvent>): void;
|
|
714
|
+
buttonText?: string;
|
|
715
|
+
};
|
|
716
|
+
};
|
|
717
|
+
export declare const Complete: {
|
|
718
|
+
args: {
|
|
719
|
+
hasButton: boolean;
|
|
720
|
+
buttonText: string;
|
|
721
|
+
hasSingleLineDescription: boolean;
|
|
722
|
+
hasSquareFillImage: boolean;
|
|
723
|
+
component: ({ href, children, }: {
|
|
724
|
+
href?: string;
|
|
725
|
+
children: React.ReactNode;
|
|
726
|
+
}) => React.JSX.Element;
|
|
727
|
+
title?: string;
|
|
728
|
+
description?: string;
|
|
729
|
+
hasDiscount?: boolean;
|
|
730
|
+
hasCustomBadge?: boolean;
|
|
731
|
+
price?: string;
|
|
732
|
+
oldPrice?: string;
|
|
733
|
+
oldPricePeriod?: string;
|
|
734
|
+
slug?: string;
|
|
735
|
+
period?: string;
|
|
736
|
+
discountRate?: number;
|
|
737
|
+
isResponsive?: boolean;
|
|
738
|
+
image?: React.ReactNode;
|
|
739
|
+
customBadge?: React.ReactNode;
|
|
740
|
+
hasNewImageType?: boolean;
|
|
741
|
+
hasOutOfStock?: boolean;
|
|
742
|
+
hasBeltBadge?: boolean;
|
|
743
|
+
isShowOldPrice?: boolean;
|
|
744
|
+
beltBadgeVariant?: string;
|
|
745
|
+
beltBadgeTitle?: string;
|
|
746
|
+
imageInfoText?: string;
|
|
747
|
+
imageInfoTextVariant?: string;
|
|
748
|
+
isOldPricePeriodUnderline?: boolean;
|
|
749
|
+
hasImageOffset?: boolean;
|
|
750
|
+
buttonOnClick?(e: React.MouseEvent<HTMLButtonElement, MouseEvent>): void;
|
|
751
|
+
};
|
|
752
|
+
};
|
|
753
|
+
export declare const Interactive: {
|
|
754
|
+
render: (args: ProductCardVerticalProps) => React.JSX.Element;
|
|
755
|
+
args: {
|
|
756
|
+
hasButton: boolean;
|
|
757
|
+
buttonText: string;
|
|
758
|
+
component: ({ href, children, }: {
|
|
759
|
+
href?: string;
|
|
760
|
+
children: React.ReactNode;
|
|
761
|
+
}) => React.JSX.Element;
|
|
762
|
+
title?: string;
|
|
763
|
+
description?: string;
|
|
764
|
+
hasDiscount?: boolean;
|
|
765
|
+
hasCustomBadge?: boolean;
|
|
766
|
+
price?: string;
|
|
767
|
+
oldPrice?: string;
|
|
768
|
+
oldPricePeriod?: string;
|
|
769
|
+
slug?: string;
|
|
770
|
+
period?: string;
|
|
771
|
+
discountRate?: number;
|
|
772
|
+
isResponsive?: boolean;
|
|
773
|
+
image?: React.ReactNode;
|
|
774
|
+
customBadge?: React.ReactNode;
|
|
775
|
+
hasNewImageType?: boolean;
|
|
776
|
+
hasSquareFillImage?: boolean;
|
|
777
|
+
hasOutOfStock?: boolean;
|
|
778
|
+
hasBeltBadge?: boolean;
|
|
779
|
+
isShowOldPrice?: boolean;
|
|
780
|
+
beltBadgeVariant?: string;
|
|
781
|
+
beltBadgeTitle?: string;
|
|
782
|
+
imageInfoText?: string;
|
|
783
|
+
imageInfoTextVariant?: string;
|
|
784
|
+
isOldPricePeriodUnderline?: boolean;
|
|
785
|
+
hasImageOffset?: boolean;
|
|
786
|
+
hasSingleLineDescription?: boolean;
|
|
787
|
+
buttonOnClick?(e: React.MouseEvent<HTMLButtonElement, MouseEvent>): void;
|
|
788
|
+
};
|
|
789
|
+
};
|
|
@@ -14,8 +14,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.ResponsiveWithButton = exports.WithButton = exports.WithoutOldPriceUnderline = exports.WithoutOldPrice = exports.SquareFillImage = exports.SingleLineDescription = exports.WithoutImageOffset = exports.Minimal = exports.WithoutImageInfoText = exports.WithoutBeltBadge = exports.DarkImageInfoText = exports.ResponsiveWithNewImageType = exports.WithCustomBadge = exports.OutOfStock = exports.NoDiscount = exports.Default = exports.allProductCardArgs = void 0;
|
|
17
|
+
exports.Interactive = exports.Complete = exports.Empty = exports.WithoutLink = exports.ResponsiveWithButton = exports.WithButton = exports.WithoutOldPriceUnderline = exports.WithoutOldPrice = exports.SquareFillImage = exports.SingleLineDescription = exports.WithoutImageOffset = exports.Minimal = exports.WithoutImageInfoText = exports.WithoutBeltBadge = exports.DarkImageInfoText = exports.ResponsiveWithNewImageType = exports.WithCustomBadge = exports.OutOfStock = exports.NoDiscount = exports.Default = exports.allProductCardArgs = void 0;
|
|
18
18
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
+
var react_1 = __importDefault(require("react"));
|
|
19
20
|
var ProductCardVertical_1 = __importDefault(require("../ProductCardVertical"));
|
|
20
21
|
var props_1 = require("../props");
|
|
21
22
|
var Badges_1 = __importDefault(require("../../Badges"));
|
|
@@ -168,3 +169,20 @@ exports.ResponsiveWithButton = {
|
|
|
168
169
|
name: "Responsive + buton",
|
|
169
170
|
args: __assign(__assign({}, exports.allProductCardArgs), { isResponsive: true, hasButton: true, buttonText: "Hemen Kirala", component: StoryLink }),
|
|
170
171
|
};
|
|
172
|
+
exports.WithoutLink = {
|
|
173
|
+
args: __assign(__assign({}, exports.allProductCardArgs), { slug: null, component: null }),
|
|
174
|
+
};
|
|
175
|
+
exports.Empty = {
|
|
176
|
+
args: __assign(__assign({}, exports.allProductCardArgs), { title: null, description: null, price: null, oldPrice: null, period: null, slug: null, component: null, image: null, hasDiscount: false, discountRate: 0, hasBeltBadge: false, isShowOldPrice: false, imageInfoText: null, hasButton: false }),
|
|
177
|
+
};
|
|
178
|
+
exports.Complete = {
|
|
179
|
+
args: __assign(__assign({}, exports.allProductCardArgs), { hasButton: true, buttonText: "Hemen Kirala", hasSingleLineDescription: true, hasSquareFillImage: true, component: StoryLink }),
|
|
180
|
+
};
|
|
181
|
+
var InteractiveStory = function (args) {
|
|
182
|
+
var _a = react_1.default.useState(0), clicks = _a[0], setClicks = _a[1];
|
|
183
|
+
return ((0, jsx_runtime_1.jsxs)("div", __assign({ style: { maxWidth: "240px" } }, { children: [(0, jsx_runtime_1.jsx)(ProductCardVertical_1.default, __assign({}, args, { hasButton: true, buttonText: clicks > 0 ? "Kirala (".concat(clicks, ")") : args.buttonText || "Kirala", buttonOnClick: function () { return setClicks(function (c) { return c + 1; }); } })), (0, jsx_runtime_1.jsxs)("p", __assign({ style: { marginTop: 12, font: "var(--caption-medium-11-13)" } }, { children: ["Buton t\u0131klama: ", clicks] }))] })));
|
|
184
|
+
};
|
|
185
|
+
exports.Interactive = {
|
|
186
|
+
render: function (args) { return (0, jsx_runtime_1.jsx)(InteractiveStory, __assign({}, args)); },
|
|
187
|
+
args: __assign(__assign({}, exports.allProductCardArgs), { hasButton: true, buttonText: "Kirala", component: StoryLink }),
|
|
188
|
+
};
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { QuantitySelectorStyledProps } from "./props";
|
|
3
|
-
export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web",
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
3
|
+
export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
4
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
5
|
+
}> & string;
|
|
6
|
+
export declare const Label: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "style"> & {
|
|
7
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
8
|
+
}> & string;
|
|
9
|
+
export declare const Controls: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
10
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
11
|
+
}, QuantitySelectorStyledProps>> & string;
|
|
12
|
+
export declare const QuantityValue: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
13
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
14
|
+
}, QuantitySelectorStyledProps>> & string;
|
|
15
|
+
export declare const SelectorButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style"> & {
|
|
16
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
17
|
+
}, QuantitySelectorStyledProps>> & string;
|
|
@@ -4,6 +4,15 @@ declare const _default: {
|
|
|
4
4
|
component: ({ label, id, orientation, quantity, onIncrement, onDecrement, onRemove, hasRemove, hasLoading, hasError, errorText, hasDisableActions, hasDisableIncrement, }: import("../props").QuantitySelector) => React.JSX.Element;
|
|
5
5
|
tags: string[];
|
|
6
6
|
argTypes: {
|
|
7
|
+
label: {
|
|
8
|
+
control: string;
|
|
9
|
+
};
|
|
10
|
+
id: {
|
|
11
|
+
control: string;
|
|
12
|
+
};
|
|
13
|
+
quantity: {
|
|
14
|
+
control: string;
|
|
15
|
+
};
|
|
7
16
|
orientation: {
|
|
8
17
|
control: string;
|
|
9
18
|
options: readonly ["horizontal", "vertical"];
|
|
@@ -17,6 +26,9 @@ declare const _default: {
|
|
|
17
26
|
hasError: {
|
|
18
27
|
control: string;
|
|
19
28
|
};
|
|
29
|
+
errorText: {
|
|
30
|
+
control: string;
|
|
31
|
+
};
|
|
20
32
|
hasDisableActions: {
|
|
21
33
|
control: string;
|
|
22
34
|
};
|
|
@@ -41,6 +53,12 @@ export declare const Horizontal: {
|
|
|
41
53
|
quantity: number;
|
|
42
54
|
label: string;
|
|
43
55
|
id: string;
|
|
56
|
+
hasRemove: boolean;
|
|
57
|
+
hasLoading: boolean;
|
|
58
|
+
hasError: boolean;
|
|
59
|
+
errorText: string;
|
|
60
|
+
hasDisableActions: boolean;
|
|
61
|
+
hasDisableIncrement: boolean;
|
|
44
62
|
};
|
|
45
63
|
};
|
|
46
64
|
export declare const Vertical: {
|
|
@@ -49,6 +67,12 @@ export declare const Vertical: {
|
|
|
49
67
|
label: any;
|
|
50
68
|
quantity: number;
|
|
51
69
|
id: string;
|
|
70
|
+
hasRemove: boolean;
|
|
71
|
+
hasLoading: boolean;
|
|
72
|
+
hasError: boolean;
|
|
73
|
+
errorText: string;
|
|
74
|
+
hasDisableActions: boolean;
|
|
75
|
+
hasDisableIncrement: boolean;
|
|
52
76
|
};
|
|
53
77
|
};
|
|
54
78
|
export declare const WithRemove: {
|
|
@@ -58,6 +82,11 @@ export declare const WithRemove: {
|
|
|
58
82
|
quantity: number;
|
|
59
83
|
label: string;
|
|
60
84
|
id: string;
|
|
85
|
+
hasLoading: boolean;
|
|
86
|
+
hasError: boolean;
|
|
87
|
+
errorText: string;
|
|
88
|
+
hasDisableActions: boolean;
|
|
89
|
+
hasDisableIncrement: boolean;
|
|
61
90
|
};
|
|
62
91
|
};
|
|
63
92
|
export declare const DisabledActions: {
|
|
@@ -67,6 +96,25 @@ export declare const DisabledActions: {
|
|
|
67
96
|
quantity: number;
|
|
68
97
|
label: string;
|
|
69
98
|
id: string;
|
|
99
|
+
hasRemove: boolean;
|
|
100
|
+
hasLoading: boolean;
|
|
101
|
+
hasError: boolean;
|
|
102
|
+
errorText: string;
|
|
103
|
+
hasDisableIncrement: boolean;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
export declare const DisabledIncrement: {
|
|
107
|
+
args: {
|
|
108
|
+
orientation: string;
|
|
109
|
+
hasDisableIncrement: boolean;
|
|
110
|
+
quantity: number;
|
|
111
|
+
label: string;
|
|
112
|
+
id: string;
|
|
113
|
+
hasRemove: boolean;
|
|
114
|
+
hasLoading: boolean;
|
|
115
|
+
hasError: boolean;
|
|
116
|
+
errorText: string;
|
|
117
|
+
hasDisableActions: boolean;
|
|
70
118
|
};
|
|
71
119
|
};
|
|
72
120
|
export declare const WithError: {
|
|
@@ -77,6 +125,10 @@ export declare const WithError: {
|
|
|
77
125
|
quantity: number;
|
|
78
126
|
label: string;
|
|
79
127
|
id: string;
|
|
128
|
+
hasRemove: boolean;
|
|
129
|
+
hasLoading: boolean;
|
|
130
|
+
hasDisableActions: boolean;
|
|
131
|
+
hasDisableIncrement: boolean;
|
|
80
132
|
};
|
|
81
133
|
};
|
|
82
134
|
export declare const Loading: {
|
|
@@ -86,5 +138,67 @@ export declare const Loading: {
|
|
|
86
138
|
quantity: number;
|
|
87
139
|
label: string;
|
|
88
140
|
id: string;
|
|
141
|
+
hasRemove: boolean;
|
|
142
|
+
hasError: boolean;
|
|
143
|
+
errorText: string;
|
|
144
|
+
hasDisableActions: boolean;
|
|
145
|
+
hasDisableIncrement: boolean;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
export declare const Empty: {
|
|
149
|
+
args: {
|
|
150
|
+
quantity: number;
|
|
151
|
+
label: any;
|
|
152
|
+
id: string;
|
|
153
|
+
orientation: "horizontal";
|
|
154
|
+
hasRemove: boolean;
|
|
155
|
+
hasLoading: boolean;
|
|
156
|
+
hasError: boolean;
|
|
157
|
+
errorText: string;
|
|
158
|
+
hasDisableActions: boolean;
|
|
159
|
+
hasDisableIncrement: boolean;
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
export declare const WithoutLabel: {
|
|
163
|
+
args: {
|
|
164
|
+
label: any;
|
|
165
|
+
id: string;
|
|
166
|
+
quantity: number;
|
|
167
|
+
orientation: "horizontal";
|
|
168
|
+
hasRemove: boolean;
|
|
169
|
+
hasLoading: boolean;
|
|
170
|
+
hasError: boolean;
|
|
171
|
+
errorText: string;
|
|
172
|
+
hasDisableActions: boolean;
|
|
173
|
+
hasDisableIncrement: boolean;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
export declare const Complete: {
|
|
177
|
+
args: {
|
|
178
|
+
orientation: string;
|
|
179
|
+
label: string;
|
|
180
|
+
quantity: number;
|
|
181
|
+
hasRemove: boolean;
|
|
182
|
+
hasError: boolean;
|
|
183
|
+
errorText: string;
|
|
184
|
+
hasDisableIncrement: boolean;
|
|
185
|
+
id: string;
|
|
186
|
+
hasLoading: boolean;
|
|
187
|
+
hasDisableActions: boolean;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
export declare const Interactive: {
|
|
191
|
+
render: (args: any) => React.JSX.Element;
|
|
192
|
+
args: {
|
|
193
|
+
quantity: number;
|
|
194
|
+
hasRemove: boolean;
|
|
195
|
+
id: string;
|
|
196
|
+
label: string;
|
|
197
|
+
orientation: "horizontal";
|
|
198
|
+
hasLoading: boolean;
|
|
199
|
+
hasError: boolean;
|
|
200
|
+
errorText: string;
|
|
201
|
+
hasDisableActions: boolean;
|
|
202
|
+
hasDisableIncrement: boolean;
|
|
89
203
|
};
|
|
90
204
|
};
|
|
@@ -14,18 +14,36 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.Loading = exports.WithError = exports.DisabledActions = exports.WithRemove = exports.Vertical = exports.Horizontal = void 0;
|
|
17
|
+
exports.Interactive = exports.Complete = exports.WithoutLabel = exports.Empty = exports.Loading = exports.WithError = exports.DisabledIncrement = exports.DisabledActions = exports.WithRemove = exports.Vertical = exports.Horizontal = void 0;
|
|
18
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
+
var react_1 = __importDefault(require("react"));
|
|
18
20
|
var QuantitySelector_1 = __importDefault(require("../QuantitySelector"));
|
|
19
21
|
var props_1 = require("../props");
|
|
22
|
+
var baseArgs = {
|
|
23
|
+
quantity: 10,
|
|
24
|
+
label: 'Miktar seç',
|
|
25
|
+
id: 'quantity-selector',
|
|
26
|
+
orientation: 'horizontal',
|
|
27
|
+
hasRemove: false,
|
|
28
|
+
hasLoading: false,
|
|
29
|
+
hasError: false,
|
|
30
|
+
errorText: '',
|
|
31
|
+
hasDisableActions: false,
|
|
32
|
+
hasDisableIncrement: false,
|
|
33
|
+
};
|
|
20
34
|
exports.default = {
|
|
21
35
|
title: 'Components/QuantitySelector',
|
|
22
36
|
component: QuantitySelector_1.default,
|
|
23
37
|
tags: ['autodocs'],
|
|
24
38
|
argTypes: {
|
|
39
|
+
label: { control: 'text' },
|
|
40
|
+
id: { control: 'text' },
|
|
41
|
+
quantity: { control: 'number' },
|
|
25
42
|
orientation: { control: 'select', options: props_1.orientations },
|
|
26
43
|
hasRemove: { control: 'boolean' },
|
|
27
44
|
hasLoading: { control: 'boolean' },
|
|
28
45
|
hasError: { control: 'boolean' },
|
|
46
|
+
errorText: { control: 'text' },
|
|
29
47
|
hasDisableActions: { control: 'boolean' },
|
|
30
48
|
hasDisableIncrement: { control: 'boolean' },
|
|
31
49
|
onIncrement: { action: 'incremented' },
|
|
@@ -33,26 +51,54 @@ exports.default = {
|
|
|
33
51
|
onRemove: { action: 'removed' },
|
|
34
52
|
},
|
|
35
53
|
};
|
|
36
|
-
var defaultArgs = {
|
|
37
|
-
quantity: 10,
|
|
38
|
-
label: 'Miktar seç',
|
|
39
|
-
id: 'quantity-selector',
|
|
40
|
-
};
|
|
41
54
|
exports.Horizontal = {
|
|
42
|
-
args: __assign(__assign({},
|
|
55
|
+
args: __assign(__assign({}, baseArgs), { orientation: 'horizontal' }),
|
|
43
56
|
};
|
|
44
57
|
exports.Vertical = {
|
|
45
|
-
args: __assign(__assign({},
|
|
58
|
+
args: __assign(__assign({}, baseArgs), { orientation: 'vertical', label: null }),
|
|
46
59
|
};
|
|
47
60
|
exports.WithRemove = {
|
|
48
|
-
args: __assign(__assign({},
|
|
61
|
+
args: __assign(__assign({}, baseArgs), { orientation: 'horizontal', hasRemove: true }),
|
|
49
62
|
};
|
|
50
63
|
exports.DisabledActions = {
|
|
51
|
-
args: __assign(__assign({},
|
|
64
|
+
args: __assign(__assign({}, baseArgs), { orientation: 'horizontal', hasDisableActions: true, quantity: 1 }),
|
|
65
|
+
};
|
|
66
|
+
exports.DisabledIncrement = {
|
|
67
|
+
args: __assign(__assign({}, baseArgs), { orientation: 'horizontal', hasDisableIncrement: true, quantity: 5 }),
|
|
52
68
|
};
|
|
53
69
|
exports.WithError = {
|
|
54
|
-
args: __assign(__assign({},
|
|
70
|
+
args: __assign(__assign({}, baseArgs), { orientation: 'vertical', hasError: true, errorText: 'Stokta yok' }),
|
|
55
71
|
};
|
|
56
72
|
exports.Loading = {
|
|
57
|
-
args: __assign(__assign({},
|
|
73
|
+
args: __assign(__assign({}, baseArgs), { orientation: 'horizontal', hasLoading: true }),
|
|
74
|
+
};
|
|
75
|
+
exports.Empty = {
|
|
76
|
+
args: __assign(__assign({}, baseArgs), { quantity: 0, label: null, id: 'quantity-empty' }),
|
|
77
|
+
};
|
|
78
|
+
exports.WithoutLabel = {
|
|
79
|
+
args: __assign(__assign({}, baseArgs), { label: null, id: 'quantity-no-label' }),
|
|
80
|
+
};
|
|
81
|
+
exports.Complete = {
|
|
82
|
+
args: __assign(__assign({}, baseArgs), { orientation: 'horizontal', label: 'Adet', quantity: 3, hasRemove: true, hasError: true, errorText: 'Bu üründen daha fazla ekleyemezsiniz', hasDisableIncrement: true, id: 'quantity-complete' }),
|
|
83
|
+
};
|
|
84
|
+
var InteractiveStory = function (args) {
|
|
85
|
+
var _a = react_1.default.useState(Number(args.quantity) || 1), quantity = _a[0], setQuantity = _a[1];
|
|
86
|
+
var _b = react_1.default.useState(quantity <= 1), hasRemove = _b[0], setHasRemove = _b[1];
|
|
87
|
+
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(QuantitySelector_1.default, __assign({}, args, { quantity: quantity, hasRemove: hasRemove, onIncrement: function () {
|
|
88
|
+
setQuantity(function (q) { return q + 1; });
|
|
89
|
+
setHasRemove(false);
|
|
90
|
+
}, onDecrement: function () {
|
|
91
|
+
setQuantity(function (q) {
|
|
92
|
+
var next = Math.max(1, q - 1);
|
|
93
|
+
setHasRemove(next <= 1);
|
|
94
|
+
return next;
|
|
95
|
+
});
|
|
96
|
+
}, onRemove: function () {
|
|
97
|
+
setQuantity(0);
|
|
98
|
+
setHasRemove(true);
|
|
99
|
+
} })), (0, jsx_runtime_1.jsxs)("p", __assign({ style: { marginTop: 12, font: 'var(--caption-medium-11-13)' } }, { children: ["Adet: ", quantity] }))] }));
|
|
100
|
+
};
|
|
101
|
+
exports.Interactive = {
|
|
102
|
+
render: function (args) { return (0, jsx_runtime_1.jsx)(InteractiveStory, __assign({}, args)); },
|
|
103
|
+
args: __assign(__assign({}, baseArgs), { quantity: 1, hasRemove: true, id: 'quantity-interactive' }),
|
|
58
104
|
};
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { RadioButtonStyledProps } from "./../../props";
|
|
3
|
-
export declare const Indicator: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
3
|
+
export declare const Indicator: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
4
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
5
|
+
}, RadioButtonStyledProps>> & string;
|
|
6
|
+
export declare const LabelsWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
7
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
8
|
+
}, RadioButtonStyledProps>> & string;
|
|
9
|
+
export declare const LabelText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "style"> & {
|
|
10
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
11
|
+
}, RadioButtonStyledProps>> & string;
|
|
12
|
+
export declare const DescriptionText: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "style"> & {
|
|
13
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
14
|
+
}> & string;
|
|
15
|
+
export declare const BasicStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "style"> & {
|
|
16
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
17
|
+
}, RadioButtonStyledProps>> & string;
|