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
|
@@ -14,56 +14,92 @@ 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.
|
|
17
|
+
exports.Complete = exports.AlertPositions = exports.AllSizes = exports.AllVariants = exports.LongText = exports.AsLink = exports.WithIconAndAlert = exports.WithAlert = exports.WithIconRight = exports.WithIconLeft = exports.Medium = exports.Small = exports.Secondary = exports.Primary = exports.Default = void 0;
|
|
18
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
19
|
var TextLink_1 = __importDefault(require("../TextLink"));
|
|
19
20
|
var iconList_1 = require("../../Icon/iconList");
|
|
20
21
|
var props_1 = require("../props");
|
|
21
|
-
var
|
|
22
|
+
var baseArgs = {
|
|
22
23
|
children: "Text Link",
|
|
23
24
|
variant: "primary",
|
|
24
25
|
size: "small",
|
|
25
26
|
iconDirection: "left",
|
|
26
27
|
hasAlert: false,
|
|
27
28
|
alertText: "Kopyalandı",
|
|
29
|
+
alertposition: "bottom-right",
|
|
30
|
+
icon: null,
|
|
31
|
+
href: undefined,
|
|
32
|
+
target: undefined,
|
|
33
|
+
onClick: function () { return console.log("clicked"); },
|
|
28
34
|
};
|
|
29
35
|
exports.default = {
|
|
30
|
-
title:
|
|
31
|
-
component: TextLink_1.default,
|
|
32
|
-
tags: [
|
|
36
|
+
title: "Components/TextLink",
|
|
37
|
+
component: function (props) { return ((0, jsx_runtime_1.jsx)("div", __assign({ style: { padding: 24, position: "relative", minHeight: 80 } }, { children: (0, jsx_runtime_1.jsx)(TextLink_1.default, __assign({}, props)) }))); },
|
|
38
|
+
tags: ["autodocs"],
|
|
33
39
|
argTypes: {
|
|
34
|
-
variant: { control:
|
|
35
|
-
size: { control:
|
|
36
|
-
iconDirection: { control:
|
|
37
|
-
icon: { control:
|
|
38
|
-
hasAlert: { control:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
variant: { control: "select", options: props_1.variants },
|
|
41
|
+
size: { control: "select", options: props_1.sizes },
|
|
42
|
+
iconDirection: { control: "select", options: props_1.iconDirections },
|
|
43
|
+
icon: { control: "select", options: Object.keys(iconList_1.iconList) },
|
|
44
|
+
hasAlert: { control: "boolean" },
|
|
45
|
+
alertText: { control: "text" },
|
|
46
|
+
alertposition: { control: "select", options: props_1.alertPositions },
|
|
47
|
+
href: { control: "text" },
|
|
48
|
+
target: { control: "text" },
|
|
49
|
+
children: { control: "text" },
|
|
50
|
+
onClick: { action: "clicked" },
|
|
51
|
+
},
|
|
42
52
|
};
|
|
43
53
|
exports.Default = {
|
|
44
|
-
args:
|
|
54
|
+
args: __assign({}, baseArgs),
|
|
45
55
|
};
|
|
46
56
|
exports.Primary = {
|
|
47
|
-
args: __assign(__assign({},
|
|
57
|
+
args: __assign(__assign({}, baseArgs), { variant: "primary" }),
|
|
48
58
|
};
|
|
49
59
|
exports.Secondary = {
|
|
50
|
-
args: __assign(__assign({},
|
|
60
|
+
args: __assign(__assign({}, baseArgs), { variant: "secondary" }),
|
|
61
|
+
};
|
|
62
|
+
exports.Small = {
|
|
63
|
+
args: __assign(__assign({}, baseArgs), { size: "small" }),
|
|
64
|
+
};
|
|
65
|
+
exports.Medium = {
|
|
66
|
+
args: __assign(__assign({}, baseArgs), { size: "medium" }),
|
|
51
67
|
};
|
|
52
68
|
exports.WithIconLeft = {
|
|
53
|
-
args: __assign(__assign({},
|
|
69
|
+
args: __assign(__assign({}, baseArgs), { icon: "ArrowSmallLeft", iconDirection: "left" }),
|
|
54
70
|
};
|
|
55
71
|
exports.WithIconRight = {
|
|
56
|
-
args: __assign(__assign({},
|
|
72
|
+
args: __assign(__assign({}, baseArgs), { icon: "ArrowSmallRight", iconDirection: "right" }),
|
|
57
73
|
};
|
|
58
74
|
exports.WithAlert = {
|
|
59
|
-
args: __assign(__assign({},
|
|
60
|
-
};
|
|
61
|
-
exports.Small = {
|
|
62
|
-
args: __assign(__assign({}, defaultArgs), { size: "small" }),
|
|
75
|
+
args: __assign(__assign({}, baseArgs), { hasAlert: true, alertText: "Kopyalandı", children: "Kopyala" }),
|
|
63
76
|
};
|
|
64
|
-
exports.
|
|
65
|
-
args: __assign(__assign({},
|
|
77
|
+
exports.WithIconAndAlert = {
|
|
78
|
+
args: __assign(__assign({}, baseArgs), { icon: "Ticket", iconDirection: "left", hasAlert: true, alertText: "Kopyalandı", children: "Kupon kodunu kopyala" }),
|
|
66
79
|
};
|
|
67
80
|
exports.AsLink = {
|
|
68
|
-
args: __assign(__assign({},
|
|
81
|
+
args: __assign(__assign({}, baseArgs), { href: "https://kiralarsin.com", target: "_blank", children: "Harici Link" }),
|
|
82
|
+
};
|
|
83
|
+
exports.LongText = {
|
|
84
|
+
args: __assign(__assign({}, baseArgs), { children: "Çok uzun bir text link metni: detayları görmek için tıkla", icon: "ArrowSmallRight", iconDirection: "right" }),
|
|
85
|
+
};
|
|
86
|
+
exports.AllVariants = {
|
|
87
|
+
args: baseArgs,
|
|
88
|
+
render: function (args) { return ((0, jsx_runtime_1.jsx)("div", __assign({ style: { display: "flex", gap: 24, padding: 24 } }, { children: props_1.variants.map(function (variant) { return ((0, jsx_runtime_1.jsx)(TextLink_1.default, __assign({}, args, { variant: variant }, { children: variant }), variant)); }) }))); },
|
|
89
|
+
};
|
|
90
|
+
exports.AllSizes = {
|
|
91
|
+
args: baseArgs,
|
|
92
|
+
render: function (args) { return ((0, jsx_runtime_1.jsx)("div", __assign({ style: { display: "flex", gap: 24, alignItems: "center", padding: 24 } }, { children: props_1.sizes.map(function (size) { return ((0, jsx_runtime_1.jsx)(TextLink_1.default, __assign({}, args, { size: size }, { children: size }), size)); }) }))); },
|
|
93
|
+
};
|
|
94
|
+
exports.AlertPositions = {
|
|
95
|
+
args: __assign(__assign({}, baseArgs), { hasAlert: true, alertText: "OK", children: "Tıkla" }),
|
|
96
|
+
render: function (args) { return ((0, jsx_runtime_1.jsx)("div", __assign({ style: {
|
|
97
|
+
display: "grid",
|
|
98
|
+
gridTemplateColumns: "repeat(3, minmax(0, 1fr))",
|
|
99
|
+
gap: 48,
|
|
100
|
+
padding: 48,
|
|
101
|
+
} }, { children: props_1.alertPositions.map(function (alertposition) { return ((0, jsx_runtime_1.jsxs)("div", __assign({ style: { textAlign: "center" } }, { children: [(0, jsx_runtime_1.jsx)("p", __assign({ style: { marginBottom: 8, font: "var(--caption-semi-bold-12-15)" } }, { children: alertposition })), (0, jsx_runtime_1.jsx)(TextLink_1.default, __assign({}, args, { alertposition: alertposition }, { children: alertposition }))] }), alertposition)); }) }))); },
|
|
102
|
+
};
|
|
103
|
+
exports.Complete = {
|
|
104
|
+
args: __assign(__assign({}, baseArgs), { variant: "primary", size: "medium", icon: "ArrowSmallRight", iconDirection: "right", hasAlert: true, alertText: "Kopyalandı", alertposition: "top-right", children: "Komple TextLink" }),
|
|
69
105
|
};
|
|
@@ -2,5 +2,9 @@
|
|
|
2
2
|
import { ContainerProps, TextareaStyledProps } from "./props";
|
|
3
3
|
import { CharCount, FieldDescription, FieldLabel, FieldTop, FieldTopActions } from "../Input/Input.styled";
|
|
4
4
|
export { FieldTop, FieldTopActions, FieldLabel, CharCount, FieldDescription };
|
|
5
|
-
export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").
|
|
6
|
-
|
|
5
|
+
export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
6
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
7
|
+
}, ContainerProps>> & string;
|
|
8
|
+
export declare const TextareaStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "style"> & {
|
|
9
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
10
|
+
}, TextareaStyledProps>> & string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: (
|
|
4
|
+
component: (props: any) => React.JSX.Element;
|
|
5
5
|
tags: string[];
|
|
6
6
|
argTypes: {
|
|
7
7
|
hasError: {
|
|
@@ -32,6 +32,12 @@ declare const _default: {
|
|
|
32
32
|
description: {
|
|
33
33
|
control: string;
|
|
34
34
|
};
|
|
35
|
+
errorMessage: {
|
|
36
|
+
control: string;
|
|
37
|
+
};
|
|
38
|
+
value: {
|
|
39
|
+
control: string;
|
|
40
|
+
};
|
|
35
41
|
onChange: {
|
|
36
42
|
action: string;
|
|
37
43
|
};
|
|
@@ -44,8 +50,15 @@ export declare const Default: {
|
|
|
44
50
|
hasError: boolean;
|
|
45
51
|
label: string;
|
|
46
52
|
height: string;
|
|
53
|
+
width: string;
|
|
47
54
|
resize: string;
|
|
48
55
|
id: string;
|
|
56
|
+
value: string;
|
|
57
|
+
errorMessage: string;
|
|
58
|
+
maxLength: any;
|
|
59
|
+
showMaxLengthCounter: boolean;
|
|
60
|
+
description: any;
|
|
61
|
+
onChange: (e: any) => void;
|
|
49
62
|
};
|
|
50
63
|
};
|
|
51
64
|
export declare const WithError: {
|
|
@@ -55,8 +68,31 @@ export declare const WithError: {
|
|
|
55
68
|
placeholder: string;
|
|
56
69
|
label: string;
|
|
57
70
|
height: string;
|
|
71
|
+
width: string;
|
|
72
|
+
resize: string;
|
|
73
|
+
id: string;
|
|
74
|
+
value: string;
|
|
75
|
+
maxLength: any;
|
|
76
|
+
showMaxLengthCounter: boolean;
|
|
77
|
+
description: any;
|
|
78
|
+
onChange: (e: any) => void;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
export declare const WithErrorAndValue: {
|
|
82
|
+
args: {
|
|
83
|
+
value: string;
|
|
84
|
+
hasError: boolean;
|
|
85
|
+
errorMessage: string;
|
|
86
|
+
placeholder: string;
|
|
87
|
+
label: string;
|
|
88
|
+
height: string;
|
|
89
|
+
width: string;
|
|
58
90
|
resize: string;
|
|
59
91
|
id: string;
|
|
92
|
+
maxLength: any;
|
|
93
|
+
showMaxLengthCounter: boolean;
|
|
94
|
+
description: any;
|
|
95
|
+
onChange: (e: any) => void;
|
|
60
96
|
};
|
|
61
97
|
};
|
|
62
98
|
export declare const WithoutLabel: {
|
|
@@ -65,49 +101,117 @@ export declare const WithoutLabel: {
|
|
|
65
101
|
placeholder: string;
|
|
66
102
|
hasError: boolean;
|
|
67
103
|
height: string;
|
|
104
|
+
width: string;
|
|
68
105
|
resize: string;
|
|
69
106
|
id: string;
|
|
107
|
+
value: string;
|
|
108
|
+
errorMessage: string;
|
|
109
|
+
maxLength: any;
|
|
110
|
+
showMaxLengthCounter: boolean;
|
|
111
|
+
description: any;
|
|
112
|
+
onChange: (e: any) => void;
|
|
70
113
|
};
|
|
71
114
|
};
|
|
72
|
-
export declare const
|
|
115
|
+
export declare const WithValue: {
|
|
73
116
|
args: {
|
|
117
|
+
value: string;
|
|
118
|
+
placeholder: string;
|
|
119
|
+
hasError: boolean;
|
|
120
|
+
label: string;
|
|
121
|
+
height: string;
|
|
122
|
+
width: string;
|
|
74
123
|
resize: string;
|
|
124
|
+
id: string;
|
|
125
|
+
errorMessage: string;
|
|
126
|
+
maxLength: any;
|
|
127
|
+
showMaxLengthCounter: boolean;
|
|
128
|
+
description: any;
|
|
129
|
+
onChange: (e: any) => void;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
export declare const WithDescription: {
|
|
133
|
+
args: {
|
|
134
|
+
description: string;
|
|
75
135
|
placeholder: string;
|
|
76
136
|
hasError: boolean;
|
|
77
137
|
label: string;
|
|
78
138
|
height: string;
|
|
139
|
+
width: string;
|
|
140
|
+
resize: string;
|
|
79
141
|
id: string;
|
|
142
|
+
value: string;
|
|
143
|
+
errorMessage: string;
|
|
144
|
+
maxLength: any;
|
|
145
|
+
showMaxLengthCounter: boolean;
|
|
146
|
+
onChange: (e: any) => void;
|
|
80
147
|
};
|
|
81
148
|
};
|
|
82
|
-
export declare const
|
|
149
|
+
export declare const ResizeNone: {
|
|
83
150
|
args: {
|
|
84
151
|
resize: string;
|
|
85
152
|
placeholder: string;
|
|
86
153
|
hasError: boolean;
|
|
87
154
|
label: string;
|
|
88
155
|
height: string;
|
|
156
|
+
width: string;
|
|
89
157
|
id: string;
|
|
158
|
+
value: string;
|
|
159
|
+
errorMessage: string;
|
|
160
|
+
maxLength: any;
|
|
161
|
+
showMaxLengthCounter: boolean;
|
|
162
|
+
description: any;
|
|
163
|
+
onChange: (e: any) => void;
|
|
90
164
|
};
|
|
91
165
|
};
|
|
92
|
-
export declare const
|
|
166
|
+
export declare const ResizeVertical: {
|
|
93
167
|
args: {
|
|
94
168
|
resize: string;
|
|
95
169
|
placeholder: string;
|
|
96
170
|
hasError: boolean;
|
|
97
171
|
label: string;
|
|
98
172
|
height: string;
|
|
173
|
+
width: string;
|
|
99
174
|
id: string;
|
|
175
|
+
value: string;
|
|
176
|
+
errorMessage: string;
|
|
177
|
+
maxLength: any;
|
|
178
|
+
showMaxLengthCounter: boolean;
|
|
179
|
+
description: any;
|
|
180
|
+
onChange: (e: any) => void;
|
|
100
181
|
};
|
|
101
182
|
};
|
|
102
|
-
export declare const
|
|
183
|
+
export declare const ResizeHorizontal: {
|
|
103
184
|
args: {
|
|
104
|
-
|
|
185
|
+
resize: string;
|
|
105
186
|
placeholder: string;
|
|
106
187
|
hasError: boolean;
|
|
107
188
|
label: string;
|
|
108
189
|
height: string;
|
|
190
|
+
width: string;
|
|
191
|
+
id: string;
|
|
192
|
+
value: string;
|
|
193
|
+
errorMessage: string;
|
|
194
|
+
maxLength: any;
|
|
195
|
+
showMaxLengthCounter: boolean;
|
|
196
|
+
description: any;
|
|
197
|
+
onChange: (e: any) => void;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
export declare const ResizeAuto: {
|
|
201
|
+
args: {
|
|
109
202
|
resize: string;
|
|
203
|
+
placeholder: string;
|
|
204
|
+
hasError: boolean;
|
|
205
|
+
label: string;
|
|
206
|
+
height: string;
|
|
207
|
+
width: string;
|
|
110
208
|
id: string;
|
|
209
|
+
value: string;
|
|
210
|
+
errorMessage: string;
|
|
211
|
+
maxLength: any;
|
|
212
|
+
showMaxLengthCounter: boolean;
|
|
213
|
+
description: any;
|
|
214
|
+
onChange: (e: any) => void;
|
|
111
215
|
};
|
|
112
216
|
};
|
|
113
217
|
export declare const Tall: {
|
|
@@ -116,8 +220,15 @@ export declare const Tall: {
|
|
|
116
220
|
placeholder: string;
|
|
117
221
|
hasError: boolean;
|
|
118
222
|
label: string;
|
|
223
|
+
width: string;
|
|
119
224
|
resize: string;
|
|
120
225
|
id: string;
|
|
226
|
+
value: string;
|
|
227
|
+
errorMessage: string;
|
|
228
|
+
maxLength: any;
|
|
229
|
+
showMaxLengthCounter: boolean;
|
|
230
|
+
description: any;
|
|
231
|
+
onChange: (e: any) => void;
|
|
121
232
|
};
|
|
122
233
|
};
|
|
123
234
|
export declare const FullWidth: {
|
|
@@ -129,6 +240,29 @@ export declare const FullWidth: {
|
|
|
129
240
|
height: string;
|
|
130
241
|
resize: string;
|
|
131
242
|
id: string;
|
|
243
|
+
value: string;
|
|
244
|
+
errorMessage: string;
|
|
245
|
+
maxLength: any;
|
|
246
|
+
showMaxLengthCounter: boolean;
|
|
247
|
+
description: any;
|
|
248
|
+
onChange: (e: any) => void;
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
export declare const WithMaxLengthCounter: {
|
|
252
|
+
args: {
|
|
253
|
+
value: string;
|
|
254
|
+
maxLength: number;
|
|
255
|
+
showMaxLengthCounter: boolean;
|
|
256
|
+
placeholder: string;
|
|
257
|
+
hasError: boolean;
|
|
258
|
+
label: string;
|
|
259
|
+
height: string;
|
|
260
|
+
width: string;
|
|
261
|
+
resize: string;
|
|
262
|
+
id: string;
|
|
263
|
+
errorMessage: string;
|
|
264
|
+
description: any;
|
|
265
|
+
onChange: (e: any) => void;
|
|
132
266
|
};
|
|
133
267
|
};
|
|
134
268
|
export declare const WithMaxLengthAndDescription: {
|
|
@@ -139,8 +273,48 @@ export declare const WithMaxLengthAndDescription: {
|
|
|
139
273
|
maxLength: number;
|
|
140
274
|
showMaxLengthCounter: boolean;
|
|
141
275
|
description: string;
|
|
276
|
+
id: string;
|
|
277
|
+
hasError: boolean;
|
|
142
278
|
height: string;
|
|
279
|
+
width: string;
|
|
143
280
|
resize: string;
|
|
281
|
+
value: string;
|
|
282
|
+
errorMessage: string;
|
|
283
|
+
onChange: (e: any) => void;
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
export declare const Interactive: {
|
|
287
|
+
render: (args: any) => React.JSX.Element;
|
|
288
|
+
args: {
|
|
289
|
+
label: string;
|
|
290
|
+
placeholder: string;
|
|
291
|
+
maxLength: number;
|
|
292
|
+
showMaxLengthCounter: boolean;
|
|
293
|
+
hasError: boolean;
|
|
294
|
+
height: string;
|
|
295
|
+
width: string;
|
|
296
|
+
resize: string;
|
|
297
|
+
id: string;
|
|
298
|
+
value: string;
|
|
299
|
+
errorMessage: string;
|
|
300
|
+
description: any;
|
|
301
|
+
onChange: (e: any) => void;
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
export declare const Complete: {
|
|
305
|
+
args: {
|
|
306
|
+
label: string;
|
|
307
|
+
value: string;
|
|
308
|
+
description: string;
|
|
309
|
+
maxLength: number;
|
|
310
|
+
showMaxLengthCounter: boolean;
|
|
311
|
+
hasError: boolean;
|
|
312
|
+
errorMessage: string;
|
|
313
|
+
width: string;
|
|
314
|
+
height: string;
|
|
315
|
+
resize: string;
|
|
316
|
+
placeholder: string;
|
|
144
317
|
id: string;
|
|
318
|
+
onChange: (e: any) => void;
|
|
145
319
|
};
|
|
146
320
|
};
|
|
@@ -14,78 +14,97 @@ 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.WithMaxLengthAndDescription = exports.
|
|
17
|
+
exports.Complete = exports.Interactive = exports.WithMaxLengthAndDescription = exports.WithMaxLengthCounter = exports.FullWidth = exports.Tall = exports.ResizeAuto = exports.ResizeHorizontal = exports.ResizeVertical = exports.ResizeNone = exports.WithDescription = exports.WithValue = exports.WithoutLabel = exports.WithErrorAndValue = exports.WithError = exports.Default = void 0;
|
|
18
18
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
19
|
var react_1 = __importDefault(require("react"));
|
|
20
20
|
var Textarea_1 = __importDefault(require("../Textarea"));
|
|
21
21
|
var props_1 = require("../props");
|
|
22
|
-
var
|
|
22
|
+
var baseArgs = {
|
|
23
23
|
placeholder: "Placeholder",
|
|
24
24
|
hasError: false,
|
|
25
25
|
label: "Label",
|
|
26
26
|
height: "140px",
|
|
27
|
+
width: "370px",
|
|
27
28
|
resize: "none",
|
|
28
29
|
id: "customTextarea",
|
|
30
|
+
value: "",
|
|
31
|
+
errorMessage: "",
|
|
32
|
+
maxLength: undefined,
|
|
33
|
+
showMaxLengthCounter: false,
|
|
34
|
+
description: null,
|
|
35
|
+
onChange: function (e) { return console.log("changed", e.target.value); },
|
|
29
36
|
};
|
|
30
37
|
exports.default = {
|
|
31
|
-
title:
|
|
32
|
-
component: Textarea_1.default,
|
|
33
|
-
tags: [
|
|
38
|
+
title: "Components/Textarea",
|
|
39
|
+
component: function (props) { return ((0, jsx_runtime_1.jsx)("div", __assign({ style: { maxWidth: 520 } }, { children: (0, jsx_runtime_1.jsx)(Textarea_1.default, __assign({}, props)) }))); },
|
|
40
|
+
tags: ["autodocs"],
|
|
34
41
|
argTypes: {
|
|
35
|
-
hasError: { control:
|
|
36
|
-
resize: { control:
|
|
37
|
-
label: { control:
|
|
38
|
-
placeholder: { control:
|
|
39
|
-
width: { control:
|
|
40
|
-
height: { control:
|
|
41
|
-
maxLength: { control:
|
|
42
|
-
showMaxLengthCounter: { control:
|
|
43
|
-
description: { control:
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
hasError: { control: "boolean" },
|
|
43
|
+
resize: { control: "select", options: props_1.resizes },
|
|
44
|
+
label: { control: "text" },
|
|
45
|
+
placeholder: { control: "text" },
|
|
46
|
+
width: { control: "text" },
|
|
47
|
+
height: { control: "text" },
|
|
48
|
+
maxLength: { control: "number" },
|
|
49
|
+
showMaxLengthCounter: { control: "boolean" },
|
|
50
|
+
description: { control: "text" },
|
|
51
|
+
errorMessage: { control: "text" },
|
|
52
|
+
value: { control: "text" },
|
|
53
|
+
onChange: { action: "changed" },
|
|
54
|
+
},
|
|
46
55
|
};
|
|
47
56
|
exports.Default = {
|
|
48
|
-
args:
|
|
57
|
+
args: __assign({}, baseArgs),
|
|
49
58
|
};
|
|
50
59
|
exports.WithError = {
|
|
51
|
-
args: __assign(__assign({},
|
|
60
|
+
args: __assign(__assign({}, baseArgs), { hasError: true, errorMessage: "Bu alan zorunludur." }),
|
|
61
|
+
};
|
|
62
|
+
exports.WithErrorAndValue = {
|
|
63
|
+
args: __assign(__assign({}, baseArgs), { value: "Geçersiz içerik", hasError: true, errorMessage: "Metin kurallara uymuyor." }),
|
|
52
64
|
};
|
|
53
65
|
exports.WithoutLabel = {
|
|
54
|
-
args: __assign(__assign({},
|
|
66
|
+
args: __assign(__assign({}, baseArgs), { label: "" }),
|
|
67
|
+
};
|
|
68
|
+
exports.WithValue = {
|
|
69
|
+
args: __assign(__assign({}, baseArgs), { value: "Önceden doldurulmuş metin içeriği." }),
|
|
70
|
+
};
|
|
71
|
+
exports.WithDescription = {
|
|
72
|
+
args: __assign(__assign({}, baseArgs), { description: "Ürün detay sayfasında görsellerin altında görünür." }),
|
|
73
|
+
};
|
|
74
|
+
exports.ResizeNone = {
|
|
75
|
+
args: __assign(__assign({}, baseArgs), { resize: "none" }),
|
|
55
76
|
};
|
|
56
77
|
exports.ResizeVertical = {
|
|
57
|
-
args: __assign(__assign({},
|
|
78
|
+
args: __assign(__assign({}, baseArgs), { resize: "vertical" }),
|
|
58
79
|
};
|
|
59
80
|
exports.ResizeHorizontal = {
|
|
60
|
-
args: __assign(__assign({},
|
|
81
|
+
args: __assign(__assign({}, baseArgs), { resize: "horizontal" }),
|
|
61
82
|
};
|
|
62
83
|
exports.ResizeAuto = {
|
|
63
|
-
args: __assign(__assign({},
|
|
64
|
-
};
|
|
65
|
-
exports.WithValue = {
|
|
66
|
-
args: __assign(__assign({}, defaultArgs), { value: "Önceden doldurulmuş metin içeriği." }),
|
|
84
|
+
args: __assign(__assign({}, baseArgs), { resize: "auto" }),
|
|
67
85
|
};
|
|
68
86
|
exports.Tall = {
|
|
69
|
-
args: __assign(__assign({},
|
|
87
|
+
args: __assign(__assign({}, baseArgs), { height: "300px" }),
|
|
70
88
|
};
|
|
71
89
|
exports.FullWidth = {
|
|
72
|
-
args: __assign(__assign({},
|
|
90
|
+
args: __assign(__assign({}, baseArgs), { width: "100%" }),
|
|
91
|
+
};
|
|
92
|
+
exports.WithMaxLengthCounter = {
|
|
93
|
+
args: __assign(__assign({}, baseArgs), { value: "Kısa metin", maxLength: 120, showMaxLengthCounter: true }),
|
|
73
94
|
};
|
|
74
|
-
var
|
|
95
|
+
var TextareaControlledStory = function (args) {
|
|
75
96
|
var _a;
|
|
76
97
|
var _b = react_1.default.useState((_a = args.value) !== null && _a !== void 0 ? _a : ""), value = _b[0], setValue = _b[1];
|
|
77
|
-
return ((0, jsx_runtime_1.jsx)(Textarea_1.default, __assign({}, args, { value: value, onChange: function (e) { return setValue(e.target.value); } })));
|
|
98
|
+
return ((0, jsx_runtime_1.jsx)("div", __assign({ style: { maxWidth: 520 } }, { children: (0, jsx_runtime_1.jsx)(Textarea_1.default, __assign({}, args, { value: value, onChange: function (e) { return setValue(e.target.value); } })) })));
|
|
78
99
|
};
|
|
79
100
|
exports.WithMaxLengthAndDescription = {
|
|
80
|
-
render: function (args) { return (0, jsx_runtime_1.jsx)(
|
|
81
|
-
args: {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
id: "textarea_max_length_description",
|
|
90
|
-
},
|
|
101
|
+
render: function (args) { return (0, jsx_runtime_1.jsx)(TextareaControlledStory, __assign({}, args)); },
|
|
102
|
+
args: __assign(__assign({}, baseArgs), { label: "Uzun açıklama", placeholder: "Uzun açıklama yaz", maxLength: 520, showMaxLengthCounter: true, description: "Ürün detay sayfasında görsellerin altında görünür.", id: "textarea_max_length_description" }),
|
|
103
|
+
};
|
|
104
|
+
exports.Interactive = {
|
|
105
|
+
render: function (args) { return (0, jsx_runtime_1.jsx)(TextareaControlledStory, __assign({}, args)); },
|
|
106
|
+
args: __assign(__assign({}, baseArgs), { label: "Mesaj", placeholder: "Yazmaya başla...", maxLength: 200, showMaxLengthCounter: true }),
|
|
107
|
+
};
|
|
108
|
+
exports.Complete = {
|
|
109
|
+
args: __assign(__assign({}, baseArgs), { label: "Komple textarea", value: "Tüm özellikler birlikte", description: "Açıklama metni", maxLength: 300, showMaxLengthCounter: true, hasError: true, errorMessage: "Kontrol amaçlı hata", width: "100%", height: "180px", resize: "vertical" }),
|
|
91
110
|
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ToastStyledProps } from "./props";
|
|
3
|
-
export declare const ToastStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").
|
|
4
|
-
|
|
3
|
+
export declare const ToastStyled: 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
|
+
}, ToastStyledProps>> & string;
|
|
6
|
+
export declare const OverlayStyled: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
7
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
8
|
+
}> & string;
|