@lanaco/lnc-react-ui 4.0.199 → 4.0.200
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 +45 -56
- package/dist/AccordionDetails.cjs +3 -3
- package/dist/AccordionDetails.js +11 -25
- package/dist/AccordionSummary.cjs +4 -4
- package/dist/AccordionSummary.js +34 -44
- package/dist/ActionsToolbar.cjs +2 -3
- package/dist/ActionsToolbar.js +83 -135
- package/dist/Alert.cjs +10 -10
- package/dist/Alert.js +32 -64
- package/dist/Avatar.cjs +9 -9
- package/dist/Avatar.js +33 -72
- package/dist/Badge.cjs +6 -6
- package/dist/Badge.js +22 -47
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +12 -14
- package/dist/BlogExploreSection.cjs +1 -1
- package/dist/BlogExploreSection.js +1 -1
- package/dist/BlogsSectionWithFilters.cjs +1 -1
- package/dist/BlogsSectionWithFilters.js +1 -1
- package/dist/Breadcrumbs.cjs +5 -5
- package/dist/Breadcrumbs.js +57 -87
- package/dist/Button.cjs +11 -11
- package/dist/Button.js +126 -173
- package/dist/ButtonGroup.cjs +8 -8
- package/dist/ButtonGroup.js +37 -49
- package/dist/CalorieCalculatorSection.cjs +8 -8
- package/dist/CalorieCalculatorSection.js +90 -97
- package/dist/CheckBoxInput.cjs +1 -1
- package/dist/CheckBoxInput.js +2 -5
- package/dist/Chip.cjs +14 -14
- package/dist/Chip.js +73 -111
- package/dist/ConfirmationForm.cjs +6 -6
- package/dist/ConfirmationForm.js +67 -109
- package/dist/ContactSection.cjs +1 -0
- package/dist/ContactSection.js +1 -0
- package/dist/Content.cjs +1 -1
- package/dist/Content.js +7 -15
- package/dist/{DailyMotion-ByXblnua.js → DailyMotion-BBcJkMo_.js} +1 -1
- package/dist/{DailyMotion-BaFUcQKQ.cjs → DailyMotion-CpZExcrg.cjs} +1 -1
- package/dist/DataView.cjs +1 -1
- package/dist/DataView.js +30 -50
- package/dist/DateInput.cjs +4 -4
- package/dist/DateInput.js +1347 -1383
- package/dist/DecimalInput.cjs +6 -6
- package/dist/DecimalInput.js +210 -263
- package/dist/DecimalInputV2.cjs +23 -23
- package/dist/DecimalInputV2.js +119 -176
- package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
- package/dist/DetailedProductsInfinitiveSection.js +1 -1
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +1 -1
- package/dist/DetailsView.cjs +9 -9
- package/dist/DetailsView.js +111 -162
- package/dist/DoubleRangeSlider.cjs +22 -22
- package/dist/DoubleRangeSlider.js +70 -95
- package/dist/DragAndDropFile.cjs +10 -10
- package/dist/DragAndDropFile.js +347 -402
- package/dist/DragDropFiles.cjs +4 -4
- package/dist/DragDropFiles.js +70 -124
- package/dist/Drawer.cjs +5 -5
- package/dist/Drawer.js +97 -135
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +44 -213
- package/dist/DropdownItem.cjs +14 -14
- package/dist/DropdownItem.js +106 -142
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +61 -242
- package/dist/DropdownMenu.cjs +4 -4
- package/dist/DropdownMenu.js +87 -149
- package/dist/EditableTable.cjs +10 -10
- package/dist/EditableTable.js +165 -331
- package/dist/{Facebook-BCqiOWZO.js → Facebook-BSWPEXjA.js} +1 -1
- package/dist/{Facebook-D9wwecSW.cjs → Facebook-DoKw-XxT.cjs} +1 -1
- package/dist/FaqSection.cjs +3 -3
- package/dist/FaqSection.js +119 -153
- package/dist/FileInput.cjs +7 -7
- package/dist/FileInput.js +66 -94
- package/dist/{FilePlayer-ktaNhf3p.js → FilePlayer-BtGpIWnK.js} +1 -1
- package/dist/{FilePlayer-DB6jnpeC.cjs → FilePlayer-D9az_lc_.cjs} +1 -1
- package/dist/FlexBox.cjs +6 -6
- package/dist/FlexBox.js +28 -63
- package/dist/FlexGrid.cjs +1 -1
- package/dist/FlexGrid.js +27 -67
- package/dist/FlexGridItem.cjs +6 -6
- package/dist/FlexGridItem.js +34 -62
- package/dist/Footer.cjs +1 -1
- package/dist/Footer.js +7 -15
- package/dist/FormField.cjs +7 -7
- package/dist/FormField.js +22 -47
- package/dist/FormView.cjs +6 -6
- package/dist/FormView.js +148 -195
- package/dist/Grid.cjs +2 -2
- package/dist/Grid.js +40 -65
- package/dist/GridItem.cjs +2 -2
- package/dist/GridItem.js +47 -80
- package/dist/Header.cjs +1 -1
- package/dist/Header.js +7 -15
- package/dist/HelpBannerSection.cjs +3 -3
- package/dist/HelpBannerSection.js +9 -15
- package/dist/Icon.cjs +4 -4
- package/dist/Icon.js +29 -55
- package/dist/IconButton.cjs +9 -9
- package/dist/IconButton.js +89 -127
- package/dist/{Kaltura-CvlN0HDg.js → Kaltura-BDqlEQpd.js} +1 -1
- package/dist/{Kaltura-CCdXLzOa.cjs → Kaltura-CK6JHUZC.cjs} +1 -1
- package/dist/Kanban.cjs +7 -7
- package/dist/Kanban.js +2033 -2098
- package/dist/KanbanActionsToolbar.cjs +4 -5
- package/dist/KanbanActionsToolbar.js +61 -96
- package/dist/KanbanCard-B9V9EjVE.js +137 -0
- package/dist/KanbanCard-DihrKn-I.cjs +30 -0
- package/dist/KanbanCard.cjs +1 -1
- package/dist/KanbanCard.js +2 -3
- package/dist/KanbanFooter.cjs +3 -3
- package/dist/KanbanFooter.js +37 -55
- package/dist/KanbanHeader.cjs +4 -4
- package/dist/KanbanHeader.js +49 -81
- package/dist/KanbanView.cjs +2 -2
- package/dist/KanbanView.js +106 -173
- package/dist/Link.cjs +7 -7
- package/dist/Link.js +20 -37
- package/dist/LocationSearchSection.cjs +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +1 -1
- package/dist/MasonryGeneralCardsSection.js +1 -1
- package/dist/MenuItem.cjs +13 -13
- package/dist/MenuItem.js +101 -139
- package/dist/{Mixcloud-nG_VyBNt.cjs → Mixcloud-C1Boh2Bm.cjs} +1 -1
- package/dist/{Mixcloud-Bb8MTclI.js → Mixcloud-zAh6j7Ha.js} +1 -1
- package/dist/Modal.cjs +18 -19
- package/dist/Modal.js +131 -166
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +25 -196
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +27 -209
- package/dist/{Mux-DfYpGTiP.js → Mux-BGTG_Tvc.js} +1 -1
- package/dist/{Mux-BgB2a8kM.cjs → Mux-C6TwZeaq.cjs} +1 -1
- package/dist/NestedDropdownItem.cjs +3 -3
- package/dist/NestedDropdownItem.js +45 -67
- package/dist/NestedMenuItem.cjs +5 -5
- package/dist/NestedMenuItem.js +51 -78
- package/dist/NotificationContainer.cjs +10 -10
- package/dist/NotificationContainer.js +46 -79
- package/dist/NotificationMessage.cjs +2 -2
- package/dist/NotificationMessage.js +47 -64
- package/dist/NumberInput.cjs +23 -23
- package/dist/NumberInput.js +89 -149
- package/dist/PageLayout.cjs +2 -2
- package/dist/PageLayout.js +20 -28
- package/dist/Pagination.cjs +3 -3
- package/dist/Pagination.js +102 -185
- package/dist/PasswordInput.cjs +23 -23
- package/dist/PasswordInput.js +108 -137
- package/dist/Popover.cjs +1 -1
- package/dist/Popover.js +7 -32
- package/dist/PopoverContent.cjs +5 -5
- package/dist/PopoverContent.js +22 -28
- package/dist/PopoverTrigger.cjs +1 -1
- package/dist/PopoverTrigger.js +7 -12
- package/dist/ProgressBar.cjs +8 -8
- package/dist/ProgressBar.js +32 -59
- package/dist/RadioGroup.cjs +3 -3
- package/dist/RadioGroup.js +41 -72
- package/dist/RadioInput.cjs +28 -28
- package/dist/RadioInput.js +78 -123
- package/dist/RangeSlider.cjs +19 -19
- package/dist/RangeSlider.js +92 -119
- package/dist/ReviewsSection.cjs +13 -13
- package/dist/ReviewsSection.js +81 -101
- package/dist/SalesCampaignsSection.cjs +19 -19
- package/dist/SalesCampaignsSection.js +283 -324
- package/dist/SearchBar.cjs +10 -10
- package/dist/SearchBar.js +168 -188
- package/dist/SearchSection-B94YN_6P.cjs +161 -0
- package/dist/{SearchSection-DDQ_K98T.js → SearchSection-DAaMecR4.js} +337 -359
- package/dist/SearchSection.cjs +1 -1
- package/dist/SearchSection.js +2 -3
- package/dist/Separator.cjs +3 -3
- package/dist/Separator.js +14 -19
- package/dist/Sidebar.cjs +4 -5
- package/dist/Sidebar.js +33 -56
- package/dist/SimpleCategoriesSection.cjs +1 -1
- package/dist/SimpleCategoriesSection.js +1 -1
- package/dist/{SoundCloud-C86xwUG6.cjs → SoundCloud-C6R6E6Zc.cjs} +1 -1
- package/dist/{SoundCloud-DG91z39R.js → SoundCloud-lO8wg_0s.js} +1 -1
- package/dist/Spinner.cjs +18 -18
- package/dist/Spinner.js +37 -54
- package/dist/StatsSection.cjs +6 -6
- package/dist/StatsSection.js +15 -25
- package/dist/{Streamable-4uAnb3WN.cjs → Streamable-DZO95CiT.cjs} +1 -1
- package/dist/{Streamable-BAIWLgyD.js → Streamable-Dwa5ZEK4.js} +1 -1
- package/dist/Surface.cjs +4 -4
- package/dist/Surface.js +19 -34
- package/dist/SwipeableDrawer.cjs +8 -8
- package/dist/SwipeableDrawer.js +84 -136
- package/dist/TabItem.cjs +11 -11
- package/dist/TabItem.js +83 -118
- package/dist/Table.cjs +65 -65
- package/dist/Table.js +786 -1167
- package/dist/TableView.cjs +2 -2
- package/dist/TableView.js +113 -197
- package/dist/Tabs.cjs +4 -4
- package/dist/Tabs.js +41 -60
- package/dist/TextAreaInput.cjs +14 -14
- package/dist/TextAreaInput.js +131 -181
- package/dist/TextInput.cjs +23 -23
- package/dist/TextInput.js +78 -126
- package/dist/ThemeProvider.cjs +5 -5
- package/dist/ThemeProvider.js +35 -39
- package/dist/TimeInput.cjs +7 -7
- package/dist/TimeInput.js +46 -72
- package/dist/Toggle.cjs +20 -20
- package/dist/Toggle.js +78 -109
- package/dist/ToggleSection.cjs +5 -5
- package/dist/ToggleSection.js +48 -55
- package/dist/TreeMenu.cjs +5 -5
- package/dist/TreeMenu.js +43 -67
- package/dist/TreeMenuSeparator.cjs +3 -3
- package/dist/TreeMenuSeparator.js +12 -20
- package/dist/{Twitch-CVAj24ti.cjs → Twitch-B17oKtD0.cjs} +1 -1
- package/dist/{Twitch-DfXeW5Xs.js → Twitch-C73-dwWo.js} +1 -1
- package/dist/UploadedFile.cjs +11 -11
- package/dist/UploadedFile.js +73 -99
- package/dist/{Vidyard-De3pges0.js → Vidyard-B6GdBHsM.js} +1 -1
- package/dist/{Vidyard-DaCcaaH4.cjs → Vidyard-s1MMcaRm.cjs} +1 -1
- package/dist/{Vimeo-8wXdCXGs.cjs → Vimeo-J1l_SU2E.cjs} +1 -1
- package/dist/{Vimeo-N6I2qi_h.js → Vimeo-kzHz4Gco.js} +1 -1
- package/dist/{Wistia-BrUzHQoq.cjs → Wistia-CudQyDHM.cjs} +1 -1
- package/dist/{Wistia-dlV6n6tO.js → Wistia-w4jnqd7y.js} +1 -1
- package/dist/{YouTube-Cfsj4ZaP.cjs → YouTube-BAYKouHS.cjs} +1 -1
- package/dist/{YouTube-DNJxWqRm.js → YouTube-BKyipPZx.js} +1 -1
- package/dist/index-BdKi2ogu.js +39 -0
- package/dist/index-CRk3vcd4.cjs +95 -0
- package/dist/index-CX2A-q39.cjs +4 -0
- package/dist/{index-CWALXP1T.js → index-CwMCk9wV.js} +118 -145
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/{tag-BtS5lWJ0.js → tag-Dm8CW4TM.js} +21 -27
- package/dist/{tag-CmeZsPQt.cjs → tag-UQjq2_Ba.cjs} +7 -7
- package/package.json +1 -1
- package/dist/KanbanCard-68kSAXL6.js +0 -175
- package/dist/KanbanCard-BDvoqTDS.cjs +0 -30
- package/dist/SearchSection-BcbHP6QF.cjs +0 -161
- package/dist/index-Be-_NM9Q.cjs +0 -4
- package/dist/index-C0LcDEqa.js +0 -47
- package/dist/index-CSNxZFTX.cjs +0 -95
package/dist/Avatar.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import w from "./
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
border-radius: ${(e) => y(e.theme, e.borderRadius)};
|
|
2
|
+
import { forwardRef as U } from "react";
|
|
3
|
+
import { s as I } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { a as b, d as t, h as $, b as v } from "./utils-DtEfC-TX.js";
|
|
5
|
+
import y from "./Icon.js";
|
|
6
|
+
import { u as w } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
|
+
const R = I.div`
|
|
8
|
+
border-radius: ${(e) => b(e.theme, e.borderRadius)};
|
|
10
9
|
color: white;
|
|
11
10
|
display: inline-flex;
|
|
12
11
|
justify-content: center;
|
|
@@ -20,92 +19,54 @@ const x = U.div`
|
|
|
20
19
|
height: ${(e) => e.sizeInUnits ? e.sizeInUnits : t(e.theme, e.size)};
|
|
21
20
|
width: ${(e) => e.sizeInUnits ? e.sizeInUnits : t(e.theme, e.size)};
|
|
22
21
|
}
|
|
23
|
-
`,
|
|
22
|
+
`, B = U((e, r) => {
|
|
24
23
|
const {
|
|
25
|
-
image:
|
|
24
|
+
image: n,
|
|
26
25
|
icon: l = "user",
|
|
27
|
-
sizeInUnits:
|
|
26
|
+
sizeInUnits: i,
|
|
28
27
|
borderRadius: m = "curved",
|
|
29
28
|
//----------------
|
|
30
29
|
onFocus: d = () => {
|
|
31
30
|
},
|
|
32
|
-
onBlur:
|
|
31
|
+
onBlur: o = () => {
|
|
33
32
|
},
|
|
34
|
-
onClick:
|
|
33
|
+
onClick: c = () => {
|
|
35
34
|
},
|
|
36
35
|
//----------------
|
|
37
|
-
size:
|
|
36
|
+
size: a = "small",
|
|
38
37
|
color: h = "primary",
|
|
39
|
-
className:
|
|
40
|
-
style:
|
|
41
|
-
...
|
|
42
|
-
} = e,
|
|
43
|
-
theme:
|
|
38
|
+
className: u = "",
|
|
39
|
+
style: z = {},
|
|
40
|
+
...f
|
|
41
|
+
} = e, g = {
|
|
42
|
+
theme: w(),
|
|
44
43
|
color: h,
|
|
45
|
-
style:
|
|
46
|
-
size:
|
|
47
|
-
sizeInUnits:
|
|
48
|
-
className: "lnc-ui-avatar " +
|
|
44
|
+
style: z,
|
|
45
|
+
size: a,
|
|
46
|
+
sizeInUnits: i,
|
|
47
|
+
className: "lnc-ui-avatar " + u
|
|
49
48
|
};
|
|
50
49
|
return /* @__PURE__ */ s(
|
|
51
|
-
|
|
50
|
+
R,
|
|
52
51
|
{
|
|
53
|
-
ref:
|
|
54
|
-
...
|
|
52
|
+
ref: r,
|
|
53
|
+
...g,
|
|
55
54
|
borderRadius: m,
|
|
56
|
-
onClick:
|
|
55
|
+
onClick: c,
|
|
57
56
|
onFocus: d,
|
|
58
|
-
onBlur:
|
|
59
|
-
...
|
|
60
|
-
children:
|
|
61
|
-
|
|
57
|
+
onBlur: o,
|
|
58
|
+
...f,
|
|
59
|
+
children: n ? /* @__PURE__ */ s("img", { src: n }) : /* @__PURE__ */ s(
|
|
60
|
+
y,
|
|
62
61
|
{
|
|
63
62
|
icon: l,
|
|
64
|
-
size:
|
|
65
|
-
sizeInUnits:
|
|
63
|
+
size: a,
|
|
64
|
+
sizeInUnits: i ? `calc(${i} / 2)` : null
|
|
66
65
|
}
|
|
67
66
|
)
|
|
68
67
|
}
|
|
69
68
|
);
|
|
70
69
|
});
|
|
71
|
-
C.propTypes = {
|
|
72
|
-
image: i.string,
|
|
73
|
-
/**
|
|
74
|
-
* If `image` is not defined, icon can be used.
|
|
75
|
-
*/
|
|
76
|
-
icon: i.string,
|
|
77
|
-
tabIndex: i.number,
|
|
78
|
-
/**
|
|
79
|
-
* it has higher priority than `size` prop
|
|
80
|
-
*/
|
|
81
|
-
sizeInUnits: i.string,
|
|
82
|
-
disabled: i.bool,
|
|
83
|
-
borderRadius: i.oneOf([
|
|
84
|
-
"slight",
|
|
85
|
-
"regular",
|
|
86
|
-
"edged",
|
|
87
|
-
"curved",
|
|
88
|
-
"none"
|
|
89
|
-
]),
|
|
90
|
-
//---------------------------------------------------------------
|
|
91
|
-
onBlur: i.func,
|
|
92
|
-
onFocus: i.func,
|
|
93
|
-
onClick: i.func,
|
|
94
|
-
//---------------------------------------------------------------
|
|
95
|
-
className: i.string,
|
|
96
|
-
style: i.object,
|
|
97
|
-
size: i.oneOf(["small", "medium", "large"]),
|
|
98
|
-
color: i.oneOf([
|
|
99
|
-
"primary",
|
|
100
|
-
"secondary",
|
|
101
|
-
"success",
|
|
102
|
-
"warning",
|
|
103
|
-
"danger",
|
|
104
|
-
"information",
|
|
105
|
-
"neutral",
|
|
106
|
-
"gray"
|
|
107
|
-
])
|
|
108
|
-
};
|
|
109
70
|
export {
|
|
110
|
-
|
|
71
|
+
B as default
|
|
111
72
|
};
|
package/dist/Badge.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";const h=require("react/jsx-runtime"),
|
|
2
|
-
${e=>
|
|
3
|
-
background-color: ${e=>
|
|
4
|
-
color: ${e=>
|
|
5
|
-
border-radius: ${e=>
|
|
1
|
+
"use strict";const h=require("react/jsx-runtime"),b=require("react"),y=require("./emotion-styled.browser.esm-BtEseadx.cjs"),r=require("./utils-RnrgDDZP.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
|
+
${e=>r.getComponentTypographyCss(e.theme,"Badge",e.size,"enabled")};
|
|
3
|
+
background-color: ${e=>r.getColorRgbaValue(e.theme,"Badge",e.color,"enabled","background","backgroundOpacity")};
|
|
4
|
+
color: ${e=>r.getColorRgbaValue(e.theme,"Badge",e.color,"enabled","text")};
|
|
5
|
+
border-radius: ${e=>r.getBorderRadiusValueWithUnits(e.theme,e.borderRadius)};
|
|
6
6
|
display: inline-flex;
|
|
7
7
|
min-width: ${e=>t(e.size)};
|
|
8
8
|
min-height: ${e=>t(e.size)};
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
& i {
|
|
15
15
|
font-size: ${e=>e.size=="small"?"0.75rem":e.size=="medium"?"0.875rem":"1rem"};
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
`,$=b.forwardRef((e,i)=>{const{borderRadius:s="curved",onClick:n=()=>{},className:o="",style:a={},color:d="primary",size:m="small",children:l,...c}=e,u=z.useTheme(),g={borderRadius:s,theme:u,size:m,color:d,className:"lnc-ui-badge "+o,style:a};return h.jsx(R,{ref:i,...g,onClick:n,...c,children:l})});module.exports=$;
|
package/dist/Badge.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { jsx as h } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { P as r } from "./index-CblbdqjE.js";
|
|
2
|
+
import { forwardRef as f } from "react";
|
|
4
3
|
import { s as b } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
-
import { c as
|
|
4
|
+
import { c as y, b as t, a as z } from "./utils-DtEfC-TX.js";
|
|
6
5
|
import { u as $ } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
|
-
const
|
|
8
|
-
${(e) =>
|
|
9
|
-
background-color: ${(e) =>
|
|
6
|
+
const r = (e) => e == "large" ? "2rem" : e == "medium" ? "1.75rem" : "1.5rem", B = b.div`
|
|
7
|
+
${(e) => y(e.theme, "Badge", e.size, "enabled")};
|
|
8
|
+
background-color: ${(e) => t(
|
|
10
9
|
e.theme,
|
|
11
10
|
"Badge",
|
|
12
11
|
e.color,
|
|
@@ -14,12 +13,12 @@ const a = (e) => e == "large" ? "2rem" : e == "medium" ? "1.75rem" : "1.5rem", B
|
|
|
14
13
|
"background",
|
|
15
14
|
"backgroundOpacity"
|
|
16
15
|
)};
|
|
17
|
-
color: ${(e) =>
|
|
16
|
+
color: ${(e) => t(e.theme, "Badge", e.color, "enabled", "text")};
|
|
18
17
|
border-radius: ${(e) => z(e.theme, e.borderRadius)};
|
|
19
18
|
display: inline-flex;
|
|
20
|
-
min-width: ${(e) =>
|
|
21
|
-
min-height: ${(e) =>
|
|
22
|
-
max-height: ${(e) =>
|
|
19
|
+
min-width: ${(e) => r(e.size)};
|
|
20
|
+
min-height: ${(e) => r(e.size)};
|
|
21
|
+
max-height: ${(e) => r(e.size)};
|
|
23
22
|
justify-content: center;
|
|
24
23
|
align-items: center;
|
|
25
24
|
padding: 0.313rem;
|
|
@@ -27,51 +26,27 @@ const a = (e) => e == "large" ? "2rem" : e == "medium" ? "1.75rem" : "1.5rem", B
|
|
|
27
26
|
& i {
|
|
28
27
|
font-size: ${(e) => e.size == "small" ? "0.75rem" : e.size == "medium" ? "0.875rem" : "1rem"};
|
|
29
28
|
}
|
|
30
|
-
`,
|
|
29
|
+
`, j = f((e, a) => {
|
|
31
30
|
const {
|
|
32
31
|
borderRadius: i = "curved",
|
|
33
|
-
onClick:
|
|
32
|
+
onClick: o = () => {
|
|
34
33
|
},
|
|
35
|
-
className:
|
|
36
|
-
style:
|
|
34
|
+
className: m = "",
|
|
35
|
+
style: s = {},
|
|
37
36
|
color: d = "primary",
|
|
38
|
-
size:
|
|
39
|
-
children:
|
|
40
|
-
...
|
|
41
|
-
} = e, u = $(),
|
|
37
|
+
size: n = "small",
|
|
38
|
+
children: l,
|
|
39
|
+
...c
|
|
40
|
+
} = e, u = $(), g = {
|
|
42
41
|
borderRadius: i,
|
|
43
42
|
theme: u,
|
|
44
|
-
size:
|
|
43
|
+
size: n,
|
|
45
44
|
color: d,
|
|
46
|
-
className: "lnc-ui-badge " +
|
|
47
|
-
style:
|
|
45
|
+
className: "lnc-ui-badge " + m,
|
|
46
|
+
style: s
|
|
48
47
|
};
|
|
49
|
-
return /* @__PURE__ */ h(B, { ref:
|
|
48
|
+
return /* @__PURE__ */ h(B, { ref: a, ...g, onClick: o, ...c, children: l });
|
|
50
49
|
});
|
|
51
|
-
R.propTypes = {
|
|
52
|
-
onClick: r.func,
|
|
53
|
-
borderRadius: r.oneOf([
|
|
54
|
-
"slight",
|
|
55
|
-
"regular",
|
|
56
|
-
"edged",
|
|
57
|
-
"curved",
|
|
58
|
-
"none"
|
|
59
|
-
]),
|
|
60
|
-
//---------------------------
|
|
61
|
-
className: r.string,
|
|
62
|
-
style: r.object,
|
|
63
|
-
color: r.oneOf([
|
|
64
|
-
"primary",
|
|
65
|
-
"secondary",
|
|
66
|
-
"success",
|
|
67
|
-
"warning",
|
|
68
|
-
"danger",
|
|
69
|
-
"information",
|
|
70
|
-
"neutral",
|
|
71
|
-
"gray"
|
|
72
|
-
]),
|
|
73
|
-
size: r.oneOf(["small", "medium", "large"])
|
|
74
|
-
};
|
|
75
50
|
export {
|
|
76
|
-
|
|
51
|
+
j as default
|
|
77
52
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),s=require("react"),n=require("./CategorySimpleCard-COGlTj06.cjs"),d=require("./style-BTTXJFJN.cjs"),g=s.memo(n.CategorySimpleCard),l=s.forwardRef(({items:r,onSelectCard:a=()=>{},isHighlight:u=!1},t)=>{const c=s.useMemo(()=>{var o;return(o=r==null?void 0:r.slice(0,4))==null?void 0:o.map((e,m)=>i.jsx(g,{uuid:e==null?void 0:e.uuid,image:e==null?void 0:e.image,name:e==null?void 0:e.name,onSelectCard:()=>a==null?void 0:a(e==null?void 0:e.uuid)},m))},[r]);return i.jsx(d.Wrapper,{ref:t,className:u?"highlight":"",children:i.jsx("div",{className:"wrapper__grid",children:c})})});module.exports=l;
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { memo as g, forwardRef as
|
|
3
|
-
import { C as
|
|
4
|
-
import { W as
|
|
5
|
-
const n = g(
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { memo as g, forwardRef as u, useMemo as t } from "react";
|
|
3
|
+
import { C as f } from "./CategorySimpleCard-Em84kZzQ.js";
|
|
4
|
+
import { W as l } from "./style-tw6KjI2J.js";
|
|
5
|
+
const n = g(f), w = u(
|
|
6
6
|
({
|
|
7
7
|
items: a,
|
|
8
8
|
onSelectCard: e = () => {
|
|
9
9
|
},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
isHighlight: m = !1
|
|
13
|
-
}, s) => {
|
|
10
|
+
isHighlight: i = !1
|
|
11
|
+
}, p) => {
|
|
14
12
|
const d = t(() => {
|
|
15
|
-
var
|
|
16
|
-
return (
|
|
13
|
+
var m;
|
|
14
|
+
return (m = a == null ? void 0 : a.slice(0, 4)) == null ? void 0 : m.map((r, s) => /* @__PURE__ */ o(
|
|
17
15
|
n,
|
|
18
16
|
{
|
|
19
17
|
uuid: r == null ? void 0 : r.uuid,
|
|
@@ -21,12 +19,12 @@ const n = g(u), M = l(
|
|
|
21
19
|
name: r == null ? void 0 : r.name,
|
|
22
20
|
onSelectCard: () => e == null ? void 0 : e(r == null ? void 0 : r.uuid)
|
|
23
21
|
},
|
|
24
|
-
|
|
22
|
+
s
|
|
25
23
|
));
|
|
26
24
|
}, [a]);
|
|
27
|
-
return /* @__PURE__ */
|
|
25
|
+
return /* @__PURE__ */ o(l, { ref: p, className: i ? "highlight" : "", children: /* @__PURE__ */ o("div", { className: "wrapper__grid", children: d }) });
|
|
28
26
|
}
|
|
29
27
|
);
|
|
30
28
|
export {
|
|
31
|
-
|
|
29
|
+
w as default
|
|
32
30
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),x=require("react"),se=require("./useDetectMobile-zkbzoOGV.cjs"),M=require("./utils-RnrgDDZP.cjs"),ce=require("./TextInput.cjs"),q=require("./Icon.cjs"),oe=require("./Link.cjs"),L=require("./IconButton.cjs"),V=require("./DropdownMenu.cjs"),W=require("./DropdownItem.cjs"),le=require("./tag-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),x=require("react"),se=require("./useDetectMobile-zkbzoOGV.cjs"),M=require("./utils-RnrgDDZP.cjs"),ce=require("./TextInput.cjs"),q=require("./Icon.cjs"),oe=require("./Link.cjs"),L=require("./IconButton.cjs"),V=require("./DropdownMenu.cjs"),W=require("./DropdownItem.cjs"),le=require("./tag-UQjq2_Ba.cjs"),de=require("./BlogProductCardsSection.cjs"),E=require("./emotion-styled.browser.esm-BtEseadx.cjs"),me=require("./index-uwl7BjRF.cjs"),T=require("./BlogListSection.cjs"),_e=require("./consts-goSZX3xP.cjs"),he=E.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
align-items: center;
|
|
@@ -8,7 +8,7 @@ import ue from "./Link.js";
|
|
|
8
8
|
import M from "./IconButton.js";
|
|
9
9
|
import W from "./DropdownMenu.js";
|
|
10
10
|
import E from "./DropdownItem.js";
|
|
11
|
-
import { F as ve } from "./tag-
|
|
11
|
+
import { F as ve } from "./tag-Dm8CW4TM.js";
|
|
12
12
|
import pe from "./BlogProductCardsSection.js";
|
|
13
13
|
import { s as q } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
14
14
|
import { P as ge } from "./index-B22BZVBG.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),a=require("react"),S=require("./emotion-styled.browser.esm-BtEseadx.cjs"),C=require("./consts-goSZX3xP.cjs"),W=require("./useDetectMobile-zkbzoOGV.cjs"),k=require("./utils-RnrgDDZP.cjs"),T=require("./style-CkcozOY6.cjs"),E=require("./Button.cjs"),I=require("./Link.cjs"),M=require("./index-uwl7BjRF.cjs"),P=require("./index-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),a=require("react"),S=require("./emotion-styled.browser.esm-BtEseadx.cjs"),C=require("./consts-goSZX3xP.cjs"),W=require("./useDetectMobile-zkbzoOGV.cjs"),k=require("./utils-RnrgDDZP.cjs"),T=require("./style-CkcozOY6.cjs"),E=require("./Button.cjs"),I=require("./Link.cjs"),M=require("./index-uwl7BjRF.cjs"),P=require("./index-CRk3vcd4.cjs"),s=require("./style-BAcV7F53.cjs"),O=S.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${r=>`repeat(${r.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
@@ -8,7 +8,7 @@ import { T as K } from "./style-Cmlod7oq.js";
|
|
|
8
8
|
import G from "./Button.js";
|
|
9
9
|
import H from "./Link.js";
|
|
10
10
|
import { P } from "./index-B22BZVBG.js";
|
|
11
|
-
import { S as X } from "./index-
|
|
11
|
+
import { S as X } from "./index-CwMCk9wV.js";
|
|
12
12
|
import { b as Z, S as y, a as s } from "./style-BwQ4djFC.js";
|
|
13
13
|
const q = w.div`
|
|
14
14
|
display: grid;
|
package/dist/Breadcrumbs.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime"),i=require("react"),
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),i=require("react"),u=require("./emotion-styled.browser.esm-BtEseadx.cjs"),g=require("./utils-RnrgDDZP.cjs"),S=require("./Icon.cjs"),_=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),v=u.styled.div`
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
flex-wrap: wrap;
|
|
4
|
-
${
|
|
5
|
-
color: ${
|
|
6
|
-
`,
|
|
4
|
+
${r=>g.getComponentTypographyCss(r.theme,"Breadcrumbs",r.size,"enabled")};
|
|
5
|
+
color: ${r=>g.getColorRgbaValue(r.theme,"Breadcrumbs",r.color,"enabled","text")};
|
|
6
|
+
`,z=u.styled.div`
|
|
7
7
|
cursor: pointer;
|
|
8
|
-
`,
|
|
8
|
+
`,A=u.styled.span``,F=i.forwardRef((r,b)=>{const{separator:o="/",maxItems:y=8,itemsAfterCollapse:f=1,itemsBeforeCollapse:j=1,className:x="",style:C={},color:h="neutral",size:q="small",children:B,...I}=r,w={theme:_.useTheme(),size:q,color:h,className:"lnc-ui-breadcrumbs "+x,style:C},[c,d]=i.useState(!0),R=({maxItems:m,itemsAfterCollapse:n,itemsBeforeCollapse:l,children:e})=>typeof(e==null?void 0:e.map)!="function"?s.jsx(a,{index:0,length:e.length,separator:o,child:e}):e==null?void 0:e.map((p,t)=>m<=e.length&&c==!0?l-1>=t||e.length-n<=t?s.jsx(a,{index:t,length:e.length,separator:o,child:p},t):l==t&&s.jsxs(z,{onClick:()=>d(!c),children:[s.jsx(S,{icon:"ellipsis"}),o," "]},t):s.jsx(a,{index:t,length:e.length,separator:o,child:p},t)),a=({index:m,length:n,separator:l,child:e})=>s.jsxs(A,{children:[e,m+1!==n&&s.jsxs(s.Fragment,{children:[" ",l," "]})]});return s.jsx(v,{ref:b,...w,...I,children:s.jsx(R,{maxItems:y,itemsAfterCollapse:f,itemsBeforeCollapse:j,children:B})})});module.exports=F;
|
package/dist/Breadcrumbs.js
CHANGED
|
@@ -1,131 +1,101 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
const $ = c.div`
|
|
1
|
+
import { jsx as o, jsxs as n, Fragment as z } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as A, useState as N } from "react";
|
|
3
|
+
import { s as u } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { c as R, b as T } from "./utils-DtEfC-TX.js";
|
|
5
|
+
import $ from "./Icon.js";
|
|
6
|
+
import { u as d } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
|
+
const k = u.div`
|
|
9
8
|
display: inline-flex;
|
|
10
9
|
flex-wrap: wrap;
|
|
11
|
-
${(
|
|
12
|
-
|
|
10
|
+
${(s) => R(
|
|
11
|
+
s.theme,
|
|
13
12
|
"Breadcrumbs",
|
|
14
|
-
|
|
13
|
+
s.size,
|
|
15
14
|
"enabled"
|
|
16
15
|
)};
|
|
17
|
-
color: ${(
|
|
18
|
-
|
|
16
|
+
color: ${(s) => T(
|
|
17
|
+
s.theme,
|
|
19
18
|
"Breadcrumbs",
|
|
20
|
-
|
|
19
|
+
s.color,
|
|
21
20
|
"enabled",
|
|
22
21
|
"text"
|
|
23
22
|
)};
|
|
24
|
-
`,
|
|
23
|
+
`, F = u.div`
|
|
25
24
|
cursor: pointer;
|
|
26
|
-
`,
|
|
25
|
+
`, P = u.span``, K = A((s, g) => {
|
|
27
26
|
const {
|
|
28
|
-
separator:
|
|
27
|
+
separator: r = "/",
|
|
29
28
|
maxItems: b = 8,
|
|
30
|
-
itemsAfterCollapse:
|
|
29
|
+
itemsAfterCollapse: i = 1,
|
|
31
30
|
itemsBeforeCollapse: C = 1,
|
|
32
31
|
//----------------
|
|
33
|
-
className:
|
|
34
|
-
style:
|
|
35
|
-
color:
|
|
36
|
-
size:
|
|
37
|
-
children:
|
|
38
|
-
...
|
|
39
|
-
} =
|
|
40
|
-
theme:
|
|
41
|
-
size:
|
|
42
|
-
color:
|
|
43
|
-
className: "lnc-ui-breadcrumbs " +
|
|
44
|
-
style:
|
|
45
|
-
}, [
|
|
46
|
-
maxItems:
|
|
32
|
+
className: y = "",
|
|
33
|
+
style: h = {},
|
|
34
|
+
color: B = "neutral",
|
|
35
|
+
size: I = "small",
|
|
36
|
+
children: w,
|
|
37
|
+
...S
|
|
38
|
+
} = s, j = {
|
|
39
|
+
theme: d(),
|
|
40
|
+
size: I,
|
|
41
|
+
color: B,
|
|
42
|
+
className: "lnc-ui-breadcrumbs " + y,
|
|
43
|
+
style: h
|
|
44
|
+
}, [c, v] = N(!0), x = ({
|
|
45
|
+
maxItems: l,
|
|
47
46
|
itemsAfterCollapse: p,
|
|
48
|
-
itemsBeforeCollapse:
|
|
47
|
+
itemsBeforeCollapse: a,
|
|
49
48
|
children: e
|
|
50
49
|
}) => typeof (e == null ? void 0 : e.map) != "function" ? /* @__PURE__ */ o(
|
|
51
|
-
|
|
50
|
+
m,
|
|
52
51
|
{
|
|
53
52
|
index: 0,
|
|
54
53
|
length: e.length,
|
|
55
|
-
separator:
|
|
54
|
+
separator: r,
|
|
56
55
|
child: e
|
|
57
56
|
}
|
|
58
57
|
) : e == null ? void 0 : e.map(
|
|
59
|
-
(
|
|
60
|
-
|
|
58
|
+
(f, t) => l <= e.length && c == !0 ? a - 1 >= t || e.length - p <= t ? /* @__PURE__ */ o(
|
|
59
|
+
m,
|
|
61
60
|
{
|
|
62
|
-
index:
|
|
61
|
+
index: t,
|
|
63
62
|
length: e.length,
|
|
64
|
-
separator:
|
|
65
|
-
child:
|
|
63
|
+
separator: r,
|
|
64
|
+
child: f
|
|
66
65
|
},
|
|
67
|
-
|
|
68
|
-
) :
|
|
69
|
-
/* @__PURE__ */ o(
|
|
70
|
-
|
|
66
|
+
t
|
|
67
|
+
) : a == t && /* @__PURE__ */ n(F, { onClick: () => v(!c), children: [
|
|
68
|
+
/* @__PURE__ */ o($, { icon: "ellipsis" }),
|
|
69
|
+
r,
|
|
71
70
|
" "
|
|
72
|
-
] },
|
|
73
|
-
|
|
71
|
+
] }, t) : /* @__PURE__ */ o(
|
|
72
|
+
m,
|
|
74
73
|
{
|
|
75
|
-
index:
|
|
74
|
+
index: t,
|
|
76
75
|
length: e.length,
|
|
77
|
-
separator:
|
|
78
|
-
child:
|
|
76
|
+
separator: r,
|
|
77
|
+
child: f
|
|
79
78
|
},
|
|
80
|
-
|
|
79
|
+
t
|
|
81
80
|
)
|
|
82
|
-
),
|
|
81
|
+
), m = ({ index: l, length: p, separator: a, child: e }) => /* @__PURE__ */ n(P, { children: [
|
|
83
82
|
e,
|
|
84
|
-
|
|
83
|
+
l + 1 !== p && /* @__PURE__ */ n(z, { children: [
|
|
85
84
|
" ",
|
|
86
|
-
|
|
85
|
+
a,
|
|
87
86
|
" "
|
|
88
87
|
] })
|
|
89
88
|
] });
|
|
90
|
-
return /* @__PURE__ */ o(
|
|
91
|
-
|
|
89
|
+
return /* @__PURE__ */ o(k, { ref: g, ...j, ...S, children: /* @__PURE__ */ o(
|
|
90
|
+
x,
|
|
92
91
|
{
|
|
93
92
|
maxItems: b,
|
|
94
|
-
itemsAfterCollapse:
|
|
93
|
+
itemsAfterCollapse: i,
|
|
95
94
|
itemsBeforeCollapse: C,
|
|
96
|
-
children:
|
|
95
|
+
children: w
|
|
97
96
|
}
|
|
98
97
|
) });
|
|
99
98
|
});
|
|
100
|
-
V.propTypes = {
|
|
101
|
-
separator: t.oneOfType([t.string, t.element]),
|
|
102
|
-
/**
|
|
103
|
-
* Specifies the maximum number of breadcrumbs to display. When there are more than the maximum number, only the first itemsBeforeCollapse and last itemsAfterCollapse will be shown, with an ellipsis in between
|
|
104
|
-
*/
|
|
105
|
-
maxItems: t.number,
|
|
106
|
-
/**
|
|
107
|
-
* If max items is exceeded, the number of items to show after the ellipsis.
|
|
108
|
-
*/
|
|
109
|
-
itemsAfterCollapse: t.number,
|
|
110
|
-
/**
|
|
111
|
-
* If max items is exceeded, the number of items to show before the ellipsis.
|
|
112
|
-
*/
|
|
113
|
-
itemsBeforeCollapse: t.number,
|
|
114
|
-
//---------------------------------------------------------------
|
|
115
|
-
className: t.string,
|
|
116
|
-
style: t.object,
|
|
117
|
-
color: t.oneOf([
|
|
118
|
-
"primary",
|
|
119
|
-
"secondary",
|
|
120
|
-
"success",
|
|
121
|
-
"warning",
|
|
122
|
-
"danger",
|
|
123
|
-
"information",
|
|
124
|
-
"neutral",
|
|
125
|
-
"gray"
|
|
126
|
-
]),
|
|
127
|
-
size: t.oneOf(["small", "medium", "large"])
|
|
128
|
-
};
|
|
129
99
|
export {
|
|
130
|
-
|
|
100
|
+
K as default
|
|
131
101
|
};
|
package/dist/Button.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const a=require("react/jsx-runtime"),U=require("react"),y=require("./index-DA7SIHV1.cjs"),r=require("./emotion-styled.browser.esm-BtEseadx.cjs"),t=require("./utils-RnrgDDZP.cjs"),T=require("./Icon.cjs"),q=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),k={small:{regular:"1rem",icon:"0.75rem",justIcon:"0.5rem"},medium:{regular:"1.5rem",icon:"1rem",justIcon:"0.5rem"},large:{regular:"1.5rem",icon:"1rem",justIcon:"0.5rem"}},x=e=>`
|
|
2
2
|
outline: none;
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
flex-direction: row;
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
|
|
14
14
|
padding-left: ${e.hasLeadingIcon?k[e.size].icon:k[e.size].regular};
|
|
15
15
|
padding-right: ${e.hasTrailingIcon?k[e.size].icon:k[e.size].regular};
|
|
16
|
-
`,W=
|
|
16
|
+
`,W=r.styled.span`
|
|
17
17
|
padding-right: ${e=>e.size==="small"?"0.25rem":"0.5rem"};
|
|
18
|
-
`,
|
|
18
|
+
`,w=r.styled.span`
|
|
19
19
|
padding-left: ${e=>e.size==="small"?"0.25rem":"0.5rem"};
|
|
20
|
-
`,
|
|
21
|
-
${e=>
|
|
20
|
+
`,O=r.styled.button`
|
|
21
|
+
${e=>x(e)}
|
|
22
22
|
|
|
23
23
|
${e=>t.getComponentTypographyCss(e.theme,"ButtonFilled",e.size,"enabled")};
|
|
24
24
|
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
background-color: ${e=>e.disabled===!1&&t.getColorRgbaValue(e.theme,"ButtonFilled",e.color,"active","background","backgroundOpacity")};
|
|
51
51
|
color: ${e=>e.disabled===!1&&t.getColorRgbaValue(e.theme,"ButtonFilled",e.color,"active","text")};
|
|
52
52
|
}
|
|
53
|
-
`,
|
|
54
|
-
${e=>
|
|
53
|
+
`,D=r.styled.button`
|
|
54
|
+
${e=>x(e)}
|
|
55
55
|
|
|
56
56
|
min-height: ${e=>t.getSizeValueWithUnits(e.theme,e.size)};
|
|
57
57
|
max-height: ${e=>t.getSizeValueWithUnits(e.theme,e.size)};
|
|
@@ -88,8 +88,8 @@
|
|
|
88
88
|
cursor: default;
|
|
89
89
|
background-color: ${e=>t.getColorRgbaValue(e.theme,"ButtonTinted",e.color,"disabled","background","backgroundOpacity")};
|
|
90
90
|
}
|
|
91
|
-
`,v=
|
|
92
|
-
${e=>
|
|
91
|
+
`,v=r.styled.button`
|
|
92
|
+
${e=>x(e)}
|
|
93
93
|
|
|
94
94
|
${e=>t.getComponentTypographyCss(e.theme,"ButtonTinted",e.size,"enabled")};
|
|
95
95
|
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
cursor: default;
|
|
124
124
|
background-color: ${e=>t.getColorRgbaValue(e.theme,"ButtonBasic",e.color,"disabled","background","backgroundOpacity")};
|
|
125
125
|
}
|
|
126
|
-
`,
|
|
126
|
+
`,E=r.styled(v)`
|
|
127
127
|
border: 1px solid
|
|
128
128
|
${e=>t.getColorRgbaValue(e.theme,"ButtonBasic",e.color,"enabled","border","borderOpacity")};
|
|
129
|
-
`,
|
|
129
|
+
`,_=U.forwardRef((e,d)=>{const{text:V="",iconStyle:R="solid",leadingIcon:f=null,trailingIcon:z=null,borderRadius:j="regular",btnType:l="filled",disabled:F=!1,tabIndex:u=0,onFocus:g,onBlur:s,onClick:b,onKeyDown:m,size:C="small",color:n="primary",className:h="",style:I={},children:N,...$}=e,o={theme:q.useTheme(),color:n,size:C,style:I,disabled:F,borderRadius:j,btnType:l,className:"lnc-ui-button "},c=!y.isEmpty(f),i=!y.isEmpty(z),S=!y.isEmpty(V),B=()=>a.jsxs(a.Fragment,{children:[c&&a.jsx(W,{size:C,children:a.jsx(T,{icon:f,sizeInUnits:"1.125rem",iconStyle:R})}),V,N,i&&a.jsx(w,{size:C,children:a.jsx(T,{icon:z,sizeInUnits:"1.125rem",iconStyle:R})})]});return l==="filled"?a.jsx(O,{ref:d,"data-type":"filled",...o,className:`${o==null?void 0:o.className} ${n}-${l}-lnc-btn ${h}`,hasLeadingIcon:c,hasTrailingIcon:i,onFocus:g,onBlur:s,onClick:b,onKeyDown:m,tabIndex:u,btnType:l,...$,children:B()}):l==="tinted"?a.jsx(D,{ref:d,"data-type":"tinted",...o,className:`${o==null?void 0:o.className} ${n}-${l}-lnc-btn ${h}`,hasLeadingIcon:c,hasTrailingIcon:i,onFocus:g,onBlur:s,onClick:b,onKeyDown:m,tabIndex:u,btnType:l,...$,children:B()}):l==="outline"?a.jsx(E,{ref:d,"data-type":"outline",...o,className:`${o==null?void 0:o.className} ${n}-${l}-lnc-btn ${h}`,hasLeadingIcon:c,hasTrailingIcon:i,onFocus:g,onBlur:s,onClick:b,onKeyDown:m,tabIndex:u,btnType:l,...$,children:B()}):l==="basic"?a.jsx(v,{ref:d,"data-type":"basic",...o,className:`${o==null?void 0:o.className} ${n}-${l}-lnc-btn ${h}`,hasLeadingIcon:c,hasTrailingIcon:i,onFocus:g,onBlur:s,onClick:b,onKeyDown:m,tabIndex:u,btnType:l,...$,children:B()}):a.jsx(O,{ref:d,"data-type":"filled",size:C,...o,className:`${o==null?void 0:o.className} ${n}-${l}-lnc-btn ${h}`,hasLeadingIcon:c,hasTrailingIcon:i,onFocus:g,onBlur:s,onClick:b,onKeyDown:m,hasText:S,tabIndex:u,btnType:l,...$,children:B()})});module.exports=_;
|