@lanaco/lnc-react-ui 4.0.206 → 4.0.208
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 +28 -6
- package/dist/BannerSectionCarousel.js +72 -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 +7 -7
- package/dist/MasonryGeneralCardsSection.js +24 -24
- 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/TableView.cjs
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const w=require("react/jsx-runtime"),g=require("react"),ne=require("./emotion-styled.browser.esm-BtEseadx.cjs"),te=require("./ActionsToolbar.cjs"),ce=require("./Pagination.cjs"),d=require("./utils-CITgSxXe.cjs"),le=require("./Table.cjs"),re=require("./breakpoints-CcVm-gVm.cjs"),ie=ne.styled.div`
|
|
2
2
|
& .table-view-pagination-lnc {
|
|
3
3
|
padding: 0 0.625rem;
|
|
4
4
|
}
|
|
5
5
|
& .table-view-toolbar-lnc {
|
|
6
6
|
margin: 0 0.625rem;
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
@media ${re.down("S")} {
|
|
10
|
+
& .table-view-pagination-lnc,
|
|
11
|
+
& .table-view-toolbar-lnc {
|
|
12
|
+
margin: 0 0.5rem;
|
|
13
|
+
padding: 0 0.5rem;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
`,y=g.forwardRef((E,T)=>{const{tableProps:e={},paginationProps:n={},actionsToolbarProps:v={},rowsSingleSelect:N=!0,rowsMultiSelect:C=!1,showCreate:D=!0,enableCreate:k=!0,showEdit:q,enableEditOnSelection:x,showDelete:A=!0,enableDeleteOnSelection:O=!0,showCopy:b=!0,enableCopyOnSelection:j=!0,customActions:I,pagination:L=!0,readOnly:S=!1,actionsDropdownZIndex:_=null,actionsDropdownPlacement:B=null,actionDropdownProps:V,onCreate:f=()=>{},onEdit:G=()=>{},onDelete:M=()=>{},onDetails:W=()=>{},onCopy:Z=()=>{},onPageChange:$=()=>{},color:a="primary",size:s="small",children:u,onChangeRowsSelection:m=()=>{},...F}=E,t={...v,showCreate:D,enableCreate:k,showCopy:b,enableCopyOnSelection:j,showEdit:q,enableEditOnSelection:x,showDelete:A,enableDeleteOnSelection:O,customActions:I,readOnly:S},[i,h]=g.useState([]),c=g.useRef([]),H=(l,r)=>{var o;r?(C||N)&&(c.current=C?[...c.current,l]:[l],m(c==null?void 0:c.current),h(c==null?void 0:c.current)):(c.current=C?(o=c==null?void 0:c.current)==null?void 0:o.filter(z=>z!=l):[],m==null||m(c==null?void 0:c.current),h(c==null?void 0:c.current))},J=(l,r)=>{var o,z;((o=l.target)==null?void 0:o.type)!=="checkbox"&&((z=l.target)==null?void 0:z.className)!=="checkmark"&&(e!=null&&e.onRowClick&&e.onRowClick(l,r),K(r,l))},K=(l,r)=>{W(l,r)},Q=l=>{f(l)},U=l=>{Z(i,l)},X=l=>{G(i,l),c.current=[],h([]),m([])},Y=l=>{M(i,l),c.current=[],h([]),m([])},R=l=>{$(l)},p=()=>d.renderCustomElement(d.getCustomRender("ACTIONS_TOOLBAR",u),{...t,size:t!=null&&t.size?t.size:s,color:t!=null&&t.color?t.color:a,className:"table-view-toolbar-lnc "+(t==null?void 0:t.className)},u)||w.jsx(te,{...t,className:"table-view-toolbar-lnc "+(t==null?void 0:t.className),size:t!=null&&t.size?t.size:s,color:t!=null&&t.color?t.color:a,selectedRowsLength:i!=null&&i.length?i.length:0,onCreate:Q,onCopy:U,onEdit:X,onDelete:Y,actionsDropdownZIndex:_,actionDropdownProps:V,actionsDropdownPlacement:B,selectedRows:c==null?void 0:c.current}),P=()=>d.renderCustomElement(d.getCustomRender("TABLE",u),{...e,size:e!=null&&e.size?e.size:s,color:e!=null&&e.color?e.color:a,className:"table-view-pagination-lnc "+(e==null?void 0:e.className)},u)||w.jsx(le.default,{size:e!=null&&e.size?e.size:s,color:e!=null&&e.color?e.color:a,EnableSelection:(N||C)&&S==!1,onSelectRow:(l,r,o)=>H(r,!o),SelectedData:i,onRowClick:(l,r)=>J(l,r),...e}),ee=()=>d.renderCustomElement(d.getCustomRender("PAGINATION",u),{...n,size:n!=null&&n.size?n.size:s,color:n!=null&&n.color?n.color:a,className:"table-view-pagination-lnc "+(n==null?void 0:n.className)},u)||w.jsx(ce,{...n,size:n!=null&&n.size?n.size:s,color:n!=null&&n.color?n.color:a,className:"table-view-pagination-lnc "+(n==null?void 0:n.className),onPageChange:R});return w.jsxs(ie,{ref:T,...F,children:[p(),P(),L==!0&&ee()]})});y.displayName="TABLE_VIEW";module.exports=y;
|
package/dist/TableView.js
CHANGED
|
@@ -2,156 +2,165 @@ import { jsxs as ee, jsx as C } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as ne, useState as ce, useRef as le } from "react";
|
|
3
3
|
import { s as te } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import re from "./ActionsToolbar.js";
|
|
5
|
-
import
|
|
6
|
-
import { r as
|
|
7
|
-
import
|
|
8
|
-
|
|
5
|
+
import ie from "./Pagination.js";
|
|
6
|
+
import { r as w, j as N } from "./utils-B2fsQ6PS.js";
|
|
7
|
+
import oe from "./Table.js";
|
|
8
|
+
import { d as ae } from "./breakpoints-ff0SIcV3.js";
|
|
9
|
+
const me = te.div`
|
|
9
10
|
& .table-view-pagination-lnc {
|
|
10
11
|
padding: 0 0.625rem;
|
|
11
12
|
}
|
|
12
13
|
& .table-view-toolbar-lnc {
|
|
13
14
|
margin: 0 0.625rem;
|
|
14
15
|
}
|
|
15
|
-
|
|
16
|
+
|
|
17
|
+
@media ${ae("S")} {
|
|
18
|
+
& .table-view-pagination-lnc,
|
|
19
|
+
& .table-view-toolbar-lnc {
|
|
20
|
+
margin: 0 0.5rem;
|
|
21
|
+
padding: 0 0.5rem;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
`, se = ne((y, T) => {
|
|
16
25
|
const {
|
|
17
26
|
tableProps: e = {},
|
|
18
27
|
paginationProps: n = {},
|
|
19
|
-
actionsToolbarProps:
|
|
20
|
-
rowsSingleSelect:
|
|
28
|
+
actionsToolbarProps: v = {},
|
|
29
|
+
rowsSingleSelect: S = !0,
|
|
21
30
|
rowsMultiSelect: d = !1,
|
|
22
|
-
showCreate:
|
|
23
|
-
enableCreate:
|
|
24
|
-
showEdit:
|
|
31
|
+
showCreate: D = !0,
|
|
32
|
+
enableCreate: E = !0,
|
|
33
|
+
showEdit: f,
|
|
25
34
|
enableEditOnSelection: A,
|
|
26
35
|
showDelete: O = !0,
|
|
27
36
|
enableDeleteOnSelection: k = !0,
|
|
28
37
|
showCopy: x = !0,
|
|
29
38
|
enableCopyOnSelection: I = !0,
|
|
30
39
|
customActions: L,
|
|
31
|
-
pagination:
|
|
32
|
-
readOnly:
|
|
33
|
-
actionsDropdownZIndex:
|
|
34
|
-
actionsDropdownPlacement:
|
|
35
|
-
actionDropdownProps:
|
|
40
|
+
pagination: b = !0,
|
|
41
|
+
readOnly: g = !1,
|
|
42
|
+
actionsDropdownZIndex: j = null,
|
|
43
|
+
actionsDropdownPlacement: B = null,
|
|
44
|
+
actionDropdownProps: V,
|
|
36
45
|
//----------------
|
|
37
|
-
onCreate:
|
|
46
|
+
onCreate: _ = () => {
|
|
38
47
|
},
|
|
39
|
-
onEdit:
|
|
48
|
+
onEdit: G = () => {
|
|
40
49
|
},
|
|
41
|
-
onDelete:
|
|
50
|
+
onDelete: M = () => {
|
|
42
51
|
},
|
|
43
|
-
onDetails:
|
|
52
|
+
onDetails: W = () => {
|
|
44
53
|
},
|
|
45
|
-
onCopy:
|
|
54
|
+
onCopy: Z = () => {
|
|
46
55
|
},
|
|
47
|
-
onPageChange:
|
|
56
|
+
onPageChange: $ = () => {
|
|
48
57
|
},
|
|
49
58
|
//------------------
|
|
50
59
|
color: a = "primary",
|
|
51
|
-
size:
|
|
52
|
-
children:
|
|
60
|
+
size: m = "small",
|
|
61
|
+
children: s,
|
|
53
62
|
onChangeRowsSelection: u = () => {
|
|
54
63
|
},
|
|
55
|
-
...
|
|
56
|
-
} =
|
|
57
|
-
...
|
|
58
|
-
showCreate:
|
|
59
|
-
enableCreate:
|
|
64
|
+
...q
|
|
65
|
+
} = y, c = {
|
|
66
|
+
...v,
|
|
67
|
+
showCreate: D,
|
|
68
|
+
enableCreate: E,
|
|
60
69
|
showCopy: x,
|
|
61
70
|
enableCopyOnSelection: I,
|
|
62
|
-
showEdit:
|
|
71
|
+
showEdit: f,
|
|
63
72
|
enableEditOnSelection: A,
|
|
64
73
|
showDelete: O,
|
|
65
74
|
enableDeleteOnSelection: k,
|
|
66
75
|
customActions: L,
|
|
67
|
-
readOnly:
|
|
68
|
-
}, [
|
|
69
|
-
var
|
|
70
|
-
r ? (d ||
|
|
76
|
+
readOnly: g
|
|
77
|
+
}, [i, h] = ce([]), l = le([]), F = (t, r) => {
|
|
78
|
+
var o;
|
|
79
|
+
r ? (d || S) && (l.current = d ? [...l.current, t] : [t], u(l == null ? void 0 : l.current), h(l == null ? void 0 : l.current)) : (l.current = d ? (o = l == null ? void 0 : l.current) == null ? void 0 : o.filter((z) => z != t) : [], u == null || u(l == null ? void 0 : l.current), h(l == null ? void 0 : l.current));
|
|
80
|
+
}, H = (t, r) => {
|
|
81
|
+
var o, z;
|
|
82
|
+
((o = t.target) == null ? void 0 : o.type) !== "checkbox" && ((z = t.target) == null ? void 0 : z.className) !== "checkmark" && (e != null && e.onRowClick && e.onRowClick(t, r), J(r, t));
|
|
71
83
|
}, J = (t, r) => {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
Z(t, r);
|
|
84
|
+
W(t, r);
|
|
85
|
+
}, K = (t) => {
|
|
86
|
+
_(t);
|
|
76
87
|
}, Q = (t) => {
|
|
77
|
-
|
|
88
|
+
Z(i, t);
|
|
78
89
|
}, U = (t) => {
|
|
79
|
-
|
|
90
|
+
G(i, t), l.current = [], h([]), u([]);
|
|
80
91
|
}, X = (t) => {
|
|
81
|
-
M(
|
|
92
|
+
M(i, t), l.current = [], h([]), u([]);
|
|
82
93
|
}, Y = (t) => {
|
|
83
|
-
|
|
84
|
-
},
|
|
85
|
-
|
|
86
|
-
}, R = () => N(
|
|
87
|
-
S("ACTIONS_TOOLBAR", m),
|
|
94
|
+
$(t);
|
|
95
|
+
}, R = () => w(
|
|
96
|
+
N("ACTIONS_TOOLBAR", s),
|
|
88
97
|
{
|
|
89
98
|
...c,
|
|
90
|
-
size: c != null && c.size ? c.size :
|
|
99
|
+
size: c != null && c.size ? c.size : m,
|
|
91
100
|
color: c != null && c.color ? c.color : a,
|
|
92
101
|
className: "table-view-toolbar-lnc " + (c == null ? void 0 : c.className)
|
|
93
102
|
},
|
|
94
|
-
|
|
103
|
+
s
|
|
95
104
|
) || /* @__PURE__ */ C(
|
|
96
105
|
re,
|
|
97
106
|
{
|
|
98
107
|
...c,
|
|
99
108
|
className: "table-view-toolbar-lnc " + (c == null ? void 0 : c.className),
|
|
100
|
-
size: c != null && c.size ? c.size :
|
|
109
|
+
size: c != null && c.size ? c.size : m,
|
|
101
110
|
color: c != null && c.color ? c.color : a,
|
|
102
|
-
selectedRowsLength:
|
|
103
|
-
onCreate:
|
|
104
|
-
onCopy:
|
|
105
|
-
onEdit:
|
|
106
|
-
onDelete:
|
|
107
|
-
actionsDropdownZIndex:
|
|
108
|
-
actionDropdownProps:
|
|
109
|
-
actionsDropdownPlacement:
|
|
111
|
+
selectedRowsLength: i != null && i.length ? i.length : 0,
|
|
112
|
+
onCreate: K,
|
|
113
|
+
onCopy: Q,
|
|
114
|
+
onEdit: U,
|
|
115
|
+
onDelete: X,
|
|
116
|
+
actionsDropdownZIndex: j,
|
|
117
|
+
actionDropdownProps: V,
|
|
118
|
+
actionsDropdownPlacement: B,
|
|
110
119
|
selectedRows: l == null ? void 0 : l.current
|
|
111
120
|
}
|
|
112
|
-
), p = () =>
|
|
113
|
-
|
|
121
|
+
), p = () => w(
|
|
122
|
+
N("TABLE", s),
|
|
114
123
|
{
|
|
115
124
|
...e,
|
|
116
|
-
size: e != null && e.size ? e.size :
|
|
125
|
+
size: e != null && e.size ? e.size : m,
|
|
117
126
|
color: e != null && e.color ? e.color : a,
|
|
118
127
|
className: "table-view-pagination-lnc " + (e == null ? void 0 : e.className)
|
|
119
128
|
},
|
|
120
|
-
|
|
129
|
+
s
|
|
121
130
|
) || /* @__PURE__ */ C(
|
|
122
|
-
|
|
131
|
+
oe,
|
|
123
132
|
{
|
|
124
|
-
size: e != null && e.size ? e.size :
|
|
133
|
+
size: e != null && e.size ? e.size : m,
|
|
125
134
|
color: e != null && e.color ? e.color : a,
|
|
126
|
-
EnableSelection: (
|
|
127
|
-
onSelectRow: (t, r,
|
|
128
|
-
SelectedData:
|
|
129
|
-
onRowClick: (t, r) =>
|
|
135
|
+
EnableSelection: (S || d) && g == !1,
|
|
136
|
+
onSelectRow: (t, r, o) => F(r, !o),
|
|
137
|
+
SelectedData: i,
|
|
138
|
+
onRowClick: (t, r) => H(t, r),
|
|
130
139
|
...e
|
|
131
140
|
}
|
|
132
|
-
), P = () =>
|
|
133
|
-
|
|
141
|
+
), P = () => w(
|
|
142
|
+
N("PAGINATION", s),
|
|
134
143
|
{
|
|
135
144
|
...n,
|
|
136
|
-
size: n != null && n.size ? n.size :
|
|
145
|
+
size: n != null && n.size ? n.size : m,
|
|
137
146
|
color: n != null && n.color ? n.color : a,
|
|
138
147
|
className: "table-view-pagination-lnc " + (n == null ? void 0 : n.className)
|
|
139
148
|
},
|
|
140
|
-
|
|
149
|
+
s
|
|
141
150
|
) || /* @__PURE__ */ C(
|
|
142
|
-
|
|
151
|
+
ie,
|
|
143
152
|
{
|
|
144
153
|
...n,
|
|
145
|
-
size: n != null && n.size ? n.size :
|
|
154
|
+
size: n != null && n.size ? n.size : m,
|
|
146
155
|
color: n != null && n.color ? n.color : a,
|
|
147
156
|
className: "table-view-pagination-lnc " + (n == null ? void 0 : n.className),
|
|
148
|
-
onPageChange:
|
|
157
|
+
onPageChange: Y
|
|
149
158
|
}
|
|
150
159
|
);
|
|
151
|
-
return /* @__PURE__ */ ee(
|
|
160
|
+
return /* @__PURE__ */ ee(me, { ref: T, ...q, children: [
|
|
152
161
|
R(),
|
|
153
162
|
p(),
|
|
154
|
-
|
|
163
|
+
b == !0 && P()
|
|
155
164
|
] });
|
|
156
165
|
});
|
|
157
166
|
se.displayName = "TABLE_VIEW";
|
package/dist/TextAreaInput.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const F=require("react/jsx-runtime"),u=require("react"),U=require("./index-Cp66dWMi.cjs"),G=require("./emotion-styled.browser.esm-BtEseadx.cjs"),f=require("./utils-
|
|
1
|
+
"use strict";const F=require("react/jsx-runtime"),u=require("react"),U=require("./index-Cp66dWMi.cjs"),G=require("./emotion-styled.browser.esm-BtEseadx.cjs"),f=require("./utils-CITgSxXe.cjs"),j=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),Y=require("./objectWithoutPropertiesLoose-BLga_MQA.cjs"),X=require("./use-isomorphic-layout-effect.browser.esm-CkGv31zs.cjs");function Z(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const S=Z(u),J=G.styled.div`
|
|
2
2
|
& textarea {
|
|
3
3
|
${e=>f.getComponentTypographyCss(e.theme,"Input",e.size,"enabled")}
|
|
4
4
|
min-height: ${e=>f.getSizeValueWithUnits(e.theme,e.size)};
|
package/dist/TextAreaInput.js
CHANGED
|
@@ -3,7 +3,7 @@ import * as x from "react";
|
|
|
3
3
|
import E, { forwardRef as U, useState as H, useEffect as I, useCallback as G } from "react";
|
|
4
4
|
import { d as Y } from "./index-Dt62UGku.js";
|
|
5
5
|
import { s as q } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
6
|
-
import {
|
|
6
|
+
import { d as D, e as X, c as p, b as Z, f as J, i as K } from "./utils-B2fsQ6PS.js";
|
|
7
7
|
import { _ as Q, u as ee } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
8
|
import { _ as te } from "./objectWithoutPropertiesLoose-DhwSMsjf.js";
|
|
9
9
|
import { i as re } from "./use-isomorphic-layout-effect.browser.esm-DERp5kr6.js";
|
package/dist/TextInput.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime"),o=require("react"),N=require("./index-Cp66dWMi.cjs"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),t=require("./utils-
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),o=require("react"),N=require("./index-Cp66dWMi.cjs"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),t=require("./utils-CITgSxXe.cjs"),B=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),D=g.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
|
package/dist/TextInput.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs as U, jsx as x } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as D, useRef as E, useState as V, useEffect as P, useCallback as q } from "react";
|
|
3
3
|
import { d as A } from "./index-Dt62UGku.js";
|
|
4
4
|
import { s } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
-
import {
|
|
5
|
+
import { e as i, c as a, b as G, f as H, i as S, d as J } from "./utils-B2fsQ6PS.js";
|
|
6
6
|
import { u as K } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
7
|
const L = s.div`
|
|
8
8
|
display: flex;
|
package/dist/ThemeProvider.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react/jsx-runtime"),s=require("react"),t=require("./utils-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react/jsx-runtime"),s=require("react"),d=require("./theme-Q3WOGKWQ.cjs"),t=require("./utils-CITgSxXe.cjs"),g=require("./styled-components.browser.esm-CvykQBGY.cjs"),b=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),m=e=>{const a=e.palette.disabled.color,o=e.palette[a][e.palette.disabled.background],r=e.palette.opacity[e.palette.disabled.opacity];return t.hexToRgba(o,r??"100%")},p=e=>{const a=e.palette.disabled.color;return e.palette[a][e.palette.disabled.text]},h=g.$e`
|
|
2
2
|
* {
|
|
3
3
|
--size-small: ${e=>t.getSizeValueWithUnits(e.theme,"small")};
|
|
4
4
|
--size-medium: ${e=>t.getSizeValueWithUnits(e.theme,"medium")};
|
|
5
5
|
--size-large: ${e=>t.getSizeValueWithUnits(e.theme,"large")};
|
|
6
|
-
--disabled-text: ${e=>
|
|
7
|
-
--disabled-bg: ${e=>
|
|
6
|
+
--disabled-text: ${e=>p(e.theme)};
|
|
7
|
+
--disabled-bg: ${e=>m(e.theme)};
|
|
8
8
|
|
|
9
9
|
box-sizing: border-box;
|
|
10
10
|
font-family: ${e=>{var a,o;return(o=(a=e.theme)==null?void 0:a.typography)==null?void 0:o.fontFamily}};
|
|
@@ -35,4 +35,4 @@
|
|
|
35
35
|
background-color: ${e=>t.getColorRgbaValue(e.theme,"Background","default","enabled","background")};
|
|
36
36
|
color: ${e=>t.getColorRgbaValue(e.theme,"Text","default","enabled","text")};
|
|
37
37
|
}
|
|
38
|
-
`,
|
|
38
|
+
`,c=s.createContext(),f=()=>s.useContext(c),x=({theme:e="Lanaco Light",children:a})=>{const[o,r]=s.useState(()=>{var l;return typeof e=="string"?(l=d.themes)==null?void 0:l.find(n=>n.name==e):e});s.useEffect(()=>{var l;r(typeof e=="string"?(l=d.themes)==null?void 0:l.find(n=>n.name==e):e)},[e]);const u=()=>{var l;r(typeof e=="string"?(l=d.themes)==null?void 0:l.find(n=>n.name==e):e)};return i.jsx(c.Provider,{value:{theme:o,switchTheme:u},children:i.jsxs(b.ThemeProvider,{theme:o,children:[i.jsx(h,{theme:o}),a]})})};exports.default=x;exports.useTheme=f;
|
package/dist/ThemeProvider.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx as c, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import { createContext as u, useContext as g, useState as p, useEffect as f } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { t as d } from "./theme-Befg4g_L.js";
|
|
4
|
+
import { o as x, e as i, c as r } from "./utils-B2fsQ6PS.js";
|
|
4
5
|
import { $ as h } from "./styled-components.browser.esm-D-n22PJk.js";
|
|
5
6
|
import { b as $ } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
6
7
|
const k = (e) => {
|
|
@@ -11,9 +12,9 @@ const k = (e) => {
|
|
|
11
12
|
return e.palette[o][e.palette.disabled.text];
|
|
12
13
|
}, C = h`
|
|
13
14
|
* {
|
|
14
|
-
--size-small: ${(e) =>
|
|
15
|
-
--size-medium: ${(e) =>
|
|
16
|
-
--size-large: ${(e) =>
|
|
15
|
+
--size-small: ${(e) => i(e.theme, "small")};
|
|
16
|
+
--size-medium: ${(e) => i(e.theme, "medium")};
|
|
17
|
+
--size-large: ${(e) => i(e.theme, "large")};
|
|
17
18
|
--disabled-text: ${(e) => y(e.theme)};
|
|
18
19
|
--disabled-bg: ${(e) => k(e.theme)};
|
|
19
20
|
|
|
@@ -91,18 +92,18 @@ const k = (e) => {
|
|
|
91
92
|
)};
|
|
92
93
|
color: ${(e) => r(e.theme, "Text", "default", "enabled", "text")};
|
|
93
94
|
}
|
|
94
|
-
`, b = u(),
|
|
95
|
+
`, b = u(), F = () => g(b), H = ({ theme: e = "Lanaco Light", children: o }) => {
|
|
95
96
|
const [t, l] = p(() => {
|
|
96
97
|
var a;
|
|
97
|
-
return typeof e == "string" ? (a =
|
|
98
|
+
return typeof e == "string" ? (a = d) == null ? void 0 : a.find((n) => n.name == e) : e;
|
|
98
99
|
});
|
|
99
100
|
f(() => {
|
|
100
101
|
var a;
|
|
101
|
-
l(typeof e == "string" ? (a =
|
|
102
|
+
l(typeof e == "string" ? (a = d) == null ? void 0 : a.find((n) => n.name == e) : e);
|
|
102
103
|
}, [e]);
|
|
103
104
|
const s = () => {
|
|
104
105
|
var a;
|
|
105
|
-
l(typeof e == "string" ? (a =
|
|
106
|
+
l(typeof e == "string" ? (a = d) == null ? void 0 : a.find((n) => n.name == e) : e);
|
|
106
107
|
};
|
|
107
108
|
return /* @__PURE__ */ c(
|
|
108
109
|
b.Provider,
|
|
@@ -116,6 +117,6 @@ const k = (e) => {
|
|
|
116
117
|
);
|
|
117
118
|
};
|
|
118
119
|
export {
|
|
119
|
-
|
|
120
|
-
|
|
120
|
+
H as default,
|
|
121
|
+
F as useTheme
|
|
121
122
|
};
|
package/dist/TimeInput.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),d=require("react"),f=require("./emotion-styled.browser.esm-BtEseadx.cjs"),k=require("./index-Cp66dWMi.cjs"),t=require("./utils-
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),d=require("react"),f=require("./emotion-styled.browser.esm-BtEseadx.cjs"),k=require("./index-Cp66dWMi.cjs"),t=require("./utils-CITgSxXe.cjs"),q=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),v=({theme:e,size:a})=>{var l=t.getSizeValueWithUnits(e,a);return`
|
|
2
2
|
min-height: ${l};
|
|
3
3
|
max-height: ${l};
|
|
4
4
|
`},O=f.styled.input`
|
package/dist/TimeInput.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as s, Fragment as x } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as V, useState as k, useEffect as v, useCallback as O } from "react";
|
|
3
3
|
import { s as z } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { d as S } from "./index-Dt62UGku.js";
|
|
5
|
-
import {
|
|
5
|
+
import { d as T, c as a, b as R, i as w, f as F, e as U } from "./utils-B2fsQ6PS.js";
|
|
6
6
|
import { u as W } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
7
|
const j = ({ theme: e, size: r }) => {
|
|
8
8
|
var d = U(e, r);
|
package/dist/Toggle.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const a=require("react/jsx-runtime"),R=require("react"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),t=require("./utils-
|
|
1
|
+
"use strict";const a=require("react/jsx-runtime"),R=require("react"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),t=require("./utils-CITgSxXe.cjs"),v=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),o={containerWidth:{small:"2.5rem",medium:"3rem",large:"3.5rem"},containerHeight:{small:"1.5rem",medium:"1.75rem",large:"2rem"},slider:{small:"1rem",medium:"1.25rem",large:"1.5rem"},icon:{small:"0.75rem",medium:"0.875rem",large:"1rem"},iconOff:{small:"0.625rem",medium:"0.6875rem",large:"0.75rem"}},V={checked:{left:{small:"1.25rem",medium:"1.5rem",large:"1.75rem"}}},l={on:{top:{small:"0.25rem",medium:"0.25rem",large:"0.25rem"},left:{small:"1.375rem",medium:"1.6875rem",large:"2rem"},right:{small:"0.5rem",medium:"0.5rem",large:"0.5rem"}},off:{top:{small:"0.375rem",medium:"0.4375rem",large:"0.5rem"},left:{small:"1.375rem",medium:"1.75rem",large:"2.125rem"},right:{small:"0.5rem",medium:"0.5rem",large:"0.5rem"}}},I=e=>e=="left"?"row-reverse":"row",j=h.styled.label`
|
|
2
2
|
box-sizing: content-box !important;
|
|
3
3
|
width: 100%;
|
|
4
4
|
text-align: left;
|
package/dist/Toggle.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as C, jsx as g } from "react/jsx-runtime";
|
|
2
2
|
import { useState as S } from "react";
|
|
3
3
|
import { s as f } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import {
|
|
4
|
+
import { f as j, c as i, d as b } from "./utils-B2fsQ6PS.js";
|
|
5
5
|
import { u as F } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
6
6
|
const t = {
|
|
7
7
|
containerWidth: {
|
package/dist/ToggleSection.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),g=require("react"),u=require("./Chip.cjs"),m=require("./emotion-styled.browser.esm-BtEseadx.cjs"),h=require("./
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),g=require("react"),u=require("./Chip.cjs"),m=require("./emotion-styled.browser.esm-BtEseadx.cjs"),h=require("./breakpoints-CcVm-gVm.cjs"),w=require("./useDetectMobile-DYV6V1yw.cjs"),p=require("./Button.cjs"),v=m.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
|
|
4
4
|
border: 1px solid var(--gray-200, #e4e9f0);
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
@media
|
|
61
|
+
@media ${h.down("S")} {
|
|
62
62
|
width: 100%;
|
|
63
63
|
|
|
64
64
|
& .options__item {
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
@media
|
|
90
|
+
@media ${h.down("S")} {
|
|
91
91
|
flex-direction: column;
|
|
92
92
|
|
|
93
93
|
& .learn-more {
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
@media
|
|
164
|
+
@media ${h.down("S")} {
|
|
165
165
|
max-width: 100%;
|
|
166
166
|
flex-direction: row;
|
|
167
167
|
padding: 1rem;
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
`,j=g.forwardRef(({options:r=[],selectedOptionCode:
|
|
197
|
+
`,j=g.forwardRef(({options:r=[],selectedOptionCode:o=null,onSelectOption:a=()=>{}},l)=>e.jsx(v,{ref:l,children:r==null?void 0:r.map((s,n)=>e.jsx(u,{label:s,borderRadius:"curved",color:"neutral",className:`options__item ${o===n?"active":""}`,onClick:()=>{a(n)}},`toggle-section-tag__${n+1}`))})),S=({title:r,description:o,image:a,learnMoreText:l,onSelectItem:s=()=>{},LinkComponent:n,link:c})=>{const d=n||"a";return e.jsxs(b,{onClick:s,as:d,...n?{to:`/${c}`}:{href:`/${c}`},children:[e.jsxs("div",{className:"card__content",children:[e.jsx("img",{src:a,alt:`Card ${r}`,className:"card__image"}),e.jsxs("div",{className:"card__text",children:[e.jsx("div",{className:"card__title",children:r}),e.jsx("div",{className:"card__divider"}),e.jsx("div",{className:"card__description",children:o})]})]}),e.jsx(p,{text:l,btnType:"basic",color:"neutral",className:"section__show-more learn-more"})]})},N=g.forwardRef(({items:r=[],showMoreText:o,learnMoreText:a,onSelectItem:l=()=>{},LinkComponent:s},n)=>{const c=w.useDetectMobile(),[d,_]=g.useState(!1),f=()=>{_(t=>!t)},i=g.useMemo(()=>r==null?void 0:r.map((t,x)=>e.jsx(S,{title:t==null?void 0:t.title,description:t==null?void 0:t.description,image:t==null?void 0:t.image,learnMoreText:a,onSelectItem:()=>l(t),LinkComponent:s,link:t==null?void 0:t.link},`toggle-section-item__${x+1}`)),[r]);return e.jsx(y,{ref:n,children:c?d?i:e.jsxs(e.Fragment,{children:[i==null?void 0:i.slice(0,4),(i==null?void 0:i.length)>4&&e.jsx(p,{text:o,btnType:"basic",color:"neutral",className:"section__show-more",onClick:f})]}):i})}),$=m.styled.div`
|
|
198
198
|
display: flex;
|
|
199
199
|
flex-direction: column;
|
|
200
200
|
align-items: center;
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
line-height: 1.5rem;
|
|
227
227
|
}
|
|
228
228
|
|
|
229
|
-
@media
|
|
229
|
+
@media ${h.down("S")} {
|
|
230
230
|
gap: 1.5rem;
|
|
231
231
|
|
|
232
232
|
& .section__heading {
|
|
@@ -248,4 +248,4 @@
|
|
|
248
248
|
text-align: left;
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
|
-
|
|
251
|
+
`,C=g.forwardRef(({title:r,description:o,showMoreText:a="Show more",learnMoreText:l="Learn more",options:s=[],items:n=[],onSelectItem:c=()=>{},LinkComponent:d},_)=>{const[f,i]=g.useState(0),t=x=>{i(x)};return e.jsxs($,{ref:_,children:[e.jsxs("div",{className:"section__heading",children:[r&&e.jsx("div",{className:"section__title",children:r}),o&&e.jsx("div",{className:"section__description",children:o})]}),e.jsx(j,{options:s,selectedOptionCode:f,onSelectOption:t,LinkComponent:d}),e.jsx(N,{items:n==null?void 0:n[f],showMoreText:a,learnMoreText:l,onSelectItem:c,LinkComponent:d},`toggle-section-items__${f}`)]})});module.exports=C;
|