@lanaco/lnc-react-ui 4.0.206 → 4.0.207
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/BREAKPOINTS.md +148 -0
- package/dist/Accordion.cjs +1 -1
- package/dist/Accordion.js +6 -6
- package/dist/AccordionSummary.cjs +1 -1
- package/dist/AccordionSummary.js +8 -8
- package/dist/ActionsToolbar.cjs +15 -4
- package/dist/ActionsToolbar.js +58 -46
- package/dist/AdBannerSection.cjs +4 -4
- package/dist/AdBannerSection.js +5 -5
- package/dist/Alert.cjs +1 -1
- package/dist/Alert.js +1 -1
- package/dist/Avatar.cjs +1 -1
- package/dist/Avatar.js +12 -12
- package/dist/Badge.cjs +1 -1
- package/dist/Badge.js +5 -5
- package/dist/BannerNextSection.cjs +2 -2
- package/dist/BannerNextSection.js +13 -13
- package/dist/BannerSectionBasic.cjs +4 -4
- package/dist/BannerSectionBasic.js +22 -22
- package/dist/BannerSectionCarousel.cjs +27 -6
- package/dist/BannerSectionCarousel.js +71 -50
- package/dist/BannerSectionGrid.cjs +3 -3
- package/dist/BannerSectionGrid.js +13 -13
- package/dist/BannerSectionSimple.cjs +15 -15
- package/dist/BannerSectionSimple.js +40 -40
- package/dist/BannerSectionWithList.cjs +7 -7
- package/dist/BannerSectionWithList.js +20 -20
- package/dist/BannerSectionWithListImage.cjs +6 -9
- package/dist/BannerSectionWithListImage.js +17 -20
- package/dist/BlogCardsSponsoredSection.cjs +7 -5
- package/dist/BlogCardsSponsoredSection.js +32 -30
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +2 -2
- package/dist/BlogExploreSection.cjs +4 -4
- package/dist/BlogExploreSection.js +60 -60
- package/dist/BlogImagePathSection.cjs +3 -14
- package/dist/BlogImagePathSection.js +27 -39
- package/dist/BlogListSection.cjs +6 -6
- package/dist/BlogListSection.js +32 -32
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +3 -3
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +3 -3
- package/dist/BlogSingleSection.cjs +3 -3
- package/dist/BlogSingleSection.js +12 -12
- package/dist/BlogsSectionDetailed.cjs +14 -6
- package/dist/BlogsSectionDetailed.js +53 -45
- package/dist/BlogsSectionLarge.cjs +13 -5
- package/dist/BlogsSectionLarge.js +48 -40
- package/dist/BlogsSectionSimple.cjs +14 -9
- package/dist/BlogsSectionSimple.js +43 -38
- package/dist/BlogsSectionSimpleCentered.cjs +17 -8
- package/dist/BlogsSectionSimpleCentered.js +68 -59
- package/dist/BlogsSectionWithFilters.cjs +16 -11
- package/dist/BlogsSectionWithFilters.js +43 -38
- package/dist/BrandHitsSection.cjs +7 -7
- package/dist/BrandHitsSection.js +13 -13
- package/dist/Breadcrumbs.cjs +1 -1
- package/dist/Breadcrumbs.js +16 -16
- package/dist/Button.cjs +1 -1
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.cjs +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/CalorieCalculatorSection.cjs +15 -15
- package/dist/CalorieCalculatorSection.js +84 -84
- package/dist/{CategorySimpleCard-COGlTj06.cjs → CategorySimpleCard-CIBvknos.cjs} +3 -3
- package/dist/{CategorySimpleCard-Em84kZzQ.js → CategorySimpleCard-CkSwvJRw.js} +8 -8
- package/dist/CheckBoxInput.cjs +1 -1
- package/dist/CheckBoxInput.js +1 -1
- package/dist/Chip.cjs +1 -1
- package/dist/Chip.js +1 -1
- package/dist/ColorInput.cjs +1 -1
- package/dist/ColorInput.js +14 -14
- package/dist/ConfirmationForm.cjs +1 -1
- package/dist/ConfirmationForm.js +5 -5
- package/dist/ContactSection.cjs +4 -4
- package/dist/ContactSection.js +72 -72
- package/dist/CustomLoanMapSection.cjs +3 -3
- package/dist/CustomLoanMapSection.js +67 -67
- package/dist/{CustomStyles-C86XQqBE.cjs → CustomStyles-2TQQSwtU.cjs} +1 -1
- package/dist/{CustomStyles-DtWxboEM.js → CustomStyles-DR4WuDUN.js} +1 -1
- package/dist/{DailyMotion-CpZExcrg.cjs → DailyMotion-BPdBW5Yv.cjs} +1 -1
- package/dist/{DailyMotion-BBcJkMo_.js → DailyMotion-P9S-WhTX.js} +1 -1
- package/dist/DateInput.cjs +6 -6
- package/dist/DateInput.js +646 -645
- package/dist/DecimalInput.cjs +1 -1
- package/dist/DecimalInput.js +1 -1
- package/dist/DecimalInputV2.cjs +1 -1
- package/dist/DecimalInputV2.js +1 -1
- package/dist/DetailedProductsInfinitiveSection.cjs +10 -4
- package/dist/DetailedProductsInfinitiveSection.js +71 -65
- package/dist/DetailedProductsSection.cjs +7 -3
- package/dist/DetailedProductsSection.js +55 -51
- package/dist/DetailsView.cjs +1 -1
- package/dist/DetailsView.js +1 -1
- package/dist/DoubleRangeSlider.cjs +1 -1
- package/dist/DoubleRangeSlider.js +1 -1
- package/dist/DragAndDropFile.cjs +1 -1
- package/dist/DragAndDropFile.js +1 -1
- package/dist/DragDropFiles.cjs +1 -1
- package/dist/DragDropFiles.js +13 -13
- package/dist/Drawer.cjs +1 -1
- package/dist/Drawer.js +1 -1
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +2 -2
- package/dist/DropdownItem.cjs +1 -1
- package/dist/DropdownItem.js +1 -1
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +1 -1
- package/dist/DropdownMenu.cjs +1 -1
- package/dist/DropdownMenu.js +7 -7
- package/dist/EditableTable.cjs +1 -1
- package/dist/EditableTable.js +8 -8
- package/dist/{Facebook-DoKw-XxT.cjs → Facebook-C8L2KR4O.cjs} +1 -1
- package/dist/{Facebook-BSWPEXjA.js → Facebook-vhbBr0rd.js} +1 -1
- package/dist/FaqSection.cjs +3 -3
- package/dist/FaqSection.js +52 -52
- package/dist/FeedbackSection.cjs +3 -3
- package/dist/FeedbackSection.js +15 -15
- package/dist/FieldOfInterestsMasonrySection.cjs +18 -12
- package/dist/FieldOfInterestsMasonrySection.js +73 -67
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +13 -7
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +64 -58
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +15 -9
- package/dist/FieldOfInterestsWithTagsCardsSection.js +42 -36
- package/dist/FileInput.cjs +1 -1
- package/dist/FileInput.js +1 -1
- package/dist/{FilePlayer-D9az_lc_.cjs → FilePlayer-BVFgHY_f.cjs} +1 -1
- package/dist/{FilePlayer-BtGpIWnK.js → FilePlayer-CXTLAokk.js} +1 -1
- package/dist/FlexGridItem.cjs +1 -1
- package/dist/FlexGridItem.js +1 -1
- package/dist/FormField.cjs +1 -1
- package/dist/FormField.js +1 -1
- package/dist/FormView.cjs +1 -1
- package/dist/FormView.js +1 -1
- package/dist/GeneralWithTagsCardsSection.cjs +14 -8
- package/dist/GeneralWithTagsCardsSection.js +31 -25
- package/dist/GiftCardsSection.cjs +15 -7
- package/dist/GiftCardsSection.js +44 -36
- package/dist/HelpBannerSection.cjs +3 -3
- package/dist/HelpBannerSection.js +4 -4
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.js +4 -4
- package/dist/IconButton.cjs +1 -1
- package/dist/IconButton.js +1 -1
- package/dist/{Kaltura-CK6JHUZC.cjs → Kaltura-C2fRoaEg.cjs} +1 -1
- package/dist/{Kaltura-BDqlEQpd.js → Kaltura-CRGK2EP7.js} +1 -1
- package/dist/Kanban.cjs +1 -1
- package/dist/Kanban.js +1 -1
- package/dist/KanbanActionsToolbar.cjs +1 -1
- package/dist/KanbanActionsToolbar.js +5 -5
- package/dist/KanbanView.cjs +1 -1
- package/dist/KanbanView.js +9 -9
- package/dist/Link.cjs +1 -1
- package/dist/Link.js +1 -1
- package/dist/LoanCalculatorSection.cjs +3 -3
- package/dist/LoanCalculatorSection.js +17 -17
- package/dist/LocationFinderSection.cjs +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/LocationSearchSection.cjs +13 -6
- package/dist/LocationSearchSection.js +34 -27
- package/dist/MasonryGeneralCardsSection.cjs +13 -9
- package/dist/MasonryGeneralCardsSection.js +34 -30
- package/dist/MenuItem.cjs +1 -1
- package/dist/MenuItem.js +14 -14
- package/dist/{Mixcloud-zAh6j7Ha.js → Mixcloud-Cn5M-EIT.js} +1 -1
- package/dist/{Mixcloud-C1Boh2Bm.cjs → Mixcloud-D09BQNOt.cjs} +1 -1
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.js +1 -1
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +1 -1
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +1 -1
- package/dist/{Mux-C6TwZeaq.cjs → Mux-C-xD7crc.cjs} +1 -1
- package/dist/{Mux-BGTG_Tvc.js → Mux-C6szci3w.js} +1 -1
- package/dist/NestedDropdownItem.cjs +1 -1
- package/dist/NestedDropdownItem.js +9 -9
- package/dist/NestedMenuItem.cjs +1 -1
- package/dist/NestedMenuItem.js +7 -7
- package/dist/NotificationContainer.cjs +1 -1
- package/dist/NotificationContainer.js +1 -1
- package/dist/NotificationMessage.cjs +1 -1
- package/dist/NotificationMessage.js +5 -5
- package/dist/NumberInput.cjs +1 -1
- package/dist/NumberInput.js +8 -8
- package/dist/OverlayGeneralCardsSection.cjs +19 -31
- package/dist/OverlayGeneralCardsSection.js +51 -63
- package/dist/PartnerBannerSection.cjs +2 -2
- package/dist/PartnerBannerSection.js +2 -2
- package/dist/PartnerBrandsSection.cjs +2 -2
- package/dist/PartnerBrandsSection.js +24 -17
- package/dist/PartnerCardsSection.cjs +3 -3
- package/dist/PartnerCardsSection.js +18 -18
- package/dist/PartnerStatsSection.cjs +2 -2
- package/dist/PartnerStatsSection.js +3 -3
- package/dist/PasswordInput.cjs +1 -1
- package/dist/PasswordInput.js +19 -19
- package/dist/PopoverContent.cjs +1 -1
- package/dist/PopoverContent.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +20 -10
- package/dist/ProductsWithBannerSection.js +79 -69
- package/dist/ProgressBar.cjs +1 -1
- package/dist/ProgressBar.js +5 -5
- package/dist/QuattroCardsSection.cjs +8 -6
- package/dist/QuattroCardsSection.js +19 -17
- package/dist/QuizSection.cjs +9 -9
- package/dist/QuizSection.js +56 -56
- package/dist/RadioInput.cjs +1 -1
- package/dist/RadioInput.js +1 -1
- package/dist/RangeSlider.cjs +1 -1
- package/dist/RangeSlider.js +1 -1
- package/dist/ReviewsSection.cjs +24 -16
- package/dist/ReviewsSection.js +56 -48
- package/dist/SalesCampaignsSection.cjs +25 -21
- package/dist/SalesCampaignsSection.js +248 -241
- package/dist/{SearchSection-DAaMecR4.js → SearchSection-BEYnWPSr.js} +69 -69
- package/dist/{SearchSection-B94YN_6P.cjs → SearchSection-DUY61r3k.cjs} +6 -6
- package/dist/SearchSection.cjs +1 -1
- package/dist/SearchSection.js +1 -1
- package/dist/Separator.cjs +1 -1
- package/dist/Separator.js +3 -3
- package/dist/SeparatorSection.cjs +3 -3
- package/dist/SeparatorSection.js +4 -4
- package/dist/ShopCardsSection.cjs +11 -5
- package/dist/ShopCardsSection.js +40 -34
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +9 -5
- package/dist/SimpleCategoriesSection.js +61 -57
- package/dist/SimpleProductsSection.cjs +44 -11
- package/dist/SimpleProductsSection.js +100 -67
- package/dist/{SoundCloud-C6R6E6Zc.cjs → SoundCloud-BsL6Onq6.cjs} +1 -1
- package/dist/{SoundCloud-lO8wg_0s.js → SoundCloud-Cfaj1Ze1.js} +1 -1
- package/dist/Spinner.cjs +1 -1
- package/dist/Spinner.js +1 -1
- package/dist/StatsSection.cjs +3 -3
- package/dist/StatsSection.js +11 -11
- package/dist/{Streamable-Dwa5ZEK4.js → Streamable-CG8_-_w7.js} +1 -1
- package/dist/{Streamable-DZO95CiT.cjs → Streamable-DFtyk9Dt.cjs} +1 -1
- package/dist/Surface.cjs +1 -1
- package/dist/Surface.js +1 -1
- package/dist/SwipeableDrawer.cjs +1 -1
- package/dist/SwipeableDrawer.js +1 -1
- package/dist/TabItem.cjs +1 -1
- package/dist/TabItem.js +1 -1
- package/dist/Table.cjs +54 -49
- package/dist/Table.js +417 -401
- package/dist/TableView.cjs +10 -2
- package/dist/TableView.js +84 -75
- package/dist/TextAreaInput.cjs +1 -1
- package/dist/TextAreaInput.js +1 -1
- package/dist/TextInput.cjs +1 -1
- package/dist/TextInput.js +1 -1
- package/dist/ThemeProvider.cjs +4 -4
- package/dist/ThemeProvider.js +11 -10
- package/dist/TimeInput.cjs +1 -1
- package/dist/TimeInput.js +1 -1
- package/dist/Toggle.cjs +1 -1
- package/dist/Toggle.js +1 -1
- package/dist/ToggleSection.cjs +7 -7
- package/dist/ToggleSection.js +38 -38
- package/dist/TreeMenuSeparator.cjs +1 -1
- package/dist/TreeMenuSeparator.js +3 -3
- package/dist/{Twitch-B17oKtD0.cjs → Twitch-BIUEEDiE.cjs} +1 -1
- package/dist/{Twitch-C73-dwWo.js → Twitch-CbU_0Tx9.js} +1 -1
- package/dist/UploadedFile.cjs +1 -1
- package/dist/UploadedFile.js +7 -7
- package/dist/UrgentSaleProductsSection.cjs +10 -4
- package/dist/UrgentSaleProductsSection.js +67 -61
- package/dist/{Vidyard-s1MMcaRm.cjs → Vidyard-QkjVIros.cjs} +1 -1
- package/dist/{Vidyard-B6GdBHsM.js → Vidyard-S6Fl_F78.js} +1 -1
- package/dist/{Vimeo-kzHz4Gco.js → Vimeo-5bkeYCV4.js} +1 -1
- package/dist/{Vimeo-J1l_SU2E.cjs → Vimeo-B5jsifNT.cjs} +1 -1
- package/dist/{Wistia-CudQyDHM.cjs → Wistia-dpbMmx23.cjs} +1 -1
- package/dist/{Wistia-w4jnqd7y.js → Wistia-gOZBV0XZ.js} +1 -1
- package/dist/{YouTube-BAYKouHS.cjs → YouTube-BfZRCB6O.cjs} +1 -1
- package/dist/{YouTube-BKyipPZx.js → YouTube-XoIB4ATQ.js} +1 -1
- package/dist/breakpoints-CcVm-gVm.cjs +1 -0
- package/dist/breakpoints-ff0SIcV3.js +91 -0
- package/dist/{index-u_XFwsvc.js → index-9KyU46J0.js} +11 -9
- package/dist/{index-CSgGox95.cjs → index-B9c6y2J5.cjs} +3 -3
- package/dist/{index-CS4w87SW.cjs → index-BEgD9vNo.cjs} +9 -9
- package/dist/{index-BC2PHcI1.js → index-BWeXujWl.js} +10 -10
- package/dist/index-B_ilx3wM.cjs +16 -0
- package/dist/{index-B22BZVBG.js → index-BvMY2TbK.js} +1 -1
- package/dist/{index-CwMCk9wV.js → index-BzSWu-7v.js} +67 -67
- package/dist/{index-TIqKd2Dv.js → index-C-uOIDDa.js} +2 -2
- package/dist/{index-bihqNqQk.js → index-C4HycAPS.js} +6 -6
- package/dist/{index-BWE-RCPy.cjs → index-CBZ-jNah.cjs} +4 -4
- package/dist/{index-D_5jNP-o.cjs → index-CUaeb_TU.cjs} +5 -5
- package/dist/{index-DK8dqEUQ.js → index-CoQ9APCD.js} +11 -11
- package/dist/{index-BAJkosVg.cjs → index-CsTfXxpp.cjs} +2 -2
- package/dist/{index-D0JDnm9b.cjs → index-Dc0EEBRW.cjs} +4 -4
- package/dist/{index-uwl7BjRF.cjs → index-DsINTjQk.cjs} +1 -1
- package/dist/{index-Cm414y95.js → index-L_Va5-wK.js} +13 -13
- package/dist/{index-CBMsUFkS.js → index-hC-E71GE.js} +11 -11
- package/dist/{index-BFc3nxYZ.cjs → index-of6WydGq.cjs} +4 -2
- package/dist/{index-BASX-BjS.js → index-rYUwBlpp.js} +63 -63
- package/dist/{index-D0IYt1s3.cjs → index-uCWKRzoS.cjs} +2 -2
- package/dist/{index-CRk3vcd4.cjs → index-vQOR22Py.cjs} +4 -4
- package/dist/{index-D-86mDtn.js → index-yARaIaLj.js} +29 -29
- package/dist/index.cjs +1 -1
- package/dist/index.js +213 -194
- package/dist/{style-BTTXJFJN.cjs → style-AYc9hnFj.cjs} +14 -2
- package/dist/{style-neMbLWE6.js → style-BUyFad_y.js} +4 -4
- package/dist/{style-tw6KjI2J.js → style-Bq3rMbnN.js} +16 -4
- package/dist/{style-B4kAj6YU.cjs → style-DC05rdyx.cjs} +5 -5
- package/dist/{tag-Dm8CW4TM.js → tag-Bi8gg6hJ.js} +12 -12
- package/dist/{tag-UQjq2_Ba.cjs → tag-DSnhWWHE.cjs} +5 -5
- package/dist/{utils-DtEfC-TX.js → theme-Befg4g_L.js} +19 -378
- package/dist/theme-Q3WOGKWQ.cjs +1 -0
- package/dist/{useDetectMobile-Bkvj0VMa.js → useDetectMobile-CcVo3PNi.js} +1 -1
- package/dist/useDetectMobile-DYV6V1yw.cjs +1 -0
- package/dist/utils-B2fsQ6PS.js +334 -0
- package/dist/utils-CITgSxXe.cjs +51 -0
- package/package.json +1 -1
- package/dist/consts-BuFChS64.js +0 -7
- package/dist/consts-goSZX3xP.cjs +0 -1
- package/dist/index-D-3I_Ppj.cjs +0 -16
- package/dist/useDetectMobile-zkbzoOGV.cjs +0 -1
- package/dist/utils-RnrgDDZP.cjs +0 -51
package/dist/DecimalInput.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const k=require("react/jsx-runtime"),F=require("react"),te=require("./index-Cp66dWMi.cjs"),K=require("./emotion-styled.browser.esm-BtEseadx.cjs"),S=require("./utils-
|
|
1
|
+
"use strict";const k=require("react/jsx-runtime"),F=require("react"),te=require("./index-Cp66dWMi.cjs"),K=require("./emotion-styled.browser.esm-BtEseadx.cjs"),S=require("./utils-CITgSxXe.cjs"),re=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs");function $(){}function ae(){return!0}function T(r){return!!(r||"").match(/\d/)}function W(r){return r==null}function z(r){return r.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function ie(r){switch(r){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function oe(r,s,f){var e=ie(f),t=r.search(/[1-9]/);return t=t===-1?r.length:t,r.substring(0,t)+r.substring(t,r.length).replace(e,"$1"+s)}function L(r,s){s===void 0&&(s=!0);var f=r[0]==="-",e=f&&s;r=r.replace("-","");var t=r.split("."),a=t[0],o=t[1]||"";return{beforeDecimal:a,afterDecimal:o,hasNagation:f,addNegation:e}}function ne(r){if(!r)return r;var s=r[0]==="-";s&&(r=r.substring(1,r.length));var f=r.split("."),e=f[0].replace(/^0+/,"")||"0",t=f[1]||"";return(s?"-":"")+e+(t?"."+t:"")}function Z(r,s,f){for(var e="",t=f?"0":"",a=0;a<=s-1;a++)e+=r[a]||t;return e}function q(r,s){return Array(s+1).join(r)}function se(r){r+="";var s=r[0]==="-"?"-":"";s&&(r=r.substring(1));var f=r.split(/[eE]/g),e=f[0],t=f[1];if(t=Number(t),!t)return s+e;e=e.replace(".","");var a=1+t,o=e.length;return a<0?e="0."+q("0",Math.abs(a))+e:a>=o?e=e+q("0",a-o):e=(e.substring(0,a)||"0")+"."+e.substring(a),s+e}function le(r,s,f){if(["","-"].indexOf(r)!==-1)return r;var e=r.indexOf(".")!==-1&&s,t=L(r),a=t.beforeDecimal,o=t.afterDecimal,l=t.hasNagation,i=parseFloat("0."+(o||"0")),n=o.length<=s?"0."+o:i.toFixed(s),u=n.split("."),d=a.split("").reverse().reduce(function(m,v,b){return m.length>b?(Number(m[0])+Number(v)).toString()+m.substring(1,m.length):v+m},u[0]),c=Z(u[1]||"",Math.min(s,o.length),f),p=l?"-":"",h=e?".":"";return""+p+d+h+c}function G(r,s){if(r.value=r.value,r!==null){if(r.createTextRange){var f=r.createTextRange();return f.move("character",s),f.select(),!0}return r.selectionStart||r.selectionStart===0?(r.focus(),r.setSelectionRange(s,s),!0):(r.focus(),!1)}}function ue(r,s){for(var f=0,e=0,t=r.length,a=s.length;r[f]===s[f]&&f<t;)f++;for(;r[t-1-e]===s[a-1-e]&&a-e>f&&t-e>f;)e++;return{start:f,end:t-e}}function U(r,s,f){return Math.min(Math.max(r,s),f)}function _(r){return Math.max(r.selectionStart,r.selectionEnd)}function fe(r){return r||typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function ce(r,s){var f={};for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&s.indexOf(e)===-1&&(f[e]=r[e]);return f}var de={displayType:"input",decimalSeparator:".",thousandsGroupStyle:"thousand",fixedDecimalScale:!1,prefix:"",suffix:"",allowNegative:!0,allowEmptyFormatting:!1,allowLeadingZeros:!1,isNumericString:!1,type:"text",onValueChange:$,onChange:$,onKeyDown:$,onMouseUp:$,onFocus:$,onBlur:$,isAllowed:ae},H=function(r){function s(f){r.call(this,f);var e=f.defaultValue;this.validateProps();var t=this.formatValueProp(e);this.state={value:t,numAsString:this.removeFormatting(t),mounted:!1},this.selectionBeforeInput={selectionStart:0,selectionEnd:0},this.onChange=this.onChange.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.onMouseUp=this.onMouseUp.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this)}return r&&(s.__proto__=r),s.prototype=Object.create(r&&r.prototype),s.prototype.constructor=s,s.prototype.componentDidMount=function(){this.setState({mounted:!0})},s.prototype.componentDidUpdate=function(e){this.updateValueIfRequired(e)},s.prototype.componentWillUnmount=function(){clearTimeout(this.focusTimeout),clearTimeout(this.caretPositionTimeout)},s.prototype.updateValueIfRequired=function(e){var t=this,a=t.props,o=t.state,l=t.focusedElm,i=o.value,n=o.numAsString;if(n===void 0&&(n=""),e!==a){this.validateProps();var u=this.formatNumString(n),d=W(a.value)?u:this.formatValueProp(),c=this.removeFormatting(d),p=parseFloat(c),h=parseFloat(n);((!isNaN(p)||!isNaN(h))&&p!==h||u!==i||l===null&&d!==i)&&this.updateValue({formattedValue:d,numAsString:c,input:l,source:"prop",event:null})}},s.prototype.getFloatString=function(e){e===void 0&&(e="");var t=this.props,a=t.decimalScale,o=this.getSeparators(),l=o.decimalSeparator,i=this.getNumberRegex(!0),n=e[0]==="-";n&&(e=e.replace("-","")),l&&a===0&&(e=e.split(l)[0]),e=(e.match(i)||[]).join("").replace(l,".");var u=e.indexOf(".");return u!==-1&&(e=e.substring(0,u)+"."+e.substring(u+1,e.length).replace(new RegExp(z(l),"g"),"")),n&&(e="-"+e),e},s.prototype.getNumberRegex=function(e,t){var a=this.props,o=a.format,l=a.decimalScale,i=a.customNumerals,n=this.getSeparators(),u=n.decimalSeparator;return new RegExp("[0-9"+(i?i.join(""):"")+"]"+(u&&l!==0&&!t&&!o?"|"+z(u):""),e?"g":void 0)},s.prototype.getSeparators=function(){var e=this.props,t=e.decimalSeparator,a=this.props,o=a.thousandSeparator,l=a.allowedDecimalSeparators;return o===!0&&(o=","),l||(l=[t,"."]),{decimalSeparator:t,thousandSeparator:o,allowedDecimalSeparators:l}},s.prototype.getMaskAtIndex=function(e){var t=this.props,a=t.mask;return a===void 0&&(a=" "),typeof a=="string"?a:a[e]||" "},s.prototype.getValueObject=function(e,t){var a=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(a)?void 0:a}},s.prototype.validateProps=function(){var e=this.props,t=e.mask,a=this.getSeparators(),o=a.decimalSeparator,l=a.thousandSeparator;if(o===l)throw new Error(`
|
|
2
2
|
Decimal separator can't be same as thousand separator.
|
|
3
3
|
thousandSeparator: `+l+` (thousandSeparator = {true} is same as thousandSeparator = ",")
|
|
4
4
|
decimalSeparator: `+o+` (default value for decimalSeparator is .)
|
package/dist/DecimalInput.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs as ae, jsx as U } from "react/jsx-runtime";
|
|
|
2
2
|
import O, { forwardRef as ie, useState as oe, useCallback as ne } from "react";
|
|
3
3
|
import { d as se } from "./index-Dt62UGku.js";
|
|
4
4
|
import { s as G } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
-
import {
|
|
5
|
+
import { e as k, c as N, b as fe, f as ue, i as W, d as le } from "./utils-B2fsQ6PS.js";
|
|
6
6
|
import { u as ce } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
7
|
function R() {
|
|
8
8
|
}
|
package/dist/DecimalInputV2.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const m=require("react/jsx-runtime"),b=require("react"),I=require("./emotion-styled.browser.esm-BtEseadx.cjs"),r=require("./utils-
|
|
1
|
+
"use strict";const m=require("react/jsx-runtime"),b=require("react"),I=require("./emotion-styled.browser.esm-BtEseadx.cjs"),r=require("./utils-CITgSxXe.cjs"),J=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),L=I.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
|
package/dist/DecimalInputV2.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as Y, jsx as w } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as Z, useState as W, useRef as _, useEffect as R } from "react";
|
|
3
3
|
import { s as N } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import {
|
|
4
|
+
import { e as m, c, b as v, f as S, i as F, d as A } from "./utils-B2fsQ6PS.js";
|
|
5
5
|
import { u as ee } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
6
6
|
const te = N.div`
|
|
7
7
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),l=require("react"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),l=require("react"),K=require("./emotion-styled.browser.esm-BtEseadx.cjs"),g=require("./breakpoints-CcVm-gVm.cjs"),Q=require("./IconButton.cjs"),G=require("./Button.cjs"),r=require("./utils-CITgSxXe.cjs"),H=require("./useDetectMobile-DYV6V1yw.cjs"),f=require("./index-BEgD9vNo.cjs"),J=require("./index-vQOR22Py.cjs"),W=require("./index-oYE1Pl7q.cjs"),X=K.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 1.5rem;
|
|
@@ -32,10 +32,16 @@
|
|
|
32
32
|
|
|
33
33
|
& .section__items {
|
|
34
34
|
display: grid;
|
|
35
|
-
grid-template-columns: ${
|
|
35
|
+
grid-template-columns: ${s=>`repeat(${s.limit}, minmax(0, 1fr))`};
|
|
36
36
|
gap: 2rem;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
@media ${g.down("M")} {
|
|
40
|
+
& .section__items {
|
|
41
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
39
45
|
& .section__show-more {
|
|
40
46
|
color: var(--neutral-600, #0f2a46);
|
|
41
47
|
font-size: 0.875rem;
|
|
@@ -56,7 +62,7 @@
|
|
|
56
62
|
white-space: nowrap;
|
|
57
63
|
}
|
|
58
64
|
|
|
59
|
-
@media
|
|
65
|
+
@media ${g.down("S")} {
|
|
60
66
|
gap: 1.25rem;
|
|
61
67
|
|
|
62
68
|
& .section__items {
|
|
@@ -79,4 +85,4 @@
|
|
|
79
85
|
}
|
|
80
86
|
}
|
|
81
87
|
}
|
|
82
|
-
`,
|
|
88
|
+
`,Y=l.memo(f.DetailedProductCard),Z=l.forwardRef((s,b)=>{const{title:c,icon:d,items:i,limit:h=4,isLoading:a=!1,onSelectCard:_=()=>{},onLoadMore:y=()=>{},onButtonAction:S=()=>{},getImage:w=()=>{},viewAllbuttonLink:u,viewAllButonText:m="View all",negotiableText:k,freeText:v,loadMoreButtonIcon:C="angle-down",sponsoredText:N,onBookmark:j=()=>{},actionComponent:q,componentName:P,hasNextPage:L=!1,LinkComponent:B,urgentText:D,options:o=[],isLoadingOptions:M=!1,selectedOption:O,onSelectOption:T=()=>{},onRemoveOption:R=()=>{},allOptionsEnabled:A=!1,allOptionsLabel:E="All",onSelectAllOptions:I=()=>{},optionLabel:$="label",optionValue:z="value",optionCode:F="code"}=s,p=H.useDetectMobile(),U=l.useMemo(()=>i==null?void 0:i.map((e,n)=>t.jsx(Y,{name:e==null?void 0:e.name,price:e==null?void 0:e.price,sellingPrice:e==null?void 0:e.sellingPrice,currency:e==null?void 0:e.currency,image:e==null?void 0:e.image,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,sponsored:e==null?void 0:e.sponsored,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:(x,V)=>_({uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,cardRef:V}),nameSlug:e==null?void 0:e.nameSlug,imageUrl:w(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,negotiableText:k,freeText:v,tags:e==null?void 0:e.tags,categoryCode:e==null?void 0:e.categoryCode,condition:e==null?void 0:e.condition,quantity:e==null?void 0:e.quantity,hasQuantities:e==null?void 0:e.hasQuantities,status:e==null?void 0:e.status,trade:e==null?void 0:e.trade,sponsoredText:N,onBookmark:j,actionComponent:q,bookmarked:e==null?void 0:e.bookmarked,bookmarkLists:e==null?void 0:e.bookmarkLists,metadata:{accessor:e==null?void 0:e.accessor,name:P},sellerName:e==null?void 0:e.sellerName,forCart:e==null?void 0:e.forCart,forOrder:e==null?void 0:e.forOrder,contactSeller:e==null?void 0:e.contactSeller,hasVariants:e==null?void 0:e.hasVariants,LinkComponent:B,activeSalesPackages:e==null?void 0:e.activeSalesPackages,urgentText:D,hasFreeShipping:e==null?void 0:e.hasFreeShipping},n)),[i]);return t.jsxs(X,{ref:b,limit:h,children:[t.jsxs("div",{className:"section__heading",children:[r.isDefinedNotEmptyString(c)&&t.jsxs("div",{className:"section__title",children:[r.isDefinedNotEmptyString(d)&&t.jsx("i",{className:d})," ",c]}),p&&r.isDefinedNotEmptyString(u)&&r.isDefinedNotEmptyString(m)&&!a&&t.jsx(G,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var n;(n=e==null?void 0:e.target)==null||n.blur(),S(u)},borderRadius:"curved",className:"section__view-all",children:m})]}),t.jsx(W.SuspenseSelectBar,{isLoading:M,children:o&&(o==null?void 0:o.length)>0&&t.jsx(J.SelectBar,{items:o,selectedIds:O,onRemove:R,onSelect:T,allButton:A,onSelectAll:I,labelKey:$,valueKey:z,codeKey:F,noMargin:!0,productsToolbarName:E,noGradient:!0,className:"section__options"})}),t.jsx(f.SuspenseDetailedProductCard,{isLoading:a,keyPrefix:"detailed-product-card-skeleton",children:t.jsx("div",{className:"section__items",children:U})}),!p&&!a&&L&&t.jsx(Q,{icon:C,borderRadius:"curved",btnType:"basic",color:"neutral",className:"section__show-more",onClick:y})]})});module.exports=Z;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
2
|
-
import { memo as
|
|
3
|
-
import { s as
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import { u as
|
|
9
|
-
import { D as
|
|
10
|
-
import { S as
|
|
2
|
+
import { memo as K, forwardRef as q, useMemo as Q } from "react";
|
|
3
|
+
import { s as G } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { d as g } from "./breakpoints-ff0SIcV3.js";
|
|
5
|
+
import H from "./IconButton.js";
|
|
6
|
+
import J from "./Button.js";
|
|
7
|
+
import { l as n } from "./utils-B2fsQ6PS.js";
|
|
8
|
+
import { u as W } from "./useDetectMobile-CcVo3PNi.js";
|
|
9
|
+
import { D as X, S as Y } from "./index-rYUwBlpp.js";
|
|
10
|
+
import { S as Z } from "./index-BzSWu-7v.js";
|
|
11
11
|
import { S as x } from "./index-4wvppFLx.js";
|
|
12
|
-
const ee =
|
|
12
|
+
const ee = G.div`
|
|
13
13
|
display: flex;
|
|
14
14
|
flex-direction: column;
|
|
15
15
|
gap: 1.5rem;
|
|
@@ -47,6 +47,12 @@ const ee = Q.div`
|
|
|
47
47
|
gap: 2rem;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
@media ${g("M")} {
|
|
51
|
+
& .section__items {
|
|
52
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
50
56
|
& .section__show-more {
|
|
51
57
|
color: var(--neutral-600, #0f2a46);
|
|
52
58
|
font-size: 0.875rem;
|
|
@@ -67,7 +73,7 @@ const ee = Q.div`
|
|
|
67
73
|
white-space: nowrap;
|
|
68
74
|
}
|
|
69
75
|
|
|
70
|
-
@media
|
|
76
|
+
@media ${g("S")} {
|
|
71
77
|
gap: 1.25rem;
|
|
72
78
|
|
|
73
79
|
& .section__items {
|
|
@@ -90,49 +96,49 @@ const ee = Q.div`
|
|
|
90
96
|
}
|
|
91
97
|
}
|
|
92
98
|
}
|
|
93
|
-
`, oe =
|
|
99
|
+
`, oe = K(X), ge = q((r, f) => {
|
|
94
100
|
const {
|
|
95
101
|
title: c,
|
|
96
102
|
icon: m,
|
|
97
103
|
items: i,
|
|
98
|
-
limit:
|
|
104
|
+
limit: b = 4,
|
|
99
105
|
isLoading: l = !1,
|
|
100
106
|
onSelectCard: h = () => {
|
|
101
107
|
},
|
|
102
|
-
onLoadMore:
|
|
108
|
+
onLoadMore: _ = () => {
|
|
103
109
|
},
|
|
104
|
-
onButtonAction:
|
|
110
|
+
onButtonAction: S = () => {
|
|
105
111
|
},
|
|
106
|
-
getImage:
|
|
112
|
+
getImage: w = () => {
|
|
107
113
|
},
|
|
108
114
|
viewAllbuttonLink: d,
|
|
109
115
|
viewAllButonText: u = "View all",
|
|
110
|
-
negotiableText:
|
|
111
|
-
freeText:
|
|
116
|
+
negotiableText: y,
|
|
117
|
+
freeText: v,
|
|
112
118
|
loadMoreButtonIcon: k = "angle-down",
|
|
113
|
-
sponsoredText:
|
|
114
|
-
onBookmark:
|
|
119
|
+
sponsoredText: C,
|
|
120
|
+
onBookmark: N = () => {
|
|
115
121
|
},
|
|
116
|
-
actionComponent:
|
|
117
|
-
componentName:
|
|
118
|
-
hasNextPage:
|
|
119
|
-
LinkComponent:
|
|
120
|
-
urgentText:
|
|
122
|
+
actionComponent: P,
|
|
123
|
+
componentName: L,
|
|
124
|
+
hasNextPage: B = !1,
|
|
125
|
+
LinkComponent: O,
|
|
126
|
+
urgentText: M,
|
|
121
127
|
options: t = [],
|
|
122
|
-
isLoadingOptions:
|
|
123
|
-
selectedOption:
|
|
124
|
-
onSelectOption:
|
|
128
|
+
isLoadingOptions: T = !1,
|
|
129
|
+
selectedOption: A,
|
|
130
|
+
onSelectOption: D = () => {
|
|
125
131
|
},
|
|
126
|
-
onRemoveOption:
|
|
132
|
+
onRemoveOption: z = () => {
|
|
127
133
|
},
|
|
128
|
-
allOptionsEnabled:
|
|
129
|
-
allOptionsLabel:
|
|
130
|
-
onSelectAllOptions:
|
|
134
|
+
allOptionsEnabled: F = !1,
|
|
135
|
+
allOptionsLabel: I = "All",
|
|
136
|
+
onSelectAllOptions: R = () => {
|
|
131
137
|
},
|
|
132
|
-
optionLabel:
|
|
133
|
-
optionValue:
|
|
134
|
-
optionCode:
|
|
135
|
-
} = r, p =
|
|
138
|
+
optionLabel: $ = "label",
|
|
139
|
+
optionValue: U = "value",
|
|
140
|
+
optionCode: V = "code"
|
|
141
|
+
} = r, p = W(), j = Q(() => i == null ? void 0 : i.map((e, a) => /* @__PURE__ */ o(
|
|
136
142
|
oe,
|
|
137
143
|
{
|
|
138
144
|
name: e == null ? void 0 : e.name,
|
|
@@ -144,13 +150,13 @@ const ee = Q.div`
|
|
|
144
150
|
uuid: e == null ? void 0 : e.uuid,
|
|
145
151
|
sponsored: e == null ? void 0 : e.sponsored,
|
|
146
152
|
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
147
|
-
onSelectCard: (te,
|
|
153
|
+
onSelectCard: (te, E) => h({ uuid: e == null ? void 0 : e.uuid, nameSlug: e == null ? void 0 : e.nameSlug, cardRef: E }),
|
|
148
154
|
nameSlug: e == null ? void 0 : e.nameSlug,
|
|
149
|
-
imageUrl:
|
|
155
|
+
imageUrl: w(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
|
|
150
156
|
isFree: e == null ? void 0 : e.isFree,
|
|
151
157
|
isNegotiable: e == null ? void 0 : e.isNegotiable,
|
|
152
|
-
negotiableText:
|
|
153
|
-
freeText:
|
|
158
|
+
negotiableText: y,
|
|
159
|
+
freeText: v,
|
|
154
160
|
tags: e == null ? void 0 : e.tags,
|
|
155
161
|
categoryCode: e == null ? void 0 : e.categoryCode,
|
|
156
162
|
condition: e == null ? void 0 : e.condition,
|
|
@@ -158,25 +164,25 @@ const ee = Q.div`
|
|
|
158
164
|
hasQuantities: e == null ? void 0 : e.hasQuantities,
|
|
159
165
|
status: e == null ? void 0 : e.status,
|
|
160
166
|
trade: e == null ? void 0 : e.trade,
|
|
161
|
-
sponsoredText:
|
|
162
|
-
onBookmark:
|
|
163
|
-
actionComponent:
|
|
167
|
+
sponsoredText: C,
|
|
168
|
+
onBookmark: N,
|
|
169
|
+
actionComponent: P,
|
|
164
170
|
bookmarked: e == null ? void 0 : e.bookmarked,
|
|
165
171
|
bookmarkLists: e == null ? void 0 : e.bookmarkLists,
|
|
166
|
-
metadata: { accessor: e == null ? void 0 : e.accessor, name:
|
|
172
|
+
metadata: { accessor: e == null ? void 0 : e.accessor, name: L },
|
|
167
173
|
sellerName: e == null ? void 0 : e.sellerName,
|
|
168
174
|
forCart: e == null ? void 0 : e.forCart,
|
|
169
175
|
forOrder: e == null ? void 0 : e.forOrder,
|
|
170
176
|
contactSeller: e == null ? void 0 : e.contactSeller,
|
|
171
177
|
hasVariants: e == null ? void 0 : e.hasVariants,
|
|
172
|
-
LinkComponent:
|
|
178
|
+
LinkComponent: O,
|
|
173
179
|
activeSalesPackages: e == null ? void 0 : e.activeSalesPackages,
|
|
174
|
-
urgentText:
|
|
180
|
+
urgentText: M,
|
|
175
181
|
hasFreeShipping: e == null ? void 0 : e.hasFreeShipping
|
|
176
182
|
},
|
|
177
183
|
a
|
|
178
184
|
)), [i]);
|
|
179
|
-
return /* @__PURE__ */ s(ee, { ref:
|
|
185
|
+
return /* @__PURE__ */ s(ee, { ref: f, limit: b, children: [
|
|
180
186
|
/* @__PURE__ */ s("div", { className: "section__heading", children: [
|
|
181
187
|
n(c) && /* @__PURE__ */ s("div", { className: "section__title", children: [
|
|
182
188
|
n(m) && /* @__PURE__ */ o("i", { className: m }),
|
|
@@ -184,14 +190,14 @@ const ee = Q.div`
|
|
|
184
190
|
c
|
|
185
191
|
] }),
|
|
186
192
|
p && n(d) && n(u) && !l && /* @__PURE__ */ o(
|
|
187
|
-
|
|
193
|
+
J,
|
|
188
194
|
{
|
|
189
195
|
type: "button",
|
|
190
196
|
btnType: "tinted",
|
|
191
197
|
color: "neutral",
|
|
192
198
|
onClick: (e) => {
|
|
193
199
|
var a;
|
|
194
|
-
(a = e == null ? void 0 : e.target) == null || a.blur(),
|
|
200
|
+
(a = e == null ? void 0 : e.target) == null || a.blur(), S(d);
|
|
195
201
|
},
|
|
196
202
|
borderRadius: "curved",
|
|
197
203
|
className: "section__view-all",
|
|
@@ -199,41 +205,41 @@ const ee = Q.div`
|
|
|
199
205
|
}
|
|
200
206
|
)
|
|
201
207
|
] }),
|
|
202
|
-
/* @__PURE__ */ o(x, { isLoading:
|
|
203
|
-
|
|
208
|
+
/* @__PURE__ */ o(x, { isLoading: T, children: t && (t == null ? void 0 : t.length) > 0 && /* @__PURE__ */ o(
|
|
209
|
+
Z,
|
|
204
210
|
{
|
|
205
211
|
items: t,
|
|
206
|
-
selectedIds:
|
|
207
|
-
onRemove:
|
|
208
|
-
onSelect:
|
|
209
|
-
allButton:
|
|
210
|
-
onSelectAll:
|
|
211
|
-
labelKey:
|
|
212
|
-
valueKey:
|
|
213
|
-
codeKey:
|
|
212
|
+
selectedIds: A,
|
|
213
|
+
onRemove: z,
|
|
214
|
+
onSelect: D,
|
|
215
|
+
allButton: F,
|
|
216
|
+
onSelectAll: R,
|
|
217
|
+
labelKey: $,
|
|
218
|
+
valueKey: U,
|
|
219
|
+
codeKey: V,
|
|
214
220
|
noMargin: !0,
|
|
215
|
-
productsToolbarName:
|
|
221
|
+
productsToolbarName: I,
|
|
216
222
|
noGradient: !0,
|
|
217
223
|
className: "section__options"
|
|
218
224
|
}
|
|
219
225
|
) }),
|
|
220
226
|
/* @__PURE__ */ o(
|
|
221
|
-
|
|
227
|
+
Y,
|
|
222
228
|
{
|
|
223
229
|
isLoading: l,
|
|
224
230
|
keyPrefix: "detailed-product-card-skeleton",
|
|
225
|
-
children: /* @__PURE__ */ o("div", { className: "section__items", children:
|
|
231
|
+
children: /* @__PURE__ */ o("div", { className: "section__items", children: j })
|
|
226
232
|
}
|
|
227
233
|
),
|
|
228
|
-
!p && !l &&
|
|
229
|
-
|
|
234
|
+
!p && !l && B && /* @__PURE__ */ o(
|
|
235
|
+
H,
|
|
230
236
|
{
|
|
231
237
|
icon: k,
|
|
232
238
|
borderRadius: "curved",
|
|
233
239
|
btnType: "basic",
|
|
234
240
|
color: "neutral",
|
|
235
241
|
className: "section__show-more",
|
|
236
|
-
onClick:
|
|
242
|
+
onClick: _
|
|
237
243
|
}
|
|
238
244
|
)
|
|
239
245
|
] });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),c=require("react"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),c=require("react"),K=require("./emotion-styled.browser.esm-BtEseadx.cjs"),j=require("./breakpoints-CcVm-gVm.cjs"),W=require("./Button.cjs"),l=require("./utils-CITgSxXe.cjs"),z=require("./useDetectMobile-DYV6V1yw.cjs"),G=require("./style-DC05rdyx.cjs"),P=require("./index-BEgD9vNo.cjs"),V=require("./index-vQOR22Py.cjs"),H=require("./index-oYE1Pl7q.cjs"),J=K.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${n=>`repeat(${n.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
@@ -16,7 +16,11 @@
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
@media
|
|
19
|
+
@media ${j.down("M")} {
|
|
20
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@media ${j.down("S")} {
|
|
20
24
|
display: flex;
|
|
21
25
|
gap: 1rem;
|
|
22
26
|
overflow-x: auto;
|
|
@@ -35,4 +39,4 @@
|
|
|
35
39
|
/* Safari and Chrome */
|
|
36
40
|
}
|
|
37
41
|
}
|
|
38
|
-
`,
|
|
42
|
+
`,w=c.memo(P.DetailedProductCard),X=c.forwardRef((n,L)=>{const{icon:u,title:F,buttonLink:d,items:i,buttonText:m,limit:r=4,onSelectCard:p=()=>{},onButtonAction:D=()=>{},isLoading:g=!1,getImage:b=()=>{},negotiableText:S,freeText:k,options:a=[],isLoadingOptions:O=!1,selectedOption:T,onSelectOption:U=()=>{},onRemoveOption:M=()=>{},allOptionsEnabled:B=!1,allOptionsLabel:R="All",onSelectAllOptions:_=()=>{},optionLabel:$="label",optionValue:E="value",optionCode:A="code",sponsoredText:y,onBookmark:h=()=>{},actionComponent:f,componentName:C,LinkComponent:N,urgentText:q}=n,v=z.useDetectMobile(),Q=c.useMemo(()=>t.jsx(t.Fragment,{children:v===!0?i==null?void 0:i.map((e,o)=>t.jsx(w,{name:e==null?void 0:e.name,price:e==null?void 0:e.price,sellingPrice:e==null?void 0:e.sellingPrice,currency:e==null?void 0:e.currency,image:e==null?void 0:e.image,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,sponsored:e==null?void 0:e.sponsored,imageComponent:e==null?void 0:e.imageComponent,nameSlug:e==null?void 0:e.nameSlug,onSelectCard:(I,s)=>p({uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,cardRef:s}),sellerName:e==null?void 0:e.sellerName,imageUrl:b(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,negotiableText:S,freeText:k,tags:e==null?void 0:e.tags,categoryCode:e==null?void 0:e.categoryCode,condition:e==null?void 0:e.condition,quantity:e==null?void 0:e.quantity,hasQuantities:e==null?void 0:e.hasQuantities,status:e==null?void 0:e.status,trade:e==null?void 0:e.trade,forCart:e==null?void 0:e.forCart,sponsoredText:y,onBookmark:h,actionComponent:f,bookmarked:e==null?void 0:e.bookmarked,bookmarkLists:e==null?void 0:e.bookmarkLists,metadata:{accessor:e==null?void 0:e.accessor,name:C},LinkComponent:N,activeSalesPackages:e==null?void 0:e.activeSalesPackages,urgentText:q,hasFreeShipping:e==null?void 0:e.hasFreeShipping},o)):i==null?void 0:i.slice(0,r).map((e,o)=>t.jsx(w,{name:e==null?void 0:e.name,price:e==null?void 0:e.price,sellingPrice:e==null?void 0:e.sellingPrice,currency:e==null?void 0:e.currency,image:e==null?void 0:e.image,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,location:e==null?void 0:e.location,sponsored:e==null?void 0:e.sponsored,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:(I,s)=>p({uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,cardRef:s}),nameSlug:e==null?void 0:e.nameSlug,imageUrl:b(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,negotiableText:S,freeText:k,tags:e==null?void 0:e.tags,categoryCode:e==null?void 0:e.categoryCode,condition:e==null?void 0:e.condition,quantity:e==null?void 0:e.quantity,hasQuantities:e==null?void 0:e.hasQuantities,status:e==null?void 0:e.status,trade:e==null?void 0:e.trade,forCart:e==null?void 0:e.forCart,sponsoredText:y,onBookmark:h,actionComponent:f,bookmarked:e==null?void 0:e.bookmarked,bookmarkLists:e==null?void 0:e.bookmarkLists,metadata:{accessor:e==null?void 0:e.accessor,name:C},sellerName:e==null?void 0:e.sellerName,LinkComponent:N,activeSalesPackages:e==null?void 0:e.activeSalesPackages,urgentText:q,hasFreeShipping:e==null?void 0:e.hasFreeShipping},o))}),[i,v,r]);return t.jsxs(G.TitleWithOptionsSectionWrapper,{ref:L,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[l.isDefinedNotEmptyString(u)&&t.jsx("i",{className:u}),t.jsx("span",{children:F})]}),l.isDefinedNotEmptyString(d)&&l.isDefinedNotEmptyString(m)&&!g&&t.jsx(W,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var o;(o=e==null?void 0:e.target)==null||o.blur(),D(d)},borderRadius:"curved",className:"button-link",children:m})]}),t.jsx(H.SuspenseSelectBar,{isLoading:O,children:a&&(a==null?void 0:a.length)>0&&t.jsx(V.SelectBar,{items:a,selectedIds:T,onRemove:M,onSelect:U,allButton:B,onSelectAll:_,labelKey:$,valueKey:E,codeKey:A,noMargin:!0,productsToolbarName:R,noGradient:!0,className:"section__options"})}),t.jsx(P.SuspenseDetailedProductCard,{isLoading:g,keyPrefix:"detailed-products-skeleton",children:t.jsx(J,{limit:r,children:Q})})]})});module.exports=X;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as o, Fragment as K, jsxs as l } from "react/jsx-runtime";
|
|
2
|
-
import { memo as W, forwardRef as
|
|
3
|
-
import { s as
|
|
4
|
-
import {
|
|
2
|
+
import { memo as W, forwardRef as j, useMemo as z } from "react";
|
|
3
|
+
import { s as G } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { d as w } from "./breakpoints-ff0SIcV3.js";
|
|
5
5
|
import V from "./Button.js";
|
|
6
|
-
import {
|
|
7
|
-
import { u as
|
|
8
|
-
import { T as
|
|
9
|
-
import { D as
|
|
10
|
-
import { S as
|
|
6
|
+
import { l as c } from "./utils-B2fsQ6PS.js";
|
|
7
|
+
import { u as H } from "./useDetectMobile-CcVo3PNi.js";
|
|
8
|
+
import { T as J } from "./style-BUyFad_y.js";
|
|
9
|
+
import { D as X, S as Y } from "./index-rYUwBlpp.js";
|
|
10
|
+
import { S as Z } from "./index-BzSWu-7v.js";
|
|
11
11
|
import { S as x } from "./index-4wvppFLx.js";
|
|
12
|
-
const ee =
|
|
12
|
+
const ee = G.div`
|
|
13
13
|
display: grid;
|
|
14
14
|
grid-template-columns: ${(r) => `repeat(${r.limit}, minmax(0, 1fr))`};
|
|
15
15
|
gap: 1.25rem;
|
|
@@ -27,7 +27,11 @@ const ee = z.div`
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
@media
|
|
30
|
+
@media ${w("M")} {
|
|
31
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@media ${w("S")} {
|
|
31
35
|
display: flex;
|
|
32
36
|
gap: 1rem;
|
|
33
37
|
overflow-x: auto;
|
|
@@ -46,11 +50,11 @@ const ee = z.div`
|
|
|
46
50
|
/* Safari and Chrome */
|
|
47
51
|
}
|
|
48
52
|
}
|
|
49
|
-
`,
|
|
53
|
+
`, L = W(X), ue = j((r, F) => {
|
|
50
54
|
const {
|
|
51
|
-
icon:
|
|
52
|
-
title:
|
|
53
|
-
buttonLink:
|
|
55
|
+
icon: m,
|
|
56
|
+
title: T,
|
|
57
|
+
buttonLink: d,
|
|
54
58
|
items: t,
|
|
55
59
|
buttonText: u,
|
|
56
60
|
limit: n = 4,
|
|
@@ -61,22 +65,22 @@ const ee = z.div`
|
|
|
61
65
|
isLoading: g = !1,
|
|
62
66
|
getImage: b = () => {
|
|
63
67
|
},
|
|
64
|
-
negotiableText:
|
|
65
|
-
freeText:
|
|
68
|
+
negotiableText: f,
|
|
69
|
+
freeText: S,
|
|
66
70
|
options: i = [],
|
|
67
|
-
isLoadingOptions:
|
|
68
|
-
selectedOption:
|
|
69
|
-
onSelectOption:
|
|
71
|
+
isLoadingOptions: U = !1,
|
|
72
|
+
selectedOption: B,
|
|
73
|
+
onSelectOption: D = () => {
|
|
70
74
|
},
|
|
71
75
|
onRemoveOption: M = () => {
|
|
72
76
|
},
|
|
73
|
-
allOptionsEnabled:
|
|
74
|
-
allOptionsLabel:
|
|
75
|
-
onSelectAllOptions:
|
|
77
|
+
allOptionsEnabled: q = !1,
|
|
78
|
+
allOptionsLabel: A = "All",
|
|
79
|
+
onSelectAllOptions: Q = () => {
|
|
76
80
|
},
|
|
77
|
-
optionLabel:
|
|
78
|
-
optionValue:
|
|
79
|
-
optionCode:
|
|
81
|
+
optionLabel: R = "label",
|
|
82
|
+
optionValue: _ = "value",
|
|
83
|
+
optionCode: $ = "code",
|
|
80
84
|
sponsoredText: k,
|
|
81
85
|
onBookmark: h = () => {
|
|
82
86
|
},
|
|
@@ -84,8 +88,8 @@ const ee = z.div`
|
|
|
84
88
|
componentName: C,
|
|
85
89
|
LinkComponent: N,
|
|
86
90
|
urgentText: v
|
|
87
|
-
} = r, P =
|
|
88
|
-
|
|
91
|
+
} = r, P = H(), E = z(() => /* @__PURE__ */ o(K, { children: P === !0 ? t == null ? void 0 : t.map((e, a) => /* @__PURE__ */ o(
|
|
92
|
+
L,
|
|
89
93
|
{
|
|
90
94
|
name: e == null ? void 0 : e.name,
|
|
91
95
|
price: e == null ? void 0 : e.price,
|
|
@@ -97,7 +101,7 @@ const ee = z.div`
|
|
|
97
101
|
sponsored: e == null ? void 0 : e.sponsored,
|
|
98
102
|
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
99
103
|
nameSlug: e == null ? void 0 : e.nameSlug,
|
|
100
|
-
onSelectCard: (
|
|
104
|
+
onSelectCard: (I, s) => p({
|
|
101
105
|
uuid: e == null ? void 0 : e.uuid,
|
|
102
106
|
nameSlug: e == null ? void 0 : e.nameSlug,
|
|
103
107
|
cardRef: s
|
|
@@ -106,8 +110,8 @@ const ee = z.div`
|
|
|
106
110
|
imageUrl: b(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
|
|
107
111
|
isFree: e == null ? void 0 : e.isFree,
|
|
108
112
|
isNegotiable: e == null ? void 0 : e.isNegotiable,
|
|
109
|
-
negotiableText:
|
|
110
|
-
freeText:
|
|
113
|
+
negotiableText: f,
|
|
114
|
+
freeText: S,
|
|
111
115
|
tags: e == null ? void 0 : e.tags,
|
|
112
116
|
categoryCode: e == null ? void 0 : e.categoryCode,
|
|
113
117
|
condition: e == null ? void 0 : e.condition,
|
|
@@ -129,7 +133,7 @@ const ee = z.div`
|
|
|
129
133
|
},
|
|
130
134
|
a
|
|
131
135
|
)) : t == null ? void 0 : t.slice(0, n).map((e, a) => /* @__PURE__ */ o(
|
|
132
|
-
|
|
136
|
+
L,
|
|
133
137
|
{
|
|
134
138
|
name: e == null ? void 0 : e.name,
|
|
135
139
|
price: e == null ? void 0 : e.price,
|
|
@@ -141,7 +145,7 @@ const ee = z.div`
|
|
|
141
145
|
location: e == null ? void 0 : e.location,
|
|
142
146
|
sponsored: e == null ? void 0 : e.sponsored,
|
|
143
147
|
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
144
|
-
onSelectCard: (
|
|
148
|
+
onSelectCard: (I, s) => p({
|
|
145
149
|
uuid: e == null ? void 0 : e.uuid,
|
|
146
150
|
nameSlug: e == null ? void 0 : e.nameSlug,
|
|
147
151
|
cardRef: s
|
|
@@ -150,8 +154,8 @@ const ee = z.div`
|
|
|
150
154
|
imageUrl: b(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
|
|
151
155
|
isFree: e == null ? void 0 : e.isFree,
|
|
152
156
|
isNegotiable: e == null ? void 0 : e.isNegotiable,
|
|
153
|
-
negotiableText:
|
|
154
|
-
freeText:
|
|
157
|
+
negotiableText: f,
|
|
158
|
+
freeText: S,
|
|
155
159
|
tags: e == null ? void 0 : e.tags,
|
|
156
160
|
categoryCode: e == null ? void 0 : e.categoryCode,
|
|
157
161
|
condition: e == null ? void 0 : e.condition,
|
|
@@ -174,13 +178,13 @@ const ee = z.div`
|
|
|
174
178
|
},
|
|
175
179
|
a
|
|
176
180
|
)) }), [t, P, n]);
|
|
177
|
-
return /* @__PURE__ */ l(
|
|
181
|
+
return /* @__PURE__ */ l(J, { ref: F, children: [
|
|
178
182
|
/* @__PURE__ */ l("div", { className: "regular-title", children: [
|
|
179
183
|
/* @__PURE__ */ l("div", { className: "regular-title-text", children: [
|
|
180
|
-
c(
|
|
181
|
-
/* @__PURE__ */ o("span", { children:
|
|
184
|
+
c(m) && /* @__PURE__ */ o("i", { className: m }),
|
|
185
|
+
/* @__PURE__ */ o("span", { children: T })
|
|
182
186
|
] }),
|
|
183
|
-
c(
|
|
187
|
+
c(d) && c(u) && !g && /* @__PURE__ */ o(
|
|
184
188
|
V,
|
|
185
189
|
{
|
|
186
190
|
type: "button",
|
|
@@ -188,7 +192,7 @@ const ee = z.div`
|
|
|
188
192
|
color: "neutral",
|
|
189
193
|
onClick: (e) => {
|
|
190
194
|
var a;
|
|
191
|
-
(a = e == null ? void 0 : e.target) == null || a.blur(), O(
|
|
195
|
+
(a = e == null ? void 0 : e.target) == null || a.blur(), O(d);
|
|
192
196
|
},
|
|
193
197
|
borderRadius: "curved",
|
|
194
198
|
className: "button-link",
|
|
@@ -196,30 +200,30 @@ const ee = z.div`
|
|
|
196
200
|
}
|
|
197
201
|
)
|
|
198
202
|
] }),
|
|
199
|
-
/* @__PURE__ */ o(x, { isLoading:
|
|
200
|
-
|
|
203
|
+
/* @__PURE__ */ o(x, { isLoading: U, children: i && (i == null ? void 0 : i.length) > 0 && /* @__PURE__ */ o(
|
|
204
|
+
Z,
|
|
201
205
|
{
|
|
202
206
|
items: i,
|
|
203
|
-
selectedIds:
|
|
207
|
+
selectedIds: B,
|
|
204
208
|
onRemove: M,
|
|
205
|
-
onSelect:
|
|
206
|
-
allButton:
|
|
207
|
-
onSelectAll:
|
|
208
|
-
labelKey:
|
|
209
|
-
valueKey:
|
|
210
|
-
codeKey:
|
|
209
|
+
onSelect: D,
|
|
210
|
+
allButton: q,
|
|
211
|
+
onSelectAll: Q,
|
|
212
|
+
labelKey: R,
|
|
213
|
+
valueKey: _,
|
|
214
|
+
codeKey: $,
|
|
211
215
|
noMargin: !0,
|
|
212
|
-
productsToolbarName:
|
|
216
|
+
productsToolbarName: A,
|
|
213
217
|
noGradient: !0,
|
|
214
218
|
className: "section__options"
|
|
215
219
|
}
|
|
216
220
|
) }),
|
|
217
221
|
/* @__PURE__ */ o(
|
|
218
|
-
|
|
222
|
+
Y,
|
|
219
223
|
{
|
|
220
224
|
isLoading: g,
|
|
221
225
|
keyPrefix: "detailed-products-skeleton",
|
|
222
|
-
children: /* @__PURE__ */ o(ee, { limit: n, children:
|
|
226
|
+
children: /* @__PURE__ */ o(ee, { limit: n, children: E })
|
|
223
227
|
}
|
|
224
228
|
)
|
|
225
229
|
] });
|
package/dist/DetailsView.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const o=require("react/jsx-runtime"),T=require("react"),x=require("./emotion-styled.browser.esm-BtEseadx.cjs"),D=require("./FlexGrid.cjs"),L=require("./FlexGridItem.cjs"),i=require("./utils-
|
|
1
|
+
"use strict";const o=require("react/jsx-runtime"),T=require("react"),x=require("./emotion-styled.browser.esm-BtEseadx.cjs"),D=require("./FlexGrid.cjs"),L=require("./FlexGridItem.cjs"),i=require("./utils-CITgSxXe.cjs"),w=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),W=require("./Button.cjs"),d=require("./IconButton.cjs"),A=x.styled.label`
|
|
2
2
|
display: block;
|
|
3
3
|
margin-bottom: 4px;
|
|
4
4
|
${e=>i.getComponentTypographyCss(e.theme,"FormField",e.size,"enabled")}
|
package/dist/DetailsView.js
CHANGED
|
@@ -3,7 +3,7 @@ import { forwardRef as w } from "react";
|
|
|
3
3
|
import { s as u } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import j from "./FlexGrid.js";
|
|
5
5
|
import W from "./FlexGridItem.js";
|
|
6
|
-
import {
|
|
6
|
+
import { d as A, c as C, g as O, b as U } from "./utils-B2fsQ6PS.js";
|
|
7
7
|
import { u as P } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
8
|
import Y from "./Button.js";
|
|
9
9
|
import d from "./IconButton.js";
|