@lanaco/lnc-react-ui 4.0.35 → 4.0.37
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 +5 -5
- package/dist/Accordion.js +11 -11
- package/dist/AccordionDetails.cjs +1 -1
- package/dist/AccordionDetails.js +1 -1
- package/dist/AccordionSummary.cjs +1 -1
- package/dist/AccordionSummary.js +3 -3
- package/dist/ActionsToolbar.cjs +1 -1
- package/dist/ActionsToolbar.js +2 -2
- package/dist/Alert.cjs +1 -1
- package/dist/Alert.js +2 -2
- package/dist/Avatar.cjs +1 -1
- package/dist/Avatar.js +3 -3
- package/dist/Badge.cjs +2 -2
- package/dist/Badge.js +3 -3
- package/dist/BannerSectionBasic.cjs +1 -1
- package/dist/BannerSectionBasic.js +1 -1
- package/dist/BannerSectionCarousel.cjs +2 -2
- package/dist/BannerSectionCarousel.js +63 -63
- package/dist/BannerSectionGrid.cjs +3 -3
- package/dist/BannerSectionGrid.js +43 -39
- package/dist/BannerSectionSimple.cjs +1 -1
- package/dist/BannerSectionSimple.js +1 -1
- package/dist/BannerSectionWithList.cjs +1 -1
- package/dist/BannerSectionWithList.js +2 -2
- package/dist/BannerSectionWithListImage.cjs +1 -1
- package/dist/BannerSectionWithListImage.js +1 -1
- package/dist/BlogsSectionDetailed.cjs +1 -1
- package/dist/BlogsSectionDetailed.js +3 -3
- package/dist/BlogsSectionLarge.cjs +1 -1
- package/dist/BlogsSectionLarge.js +2 -2
- package/dist/BlogsSectionSimple.cjs +1 -1
- package/dist/BlogsSectionSimple.js +3 -3
- package/dist/BlogsSectionSimpleCentered.cjs +1 -1
- package/dist/BlogsSectionSimpleCentered.js +2 -2
- package/dist/BlogsSectionWithFilters.cjs +11 -108
- package/dist/BlogsSectionWithFilters.js +59 -437
- package/dist/BrandHitsSection.cjs +1 -1
- package/dist/BrandHitsSection.js +2 -2
- package/dist/Breadcrumbs.cjs +3 -3
- package/dist/Breadcrumbs.js +12 -12
- package/dist/Button.cjs +1 -1
- package/dist/Button.js +4 -4
- package/dist/ButtonGroup.cjs +1 -1
- package/dist/ButtonGroup.js +3 -3
- package/dist/CalorieCalculatorSection.cjs +333 -0
- package/dist/CalorieCalculatorSection.js +851 -0
- package/dist/CheckBoxInput.cjs +1 -1
- package/dist/CheckBoxInput.js +3 -3
- package/dist/Chip.cjs +2 -2
- package/dist/Chip.js +3 -3
- package/dist/ColorInput.cjs +1 -1
- package/dist/ColorInput.js +4 -4
- package/dist/ConfirmationForm.cjs +2 -2
- package/dist/ConfirmationForm.js +3 -3
- package/dist/CustomLoanMapSection.cjs +1 -1
- package/dist/CustomLoanMapSection.js +2 -2
- package/dist/{CustomStyles-BMY2-z7P.js → CustomStyles-BwnfUVvi.js} +8 -8
- package/dist/{CustomStyles-zroEcINq.cjs → CustomStyles-DUDHRSkh.cjs} +2 -2
- package/dist/DataView.cjs +1 -1
- package/dist/DataView.js +1 -1
- package/dist/DateInput.cjs +4 -4
- package/dist/DateInput.js +76 -80
- package/dist/DecimalInput.cjs +3 -3
- package/dist/DecimalInput.js +4 -4
- package/dist/DecimalInputV2.cjs +2 -2
- package/dist/DecimalInputV2.js +3 -3
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +4 -4
- package/dist/DetailsView.cjs +2 -2
- package/dist/DetailsView.js +3 -3
- package/dist/DoubleRangeSlider.cjs +1 -1
- package/dist/DoubleRangeSlider.js +3 -3
- package/dist/DragAndDropFile.cjs +6 -6
- package/dist/DragAndDropFile.js +4 -4
- package/dist/DragDropFiles.cjs +1 -1
- package/dist/DragDropFiles.js +3 -3
- package/dist/Drawer.cjs +1 -1
- package/dist/Drawer.js +12 -12
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +5 -5
- package/dist/DropdownItem.cjs +1 -1
- package/dist/DropdownItem.js +10 -10
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +5 -5
- package/dist/DropdownMenu.cjs +1 -1
- package/dist/DropdownMenu.js +6 -6
- package/dist/EditableTable.cjs +1 -1
- package/dist/EditableTable.js +3 -3
- package/dist/FieldOfInterestsMasonrySection.cjs +6 -6
- package/dist/FieldOfInterestsMasonrySection.js +43 -42
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +3 -3
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +3 -3
- package/dist/FieldOfInterestsWithTagsCardsSection.js +3 -3
- package/dist/FileInput.cjs +2 -2
- package/dist/FileInput.js +3 -3
- package/dist/FlexBox.cjs +1 -1
- package/dist/FlexBox.js +1 -1
- package/dist/FlexGridItem.cjs +1 -1
- package/dist/FlexGridItem.js +2 -2
- package/dist/FormField.cjs +1 -1
- package/dist/FormField.js +7 -7
- package/dist/FormView.cjs +2 -2
- package/dist/FormView.js +15 -15
- package/dist/GeneralWithTagsCardsSection.cjs +1 -1
- package/dist/GeneralWithTagsCardsSection.js +3 -3
- package/dist/GiftCardsSection.cjs +1 -1
- package/dist/GiftCardsSection.js +2 -2
- package/dist/Grid.cjs +1 -1
- package/dist/Grid.js +1 -1
- package/dist/GridItem.cjs +1 -1
- package/dist/GridItem.js +1 -1
- package/dist/Icon.cjs +2 -2
- package/dist/Icon.js +6 -6
- package/dist/IconButton.cjs +1 -1
- package/dist/IconButton.js +3 -3
- package/dist/Kanban.cjs +7 -7
- package/dist/Kanban.js +37 -41
- package/dist/KanbanActionsToolbar.cjs +1 -1
- package/dist/KanbanActionsToolbar.js +2 -2
- package/dist/{KanbanCard-BDyFaKYd.js → KanbanCard-BDRSqfVD.js} +2 -2
- package/dist/{KanbanCard-CofqdTrO.cjs → KanbanCard-CLOKZFYP.cjs} +1 -1
- package/dist/KanbanCard.cjs +1 -1
- package/dist/KanbanCard.js +3 -3
- package/dist/KanbanFooter.cjs +1 -1
- package/dist/KanbanFooter.js +2 -2
- package/dist/KanbanHeader.cjs +2 -2
- package/dist/KanbanHeader.js +2 -2
- package/dist/KanbanView.cjs +1 -1
- package/dist/KanbanView.js +3 -3
- package/dist/Link.cjs +2 -2
- package/dist/Link.js +6 -6
- package/dist/LocationSearchSection.cjs +53 -0
- package/dist/LocationSearchSection.js +108 -0
- package/dist/MasonryGeneralCardsSection.cjs +1 -1
- package/dist/MasonryGeneralCardsSection.js +3 -3
- package/dist/MenuItem.cjs +2 -2
- package/dist/MenuItem.js +3 -3
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.js +6 -6
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +3 -3
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +3 -3
- package/dist/NestedDropdownItem.cjs +1 -1
- package/dist/NestedDropdownItem.js +9 -9
- package/dist/NestedMenuItem.cjs +2 -2
- package/dist/NestedMenuItem.js +8 -8
- package/dist/Notification.cjs +1 -1
- package/dist/Notification.js +1 -1
- package/dist/NotificationContainer.cjs +1 -1
- package/dist/NotificationContainer.js +3 -3
- package/dist/NotificationMessage.cjs +1 -1
- package/dist/NotificationMessage.js +3 -3
- package/dist/NumberInput.cjs +2 -2
- package/dist/NumberInput.js +4 -4
- package/dist/OverlayGeneralCardsSection.cjs +1 -1
- package/dist/OverlayGeneralCardsSection.js +3 -3
- package/dist/PageLayout.cjs +2 -2
- package/dist/PageLayout.js +2 -2
- package/dist/Pagination.cjs +2 -2
- package/dist/Pagination.js +2 -2
- package/dist/PasswordInput.cjs +2 -2
- package/dist/PasswordInput.js +4 -4
- package/dist/PopoverContent.cjs +1 -1
- package/dist/PopoverContent.js +5 -5
- package/dist/PopoverDescription.cjs +1 -1
- package/dist/PopoverDescription.js +1 -1
- package/dist/PopoverHeading.cjs +1 -1
- package/dist/PopoverHeading.js +1 -1
- package/dist/PopoverTrigger.cjs +1 -1
- package/dist/PopoverTrigger.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 +8 -8
- package/dist/QuizSection.cjs +1 -1
- package/dist/QuizSection.js +2 -2
- package/dist/RadioGroup.cjs +1 -1
- package/dist/RadioGroup.js +2 -2
- package/dist/RadioInput.cjs +1 -1
- package/dist/RadioInput.js +3 -3
- package/dist/RangeSlider.cjs +2 -2
- package/dist/RangeSlider.js +3 -3
- package/dist/SalesCampaignsSection.cjs +423 -0
- package/dist/SalesCampaignsSection.js +967 -0
- package/dist/SearchBar.cjs +1 -1
- package/dist/SearchBar.js +6 -6
- package/dist/Separator.cjs +1 -1
- package/dist/Separator.js +3 -3
- package/dist/ShopCardsSection.cjs +1 -1
- package/dist/ShopCardsSection.js +2 -2
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +3 -3
- package/dist/SimpleCategoriesSection.cjs +9 -9
- package/dist/SimpleCategoriesSection.js +48 -44
- package/dist/SimpleProductsSection.cjs +1 -1
- package/dist/SimpleProductsSection.js +3 -3
- package/dist/Spinner.cjs +1 -1
- package/dist/Spinner.js +12 -12
- package/dist/Surface.cjs +2 -2
- package/dist/Surface.js +3 -3
- package/dist/SwipeableDrawer.cjs +2 -2
- package/dist/SwipeableDrawer.js +3 -3
- package/dist/TabItem.cjs +1 -1
- package/dist/TabItem.js +11 -11
- package/dist/Table.cjs +7 -7
- package/dist/Table.js +4 -4
- package/dist/TableView.cjs +1 -1
- package/dist/TableView.js +2 -2
- package/dist/Tabs.cjs +2 -2
- package/dist/Tabs.js +2 -2
- package/dist/TextAreaInput.cjs +12 -12
- package/dist/TextAreaInput.js +124 -112
- package/dist/TextInput.cjs +2 -2
- package/dist/TextInput.js +4 -4
- package/dist/ThemeProvider.cjs +10 -10
- package/dist/ThemeProvider.js +189 -187
- package/dist/TimeInput.cjs +2 -2
- package/dist/TimeInput.js +4 -4
- package/dist/Toggle.cjs +15 -15
- package/dist/Toggle.js +40 -50
- package/dist/TreeMenu.cjs +1 -1
- package/dist/TreeMenu.js +1 -1
- package/dist/TreeMenuSeparator.cjs +1 -1
- package/dist/TreeMenuSeparator.js +3 -3
- package/dist/UploadedFile.cjs +2 -2
- package/dist/UploadedFile.js +16 -16
- package/dist/UrgentSaleProductsSection.cjs +1 -1
- package/dist/UrgentSaleProductsSection.js +2 -2
- package/dist/{defineProperty-DHvxLH8G.cjs → defineProperty-CqVRDJI8.cjs} +1 -1
- package/dist/{defineProperty-B5pLF6px.js → defineProperty-DF3p0mVo.js} +5 -5
- package/dist/emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs +1 -0
- package/dist/emotion-element-f0de968e.browser.esm-CkCiQliQ.js +877 -0
- package/dist/{emotion-is-prop-valid.esm-CMrshNb7.cjs → emotion-is-prop-valid.esm-BNsx9k19.cjs} +1 -1
- package/dist/{emotion-is-prop-valid.esm-DkbeH1Xy.js → emotion-is-prop-valid.esm-CbWxtx4i.js} +1 -1
- package/dist/emotion-react.browser.esm-1R69UXoj.cjs +1 -0
- package/dist/emotion-react.browser.esm-C6iWxXPG.js +95 -0
- package/dist/{emotion-styled.browser.esm-BiK8DcgW.js → emotion-styled.browser.esm-CjCaF13H.js} +55 -53
- package/dist/emotion-styled.browser.esm-Cle7tAM9.cjs +1 -0
- package/dist/floating-ui.dom-CFbLeFcw.cjs +1 -0
- package/dist/floating-ui.dom-vNhdy5RI.js +947 -0
- package/dist/{floating-ui.react.esm-C4vrBVJU.cjs → floating-ui.react.esm-7Yt4LHw6.cjs} +1 -1
- package/dist/{floating-ui.react.esm-72DKnou_.js → floating-ui.react.esm-umB-tMXa.js} +3 -3
- package/dist/{index--Kmch3aI.js → index-64mXPFBC.js} +6724 -6724
- package/dist/{index-CvebWhtp.js → index-BlxaTV-D.js} +1 -1
- package/dist/{index-CkPex_K5.js → index-CHkb_Sj6.js} +2 -2
- package/dist/index-CT6_7UFb.js +350 -0
- package/dist/index-Cb_AeN9A.cjs +4 -0
- package/dist/{index-CNBqQrtK.js → index-CkWvbrVT.js} +1 -1
- package/dist/{index-BUChtubz.js → index-D-c5IxDk.js} +1 -1
- package/dist/{index-DKztZfzw.js → index-D6g5ZqyJ.js} +2 -2
- package/dist/{index-BP5r5zGN.cjs → index-DZoWlChs.cjs} +1 -1
- package/dist/{index-B67WqHGh.cjs → index-Dit169OA.cjs} +1 -1
- package/dist/{index-BmobrEkT.cjs → index-Dj5wZCVs.cjs} +1 -1
- package/dist/{index-CTJZaJ_S.js → index-DxdBg_r_.js} +1 -1
- package/dist/index-EeoArxOx.cjs +174 -0
- package/dist/index-Q_i-aqsF.cjs +95 -0
- package/dist/{index-C5vAqIS6.cjs → index-vXmvgZ2Y.cjs} +1 -1
- package/dist/index-wy-PXQR9.js +47 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +96 -92
- package/dist/{motion-Oud-wpUz.cjs → motion-B_VPZaJq.cjs} +1 -1
- package/dist/{motion-ecIGZGwI.js → motion-Ckekul_K.js} +1 -1
- package/dist/objectWithoutPropertiesLoose-BLga_MQA.cjs +1 -0
- package/dist/{objectWithoutPropertiesLoose-DwEN6RBQ.js → objectWithoutPropertiesLoose-DhwSMsjf.js} +1 -1
- package/dist/{react-toastify.esm-CkXGwKXL.js → react-toastify.esm--2awuizG.js} +1 -1
- package/dist/{react-toastify.esm-Dqcb4SQT.cjs → react-toastify.esm-Dq1k28O7.cjs} +1 -1
- package/dist/{style-BGQ1B_dp.js → style-6tSw9aqK.js} +1 -1
- package/dist/{style-BEUISPP7.cjs → style-BR3tIhP1.cjs} +1 -1
- package/dist/usePopover.cjs +1 -1
- package/dist/usePopover.js +6 -6
- package/dist/{utils-jiuifwtJ.js → utils-DtRLzzTZ.js} +224 -73
- package/dist/utils-NZLCh-J5.cjs +51 -0
- package/package.json +5 -2
- package/vite.config.js +12 -1
- package/dist/emotion-element-5486c51c.browser.esm-Bb4VkP8U.js +0 -886
- package/dist/emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs +0 -1
- package/dist/emotion-react.browser.esm-CN-s34fZ.js +0 -94
- package/dist/emotion-react.browser.esm-D7h2t2Bz.cjs +0 -1
- package/dist/emotion-styled.browser.esm-Cbp_XsK4.cjs +0 -1
- package/dist/floating-ui.dom-1F2mTXOe.cjs +0 -1
- package/dist/floating-ui.dom-BdUovkEr.js +0 -938
- package/dist/index-Ct1N7fF4.cjs +0 -174
- package/dist/objectWithoutPropertiesLoose-Bz3hwpmU.cjs +0 -1
- package/dist/utils-scuIeOqU.cjs +0 -51
package/dist/SearchBar.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const h=require("react/jsx-runtime"),d=require("react"),x=require("./emotion-styled.browser.esm-
|
|
1
|
+
"use strict";const h=require("react/jsx-runtime"),d=require("react"),x=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),p=require("./index-BPVoEhTF.cjs"),oe=require("./Chip.cjs"),se=require("./emotion-react.browser.esm-1R69UXoj.cjs"),ae=require("./ThemeProvider.cjs"),_=require("./objectWithoutPropertiesLoose-BLga_MQA.cjs"),j=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),B=require("./setPrototypeOf-4aSEnBDm.cjs"),D=require("./index-EeoArxOx.cjs"),le=se.keyframes`
|
|
2
2
|
from {
|
|
3
3
|
opacity: 0;
|
|
4
4
|
}
|
package/dist/SearchBar.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as v, jsxs as _ } from "react/jsx-runtime";
|
|
2
|
-
import E, {
|
|
3
|
-
import { n as x } from "./emotion-styled.browser.esm-
|
|
2
|
+
import E, { isValidElement as w, cloneElement as R, Children as ue, useState as M, createRef as ce, createElement as X } from "react";
|
|
3
|
+
import { n as x } from "./emotion-styled.browser.esm-CjCaF13H.js";
|
|
4
4
|
import { P as u } from "./index-S5Cd7WrG.js";
|
|
5
5
|
import de from "./Chip.js";
|
|
6
|
-
import { k as pe } from "./emotion-react.browser.esm-
|
|
6
|
+
import { k as pe } from "./emotion-react.browser.esm-C6iWxXPG.js";
|
|
7
7
|
import { useTheme as fe } from "./ThemeProvider.js";
|
|
8
|
-
import { _ as L } from "./objectWithoutPropertiesLoose-
|
|
9
|
-
import { _ as V } from "./emotion-element-
|
|
8
|
+
import { _ as L } from "./objectWithoutPropertiesLoose-DhwSMsjf.js";
|
|
9
|
+
import { _ as V } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
10
10
|
import { _ as me, a as he } from "./setPrototypeOf-CttqfWo1.js";
|
|
11
|
-
import { R as $ } from "./index
|
|
11
|
+
import { R as $ } from "./index-64mXPFBC.js";
|
|
12
12
|
const ve = pe`
|
|
13
13
|
from {
|
|
14
14
|
opacity: 0;
|
package/dist/Separator.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),l=require("react"),r=require("./index-BPVoEhTF.cjs"),m=require("./emotion-styled.browser.esm-
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),l=require("react"),r=require("./index-BPVoEhTF.cjs"),m=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),u=require("./utils-NZLCh-J5.cjs"),p=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),d=m.newStyled.div`
|
|
2
2
|
height: 1px;
|
|
3
3
|
background-color: ${e=>u.getColorRgbaValue(e.theme,"MenuItem","default","enabled","separator")};
|
|
4
4
|
margin-left: -0.25rem;
|
package/dist/Separator.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as l } from "react";
|
|
3
3
|
import { P as r } from "./index-S5Cd7WrG.js";
|
|
4
|
-
import { n } from "./emotion-styled.browser.esm-
|
|
5
|
-
import {
|
|
6
|
-
import { u as c } from "./emotion-element-
|
|
4
|
+
import { n } from "./emotion-styled.browser.esm-CjCaF13H.js";
|
|
5
|
+
import { b as i } from "./utils-DtRLzzTZ.js";
|
|
6
|
+
import { u as c } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
7
|
const f = n.div`
|
|
8
8
|
height: 1px;
|
|
9
9
|
background-color: ${(e) => i(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),_=require("react"),w=require("./Button.cjs"),v=require("./Icon.cjs"),p=require("./utils-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),_=require("react"),w=require("./Button.cjs"),v=require("./Icon.cjs"),p=require("./utils-NZLCh-J5.cjs"),d=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),u=require("./consts-CtNoHdBj.cjs"),b=d.newStyled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
package/dist/ShopCardsSection.js
CHANGED
|
@@ -2,8 +2,8 @@ import { jsxs as t, jsx as i } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as c, Fragment as y } from "react";
|
|
3
3
|
import u from "./Button.js";
|
|
4
4
|
import N from "./Icon.js";
|
|
5
|
-
import { t as x, m as v, l as b } from "./utils-
|
|
6
|
-
import { n as f } from "./emotion-styled.browser.esm-
|
|
5
|
+
import { t as x, m as v, l as b } from "./utils-DtRLzzTZ.js";
|
|
6
|
+
import { n as f } from "./emotion-styled.browser.esm-CjCaF13H.js";
|
|
7
7
|
import { M as k } from "./consts-C1uHV4xc.js";
|
|
8
8
|
const $ = f.div`
|
|
9
9
|
display: flex;
|
package/dist/Sidebar.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),a=require("react"),i=require("./index-BPVoEhTF.cjs"),l=require("./emotion-styled.browser.esm-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),a=require("react"),i=require("./index-BPVoEhTF.cjs"),l=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),x=require("./Icon.cjs"),g=require("./utils-NZLCh-J5.cjs"),y=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),_=l.newStyled.aside`
|
|
2
2
|
direction: ${e=>e.placement=="right"?"rtl":"ltr"};
|
|
3
3
|
position: relative;
|
|
4
4
|
&& {
|
package/dist/Sidebar.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as g, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as S, useState as x, useEffect as C } from "react";
|
|
3
3
|
import { P as s } from "./index-S5Cd7WrG.js";
|
|
4
|
-
import { n as l } from "./emotion-styled.browser.esm-
|
|
4
|
+
import { n as l } from "./emotion-styled.browser.esm-CjCaF13H.js";
|
|
5
5
|
import y from "./Icon.js";
|
|
6
|
-
import { u as $ } from "./utils-
|
|
7
|
-
import { u as _ } from "./emotion-element-
|
|
6
|
+
import { u as $ } from "./utils-DtRLzzTZ.js";
|
|
7
|
+
import { u as _ } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
8
|
const v = l.aside`
|
|
9
9
|
direction: ${(e) => e.placement == "right" ? "rtl" : "ltr"};
|
|
10
10
|
position: relative;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),h=require("react"),p=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),w=require("./consts-CtNoHdBj.cjs"),y=require("./useDetectMobile-D6d5LpdL.cjs"),n=require("./utils-NZLCh-J5.cjs"),v=require("./style-BR3tIhP1.cjs"),j=require("./Button.cjs"),S=p.newStyled.div`
|
|
2
2
|
display: grid;
|
|
3
|
-
grid-template-columns: ${
|
|
3
|
+
grid-template-columns: ${o=>"repeat(6, minmax(0, 1fr))"};
|
|
4
4
|
gap: 2rem;
|
|
5
5
|
|
|
6
|
-
@media (max-width: ${
|
|
6
|
+
@media (max-width: ${w.MOBILE_SIZE_PX+"px"}) {
|
|
7
7
|
display: flex;
|
|
8
8
|
gap: 1rem;
|
|
9
9
|
overflow-x: auto;
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
/* Safari and Chrome */
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
`,
|
|
25
|
+
`,k=p.newStyled.div`
|
|
26
26
|
display: flex;
|
|
27
27
|
flex-direction: column;
|
|
28
28
|
gap: 0;
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
|
|
48
48
|
& .card-content {
|
|
49
49
|
padding: 0.75rem;
|
|
50
|
-
${
|
|
50
|
+
${n.truncateTextInRows(2)}
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
& .card-content-2 {
|
|
54
|
-
${
|
|
54
|
+
${n.truncateTextInRows(2)}
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
& img {
|
|
@@ -65,10 +65,10 @@
|
|
|
65
65
|
width: 100%;
|
|
66
66
|
min-height: 8.25rem;
|
|
67
67
|
max-height: 8.25rem;
|
|
68
|
-
${
|
|
68
|
+
${n.linearGradientAnimation("-90deg")}
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
@media (max-width: ${
|
|
71
|
+
@media (max-width: ${w.MOBILE_SIZE_PX+"px"}) {
|
|
72
72
|
min-width: 8.75rem;
|
|
73
73
|
max-width: 8.75rem;
|
|
74
74
|
|
|
@@ -78,4 +78,4 @@
|
|
|
78
78
|
max-height: 5.375rem;
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
`,
|
|
81
|
+
`,g=h.forwardRef((o,l)=>{const{uuid:a,image:s,name:i,onSelectCard:c=()=>{}}=o;return r.jsxs(k,{className:"simple-category-card",onClick:()=>c(a),children:[r.jsx("img",{src:s}),r.jsx("div",{className:"card-content",children:r.jsx("div",{className:"card-content-2",children:i})})]})}),R=h.forwardRef((o,l)=>{const{icon:a,title:s="Shop by category",items:i,buttonText:c,buttonLink:m,limit:u=12,onButtonAction:b=()=>{},onSelectCard:t=()=>{}}=o,f=y.useDetectMobile();return r.jsxs(v.RegulatTitleSectionWrapper,{ref:l,children:[r.jsxs("div",{className:"regular-title",children:[r.jsxs("div",{className:"regular-title-text",children:[n.isDefinedNotEmptyString(a)&&r.jsx("i",{className:a}),r.jsx("span",{children:s})]}),n.isDefinedNotEmptyString(m)&&r.jsx(j,{type:"button",btnType:"tinted",color:"gray",onClick:()=>b(m),borderRadius:"curved",children:c})]}),r.jsx(S,{limit:u,children:f===!0?i==null?void 0:i.map((e,d)=>r.jsx(g,{uuid:e==null?void 0:e.uuid,image:e==null?void 0:e.image,name:e==null?void 0:e.name,onSelectCard:()=>t==null?void 0:t(e==null?void 0:e.uuid)},d)):i==null?void 0:i.slice(0,u).map((e,d)=>r.jsx(g,{uuid:e==null?void 0:e.uuid,image:e==null?void 0:e.image,name:e==null?void 0:e.name,onSelectCard:()=>t==null?void 0:t(e==null?void 0:e.uuid)},d))})]})});module.exports=R;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { n as
|
|
4
|
-
import { M as
|
|
5
|
-
import { u as
|
|
6
|
-
import { t as
|
|
7
|
-
import { R as
|
|
8
|
-
import
|
|
9
|
-
const
|
|
1
|
+
import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as f } from "react";
|
|
3
|
+
import { n as b } from "./emotion-styled.browser.esm-CjCaF13H.js";
|
|
4
|
+
import { M as w } from "./consts-C1uHV4xc.js";
|
|
5
|
+
import { u as k } from "./useDetectMobile-BC6EGaBc.js";
|
|
6
|
+
import { t as h, m as S, k as g } from "./utils-DtRLzzTZ.js";
|
|
7
|
+
import { R as N } from "./style-6tSw9aqK.js";
|
|
8
|
+
import C from "./Button.js";
|
|
9
|
+
const R = b.div`
|
|
10
10
|
display: grid;
|
|
11
11
|
grid-template-columns: ${(a) => "repeat(6, minmax(0, 1fr))"};
|
|
12
12
|
gap: 2rem;
|
|
13
13
|
|
|
14
|
-
@media (max-width: ${
|
|
14
|
+
@media (max-width: ${w + "px"}) {
|
|
15
15
|
display: flex;
|
|
16
16
|
gap: 1rem;
|
|
17
17
|
overflow-x: auto;
|
|
@@ -30,7 +30,7 @@ const N = g.div`
|
|
|
30
30
|
/* Safari and Chrome */
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
`,
|
|
33
|
+
`, $ = b.div`
|
|
34
34
|
display: flex;
|
|
35
35
|
flex-direction: column;
|
|
36
36
|
gap: 0;
|
|
@@ -55,11 +55,11 @@ const N = g.div`
|
|
|
55
55
|
|
|
56
56
|
& .card-content {
|
|
57
57
|
padding: 0.75rem;
|
|
58
|
-
${
|
|
58
|
+
${h(2)}
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
& .card-content-2 {
|
|
62
|
-
${
|
|
62
|
+
${h(2)}
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
& img {
|
|
@@ -73,10 +73,10 @@ const N = g.div`
|
|
|
73
73
|
width: 100%;
|
|
74
74
|
min-height: 8.25rem;
|
|
75
75
|
max-height: 8.25rem;
|
|
76
|
-
${
|
|
76
|
+
${S("-90deg")}
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
@media (max-width: ${
|
|
79
|
+
@media (max-width: ${w + "px"}) {
|
|
80
80
|
min-width: 8.75rem;
|
|
81
81
|
max-width: 8.75rem;
|
|
82
82
|
|
|
@@ -86,68 +86,72 @@ const N = g.div`
|
|
|
86
86
|
max-height: 5.375rem;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
`,
|
|
90
|
-
const { uuid:
|
|
89
|
+
`, u = f((a, c) => {
|
|
90
|
+
const { uuid: o, image: m, name: i, onSelectCard: d = () => {
|
|
91
91
|
} } = a;
|
|
92
|
-
return /* @__PURE__ */
|
|
93
|
-
|
|
92
|
+
return /* @__PURE__ */ n(
|
|
93
|
+
$,
|
|
94
94
|
{
|
|
95
95
|
className: "simple-category-card",
|
|
96
|
-
onClick: () =>
|
|
96
|
+
onClick: () => d(o),
|
|
97
97
|
children: [
|
|
98
|
-
/* @__PURE__ */ r("img", { src:
|
|
98
|
+
/* @__PURE__ */ r("img", { src: m }),
|
|
99
99
|
/* @__PURE__ */ r("div", { className: "card-content", children: /* @__PURE__ */ r("div", { className: "card-content-2", children: i }) })
|
|
100
100
|
]
|
|
101
101
|
}
|
|
102
102
|
);
|
|
103
|
-
}),
|
|
103
|
+
}), D = f((a, c) => {
|
|
104
104
|
const {
|
|
105
|
-
icon:
|
|
106
|
-
title:
|
|
105
|
+
icon: o,
|
|
106
|
+
title: m = "Shop by category",
|
|
107
107
|
items: i,
|
|
108
|
-
buttonText:
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
108
|
+
buttonText: d,
|
|
109
|
+
buttonLink: s,
|
|
110
|
+
limit: p = 12,
|
|
111
|
+
onButtonAction: v = () => {
|
|
112
|
+
},
|
|
113
|
+
onSelectCard: t = () => {
|
|
114
|
+
}
|
|
115
|
+
} = a, y = k();
|
|
116
|
+
return /* @__PURE__ */ n(N, { ref: c, children: [
|
|
117
|
+
/* @__PURE__ */ n("div", { className: "regular-title", children: [
|
|
118
|
+
/* @__PURE__ */ n("div", { className: "regular-title-text", children: [
|
|
119
|
+
g(o) && /* @__PURE__ */ r("i", { className: o }),
|
|
120
|
+
/* @__PURE__ */ r("span", { children: m })
|
|
117
121
|
] }),
|
|
118
|
-
|
|
119
|
-
|
|
122
|
+
g(s) && /* @__PURE__ */ r(
|
|
123
|
+
C,
|
|
120
124
|
{
|
|
121
125
|
type: "button",
|
|
122
126
|
btnType: "tinted",
|
|
123
127
|
color: "gray",
|
|
124
|
-
onClick:
|
|
128
|
+
onClick: () => v(s),
|
|
125
129
|
borderRadius: "curved",
|
|
126
|
-
children:
|
|
130
|
+
children: d
|
|
127
131
|
}
|
|
128
132
|
)
|
|
129
133
|
] }),
|
|
130
|
-
/* @__PURE__ */ r(
|
|
131
|
-
|
|
134
|
+
/* @__PURE__ */ r(R, { limit: p, children: y === !0 ? i == null ? void 0 : i.map((e, l) => /* @__PURE__ */ r(
|
|
135
|
+
u,
|
|
132
136
|
{
|
|
133
137
|
uuid: e == null ? void 0 : e.uuid,
|
|
134
138
|
image: e == null ? void 0 : e.image,
|
|
135
139
|
name: e == null ? void 0 : e.name,
|
|
136
|
-
onSelectCard: () =>
|
|
140
|
+
onSelectCard: () => t == null ? void 0 : t(e == null ? void 0 : e.uuid)
|
|
137
141
|
},
|
|
138
142
|
l
|
|
139
|
-
)) : i == null ? void 0 : i.slice(0,
|
|
140
|
-
|
|
143
|
+
)) : i == null ? void 0 : i.slice(0, p).map((e, l) => /* @__PURE__ */ r(
|
|
144
|
+
u,
|
|
141
145
|
{
|
|
142
146
|
uuid: e == null ? void 0 : e.uuid,
|
|
143
147
|
image: e == null ? void 0 : e.image,
|
|
144
148
|
name: e == null ? void 0 : e.name,
|
|
145
|
-
onSelectCard: () =>
|
|
149
|
+
onSelectCard: () => t == null ? void 0 : t(e == null ? void 0 : e.uuid)
|
|
146
150
|
},
|
|
147
151
|
l
|
|
148
152
|
)) })
|
|
149
153
|
] });
|
|
150
154
|
});
|
|
151
155
|
export {
|
|
152
|
-
|
|
156
|
+
D as default
|
|
153
157
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),w=require("react"),h=require("./emotion-styled.browser.esm-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),w=require("react"),h=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),q=require("./consts-CtNoHdBj.cjs"),y=require("./useDetectMobile-D6d5LpdL.cjs"),s=require("./index-Dj5wZCVs.cjs"),S=require("./index-Dit169OA.cjs"),j=h.newStyled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: repeat(6, 1fr);
|
|
4
4
|
gap: 1.25rem;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as w, jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as b } from "react";
|
|
3
|
-
import { n as h } from "./emotion-styled.browser.esm-
|
|
3
|
+
import { n as h } from "./emotion-styled.browser.esm-CjCaF13H.js";
|
|
4
4
|
import { M as y } from "./consts-C1uHV4xc.js";
|
|
5
5
|
import { u as k } from "./useDetectMobile-BC6EGaBc.js";
|
|
6
|
-
import { S as m } from "./index-
|
|
7
|
-
import { T as S } from "./index-
|
|
6
|
+
import { S as m } from "./index-CHkb_Sj6.js";
|
|
7
|
+
import { T as S } from "./index-DxdBg_r_.js";
|
|
8
8
|
const v = h.div`
|
|
9
9
|
display: grid;
|
|
10
10
|
grid-template-columns: repeat(6, 1fr);
|
package/dist/Spinner.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime"),n=require("./index-BPVoEhTF.cjs"),i=require("./emotion-styled.browser.esm-
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),n=require("./index-BPVoEhTF.cjs"),i=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),u=require("./emotion-react.browser.esm-1R69UXoj.cjs"),t=require("./utils-NZLCh-J5.cjs"),g=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),p={small:"0.6rem",medium:"0.7rem",large:"0.8rem"},b=(e,r)=>{if(e==="small")return`
|
|
2
2
|
width: ${r.sizes.small};
|
|
3
3
|
height: ${r.sizes.small};
|
|
4
4
|
`;if(e==="medium")return`
|
package/dist/Spinner.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsxs as c, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { P as n } from "./index-S5Cd7WrG.js";
|
|
3
|
-
import { n as s } from "./emotion-styled.browser.esm-
|
|
4
|
-
import { k as p } from "./emotion-react.browser.esm-
|
|
5
|
-
import { g,
|
|
6
|
-
import { u as h } from "./emotion-element-
|
|
3
|
+
import { n as s } from "./emotion-styled.browser.esm-CjCaF13H.js";
|
|
4
|
+
import { k as p } from "./emotion-react.browser.esm-C6iWxXPG.js";
|
|
5
|
+
import { c as g, b as i } from "./utils-DtRLzzTZ.js";
|
|
6
|
+
import { u as h } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
7
|
const u = {
|
|
8
8
|
small: "0.6rem",
|
|
9
9
|
medium: "0.7rem",
|
|
10
10
|
large: "0.8rem"
|
|
11
|
-
},
|
|
11
|
+
}, b = (e, r) => {
|
|
12
12
|
if (e === "small")
|
|
13
13
|
return `
|
|
14
14
|
width: ${r.sizes.small};
|
|
@@ -24,7 +24,7 @@ const u = {
|
|
|
24
24
|
width: ${r.sizes.large};
|
|
25
25
|
height: ${r.sizes.large};
|
|
26
26
|
`;
|
|
27
|
-
},
|
|
27
|
+
}, f = p`
|
|
28
28
|
to {
|
|
29
29
|
transform: rotate(360deg);
|
|
30
30
|
}
|
|
@@ -51,7 +51,7 @@ const u = {
|
|
|
51
51
|
}
|
|
52
52
|
`, $ = s.div`
|
|
53
53
|
display: inline-block;
|
|
54
|
-
${(e) =>
|
|
54
|
+
${(e) => b(e.size, e.theme)}
|
|
55
55
|
border: ${(e) => `0.3125rem solid ${i(
|
|
56
56
|
e.theme,
|
|
57
57
|
"Spinner",
|
|
@@ -75,12 +75,12 @@ const u = {
|
|
|
75
75
|
"background"
|
|
76
76
|
)};
|
|
77
77
|
|
|
78
|
-
animation: ${
|
|
78
|
+
animation: ${f} 0.8s ease-in-out infinite;
|
|
79
79
|
`, z = (e) => {
|
|
80
80
|
const {
|
|
81
81
|
label: r,
|
|
82
|
-
className:
|
|
83
|
-
style:
|
|
82
|
+
className: l = "",
|
|
83
|
+
style: a = {},
|
|
84
84
|
size: m = "small",
|
|
85
85
|
color: d = "primary"
|
|
86
86
|
} = e, t = { theme: h(), size: m, color: d };
|
|
@@ -88,8 +88,8 @@ const u = {
|
|
|
88
88
|
y,
|
|
89
89
|
{
|
|
90
90
|
...t,
|
|
91
|
-
className: "lnc-ui-spinner " +
|
|
92
|
-
style:
|
|
91
|
+
className: "lnc-ui-spinner " + l,
|
|
92
|
+
style: a,
|
|
93
93
|
label: r,
|
|
94
94
|
children: [
|
|
95
95
|
/* @__PURE__ */ o($, { ...t }),
|
package/dist/Surface.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";const x=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const x=require("react/jsx-runtime"),p=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),r=require("./index-BPVoEhTF.cjs"),s=require("./utils-NZLCh-J5.cjs"),c=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),g=p.newStyled.div`
|
|
2
2
|
padding: ${e=>e.padding};
|
|
3
3
|
box-shadow: ${e=>s.getBoxShadowValue(e.theme,e.boxShadow)};
|
|
4
4
|
border-radius: ${e=>s.getBorderRadiusValueWithUnits(e.theme,e.borderRadius)};
|
|
5
5
|
width: ${e=>e.fullWidth?"100%":"fit-content"};
|
|
6
6
|
border-top: 1px solid rgba(0, 0, 0, 0.04);
|
|
7
|
-
`,o=({children:e,style:t={},className:d="",boxShadow:n="s",borderRadius:i="regular",padding:l="s",fullWidth:a=!1})=>{const u=
|
|
7
|
+
`,o=({children:e,style:t={},className:d="",boxShadow:n="s",borderRadius:i="regular",padding:l="s",fullWidth:a=!1})=>{const u=c.useTheme(),m={xs:"0.25rem",s:"0.5rem",m:"0.75rem",l:"1rem",xl:"1.25rem",xxl:"1.5rem"};return x.jsx(g,{theme:u,style:t,className:"lnc-ui-surface "+d,borderRadius:i,boxShadow:n,padding:m[l],fullWidth:a,children:e})};o.propTypes={borderRadius:r.PropTypes.oneOf(["slight","regular","edged","curved","none"]),boxShadow:r.PropTypes.oneOf(["xs","s","m","l","xl","xxl"]),paddign:r.PropTypes.oneOf(["xs","s","m","l","xl","xxl"]),fullWidth:r.PropTypes.bool,className:r.PropTypes.string,style:r.PropTypes.object};module.exports=o;
|
package/dist/Surface.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { n as x } from "./emotion-styled.browser.esm-
|
|
2
|
+
import { n as x } from "./emotion-styled.browser.esm-CjCaF13H.js";
|
|
3
3
|
import { P as r } from "./index-S5Cd7WrG.js";
|
|
4
|
-
import { j as u,
|
|
5
|
-
import { u as p } from "./emotion-element-
|
|
4
|
+
import { j as u, a as f } from "./utils-DtRLzzTZ.js";
|
|
5
|
+
import { u as p } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
6
6
|
const g = x.div`
|
|
7
7
|
padding: ${(e) => e.padding};
|
|
8
8
|
box-shadow: ${(e) => u(e.theme, e.boxShadow)};
|
package/dist/SwipeableDrawer.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const g=require("react/jsx-runtime"),u=require("react"),t=require("./index-BPVoEhTF.cjs"),v=require("./emotion-styled.browser.esm-
|
|
1
|
+
"use strict";const g=require("react/jsx-runtime"),u=require("react"),t=require("./index-BPVoEhTF.cjs"),v=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),y=require("./utils-NZLCh-J5.cjs"),V=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),X=(e,o,n,c,a)=>{if(e==="right"||e==="left"||o&&n)return"height: 100%;";if(!(o&&a===!0))return o?"height: "+c+";":"height: 0;"},Y=(e,o,n,c,a)=>{if(e==="top"||e==="bottom"||o&&n)return"width: 100%;";if(!(o&&a===!0))return o?"width: "+c+";":"width: 0;"},A=v.newStyled.div`
|
|
2
2
|
touch-action: none;
|
|
3
3
|
overflow: auto;
|
|
4
4
|
max-height: ${e=>e.isOpen||e.unsetHeight===!1?"100dvh":0};
|
|
@@ -30,4 +30,4 @@
|
|
|
30
30
|
height: ${e=>e.isOpen===!0&&e.enableOverlay===!0?"100dvh":0};
|
|
31
31
|
width: ${e=>e.isOpen===!0&&e.enableOverlay===!0?"100vw":0};
|
|
32
32
|
background-color: ${e=>e.overlayColor};
|
|
33
|
-
`,$=u.forwardRef((e,o)=>{const{direction:n="right",open:c=!1,duration:a=.8,enableOverlay:x=!0,zIndex:m=100,closeOnClickOutside:O=!0,closeOnSwipe:d=!0,isFullPage:P=!1,unsetHeight:S=!1,unsetWidth:z=!1,onClose:C=()=>{},onOpen:D=()=>{},className:k="",style:q={},color:
|
|
33
|
+
`,$=u.forwardRef((e,o)=>{const{direction:n="right",open:c=!1,duration:a=.8,enableOverlay:x=!0,zIndex:m=100,closeOnClickOutside:O=!0,closeOnSwipe:d=!0,isFullPage:P=!1,unsetHeight:S=!1,unsetWidth:z=!1,onClose:C=()=>{},onOpen:D=()=>{},className:k="",style:q={},color:F="neutral",overlayColor:H="rgba(123, 123, 123, 0.5)",size:I="small",drawerSize:j="12.5rem",children:E,...W}=e,M=V.useTheme(),i=u.useRef(),[p,b]=u.useState(!1);var h=null,f=null;function _(r){return r.touches||r.originalEvent.touches}function R(r){const l=_(r)[0];h=l.clientX,f=l.clientY}function L(r){if(!(!h||!f)){var l=r.touches[0].clientX,U=r.touches[0].clientY,w=h-l,T=f-U;Math.abs(w)>Math.abs(T)?w>0?d==!0&&n=="left"&&s():d==!0&&n=="right"&&s():T>0?d==!0&&n=="top"&&s():d==!0&&n=="bottom"&&s(),h=null,f=null}}u.useImperativeHandle(o,()=>({open(){N()},close(){s()},isOpen(){return p}}));const N=r=>{b(!0),D(r)},s=r=>{b(!1),C(r)};return u.useEffect(()=>{const r=l=>{i!=null&&i.current&&!(i!=null&&i.current.contains(l.target))&&O==!0&&s()};return document.addEventListener("click",r,!0),()=>{document.removeEventListener("click",r,!0)}},[]),g.jsx(g.Fragment,{children:g.jsx(B,{enableOverlay:x,overlayColor:H,isOpen:p,zIndex:m,children:g.jsx(A,{ref:i,zIndex:m,isOpen:p,direction:n,isFullPage:P,unsetHeight:S,unsetWidth:z,duration:a,color:F,theme:M,className:k,style:q,size:I,drawerSize:j,onTouchStart:R,onTouchMove:L,...W,children:E})})})});$.propTypes={direction:t.PropTypes.oneOf(["top","right","left","bottom"]),open:t.PropTypes.bool,duration:t.PropTypes.number,enableOverlay:t.PropTypes.bool,zIndex:t.PropTypes.number,closeOnClickOutside:t.PropTypes.bool,closeOnSwipe:t.PropTypes.bool,isFullPage:t.PropTypes.bool,unsetHeight:t.PropTypes.bool,unsetWidth:t.PropTypes.bool,onClose:t.PropTypes.func,onOpen:t.PropTypes.func,className:t.PropTypes.string,style:t.PropTypes.object,overlayColor:t.PropTypes.string,drawerSize:t.PropTypes.string,size:t.PropTypes.oneOf(["small","medium","large"]),color:t.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"])};module.exports=$;
|
package/dist/SwipeableDrawer.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as g, Fragment as Y } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as V, useRef as q, useState as A, useImperativeHandle as B, useEffect as G } from "react";
|
|
3
3
|
import { P as t } from "./index-S5Cd7WrG.js";
|
|
4
|
-
import { n as y } from "./emotion-styled.browser.esm-
|
|
5
|
-
import {
|
|
6
|
-
import { u as K } from "./emotion-element-
|
|
4
|
+
import { n as y } from "./emotion-styled.browser.esm-CjCaF13H.js";
|
|
5
|
+
import { b as $, c as J } from "./utils-DtRLzzTZ.js";
|
|
6
|
+
import { u as K } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
7
|
const Q = (e, r, o, u, s) => {
|
|
8
8
|
if (e === "right" || e === "left" || r && o) return "height: 100%;";
|
|
9
9
|
if (!(r && s === !0))
|
package/dist/TabItem.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const z=require("react/jsx-runtime"),m=require("react"),r=require("./index-BPVoEhTF.cjs"),E=require("./emotion-styled.browser.esm-
|
|
1
|
+
"use strict";const z=require("react/jsx-runtime"),m=require("react"),r=require("./index-BPVoEhTF.cjs"),E=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),t=require("./utils-NZLCh-J5.cjs"),N=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),y=require("./useUpdateEffect-BtMgpgIV.cjs"),S=e=>e=="small"?"3.125rem":e=="medium"?"3.375rem":"3.625rem",_=E.newStyled.div`
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
${e=>e.disabled===!0&&t.getDisabledStateCss(e.theme)};
|
|
4
4
|
min-width: 5.25rem;
|
package/dist/TabItem.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as j } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as D, useState as H } from "react";
|
|
3
3
|
import { P as t } from "./index-S5Cd7WrG.js";
|
|
4
|
-
import { n as I } from "./emotion-styled.browser.esm-
|
|
5
|
-
import { h as S,
|
|
6
|
-
import { u as F } from "./emotion-element-
|
|
4
|
+
import { n as I } from "./emotion-styled.browser.esm-CjCaF13H.js";
|
|
5
|
+
import { h as S, c as A, b as i, a as o } from "./utils-DtRLzzTZ.js";
|
|
6
|
+
import { u as F } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
7
|
import { u as h } from "./useUpdateEffect-CuYWz7EA.js";
|
|
8
8
|
const K = (e) => e == "small" ? "3.125rem" : e == "medium" ? "3.375rem" : "3.625rem", V = I.div`
|
|
9
9
|
box-sizing: border-box;
|
|
@@ -101,21 +101,21 @@ const K = (e) => e == "small" ? "3.125rem" : e == "medium" ? "3.375rem" : "3.625
|
|
|
101
101
|
e,
|
|
102
102
|
"regular"
|
|
103
103
|
)} ${o(e, "regular")} 0`;
|
|
104
|
-
}, y = (e, r, n, l,
|
|
104
|
+
}, y = (e, r, n, l, u, c) => {
|
|
105
105
|
if (r != "pill")
|
|
106
|
-
return `border-bottom: ${!l && (n ||
|
|
106
|
+
return `border-bottom: ${!l && (n || c == "hover") ? e.components[r === "regular" ? "TabRegular" : "TabUnderline"].default.enabled.lineHeight + "" : e.components[r === "regular" ? "TabRegular" : "TabUnderline"].default.hover.lineHeight + ""} solid ${i(
|
|
107
107
|
e,
|
|
108
108
|
a(r),
|
|
109
|
-
|
|
110
|
-
n && !l ? "active" : l ? "enabled" :
|
|
109
|
+
u,
|
|
110
|
+
n && !l ? "active" : l ? "enabled" : c,
|
|
111
111
|
"line"
|
|
112
112
|
)}`;
|
|
113
113
|
}, L = D((e, r) => {
|
|
114
114
|
const {
|
|
115
115
|
type: n = "underline",
|
|
116
116
|
disabled: l,
|
|
117
|
-
first:
|
|
118
|
-
last:
|
|
117
|
+
first: u = !1,
|
|
118
|
+
last: c = !1,
|
|
119
119
|
fullWidth: v = !1,
|
|
120
120
|
active: d = !1,
|
|
121
121
|
activeIndex: s,
|
|
@@ -161,8 +161,8 @@ const K = (e) => e == "small" ? "3.125rem" : e == "medium" ? "3.375rem" : "3.625
|
|
|
161
161
|
onKeyDown: T,
|
|
162
162
|
disabled: l,
|
|
163
163
|
type: n,
|
|
164
|
-
first:
|
|
165
|
-
last:
|
|
164
|
+
first: u,
|
|
165
|
+
last: c,
|
|
166
166
|
fullWidth: v,
|
|
167
167
|
active: z,
|
|
168
168
|
...N,
|