@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/RadioInput.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s as
|
|
4
|
-
import { P as i } from "./
|
|
5
|
-
import { d as f, c as N, e as T, b as t } from "./utils-DtEfC-TX.js";
|
|
1
|
+
import { jsxs as u, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as B, useState as j } from "react";
|
|
3
|
+
import { s as f } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { d as b, c as N, e as P, b as i } from "./utils-DtEfC-TX.js";
|
|
6
5
|
import { u as F } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
|
-
const I = (e) => e == "left" ? "row-reverse" : "row",
|
|
8
|
-
min-height: ${(e) =>
|
|
9
|
-
max-height: ${(e) =>
|
|
6
|
+
const I = (e) => e == "left" ? "row-reverse" : "row", L = f.label`
|
|
7
|
+
min-height: ${(e) => b(e.theme, e.size)};
|
|
8
|
+
max-height: ${(e) => b(e.theme, e.size)};
|
|
10
9
|
width: 100%;
|
|
11
10
|
display: inline-flex;
|
|
12
11
|
justify-content: start;
|
|
@@ -39,11 +38,11 @@ const I = (e) => e == "left" ? "row-reverse" : "row", D = g.label`
|
|
|
39
38
|
justify-content: center;
|
|
40
39
|
align-items: center;
|
|
41
40
|
transition: all 0.2s ease;
|
|
42
|
-
${(e) => e.focused === !0 && e.disabled !== !0 && e.readOnly !== !0 ?
|
|
41
|
+
${(e) => e.focused === !0 && e.disabled !== !0 && e.readOnly !== !0 ? P(e.theme) : ""};
|
|
43
42
|
& svg {
|
|
44
43
|
fill: transparent;
|
|
45
44
|
& .outer-circle {
|
|
46
|
-
stroke: ${(e) =>
|
|
45
|
+
stroke: ${(e) => i(
|
|
47
46
|
e.theme,
|
|
48
47
|
"Radio",
|
|
49
48
|
e.color,
|
|
@@ -52,7 +51,7 @@ const I = (e) => e == "left" ? "row-reverse" : "row", D = g.label`
|
|
|
52
51
|
)};
|
|
53
52
|
}
|
|
54
53
|
& .inner-circle {
|
|
55
|
-
stroke: ${(e) =>
|
|
54
|
+
stroke: ${(e) => i(
|
|
56
55
|
e.theme,
|
|
57
56
|
"Radio",
|
|
58
57
|
e.color,
|
|
@@ -63,16 +62,16 @@ const I = (e) => e == "left" ? "row-reverse" : "row", D = g.label`
|
|
|
63
62
|
}
|
|
64
63
|
}
|
|
65
64
|
& input:hover ~ .lnc-radio-input-label {
|
|
66
|
-
color: ${(e) =>
|
|
65
|
+
color: ${(e) => i(e.theme, "Radio", e.color, "hover", "text")};
|
|
67
66
|
}
|
|
68
67
|
|
|
69
68
|
|
|
70
69
|
& input:checked ~ .lnc-radio-input-label {
|
|
71
|
-
color: ${(e) =>
|
|
70
|
+
color: ${(e) => i(e.theme, "Radio", e.color, "active", "text")};
|
|
72
71
|
}
|
|
73
72
|
& input:checked ~ .checkmark {
|
|
74
73
|
& svg {
|
|
75
|
-
fill: ${(e) =>
|
|
74
|
+
fill: ${(e) => i(
|
|
76
75
|
e.theme,
|
|
77
76
|
"Radio",
|
|
78
77
|
e.color,
|
|
@@ -81,7 +80,7 @@ const I = (e) => e == "left" ? "row-reverse" : "row", D = g.label`
|
|
|
81
80
|
"backgroundOpacity"
|
|
82
81
|
)};
|
|
83
82
|
& .outer-circle {
|
|
84
|
-
fill: ${(e) =>
|
|
83
|
+
fill: ${(e) => i(
|
|
85
84
|
e.theme,
|
|
86
85
|
"Radio",
|
|
87
86
|
e.color,
|
|
@@ -90,7 +89,7 @@ const I = (e) => e == "left" ? "row-reverse" : "row", D = g.label`
|
|
|
90
89
|
)};
|
|
91
90
|
}
|
|
92
91
|
& .inner-circle {
|
|
93
|
-
fill: ${(e) => e.innerColor === "white" || e.innerColor === "transparent" ? e.innerColor :
|
|
92
|
+
fill: ${(e) => e.innerColor === "white" || e.innerColor === "transparent" ? e.innerColor : i(
|
|
94
93
|
e.theme,
|
|
95
94
|
"Radio",
|
|
96
95
|
e.color,
|
|
@@ -102,12 +101,12 @@ const I = (e) => e == "left" ? "row-reverse" : "row", D = g.label`
|
|
|
102
101
|
}
|
|
103
102
|
|
|
104
103
|
& input:disabled ~ .lnc-radio-input-label {
|
|
105
|
-
color: ${(e) =>
|
|
104
|
+
color: ${(e) => i(e.theme, "Radio", e.color, "disabled", "text")};
|
|
106
105
|
}
|
|
107
106
|
|
|
108
107
|
& input[disabled]:checked ~ .checkmark {
|
|
109
108
|
& svg {
|
|
110
|
-
fill: ${(e) =>
|
|
109
|
+
fill: ${(e) => i(
|
|
111
110
|
e.theme,
|
|
112
111
|
"Radio",
|
|
113
112
|
e.color,
|
|
@@ -116,7 +115,7 @@ const I = (e) => e == "left" ? "row-reverse" : "row", D = g.label`
|
|
|
116
115
|
"backgroundOpacity"
|
|
117
116
|
)};
|
|
118
117
|
& .outer-circle {
|
|
119
|
-
fill: ${(e) =>
|
|
118
|
+
fill: ${(e) => i(
|
|
120
119
|
e.theme,
|
|
121
120
|
"Radio",
|
|
122
121
|
e.color,
|
|
@@ -125,7 +124,7 @@ const I = (e) => e == "left" ? "row-reverse" : "row", D = g.label`
|
|
|
125
124
|
)};
|
|
126
125
|
}
|
|
127
126
|
& .inner-circle {
|
|
128
|
-
fill: ${(e) => e.innerColor === "white" || e.innerColor === "transparent" ? e.innerColor :
|
|
127
|
+
fill: ${(e) => e.innerColor === "white" || e.innerColor === "transparent" ? e.innerColor : i(
|
|
129
128
|
e.theme,
|
|
130
129
|
"Radio",
|
|
131
130
|
e.color,
|
|
@@ -139,7 +138,7 @@ const I = (e) => e == "left" ? "row-reverse" : "row", D = g.label`
|
|
|
139
138
|
|
|
140
139
|
& input[disabled] ~ .checkmark {
|
|
141
140
|
& svg {
|
|
142
|
-
fill: ${(e) =>
|
|
141
|
+
fill: ${(e) => i(
|
|
143
142
|
e.theme,
|
|
144
143
|
"Radio",
|
|
145
144
|
e.color,
|
|
@@ -148,7 +147,7 @@ const I = (e) => e == "left" ? "row-reverse" : "row", D = g.label`
|
|
|
148
147
|
"backgroundOpacity"
|
|
149
148
|
)};
|
|
150
149
|
& .outer-circle {
|
|
151
|
-
fill: ${(e) =>
|
|
150
|
+
fill: ${(e) => i(
|
|
152
151
|
e.theme,
|
|
153
152
|
"Radio",
|
|
154
153
|
e.color,
|
|
@@ -157,23 +156,22 @@ const I = (e) => e == "left" ? "row-reverse" : "row", D = g.label`
|
|
|
157
156
|
)};
|
|
158
157
|
}
|
|
159
158
|
& .inner-circle {
|
|
160
|
-
fill: ${(e) =>
|
|
159
|
+
fill: ${(e) => i(
|
|
161
160
|
e.theme,
|
|
162
161
|
"Radio",
|
|
163
162
|
e.color,
|
|
164
163
|
"disabled",
|
|
165
164
|
"border"
|
|
166
|
-
)}
|
|
167
|
-
};
|
|
165
|
+
)};
|
|
168
166
|
}
|
|
169
167
|
}
|
|
170
168
|
|
|
171
169
|
& input:hover ~ .lnc-radio-input-label {
|
|
172
|
-
color: ${(e) =>
|
|
170
|
+
color: ${(e) => i(e.theme, "Radio", e.color, "hover", "text")};
|
|
173
171
|
}
|
|
174
172
|
& input[hover]:checked ~ .checkmark {
|
|
175
173
|
& svg {
|
|
176
|
-
fill: ${(e) =>
|
|
174
|
+
fill: ${(e) => i(
|
|
177
175
|
e.theme,
|
|
178
176
|
"Radio",
|
|
179
177
|
e.color,
|
|
@@ -182,7 +180,7 @@ const I = (e) => e == "left" ? "row-reverse" : "row", D = g.label`
|
|
|
182
180
|
"backgroundOpacity"
|
|
183
181
|
)};
|
|
184
182
|
& .outer-circle {
|
|
185
|
-
fill: ${(e) =>
|
|
183
|
+
fill: ${(e) => i(
|
|
186
184
|
e.theme,
|
|
187
185
|
"Radio",
|
|
188
186
|
e.color,
|
|
@@ -191,81 +189,81 @@ const I = (e) => e == "left" ? "row-reverse" : "row", D = g.label`
|
|
|
191
189
|
)};
|
|
192
190
|
}
|
|
193
191
|
& .inner-circle {
|
|
194
|
-
fill: ${(e) => e.innerColor === "white" || e.innerColor === "transparent" ? e.innerColor :
|
|
192
|
+
fill: ${(e) => e.innerColor === "white" || e.innerColor === "transparent" ? e.innerColor : i(
|
|
195
193
|
e.theme,
|
|
196
194
|
"Radio",
|
|
197
195
|
e.color,
|
|
198
196
|
"disabled",
|
|
199
197
|
"border"
|
|
200
|
-
)}
|
|
198
|
+
)};
|
|
201
199
|
}
|
|
202
200
|
}
|
|
203
|
-
|
|
201
|
+
}
|
|
202
|
+
`, S = f.label`
|
|
204
203
|
${(e) => e.disabled !== !0 && e.readOnly !== !0 && "cursor: pointer"};
|
|
205
204
|
min-width: 0;
|
|
206
205
|
flex-shrink: 1;
|
|
207
206
|
min-height: 0;
|
|
208
207
|
overflow: hidden;
|
|
209
208
|
text-overflow: ellipsis;
|
|
210
|
-
color: ${(e) =>
|
|
211
|
-
`,
|
|
209
|
+
color: ${(e) => i(e.theme, "Radio", e.color, "enabled", "text")};
|
|
210
|
+
`, G = B((e, g) => {
|
|
212
211
|
const {
|
|
213
|
-
wrapperRef:
|
|
214
|
-
className:
|
|
215
|
-
style:
|
|
216
|
-
color:
|
|
217
|
-
innerColor:
|
|
212
|
+
wrapperRef: R,
|
|
213
|
+
className: $ = "",
|
|
214
|
+
style: k = {},
|
|
215
|
+
color: v = "primary",
|
|
216
|
+
innerColor: w = "white",
|
|
218
217
|
size: x = "small",
|
|
219
|
-
onChange:
|
|
220
|
-
onFocus:
|
|
221
|
-
onBlur:
|
|
222
|
-
onClick:
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
spaceBetween: O,
|
|
218
|
+
onChange: n,
|
|
219
|
+
onFocus: r,
|
|
220
|
+
onBlur: o,
|
|
221
|
+
onClick: a,
|
|
222
|
+
label: s,
|
|
223
|
+
labelPosition: y = "right",
|
|
224
|
+
spaceBetween: C,
|
|
227
225
|
disabled: d,
|
|
228
|
-
readOnly:
|
|
226
|
+
readOnly: c,
|
|
229
227
|
...z
|
|
230
|
-
} = e, [
|
|
231
|
-
var
|
|
228
|
+
} = e, [O, h] = j(!1);
|
|
229
|
+
var m = {
|
|
232
230
|
theme: F(),
|
|
233
231
|
size: x,
|
|
234
|
-
color:
|
|
232
|
+
color: v,
|
|
235
233
|
disabled: d,
|
|
236
|
-
labelPosition:
|
|
237
|
-
spaceBetween:
|
|
234
|
+
labelPosition: y,
|
|
235
|
+
spaceBetween: C
|
|
238
236
|
};
|
|
239
|
-
return /* @__PURE__ */
|
|
240
|
-
|
|
237
|
+
return /* @__PURE__ */ u(
|
|
238
|
+
L,
|
|
241
239
|
{
|
|
242
|
-
...
|
|
243
|
-
ref:
|
|
244
|
-
className:
|
|
245
|
-
style:
|
|
240
|
+
...m,
|
|
241
|
+
ref: R,
|
|
242
|
+
className: $,
|
|
243
|
+
style: k,
|
|
246
244
|
tabIndex: -1,
|
|
247
|
-
readOnly:
|
|
248
|
-
focused:
|
|
249
|
-
onClick: (
|
|
250
|
-
innerColor:
|
|
245
|
+
readOnly: c,
|
|
246
|
+
focused: O,
|
|
247
|
+
onClick: (t) => a == null ? void 0 : a(t),
|
|
248
|
+
innerColor: w,
|
|
251
249
|
children: [
|
|
252
|
-
/* @__PURE__ */
|
|
250
|
+
/* @__PURE__ */ l(
|
|
253
251
|
"input",
|
|
254
252
|
{
|
|
255
|
-
ref:
|
|
256
|
-
disabled: d ||
|
|
253
|
+
ref: g,
|
|
254
|
+
disabled: d || c,
|
|
257
255
|
type: "radio",
|
|
258
|
-
onBlur: (
|
|
259
|
-
|
|
256
|
+
onBlur: (t) => {
|
|
257
|
+
h(!1), o && (o == null || o(t));
|
|
260
258
|
},
|
|
261
|
-
onFocus: (
|
|
262
|
-
|
|
259
|
+
onFocus: (t) => {
|
|
260
|
+
h(!0), r && (r == null || r(t));
|
|
263
261
|
},
|
|
264
|
-
onChange: (
|
|
262
|
+
onChange: (t) => n == null ? void 0 : n(t),
|
|
265
263
|
...z
|
|
266
264
|
}
|
|
267
265
|
),
|
|
268
|
-
/* @__PURE__ */
|
|
266
|
+
/* @__PURE__ */ l("div", { className: "checkmark", children: /* @__PURE__ */ u(
|
|
269
267
|
"svg",
|
|
270
268
|
{
|
|
271
269
|
id: "eqw1eBsfm9l1",
|
|
@@ -274,7 +272,7 @@ const I = (e) => e == "left" ? "row-reverse" : "row", D = g.label`
|
|
|
274
272
|
shapeRendering: "geometricPrecision",
|
|
275
273
|
textRendering: "geometricPrecision",
|
|
276
274
|
children: [
|
|
277
|
-
/* @__PURE__ */
|
|
275
|
+
/* @__PURE__ */ l(
|
|
278
276
|
"ellipse",
|
|
279
277
|
{
|
|
280
278
|
className: "outer-circle",
|
|
@@ -285,7 +283,7 @@ const I = (e) => e == "left" ? "row-reverse" : "row", D = g.label`
|
|
|
285
283
|
stroke: "red"
|
|
286
284
|
}
|
|
287
285
|
),
|
|
288
|
-
/* @__PURE__ */
|
|
286
|
+
/* @__PURE__ */ l(
|
|
289
287
|
"ellipse",
|
|
290
288
|
{
|
|
291
289
|
rx: "5",
|
|
@@ -298,65 +296,22 @@ const I = (e) => e == "left" ? "row-reverse" : "row", D = g.label`
|
|
|
298
296
|
]
|
|
299
297
|
}
|
|
300
298
|
) }),
|
|
301
|
-
/* @__PURE__ */
|
|
302
|
-
|
|
299
|
+
/* @__PURE__ */ l(
|
|
300
|
+
S,
|
|
303
301
|
{
|
|
304
|
-
...
|
|
302
|
+
...m,
|
|
305
303
|
className: "lnc-radio-input-label",
|
|
306
304
|
disalbed: d,
|
|
307
|
-
readOnly:
|
|
308
|
-
title:
|
|
305
|
+
readOnly: c,
|
|
306
|
+
title: s,
|
|
309
307
|
tabIndex: -1,
|
|
310
|
-
children:
|
|
308
|
+
children: s
|
|
311
309
|
}
|
|
312
310
|
)
|
|
313
311
|
]
|
|
314
312
|
}
|
|
315
313
|
);
|
|
316
314
|
});
|
|
317
|
-
L.propTypes = {
|
|
318
|
-
id: i.any,
|
|
319
|
-
name: i.string,
|
|
320
|
-
checked: i.bool,
|
|
321
|
-
disabled: i.bool,
|
|
322
|
-
readOnly: i.bool,
|
|
323
|
-
label: i.oneOfType([i.string, i.element]),
|
|
324
|
-
labelPosition: i.oneOf(["right", "left"]),
|
|
325
|
-
tabIndex: i.number,
|
|
326
|
-
spaceBetween: i.bool,
|
|
327
|
-
//-------------------------
|
|
328
|
-
onChange: i.func,
|
|
329
|
-
onFocus: i.func,
|
|
330
|
-
onBlur: i.func,
|
|
331
|
-
onClick: i.func,
|
|
332
|
-
onKeyDown: i.func,
|
|
333
|
-
//-------------------------
|
|
334
|
-
className: i.string,
|
|
335
|
-
style: i.object,
|
|
336
|
-
size: i.oneOf(["small", "medium", "large"]),
|
|
337
|
-
color: i.oneOf([
|
|
338
|
-
"primary",
|
|
339
|
-
"secondary",
|
|
340
|
-
"success",
|
|
341
|
-
"danger",
|
|
342
|
-
"warning",
|
|
343
|
-
"information",
|
|
344
|
-
"neutral",
|
|
345
|
-
"gray"
|
|
346
|
-
]),
|
|
347
|
-
innerColor: i.oneOf([
|
|
348
|
-
"primary",
|
|
349
|
-
"secondary",
|
|
350
|
-
"success",
|
|
351
|
-
"danger",
|
|
352
|
-
"warning",
|
|
353
|
-
"information",
|
|
354
|
-
"neutral",
|
|
355
|
-
"gray",
|
|
356
|
-
"white",
|
|
357
|
-
"transparent"
|
|
358
|
-
])
|
|
359
|
-
};
|
|
360
315
|
export {
|
|
361
|
-
|
|
316
|
+
G as default
|
|
362
317
|
};
|
package/dist/RangeSlider.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";const
|
|
2
|
-
min-height: ${
|
|
3
|
-
max-height: ${
|
|
4
|
-
`},
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),x=require("./emotion-styled.browser.esm-BtEseadx.cjs"),r=require("react"),a=require("./utils-RnrgDDZP.cjs"),F=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),U=require("./useUpdateEffect-BtMgpgIV.cjs"),_=({theme:e,size:i})=>{var u=a.getSizeValueWithUnits(e,i);return`
|
|
2
|
+
min-height: ${u};
|
|
3
|
+
max-height: ${u};
|
|
4
|
+
`},g={small:"0.875rem",medium:"1.125rem",large:"1.375rem"},T=x.styled.div`
|
|
5
5
|
position: relative;
|
|
6
|
-
${e=>
|
|
6
|
+
${e=>_(e)};
|
|
7
7
|
display: inline-flex;
|
|
8
8
|
align-items: center;
|
|
9
|
-
`,
|
|
9
|
+
`,E=x.styled.input`
|
|
10
10
|
-webkit-appearance: none; /* Override default CSS styles */
|
|
11
11
|
appearance: none;
|
|
12
12
|
width: 100%; /* Full-width */
|
|
@@ -17,37 +17,37 @@
|
|
|
17
17
|
background: ${e=>e.rangeBackground};
|
|
18
18
|
transition: background 450ms ease-in;
|
|
19
19
|
-webkit-appearance: none;
|
|
20
|
-
border-radius: ${e=>
|
|
20
|
+
border-radius: ${e=>a.getBorderRadiusValueWithUnits(e.theme,"regular")};
|
|
21
21
|
&::-webkit-slider-thumb {
|
|
22
22
|
-webkit-appearance: none; /* Override default look */
|
|
23
23
|
appearance: none;
|
|
24
|
-
width: ${e=>
|
|
25
|
-
height: ${e=>
|
|
24
|
+
width: ${e=>g[e.size]}; /* Set a specific slider handle width */
|
|
25
|
+
height: ${e=>g[e.size]}; /* Slider handle height */
|
|
26
26
|
border-radius: 50%;
|
|
27
|
-
background-color: ${e=>
|
|
27
|
+
background-color: ${e=>a.getColorRgbaValue(e.theme,"Range",e.color,e.disabled===!0?"disabled":"enabled","background","backgroundOpacity")};
|
|
28
28
|
cursor: pointer; /* Cursor on hover */
|
|
29
29
|
border: none;
|
|
30
30
|
}
|
|
31
31
|
&::-moz-range-thumb {
|
|
32
|
-
width: ${e=>
|
|
33
|
-
height: ${e=>
|
|
32
|
+
width: ${e=>g[e.size]}; /* Set a specific slider handle width */
|
|
33
|
+
height: ${e=>g[e.size]}; /* Slider handle height */
|
|
34
34
|
border-radius: 50%;
|
|
35
|
-
background-color: ${e=>
|
|
35
|
+
background-color: ${e=>a.getColorRgbaValue(e.theme,"Range",e.color,e.disabled===!0?"disabled":"enabled","background","backgroundOpacity")};
|
|
36
36
|
cursor: pointer; /* Cursor on hover */
|
|
37
37
|
border: none;
|
|
38
38
|
}
|
|
39
|
-
`,
|
|
39
|
+
`,L=x.styled.div`
|
|
40
40
|
display: flex;
|
|
41
41
|
flex-direction: column;
|
|
42
42
|
align-items: center;
|
|
43
43
|
position: absolute;
|
|
44
|
-
${e=>
|
|
44
|
+
${e=>a.getComponentTypographyCss(e.theme,"Range",e.size,"enabled")};
|
|
45
45
|
left: ${e=>`calc(${e.inputValue+"%"} + (${8-e.inputValue*.15}px))`};
|
|
46
|
-
top: ${e=>"calc(-"+
|
|
46
|
+
top: ${e=>"calc(-"+g[e.size]+")"};
|
|
47
47
|
transform: translateX(-50%);
|
|
48
48
|
& > .text-content {
|
|
49
49
|
color: white;
|
|
50
|
-
background-color: ${e=>
|
|
50
|
+
background-color: ${e=>a.getColorRgbaValue(e.theme,"Range",e.color,e.disabled===!0?"disabled":"enabled","background")};
|
|
51
51
|
border-radius: 3px;
|
|
52
52
|
z-index: 2;
|
|
53
53
|
padding: 2px 6px;
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
& > .inner {
|
|
60
60
|
width: 8px;
|
|
61
61
|
height: 8px;
|
|
62
|
-
background: ${e=>
|
|
62
|
+
background: ${e=>a.getColorRgbaValue(e.theme,"Range",e.color,e.disabled===!0?"disabled":"enabled","background")};
|
|
63
63
|
transform: rotate(45deg);
|
|
64
64
|
position: absolute;
|
|
65
65
|
top: -6px;
|
|
@@ -69,4 +69,4 @@
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
`,
|
|
72
|
+
`,W=r.forwardRef((e,i)=>{const{defaultValue:u,value:s=null,min:c=0,max:h=100,disabled:l,tabIndex:v=0,onChange:R=()=>{},onInput:k=()=>{},color:d="primary",size:q="small",className:O="",style:M={},...$}=e,C=r.useRef(),b=F.useTheme(),m={theme:b,size:q,color:d,className:O,style:M},w=a.getColorRgbaValue(b,"Range",d,"enabled","unfilled"),[S,N]=r.useState(a.getColorRgbaValue(b,"Range",d,l?"disabled":"enabled","background")),[y,P]=r.useState(),[B,p]=r.useState(),f=r.useCallback(n=>Math.round((n-c)/(h-c)*100),[c,h]),[o,V]=r.useState(s||u);U.useUpdateEffect(()=>{V(s)},[s]),r.useEffect(()=>{j(o||0)},[o,f,l,d]),r.useEffect(()=>{N(a.getColorRgbaValue(b,"Range",d,l?"disabled":"enabled","background"))},[d,l]);const z=n=>{j(n.target.value),k&&k(n)},j=n=>{P(`linear-gradient(to right, ${S} 0%, ${S} ${f(n)}%, ${w} ${f(n)}%, ${w} 100%)`)},I=n=>{V(n.target.value),R&&R(n)};return t.jsxs(T,{...m,children:[B&&o&&t.jsx(t.Fragment,{children:t.jsxs(L,{...m,inputValue:f(o),children:[t.jsx("div",{className:"text-content",children:o}),t.jsx("div",{className:"arrow",children:t.jsx("div",{className:"outer",children:t.jsx("div",{className:"inner"})})})]})}),s==null||s=="undefined"?t.jsx(E,{ref:i||C,id:"fader",type:"range",min:c,max:h,defaultValue:u,disabled:l,tabIndex:v,onMouseEnter:()=>{p(!0)},onMouseLeave:()=>{p(!1)},rangeBackground:y,onInput:z,onChange:I,...m,...$}):t.jsx(E,{ref:i||C,id:"fader",type:"range",min:c,max:h,value:o,disabled:l,tabIndex:v,onMouseEnter:()=>{p(!0)},onMouseLeave:()=>{p(!1)},rangeBackground:y,onInput:z,onChange:I,...m,...$})]})});module.exports=W;
|