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
|
@@ -24,7 +24,7 @@ var Tooltip_1 = __importDefault(require("../Tooltip"));
|
|
|
24
24
|
var Dropdown_1 = __importDefault(require("../Dropdown"));
|
|
25
25
|
var Icon_1 = __importDefault(require("../Icon/Icon"));
|
|
26
26
|
var ProductCardCheckbox = function (_a) {
|
|
27
|
-
var _b = _a.hasCheckbox, hasCheckbox = _b === void 0 ? props_1.ProductCardCheckboxDefault.hasCheckbox : _b, _c = _a.title, title = _c === void 0 ? props_1.ProductCardCheckboxDefault.title : _c, _d = _a.
|
|
27
|
+
var _b = _a.hasCheckbox, hasCheckbox = _b === void 0 ? props_1.ProductCardCheckboxDefault.hasCheckbox : _b, _c = _a.title, title = _c === void 0 ? props_1.ProductCardCheckboxDefault.title : _c, _d = _a.description, description = _d === void 0 ? props_1.ProductCardCheckboxDefault.description : _d, _e = _a.content, content = _e === void 0 ? props_1.ProductCardCheckboxDefault.content : _e, _f = _a.checkboxId, checkboxId = _f === void 0 ? props_1.ProductCardCheckboxDefault.checkboxId : _f, _g = _a.size, size = _g === void 0 ? props_1.ProductCardCheckboxDefault.size : _g, _h = _a.productCardOnChange, productCardOnChange = _h === void 0 ? props_1.ProductCardCheckboxDefault.productCardOnChange : _h, _j = _a.disabled, disabled = _j === void 0 ? props_1.ProductCardCheckboxDefault.disabled : _j, _k = _a.value, value = _k === void 0 ? props_1.ProductCardCheckboxDefault.value : _k, _l = _a.name, name = _l === void 0 ? props_1.ProductCardCheckboxDefault.name : _l, _m = _a.isContentOffset, isContentOffset = _m === void 0 ? props_1.ProductCardCheckboxDefault.isContentOffset : _m, _o = _a.checked, checked = _o === void 0 ? props_1.ProductCardCheckboxDefault.checked : _o, _p = _a.image, image = _p === void 0 ? props_1.ProductCardCheckboxDefault.image : _p, _q = _a.hasBadge, hasBadge = _q === void 0 ? props_1.ProductCardCheckboxDefault.hasBadge : _q, _r = _a.badgeText, badgeText = _r === void 0 ? props_1.ProductCardCheckboxDefault.badgeText : _r, _s = _a.badgeVariant, badgeVariant = _s === void 0 ? props_1.ProductCardCheckboxDefault.badgeVariant : _s, _t = _a.infoText, infoText = _t === void 0 ? props_1.ProductCardCheckboxDefault.infoText : _t, _u = _a.infoTitle, infoTitle = _u === void 0 ? props_1.ProductCardCheckboxDefault.infoTitle : _u, _v = _a.popupWidth, popupWidth = _v === void 0 ? props_1.ProductCardCheckboxDefault.popupWidth : _v, valid = _a.valid, _w = _a.isShowDropdown, isShowDropdown = _w === void 0 ? props_1.ProductCardCheckboxDefault.isShowDropdown : _w, _x = _a.dropdownList, dropdownList = _x === void 0 ? props_1.ProductCardCheckboxDefault.dropdownList : _x, _y = _a.dropdownWidth, dropdownWidth = _y === void 0 ? props_1.ProductCardCheckboxDefault.dropdownWidth : _y, _z = _a.dropdownRight, dropdownRight = _z === void 0 ? props_1.ProductCardCheckboxDefault.dropdownRight : _z, _0 = _a.dropdownTop, dropdownTop = _0 === void 0 ? props_1.ProductCardCheckboxDefault.dropdownTop : _0;
|
|
28
28
|
var styledProps = {
|
|
29
29
|
disabled: disabled,
|
|
30
30
|
$isContentOffset: isContentOffset,
|
|
@@ -32,6 +32,6 @@ var ProductCardCheckbox = function (_a) {
|
|
|
32
32
|
$hasBadge: hasBadge,
|
|
33
33
|
$hasCheckbox: hasCheckbox,
|
|
34
34
|
};
|
|
35
|
-
return ((0, jsx_runtime_1.jsx)(ProductCardCheckbox_styled_1.ProductCardCheckboxStyled, __assign({ htmlFor: checkboxId }, styledProps, { children: (0, jsx_runtime_1.jsxs)(ProductCardCheckbox_styled_1.ProductCardInner, __assign({}, styledProps, { children: [hasBadge && ((0, jsx_runtime_1.jsx)(ProductCardCheckbox_styled_1.BadgeWrapper, { children: (0, jsx_runtime_1.jsx)(Badges_1.default, { title: badgeText, layout: "text", variant: badgeVariant }) })), (0, jsx_runtime_1.jsxs)(ProductCardCheckbox_styled_1.ProductCardWrapper, __assign({ "$hasCheckbox": hasCheckbox }, { children: [(0, jsx_runtime_1.jsx)(ProductCardCheckbox_styled_1.ProductCardCheckboxContent, __assign({ "$hidden": !hasCheckbox }, { children: (0, jsx_runtime_1.jsx)(Checkbox_1.default, { id: checkboxId, size: size === "large" ? "medium" : "small", label: "", onChange: productCardOnChange, value: value, checked: checked, name: name, disabled: disabled, valid: valid, labelOffset: size === "large" ? "1.5rem" : "0.5rem" }) })), image && ((0, jsx_runtime_1.jsx)(ProductCardCheckbox_styled_1.ProductCardImg, { children: image })), (0, jsx_runtime_1.jsxs)(ProductCardCheckbox_styled_1.ProductCardText, { children: [(0, jsx_runtime_1.jsx)(ProductCardCheckbox_styled_1.ProductCardTitle, __assign({}, styledProps, { children: title })), (0, jsx_runtime_1.jsxs)(ProductCardCheckbox_styled_1.ProductCardTitleActionsWrapper, { children: [(0, jsx_runtime_1.jsx)(ProductCardCheckbox_styled_1.TooltipWrapper, { children: (infoText || infoTitle) && ((0, jsx_runtime_1.jsx)(ProductCardCheckbox_styled_1.InputIcon, { children: (0, jsx_runtime_1.jsx)(Tooltip_1.default, __assign({ popupSize: "small", position: "topRight", popupWidth: popupWidth, popupRight: "-23px", iconWidth: "24px", iconHeight: "24px", title: infoTitle }, { children: (0, jsx_runtime_1.jsx)(ProductCardCheckbox_styled_1.PopupText, { dangerouslySetInnerHTML: { __html: infoText } }) })) })) }), isShowDropdown && (dropdownList === null || dropdownList === void 0 ? void 0 : dropdownList.length) ? ((0, jsx_runtime_1.jsx)(ProductCardCheckbox_styled_1.DropdownWrapper, { children: (0, jsx_runtime_1.jsx)(Dropdown_1.default, { size: "small", list: dropdownList, isShowTopChevron: false, Toggle: function () { return ((0, jsx_runtime_1.jsx)(ProductCardCheckbox_styled_1.DropdownToggleButton, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { name: "MoreCircle" }) })); }, childrenVariant: "primary", right: dropdownRight, width: dropdownWidth, top: dropdownTop }) })) : null] })] })] })), content && ((0, jsx_runtime_1.jsxs)(ProductCardCheckbox_styled_1.ProductCardContent, __assign({ htmlFor: "notSelect_".concat(checkboxId) }, styledProps, { children: [(0, jsx_runtime_1.jsx)(ProductCardCheckbox_styled_1.HiddenInput, { id: "notSelect_".concat(checkboxId), readOnly: true, tabIndex: -1 }), content] })))] })) })));
|
|
35
|
+
return ((0, jsx_runtime_1.jsx)(ProductCardCheckbox_styled_1.ProductCardCheckboxStyled, __assign({ htmlFor: checkboxId }, styledProps, { children: (0, jsx_runtime_1.jsxs)(ProductCardCheckbox_styled_1.ProductCardInner, __assign({}, styledProps, { children: [hasBadge && ((0, jsx_runtime_1.jsx)(ProductCardCheckbox_styled_1.BadgeWrapper, { children: (0, jsx_runtime_1.jsx)(Badges_1.default, { title: badgeText, layout: "text", variant: badgeVariant }) })), (0, jsx_runtime_1.jsxs)(ProductCardCheckbox_styled_1.ProductCardWrapper, __assign({ "$hasCheckbox": hasCheckbox }, { children: [(0, jsx_runtime_1.jsx)(ProductCardCheckbox_styled_1.ProductCardCheckboxContent, __assign({ "$hidden": !hasCheckbox }, { children: (0, jsx_runtime_1.jsx)(Checkbox_1.default, { id: checkboxId, size: size === "large" ? "medium" : "small", label: "", onChange: productCardOnChange, value: value, checked: checked, name: name, disabled: disabled, valid: valid, labelOffset: size === "large" ? "1.5rem" : "0.5rem" }) })), image && ((0, jsx_runtime_1.jsx)(ProductCardCheckbox_styled_1.ProductCardImg, { children: image })), (0, jsx_runtime_1.jsxs)(ProductCardCheckbox_styled_1.ProductCardText, { children: [(0, jsx_runtime_1.jsxs)(ProductCardCheckbox_styled_1.ProductCardTitleWrapper, { children: [(0, jsx_runtime_1.jsx)(ProductCardCheckbox_styled_1.ProductCardTitle, __assign({}, styledProps, { "$hasDescription": !!description }, { children: title })), description && ((0, jsx_runtime_1.jsx)(ProductCardCheckbox_styled_1.ProductCardDescription, { children: description }))] }), (0, jsx_runtime_1.jsxs)(ProductCardCheckbox_styled_1.ProductCardTitleActionsWrapper, { children: [(0, jsx_runtime_1.jsx)(ProductCardCheckbox_styled_1.TooltipWrapper, { children: (infoText || infoTitle) && ((0, jsx_runtime_1.jsx)(ProductCardCheckbox_styled_1.InputIcon, { children: (0, jsx_runtime_1.jsx)(Tooltip_1.default, __assign({ popupSize: "small", position: "topRight", popupWidth: popupWidth, popupRight: "-23px", iconWidth: "24px", iconHeight: "24px", title: infoTitle }, { children: (0, jsx_runtime_1.jsx)(ProductCardCheckbox_styled_1.PopupText, { dangerouslySetInnerHTML: { __html: infoText } }) })) })) }), isShowDropdown && (dropdownList === null || dropdownList === void 0 ? void 0 : dropdownList.length) ? ((0, jsx_runtime_1.jsx)(ProductCardCheckbox_styled_1.DropdownWrapper, { children: (0, jsx_runtime_1.jsx)(Dropdown_1.default, { size: "small", list: dropdownList, isShowTopChevron: false, Toggle: function () { return ((0, jsx_runtime_1.jsx)(ProductCardCheckbox_styled_1.DropdownToggleButton, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { name: "MoreCircle" }) })); }, childrenVariant: "primary", right: dropdownRight, width: dropdownWidth, top: dropdownTop }) })) : null] })] })] })), content && ((0, jsx_runtime_1.jsxs)(ProductCardCheckbox_styled_1.ProductCardContent, __assign({ htmlFor: "notSelect_".concat(checkboxId) }, styledProps, { children: [(0, jsx_runtime_1.jsx)(ProductCardCheckbox_styled_1.HiddenInput, { id: "notSelect_".concat(checkboxId), readOnly: true, tabIndex: -1 }), content] })))] })) })));
|
|
36
36
|
};
|
|
37
37
|
exports.default = ProductCardCheckbox;
|
|
@@ -1,22 +1,60 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ProductCardCheckboxStyledProps } from "./props";
|
|
3
|
-
export declare const BadgeWrapper: import("styled-components/dist/types").IStyledComponentBase<"web",
|
|
4
|
-
|
|
3
|
+
export declare const BadgeWrapper: 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 ProductCardCheckboxContent: 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
|
+
}, {
|
|
5
9
|
$hidden?: boolean;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const ProductCardImg: import("styled-components/dist/types").IStyledComponentBase<"web",
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export declare const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export declare const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export declare const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export declare const
|
|
10
|
+
}>> & string;
|
|
11
|
+
export declare const ProductCardWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
12
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
13
|
+
}, ProductCardCheckboxStyledProps>> & string;
|
|
14
|
+
export declare const ProductCardImg: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
15
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
16
|
+
}> & string;
|
|
17
|
+
export declare const ProductCardText: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
18
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
19
|
+
}> & string;
|
|
20
|
+
export declare const ProductCardTitleActionsWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
21
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
22
|
+
}> & string;
|
|
23
|
+
export declare const ProductCardTitleWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
24
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
25
|
+
}> & string;
|
|
26
|
+
export declare const ProductCardTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
27
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
28
|
+
}, ProductCardCheckboxStyledProps & {
|
|
29
|
+
$hasDescription?: boolean;
|
|
30
|
+
}>> & string;
|
|
31
|
+
export declare const ProductCardDescription: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "style"> & {
|
|
32
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
33
|
+
}> & string;
|
|
34
|
+
export declare const TooltipWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
35
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
36
|
+
}> & string;
|
|
37
|
+
export declare const DropdownWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
38
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
39
|
+
}> & string;
|
|
40
|
+
export declare const DropdownToggleButton: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
41
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
42
|
+
}> & string;
|
|
43
|
+
export declare const InputIcon: 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 PopupText: 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 ProductCardContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "style"> & {
|
|
50
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
51
|
+
}, ProductCardCheckboxStyledProps>> & string;
|
|
52
|
+
export declare const HiddenInput: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "style"> & {
|
|
53
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
54
|
+
}> & string;
|
|
55
|
+
export declare const ProductCardInner: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
56
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
57
|
+
}, ProductCardCheckboxStyledProps>> & string;
|
|
58
|
+
export declare const ProductCardCheckboxStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "style"> & {
|
|
59
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
60
|
+
}, ProductCardCheckboxStyledProps>> & string;
|
|
@@ -7,23 +7,25 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
7
7
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
8
|
};
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.ProductCardCheckboxStyled = exports.ProductCardInner = exports.HiddenInput = exports.ProductCardContent = exports.PopupText = exports.InputIcon = exports.DropdownToggleButton = exports.DropdownWrapper = exports.TooltipWrapper = exports.ProductCardTitle = exports.ProductCardTitleActionsWrapper = exports.ProductCardText = exports.ProductCardImg = exports.ProductCardWrapper = exports.ProductCardCheckboxContent = exports.BadgeWrapper = void 0;
|
|
10
|
+
exports.ProductCardCheckboxStyled = exports.ProductCardInner = exports.HiddenInput = exports.ProductCardContent = exports.PopupText = exports.InputIcon = exports.DropdownToggleButton = exports.DropdownWrapper = exports.TooltipWrapper = exports.ProductCardDescription = exports.ProductCardTitle = exports.ProductCardTitleWrapper = exports.ProductCardTitleActionsWrapper = exports.ProductCardText = exports.ProductCardImg = exports.ProductCardWrapper = exports.ProductCardCheckboxContent = exports.BadgeWrapper = void 0;
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
12
|
var devices_1 = require("../../constants/devices");
|
|
13
13
|
exports.BadgeWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin: 0 auto 1rem 0;\n grid-column-start: 1;\n grid-column-end: 4;\n width: 100%;\n text-align: right;\n height: 17px;\n\n > * {\n vertical-align: super;\n display: inline-block;\n }\n"], ["\n margin: 0 auto 1rem 0;\n grid-column-start: 1;\n grid-column-end: 4;\n width: 100%;\n text-align: right;\n height: 17px;\n\n > * {\n vertical-align: super;\n display: inline-block;\n }\n"])));
|
|
14
14
|
exports.ProductCardCheckboxContent = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 64px;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n ", "\n\n > label > div {\n margin-right: 24px;\n\n @media only screen and ", " {\n margin-right: 8px;\n width: 16px;\n height: 16px;\n }\n }\n"], ["\n height: 64px;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n ", "\n\n > label > div {\n margin-right: 24px;\n\n @media only screen and ", " {\n margin-right: 8px;\n width: 16px;\n height: 16px;\n }\n }\n"])), function (props) { return props.$hidden && "display: none;"; }, devices_1.devices.md);
|
|
15
15
|
exports.ProductCardWrapper = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: grid;\n grid-template-columns: ", ";\n"], ["\n display: grid;\n grid-template-columns: ", ";\n"])), function (props) { return (props.$hasCheckbox ? 'auto auto 1fr' : 'auto 1fr'); });
|
|
16
16
|
exports.ProductCardImg = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n width: 64px;\n height: 64px;\n border: 1px solid var(--dark-opacity-5);\n border-radius: 0.5rem;\n position: relative;\n margin-right: 16px;\n overflow: hidden;\n box-sizing: border-box;\n\n > * {\n display: block;\n position: absolute;\n inset: 0.375rem;\n width: calc(100% - 0.75rem);\n height: calc(100% - 0.75rem);\n object-fit: cover;\n object-position: center center;\n border-radius: 0.5rem;\n }\n"], ["\n width: 64px;\n height: 64px;\n border: 1px solid var(--dark-opacity-5);\n border-radius: 0.5rem;\n position: relative;\n margin-right: 16px;\n overflow: hidden;\n box-sizing: border-box;\n\n > * {\n display: block;\n position: absolute;\n inset: 0.375rem;\n width: calc(100% - 0.75rem);\n height: calc(100% - 0.75rem);\n object-fit: cover;\n object-position: center center;\n border-radius: 0.5rem;\n }\n"])));
|
|
17
|
-
exports.ProductCardText = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n"])));
|
|
17
|
+
exports.ProductCardText = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n min-width: 0;\n width: 100%;\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n min-width: 0;\n width: 100%;\n"])));
|
|
18
18
|
exports.ProductCardTitleActionsWrapper = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n"], ["\n display: flex;\n align-items: center;\n"])));
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
var
|
|
19
|
+
exports.ProductCardTitleWrapper = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n min-width: 0;\n flex: 1 1 auto;\n"], ["\n display: flex;\n flex-direction: column;\n justify-content: center;\n min-width: 0;\n flex: 1 1 auto;\n"])));
|
|
20
|
+
exports.ProductCardTitle = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n min-height: ", ";\n display: flex;\n align-items: center;\n justify-content: flex-start;\n text-align: start;\n font: ", ";\n\n ", "\n\n @media only screen and ", " {\n font: var(--body-semi-bold-14-17);\n }\n"], ["\n min-height: ", ";\n display: flex;\n align-items: center;\n justify-content: flex-start;\n text-align: start;\n font: ", ";\n\n ", "\n\n @media only screen and ", " {\n font: var(--body-semi-bold-14-17);\n }\n"])), function (props) { return props.$hasDescription ? 'auto' : '64px'; }, function (props) { return props.$size === "small" ? "var(--body-semi-bold-14-17)" : "var(--title-semi-bold-16-19)"; }, function (props) { return props.$hasDescription && "\n display: block;\n min-width: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n "; }, devices_1.devices.md);
|
|
21
|
+
exports.ProductCardDescription = styled_components_1.default.p(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n margin: 0.5rem 0 0;\n color: var(--grey-50);\n font: var(--body-medium-13-16);\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n text-overflow: ellipsis;\n"], ["\n margin: 0.5rem 0 0;\n color: var(--grey-50);\n font: var(--body-medium-13-16);\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
|
|
22
|
+
exports.TooltipWrapper = styled_components_1.default.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n user-select: initial !important;\n pointer-events: initial !important;\n padding-left: 1rem;\n"], ["\n user-select: initial !important;\n pointer-events: initial !important;\n padding-left: 1rem;\n"])));
|
|
23
|
+
exports.DropdownWrapper = styled_components_1.default.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n padding-left: 1rem;\n"], ["\n padding-left: 1rem;\n"])));
|
|
24
|
+
exports.DropdownToggleButton = styled_components_1.default.span(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n box-sizing: border-box;\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 0;\n padding: 0;\n cursor: pointer;\n transition: all .2s;\n outline: none;\n border: 0;\n background: none;\n color: var(--primary);\n"], ["\n box-sizing: border-box;\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 0;\n padding: 0;\n cursor: pointer;\n transition: all .2s;\n outline: none;\n border: 0;\n background: none;\n color: var(--primary);\n"])));
|
|
25
|
+
exports.InputIcon = styled_components_1.default.div(templateObject_13 || (templateObject_13 = __makeTemplateObject([""], [""])));
|
|
26
|
+
exports.PopupText = styled_components_1.default.div(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n font: var(--caption-medium-12-15);\n\n a {\n color: var(--primary);\n }\n"], ["\n font: var(--caption-medium-12-15);\n\n a {\n color: var(--primary);\n }\n"])));
|
|
27
|
+
exports.ProductCardContent = styled_components_1.default.label(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n margin: 1.5rem auto 0 ", ";\n display: block;\n width: ", ";\n cursor: initial;\n\n @media only screen and ", " {\n margin: 1rem auto 0 0 !important;\n width: 100% !important;\n }\n"], ["\n margin: 1.5rem auto 0 ", ";\n display: block;\n width: ", ";\n cursor: initial;\n\n @media only screen and ", " {\n margin: 1rem auto 0 0 !important;\n width: 100% !important;\n }\n"])), function (props) { return props.$isContentOffset ? '128px' : '0'; }, function (props) { return props.$isContentOffset ? 'calc(100% - 128px)' : '100%'; }, devices_1.devices.md);
|
|
28
|
+
exports.HiddenInput = styled_components_1.default.input(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n display: none;\n"], ["\n display: none;\n"])));
|
|
29
|
+
exports.ProductCardInner = styled_components_1.default.div(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n border: 1px solid var(--dark-opacity-10);\n border-radius: 0.5rem;\n padding: 24px;\n background-color: white;\n display: block;\n\n @media only screen and ", " {\n padding: 1rem;\n }\n\n ", "\n"], ["\n border: 1px solid var(--dark-opacity-10);\n border-radius: 0.5rem;\n padding: 24px;\n background-color: white;\n display: block;\n\n @media only screen and ", " {\n padding: 1rem;\n }\n\n ", "\n"])), devices_1.devices.md, function (props) { return props.$size === "small" && "\n padding: 1rem;\n\n ".concat(exports.ProductCardCheckboxContent, " > label > div {\n margin-right: 8px;\n width: 16px;\n height: 16px;\n }\n\n ").concat(exports.ProductCardTitle, " {\n font: var(--body-semi-bold-14-17);\n }\n\n ").concat(exports.ProductCardContent, " {\n margin: 1rem auto 0 0;\n }\n "); });
|
|
30
|
+
exports.ProductCardCheckboxStyled = styled_components_1.default.label(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n display: block;\n max-width: 634px;\n\n ", "\n"], ["\n display: block;\n max-width: 634px;\n\n ", "\n"])), function (props) { return props.disabled ? "\n user-select:none;\n pointer-events:none;\n " : "\n cursor: pointer;\n "; });
|
|
31
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
+
function step(op) {
|
|
27
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
29
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
+
switch (op[0]) {
|
|
32
|
+
case 0: case 1: t = op; break;
|
|
33
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
+
default:
|
|
37
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
+
if (t[2]) _.ops.pop();
|
|
42
|
+
_.trys.pop(); continue;
|
|
43
|
+
}
|
|
44
|
+
op = body.call(thisArg, _);
|
|
45
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
50
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
51
|
+
};
|
|
52
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
54
|
+
var react_1 = require("@testing-library/react");
|
|
55
|
+
var user_event_1 = __importDefault(require("@testing-library/user-event"));
|
|
56
|
+
var ProductCardCheckbox_1 = __importDefault(require("./ProductCardCheckbox"));
|
|
57
|
+
var renderCard = function (props) {
|
|
58
|
+
if (props === void 0) { props = {}; }
|
|
59
|
+
return (0, react_1.render)((0, jsx_runtime_1.jsx)(ProductCardCheckbox_1.default, __assign({ checkboxId: "test-card", title: "Etiyopya torres single" }, props)));
|
|
60
|
+
};
|
|
61
|
+
describe('ProductCardCheckbox', function () {
|
|
62
|
+
it('renders the title', function () {
|
|
63
|
+
renderCard();
|
|
64
|
+
expect(react_1.screen.getByText('Etiyopya torres single')).toBeInTheDocument();
|
|
65
|
+
});
|
|
66
|
+
it('does not render a description when none is provided', function () {
|
|
67
|
+
renderCard();
|
|
68
|
+
expect(react_1.screen.queryByText('SKU-001')).not.toBeInTheDocument();
|
|
69
|
+
});
|
|
70
|
+
it('renders the description right below the title when provided', function () {
|
|
71
|
+
renderCard({ description: 'SKU-001 - Çekirdek kahve' });
|
|
72
|
+
expect(react_1.screen.getByText('SKU-001 - Çekirdek kahve')).toBeInTheDocument();
|
|
73
|
+
});
|
|
74
|
+
it('renders description text as plain text, not raw HTML (XSS protection)', function () {
|
|
75
|
+
renderCard({ description: '<img src=x onerror="window.__pwned = true">' });
|
|
76
|
+
expect(document.querySelector('img')).not.toBeInTheDocument();
|
|
77
|
+
expect(react_1.screen.getByText('<img src=x onerror="window.__pwned = true">')).toBeInTheDocument();
|
|
78
|
+
});
|
|
79
|
+
it('calls productCardOnChange when the checkbox is toggled', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
80
|
+
var productCardOnChange;
|
|
81
|
+
return __generator(this, function (_a) {
|
|
82
|
+
switch (_a.label) {
|
|
83
|
+
case 0:
|
|
84
|
+
productCardOnChange = jest.fn();
|
|
85
|
+
renderCard({ productCardOnChange: productCardOnChange });
|
|
86
|
+
return [4 /*yield*/, user_event_1.default.click(react_1.screen.getByRole('checkbox'))];
|
|
87
|
+
case 1:
|
|
88
|
+
_a.sent();
|
|
89
|
+
expect(productCardOnChange).toHaveBeenCalledTimes(1);
|
|
90
|
+
return [2 /*return*/];
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
}); });
|
|
94
|
+
});
|
|
@@ -4,6 +4,8 @@ type SIZES = typeof sizes[number];
|
|
|
4
4
|
interface ProductCardCheckbox {
|
|
5
5
|
hasCheckbox?: boolean;
|
|
6
6
|
title?: string;
|
|
7
|
+
/** Title'ın hemen altında (0.5rem boşlukla) gösterilir; verilirse title tek satır, description 2 satır ellipsis olur */
|
|
8
|
+
description?: string;
|
|
7
9
|
content?: string;
|
|
8
10
|
checkboxId?: string;
|
|
9
11
|
size?: SIZES;
|
|
@@ -24,12 +24,36 @@ declare const _default: {
|
|
|
24
24
|
checked: {
|
|
25
25
|
control: string;
|
|
26
26
|
};
|
|
27
|
+
valid: {
|
|
28
|
+
control: string;
|
|
29
|
+
};
|
|
30
|
+
isContentOffset: {
|
|
31
|
+
control: string;
|
|
32
|
+
};
|
|
27
33
|
isShowDropdown: {
|
|
28
34
|
control: string;
|
|
29
35
|
};
|
|
30
36
|
dropdownWidth: {
|
|
31
37
|
control: string;
|
|
32
38
|
};
|
|
39
|
+
title: {
|
|
40
|
+
control: string;
|
|
41
|
+
};
|
|
42
|
+
description: {
|
|
43
|
+
control: string;
|
|
44
|
+
};
|
|
45
|
+
content: {
|
|
46
|
+
control: string;
|
|
47
|
+
};
|
|
48
|
+
infoText: {
|
|
49
|
+
control: string;
|
|
50
|
+
};
|
|
51
|
+
infoTitle: {
|
|
52
|
+
control: string;
|
|
53
|
+
};
|
|
54
|
+
productCardOnChange: {
|
|
55
|
+
action: string;
|
|
56
|
+
};
|
|
33
57
|
};
|
|
34
58
|
};
|
|
35
59
|
export default _default;
|
|
@@ -43,9 +67,14 @@ export declare const Default: {
|
|
|
43
67
|
hasCheckbox: boolean;
|
|
44
68
|
size: string;
|
|
45
69
|
hasBadge: boolean;
|
|
70
|
+
badgeText: string;
|
|
46
71
|
badgeVariant: string;
|
|
47
72
|
checkboxId: string;
|
|
48
73
|
infoText: string;
|
|
74
|
+
checked: boolean;
|
|
75
|
+
disabled: boolean;
|
|
76
|
+
isContentOffset: boolean;
|
|
77
|
+
isShowDropdown: boolean;
|
|
49
78
|
};
|
|
50
79
|
};
|
|
51
80
|
export declare const Checked: {
|
|
@@ -60,8 +89,12 @@ export declare const Checked: {
|
|
|
60
89
|
hasCheckbox: boolean;
|
|
61
90
|
size: string;
|
|
62
91
|
hasBadge: boolean;
|
|
92
|
+
badgeText: string;
|
|
63
93
|
badgeVariant: string;
|
|
64
94
|
infoText: string;
|
|
95
|
+
disabled: boolean;
|
|
96
|
+
isContentOffset: boolean;
|
|
97
|
+
isShowDropdown: boolean;
|
|
65
98
|
};
|
|
66
99
|
};
|
|
67
100
|
export declare const Disabled: {
|
|
@@ -76,8 +109,12 @@ export declare const Disabled: {
|
|
|
76
109
|
hasCheckbox: boolean;
|
|
77
110
|
size: string;
|
|
78
111
|
hasBadge: boolean;
|
|
112
|
+
badgeText: string;
|
|
79
113
|
badgeVariant: string;
|
|
80
114
|
infoText: string;
|
|
115
|
+
checked: boolean;
|
|
116
|
+
isContentOffset: boolean;
|
|
117
|
+
isShowDropdown: boolean;
|
|
81
118
|
};
|
|
82
119
|
};
|
|
83
120
|
export declare const WithoutCheckbox: {
|
|
@@ -91,8 +128,13 @@ export declare const WithoutCheckbox: {
|
|
|
91
128
|
image: React.JSX.Element;
|
|
92
129
|
size: string;
|
|
93
130
|
hasBadge: boolean;
|
|
131
|
+
badgeText: string;
|
|
94
132
|
badgeVariant: string;
|
|
95
133
|
infoText: string;
|
|
134
|
+
checked: boolean;
|
|
135
|
+
disabled: boolean;
|
|
136
|
+
isContentOffset: boolean;
|
|
137
|
+
isShowDropdown: boolean;
|
|
96
138
|
};
|
|
97
139
|
};
|
|
98
140
|
export declare const WithoutBadge: {
|
|
@@ -106,8 +148,13 @@ export declare const WithoutBadge: {
|
|
|
106
148
|
image: React.JSX.Element;
|
|
107
149
|
hasCheckbox: boolean;
|
|
108
150
|
size: string;
|
|
151
|
+
badgeText: string;
|
|
109
152
|
badgeVariant: string;
|
|
110
153
|
infoText: string;
|
|
154
|
+
checked: boolean;
|
|
155
|
+
disabled: boolean;
|
|
156
|
+
isContentOffset: boolean;
|
|
157
|
+
isShowDropdown: boolean;
|
|
111
158
|
};
|
|
112
159
|
};
|
|
113
160
|
export declare const WithoutImage: {
|
|
@@ -121,8 +168,33 @@ export declare const WithoutImage: {
|
|
|
121
168
|
hasCheckbox: boolean;
|
|
122
169
|
size: string;
|
|
123
170
|
hasBadge: boolean;
|
|
171
|
+
badgeText: string;
|
|
172
|
+
badgeVariant: string;
|
|
173
|
+
infoText: string;
|
|
174
|
+
checked: boolean;
|
|
175
|
+
disabled: boolean;
|
|
176
|
+
isContentOffset: boolean;
|
|
177
|
+
isShowDropdown: boolean;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
export declare const WithoutContent: {
|
|
181
|
+
args: {
|
|
182
|
+
content: any;
|
|
183
|
+
checkboxId: string;
|
|
184
|
+
title: string;
|
|
185
|
+
valid: boolean;
|
|
186
|
+
productCardOnChange: () => void;
|
|
187
|
+
image: React.JSX.Element;
|
|
188
|
+
hasCheckbox: boolean;
|
|
189
|
+
size: string;
|
|
190
|
+
hasBadge: boolean;
|
|
191
|
+
badgeText: string;
|
|
124
192
|
badgeVariant: string;
|
|
125
193
|
infoText: string;
|
|
194
|
+
checked: boolean;
|
|
195
|
+
disabled: boolean;
|
|
196
|
+
isContentOffset: boolean;
|
|
197
|
+
isShowDropdown: boolean;
|
|
126
198
|
};
|
|
127
199
|
};
|
|
128
200
|
export declare const Small: {
|
|
@@ -136,8 +208,13 @@ export declare const Small: {
|
|
|
136
208
|
image: React.JSX.Element;
|
|
137
209
|
hasCheckbox: boolean;
|
|
138
210
|
hasBadge: boolean;
|
|
211
|
+
badgeText: string;
|
|
139
212
|
badgeVariant: string;
|
|
140
213
|
infoText: string;
|
|
214
|
+
checked: boolean;
|
|
215
|
+
disabled: boolean;
|
|
216
|
+
isContentOffset: boolean;
|
|
217
|
+
isShowDropdown: boolean;
|
|
141
218
|
};
|
|
142
219
|
};
|
|
143
220
|
export declare const Large: {
|
|
@@ -151,8 +228,13 @@ export declare const Large: {
|
|
|
151
228
|
image: React.JSX.Element;
|
|
152
229
|
hasCheckbox: boolean;
|
|
153
230
|
hasBadge: boolean;
|
|
231
|
+
badgeText: string;
|
|
154
232
|
badgeVariant: string;
|
|
155
233
|
infoText: string;
|
|
234
|
+
checked: boolean;
|
|
235
|
+
disabled: boolean;
|
|
236
|
+
isContentOffset: boolean;
|
|
237
|
+
isShowDropdown: boolean;
|
|
156
238
|
};
|
|
157
239
|
};
|
|
158
240
|
export declare const WithInfoText: {
|
|
@@ -168,7 +250,12 @@ export declare const WithInfoText: {
|
|
|
168
250
|
hasCheckbox: boolean;
|
|
169
251
|
size: string;
|
|
170
252
|
hasBadge: boolean;
|
|
253
|
+
badgeText: string;
|
|
171
254
|
badgeVariant: string;
|
|
255
|
+
checked: boolean;
|
|
256
|
+
disabled: boolean;
|
|
257
|
+
isContentOffset: boolean;
|
|
258
|
+
isShowDropdown: boolean;
|
|
172
259
|
};
|
|
173
260
|
};
|
|
174
261
|
export declare const Invalid: {
|
|
@@ -182,8 +269,13 @@ export declare const Invalid: {
|
|
|
182
269
|
hasCheckbox: boolean;
|
|
183
270
|
size: string;
|
|
184
271
|
hasBadge: boolean;
|
|
272
|
+
badgeText: string;
|
|
185
273
|
badgeVariant: string;
|
|
186
274
|
infoText: string;
|
|
275
|
+
checked: boolean;
|
|
276
|
+
disabled: boolean;
|
|
277
|
+
isContentOffset: boolean;
|
|
278
|
+
isShowDropdown: boolean;
|
|
187
279
|
};
|
|
188
280
|
};
|
|
189
281
|
export declare const WithContentOffset: {
|
|
@@ -198,8 +290,33 @@ export declare const WithContentOffset: {
|
|
|
198
290
|
hasCheckbox: boolean;
|
|
199
291
|
size: string;
|
|
200
292
|
hasBadge: boolean;
|
|
293
|
+
badgeText: string;
|
|
201
294
|
badgeVariant: string;
|
|
202
295
|
infoText: string;
|
|
296
|
+
checked: boolean;
|
|
297
|
+
disabled: boolean;
|
|
298
|
+
isShowDropdown: boolean;
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
export declare const WithDescription: {
|
|
302
|
+
args: {
|
|
303
|
+
title: string;
|
|
304
|
+
description: string;
|
|
305
|
+
checkboxId: string;
|
|
306
|
+
content: string;
|
|
307
|
+
valid: boolean;
|
|
308
|
+
productCardOnChange: () => void;
|
|
309
|
+
image: React.JSX.Element;
|
|
310
|
+
hasCheckbox: boolean;
|
|
311
|
+
size: string;
|
|
312
|
+
hasBadge: boolean;
|
|
313
|
+
badgeText: string;
|
|
314
|
+
badgeVariant: string;
|
|
315
|
+
infoText: string;
|
|
316
|
+
checked: boolean;
|
|
317
|
+
disabled: boolean;
|
|
318
|
+
isContentOffset: boolean;
|
|
319
|
+
isShowDropdown: boolean;
|
|
203
320
|
};
|
|
204
321
|
};
|
|
205
322
|
export declare const WithDropdown: {
|
|
@@ -219,7 +336,80 @@ export declare const WithDropdown: {
|
|
|
219
336
|
hasCheckbox: boolean;
|
|
220
337
|
size: string;
|
|
221
338
|
hasBadge: boolean;
|
|
339
|
+
badgeText: string;
|
|
222
340
|
badgeVariant: string;
|
|
223
341
|
infoText: string;
|
|
342
|
+
checked: boolean;
|
|
343
|
+
disabled: boolean;
|
|
344
|
+
isContentOffset: boolean;
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
export declare const Empty: {
|
|
348
|
+
args: {
|
|
349
|
+
title: any;
|
|
350
|
+
content: any;
|
|
351
|
+
image: any;
|
|
352
|
+
hasBadge: boolean;
|
|
353
|
+
infoText: any;
|
|
354
|
+
infoTitle: any;
|
|
355
|
+
checkboxId: string;
|
|
356
|
+
valid: boolean;
|
|
357
|
+
productCardOnChange: () => void;
|
|
358
|
+
hasCheckbox: boolean;
|
|
359
|
+
size: string;
|
|
360
|
+
badgeText: string;
|
|
361
|
+
badgeVariant: string;
|
|
362
|
+
checked: boolean;
|
|
363
|
+
disabled: boolean;
|
|
364
|
+
isContentOffset: boolean;
|
|
365
|
+
isShowDropdown: boolean;
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
export declare const Complete: {
|
|
369
|
+
args: {
|
|
370
|
+
checked: boolean;
|
|
371
|
+
hasBadge: boolean;
|
|
372
|
+
badgeText: string;
|
|
373
|
+
badgeVariant: string;
|
|
374
|
+
description: string;
|
|
375
|
+
content: string;
|
|
376
|
+
infoText: string;
|
|
377
|
+
infoTitle: string;
|
|
378
|
+
isShowDropdown: boolean;
|
|
379
|
+
dropdownWidth: string;
|
|
380
|
+
checkboxId: string;
|
|
381
|
+
dropdownList: {
|
|
382
|
+
title: string;
|
|
383
|
+
onClick: () => void;
|
|
384
|
+
}[];
|
|
385
|
+
title: string;
|
|
386
|
+
valid: boolean;
|
|
387
|
+
productCardOnChange: () => void;
|
|
388
|
+
image: React.JSX.Element;
|
|
389
|
+
hasCheckbox: boolean;
|
|
390
|
+
size: string;
|
|
391
|
+
disabled: boolean;
|
|
392
|
+
isContentOffset: boolean;
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
export declare const Interactive: {
|
|
396
|
+
render: (args: any) => React.JSX.Element;
|
|
397
|
+
args: {
|
|
398
|
+
checkboxId: string;
|
|
399
|
+
hasBadge: boolean;
|
|
400
|
+
title: string;
|
|
401
|
+
content: string;
|
|
402
|
+
valid: boolean;
|
|
403
|
+
productCardOnChange: () => void;
|
|
404
|
+
image: React.JSX.Element;
|
|
405
|
+
hasCheckbox: boolean;
|
|
406
|
+
size: string;
|
|
407
|
+
badgeText: string;
|
|
408
|
+
badgeVariant: string;
|
|
409
|
+
infoText: string;
|
|
410
|
+
checked: boolean;
|
|
411
|
+
disabled: boolean;
|
|
412
|
+
isContentOffset: boolean;
|
|
413
|
+
isShowDropdown: boolean;
|
|
224
414
|
};
|
|
225
415
|
};
|