@lanaco/lnc-react-ui 4.0.206 → 4.0.207
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BREAKPOINTS.md +148 -0
- package/dist/Accordion.cjs +1 -1
- package/dist/Accordion.js +6 -6
- package/dist/AccordionSummary.cjs +1 -1
- package/dist/AccordionSummary.js +8 -8
- package/dist/ActionsToolbar.cjs +15 -4
- package/dist/ActionsToolbar.js +58 -46
- package/dist/AdBannerSection.cjs +4 -4
- package/dist/AdBannerSection.js +5 -5
- package/dist/Alert.cjs +1 -1
- package/dist/Alert.js +1 -1
- package/dist/Avatar.cjs +1 -1
- package/dist/Avatar.js +12 -12
- package/dist/Badge.cjs +1 -1
- package/dist/Badge.js +5 -5
- package/dist/BannerNextSection.cjs +2 -2
- package/dist/BannerNextSection.js +13 -13
- package/dist/BannerSectionBasic.cjs +4 -4
- package/dist/BannerSectionBasic.js +22 -22
- package/dist/BannerSectionCarousel.cjs +27 -6
- package/dist/BannerSectionCarousel.js +71 -50
- package/dist/BannerSectionGrid.cjs +3 -3
- package/dist/BannerSectionGrid.js +13 -13
- package/dist/BannerSectionSimple.cjs +15 -15
- package/dist/BannerSectionSimple.js +40 -40
- package/dist/BannerSectionWithList.cjs +7 -7
- package/dist/BannerSectionWithList.js +20 -20
- package/dist/BannerSectionWithListImage.cjs +6 -9
- package/dist/BannerSectionWithListImage.js +17 -20
- package/dist/BlogCardsSponsoredSection.cjs +7 -5
- package/dist/BlogCardsSponsoredSection.js +32 -30
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +2 -2
- package/dist/BlogExploreSection.cjs +4 -4
- package/dist/BlogExploreSection.js +60 -60
- package/dist/BlogImagePathSection.cjs +3 -14
- package/dist/BlogImagePathSection.js +27 -39
- package/dist/BlogListSection.cjs +6 -6
- package/dist/BlogListSection.js +32 -32
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +3 -3
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +3 -3
- package/dist/BlogSingleSection.cjs +3 -3
- package/dist/BlogSingleSection.js +12 -12
- package/dist/BlogsSectionDetailed.cjs +14 -6
- package/dist/BlogsSectionDetailed.js +53 -45
- package/dist/BlogsSectionLarge.cjs +13 -5
- package/dist/BlogsSectionLarge.js +48 -40
- package/dist/BlogsSectionSimple.cjs +14 -9
- package/dist/BlogsSectionSimple.js +43 -38
- package/dist/BlogsSectionSimpleCentered.cjs +17 -8
- package/dist/BlogsSectionSimpleCentered.js +68 -59
- package/dist/BlogsSectionWithFilters.cjs +16 -11
- package/dist/BlogsSectionWithFilters.js +43 -38
- package/dist/BrandHitsSection.cjs +7 -7
- package/dist/BrandHitsSection.js +13 -13
- package/dist/Breadcrumbs.cjs +1 -1
- package/dist/Breadcrumbs.js +16 -16
- package/dist/Button.cjs +1 -1
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.cjs +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/CalorieCalculatorSection.cjs +15 -15
- package/dist/CalorieCalculatorSection.js +84 -84
- package/dist/{CategorySimpleCard-COGlTj06.cjs → CategorySimpleCard-CIBvknos.cjs} +3 -3
- package/dist/{CategorySimpleCard-Em84kZzQ.js → CategorySimpleCard-CkSwvJRw.js} +8 -8
- package/dist/CheckBoxInput.cjs +1 -1
- package/dist/CheckBoxInput.js +1 -1
- package/dist/Chip.cjs +1 -1
- package/dist/Chip.js +1 -1
- package/dist/ColorInput.cjs +1 -1
- package/dist/ColorInput.js +14 -14
- package/dist/ConfirmationForm.cjs +1 -1
- package/dist/ConfirmationForm.js +5 -5
- package/dist/ContactSection.cjs +4 -4
- package/dist/ContactSection.js +72 -72
- package/dist/CustomLoanMapSection.cjs +3 -3
- package/dist/CustomLoanMapSection.js +67 -67
- package/dist/{CustomStyles-C86XQqBE.cjs → CustomStyles-2TQQSwtU.cjs} +1 -1
- package/dist/{CustomStyles-DtWxboEM.js → CustomStyles-DR4WuDUN.js} +1 -1
- package/dist/{DailyMotion-CpZExcrg.cjs → DailyMotion-BPdBW5Yv.cjs} +1 -1
- package/dist/{DailyMotion-BBcJkMo_.js → DailyMotion-P9S-WhTX.js} +1 -1
- package/dist/DateInput.cjs +6 -6
- package/dist/DateInput.js +646 -645
- package/dist/DecimalInput.cjs +1 -1
- package/dist/DecimalInput.js +1 -1
- package/dist/DecimalInputV2.cjs +1 -1
- package/dist/DecimalInputV2.js +1 -1
- package/dist/DetailedProductsInfinitiveSection.cjs +10 -4
- package/dist/DetailedProductsInfinitiveSection.js +71 -65
- package/dist/DetailedProductsSection.cjs +7 -3
- package/dist/DetailedProductsSection.js +55 -51
- package/dist/DetailsView.cjs +1 -1
- package/dist/DetailsView.js +1 -1
- package/dist/DoubleRangeSlider.cjs +1 -1
- package/dist/DoubleRangeSlider.js +1 -1
- package/dist/DragAndDropFile.cjs +1 -1
- package/dist/DragAndDropFile.js +1 -1
- package/dist/DragDropFiles.cjs +1 -1
- package/dist/DragDropFiles.js +13 -13
- package/dist/Drawer.cjs +1 -1
- package/dist/Drawer.js +1 -1
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +2 -2
- package/dist/DropdownItem.cjs +1 -1
- package/dist/DropdownItem.js +1 -1
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +1 -1
- package/dist/DropdownMenu.cjs +1 -1
- package/dist/DropdownMenu.js +7 -7
- package/dist/EditableTable.cjs +1 -1
- package/dist/EditableTable.js +8 -8
- package/dist/{Facebook-DoKw-XxT.cjs → Facebook-C8L2KR4O.cjs} +1 -1
- package/dist/{Facebook-BSWPEXjA.js → Facebook-vhbBr0rd.js} +1 -1
- package/dist/FaqSection.cjs +3 -3
- package/dist/FaqSection.js +52 -52
- package/dist/FeedbackSection.cjs +3 -3
- package/dist/FeedbackSection.js +15 -15
- package/dist/FieldOfInterestsMasonrySection.cjs +18 -12
- package/dist/FieldOfInterestsMasonrySection.js +73 -67
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +13 -7
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +64 -58
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +15 -9
- package/dist/FieldOfInterestsWithTagsCardsSection.js +42 -36
- package/dist/FileInput.cjs +1 -1
- package/dist/FileInput.js +1 -1
- package/dist/{FilePlayer-D9az_lc_.cjs → FilePlayer-BVFgHY_f.cjs} +1 -1
- package/dist/{FilePlayer-BtGpIWnK.js → FilePlayer-CXTLAokk.js} +1 -1
- package/dist/FlexGridItem.cjs +1 -1
- package/dist/FlexGridItem.js +1 -1
- package/dist/FormField.cjs +1 -1
- package/dist/FormField.js +1 -1
- package/dist/FormView.cjs +1 -1
- package/dist/FormView.js +1 -1
- package/dist/GeneralWithTagsCardsSection.cjs +14 -8
- package/dist/GeneralWithTagsCardsSection.js +31 -25
- package/dist/GiftCardsSection.cjs +15 -7
- package/dist/GiftCardsSection.js +44 -36
- package/dist/HelpBannerSection.cjs +3 -3
- package/dist/HelpBannerSection.js +4 -4
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.js +4 -4
- package/dist/IconButton.cjs +1 -1
- package/dist/IconButton.js +1 -1
- package/dist/{Kaltura-CK6JHUZC.cjs → Kaltura-C2fRoaEg.cjs} +1 -1
- package/dist/{Kaltura-BDqlEQpd.js → Kaltura-CRGK2EP7.js} +1 -1
- package/dist/Kanban.cjs +1 -1
- package/dist/Kanban.js +1 -1
- package/dist/KanbanActionsToolbar.cjs +1 -1
- package/dist/KanbanActionsToolbar.js +5 -5
- package/dist/KanbanView.cjs +1 -1
- package/dist/KanbanView.js +9 -9
- package/dist/Link.cjs +1 -1
- package/dist/Link.js +1 -1
- package/dist/LoanCalculatorSection.cjs +3 -3
- package/dist/LoanCalculatorSection.js +17 -17
- package/dist/LocationFinderSection.cjs +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/LocationSearchSection.cjs +13 -6
- package/dist/LocationSearchSection.js +34 -27
- package/dist/MasonryGeneralCardsSection.cjs +13 -9
- package/dist/MasonryGeneralCardsSection.js +34 -30
- package/dist/MenuItem.cjs +1 -1
- package/dist/MenuItem.js +14 -14
- package/dist/{Mixcloud-zAh6j7Ha.js → Mixcloud-Cn5M-EIT.js} +1 -1
- package/dist/{Mixcloud-C1Boh2Bm.cjs → Mixcloud-D09BQNOt.cjs} +1 -1
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.js +1 -1
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +1 -1
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +1 -1
- package/dist/{Mux-C6TwZeaq.cjs → Mux-C-xD7crc.cjs} +1 -1
- package/dist/{Mux-BGTG_Tvc.js → Mux-C6szci3w.js} +1 -1
- package/dist/NestedDropdownItem.cjs +1 -1
- package/dist/NestedDropdownItem.js +9 -9
- package/dist/NestedMenuItem.cjs +1 -1
- package/dist/NestedMenuItem.js +7 -7
- package/dist/NotificationContainer.cjs +1 -1
- package/dist/NotificationContainer.js +1 -1
- package/dist/NotificationMessage.cjs +1 -1
- package/dist/NotificationMessage.js +5 -5
- package/dist/NumberInput.cjs +1 -1
- package/dist/NumberInput.js +8 -8
- package/dist/OverlayGeneralCardsSection.cjs +19 -31
- package/dist/OverlayGeneralCardsSection.js +51 -63
- package/dist/PartnerBannerSection.cjs +2 -2
- package/dist/PartnerBannerSection.js +2 -2
- package/dist/PartnerBrandsSection.cjs +2 -2
- package/dist/PartnerBrandsSection.js +24 -17
- package/dist/PartnerCardsSection.cjs +3 -3
- package/dist/PartnerCardsSection.js +18 -18
- package/dist/PartnerStatsSection.cjs +2 -2
- package/dist/PartnerStatsSection.js +3 -3
- package/dist/PasswordInput.cjs +1 -1
- package/dist/PasswordInput.js +19 -19
- package/dist/PopoverContent.cjs +1 -1
- package/dist/PopoverContent.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +20 -10
- package/dist/ProductsWithBannerSection.js +79 -69
- package/dist/ProgressBar.cjs +1 -1
- package/dist/ProgressBar.js +5 -5
- package/dist/QuattroCardsSection.cjs +8 -6
- package/dist/QuattroCardsSection.js +19 -17
- package/dist/QuizSection.cjs +9 -9
- package/dist/QuizSection.js +56 -56
- package/dist/RadioInput.cjs +1 -1
- package/dist/RadioInput.js +1 -1
- package/dist/RangeSlider.cjs +1 -1
- package/dist/RangeSlider.js +1 -1
- package/dist/ReviewsSection.cjs +24 -16
- package/dist/ReviewsSection.js +56 -48
- package/dist/SalesCampaignsSection.cjs +25 -21
- package/dist/SalesCampaignsSection.js +248 -241
- package/dist/{SearchSection-DAaMecR4.js → SearchSection-BEYnWPSr.js} +69 -69
- package/dist/{SearchSection-B94YN_6P.cjs → SearchSection-DUY61r3k.cjs} +6 -6
- package/dist/SearchSection.cjs +1 -1
- package/dist/SearchSection.js +1 -1
- package/dist/Separator.cjs +1 -1
- package/dist/Separator.js +3 -3
- package/dist/SeparatorSection.cjs +3 -3
- package/dist/SeparatorSection.js +4 -4
- package/dist/ShopCardsSection.cjs +11 -5
- package/dist/ShopCardsSection.js +40 -34
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +9 -5
- package/dist/SimpleCategoriesSection.js +61 -57
- package/dist/SimpleProductsSection.cjs +44 -11
- package/dist/SimpleProductsSection.js +100 -67
- package/dist/{SoundCloud-C6R6E6Zc.cjs → SoundCloud-BsL6Onq6.cjs} +1 -1
- package/dist/{SoundCloud-lO8wg_0s.js → SoundCloud-Cfaj1Ze1.js} +1 -1
- package/dist/Spinner.cjs +1 -1
- package/dist/Spinner.js +1 -1
- package/dist/StatsSection.cjs +3 -3
- package/dist/StatsSection.js +11 -11
- package/dist/{Streamable-Dwa5ZEK4.js → Streamable-CG8_-_w7.js} +1 -1
- package/dist/{Streamable-DZO95CiT.cjs → Streamable-DFtyk9Dt.cjs} +1 -1
- package/dist/Surface.cjs +1 -1
- package/dist/Surface.js +1 -1
- package/dist/SwipeableDrawer.cjs +1 -1
- package/dist/SwipeableDrawer.js +1 -1
- package/dist/TabItem.cjs +1 -1
- package/dist/TabItem.js +1 -1
- package/dist/Table.cjs +54 -49
- package/dist/Table.js +417 -401
- package/dist/TableView.cjs +10 -2
- package/dist/TableView.js +84 -75
- package/dist/TextAreaInput.cjs +1 -1
- package/dist/TextAreaInput.js +1 -1
- package/dist/TextInput.cjs +1 -1
- package/dist/TextInput.js +1 -1
- package/dist/ThemeProvider.cjs +4 -4
- package/dist/ThemeProvider.js +11 -10
- package/dist/TimeInput.cjs +1 -1
- package/dist/TimeInput.js +1 -1
- package/dist/Toggle.cjs +1 -1
- package/dist/Toggle.js +1 -1
- package/dist/ToggleSection.cjs +7 -7
- package/dist/ToggleSection.js +38 -38
- package/dist/TreeMenuSeparator.cjs +1 -1
- package/dist/TreeMenuSeparator.js +3 -3
- package/dist/{Twitch-B17oKtD0.cjs → Twitch-BIUEEDiE.cjs} +1 -1
- package/dist/{Twitch-C73-dwWo.js → Twitch-CbU_0Tx9.js} +1 -1
- package/dist/UploadedFile.cjs +1 -1
- package/dist/UploadedFile.js +7 -7
- package/dist/UrgentSaleProductsSection.cjs +10 -4
- package/dist/UrgentSaleProductsSection.js +67 -61
- package/dist/{Vidyard-s1MMcaRm.cjs → Vidyard-QkjVIros.cjs} +1 -1
- package/dist/{Vidyard-B6GdBHsM.js → Vidyard-S6Fl_F78.js} +1 -1
- package/dist/{Vimeo-kzHz4Gco.js → Vimeo-5bkeYCV4.js} +1 -1
- package/dist/{Vimeo-J1l_SU2E.cjs → Vimeo-B5jsifNT.cjs} +1 -1
- package/dist/{Wistia-CudQyDHM.cjs → Wistia-dpbMmx23.cjs} +1 -1
- package/dist/{Wistia-w4jnqd7y.js → Wistia-gOZBV0XZ.js} +1 -1
- package/dist/{YouTube-BAYKouHS.cjs → YouTube-BfZRCB6O.cjs} +1 -1
- package/dist/{YouTube-BKyipPZx.js → YouTube-XoIB4ATQ.js} +1 -1
- package/dist/breakpoints-CcVm-gVm.cjs +1 -0
- package/dist/breakpoints-ff0SIcV3.js +91 -0
- package/dist/{index-u_XFwsvc.js → index-9KyU46J0.js} +11 -9
- package/dist/{index-CSgGox95.cjs → index-B9c6y2J5.cjs} +3 -3
- package/dist/{index-CS4w87SW.cjs → index-BEgD9vNo.cjs} +9 -9
- package/dist/{index-BC2PHcI1.js → index-BWeXujWl.js} +10 -10
- package/dist/index-B_ilx3wM.cjs +16 -0
- package/dist/{index-B22BZVBG.js → index-BvMY2TbK.js} +1 -1
- package/dist/{index-CwMCk9wV.js → index-BzSWu-7v.js} +67 -67
- package/dist/{index-TIqKd2Dv.js → index-C-uOIDDa.js} +2 -2
- package/dist/{index-bihqNqQk.js → index-C4HycAPS.js} +6 -6
- package/dist/{index-BWE-RCPy.cjs → index-CBZ-jNah.cjs} +4 -4
- package/dist/{index-D_5jNP-o.cjs → index-CUaeb_TU.cjs} +5 -5
- package/dist/{index-DK8dqEUQ.js → index-CoQ9APCD.js} +11 -11
- package/dist/{index-BAJkosVg.cjs → index-CsTfXxpp.cjs} +2 -2
- package/dist/{index-D0JDnm9b.cjs → index-Dc0EEBRW.cjs} +4 -4
- package/dist/{index-uwl7BjRF.cjs → index-DsINTjQk.cjs} +1 -1
- package/dist/{index-Cm414y95.js → index-L_Va5-wK.js} +13 -13
- package/dist/{index-CBMsUFkS.js → index-hC-E71GE.js} +11 -11
- package/dist/{index-BFc3nxYZ.cjs → index-of6WydGq.cjs} +4 -2
- package/dist/{index-BASX-BjS.js → index-rYUwBlpp.js} +63 -63
- package/dist/{index-D0IYt1s3.cjs → index-uCWKRzoS.cjs} +2 -2
- package/dist/{index-CRk3vcd4.cjs → index-vQOR22Py.cjs} +4 -4
- package/dist/{index-D-86mDtn.js → index-yARaIaLj.js} +29 -29
- package/dist/index.cjs +1 -1
- package/dist/index.js +213 -194
- package/dist/{style-BTTXJFJN.cjs → style-AYc9hnFj.cjs} +14 -2
- package/dist/{style-neMbLWE6.js → style-BUyFad_y.js} +4 -4
- package/dist/{style-tw6KjI2J.js → style-Bq3rMbnN.js} +16 -4
- package/dist/{style-B4kAj6YU.cjs → style-DC05rdyx.cjs} +5 -5
- package/dist/{tag-Dm8CW4TM.js → tag-Bi8gg6hJ.js} +12 -12
- package/dist/{tag-UQjq2_Ba.cjs → tag-DSnhWWHE.cjs} +5 -5
- package/dist/{utils-DtEfC-TX.js → theme-Befg4g_L.js} +19 -378
- package/dist/theme-Q3WOGKWQ.cjs +1 -0
- package/dist/{useDetectMobile-Bkvj0VMa.js → useDetectMobile-CcVo3PNi.js} +1 -1
- package/dist/useDetectMobile-DYV6V1yw.cjs +1 -0
- package/dist/utils-B2fsQ6PS.js +334 -0
- package/dist/utils-CITgSxXe.cjs +51 -0
- package/package.json +1 -1
- package/dist/consts-BuFChS64.js +0 -7
- package/dist/consts-goSZX3xP.cjs +0 -1
- package/dist/index-D-3I_Ppj.cjs +0 -16
- package/dist/useDetectMobile-zkbzoOGV.cjs +0 -1
- package/dist/utils-RnrgDDZP.cjs +0 -51
package/BREAKPOINTS.md
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
# Breakpoint System
|
|
2
|
+
|
|
3
|
+
Unified responsive design system for consistent layouts across all screen sizes.
|
|
4
|
+
|
|
5
|
+
## Breakpoint Ranges
|
|
6
|
+
|
|
7
|
+
| Key | Width | Typical Devices |
|
|
8
|
+
|-----|-------|-----------------|
|
|
9
|
+
| **XS** | 0–480px | Phones portrait |
|
|
10
|
+
| **S** | 481–767px | Phones landscape / large phones |
|
|
11
|
+
| **M** | 768–1024px | Tablets |
|
|
12
|
+
| **L** | 1025–1280px | Laptops / small desktops |
|
|
13
|
+
| **XL** | 1281px+ | Large desktops |
|
|
14
|
+
|
|
15
|
+
## Media Query Helpers
|
|
16
|
+
|
|
17
|
+
### `up(key)` — "this breakpoint and larger"
|
|
18
|
+
|
|
19
|
+
```js
|
|
20
|
+
import { up } from "@lanaco/lnc-react-ui";
|
|
21
|
+
|
|
22
|
+
// Show on tablet and up
|
|
23
|
+
@media ${up("M")} {
|
|
24
|
+
/* min-width: 768px */
|
|
25
|
+
}
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### `down(key)` — "this breakpoint and smaller"
|
|
29
|
+
|
|
30
|
+
```js
|
|
31
|
+
import { down } from "@lanaco/lnc-react-ui";
|
|
32
|
+
|
|
33
|
+
// Mobile only
|
|
34
|
+
@media ${down("S")} {
|
|
35
|
+
/* max-width: 767px */
|
|
36
|
+
}
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### `only(key)` — "exactly this breakpoint"
|
|
40
|
+
|
|
41
|
+
```js
|
|
42
|
+
import { only } from "@lanaco/lnc-react-ui";
|
|
43
|
+
|
|
44
|
+
// Tablet only
|
|
45
|
+
@media ${only("M")} {
|
|
46
|
+
/* min-width: 768px and max-width: 1024px */
|
|
47
|
+
}
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### `between(start, end)` — "range between two breakpoints"
|
|
51
|
+
|
|
52
|
+
```js
|
|
53
|
+
import { between } from "@lanaco/lnc-react-ui";
|
|
54
|
+
|
|
55
|
+
// Tablet and laptop
|
|
56
|
+
@media ${between("M", "L")} {
|
|
57
|
+
/* min-width: 768px and max-width: 1280px */
|
|
58
|
+
}
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Raw Values
|
|
62
|
+
|
|
63
|
+
```js
|
|
64
|
+
import { screenSizes, MOBILE_SIZE_PX, SMALL_MOBILE_SIZE_PX } from "@lanaco/lnc-react-ui";
|
|
65
|
+
|
|
66
|
+
// In styled-components
|
|
67
|
+
@media (max-width: ${screenSizes.S.max}px) { }
|
|
68
|
+
@media (max-width: ${MOBILE_SIZE_PX}px) { } // 767 — mobile = XS + S
|
|
69
|
+
@media (max-width: ${SMALL_MOBILE_SIZE_PX}px) { } // 480 — small phones
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Via Theme
|
|
73
|
+
|
|
74
|
+
When using `ThemeProvider`, breakpoints are available on the theme:
|
|
75
|
+
|
|
76
|
+
```js
|
|
77
|
+
import { useTheme } from "@lanaco/lnc-react-ui";
|
|
78
|
+
|
|
79
|
+
const MyComponent = () => {
|
|
80
|
+
const { theme } = useTheme();
|
|
81
|
+
|
|
82
|
+
return (
|
|
83
|
+
<div
|
|
84
|
+
css={{
|
|
85
|
+
padding: 16,
|
|
86
|
+
[theme.breakpoints.down("S")]: { padding: 8 },
|
|
87
|
+
}}
|
|
88
|
+
/>
|
|
89
|
+
);
|
|
90
|
+
};
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Hooks
|
|
94
|
+
|
|
95
|
+
### `useScreenSize()` — Current breakpoint
|
|
96
|
+
|
|
97
|
+
Returns `"XS"`, `"S"`, `"M"`, `"L"`, or `"XL"` based on viewport width.
|
|
98
|
+
|
|
99
|
+
```js
|
|
100
|
+
import { useScreenSize } from "@lanaco/lnc-react-ui";
|
|
101
|
+
|
|
102
|
+
const size = useScreenSize(); // "M"
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### `useIsMobile()` — Semantic mobile check
|
|
106
|
+
|
|
107
|
+
Returns `true` for XS and S (phones).
|
|
108
|
+
|
|
109
|
+
```js
|
|
110
|
+
import { useIsMobile } from "@lanaco/lnc-react-ui";
|
|
111
|
+
|
|
112
|
+
const isMobile = useIsMobile(); // true on phones
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### `useDetectMobile()` — Width-based mobile check
|
|
116
|
+
|
|
117
|
+
Returns `true` when viewport width ≤ 767px. Same cutoff as `useIsMobile` but uses `window.innerWidth`.
|
|
118
|
+
|
|
119
|
+
```js
|
|
120
|
+
import { useDetectMobile } from "@lanaco/lnc-react-ui";
|
|
121
|
+
|
|
122
|
+
const isMobile = useDetectMobile();
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
**When to use which:**
|
|
126
|
+
- **useScreenSize** — When you need the exact breakpoint (e.g. Table VisibilityPattern, FlexGridItem columns)
|
|
127
|
+
- **useIsMobile** — When you need "mobile vs desktop" logic; uses media queries (matches `useMedia`)
|
|
128
|
+
- **useDetectMobile** — When you need the same boolean but prefer window resize; useful for components that already use it
|
|
129
|
+
|
|
130
|
+
## Semantic Helpers
|
|
131
|
+
|
|
132
|
+
```js
|
|
133
|
+
import { isMobile, isTablet, isDesktop } from "@lanaco/lnc-react-ui";
|
|
134
|
+
|
|
135
|
+
const size = useScreenSize();
|
|
136
|
+
if (isMobile(size)) { /* XS or S */ }
|
|
137
|
+
if (isTablet(size)) { /* M */ }
|
|
138
|
+
if (isDesktop(size)) { /* L or XL */ }
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
## Constants
|
|
142
|
+
|
|
143
|
+
| Export | Value | Description |
|
|
144
|
+
|--------|-------|-------------|
|
|
145
|
+
| `MOBILE_SIZE_PX` | 767 | Max width for mobile (S.max) |
|
|
146
|
+
| `SMALL_MOBILE_SIZE_PX` | 480 | Max width for small phones (XS.max) |
|
|
147
|
+
| `BREAKPOINT_ORDER` | `["XS","S","M","L","XL"]` | Ordered breakpoint keys |
|
|
148
|
+
| `DEVICE_CATEGORIES` | `{ mobile, tablet, desktop }` | Semantic groupings |
|
package/dist/Accordion.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const b=require("react/jsx-runtime"),s=require("react"),R=require("./emotion-styled.browser.esm-BtEseadx.cjs"),c=require("./utils-
|
|
1
|
+
"use strict";const b=require("react/jsx-runtime"),s=require("react"),R=require("./emotion-styled.browser.esm-BtEseadx.cjs"),c=require("./utils-CITgSxXe.cjs"),S=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),x=require("./useUpdateEffect-BtMgpgIV.cjs"),D=R.styled.div`
|
|
2
2
|
color: ${t=>!t.disabled&&c.getColorRgbaValue(t.theme,"Accordion","primary","enabled","text")};
|
|
3
3
|
background-color: transparent;
|
|
4
4
|
${t=>c.getComponentTypographyCss(t.theme,"Accordion",t.size,"enabled")};
|
package/dist/Accordion.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as D } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as N, useState as O, Children as
|
|
2
|
+
import { forwardRef as N, useState as O, Children as i, isValidElement as c, cloneElement as l } from "react";
|
|
3
3
|
import { s as R } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import {
|
|
4
|
+
import { c as S, d as g, i as x } from "./utils-B2fsQ6PS.js";
|
|
5
5
|
import { u as I } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
6
6
|
import { u as T } from "./useUpdateEffect-CuYWz7EA.js";
|
|
7
7
|
const M = R.div`
|
|
@@ -31,9 +31,9 @@ const M = R.div`
|
|
|
31
31
|
}, [a]);
|
|
32
32
|
const p = (e) => {
|
|
33
33
|
u(!o, e), d(!o);
|
|
34
|
-
}, E =
|
|
34
|
+
}, E = i.map(m, (e) => {
|
|
35
35
|
var s;
|
|
36
|
-
if (
|
|
36
|
+
if (c(e) && (e.props.__TYPE__ == "ACCORDION_SUMMARY" || ((s = e == null ? void 0 : e.type) == null ? void 0 : s.displayName) === "ACCORDION_SUMMARY"))
|
|
37
37
|
return l(e, {
|
|
38
38
|
size: r,
|
|
39
39
|
onClick: p,
|
|
@@ -41,9 +41,9 @@ const M = R.div`
|
|
|
41
41
|
isExpanded: o,
|
|
42
42
|
disabled: n
|
|
43
43
|
});
|
|
44
|
-
}), b =
|
|
44
|
+
}), b = i.map(m, (e) => {
|
|
45
45
|
var s;
|
|
46
|
-
if (
|
|
46
|
+
if (c(e) && (e.props.__TYPE__ == "ACCORDION_DETAILS" || ((s = e == null ? void 0 : e.type) == null ? void 0 : s.displayName) === "ACCORDION_DETAILS"))
|
|
47
47
|
return l(e, {
|
|
48
48
|
size: r,
|
|
49
49
|
isExpanded: o
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime"),f=require("react"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),b=require("./Icon.cjs"),g=require("./utils-
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),f=require("react"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),b=require("./Icon.cjs"),g=require("./utils-CITgSxXe.cjs"),q=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),C={small:"0.6rem 1rem",medium:"0.8rem 1.25rem",large:"1rem 1.5rem"},R=h.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
cursor: pointer;
|
package/dist/AccordionSummary.js
CHANGED
|
@@ -2,13 +2,13 @@ import { jsxs as f, jsx as u } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as y } from "react";
|
|
3
3
|
import { s as h } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import x from "./Icon.js";
|
|
5
|
-
import {
|
|
5
|
+
import { c as C } from "./utils-B2fsQ6PS.js";
|
|
6
6
|
import { u as g } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
|
-
const
|
|
7
|
+
const A = {
|
|
8
8
|
small: "0.6rem 1rem",
|
|
9
9
|
medium: "0.8rem 1.25rem",
|
|
10
10
|
large: "1rem 1.5rem"
|
|
11
|
-
},
|
|
11
|
+
}, N = h.div`
|
|
12
12
|
display: flex;
|
|
13
13
|
justify-content: space-between;
|
|
14
14
|
cursor: pointer;
|
|
@@ -20,12 +20,12 @@ const b = {
|
|
|
20
20
|
"summaryText"
|
|
21
21
|
)};
|
|
22
22
|
|
|
23
|
-
padding: ${(e) =>
|
|
23
|
+
padding: ${(e) => A[e.size]};
|
|
24
24
|
& .accordion-icon-lnc {
|
|
25
25
|
transform: ${(e) => e.isExpanded ? "rotate(180deg)" : "rotate(0)"};
|
|
26
26
|
transition: transform 0.25s ease;
|
|
27
27
|
}
|
|
28
|
-
`,
|
|
28
|
+
`, b = y((e, r) => {
|
|
29
29
|
const {
|
|
30
30
|
disabled: s,
|
|
31
31
|
isExpanded: n,
|
|
@@ -39,7 +39,7 @@ const b = {
|
|
|
39
39
|
...d
|
|
40
40
|
} = e, p = { theme: g(), size: t, style: c, className: i };
|
|
41
41
|
return /* @__PURE__ */ f(
|
|
42
|
-
|
|
42
|
+
N,
|
|
43
43
|
{
|
|
44
44
|
ref: r,
|
|
45
45
|
...p,
|
|
@@ -62,7 +62,7 @@ const b = {
|
|
|
62
62
|
}
|
|
63
63
|
);
|
|
64
64
|
});
|
|
65
|
-
|
|
65
|
+
b.displayName = "ACCORDION_SUMMARY";
|
|
66
66
|
export {
|
|
67
|
-
|
|
67
|
+
b as default
|
|
68
68
|
};
|
package/dist/ActionsToolbar.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),B=require("react"),L=require("./emotion-styled.browser.esm-BtEseadx.cjs"),V=require("./DropdownMenu.cjs"),s=require("./DropdownItem.cjs"),M=require("./Separator.cjs"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),B=require("react"),L=require("./emotion-styled.browser.esm-BtEseadx.cjs"),V=require("./DropdownMenu.cjs"),s=require("./DropdownItem.cjs"),M=require("./Separator.cjs"),c=require("./Button.cjs"),p=require("./utils-CITgSxXe.cjs"),Z=require("./ThemeProvider.cjs"),F=require("./breakpoints-CcVm-gVm.cjs"),G=L.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
border-radius: 8px;
|
|
@@ -7,12 +7,23 @@
|
|
|
7
7
|
font-weight: 700;
|
|
8
8
|
font-size: 0.875rem;
|
|
9
9
|
color: rgba(15, 23, 42, 100%);
|
|
10
|
-
background-color: ${t=>
|
|
11
|
-
border: ${t=>`1px solid ${
|
|
10
|
+
background-color: ${t=>p.getColorRgbaValue(t.theme,"Toolbar",t.color,"enabled","background","backgroundOpacity")};
|
|
11
|
+
border: ${t=>`1px solid ${p.getColorRgbaValue(t.theme,"Toolbar",t.color,"enabled","border","borderOpacity")}`};
|
|
12
12
|
gap: 6px;
|
|
13
13
|
justify-content: space-between;
|
|
14
|
+
flex-wrap: wrap;
|
|
14
15
|
& > div {
|
|
15
16
|
display: flex;
|
|
16
17
|
gap: 0.5rem;
|
|
18
|
+
flex-wrap: wrap;
|
|
17
19
|
}
|
|
18
|
-
|
|
20
|
+
|
|
21
|
+
@media ${F.down("S")} {
|
|
22
|
+
gap: 4px;
|
|
23
|
+
padding: 4px;
|
|
24
|
+
margin-bottom: 8px;
|
|
25
|
+
& > div {
|
|
26
|
+
gap: 0.25rem;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
`,b=B.forwardRef((t,u)=>{const{showCreate:x=!0,enableCreate:m=!0,createText:d="Create new item",showEdit:w=!0,enableEditOnSelection:g=!0,editText:y="Edit",showDelete:h=!0,enableDeleteOnSelection:f=!0,deleteText:C="Delete",showCopy:T=!0,enableCopyOnSelection:j=!0,copyText:O="Copy",actionsText:q="Actions",customActions:a,selectedRowsLength:n=0,readOnly:r=!1,actionDropdownProps:S,actionsDropdownZIndex:k,actionsDropdownPlacement:D,onCreate:v=()=>{},onEdit:R=()=>{},onDelete:I=()=>{},onCopy:N=()=>{},className:$="",style:A={},color:l="primary",size:i="small",selectedRows:E,...z}=t,{theme:P}=Z.useTheme();return e.jsxs(G,{ref:u,theme:P,color:l,className:`lnc-table-view-actions-toolbar ${$}`,style:A,...z,children:[e.jsx("div",{children:x&&r==!1&&e.jsx(c,{leadingIcon:"plus",btnType:"outline",type:"button",color:l,size:i,title:d,disabled:!m,onClick:v,text:d})}),e.jsx("div",{children:e.jsxs(V,{className:"lnc-table-view-actions-toolbar-dropdown",color:l,size:i,zIndex:k,placement:D,...S,control:e.jsx(c,{text:q,btnType:"outline",trailingIcon:"angle-down",color:l,size:i,type:"button"}),children:[T&&r==!1&&e.jsx(s,{icon:"copy",disabled:!(j&&n>0),onClick:N,children:O}),w&&r==!1&&e.jsx(s,{icon:"pen",disabled:!(g&&n>0),onClick:R,children:y}),h&&r==!1&&e.jsx(s,{icon:"trash",disabled:!(f&&n>0),onClick:I,children:C}),e.jsx(M,{}),a==null?void 0:a.map((o,_)=>{if((o==null?void 0:o.show)!=!1)return e.jsx(s,{icon:o.icon,disabled:!(o.enableOnSelection==!0&&n>0||o.enable==!0&&o.enableOnSelection==!1),onClick:()=>{o.onAction(E)},children:o.name},_)})]})})]})});b.displayName="ACTIONS_TOOLBAR";module.exports=b;
|
package/dist/ActionsToolbar.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as p, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as M } from "react";
|
|
3
3
|
import { s as V } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import Z from "./DropdownMenu.js";
|
|
5
5
|
import a from "./DropdownItem.js";
|
|
6
6
|
import _ from "./Separator.js";
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
7
|
+
import c from "./Button.js";
|
|
8
|
+
import { c as m } from "./utils-B2fsQ6PS.js";
|
|
9
9
|
import { useTheme as q } from "./ThemeProvider.js";
|
|
10
|
-
|
|
10
|
+
import { d as F } from "./breakpoints-ff0SIcV3.js";
|
|
11
|
+
const G = V.div`
|
|
11
12
|
display: flex;
|
|
12
13
|
align-items: center;
|
|
13
14
|
border-radius: 8px;
|
|
@@ -16,7 +17,7 @@ const F = V.div`
|
|
|
16
17
|
font-weight: 700;
|
|
17
18
|
font-size: 0.875rem;
|
|
18
19
|
color: rgba(15, 23, 42, 100%);
|
|
19
|
-
background-color: ${(t) =>
|
|
20
|
+
background-color: ${(t) => m(
|
|
20
21
|
t.theme,
|
|
21
22
|
"Toolbar",
|
|
22
23
|
t.color,
|
|
@@ -24,7 +25,7 @@ const F = V.div`
|
|
|
24
25
|
"background",
|
|
25
26
|
"backgroundOpacity"
|
|
26
27
|
)};
|
|
27
|
-
border: ${(t) => `1px solid ${
|
|
28
|
+
border: ${(t) => `1px solid ${m(
|
|
28
29
|
t.theme,
|
|
29
30
|
"Toolbar",
|
|
30
31
|
t.color,
|
|
@@ -34,29 +35,40 @@ const F = V.div`
|
|
|
34
35
|
)}`};
|
|
35
36
|
gap: 6px;
|
|
36
37
|
justify-content: space-between;
|
|
38
|
+
flex-wrap: wrap;
|
|
37
39
|
& > div {
|
|
38
40
|
display: flex;
|
|
39
41
|
gap: 0.5rem;
|
|
42
|
+
flex-wrap: wrap;
|
|
40
43
|
}
|
|
41
|
-
|
|
44
|
+
|
|
45
|
+
@media ${F("S")} {
|
|
46
|
+
gap: 4px;
|
|
47
|
+
padding: 4px;
|
|
48
|
+
margin-bottom: 8px;
|
|
49
|
+
& > div {
|
|
50
|
+
gap: 0.25rem;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
`, H = M((t, b) => {
|
|
42
54
|
const {
|
|
43
|
-
showCreate:
|
|
44
|
-
enableCreate:
|
|
55
|
+
showCreate: f = !0,
|
|
56
|
+
enableCreate: u = !0,
|
|
45
57
|
createText: s = "Create new item",
|
|
46
|
-
showEdit:
|
|
47
|
-
enableEditOnSelection:
|
|
48
|
-
editText:
|
|
49
|
-
showDelete:
|
|
50
|
-
enableDeleteOnSelection:
|
|
58
|
+
showEdit: w = !0,
|
|
59
|
+
enableEditOnSelection: x = !0,
|
|
60
|
+
editText: y = "Edit",
|
|
61
|
+
showDelete: g = !0,
|
|
62
|
+
enableDeleteOnSelection: h = !0,
|
|
51
63
|
deleteText: C = "Delete",
|
|
52
64
|
showCopy: T = !0,
|
|
53
65
|
enableCopyOnSelection: O = !0,
|
|
54
66
|
copyText: D = "Copy",
|
|
55
|
-
actionsText:
|
|
67
|
+
actionsText: S = "Actions",
|
|
56
68
|
customActions: i,
|
|
57
69
|
selectedRowsLength: r = 0,
|
|
58
|
-
readOnly:
|
|
59
|
-
actionDropdownProps:
|
|
70
|
+
readOnly: n = !1,
|
|
71
|
+
actionDropdownProps: k,
|
|
60
72
|
actionsDropdownZIndex: v,
|
|
61
73
|
actionsDropdownPlacement: I,
|
|
62
74
|
//----------------
|
|
@@ -64,86 +76,86 @@ const F = V.div`
|
|
|
64
76
|
},
|
|
65
77
|
onEdit: R = () => {
|
|
66
78
|
},
|
|
67
|
-
onDelete:
|
|
79
|
+
onDelete: $ = () => {
|
|
68
80
|
},
|
|
69
|
-
onCopy:
|
|
81
|
+
onCopy: A = () => {
|
|
70
82
|
},
|
|
71
|
-
className:
|
|
83
|
+
className: E = "",
|
|
72
84
|
style: j = {},
|
|
73
|
-
color:
|
|
85
|
+
color: l = "primary",
|
|
74
86
|
size: d = "small",
|
|
75
87
|
selectedRows: z,
|
|
76
88
|
...B
|
|
77
89
|
} = t, { theme: L } = q();
|
|
78
|
-
return /* @__PURE__ */
|
|
79
|
-
|
|
90
|
+
return /* @__PURE__ */ p(
|
|
91
|
+
G,
|
|
80
92
|
{
|
|
81
|
-
ref:
|
|
93
|
+
ref: b,
|
|
82
94
|
theme: L,
|
|
83
|
-
color:
|
|
84
|
-
className: `lnc-table-view-actions-toolbar ${
|
|
95
|
+
color: l,
|
|
96
|
+
className: `lnc-table-view-actions-toolbar ${E}`,
|
|
85
97
|
style: j,
|
|
86
98
|
...B,
|
|
87
99
|
children: [
|
|
88
|
-
/* @__PURE__ */ o("div", { children:
|
|
89
|
-
|
|
100
|
+
/* @__PURE__ */ o("div", { children: f && n == !1 && /* @__PURE__ */ o(
|
|
101
|
+
c,
|
|
90
102
|
{
|
|
91
103
|
leadingIcon: "plus",
|
|
92
104
|
btnType: "outline",
|
|
93
105
|
type: "button",
|
|
94
|
-
color:
|
|
106
|
+
color: l,
|
|
95
107
|
size: d,
|
|
96
108
|
title: s,
|
|
97
|
-
disabled: !
|
|
109
|
+
disabled: !u,
|
|
98
110
|
onClick: N,
|
|
99
111
|
text: s
|
|
100
112
|
}
|
|
101
113
|
) }),
|
|
102
|
-
/* @__PURE__ */ o("div", { children: /* @__PURE__ */
|
|
114
|
+
/* @__PURE__ */ o("div", { children: /* @__PURE__ */ p(
|
|
103
115
|
Z,
|
|
104
116
|
{
|
|
105
117
|
className: "lnc-table-view-actions-toolbar-dropdown",
|
|
106
|
-
color:
|
|
118
|
+
color: l,
|
|
107
119
|
size: d,
|
|
108
120
|
zIndex: v,
|
|
109
121
|
placement: I,
|
|
110
|
-
...
|
|
122
|
+
...k,
|
|
111
123
|
control: /* @__PURE__ */ o(
|
|
112
|
-
|
|
124
|
+
c,
|
|
113
125
|
{
|
|
114
|
-
text:
|
|
126
|
+
text: S,
|
|
115
127
|
btnType: "outline",
|
|
116
128
|
trailingIcon: "angle-down",
|
|
117
|
-
color:
|
|
129
|
+
color: l,
|
|
118
130
|
size: d,
|
|
119
131
|
type: "button"
|
|
120
132
|
}
|
|
121
133
|
),
|
|
122
134
|
children: [
|
|
123
|
-
T &&
|
|
135
|
+
T && n == !1 && /* @__PURE__ */ o(
|
|
124
136
|
a,
|
|
125
137
|
{
|
|
126
138
|
icon: "copy",
|
|
127
139
|
disabled: !(O && r > 0),
|
|
128
|
-
onClick:
|
|
140
|
+
onClick: A,
|
|
129
141
|
children: D
|
|
130
142
|
}
|
|
131
143
|
),
|
|
132
|
-
|
|
144
|
+
w && n == !1 && /* @__PURE__ */ o(
|
|
133
145
|
a,
|
|
134
146
|
{
|
|
135
147
|
icon: "pen",
|
|
136
|
-
disabled: !(
|
|
148
|
+
disabled: !(x && r > 0),
|
|
137
149
|
onClick: R,
|
|
138
|
-
children:
|
|
150
|
+
children: y
|
|
139
151
|
}
|
|
140
152
|
),
|
|
141
|
-
|
|
153
|
+
g && n == !1 && /* @__PURE__ */ o(
|
|
142
154
|
a,
|
|
143
155
|
{
|
|
144
156
|
icon: "trash",
|
|
145
|
-
disabled: !(
|
|
146
|
-
onClick:
|
|
157
|
+
disabled: !(h && r > 0),
|
|
158
|
+
onClick: $,
|
|
147
159
|
children: C
|
|
148
160
|
}
|
|
149
161
|
),
|
|
@@ -170,7 +182,7 @@ const F = V.div`
|
|
|
170
182
|
}
|
|
171
183
|
);
|
|
172
184
|
});
|
|
173
|
-
|
|
185
|
+
H.displayName = "ACTIONS_TOOLBAR";
|
|
174
186
|
export {
|
|
175
|
-
|
|
187
|
+
H as default
|
|
176
188
|
};
|
package/dist/AdBannerSection.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),a=require("react"),c=require("./useDetectMobile-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),a=require("react"),c=require("./useDetectMobile-DYV6V1yw.cjs"),o=require("./emotion-styled.browser.esm-BtEseadx.cjs"),m=require("./breakpoints-CcVm-gVm.cjs"),d=o.styled.div`
|
|
2
2
|
width: 100%;
|
|
3
3
|
height: 100%;
|
|
4
4
|
max-width: 60.625rem;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
cursor: pointer;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
@media
|
|
18
|
+
@media ${m.down("S")} {
|
|
19
19
|
width: 100%;
|
|
20
20
|
height: 100%;
|
|
21
21
|
max-width: 100%;
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
aspect-ratio: 1 / 1;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
`,
|
|
33
|
+
`,p=a.forwardRef(({image:i,imageForMobile:r,isMobile:s,onSelectCard:e},h)=>t.jsx(d,{ref:h,children:t.jsx("img",{src:s?r:i,className:"wrapper__image",onClick:e})})),w=o.styled.div`
|
|
34
34
|
display: flex;
|
|
35
35
|
justify-content: center;
|
|
36
36
|
width: 100%;
|
|
37
|
-
`,
|
|
37
|
+
`,x=a.forwardRef(({image:i,imageForMobile:r,link:s,onSelectCard:e=()=>{}},h)=>{const n=c.useDetectMobile();return t.jsx(w,{ref:h,children:t.jsx(p,{image:i,imageForMobile:r,isMobile:n,onSelectCard:()=>e==null?void 0:e(s)})})});module.exports=x;
|
package/dist/AdBannerSection.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as m } from "react";
|
|
3
|
-
import { u as p } from "./useDetectMobile-
|
|
3
|
+
import { u as p } from "./useDetectMobile-CcVo3PNi.js";
|
|
4
4
|
import { s as o } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
-
import {
|
|
5
|
+
import { d } from "./breakpoints-ff0SIcV3.js";
|
|
6
6
|
const n = o.div`
|
|
7
7
|
width: 100%;
|
|
8
8
|
height: 100%;
|
|
@@ -20,7 +20,7 @@ const n = o.div`
|
|
|
20
20
|
cursor: pointer;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
@media
|
|
23
|
+
@media ${d("S")} {
|
|
24
24
|
width: 100%;
|
|
25
25
|
height: 100%;
|
|
26
26
|
max-width: 100%;
|
|
@@ -48,7 +48,7 @@ const n = o.div`
|
|
|
48
48
|
display: flex;
|
|
49
49
|
justify-content: center;
|
|
50
50
|
width: 100%;
|
|
51
|
-
`,
|
|
51
|
+
`, _ = m(
|
|
52
52
|
({ image: e, imageForMobile: r, link: a, onSelectCard: i = () => {
|
|
53
53
|
} }, h) => {
|
|
54
54
|
const s = p();
|
|
@@ -64,5 +64,5 @@ const n = o.div`
|
|
|
64
64
|
}
|
|
65
65
|
);
|
|
66
66
|
export {
|
|
67
|
-
|
|
67
|
+
_ as default
|
|
68
68
|
};
|
package/dist/Alert.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),c=require("react"),x=require("./emotion-styled.browser.esm-BtEseadx.cjs"),p=require("./ThemeProvider.cjs"),r=require("./utils-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),c=require("react"),x=require("./emotion-styled.browser.esm-BtEseadx.cjs"),p=require("./ThemeProvider.cjs"),r=require("./utils-CITgSxXe.cjs"),a=require("./Icon.cjs"),y=x.styled.div`
|
|
2
2
|
min-height: 3rem;
|
|
3
3
|
${e=>r.getComponentTypographyCss(e.theme,"Alert",e.size,"enabled")};
|
|
4
4
|
line-height: 1.25rem;
|
package/dist/Alert.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as u, cloneElement as x } from "react";
|
|
3
3
|
import { s as y } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { useTheme as w } from "./ThemeProvider.js";
|
|
5
|
-
import {
|
|
5
|
+
import { d as A, b as N, c as t, g as c } from "./utils-B2fsQ6PS.js";
|
|
6
6
|
import m from "./Icon.js";
|
|
7
7
|
const $ = y.div`
|
|
8
8
|
min-height: 3rem;
|
package/dist/Avatar.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime"),b=require("react"),I=require("./emotion-styled.browser.esm-BtEseadx.cjs"),t=require("./utils-
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),b=require("react"),I=require("./emotion-styled.browser.esm-BtEseadx.cjs"),t=require("./utils-CITgSxXe.cjs"),$=require("./Icon.cjs"),w=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),x=I.styled.div`
|
|
2
2
|
border-radius: ${e=>t.getBorderRadiusValueWithUnits(e.theme,e.borderRadius)};
|
|
3
3
|
color: white;
|
|
4
4
|
display: inline-flex;
|
package/dist/Avatar.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as U } from "react";
|
|
3
3
|
import { s as I } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import {
|
|
4
|
+
import { b, e as i, i as $, c as v } from "./utils-B2fsQ6PS.js";
|
|
5
5
|
import y from "./Icon.js";
|
|
6
6
|
import { u as w } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
7
|
const R = I.div`
|
|
@@ -10,25 +10,25 @@ const R = I.div`
|
|
|
10
10
|
display: inline-flex;
|
|
11
11
|
justify-content: center;
|
|
12
12
|
align-items: center;
|
|
13
|
-
height: ${(e) => e.sizeInUnits ? e.sizeInUnits :
|
|
14
|
-
width: ${(e) => e.sizeInUnits ? e.sizeInUnits :
|
|
13
|
+
height: ${(e) => e.sizeInUnits ? e.sizeInUnits : i(e.theme, e.size)};
|
|
14
|
+
width: ${(e) => e.sizeInUnits ? e.sizeInUnits : i(e.theme, e.size)};
|
|
15
15
|
${(e) => e.disabled === !0 && $(e.theme)};
|
|
16
16
|
background-color: ${(e) => !e.disabled && v(e.theme, "Chip", e.color, "enabled", "text")};
|
|
17
17
|
overflow: hidden;
|
|
18
18
|
& img {
|
|
19
|
-
height: ${(e) => e.sizeInUnits ? e.sizeInUnits :
|
|
20
|
-
width: ${(e) => e.sizeInUnits ? e.sizeInUnits :
|
|
19
|
+
height: ${(e) => e.sizeInUnits ? e.sizeInUnits : i(e.theme, e.size)};
|
|
20
|
+
width: ${(e) => e.sizeInUnits ? e.sizeInUnits : i(e.theme, e.size)};
|
|
21
21
|
}
|
|
22
22
|
`, B = U((e, r) => {
|
|
23
23
|
const {
|
|
24
24
|
image: n,
|
|
25
25
|
icon: l = "user",
|
|
26
|
-
sizeInUnits:
|
|
26
|
+
sizeInUnits: t,
|
|
27
27
|
borderRadius: m = "curved",
|
|
28
28
|
//----------------
|
|
29
|
-
onFocus:
|
|
29
|
+
onFocus: o = () => {
|
|
30
30
|
},
|
|
31
|
-
onBlur:
|
|
31
|
+
onBlur: d = () => {
|
|
32
32
|
},
|
|
33
33
|
onClick: c = () => {
|
|
34
34
|
},
|
|
@@ -43,7 +43,7 @@ const R = I.div`
|
|
|
43
43
|
color: h,
|
|
44
44
|
style: z,
|
|
45
45
|
size: a,
|
|
46
|
-
sizeInUnits:
|
|
46
|
+
sizeInUnits: t,
|
|
47
47
|
className: "lnc-ui-avatar " + u
|
|
48
48
|
};
|
|
49
49
|
return /* @__PURE__ */ s(
|
|
@@ -53,15 +53,15 @@ const R = I.div`
|
|
|
53
53
|
...g,
|
|
54
54
|
borderRadius: m,
|
|
55
55
|
onClick: c,
|
|
56
|
-
onFocus:
|
|
57
|
-
onBlur:
|
|
56
|
+
onFocus: o,
|
|
57
|
+
onBlur: d,
|
|
58
58
|
...f,
|
|
59
59
|
children: n ? /* @__PURE__ */ s("img", { src: n }) : /* @__PURE__ */ s(
|
|
60
60
|
y,
|
|
61
61
|
{
|
|
62
62
|
icon: l,
|
|
63
63
|
size: a,
|
|
64
|
-
sizeInUnits:
|
|
64
|
+
sizeInUnits: t ? `calc(${t} / 2)` : null
|
|
65
65
|
}
|
|
66
66
|
)
|
|
67
67
|
}
|
package/dist/Badge.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const h=require("react/jsx-runtime"),b=require("react"),y=require("./emotion-styled.browser.esm-BtEseadx.cjs"),r=require("./utils-
|
|
1
|
+
"use strict";const h=require("react/jsx-runtime"),b=require("react"),y=require("./emotion-styled.browser.esm-BtEseadx.cjs"),r=require("./utils-CITgSxXe.cjs"),z=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),t=e=>e=="large"?"2rem":e=="medium"?"1.75rem":"1.5rem",R=y.styled.div`
|
|
2
2
|
${e=>r.getComponentTypographyCss(e.theme,"Badge",e.size,"enabled")};
|
|
3
3
|
background-color: ${e=>r.getColorRgbaValue(e.theme,"Badge",e.color,"enabled","background","backgroundOpacity")};
|
|
4
4
|
color: ${e=>r.getColorRgbaValue(e.theme,"Badge",e.color,"enabled","text")};
|