@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/TextInput.js
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { jsxs as U, jsx as x } from "react/jsx-runtime";
|
|
2
|
-
import { P as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
const M = m.div`
|
|
2
|
+
import { forwardRef as D, useRef as E, useState as V, useEffect as P, useCallback as q } from "react";
|
|
3
|
+
import { d as A } from "./index-Dt62UGku.js";
|
|
4
|
+
import { s } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
+
import { d as i, b as a, a as G, e as H, h as S, c as J } from "./utils-DtEfC-TX.js";
|
|
6
|
+
import { u as K } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
|
+
const L = s.div`
|
|
9
8
|
display: flex;
|
|
10
9
|
align-items: center;
|
|
11
10
|
|
|
12
|
-
min-height: ${(e) =>
|
|
13
|
-
max-height: ${(e) =>
|
|
11
|
+
min-height: ${(e) => i(e.theme, e.size)};
|
|
12
|
+
max-height: ${(e) => i(e.theme, e.size)};
|
|
14
13
|
background-color: ${(e) => a(
|
|
15
14
|
e.theme,
|
|
16
15
|
"Input",
|
|
@@ -26,10 +25,10 @@ const M = m.div`
|
|
|
26
25
|
e.disabled === !0 ? "disabled" : "enabled",
|
|
27
26
|
"border"
|
|
28
27
|
)};
|
|
29
|
-
border-radius: ${(e) =>
|
|
28
|
+
border-radius: ${(e) => G(e.theme, "regular")};
|
|
30
29
|
|
|
31
|
-
${(e) => e.focused && e.readOnly !== !0 ?
|
|
32
|
-
/* ${(e) => e.disabled === !0 ?
|
|
30
|
+
${(e) => e.focused && e.readOnly !== !0 ? H(e.theme) : ""}
|
|
31
|
+
/* ${(e) => e.disabled === !0 ? S(e.theme) : ""} */
|
|
33
32
|
${(e) => e.disabled === !0 ? `background-color: ${a(
|
|
34
33
|
e.theme,
|
|
35
34
|
"Input",
|
|
@@ -38,14 +37,14 @@ const M = m.div`
|
|
|
38
37
|
"background",
|
|
39
38
|
"backgroundOpacity"
|
|
40
39
|
)};
|
|
41
|
-
color: ${(
|
|
42
|
-
|
|
40
|
+
color: ${(n) => a(
|
|
41
|
+
n.theme,
|
|
43
42
|
"Input",
|
|
44
|
-
|
|
43
|
+
n.color,
|
|
45
44
|
"disabled",
|
|
46
45
|
"text"
|
|
47
46
|
)};` : ""}
|
|
48
|
-
`, z =
|
|
47
|
+
`, z = s.span`
|
|
49
48
|
padding: 0 12px;
|
|
50
49
|
color: ${(e) => a(
|
|
51
50
|
e.theme,
|
|
@@ -54,7 +53,7 @@ const M = m.div`
|
|
|
54
53
|
"enabled",
|
|
55
54
|
"prefix"
|
|
56
55
|
)};
|
|
57
|
-
`,
|
|
56
|
+
`, M = s(z)``, Q = s.input`
|
|
58
57
|
background: none;
|
|
59
58
|
border: none;
|
|
60
59
|
outline: none;
|
|
@@ -62,9 +61,9 @@ const M = m.div`
|
|
|
62
61
|
padding-bottom: 0.625rem;
|
|
63
62
|
width: 100%;
|
|
64
63
|
|
|
65
|
-
${(e) =>
|
|
66
|
-
min-height: ${(e) =>
|
|
67
|
-
max-height: ${(e) =>
|
|
64
|
+
${(e) => J(e.theme, "Input", e.size, "enabled")}
|
|
65
|
+
min-height: ${(e) => i(e.theme, e.size)};
|
|
66
|
+
max-height: ${(e) => i(e.theme, e.size)};
|
|
68
67
|
color: ${(e) => a(
|
|
69
68
|
e.theme,
|
|
70
69
|
"Input",
|
|
@@ -91,7 +90,7 @@ const M = m.div`
|
|
|
91
90
|
}
|
|
92
91
|
|
|
93
92
|
&:disabled {
|
|
94
|
-
/* ${(e) =>
|
|
93
|
+
/* ${(e) => S(e.theme)} */
|
|
95
94
|
${(e) => `background-color: ${a(
|
|
96
95
|
e.theme,
|
|
97
96
|
"Input",
|
|
@@ -100,102 +99,102 @@ const M = m.div`
|
|
|
100
99
|
"background",
|
|
101
100
|
"backgroundOpacity"
|
|
102
101
|
)};
|
|
103
|
-
color: ${(
|
|
104
|
-
|
|
102
|
+
color: ${(n) => a(
|
|
103
|
+
n.theme,
|
|
105
104
|
"Input",
|
|
106
|
-
|
|
105
|
+
n.color,
|
|
107
106
|
"disabled",
|
|
108
107
|
"text"
|
|
109
108
|
)};`}
|
|
110
109
|
background: none;
|
|
111
110
|
}
|
|
112
|
-
`,
|
|
111
|
+
`, de = D((e, n) => {
|
|
113
112
|
const {
|
|
114
113
|
disabled: $,
|
|
115
|
-
readOnly:
|
|
114
|
+
readOnly: y,
|
|
116
115
|
defaultValue: I,
|
|
117
|
-
value:
|
|
118
|
-
debounceTime:
|
|
119
|
-
type:
|
|
116
|
+
value: l,
|
|
117
|
+
debounceTime: v = 0,
|
|
118
|
+
type: O = "text",
|
|
120
119
|
placeholder: R,
|
|
121
|
-
tabIndex:
|
|
122
|
-
prefix:
|
|
120
|
+
tabIndex: T,
|
|
121
|
+
prefix: m,
|
|
123
122
|
suffix: h,
|
|
124
123
|
//----------------
|
|
125
|
-
onChange:
|
|
124
|
+
onChange: d,
|
|
126
125
|
onBlur: b,
|
|
127
|
-
onFocus:
|
|
126
|
+
onFocus: f,
|
|
128
127
|
//----------------
|
|
129
|
-
className:
|
|
130
|
-
style:
|
|
131
|
-
size:
|
|
132
|
-
color:
|
|
133
|
-
...
|
|
134
|
-
} = e,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}, [
|
|
138
|
-
const
|
|
139
|
-
|
|
140
|
-
[
|
|
141
|
-
),
|
|
142
|
-
|
|
128
|
+
className: B = "",
|
|
129
|
+
style: F = {},
|
|
130
|
+
size: k = "small",
|
|
131
|
+
color: o = "primary",
|
|
132
|
+
...N
|
|
133
|
+
} = e, r = K(), u = E(l || I || ""), [W, C] = V(l || I || ""), [c, p] = V(!1);
|
|
134
|
+
P(() => {
|
|
135
|
+
l != null && (u.current = l, C(u.current));
|
|
136
|
+
}, [l]);
|
|
137
|
+
const j = q(
|
|
138
|
+
A((t, g) => w(t, g), v),
|
|
139
|
+
[d]
|
|
140
|
+
), w = (t, g) => {
|
|
141
|
+
d && (d == null || d(t, g));
|
|
143
142
|
};
|
|
144
143
|
return /* @__PURE__ */ U(
|
|
145
|
-
|
|
144
|
+
L,
|
|
146
145
|
{
|
|
147
|
-
style:
|
|
148
|
-
className:
|
|
149
|
-
theme:
|
|
150
|
-
color:
|
|
151
|
-
size:
|
|
146
|
+
style: F,
|
|
147
|
+
className: B,
|
|
148
|
+
theme: r,
|
|
149
|
+
color: o,
|
|
150
|
+
size: k,
|
|
152
151
|
focused: c,
|
|
153
152
|
disabled: $,
|
|
154
|
-
readOnly:
|
|
153
|
+
readOnly: y,
|
|
155
154
|
children: [
|
|
156
|
-
|
|
155
|
+
m && /* @__PURE__ */ x(
|
|
157
156
|
z,
|
|
158
157
|
{
|
|
159
|
-
theme:
|
|
160
|
-
color:
|
|
158
|
+
theme: r,
|
|
159
|
+
color: o,
|
|
161
160
|
focused: c,
|
|
162
161
|
className: "lnc-input-prefix",
|
|
163
|
-
children:
|
|
162
|
+
children: m
|
|
164
163
|
}
|
|
165
164
|
),
|
|
166
165
|
/* @__PURE__ */ x(
|
|
167
|
-
|
|
166
|
+
Q,
|
|
168
167
|
{
|
|
169
|
-
ref:
|
|
170
|
-
type:
|
|
171
|
-
theme:
|
|
172
|
-
color:
|
|
173
|
-
size:
|
|
168
|
+
ref: n,
|
|
169
|
+
type: O,
|
|
170
|
+
theme: r,
|
|
171
|
+
color: o,
|
|
172
|
+
size: k,
|
|
174
173
|
placeholder: R,
|
|
175
|
-
prefix:
|
|
174
|
+
prefix: m,
|
|
176
175
|
suffix: h,
|
|
177
176
|
disabled: $,
|
|
178
|
-
readOnly:
|
|
177
|
+
readOnly: y,
|
|
179
178
|
focused: c,
|
|
180
|
-
onFocus: (
|
|
181
|
-
|
|
179
|
+
onFocus: (t) => {
|
|
180
|
+
p(!0), f == null || f(t);
|
|
182
181
|
},
|
|
183
|
-
onBlur: (
|
|
184
|
-
|
|
182
|
+
onBlur: (t) => {
|
|
183
|
+
p(!1), b == null || b(t);
|
|
185
184
|
},
|
|
186
|
-
onChange: (
|
|
187
|
-
|
|
185
|
+
onChange: (t) => {
|
|
186
|
+
u.current = t.target.value, C(u.current), j(t, t.target.value);
|
|
188
187
|
},
|
|
189
|
-
tabIndex:
|
|
190
|
-
value:
|
|
191
|
-
...
|
|
188
|
+
tabIndex: T,
|
|
189
|
+
value: W,
|
|
190
|
+
...N
|
|
192
191
|
}
|
|
193
192
|
),
|
|
194
193
|
h && /* @__PURE__ */ x(
|
|
195
|
-
|
|
194
|
+
M,
|
|
196
195
|
{
|
|
197
|
-
theme:
|
|
198
|
-
color:
|
|
196
|
+
theme: r,
|
|
197
|
+
color: o,
|
|
199
198
|
focused: c,
|
|
200
199
|
className: "lnc-input-suffix",
|
|
201
200
|
children: h
|
|
@@ -205,53 +204,6 @@ const M = m.div`
|
|
|
205
204
|
}
|
|
206
205
|
);
|
|
207
206
|
});
|
|
208
|
-
Y.propTypes = {
|
|
209
|
-
id: t.any,
|
|
210
|
-
defaultValue: t.string,
|
|
211
|
-
value: t.string,
|
|
212
|
-
disabled: t.bool,
|
|
213
|
-
readOnly: t.bool,
|
|
214
|
-
/**
|
|
215
|
-
* Time in miliseconds before onChange event fires after it has been triggered.
|
|
216
|
-
*/
|
|
217
|
-
debounceTime: t.number,
|
|
218
|
-
placeholder: t.string,
|
|
219
|
-
type: t.oneOf(["text", "email"]),
|
|
220
|
-
tabIndex: t.number,
|
|
221
|
-
/**
|
|
222
|
-
* Reserved space before input. Intented to be used with plain text or `Icon` component.
|
|
223
|
-
*/
|
|
224
|
-
prefix: t.oneOfType([t.string, t.element]),
|
|
225
|
-
/**
|
|
226
|
-
* Reserved space after input. Intented to be used with plain text or `Icon` component.
|
|
227
|
-
*/
|
|
228
|
-
suffix: t.oneOfType([t.string, t.element]),
|
|
229
|
-
/**
|
|
230
|
-
* `(event, value) => void`
|
|
231
|
-
*/
|
|
232
|
-
onChange: t.func,
|
|
233
|
-
/**
|
|
234
|
-
* `(event) => void`
|
|
235
|
-
*/
|
|
236
|
-
onBlur: t.func,
|
|
237
|
-
/**
|
|
238
|
-
* `(event) => void`
|
|
239
|
-
*/
|
|
240
|
-
onFocus: t.func,
|
|
241
|
-
className: t.string,
|
|
242
|
-
style: t.object,
|
|
243
|
-
size: t.oneOf(["small", "medium", "large"]),
|
|
244
|
-
color: t.oneOf([
|
|
245
|
-
"primary",
|
|
246
|
-
"secondary",
|
|
247
|
-
"success",
|
|
248
|
-
"danger",
|
|
249
|
-
"warning",
|
|
250
|
-
"information",
|
|
251
|
-
"neutral",
|
|
252
|
-
"gray"
|
|
253
|
-
])
|
|
254
|
-
};
|
|
255
207
|
export {
|
|
256
|
-
|
|
208
|
+
de as default
|
|
257
209
|
};
|
package/dist/ThemeProvider.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react/jsx-runtime"),s=require("react"),t=require("./utils-RnrgDDZP.cjs"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react/jsx-runtime"),s=require("react"),t=require("./utils-RnrgDDZP.cjs"),c=require("./styled-components.browser.esm-CvykQBGY.cjs"),g=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),b=e=>{const a=e.palette.disabled.color,o=e.palette[a][e.palette.disabled.background],r=e.palette.opacity[e.palette.disabled.opacity];return t.hexToRgba(o,r??"100%")},m=e=>{const a=e.palette.disabled.color;return e.palette[a][e.palette.disabled.text]},p=c.$e`
|
|
2
2
|
* {
|
|
3
3
|
--size-small: ${e=>t.getSizeValueWithUnits(e.theme,"small")};
|
|
4
4
|
--size-medium: ${e=>t.getSizeValueWithUnits(e.theme,"medium")};
|
|
5
5
|
--size-large: ${e=>t.getSizeValueWithUnits(e.theme,"large")};
|
|
6
|
-
--disabled-text: ${e=>
|
|
7
|
-
--disabled-bg: ${e=>
|
|
6
|
+
--disabled-text: ${e=>m(e.theme)};
|
|
7
|
+
--disabled-bg: ${e=>b(e.theme)};
|
|
8
8
|
|
|
9
9
|
box-sizing: border-box;
|
|
10
|
-
font-family: ${e=>{var
|
|
10
|
+
font-family: ${e=>{var a,o;return(o=(a=e.theme)==null?void 0:a.typography)==null?void 0:o.fontFamily}};
|
|
11
11
|
-webkit-tap-highlight-color: transparent;
|
|
12
12
|
|
|
13
13
|
& i {
|
|
@@ -35,4 +35,4 @@
|
|
|
35
35
|
background-color: ${e=>t.getColorRgbaValue(e.theme,"Background","default","enabled","background")};
|
|
36
36
|
color: ${e=>t.getColorRgbaValue(e.theme,"Text","default","enabled","text")};
|
|
37
37
|
}
|
|
38
|
-
`,
|
|
38
|
+
`,u=s.createContext(),f=()=>s.useContext(u),h=({theme:e="Lanaco Light",children:a})=>{const[o,r]=s.useState(()=>{var l;return typeof e=="string"?(l=t.themes)==null?void 0:l.find(n=>n.name==e):e});s.useEffect(()=>{var l;r(typeof e=="string"?(l=t.themes)==null?void 0:l.find(n=>n.name==e):e)},[e]);const d=()=>{var l;r(typeof e=="string"?(l=t.themes)==null?void 0:l.find(n=>n.name==e):e)};return i.jsx(u.Provider,{value:{theme:o,switchTheme:d},children:i.jsxs(g.ThemeProvider,{theme:o,children:[i.jsx(p,{theme:o}),a]})})};exports.default=h;exports.useTheme=f;
|
package/dist/ThemeProvider.js
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { createContext as
|
|
3
|
-
import { n as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { b as T } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
1
|
+
import { jsx as c, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as u, useContext as g, useState as p, useEffect as f } from "react";
|
|
3
|
+
import { n as x, d, b as r, o as i } from "./utils-DtEfC-TX.js";
|
|
4
|
+
import { $ as h } from "./styled-components.browser.esm-D-n22PJk.js";
|
|
5
|
+
import { b as $ } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
6
|
const k = (e) => {
|
|
8
|
-
const o = e.palette.disabled.color, t = e.palette[o][e.palette.disabled.background],
|
|
9
|
-
return
|
|
10
|
-
},
|
|
7
|
+
const o = e.palette.disabled.color, t = e.palette[o][e.palette.disabled.background], l = e.palette.opacity[e.palette.disabled.opacity];
|
|
8
|
+
return x(t, l ?? "100%");
|
|
9
|
+
}, y = (e) => {
|
|
11
10
|
const o = e.palette.disabled.color;
|
|
12
11
|
return e.palette[o][e.palette.disabled.text];
|
|
13
|
-
},
|
|
12
|
+
}, C = h`
|
|
14
13
|
* {
|
|
15
14
|
--size-small: ${(e) => d(e.theme, "small")};
|
|
16
15
|
--size-medium: ${(e) => d(e.theme, "medium")};
|
|
17
16
|
--size-large: ${(e) => d(e.theme, "large")};
|
|
18
|
-
--disabled-text: ${(e) =>
|
|
17
|
+
--disabled-text: ${(e) => y(e.theme)};
|
|
19
18
|
--disabled-bg: ${(e) => k(e.theme)};
|
|
20
19
|
|
|
21
20
|
box-sizing: border-box;
|
|
@@ -31,14 +30,14 @@ const k = (e) => {
|
|
|
31
30
|
|
|
32
31
|
& .lnc-doc {
|
|
33
32
|
& th {
|
|
34
|
-
background-color: ${(e) =>
|
|
33
|
+
background-color: ${(e) => r(
|
|
35
34
|
e.theme,
|
|
36
35
|
"Background",
|
|
37
36
|
"default",
|
|
38
37
|
"enabled",
|
|
39
38
|
"background"
|
|
40
39
|
)} !important;
|
|
41
|
-
color: ${(e) =>
|
|
40
|
+
color: ${(e) => r(
|
|
42
41
|
e.theme,
|
|
43
42
|
"Text",
|
|
44
43
|
"default",
|
|
@@ -47,14 +46,14 @@ const k = (e) => {
|
|
|
47
46
|
)} !important;
|
|
48
47
|
}
|
|
49
48
|
& td {
|
|
50
|
-
background-color: ${(e) =>
|
|
49
|
+
background-color: ${(e) => r(
|
|
51
50
|
e.theme,
|
|
52
51
|
"Background",
|
|
53
52
|
"default",
|
|
54
53
|
"enabled",
|
|
55
54
|
"background"
|
|
56
55
|
)} !important;
|
|
57
|
-
color: ${(e) =>
|
|
56
|
+
color: ${(e) => r(
|
|
58
57
|
e.theme,
|
|
59
58
|
"Text",
|
|
60
59
|
"default",
|
|
@@ -65,14 +64,14 @@ const k = (e) => {
|
|
|
65
64
|
}
|
|
66
65
|
|
|
67
66
|
& .sbdocs {
|
|
68
|
-
background-color: ${(e) =>
|
|
67
|
+
background-color: ${(e) => r(
|
|
69
68
|
e.theme,
|
|
70
69
|
"Background",
|
|
71
70
|
"default",
|
|
72
71
|
"enabled",
|
|
73
72
|
"background"
|
|
74
73
|
)} !important;
|
|
75
|
-
color: ${(e) =>
|
|
74
|
+
color: ${(e) => r(
|
|
76
75
|
e.theme,
|
|
77
76
|
"Text",
|
|
78
77
|
"default",
|
|
@@ -83,43 +82,40 @@ const k = (e) => {
|
|
|
83
82
|
}
|
|
84
83
|
body {
|
|
85
84
|
position: relative;
|
|
86
|
-
background-color: ${(e) =>
|
|
85
|
+
background-color: ${(e) => r(
|
|
87
86
|
e.theme,
|
|
88
87
|
"Background",
|
|
89
88
|
"default",
|
|
90
89
|
"enabled",
|
|
91
90
|
"background"
|
|
92
91
|
)};
|
|
93
|
-
color: ${(e) =>
|
|
92
|
+
color: ${(e) => r(e.theme, "Text", "default", "enabled", "text")};
|
|
94
93
|
}
|
|
95
|
-
`,
|
|
96
|
-
const [t,
|
|
97
|
-
var
|
|
98
|
-
return typeof e == "string" ? (
|
|
94
|
+
`, b = u(), w = () => g(b), F = ({ theme: e = "Lanaco Light", children: o }) => {
|
|
95
|
+
const [t, l] = p(() => {
|
|
96
|
+
var a;
|
|
97
|
+
return typeof e == "string" ? (a = i) == null ? void 0 : a.find((n) => n.name == e) : e;
|
|
99
98
|
});
|
|
100
|
-
|
|
101
|
-
var
|
|
102
|
-
|
|
99
|
+
f(() => {
|
|
100
|
+
var a;
|
|
101
|
+
l(typeof e == "string" ? (a = i) == null ? void 0 : a.find((n) => n.name == e) : e);
|
|
103
102
|
}, [e]);
|
|
104
|
-
const
|
|
105
|
-
var
|
|
106
|
-
|
|
103
|
+
const s = () => {
|
|
104
|
+
var a;
|
|
105
|
+
l(typeof e == "string" ? (a = i) == null ? void 0 : a.find((n) => n.name == e) : e);
|
|
107
106
|
};
|
|
108
|
-
return /* @__PURE__ */
|
|
109
|
-
|
|
107
|
+
return /* @__PURE__ */ c(
|
|
108
|
+
b.Provider,
|
|
110
109
|
{
|
|
111
|
-
value: { theme: t, switchTheme:
|
|
112
|
-
children: /* @__PURE__ */
|
|
113
|
-
/* @__PURE__ */
|
|
110
|
+
value: { theme: t, switchTheme: s },
|
|
111
|
+
children: /* @__PURE__ */ m($, { theme: t, children: [
|
|
112
|
+
/* @__PURE__ */ c(C, { theme: t }),
|
|
114
113
|
o
|
|
115
114
|
] })
|
|
116
115
|
}
|
|
117
116
|
);
|
|
118
117
|
};
|
|
119
|
-
z.propTypes = {
|
|
120
|
-
theme: i.oneOfType([i.string, i.object])
|
|
121
|
-
};
|
|
122
118
|
export {
|
|
123
|
-
|
|
124
|
-
|
|
119
|
+
F as default,
|
|
120
|
+
w as useTheme
|
|
125
121
|
};
|
package/dist/TimeInput.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";const
|
|
2
|
-
min-height: ${
|
|
3
|
-
max-height: ${
|
|
4
|
-
`},
|
|
5
|
-
${e=>
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),d=require("react"),f=require("./emotion-styled.browser.esm-BtEseadx.cjs"),k=require("./index-Cp66dWMi.cjs"),t=require("./utils-RnrgDDZP.cjs"),q=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),v=({theme:e,size:a})=>{var l=t.getSizeValueWithUnits(e,a);return`
|
|
2
|
+
min-height: ${l};
|
|
3
|
+
max-height: ${l};
|
|
4
|
+
`},O=f.styled.input`
|
|
5
|
+
${e=>v(e)}
|
|
6
6
|
${e=>t.getComponentTypographyCss(e.theme,"Input",e.size,"enabled")}
|
|
7
7
|
padding: 0.625rem 0.75rem 0.62rem 0.75rem;
|
|
8
8
|
line-height: inherit;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
&:disabled {
|
|
21
21
|
/* ${e=>t.getDisabledStateCss(e.theme)}; */
|
|
22
22
|
${e=>`background-color: ${t.getColorRgbaValue(e.theme,"Input",e.color,"disabled","background","backgroundOpacity")};
|
|
23
|
-
color: ${
|
|
23
|
+
color: ${a=>t.getColorRgbaValue(a.theme,"Input",a.color,"disabled","text")};`}
|
|
24
24
|
cursor: default;
|
|
25
25
|
}
|
|
26
26
|
&:focus:enabled {
|
|
@@ -30,4 +30,4 @@
|
|
|
30
30
|
border: 1px solid
|
|
31
31
|
${e=>t.getColorRgbaValue(e.theme,"Input","primary",e.disabled===!0?"disabled":"enabled","border")};
|
|
32
32
|
}
|
|
33
|
-
`,
|
|
33
|
+
`,S=d.forwardRef((e,a)=>{const{disabled:l,readOnly:b,defaultValue:c,value:o,debounceTime:g=0,onChange:n,className:m="",style:h={},size:C="small",color:$="primary",...y}=e,x=q.useTheme(),[V,s]=d.useState(o||c||"");d.useEffect(()=>{o!=null&&s(o)},[o]);const I=d.useCallback(k.debounce((r,u)=>R(r,u),g),[n]),R=(r,u)=>{n&&(n==null||n(r,u))},p=r=>{s(r.target.value),I(r,r.target.value)};return i.jsx(i.Fragment,{children:i.jsx(O,{type:"time",ref:a,onChange:p,disabled:l,readOnly:b,theme:x,color:$,size:C,className:m,style:h,value:V,...y})})});module.exports=S;
|