@lanaco/lnc-react-ui 4.0.199 → 4.0.201
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/BannerSectionCarousel.cjs +4 -4
- package/dist/BannerSectionCarousel.js +51 -542
- package/dist/BlogCardsSponsoredSection.cjs +1 -1
- package/dist/BlogCardsSponsoredSection.js +1 -1
- 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/BlogListSection.cjs +1 -1
- package/dist/BlogListSection.js +1 -1
- package/dist/BlogsSectionDetailed.cjs +1 -1
- package/dist/BlogsSectionDetailed.js +1 -1
- package/dist/BlogsSectionSimple.cjs +1 -1
- package/dist/BlogsSectionSimple.js +1 -1
- package/dist/BlogsSectionWithFilters.cjs +1 -1
- package/dist/BlogsSectionWithFilters.js +2 -2
- 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 +2 -2
- 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/GiftCardsSection.cjs +1 -1
- package/dist/GiftCardsSection.js +1 -1
- 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/PartnerBrandsSection.cjs +62 -0
- package/dist/PartnerBrandsSection.js +154 -0
- package/dist/PartnerStatsSection.cjs +100 -0
- package/dist/PartnerStatsSection.js +124 -0
- 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/ProductsWithBannerSection.cjs +1 -1
- package/dist/ProductsWithBannerSection.js +1 -1
- 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 +38 -28
- package/dist/SalesCampaignsSection.js +297 -325
- 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 +2 -2
- package/dist/SimpleCategoriesSection.js +2 -2
- 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-BppfjY8h.js +497 -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-DeS-oqJB.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +25 -21
- package/dist/{style-CkcozOY6.cjs → style-B4kAj6YU.cjs} +38 -8
- package/dist/{style-Cmlod7oq.js → style-neMbLWE6.js} +42 -11
- package/dist/{tag-BtS5lWJ0.js → tag-Dm8CW4TM.js} +21 -27
- package/dist/{tag-CmeZsPQt.cjs → tag-UQjq2_Ba.cjs} +7 -7
- package/package.json +4 -2
- package/vite.config.js +8 -0
- 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/ProgressBar.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { P as r } from "./index-CblbdqjE.js";
|
|
1
|
+
import { jsxs as c, jsx as h } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as u, isValidElement as f, cloneElement as P } from "react";
|
|
4
3
|
import { s as t } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
-
import { b as
|
|
4
|
+
import { b as a, c as x } from "./utils-DtEfC-TX.js";
|
|
6
5
|
import { u as $ } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
6
|
const w = t.div`
|
|
8
7
|
width: 100%;
|
|
9
8
|
position: relative;
|
|
10
|
-
background-color: ${(e) =>
|
|
9
|
+
background-color: ${(e) => a(
|
|
11
10
|
e.theme,
|
|
12
11
|
"Progress",
|
|
13
12
|
e.color,
|
|
@@ -17,11 +16,11 @@ const w = t.div`
|
|
|
17
16
|
height: ${(e) => e.theme.components.Progress.default.enabled.sizes[e.size]};
|
|
18
17
|
border-radius: 5px;
|
|
19
18
|
animation: progres 4s infinite linear;
|
|
20
|
-
`,
|
|
19
|
+
`, y = t.div`
|
|
21
20
|
position: relative;
|
|
22
21
|
height: 100%;
|
|
23
22
|
width: ${(e) => e.progressPercentage + "%"};
|
|
24
|
-
background-color: ${(e) =>
|
|
23
|
+
background-color: ${(e) => a(
|
|
25
24
|
e.theme,
|
|
26
25
|
"Progress",
|
|
27
26
|
e.color,
|
|
@@ -38,84 +37,58 @@ const w = t.div`
|
|
|
38
37
|
top: 50%;
|
|
39
38
|
transform: translate(50%, -50%);
|
|
40
39
|
}
|
|
41
|
-
`,
|
|
40
|
+
`, z = t.label`
|
|
42
41
|
${(e) => x(e.theme, "Progress", e.size, "enabled")};
|
|
43
42
|
position: absolute;
|
|
44
43
|
top: 50%;
|
|
45
44
|
left: 50%;
|
|
46
45
|
transform: translate(-50%, -50%);
|
|
47
|
-
color: ${(e) =>
|
|
48
|
-
`,
|
|
46
|
+
color: ${(e) => a(e.theme, "Progress", e.color, "enabled", "text")};
|
|
47
|
+
`, R = u((e, v) => {
|
|
49
48
|
const {
|
|
50
|
-
id: T = "",
|
|
51
49
|
showLabel: i = !1,
|
|
52
|
-
progressPercentage:
|
|
53
|
-
className:
|
|
50
|
+
progressPercentage: s = 0,
|
|
51
|
+
className: m = "",
|
|
54
52
|
style: d = {},
|
|
55
|
-
onChange: j = () => {
|
|
56
|
-
},
|
|
57
53
|
size: l = "small",
|
|
58
|
-
color:
|
|
59
|
-
progressBarEndComponent:
|
|
60
|
-
...
|
|
61
|
-
} = e,
|
|
62
|
-
var
|
|
63
|
-
if (
|
|
64
|
-
return
|
|
65
|
-
className: `progress-icon ${(
|
|
54
|
+
color: g = "primary",
|
|
55
|
+
progressBarEndComponent: r,
|
|
56
|
+
...p
|
|
57
|
+
} = e, o = $(), b = () => {
|
|
58
|
+
var n;
|
|
59
|
+
if (f(r))
|
|
60
|
+
return P(r, {
|
|
61
|
+
className: `progress-icon ${(n = r == null ? void 0 : r.props) == null ? void 0 : n.className}`
|
|
66
62
|
});
|
|
67
63
|
};
|
|
68
|
-
return /* @__PURE__ */
|
|
64
|
+
return /* @__PURE__ */ c(
|
|
69
65
|
w,
|
|
70
66
|
{
|
|
71
67
|
style: d,
|
|
72
|
-
className: "lnc-ui-progress " +
|
|
73
|
-
theme:
|
|
68
|
+
className: "lnc-ui-progress " + m,
|
|
69
|
+
theme: o,
|
|
74
70
|
size: l,
|
|
75
71
|
showLabel: i,
|
|
76
|
-
progressPercentage:
|
|
77
|
-
...
|
|
72
|
+
progressPercentage: s,
|
|
73
|
+
...p,
|
|
78
74
|
children: [
|
|
79
75
|
/* @__PURE__ */ h(
|
|
80
|
-
|
|
76
|
+
y,
|
|
81
77
|
{
|
|
82
|
-
progressPercentage:
|
|
83
|
-
theme:
|
|
84
|
-
color:
|
|
85
|
-
children:
|
|
78
|
+
progressPercentage: s,
|
|
79
|
+
theme: o,
|
|
80
|
+
color: g,
|
|
81
|
+
children: r !== null && b()
|
|
86
82
|
}
|
|
87
83
|
),
|
|
88
|
-
i && /* @__PURE__ */
|
|
89
|
-
|
|
84
|
+
i && /* @__PURE__ */ c(z, { theme: o, size: l, children: [
|
|
85
|
+
s,
|
|
90
86
|
"%"
|
|
91
87
|
] })
|
|
92
88
|
]
|
|
93
89
|
}
|
|
94
90
|
);
|
|
95
91
|
});
|
|
96
|
-
N.propTypes = {
|
|
97
|
-
id: r.any,
|
|
98
|
-
showLabel: r.bool,
|
|
99
|
-
progressPercentage: r.number,
|
|
100
|
-
//-------------------------
|
|
101
|
-
onChange: r.func,
|
|
102
|
-
//-------------------------
|
|
103
|
-
className: r.string,
|
|
104
|
-
style: r.object,
|
|
105
|
-
size: r.oneOf(["small", "medium", "large"]),
|
|
106
|
-
color: r.oneOf([
|
|
107
|
-
"primary",
|
|
108
|
-
"secondary",
|
|
109
|
-
"success",
|
|
110
|
-
"danger",
|
|
111
|
-
"warning",
|
|
112
|
-
"disabled",
|
|
113
|
-
"information",
|
|
114
|
-
"neutral",
|
|
115
|
-
"gray"
|
|
116
|
-
]),
|
|
117
|
-
progressBarEndComponent: r.any
|
|
118
|
-
};
|
|
119
92
|
export {
|
|
120
|
-
|
|
93
|
+
R as default
|
|
121
94
|
};
|
package/dist/RadioGroup.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const o=require("react/jsx-runtime"),s=require("react"),_=require("./emotion-styled.browser.esm-BtEseadx.cjs"),j=require("./RadioInput.cjs"),I=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),k=_.styled.div`
|
|
2
2
|
display: inline-flex;
|
|
3
|
-
flex-direction: ${
|
|
3
|
+
flex-direction: ${n=>n.inline===!0?"row":"column"};
|
|
4
4
|
gap: 1.5rem;
|
|
5
5
|
width: fit-content;
|
|
6
6
|
box-sizing: border-box;
|
|
7
|
-
`,
|
|
7
|
+
`,z=s.forwardRef((n,i)=>{const{id:l="",name:a,value:r=null,disabled:c=!1,readOnly:d=!1,items:u=[],radioProps:m,inline:f=!0,onChange:t=()=>{},className:h="",style:p={},size:b="small",color:x="primary",...v}=n;var y=I.useTheme();const[g,q]=s.useState(null);s.useEffect(()=>{r!==g&&q(r)},[r]);var w={color:x,theme:y,size:b,disabled:c,readOnly:d};const C=e=>{t&&t(e)};return o.jsx(k,{ref:i,id:l,inline:f,style:p,className:h,...v,children:u.map((e,R)=>o.jsx(j,{...w,label:e.label,value:e.value,...m,onChange:C,name:a},R))})});module.exports=z;
|
package/dist/RadioGroup.js
CHANGED
|
@@ -1,104 +1,73 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
const N = R.div`
|
|
2
|
+
import { forwardRef as R, useState as k, useEffect as z } from "react";
|
|
3
|
+
import { s as P } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import j from "./RadioInput.js";
|
|
5
|
+
import { u as E } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
6
|
+
const G = P.div`
|
|
8
7
|
display: inline-flex;
|
|
9
8
|
flex-direction: ${(o) => o.inline === !0 ? "row" : "column"};
|
|
10
9
|
gap: 1.5rem;
|
|
11
10
|
width: fit-content;
|
|
12
11
|
box-sizing: border-box;
|
|
13
|
-
`,
|
|
12
|
+
`, q = R((o, n) => {
|
|
14
13
|
const {
|
|
15
14
|
id: t = "",
|
|
16
|
-
name:
|
|
15
|
+
name: i,
|
|
17
16
|
value: r = null,
|
|
18
|
-
disabled:
|
|
19
|
-
readOnly:
|
|
20
|
-
items:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
radioProps: c,
|
|
24
|
-
inline: f = !0,
|
|
17
|
+
disabled: s = !1,
|
|
18
|
+
readOnly: d = !1,
|
|
19
|
+
items: m = [],
|
|
20
|
+
radioProps: f,
|
|
21
|
+
inline: u = !0,
|
|
25
22
|
//----------------
|
|
26
|
-
onChange:
|
|
23
|
+
onChange: a = () => {
|
|
27
24
|
},
|
|
28
25
|
//----------------
|
|
29
|
-
className:
|
|
30
|
-
style:
|
|
31
|
-
size:
|
|
32
|
-
color:
|
|
26
|
+
className: c = "",
|
|
27
|
+
style: p = {},
|
|
28
|
+
size: h = "small",
|
|
29
|
+
color: b = "primary",
|
|
33
30
|
...v
|
|
34
31
|
} = o;
|
|
35
|
-
var x =
|
|
36
|
-
const [
|
|
32
|
+
var x = E();
|
|
33
|
+
const [g, y] = k(null);
|
|
37
34
|
z(() => {
|
|
38
|
-
r !==
|
|
35
|
+
r !== g && y(r);
|
|
39
36
|
}, [r]);
|
|
40
|
-
var
|
|
41
|
-
color:
|
|
37
|
+
var C = {
|
|
38
|
+
color: b,
|
|
42
39
|
theme: x,
|
|
43
|
-
size:
|
|
44
|
-
disabled:
|
|
45
|
-
readOnly:
|
|
40
|
+
size: h,
|
|
41
|
+
disabled: s,
|
|
42
|
+
readOnly: d
|
|
46
43
|
};
|
|
47
|
-
const w = (
|
|
48
|
-
|
|
44
|
+
const w = (e) => {
|
|
45
|
+
a && a(e);
|
|
49
46
|
};
|
|
50
47
|
return /* @__PURE__ */ l(
|
|
51
|
-
|
|
48
|
+
G,
|
|
52
49
|
{
|
|
53
|
-
ref:
|
|
50
|
+
ref: n,
|
|
54
51
|
id: t,
|
|
55
|
-
inline:
|
|
56
|
-
style:
|
|
57
|
-
className:
|
|
52
|
+
inline: u,
|
|
53
|
+
style: p,
|
|
54
|
+
className: c,
|
|
58
55
|
...v,
|
|
59
|
-
children:
|
|
60
|
-
|
|
56
|
+
children: m.map((e, I) => /* @__PURE__ */ l(
|
|
57
|
+
j,
|
|
61
58
|
{
|
|
62
|
-
...
|
|
63
|
-
label:
|
|
64
|
-
value:
|
|
65
|
-
...
|
|
59
|
+
...C,
|
|
60
|
+
label: e.label,
|
|
61
|
+
value: e.value,
|
|
62
|
+
...f,
|
|
66
63
|
onChange: w,
|
|
67
|
-
name:
|
|
64
|
+
name: i
|
|
68
65
|
},
|
|
69
|
-
|
|
66
|
+
I
|
|
70
67
|
))
|
|
71
68
|
}
|
|
72
69
|
);
|
|
73
70
|
});
|
|
74
|
-
V.propTypes = {
|
|
75
|
-
id: e.any,
|
|
76
|
-
name: e.string,
|
|
77
|
-
value: e.any,
|
|
78
|
-
disabled: e.bool,
|
|
79
|
-
readOnly: e.bool,
|
|
80
|
-
items: e.arrayOf(e.object),
|
|
81
|
-
mapid: e.any,
|
|
82
|
-
mapValue: e.string,
|
|
83
|
-
inline: e.bool,
|
|
84
|
-
//----------------
|
|
85
|
-
onChange: e.func,
|
|
86
|
-
//----------------
|
|
87
|
-
className: e.string,
|
|
88
|
-
style: e.object,
|
|
89
|
-
size: e.oneOf(["small", "medium", "large"]),
|
|
90
|
-
color: e.oneOf([
|
|
91
|
-
"primary",
|
|
92
|
-
"secondary",
|
|
93
|
-
"success",
|
|
94
|
-
"danger",
|
|
95
|
-
"warning",
|
|
96
|
-
"information",
|
|
97
|
-
"neutral",
|
|
98
|
-
"gray"
|
|
99
|
-
]),
|
|
100
|
-
radioProps: e.any
|
|
101
|
-
};
|
|
102
71
|
export {
|
|
103
|
-
|
|
72
|
+
q as default
|
|
104
73
|
};
|
package/dist/RadioInput.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
"use strict";const
|
|
2
|
-
min-height: ${e=>
|
|
3
|
-
max-height: ${e=>
|
|
1
|
+
"use strict";const l=require("react/jsx-runtime"),h=require("react"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),t=require("./utils-RnrgDDZP.cjs"),O=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),q=e=>e=="left"?"row-reverse":"row",B=g.styled.label`
|
|
2
|
+
min-height: ${e=>t.getSizeValueWithUnits(e.theme,e.size)};
|
|
3
|
+
max-height: ${e=>t.getSizeValueWithUnits(e.theme,e.size)};
|
|
4
4
|
width: 100%;
|
|
5
5
|
display: inline-flex;
|
|
6
6
|
justify-content: start;
|
|
7
7
|
align-items: center;
|
|
8
|
-
flex-direction: ${e=>
|
|
8
|
+
flex-direction: ${e=>q(e.labelPosition)};
|
|
9
9
|
${e=>e.spaceBetween===!0&&"justify-content: space-between;"}
|
|
10
10
|
gap: 0.5rem;
|
|
11
11
|
${e=>e.disabled===!0&&"pointer-events: none;"}
|
|
12
|
-
${e=>
|
|
12
|
+
${e=>t.getComponentTypographyCss(e.theme,"Radio",e.size,"enabled")};
|
|
13
13
|
gap: 0.75rem;
|
|
14
14
|
cursor: pointer;
|
|
15
15
|
position: relative;
|
|
@@ -33,49 +33,49 @@
|
|
|
33
33
|
justify-content: center;
|
|
34
34
|
align-items: center;
|
|
35
35
|
transition: all 0.2s ease;
|
|
36
|
-
${e=>e.focused===!0&&e.disabled!==!0&&e.readOnly!==!0?
|
|
36
|
+
${e=>e.focused===!0&&e.disabled!==!0&&e.readOnly!==!0?t.getOutlineCss(e.theme):""};
|
|
37
37
|
& svg {
|
|
38
38
|
fill: transparent;
|
|
39
39
|
& .outer-circle {
|
|
40
|
-
stroke: ${e=>
|
|
40
|
+
stroke: ${e=>t.getColorRgbaValue(e.theme,"Radio",e.color,"enabled","border")};
|
|
41
41
|
}
|
|
42
42
|
& .inner-circle {
|
|
43
|
-
stroke: ${e=>
|
|
43
|
+
stroke: ${e=>t.getColorRgbaValue(e.theme,"Radio",e.color,"enabled","border")};
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
& input:hover ~ .lnc-radio-input-label {
|
|
48
|
-
color: ${e=>
|
|
48
|
+
color: ${e=>t.getColorRgbaValue(e.theme,"Radio",e.color,"hover","text")};
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
& input:checked ~ .lnc-radio-input-label {
|
|
53
|
-
color: ${e=>
|
|
53
|
+
color: ${e=>t.getColorRgbaValue(e.theme,"Radio",e.color,"active","text")};
|
|
54
54
|
}
|
|
55
55
|
& input:checked ~ .checkmark {
|
|
56
56
|
& svg {
|
|
57
|
-
fill: ${e=>
|
|
57
|
+
fill: ${e=>t.getColorRgbaValue(e.theme,"Radio",e.color,"active","background","backgroundOpacity")};
|
|
58
58
|
& .outer-circle {
|
|
59
|
-
fill: ${e=>
|
|
59
|
+
fill: ${e=>t.getColorRgbaValue(e.theme,"Radio",e.color,"active","border")};
|
|
60
60
|
}
|
|
61
61
|
& .inner-circle {
|
|
62
|
-
fill: ${e=>e.innerColor==="white"||e.innerColor==="transparent"?e.innerColor:
|
|
62
|
+
fill: ${e=>e.innerColor==="white"||e.innerColor==="transparent"?e.innerColor:t.getColorRgbaValue(e.theme,"Radio",e.color,"active","border")}};
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
& input:disabled ~ .lnc-radio-input-label {
|
|
68
|
-
color: ${e=>
|
|
68
|
+
color: ${e=>t.getColorRgbaValue(e.theme,"Radio",e.color,"disabled","text")};
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
& input[disabled]:checked ~ .checkmark {
|
|
72
72
|
& svg {
|
|
73
|
-
fill: ${e=>
|
|
73
|
+
fill: ${e=>t.getColorRgbaValue(e.theme,"Radio",e.color,"disabled","background","backgroundOpacity")};
|
|
74
74
|
& .outer-circle {
|
|
75
|
-
fill: ${e=>
|
|
75
|
+
fill: ${e=>t.getColorRgbaValue(e.theme,"Radio",e.color,"disabled","border")};
|
|
76
76
|
}
|
|
77
77
|
& .inner-circle {
|
|
78
|
-
fill: ${e=>e.innerColor==="white"||e.innerColor==="transparent"?e.innerColor:
|
|
78
|
+
fill: ${e=>e.innerColor==="white"||e.innerColor==="transparent"?e.innerColor:t.getColorRgbaValue(e.theme,"Radio",e.color,"disabled","border")}
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
81
|
}
|
|
@@ -83,35 +83,35 @@
|
|
|
83
83
|
|
|
84
84
|
& input[disabled] ~ .checkmark {
|
|
85
85
|
& svg {
|
|
86
|
-
fill: ${e=>
|
|
86
|
+
fill: ${e=>t.getColorRgbaValue(e.theme,"Radio",e.color,"disabled","background","backgroundOpacity")};
|
|
87
87
|
& .outer-circle {
|
|
88
|
-
fill: ${e=>
|
|
88
|
+
fill: ${e=>t.getColorRgbaValue(e.theme,"Radio",e.color,"disabled","border")};
|
|
89
89
|
}
|
|
90
90
|
& .inner-circle {
|
|
91
|
-
fill: ${e=>
|
|
92
|
-
};
|
|
91
|
+
fill: ${e=>t.getColorRgbaValue(e.theme,"Radio",e.color,"disabled","border")};
|
|
93
92
|
}
|
|
94
93
|
}
|
|
95
94
|
|
|
96
95
|
& input:hover ~ .lnc-radio-input-label {
|
|
97
|
-
color: ${e=>
|
|
96
|
+
color: ${e=>t.getColorRgbaValue(e.theme,"Radio",e.color,"hover","text")};
|
|
98
97
|
}
|
|
99
98
|
& input[hover]:checked ~ .checkmark {
|
|
100
99
|
& svg {
|
|
101
|
-
fill: ${e=>
|
|
100
|
+
fill: ${e=>t.getColorRgbaValue(e.theme,"Radio",e.color,"hover","background","backgroundOpacity")};
|
|
102
101
|
& .outer-circle {
|
|
103
|
-
fill: ${e=>
|
|
102
|
+
fill: ${e=>t.getColorRgbaValue(e.theme,"Radio",e.color,"disabled","border")};
|
|
104
103
|
}
|
|
105
104
|
& .inner-circle {
|
|
106
|
-
fill: ${e=>e.innerColor==="white"||e.innerColor==="transparent"?e.innerColor:
|
|
105
|
+
fill: ${e=>e.innerColor==="white"||e.innerColor==="transparent"?e.innerColor:t.getColorRgbaValue(e.theme,"Radio",e.color,"disabled","border")};
|
|
107
106
|
}
|
|
108
107
|
}
|
|
109
|
-
|
|
108
|
+
}
|
|
109
|
+
`,N=g.styled.label`
|
|
110
110
|
${e=>e.disabled!==!0&&e.readOnly!==!0&&"cursor: pointer"};
|
|
111
111
|
min-width: 0;
|
|
112
112
|
flex-shrink: 1;
|
|
113
113
|
min-height: 0;
|
|
114
114
|
overflow: hidden;
|
|
115
115
|
text-overflow: ellipsis;
|
|
116
|
-
color: ${e=>
|
|
117
|
-
`,
|
|
116
|
+
color: ${e=>t.getColorRgbaValue(e.theme,"Radio",e.color,"enabled","text")};
|
|
117
|
+
`,P=h.forwardRef((e,m)=>{const{wrapperRef:R,className:f="",style:C={},color:$="primary",innerColor:k="white",size:x="small",onChange:a,onFocus:o,onBlur:r,onClick:n,label:s,labelPosition:v="right",spaceBetween:w,disabled:c,readOnly:d,...y}=e,[V,u]=h.useState(!1);var b={theme:O.useTheme(),size:x,color:$,disabled:c,labelPosition:v,spaceBetween:w};const z=i=>{u(!1),r&&(r==null||r(i))},j=i=>{u(!0),o&&(o==null||o(i))};return l.jsxs(B,{...b,ref:R,className:f,style:C,tabIndex:-1,readOnly:d,focused:V,onClick:i=>n==null?void 0:n(i),innerColor:k,children:[l.jsx("input",{ref:m,disabled:c||d,type:"radio",onBlur:z,onFocus:j,onChange:i=>a==null?void 0:a(i),...y}),l.jsx("div",{className:"checkmark",children:l.jsxs("svg",{id:"eqw1eBsfm9l1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",children:[l.jsx("ellipse",{className:"outer-circle",rx:"9.5",ry:"9.5",transform:"translate(10 10)",fillRule:"evenodd",stroke:"red"}),l.jsx("ellipse",{rx:"5",ry:"5",transform:"translate(10 10)",className:"inner-circle",strokeWidth:"0"})]})}),l.jsx(N,{...b,className:"lnc-radio-input-label",disalbed:c,readOnly:d,title:s,tabIndex:-1,children:s})]})});module.exports=P;
|