@lanaco/lnc-react-ui 4.0.198 → 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 +6 -5
- package/dist/ToggleSection.js +49 -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
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as N } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import P from "./Avatar.js";
|
|
3
|
+
import { s as w } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import $ from "./Icon.js";
|
|
5
|
+
import { c as y, b as a, g as v } from "./utils-DtEfC-TX.js";
|
|
6
|
+
import B from "./Avatar.js";
|
|
8
7
|
import { u as z } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
9
|
-
const
|
|
10
|
-
${(
|
|
8
|
+
const C = w.div`
|
|
9
|
+
${(i) => y(i.theme, "Notification", "small", "enabled")};
|
|
11
10
|
|
|
12
11
|
word-wrap: break-word;
|
|
13
12
|
box-sizing: border-box;
|
|
@@ -17,23 +16,23 @@ const T = v.div`
|
|
|
17
16
|
|
|
18
17
|
& .notification-actions {
|
|
19
18
|
align-items: center;
|
|
20
|
-
${(
|
|
21
|
-
flex-direction: ${(
|
|
22
|
-
${(
|
|
23
|
-
${(
|
|
24
|
-
gap: ${(
|
|
19
|
+
${(i) => i.sideButtons && "margin: -14px"};
|
|
20
|
+
flex-direction: ${(i) => i.sideButtons ? "column" : "row"};
|
|
21
|
+
${(i) => i.sideButtons && "margin-left: auto"};
|
|
22
|
+
${(i) => i.inlineActions == !1 && i.sideButtons == !1 && "padding-top: 4px"};
|
|
23
|
+
gap: ${(i) => i.sideButtons ? "0" : "1rem"};
|
|
25
24
|
display: flex;
|
|
26
25
|
|
|
27
|
-
color: ${(
|
|
28
|
-
|
|
26
|
+
color: ${(i) => a(
|
|
27
|
+
i.theme,
|
|
29
28
|
"Notification",
|
|
30
|
-
|
|
29
|
+
i.color,
|
|
31
30
|
"enabled",
|
|
32
31
|
"action"
|
|
33
32
|
)};
|
|
34
33
|
|
|
35
34
|
& > button {
|
|
36
|
-
${(
|
|
35
|
+
${(i) => i.sideButtons && "flex: 1; width: 100%;"}
|
|
37
36
|
}
|
|
38
37
|
}
|
|
39
38
|
& .notification-main {
|
|
@@ -46,10 +45,10 @@ const T = v.div`
|
|
|
46
45
|
display: flex;
|
|
47
46
|
flex-direction: column;
|
|
48
47
|
gap: 0.25rem;
|
|
49
|
-
color: ${(
|
|
50
|
-
|
|
48
|
+
color: ${(i) => a(
|
|
49
|
+
i.theme,
|
|
51
50
|
"Notification",
|
|
52
|
-
|
|
51
|
+
i.color,
|
|
53
52
|
"enabled",
|
|
54
53
|
"text"
|
|
55
54
|
)};
|
|
@@ -61,72 +60,56 @@ const T = v.div`
|
|
|
61
60
|
}
|
|
62
61
|
}
|
|
63
62
|
& .notification-title {
|
|
64
|
-
font-weight: ${(
|
|
65
|
-
|
|
63
|
+
font-weight: ${(i) => v(
|
|
64
|
+
i.theme,
|
|
66
65
|
"Notification",
|
|
67
|
-
|
|
66
|
+
i.color,
|
|
68
67
|
"enabled",
|
|
69
68
|
"fontWeightTitle"
|
|
70
69
|
)};
|
|
71
|
-
color: ${(
|
|
72
|
-
|
|
70
|
+
color: ${(i) => a(
|
|
71
|
+
i.theme,
|
|
73
72
|
"Notification",
|
|
74
|
-
|
|
73
|
+
i.color,
|
|
75
74
|
"enabled",
|
|
76
75
|
"title"
|
|
77
76
|
)};
|
|
78
77
|
}
|
|
79
|
-
`,
|
|
78
|
+
`, V = N((i, c) => {
|
|
80
79
|
const {
|
|
81
|
-
title:
|
|
82
|
-
icon:
|
|
83
|
-
className:
|
|
84
|
-
style:
|
|
85
|
-
size:
|
|
80
|
+
title: r,
|
|
81
|
+
icon: s,
|
|
82
|
+
className: m,
|
|
83
|
+
style: f = {},
|
|
84
|
+
size: d = "small",
|
|
86
85
|
avatar: g = !1,
|
|
87
|
-
actions:
|
|
86
|
+
actions: l,
|
|
88
87
|
inlineActions: e = !1,
|
|
89
|
-
sideButtons:
|
|
90
|
-
iconProps:
|
|
88
|
+
sideButtons: o = !1,
|
|
89
|
+
iconProps: p,
|
|
91
90
|
avatarProps: h,
|
|
92
91
|
children: u,
|
|
93
92
|
...x
|
|
94
|
-
} =
|
|
93
|
+
} = i, b = {
|
|
95
94
|
theme: z(),
|
|
96
|
-
className:
|
|
97
|
-
style:
|
|
98
|
-
size:
|
|
95
|
+
className: m,
|
|
96
|
+
style: f,
|
|
97
|
+
size: d,
|
|
99
98
|
inlineActions: e,
|
|
100
|
-
sideButtons:
|
|
99
|
+
sideButtons: o
|
|
101
100
|
};
|
|
102
|
-
return /* @__PURE__ */
|
|
103
|
-
/* @__PURE__ */
|
|
104
|
-
g ? /* @__PURE__ */
|
|
105
|
-
/* @__PURE__ */
|
|
106
|
-
/* @__PURE__ */
|
|
101
|
+
return /* @__PURE__ */ n(C, { ref: c, ...b, ...x, children: [
|
|
102
|
+
/* @__PURE__ */ n("div", { className: "notification-main", children: [
|
|
103
|
+
g ? /* @__PURE__ */ t(B, { sizeInUnits: "2.75rem", ...h }) : s && /* @__PURE__ */ t($, { className: "notification-icon", icon: s, ...p }),
|
|
104
|
+
/* @__PURE__ */ n("div", { className: "notification-content", children: [
|
|
105
|
+
/* @__PURE__ */ t("div", { className: "notification-title", children: r }),
|
|
107
106
|
u,
|
|
108
|
-
!e && !
|
|
107
|
+
!e && !o && /* @__PURE__ */ t("div", { className: "notification-actions", children: l })
|
|
109
108
|
] })
|
|
110
109
|
] }),
|
|
111
|
-
(e ||
|
|
110
|
+
(e || o) && /* @__PURE__ */ t("div", { className: "notification-actions", children: l })
|
|
112
111
|
] });
|
|
113
112
|
});
|
|
114
|
-
j.propTypes = {
|
|
115
|
-
avatar: i.bool,
|
|
116
|
-
title: i.string,
|
|
117
|
-
/**
|
|
118
|
-
* If `avatar={true}` icon won't be displayed
|
|
119
|
-
*/
|
|
120
|
-
icon: i.string,
|
|
121
|
-
actions: i.element,
|
|
122
|
-
inlineActions: i.bool,
|
|
123
|
-
sideButtons: i.bool,
|
|
124
|
-
//-----------------------
|
|
125
|
-
className: i.string,
|
|
126
|
-
style: i.object,
|
|
127
|
-
iconProps: i.any,
|
|
128
|
-
avatarProps: i.any
|
|
129
|
-
};
|
|
130
113
|
export {
|
|
131
|
-
|
|
114
|
+
V as default
|
|
132
115
|
};
|
package/dist/NumberInput.cjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),o=require("react"),H=require("./index-Cp66dWMi.cjs"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),l=require("./utils-RnrgDDZP.cjs"),J=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),L=g.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
|
|
5
|
-
min-height: ${e=>
|
|
6
|
-
max-height: ${e=>
|
|
7
|
-
background-color: ${e=>
|
|
5
|
+
min-height: ${e=>l.getSizeValueWithUnits(e.theme,e.size)};
|
|
6
|
+
max-height: ${e=>l.getSizeValueWithUnits(e.theme,e.size)};
|
|
7
|
+
background-color: ${e=>l.getColorRgbaValue(e.theme,"Input",e.color,"enabled","background")};
|
|
8
8
|
border: 1px solid
|
|
9
|
-
${e=>
|
|
10
|
-
border-radius: ${e=>
|
|
9
|
+
${e=>l.getColorRgbaValue(e.theme,"Input",e.focused===!0?"primary":e.color,e.disabled===!0?"disabled":"enabled","border")};
|
|
10
|
+
border-radius: ${e=>l.getBorderRadiusValueWithUnits(e.theme,"regular")};
|
|
11
11
|
|
|
12
|
-
${e=>e.focused&&e.readOnly!==!0?
|
|
13
|
-
/* ${e=>e.disabled===!0?
|
|
14
|
-
${e=>e.disabled===!0&&`background-color: ${
|
|
15
|
-
color: ${a=>
|
|
16
|
-
`,
|
|
12
|
+
${e=>e.focused&&e.readOnly!==!0?l.getOutlineCss(e.theme):""}
|
|
13
|
+
/* ${e=>e.disabled===!0?l.getDisabledStateCss(e.theme):""} */
|
|
14
|
+
${e=>e.disabled===!0&&`background-color: ${l.getColorRgbaValue(e.theme,"Input",e.color,"disabled","background","backgroundOpacity")};
|
|
15
|
+
color: ${a=>l.getColorRgbaValue(a.theme,"Input",a.color,"disabled","text")};`}
|
|
16
|
+
`,q=g.styled.span`
|
|
17
17
|
padding: 0 12px;
|
|
18
|
-
color: ${e=>
|
|
19
|
-
`,
|
|
18
|
+
color: ${e=>l.getColorRgbaValue(e.theme,"Input",e.focused===!0?"primary":e.color,"enabled","prefix")};
|
|
19
|
+
`,Q=g.styled(q)``,Y=g.styled.input`
|
|
20
20
|
background: none;
|
|
21
21
|
border: none;
|
|
22
22
|
outline: none;
|
|
@@ -24,16 +24,16 @@
|
|
|
24
24
|
padding-bottom: 0.625rem;
|
|
25
25
|
width: 100%;
|
|
26
26
|
|
|
27
|
-
${e=>
|
|
28
|
-
min-height: ${e=>
|
|
29
|
-
max-height: ${e=>
|
|
30
|
-
color: ${e=>
|
|
31
|
-
caret-color: ${e=>
|
|
27
|
+
${e=>l.getComponentTypographyCss(e.theme,"Input",e.size,"enabled")}
|
|
28
|
+
min-height: ${e=>l.getSizeValueWithUnits(e.theme,e.size)};
|
|
29
|
+
max-height: ${e=>l.getSizeValueWithUnits(e.theme,e.size)};
|
|
30
|
+
color: ${e=>l.getColorRgbaValue(e.theme,"Input",e.focused===!0?"primary":e.color,"enabled","text")};
|
|
31
|
+
caret-color: ${e=>l.getColorRgbaValue(e.theme,"Input",e.color,"enabled","caret")};
|
|
32
32
|
padding-right: ${e=>e.suffix?"0":"0.75rem"};
|
|
33
33
|
padding-left: ${e=>e.prefix?"0":"0.75rem"};
|
|
34
34
|
|
|
35
35
|
&::placeholder {
|
|
36
|
-
color: ${e=>
|
|
36
|
+
color: ${e=>l.getColorRgbaValue(e.theme,"Input",e.color,"enabled","placeholder")};
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
&:read-only {
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
&:disabled {
|
|
44
|
-
/* ${e=>
|
|
45
|
-
${e=>`background-color: ${
|
|
46
|
-
color: ${a=>
|
|
44
|
+
/* ${e=>l.getDisabledStateCss(e.theme)} */
|
|
45
|
+
${e=>`background-color: ${l.getColorRgbaValue(e.theme,"Input",e.color,"disabled","background","backgroundOpacity")};
|
|
46
|
+
color: ${a=>l.getColorRgbaValue(a.theme,"Input",a.color,"disabled","text")};`}
|
|
47
47
|
background: none;
|
|
48
48
|
}
|
|
49
|
-
`,
|
|
49
|
+
`,Z=o.forwardRef((e,a)=>{const{disabled:V,readOnly:C,debounceTime:D=0,step:O=1,min:W=Number.MIN_SAFE_INTEGER,max:j=Number.MAX_SAFE_INTEGER,prefix:b,suffix:m,placeholder:w,value:r,defaultValue:R,onChange:i,onBlur:h,onFocus:f,onKeyDown:y,maxDecimalPlaces:I,className:F="",style:T={},size:k="small",color:d="primary",...U}=e,n=J.useTheme(),c=o.useRef(r||R||""),[A,S]=o.useState(r||R||""),[x,z]=o.useState(!1);o.useEffect(()=>{r!=null&&(c.current=r,S(c.current))},[r]);const B=o.useCallback(H.debounce((t,u)=>G(t,u),D),[i]),G=(t,u)=>{i&&(i==null||i(t,u))},M=t=>{c.current=t.target.value,S(c.current),B(t,t.target.value)},P=t=>{z(!0),f==null||f(t)},K=t=>{z(!1),h==null||h(t)},X=t=>{var u,N,E,_,p;if(((N=(u=t==null?void 0:t.target)==null?void 0:u.value)==null?void 0:N.length)>0&&(t.key==="+"||t.key==="-")&&t.preventDefault(),((E=t==null?void 0:t.target)==null?void 0:E.value)===""&&(t.key==="+"||t.key==="-")&&(t.target.value=t.key),(_=t==null?void 0:t.target)!=null&&_.value.includes(".")&&I){const $=(p=t==null?void 0:t.target)==null?void 0:p.value.split(".")[1];($==null?void 0:$.length)>=I&&t.preventDefault()}y==null||y(t)};return s.jsxs(L,{style:T,className:F,theme:n,color:d,size:k,focused:x,disabled:V,readOnly:C,children:[b&&s.jsx(q,{theme:n,color:d,focused:x,className:"lnc-input-prefix",children:b}),s.jsx(Y,{ref:a,type:"number",theme:n,color:d,size:k,placeholder:w,prefix:b,suffix:m,disabled:V,readOnly:C,step:O,min:W,max:j,value:A,onFocus:P,onBlur:K,onChange:M,onKeyDown:X,...U}),m&&s.jsx(Q,{theme:n,color:d,focused:x,className:"lnc-input-suffix",children:m})]})});module.exports=Z;
|
package/dist/NumberInput.js
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
const te = m.div`
|
|
1
|
+
import { jsxs as X, jsx as x } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as q, useRef as H, useState as O, useEffect as J, useCallback as L } from "react";
|
|
3
|
+
import { d as Q } from "./index-Dt62UGku.js";
|
|
4
|
+
import { s } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
+
import { d as i, b as t, a as Y, e as Z, h as F, c as v } from "./utils-DtEfC-TX.js";
|
|
6
|
+
import { u as ee } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
|
+
const ae = s.div`
|
|
9
8
|
display: flex;
|
|
10
9
|
align-items: center;
|
|
11
10
|
|
|
12
|
-
min-height: ${(e) =>
|
|
13
|
-
max-height: ${(e) =>
|
|
14
|
-
background-color: ${(e) =>
|
|
11
|
+
min-height: ${(e) => i(e.theme, e.size)};
|
|
12
|
+
max-height: ${(e) => i(e.theme, e.size)};
|
|
13
|
+
background-color: ${(e) => t(
|
|
15
14
|
e.theme,
|
|
16
15
|
"Input",
|
|
17
16
|
e.color,
|
|
@@ -19,18 +18,18 @@ const te = m.div`
|
|
|
19
18
|
"background"
|
|
20
19
|
)};
|
|
21
20
|
border: 1px solid
|
|
22
|
-
${(e) =>
|
|
21
|
+
${(e) => t(
|
|
23
22
|
e.theme,
|
|
24
23
|
"Input",
|
|
25
24
|
e.focused === !0 ? "primary" : e.color,
|
|
26
25
|
e.disabled === !0 ? "disabled" : "enabled",
|
|
27
26
|
"border"
|
|
28
27
|
)};
|
|
29
|
-
border-radius: ${(e) =>
|
|
28
|
+
border-radius: ${(e) => Y(e.theme, "regular")};
|
|
30
29
|
|
|
31
|
-
${(e) => e.focused && e.readOnly !== !0 ?
|
|
30
|
+
${(e) => e.focused && e.readOnly !== !0 ? Z(e.theme) : ""}
|
|
32
31
|
/* ${(e) => e.disabled === !0 ? F(e.theme) : ""} */
|
|
33
|
-
${(e) => e.disabled === !0 && `background-color: ${
|
|
32
|
+
${(e) => e.disabled === !0 && `background-color: ${t(
|
|
34
33
|
e.theme,
|
|
35
34
|
"Input",
|
|
36
35
|
e.color,
|
|
@@ -38,23 +37,23 @@ const te = m.div`
|
|
|
38
37
|
"background",
|
|
39
38
|
"backgroundOpacity"
|
|
40
39
|
)};
|
|
41
|
-
color: ${(
|
|
42
|
-
|
|
40
|
+
color: ${(l) => t(
|
|
41
|
+
l.theme,
|
|
43
42
|
"Input",
|
|
44
|
-
|
|
43
|
+
l.color,
|
|
45
44
|
"disabled",
|
|
46
45
|
"text"
|
|
47
46
|
)};`}
|
|
48
|
-
`,
|
|
47
|
+
`, T = s.span`
|
|
49
48
|
padding: 0 12px;
|
|
50
|
-
color: ${(e) =>
|
|
49
|
+
color: ${(e) => t(
|
|
51
50
|
e.theme,
|
|
52
51
|
"Input",
|
|
53
52
|
e.focused === !0 ? "primary" : e.color,
|
|
54
53
|
"enabled",
|
|
55
54
|
"prefix"
|
|
56
55
|
)};
|
|
57
|
-
`,
|
|
56
|
+
`, te = s(T)``, le = s.input`
|
|
58
57
|
background: none;
|
|
59
58
|
border: none;
|
|
60
59
|
outline: none;
|
|
@@ -62,22 +61,22 @@ const te = m.div`
|
|
|
62
61
|
padding-bottom: 0.625rem;
|
|
63
62
|
width: 100%;
|
|
64
63
|
|
|
65
|
-
${(e) =>
|
|
66
|
-
min-height: ${(e) =>
|
|
67
|
-
max-height: ${(e) =>
|
|
68
|
-
color: ${(e) =>
|
|
64
|
+
${(e) => v(e.theme, "Input", e.size, "enabled")}
|
|
65
|
+
min-height: ${(e) => i(e.theme, e.size)};
|
|
66
|
+
max-height: ${(e) => i(e.theme, e.size)};
|
|
67
|
+
color: ${(e) => t(
|
|
69
68
|
e.theme,
|
|
70
69
|
"Input",
|
|
71
70
|
e.focused === !0 ? "primary" : e.color,
|
|
72
71
|
"enabled",
|
|
73
72
|
"text"
|
|
74
73
|
)};
|
|
75
|
-
caret-color: ${(e) =>
|
|
74
|
+
caret-color: ${(e) => t(e.theme, "Input", e.color, "enabled", "caret")};
|
|
76
75
|
padding-right: ${(e) => e.suffix ? "0" : "0.75rem"};
|
|
77
76
|
padding-left: ${(e) => e.prefix ? "0" : "0.75rem"};
|
|
78
77
|
|
|
79
78
|
&::placeholder {
|
|
80
|
-
color: ${(e) =>
|
|
79
|
+
color: ${(e) => t(
|
|
81
80
|
e.theme,
|
|
82
81
|
"Input",
|
|
83
82
|
e.color,
|
|
@@ -92,7 +91,7 @@ const te = m.div`
|
|
|
92
91
|
|
|
93
92
|
&:disabled {
|
|
94
93
|
/* ${(e) => F(e.theme)} */
|
|
95
|
-
${(e) => `background-color: ${
|
|
94
|
+
${(e) => `background-color: ${t(
|
|
96
95
|
e.theme,
|
|
97
96
|
"Input",
|
|
98
97
|
e.color,
|
|
@@ -100,115 +99,115 @@ const te = m.div`
|
|
|
100
99
|
"background",
|
|
101
100
|
"backgroundOpacity"
|
|
102
101
|
)};
|
|
103
|
-
color: ${(
|
|
104
|
-
|
|
102
|
+
color: ${(l) => t(
|
|
103
|
+
l.theme,
|
|
105
104
|
"Input",
|
|
106
|
-
|
|
105
|
+
l.color,
|
|
107
106
|
"disabled",
|
|
108
107
|
"text"
|
|
109
108
|
)};`}
|
|
110
109
|
background: none;
|
|
111
110
|
}
|
|
112
|
-
`,
|
|
111
|
+
`, fe = q((e, l) => {
|
|
113
112
|
const {
|
|
114
113
|
disabled: I,
|
|
115
114
|
readOnly: k,
|
|
116
|
-
debounceTime:
|
|
117
|
-
step:
|
|
118
|
-
min:
|
|
119
|
-
max:
|
|
120
|
-
prefix:
|
|
115
|
+
debounceTime: w = 0,
|
|
116
|
+
step: _ = 1,
|
|
117
|
+
min: A = Number.MIN_SAFE_INTEGER,
|
|
118
|
+
max: B = Number.MAX_SAFE_INTEGER,
|
|
119
|
+
prefix: m,
|
|
121
120
|
suffix: h,
|
|
122
|
-
placeholder:
|
|
123
|
-
value:
|
|
124
|
-
defaultValue:
|
|
121
|
+
placeholder: W,
|
|
122
|
+
value: r,
|
|
123
|
+
defaultValue: p,
|
|
125
124
|
//----------------
|
|
126
|
-
onChange:
|
|
127
|
-
onBlur:
|
|
128
|
-
onFocus:
|
|
129
|
-
onKeyDown:
|
|
130
|
-
maxDecimalPlaces:
|
|
125
|
+
onChange: o,
|
|
126
|
+
onBlur: f,
|
|
127
|
+
onFocus: b,
|
|
128
|
+
onKeyDown: g,
|
|
129
|
+
maxDecimalPlaces: C,
|
|
131
130
|
//----------------
|
|
132
|
-
className:
|
|
131
|
+
className: j = "",
|
|
133
132
|
style: G = {},
|
|
134
|
-
size:
|
|
133
|
+
size: S = "small",
|
|
135
134
|
color: d = "primary",
|
|
136
135
|
...K
|
|
137
|
-
} = e,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
}, [
|
|
141
|
-
const
|
|
142
|
-
|
|
143
|
-
[
|
|
144
|
-
),
|
|
145
|
-
|
|
136
|
+
} = e, n = ee(), c = H(r || p || ""), [M, N] = O(r || p || ""), [y, V] = O(!1);
|
|
137
|
+
J(() => {
|
|
138
|
+
r != null && (c.current = r, N(c.current));
|
|
139
|
+
}, [r]);
|
|
140
|
+
const P = L(
|
|
141
|
+
Q((a, u) => U(a, u), w),
|
|
142
|
+
[o]
|
|
143
|
+
), U = (a, u) => {
|
|
144
|
+
o && (o == null || o(a, u));
|
|
146
145
|
};
|
|
147
|
-
return /* @__PURE__ */
|
|
148
|
-
|
|
146
|
+
return /* @__PURE__ */ X(
|
|
147
|
+
ae,
|
|
149
148
|
{
|
|
150
149
|
style: G,
|
|
151
|
-
className:
|
|
152
|
-
theme:
|
|
150
|
+
className: j,
|
|
151
|
+
theme: n,
|
|
153
152
|
color: d,
|
|
154
|
-
size:
|
|
155
|
-
focused:
|
|
153
|
+
size: S,
|
|
154
|
+
focused: y,
|
|
156
155
|
disabled: I,
|
|
157
156
|
readOnly: k,
|
|
158
157
|
children: [
|
|
159
|
-
|
|
160
|
-
|
|
158
|
+
m && /* @__PURE__ */ x(
|
|
159
|
+
T,
|
|
161
160
|
{
|
|
162
|
-
theme:
|
|
161
|
+
theme: n,
|
|
163
162
|
color: d,
|
|
164
|
-
focused:
|
|
163
|
+
focused: y,
|
|
165
164
|
className: "lnc-input-prefix",
|
|
166
|
-
children:
|
|
165
|
+
children: m
|
|
167
166
|
}
|
|
168
167
|
),
|
|
169
|
-
/* @__PURE__ */
|
|
170
|
-
|
|
168
|
+
/* @__PURE__ */ x(
|
|
169
|
+
le,
|
|
171
170
|
{
|
|
172
|
-
ref:
|
|
171
|
+
ref: l,
|
|
173
172
|
type: "number",
|
|
174
|
-
theme:
|
|
173
|
+
theme: n,
|
|
175
174
|
color: d,
|
|
176
|
-
size:
|
|
177
|
-
placeholder:
|
|
178
|
-
prefix:
|
|
175
|
+
size: S,
|
|
176
|
+
placeholder: W,
|
|
177
|
+
prefix: m,
|
|
179
178
|
suffix: h,
|
|
180
179
|
disabled: I,
|
|
181
180
|
readOnly: k,
|
|
182
|
-
step:
|
|
183
|
-
min:
|
|
184
|
-
max:
|
|
181
|
+
step: _,
|
|
182
|
+
min: A,
|
|
183
|
+
max: B,
|
|
185
184
|
value: M,
|
|
186
185
|
onFocus: (a) => {
|
|
187
|
-
|
|
186
|
+
V(!0), b == null || b(a);
|
|
188
187
|
},
|
|
189
188
|
onBlur: (a) => {
|
|
190
|
-
|
|
189
|
+
V(!1), f == null || f(a);
|
|
191
190
|
},
|
|
192
191
|
onChange: (a) => {
|
|
193
|
-
c.current = a.target.value,
|
|
192
|
+
c.current = a.target.value, N(c.current), P(a, a.target.value);
|
|
194
193
|
},
|
|
195
194
|
onKeyDown: (a) => {
|
|
196
|
-
var
|
|
197
|
-
if (((
|
|
198
|
-
const
|
|
199
|
-
(
|
|
195
|
+
var u, z, E, R, D;
|
|
196
|
+
if (((z = (u = a == null ? void 0 : a.target) == null ? void 0 : u.value) == null ? void 0 : z.length) > 0 && (a.key === "+" || a.key === "-") && a.preventDefault(), ((E = a == null ? void 0 : a.target) == null ? void 0 : E.value) === "" && (a.key === "+" || a.key === "-") && (a.target.value = a.key), (R = a == null ? void 0 : a.target) != null && R.value.includes(".") && C) {
|
|
197
|
+
const $ = (D = a == null ? void 0 : a.target) == null ? void 0 : D.value.split(".")[1];
|
|
198
|
+
($ == null ? void 0 : $.length) >= C && a.preventDefault();
|
|
200
199
|
}
|
|
201
|
-
|
|
200
|
+
g == null || g(a);
|
|
202
201
|
},
|
|
203
202
|
...K
|
|
204
203
|
}
|
|
205
204
|
),
|
|
206
|
-
h && /* @__PURE__ */
|
|
207
|
-
|
|
205
|
+
h && /* @__PURE__ */ x(
|
|
206
|
+
te,
|
|
208
207
|
{
|
|
209
|
-
theme:
|
|
208
|
+
theme: n,
|
|
210
209
|
color: d,
|
|
211
|
-
focused:
|
|
210
|
+
focused: y,
|
|
212
211
|
className: "lnc-input-suffix",
|
|
213
212
|
children: h
|
|
214
213
|
}
|
|
@@ -217,65 +216,6 @@ const te = m.div`
|
|
|
217
216
|
}
|
|
218
217
|
);
|
|
219
218
|
});
|
|
220
|
-
ne.propTypes = {
|
|
221
|
-
id: t.any,
|
|
222
|
-
value: t.any,
|
|
223
|
-
defaultValue: t.any,
|
|
224
|
-
disabled: t.bool,
|
|
225
|
-
readOnly: t.bool,
|
|
226
|
-
/**
|
|
227
|
-
* Time in miliseconds before onChange event fires after it has been triggered.
|
|
228
|
-
*/
|
|
229
|
-
debounceTime: t.number,
|
|
230
|
-
/**
|
|
231
|
-
* The amount that is added to the current value in the input if its incremented using the arrows/spinners.
|
|
232
|
-
*/
|
|
233
|
-
step: t.number,
|
|
234
|
-
/**
|
|
235
|
-
* Minimum number value user can input.
|
|
236
|
-
*/
|
|
237
|
-
min: t.number,
|
|
238
|
-
/**
|
|
239
|
-
* Maximum number value user can input.
|
|
240
|
-
*/
|
|
241
|
-
max: t.number,
|
|
242
|
-
/**
|
|
243
|
-
* Reserved space before input. Intented to be used with plain text or `Icon` component.
|
|
244
|
-
*/
|
|
245
|
-
prefix: t.oneOfType([t.string, t.element]),
|
|
246
|
-
/**
|
|
247
|
-
* Reserved space after input. Intented to be used with plain text or `Icon` component.
|
|
248
|
-
*/
|
|
249
|
-
suffix: t.oneOfType([t.string, t.element]),
|
|
250
|
-
placeholder: t.string,
|
|
251
|
-
tabIndex: t.number,
|
|
252
|
-
/**
|
|
253
|
-
* `(event, value) => void`
|
|
254
|
-
*/
|
|
255
|
-
onChange: t.func,
|
|
256
|
-
/**
|
|
257
|
-
* `(event) => void`
|
|
258
|
-
*/
|
|
259
|
-
onBlur: t.func,
|
|
260
|
-
/**
|
|
261
|
-
* `(event) => void`
|
|
262
|
-
*/
|
|
263
|
-
onFocus: t.func,
|
|
264
|
-
//----------------
|
|
265
|
-
className: t.string,
|
|
266
|
-
style: t.object,
|
|
267
|
-
size: t.oneOf(["small", "medium", "large"]),
|
|
268
|
-
color: t.oneOf([
|
|
269
|
-
"primary",
|
|
270
|
-
"secondary",
|
|
271
|
-
"success",
|
|
272
|
-
"danger",
|
|
273
|
-
"warning",
|
|
274
|
-
"information",
|
|
275
|
-
"neutral",
|
|
276
|
-
"gray"
|
|
277
|
-
])
|
|
278
|
-
};
|
|
279
219
|
export {
|
|
280
|
-
|
|
220
|
+
fe as default
|
|
281
221
|
};
|
package/dist/PageLayout.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const x=require("react/jsx-runtime"),a=require("react"),E=require("./
|
|
1
|
+
"use strict";const x=require("react/jsx-runtime"),a=require("react"),E=require("./emotion-styled.browser.esm-BtEseadx.cjs"),S=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),C=E.styled.section`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: auto;
|
|
4
4
|
flex-direction: ${s=>s.hasSidebar?"row":"column"};
|
|
@@ -23,4 +23,4 @@
|
|
|
23
23
|
flex: 0 0 15rem;
|
|
24
24
|
height: 100%;
|
|
25
25
|
}
|
|
26
|
-
`,
|
|
26
|
+
`,f=a.forwardRef((s,h)=>{const{children:o,isChild:y,...m}=s,p=S.useTheme(),b=a.Children.toArray(o).some(e=>{var t;return e.props.__TYPE__||((t=e==null?void 0:e.type)==null?void 0:t.displayName)=="Sidebar"}),g=e=>{let t,i,l;if(a.Children.forEach(e,(r,d)=>{var u,n,_;if(r.props.__TYPE__=="Sidebar"||((u=r==null?void 0:r.type)==null?void 0:u.displayName)==="Sidebar"){if(i)throw"Found multiple ocurrences of Sidebar component on the same level in the component tree.";i=d+1}else if(r.props.__TYPE__=="PageLayout"||((n=r==null?void 0:r.type)==null?void 0:n.displayName)==="PageLayout"){if(t)throw"Found multiple ocurrences of PageLayout component on the same level in the component tree.";t=d+1}else if(r.props.__TYPE__=="Content"||((_=r==null?void 0:r.type)==null?void 0:_.displayName)==="Content"){if(l)throw"Found multiple ocurrences of Content component on the same level in the component tree.";l=d+1}}),t&&i)return i<t?"left":"right";if(l&&i)return i<l?"left":"right"},P=a.Children.map(o,e=>{var t,i;if(a.isValidElement(e)){if(e.props.__TYPE__=="Sidebar"||((t=e.type)==null?void 0:t.displayName)==="Sidebar")return a.cloneElement(e,{placement:g(o)});if(e.props.__TYPE__=="PageLayout"||((i=e.type)==null?void 0:i.displayName)==="PageLayout")return a.cloneElement(e,{isChild:!0})}return e});return x.jsx(C,{isChild:y,hasSidebar:b,theme:p,ref:h,...m,children:P})});f.displayName="PageLayout";module.exports=f;
|