@lanaco/lnc-react-ui 4.0.87 → 4.0.89
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/Accordion.cjs +1 -1
- package/dist/Accordion.js +1 -1
- package/dist/AccordionSummary.cjs +1 -1
- package/dist/AccordionSummary.js +1 -1
- package/dist/ActionsToolbar.cjs +1 -1
- package/dist/ActionsToolbar.js +1 -1
- package/dist/Alert.cjs +1 -1
- package/dist/Alert.js +1 -1
- package/dist/Avatar.cjs +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/Badge.cjs +1 -1
- package/dist/Badge.js +1 -1
- package/dist/BannerSectionCarousel.cjs +2 -2
- package/dist/BannerSectionCarousel.js +5 -2
- package/dist/BannerSectionSimple.cjs +7 -7
- package/dist/BannerSectionSimple.js +54 -51
- package/dist/BannerSectionWithList.cjs +7 -7
- package/dist/BannerSectionWithList.js +33 -30
- package/dist/BannerSectionWithListImage.cjs +9 -9
- package/dist/BannerSectionWithListImage.js +44 -41
- package/dist/BlogCardsSponsoredSection.cjs +3 -3
- package/dist/BlogCardsSponsoredSection.js +38 -35
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +1 -1
- package/dist/BlogListSection.cjs +3 -3
- package/dist/BlogListSection.js +16 -16
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +2 -2
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +1 -1
- package/dist/BlogSingleSection.cjs +1 -1
- package/dist/BlogSingleSection.js +2 -2
- package/dist/BlogsSectionDetailed.cjs +2 -2
- package/dist/BlogsSectionDetailed.js +29 -26
- package/dist/BlogsSectionLarge.cjs +1 -1
- package/dist/BlogsSectionLarge.js +2 -2
- package/dist/BlogsSectionSimple.cjs +6 -6
- package/dist/BlogsSectionSimple.js +32 -29
- package/dist/BlogsSectionSimpleCentered.cjs +1 -1
- package/dist/BlogsSectionSimpleCentered.js +2 -2
- package/dist/BlogsSectionWithFilters.cjs +10 -10
- package/dist/BlogsSectionWithFilters.js +109 -101
- package/dist/BrandHitsSection.cjs +1 -1
- package/dist/BrandHitsSection.js +1 -1
- package/dist/Breadcrumbs.cjs +1 -1
- package/dist/Breadcrumbs.js +1 -1
- 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 +1 -1
- package/dist/CalorieCalculatorSection.js +1 -1
- 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 +1 -1
- package/dist/ConfirmationForm.cjs +1 -1
- package/dist/ConfirmationForm.js +1 -1
- package/dist/CustomLoanMapSection.cjs +1 -1
- package/dist/CustomLoanMapSection.js +1 -1
- package/dist/{CustomStyles-DSaRbYZg.js → CustomStyles-CQawr7oF.js} +1 -1
- package/dist/{CustomStyles-DzChCA5c.cjs → CustomStyles-Uqkz9jDo.cjs} +1 -1
- package/dist/DateInput.cjs +1 -1
- package/dist/DateInput.js +1 -1
- 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/DetailedProductsSection.cjs +4 -4
- package/dist/DetailedProductsSection.js +28 -25
- 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 +1 -1
- 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 +1 -1
- package/dist/EditableTable.cjs +1 -1
- package/dist/EditableTable.js +1 -1
- package/dist/FieldOfInterestsMasonrySection.cjs +27 -16
- package/dist/FieldOfInterestsMasonrySection.js +72 -62
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +2 -2
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +2 -1
- package/dist/FieldOfInterestsWithTagsCardsSection.js +2 -1
- package/dist/FileInput.cjs +1 -1
- package/dist/FileInput.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 +4 -4
- package/dist/GeneralWithTagsCardsSection.js +5 -5
- package/dist/GiftCardsSection.cjs +8 -8
- package/dist/GiftCardsSection.js +54 -51
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.js +1 -1
- package/dist/IconButton.cjs +1 -1
- package/dist/IconButton.js +1 -1
- package/dist/Kanban.cjs +2 -2
- package/dist/Kanban.js +84 -82
- package/dist/KanbanActionsToolbar.cjs +1 -1
- package/dist/KanbanActionsToolbar.js +1 -1
- package/dist/KanbanView.cjs +1 -1
- package/dist/KanbanView.js +1 -1
- package/dist/Link.cjs +1 -1
- package/dist/Link.js +1 -1
- package/dist/LoanCalculatorSection.cjs +1 -1
- package/dist/LoanCalculatorSection.js +1 -1
- package/dist/LocationFinderSection.cjs +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/LocationSearchSection.cjs +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +1 -1
- package/dist/MasonryGeneralCardsSection.js +1 -1
- package/dist/MenuItem.cjs +1 -1
- package/dist/MenuItem.js +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/NestedDropdownItem.cjs +1 -1
- package/dist/NestedDropdownItem.js +1 -1
- package/dist/NestedMenuItem.cjs +1 -1
- package/dist/NestedMenuItem.js +1 -1
- package/dist/NotificationContainer.cjs +1 -1
- package/dist/NotificationContainer.js +1 -1
- package/dist/NotificationMessage.cjs +1 -1
- package/dist/NotificationMessage.js +1 -1
- package/dist/NumberInput.cjs +1 -1
- package/dist/NumberInput.js +1 -1
- package/dist/OverlayGeneralCardsSection.cjs +1 -1
- package/dist/OverlayGeneralCardsSection.js +2 -2
- package/dist/PasswordInput.cjs +1 -1
- package/dist/PasswordInput.js +1 -1
- package/dist/PopoverContent.cjs +1 -1
- package/dist/PopoverContent.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +1 -1
- package/dist/ProductsWithBannerSection.js +3 -3
- package/dist/ProgressBar.cjs +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/QuizSection.cjs +1 -1
- package/dist/QuizSection.js +1 -1
- 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 +1 -1
- package/dist/ReviewsSection.js +23 -23
- package/dist/SalesCampaignsSection.cjs +1 -1
- package/dist/SalesCampaignsSection.js +1 -1
- package/dist/Separator.cjs +1 -1
- package/dist/Separator.js +1 -1
- package/dist/ShopCardsSection.cjs +1 -1
- package/dist/ShopCardsSection.js +2 -2
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +2 -2
- package/dist/SimpleCategoriesSection.js +18 -15
- package/dist/SimpleProductsSection.cjs +1 -1
- package/dist/SimpleProductsSection.js +2 -2
- package/dist/Spinner.cjs +1 -1
- package/dist/Spinner.js +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 +1 -1
- package/dist/Table.js +1 -1
- package/dist/TableView.cjs +1 -1
- package/dist/TableView.js +1 -1
- 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 +1 -1
- package/dist/ThemeProvider.js +1 -1
- 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/TreeMenuSeparator.cjs +1 -1
- package/dist/TreeMenuSeparator.js +1 -1
- package/dist/UploadedFile.cjs +1 -1
- package/dist/UploadedFile.js +1 -1
- package/dist/UrgentSaleProductsSection.cjs +2 -2
- package/dist/UrgentSaleProductsSection.js +34 -31
- package/dist/{index-DG7qQq8L.cjs → index-66FyQgVV.cjs} +1 -1
- package/dist/{index-Yh18uk_f.js → index-B68jh2kW.js} +2 -2
- package/dist/{index-BVaZWq6y.cjs → index-BRgZcjpI.cjs} +1 -1
- package/dist/{index-BBPnKoi6.js → index-BT4FT6f0.js} +2 -2
- package/dist/{index-Db8wvLXS.js → index-Chju-CHz.js} +1 -1
- package/dist/{index-Ca38iPjf.js → index-Cpd68IKh.js} +1 -1
- package/dist/{index-B9HSHvhH.cjs → index-D8lR_JKg.cjs} +1 -1
- package/dist/{index-iSD5jNBk.js → index-DHQc2df3.js} +98 -46
- package/dist/{index-Ccw8sLnK.cjs → index-DMysapsB.cjs} +1 -1
- package/dist/{index-Cx4KvZ9L.cjs → index-DZDz9qZP.cjs} +47 -9
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{skeleton-DALCB1S7.js → skeleton-BbYMdJpz.js} +1 -1
- package/dist/{skeleton-BBSBZ4JV.cjs → skeleton-BcaMeKFQ.cjs} +1 -1
- package/dist/{skeleton-C_Jypl8r.cjs → skeleton-DwZzdFei.cjs} +5 -5
- package/dist/{skeleton-wfDIalr3.js → skeleton-oa1ux_Zp.js} +6 -6
- package/dist/{style-xvwWn3Zv.cjs → style-B8wrlDzY.cjs} +13 -7
- package/dist/{style-sLF37aOA.js → style-R2KgPcrd.js} +17 -10
- package/dist/{suspense-categories-card-simple-5JZtz7wj.cjs → suspense-categories-card-simple-B2swGa6t.cjs} +1 -1
- package/dist/{suspense-categories-card-simple-BTFqzXyn.js → suspense-categories-card-simple-Dkm0oojD.js} +1 -1
- package/dist/{suspense-large-DFlSJhGG.js → suspense-large-B2lY_x-y.js} +1 -1
- package/dist/{suspense-large-BtfvnzWh.cjs → suspense-large-DMhn-lIG.cjs} +1 -1
- package/dist/{suspense-product-card-detailed-CwdbxJrY.js → suspense-product-card-detailed-5A3zYKqj.js} +2 -2
- package/dist/{suspense-product-card-detailed-DBNlkFiP.cjs → suspense-product-card-detailed-CuExvgd_.cjs} +1 -1
- package/dist/{suspense-product-card-simple--ExcEpD-.js → suspense-product-card-simple-C4qtjWg_.js} +1 -1
- package/dist/{suspense-product-card-simple-0x5sc47a.cjs → suspense-product-card-simple-zYdZVLRz.cjs} +1 -1
- package/dist/{utils-DhRHf5Ed.cjs → utils-BWzf4vLl.cjs} +1 -1
- package/dist/{utils-BE-UlkKf.js → utils-BhG1dImS.js} +4 -4
- package/package.json +1 -1
- package/dist/useEffectOnce-DFrzfNzT.cjs +0 -1
- package/dist/useEffectOnce-guOKBPuL.js +0 -7
package/dist/DecimalInput.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const B=require("react/jsx-runtime"),v=require("./index-BPVoEhTF.cjs"),R=require("react"),ae=require("./index-DaiUAQVF.cjs"),K=require("./emotion-styled.browser.esm-BtEseadx.cjs"),b=require("./utils-
|
|
1
|
+
"use strict";const B=require("react/jsx-runtime"),v=require("./index-BPVoEhTF.cjs"),R=require("react"),ae=require("./index-DaiUAQVF.cjs"),K=require("./emotion-styled.browser.esm-BtEseadx.cjs"),b=require("./utils-BWzf4vLl.cjs"),ie=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs");function A(){}function oe(){return!0}function O(a){return!!(a||"").match(/\d/)}function W(a){return a==null}function q(a){return a.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function ne(a){switch(a){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 se(a,f,u){var e=ne(u),t=a.search(/[1-9]/);return t=t===-1?a.length:t,a.substring(0,t)+a.substring(t,a.length).replace(e,"$1"+f)}function z(a,f){f===void 0&&(f=!0);var u=a[0]==="-",e=u&&f;a=a.replace("-","");var t=a.split("."),r=t[0],o=t[1]||"";return{beforeDecimal:r,afterDecimal:o,hasNagation:u,addNegation:e}}function fe(a){if(!a)return a;var f=a[0]==="-";f&&(a=a.substring(1,a.length));var u=a.split("."),e=u[0].replace(/^0+/,"")||"0",t=u[1]||"";return(f?"-":"")+e+(t?"."+t:"")}function H(a,f,u){for(var e="",t=u?"0":"",r=0;r<=f-1;r++)e+=a[r]||t;return e}function G(a,f){return Array(f+1).join(a)}function le(a){a+="";var f=a[0]==="-"?"-":"";f&&(a=a.substring(1));var u=a.split(/[eE]/g),e=u[0],t=u[1];if(t=Number(t),!t)return f+e;e=e.replace(".","");var r=1+t,o=e.length;return r<0?e="0."+G("0",Math.abs(r))+e:r>=o?e=e+G("0",r-o):e=(e.substring(0,r)||"0")+"."+e.substring(r),f+e}function ue(a,f,u){if(["","-"].indexOf(a)!==-1)return a;var e=a.indexOf(".")!==-1&&f,t=z(a),r=t.beforeDecimal,o=t.afterDecimal,s=t.hasNagation,i=parseFloat("0."+(o||"0")),n=o.length<=f?"0."+o:i.toFixed(f),l=n.split("."),c=r.split("").reverse().reduce(function(m,y,x){return m.length>x?(Number(m[0])+Number(y)).toString()+m.substring(1,m.length):y+m},l[0]),p=H(l[1]||"",Math.min(f,o.length),u),d=s?"-":"",h=e?".":"";return""+d+c+h+p}function _(a,f){if(a.value=a.value,a!==null){if(a.createTextRange){var u=a.createTextRange();return u.move("character",f),u.select(),!0}return a.selectionStart||a.selectionStart===0?(a.focus(),a.setSelectionRange(f,f),!0):(a.focus(),!1)}}function pe(a,f){for(var u=0,e=0,t=a.length,r=f.length;a[u]===f[u]&&u<t;)u++;for(;a[t-1-e]===f[r-1-e]&&r-e>u&&t-e>u;)e++;return{start:u,end:t-e}}function L(a,f,u){return Math.min(Math.max(a,f),u)}function Z(a){return Math.max(a.selectionStart,a.selectionEnd)}function ce(a){return a||typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function de(a,f){var u={};for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&f.indexOf(e)===-1&&(u[e]=a[e]);return u}var me={displayType:"input",decimalSeparator:".",thousandsGroupStyle:"thousand",fixedDecimalScale:!1,prefix:"",suffix:"",allowNegative:!0,allowEmptyFormatting:!1,allowLeadingZeros:!1,isNumericString:!1,type:"text",onValueChange:A,onChange:A,onKeyDown:A,onMouseUp:A,onFocus:A,onBlur:A,isAllowed:oe},J=function(a){function f(u){a.call(this,u);var e=u.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 a&&(f.__proto__=a),f.prototype=Object.create(a&&a.prototype),f.prototype.constructor=f,f.prototype.componentDidMount=function(){this.setState({mounted:!0})},f.prototype.componentDidUpdate=function(e){this.updateValueIfRequired(e)},f.prototype.componentWillUnmount=function(){clearTimeout(this.focusTimeout),clearTimeout(this.caretPositionTimeout)},f.prototype.updateValueIfRequired=function(e){var t=this,r=t.props,o=t.state,s=t.focusedElm,i=o.value,n=o.numAsString;if(n===void 0&&(n=""),e!==r){this.validateProps();var l=this.formatNumString(n),c=W(r.value)?l:this.formatValueProp(),p=this.removeFormatting(c),d=parseFloat(p),h=parseFloat(n);((!isNaN(d)||!isNaN(h))&&d!==h||l!==i||s===null&&c!==i)&&this.updateValue({formattedValue:c,numAsString:p,input:s,source:"prop",event:null})}},f.prototype.getFloatString=function(e){e===void 0&&(e="");var t=this.props,r=t.decimalScale,o=this.getSeparators(),s=o.decimalSeparator,i=this.getNumberRegex(!0),n=e[0]==="-";n&&(e=e.replace("-","")),s&&r===0&&(e=e.split(s)[0]),e=(e.match(i)||[]).join("").replace(s,".");var l=e.indexOf(".");return l!==-1&&(e=e.substring(0,l)+"."+e.substring(l+1,e.length).replace(new RegExp(q(s),"g"),"")),n&&(e="-"+e),e},f.prototype.getNumberRegex=function(e,t){var r=this.props,o=r.format,s=r.decimalScale,i=r.customNumerals,n=this.getSeparators(),l=n.decimalSeparator;return new RegExp("[0-9"+(i?i.join(""):"")+"]"+(l&&s!==0&&!t&&!o?"|"+q(l):""),e?"g":void 0)},f.prototype.getSeparators=function(){var e=this.props,t=e.decimalSeparator,r=this.props,o=r.thousandSeparator,s=r.allowedDecimalSeparators;return o===!0&&(o=","),s||(s=[t,"."]),{decimalSeparator:t,thousandSeparator:o,allowedDecimalSeparators:s}},f.prototype.getMaskAtIndex=function(e){var t=this.props,r=t.mask;return r===void 0&&(r=" "),typeof r=="string"?r:r[e]||" "},f.prototype.getValueObject=function(e,t){var r=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(r)?void 0:r}},f.prototype.validateProps=function(){var e=this.props,t=e.mask,r=this.getSeparators(),o=r.decimalSeparator,s=r.thousandSeparator;if(o===s)throw new Error(`
|
|
2
2
|
Decimal separator can't be same as thousand separator.
|
|
3
3
|
thousandSeparator: `+s+` (thousandSeparator = {true} is same as thousandSeparator = ",")
|
|
4
4
|
decimalSeparator: `+o+` (default value for decimalSeparator is .)
|
package/dist/DecimalInput.js
CHANGED
|
@@ -3,7 +3,7 @@ import { P as v } from "./index-S5Cd7WrG.js";
|
|
|
3
3
|
import B, { forwardRef as oe, useState as ne, useCallback as se } from "react";
|
|
4
4
|
import { d as fe } from "./index-CkWvbrVT.js";
|
|
5
5
|
import { s as G } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
6
|
-
import { d as M, b as R, a as le, e as ue, h as W, c as ce } from "./utils-
|
|
6
|
+
import { d as M, b as R, a as le, e as ue, h as W, c as ce } from "./utils-BhG1dImS.js";
|
|
7
7
|
import { u as pe } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
8
|
function E() {
|
|
9
9
|
}
|
package/dist/DecimalInputV2.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const y=require("react/jsx-runtime"),i=require("./index-BPVoEhTF.cjs"),h=require("react"),V=require("./emotion-styled.browser.esm-BtEseadx.cjs"),s=require("./utils-
|
|
1
|
+
"use strict";const y=require("react/jsx-runtime"),i=require("./index-BPVoEhTF.cjs"),h=require("react"),V=require("./emotion-styled.browser.esm-BtEseadx.cjs"),s=require("./utils-BWzf4vLl.cjs"),M=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),Q=V.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
|
package/dist/DecimalInputV2.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs as Y, jsx as N } from "react/jsx-runtime";
|
|
|
2
2
|
import { P as l } from "./index-S5Cd7WrG.js";
|
|
3
3
|
import { forwardRef as Z, useState as F, useRef as _, useEffect as v } from "react";
|
|
4
4
|
import { s as k } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
-
import { d as m, b as u, a as R, e as A, h as P, c as ee } from "./utils-
|
|
5
|
+
import { d as m, b as u, a as R, e as A, h as P, c as ee } from "./utils-BhG1dImS.js";
|
|
6
6
|
import { u as te } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
7
|
const ne = k.div`
|
|
8
8
|
display: flex;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),l=require("react"),v=require("./emotion-styled.browser.esm-BtEseadx.cjs"),D=require("./consts-goSZX3xP.cjs"),P=require("./Button.cjs"),y=require("./utils-
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),l=require("react"),v=require("./emotion-styled.browser.esm-BtEseadx.cjs"),D=require("./consts-goSZX3xP.cjs"),P=require("./Button.cjs"),y=require("./utils-BWzf4vLl.cjs"),U=require("./useDetectMobile-zkbzoOGV.cjs"),M=require("./style-B8wrlDzY.cjs"),h=require("./suspense-product-card-detailed-CuExvgd_.cjs"),F=require("./index-66FyQgVV.cjs"),T=v.styled.div`
|
|
2
2
|
display: grid;
|
|
3
|
-
grid-template-columns: ${
|
|
3
|
+
grid-template-columns: ${s=>`repeat(${s.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
5
5
|
|
|
6
6
|
& .button-link {
|
|
7
|
-
white-space:
|
|
7
|
+
white-space: nowrap;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
@media (max-width: ${D.MOBILE_SIZE_PX+"px"}) {
|
|
@@ -26,4 +26,4 @@
|
|
|
26
26
|
/* Safari and Chrome */
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
`,S=l.memo(h.DetailedProductCard),E=l.forwardRef((
|
|
29
|
+
`,S=l.memo(h.DetailedProductCard),E=l.forwardRef((s,f)=>{const{icon:a,title:C,buttonLink:c,items:r,buttonText:j,limit:o=4,onSelectCard:u=()=>{},onButtonAction:w=()=>{},isLoading:N=!1,getImage:d=()=>{},negotiableText:m,freeText:p,options:n,onSelectOption:g=()=>{},productsToolbarName:q="All"}=s,b=U.useDetectMobile(),k=l.useMemo(()=>i.jsx(i.Fragment,{children:b===!0?r==null?void 0:r.map((e,t)=>i.jsx(S,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,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,isSponsored:e==null?void 0:e.isSponsored,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>u(e==null?void 0:e.uuid),imageUrl:d(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:m,freeText:p},t)):r==null?void 0:r.slice(0,o).map((e,t)=>i.jsx(S,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,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,isSponsored:e==null?void 0:e.isSponsored,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>u(e==null?void 0:e.uuid),imageUrl:d(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:m,freeText:p},t))}),[r,b,o]);return i.jsxs(M.TitleWithOptionsSectionWrapper,{ref:f,children:[i.jsxs("div",{className:"regular-title",children:[i.jsxs("div",{className:"regular-title-text",children:[y.isDefinedNotEmptyString(a)&&i.jsx("i",{className:a}),i.jsx("span",{children:C})]}),y.isDefinedNotEmptyString(c)&&i.jsx(P,{type:"button",btnType:"tinted",color:"gray",onClick:e=>{var t;(t=e==null?void 0:e.target)==null||t.blur(),w(c)},borderRadius:"curved",className:"button-link",children:j})]}),(n==null?void 0:n.length)>0&&i.jsx(F.SelectBar,{items:n,onRemove:e=>{g(e)},onSelect:e=>{g(e)},labelKey:"name",valueKey:"code",noMargin:!0,productsToolbarName:q}),i.jsx(T,{limit:o,children:i.jsx(h.SuspenseDetailedProductCard,{isLoading:N,itemsCount:o,keyPrefix:"explore-landing",children:k})})]})});module.exports=E;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsx as i, Fragment as U, jsxs as
|
|
1
|
+
import { jsx as i, Fragment as U, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import { memo as M, forwardRef as P, useMemo as T } from "react";
|
|
3
3
|
import { s as D } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { M as F } from "./consts-BuFChS64.js";
|
|
5
5
|
import B from "./Button.js";
|
|
6
|
-
import { k as
|
|
6
|
+
import { k as f } from "./utils-BhG1dImS.js";
|
|
7
7
|
import { u as E } from "./useDetectMobile-Bkvj0VMa.js";
|
|
8
|
-
import { T as I } from "./style-
|
|
9
|
-
import { D as L, S as O } from "./suspense-product-card-detailed-
|
|
10
|
-
import { S as R } from "./index-
|
|
8
|
+
import { T as I } from "./style-R2KgPcrd.js";
|
|
9
|
+
import { D as L, S as O } from "./suspense-product-card-detailed-5A3zYKqj.js";
|
|
10
|
+
import { S as R } from "./index-Chju-CHz.js";
|
|
11
11
|
const W = D.div`
|
|
12
12
|
display: grid;
|
|
13
|
-
grid-template-columns: ${(
|
|
13
|
+
grid-template-columns: ${(a) => `repeat(${a.limit}, minmax(0, 1fr))`};
|
|
14
14
|
gap: 1.25rem;
|
|
15
15
|
|
|
16
16
|
& .button-link {
|
|
17
|
-
white-space:
|
|
17
|
+
white-space: nowrap;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
@media (max-width: ${F + "px"}) {
|
|
@@ -36,14 +36,14 @@ const W = D.div`
|
|
|
36
36
|
/* Safari and Chrome */
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
`, S = M(L), H = P((
|
|
39
|
+
`, S = M(L), H = P((a, y) => {
|
|
40
40
|
const {
|
|
41
41
|
icon: s,
|
|
42
42
|
title: h,
|
|
43
43
|
buttonLink: d,
|
|
44
44
|
items: r,
|
|
45
45
|
buttonText: C,
|
|
46
|
-
limit:
|
|
46
|
+
limit: t = 4,
|
|
47
47
|
onSelectCard: m = () => {
|
|
48
48
|
},
|
|
49
49
|
onButtonAction: w = () => {
|
|
@@ -53,11 +53,11 @@ const W = D.div`
|
|
|
53
53
|
},
|
|
54
54
|
negotiableText: u,
|
|
55
55
|
freeText: p,
|
|
56
|
-
options:
|
|
56
|
+
options: l,
|
|
57
57
|
onSelectOption: g = () => {
|
|
58
58
|
},
|
|
59
59
|
productsToolbarName: N = "All"
|
|
60
|
-
} =
|
|
60
|
+
} = a, b = E(), v = T(() => /* @__PURE__ */ i(U, { children: b === !0 ? r == null ? void 0 : r.map((e, o) => /* @__PURE__ */ i(
|
|
61
61
|
S,
|
|
62
62
|
{
|
|
63
63
|
title: e == null ? void 0 : e.name,
|
|
@@ -75,8 +75,8 @@ const W = D.div`
|
|
|
75
75
|
negotiableText: u,
|
|
76
76
|
freeText: p
|
|
77
77
|
},
|
|
78
|
-
|
|
79
|
-
)) : r == null ? void 0 : r.slice(0,
|
|
78
|
+
o
|
|
79
|
+
)) : r == null ? void 0 : r.slice(0, t).map((e, o) => /* @__PURE__ */ i(
|
|
80
80
|
S,
|
|
81
81
|
{
|
|
82
82
|
title: e == null ? void 0 : e.name,
|
|
@@ -95,31 +95,34 @@ const W = D.div`
|
|
|
95
95
|
negotiableText: u,
|
|
96
96
|
freeText: p
|
|
97
97
|
},
|
|
98
|
-
|
|
99
|
-
)) }), [r,
|
|
100
|
-
return /* @__PURE__ */
|
|
101
|
-
/* @__PURE__ */
|
|
102
|
-
/* @__PURE__ */
|
|
103
|
-
|
|
98
|
+
o
|
|
99
|
+
)) }), [r, b, t]);
|
|
100
|
+
return /* @__PURE__ */ n(I, { ref: y, children: [
|
|
101
|
+
/* @__PURE__ */ n("div", { className: "regular-title", children: [
|
|
102
|
+
/* @__PURE__ */ n("div", { className: "regular-title-text", children: [
|
|
103
|
+
f(s) && /* @__PURE__ */ i("i", { className: s }),
|
|
104
104
|
/* @__PURE__ */ i("span", { children: h })
|
|
105
105
|
] }),
|
|
106
|
-
|
|
106
|
+
f(d) && /* @__PURE__ */ i(
|
|
107
107
|
B,
|
|
108
108
|
{
|
|
109
109
|
type: "button",
|
|
110
110
|
btnType: "tinted",
|
|
111
111
|
color: "gray",
|
|
112
|
-
onClick: () =>
|
|
112
|
+
onClick: (e) => {
|
|
113
|
+
var o;
|
|
114
|
+
(o = e == null ? void 0 : e.target) == null || o.blur(), w(d);
|
|
115
|
+
},
|
|
113
116
|
borderRadius: "curved",
|
|
114
117
|
className: "button-link",
|
|
115
118
|
children: C
|
|
116
119
|
}
|
|
117
120
|
)
|
|
118
121
|
] }),
|
|
119
|
-
(
|
|
122
|
+
(l == null ? void 0 : l.length) > 0 && /* @__PURE__ */ i(
|
|
120
123
|
R,
|
|
121
124
|
{
|
|
122
|
-
items:
|
|
125
|
+
items: l,
|
|
123
126
|
onRemove: (e) => {
|
|
124
127
|
g(e);
|
|
125
128
|
},
|
|
@@ -132,11 +135,11 @@ const W = D.div`
|
|
|
132
135
|
productsToolbarName: N
|
|
133
136
|
}
|
|
134
137
|
),
|
|
135
|
-
/* @__PURE__ */ i(W, { limit:
|
|
138
|
+
/* @__PURE__ */ i(W, { limit: t, children: /* @__PURE__ */ i(
|
|
136
139
|
O,
|
|
137
140
|
{
|
|
138
141
|
isLoading: k,
|
|
139
|
-
itemsCount:
|
|
142
|
+
itemsCount: t,
|
|
140
143
|
keyPrefix: "explore-landing",
|
|
141
144
|
children: v
|
|
142
145
|
}
|
package/dist/DetailsView.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime"),k=require("react"),e=require("./index-BPVoEhTF.cjs"),T=require("./emotion-styled.browser.esm-BtEseadx.cjs"),D=require("./FlexGrid.cjs"),L=require("./FlexGridItem.cjs"),n=require("./utils-
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),k=require("react"),e=require("./index-BPVoEhTF.cjs"),T=require("./emotion-styled.browser.esm-BtEseadx.cjs"),D=require("./FlexGrid.cjs"),L=require("./FlexGridItem.cjs"),n=require("./utils-BWzf4vLl.cjs"),_=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),W=require("./Button.cjs"),c=require("./IconButton.cjs"),A=T.styled.label`
|
|
2
2
|
display: block;
|
|
3
3
|
margin-bottom: 4px;
|
|
4
4
|
${o=>n.getComponentTypographyCss(o.theme,"FormField",o.size,"enabled")}
|
package/dist/DetailsView.js
CHANGED
|
@@ -4,7 +4,7 @@ import { P as e } from "./index-S5Cd7WrG.js";
|
|
|
4
4
|
import { s as f } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
5
|
import W from "./FlexGrid.js";
|
|
6
6
|
import A from "./FlexGridItem.js";
|
|
7
|
-
import { c as Y, b as B, g as U, a as q } from "./utils-
|
|
7
|
+
import { c as Y, b as B, g as U, a as q } from "./utils-BhG1dImS.js";
|
|
8
8
|
import { u as E } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
9
9
|
import H from "./Button.js";
|
|
10
10
|
import c from "./IconButton.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),s=require("react"),v=require("./emotion-styled.browser.esm-BtEseadx.cjs"),i=require("./index-BPVoEhTF.cjs"),o=require("./utils-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),s=require("react"),v=require("./emotion-styled.browser.esm-BtEseadx.cjs"),i=require("./index-BPVoEhTF.cjs"),o=require("./utils-BWzf4vLl.cjs"),C=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),N=({theme:e,size:y})=>{var u=o.getSizeValueWithUnits(e,y);return`
|
|
2
2
|
min-height: ${u};
|
|
3
3
|
max-height: ${u};
|
|
4
4
|
`},b={small:"0.875rem",medium:"1.125rem",large:"1.375rem"},S=v.styled.div`
|
|
@@ -2,7 +2,7 @@ import { jsxs as f, jsx as r, Fragment as V } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as F, useState as w, useEffect as x, useRef as T, useCallback as j } from "react";
|
|
3
3
|
import { s as $ } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { P as i } from "./index-S5Cd7WrG.js";
|
|
5
|
-
import { b as u, a as R, c as E, d as O } from "./utils-
|
|
5
|
+
import { b as u, a as R, c as E, d as O } from "./utils-BhG1dImS.js";
|
|
6
6
|
import { u as D } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
7
|
const L = ({ theme: e, size: k }) => {
|
|
8
8
|
var s = O(e, k);
|