@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
package/dist/PasswordInput.js
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import K from "./Icon.js";
|
|
1
|
+
import { jsxs as D, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as q, useRef as A, useState as x, useEffect as k, useCallback as G } from "react";
|
|
3
|
+
import { d as H } from "./index-Dt62UGku.js";
|
|
4
|
+
import J from "./Icon.js";
|
|
6
5
|
import { s as h } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
7
|
-
import { d as
|
|
8
|
-
import { u as
|
|
9
|
-
const
|
|
6
|
+
import { d as g, b as o, a as K, e as M, h as O, c as Q } from "./utils-DtEfC-TX.js";
|
|
7
|
+
import { u as X } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
|
+
const Y = h.div`
|
|
10
9
|
display: flex;
|
|
11
10
|
align-items: center;
|
|
12
11
|
|
|
13
|
-
min-height: ${(e) =>
|
|
14
|
-
max-height: ${(e) =>
|
|
15
|
-
background-color: ${(e) =>
|
|
12
|
+
min-height: ${(e) => g(e.theme, e.size)};
|
|
13
|
+
max-height: ${(e) => g(e.theme, e.size)};
|
|
14
|
+
background-color: ${(e) => o(
|
|
16
15
|
e.theme,
|
|
17
16
|
"Input",
|
|
18
17
|
e.color,
|
|
@@ -20,18 +19,18 @@ const Z = h.div`
|
|
|
20
19
|
"background"
|
|
21
20
|
)};
|
|
22
21
|
border: 1px solid
|
|
23
|
-
${(e) =>
|
|
22
|
+
${(e) => o(
|
|
24
23
|
e.theme,
|
|
25
24
|
"Input",
|
|
26
25
|
e.focused === !0 ? "primary" : e.color,
|
|
27
26
|
e.disabled === !0 ? "disabled" : "enabled",
|
|
28
27
|
"border"
|
|
29
28
|
)};
|
|
30
|
-
border-radius: ${(e) =>
|
|
29
|
+
border-radius: ${(e) => K(e.theme, "regular")};
|
|
31
30
|
|
|
32
|
-
${(e) => e.focused && e.readOnly !== !0 ?
|
|
33
|
-
/* ${(e) => e.disabled === !0 ?
|
|
34
|
-
${(e) => e.disabled === !0 && `background-color: ${
|
|
31
|
+
${(e) => e.focused && e.readOnly !== !0 ? M(e.theme) : ""}
|
|
32
|
+
/* ${(e) => e.disabled === !0 ? O(e.theme) : ""} */
|
|
33
|
+
${(e) => e.disabled === !0 && `background-color: ${o(
|
|
35
34
|
e.theme,
|
|
36
35
|
"Input",
|
|
37
36
|
e.color,
|
|
@@ -39,25 +38,25 @@ const Z = h.div`
|
|
|
39
38
|
"background",
|
|
40
39
|
"backgroundOpacity"
|
|
41
40
|
)};
|
|
42
|
-
color: ${(
|
|
43
|
-
|
|
41
|
+
color: ${(n) => o(
|
|
42
|
+
n.theme,
|
|
44
43
|
"Input",
|
|
45
|
-
|
|
44
|
+
n.color,
|
|
46
45
|
"disabled",
|
|
47
46
|
"text"
|
|
48
47
|
)};`}
|
|
49
|
-
`,
|
|
48
|
+
`, I = h.span`
|
|
50
49
|
padding: 0 12px;
|
|
51
|
-
color: ${(e) =>
|
|
50
|
+
color: ${(e) => o(
|
|
52
51
|
e.theme,
|
|
53
52
|
"Input",
|
|
54
53
|
e.focused === !0 ? "primary" : e.color,
|
|
55
54
|
"enabled",
|
|
56
55
|
"prefix"
|
|
57
56
|
)};
|
|
58
|
-
`,
|
|
57
|
+
`, Z = h(I)``, _ = h(I)`
|
|
59
58
|
cursor: pointer;
|
|
60
|
-
`,
|
|
59
|
+
`, ee = h.input`
|
|
61
60
|
background: none;
|
|
62
61
|
border: none;
|
|
63
62
|
outline: none;
|
|
@@ -65,22 +64,22 @@ const Z = h.div`
|
|
|
65
64
|
padding-bottom: 0.625rem;
|
|
66
65
|
width: 100%;
|
|
67
66
|
|
|
68
|
-
${(e) =>
|
|
69
|
-
min-height: ${(e) =>
|
|
70
|
-
max-height: ${(e) =>
|
|
71
|
-
color: ${(e) =>
|
|
67
|
+
${(e) => Q(e.theme, "Input", e.size, "enabled")}
|
|
68
|
+
min-height: ${(e) => g(e.theme, e.size)};
|
|
69
|
+
max-height: ${(e) => g(e.theme, e.size)};
|
|
70
|
+
color: ${(e) => o(
|
|
72
71
|
e.theme,
|
|
73
72
|
"Input",
|
|
74
73
|
e.focused === !0 ? "primary" : e.color,
|
|
75
74
|
"enabled",
|
|
76
75
|
"text"
|
|
77
76
|
)};
|
|
78
|
-
caret-color: ${(e) =>
|
|
77
|
+
caret-color: ${(e) => o(e.theme, "Input", e.color, "enabled", "caret")};
|
|
79
78
|
padding-right: ${(e) => e.suffix ? "0" : "0.75rem"};
|
|
80
79
|
padding-left: ${(e) => e.prefix ? "0" : "0.75rem"};
|
|
81
80
|
|
|
82
81
|
&::placeholder {
|
|
83
|
-
color: ${(e) =>
|
|
82
|
+
color: ${(e) => o(
|
|
84
83
|
e.theme,
|
|
85
84
|
"Input",
|
|
86
85
|
e.color,
|
|
@@ -94,8 +93,8 @@ const Z = h.div`
|
|
|
94
93
|
}
|
|
95
94
|
|
|
96
95
|
&:disabled {
|
|
97
|
-
/* ${(e) =>
|
|
98
|
-
${(e) => `background-color: ${
|
|
96
|
+
/* ${(e) => O(e.theme)} */
|
|
97
|
+
${(e) => `background-color: ${o(
|
|
99
98
|
e.theme,
|
|
100
99
|
"Input",
|
|
101
100
|
e.color,
|
|
@@ -103,158 +102,130 @@ const Z = h.div`
|
|
|
103
102
|
"background",
|
|
104
103
|
"backgroundOpacity"
|
|
105
104
|
)};
|
|
106
|
-
color: ${(
|
|
107
|
-
|
|
105
|
+
color: ${(n) => o(
|
|
106
|
+
n.theme,
|
|
108
107
|
"Input",
|
|
109
|
-
|
|
108
|
+
n.color,
|
|
110
109
|
"disabled",
|
|
111
110
|
"text"
|
|
112
111
|
)};`}
|
|
113
112
|
background: none;
|
|
114
113
|
}
|
|
115
|
-
`,
|
|
114
|
+
`, se = q((e, n) => {
|
|
116
115
|
const {
|
|
117
|
-
wrapperRef:
|
|
116
|
+
wrapperRef: w,
|
|
118
117
|
disabled: C,
|
|
119
118
|
readOnly: S,
|
|
120
|
-
debounceTime:
|
|
121
|
-
placeholder:
|
|
122
|
-
prefix:
|
|
123
|
-
suffix:
|
|
124
|
-
value:
|
|
125
|
-
defaultValue:
|
|
119
|
+
debounceTime: R = 0,
|
|
120
|
+
placeholder: V,
|
|
121
|
+
prefix: f,
|
|
122
|
+
suffix: b,
|
|
123
|
+
value: r,
|
|
124
|
+
defaultValue: B,
|
|
126
125
|
//----------------
|
|
127
|
-
onChange:
|
|
126
|
+
onChange: d,
|
|
128
127
|
onBlur: $,
|
|
129
|
-
onFocus:
|
|
128
|
+
onFocus: y,
|
|
130
129
|
//----------------
|
|
131
|
-
className:
|
|
132
|
-
style:
|
|
133
|
-
size:
|
|
134
|
-
color:
|
|
135
|
-
...
|
|
136
|
-
} = e,
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
}, [
|
|
140
|
-
const [
|
|
141
|
-
|
|
142
|
-
var
|
|
143
|
-
const t = ((
|
|
144
|
-
|
|
145
|
-
}, [
|
|
146
|
-
|
|
147
|
-
}, [
|
|
148
|
-
const
|
|
149
|
-
|
|
150
|
-
[
|
|
151
|
-
), E = (t,
|
|
152
|
-
|
|
153
|
-
},
|
|
154
|
-
|
|
155
|
-
},
|
|
156
|
-
|
|
130
|
+
className: F = "",
|
|
131
|
+
style: L = {},
|
|
132
|
+
size: p = "small",
|
|
133
|
+
color: c = "primary",
|
|
134
|
+
...N
|
|
135
|
+
} = e, l = A(), u = X(), [T, v] = x(r || B || "");
|
|
136
|
+
k(() => {
|
|
137
|
+
r != null && v(r);
|
|
138
|
+
}, [r]);
|
|
139
|
+
const [m, W] = x(!0), [s, z] = x(!1);
|
|
140
|
+
k(() => {
|
|
141
|
+
var a;
|
|
142
|
+
const t = ((a = l == null ? void 0 : l.current) == null ? void 0 : a.value) || "";
|
|
143
|
+
l.current.selectionStart = t != null && t.length ? t.length : 0, l.current.selectionEnd = t != null && t.length ? t.length : 0;
|
|
144
|
+
}, [m]), k(() => {
|
|
145
|
+
n != null && (n.current = l.current);
|
|
146
|
+
}, [n, l]);
|
|
147
|
+
const j = G(
|
|
148
|
+
H((t, a) => E(t, a), R),
|
|
149
|
+
[d]
|
|
150
|
+
), E = (t, a) => {
|
|
151
|
+
d && (d == null || d(t, a));
|
|
152
|
+
}, P = (t) => {
|
|
153
|
+
v(t.target.value), j(t, t.target.value);
|
|
154
|
+
}, U = () => {
|
|
155
|
+
W(!m), l.current.focus();
|
|
157
156
|
};
|
|
158
|
-
return /* @__PURE__ */
|
|
159
|
-
|
|
157
|
+
return /* @__PURE__ */ D(
|
|
158
|
+
Y,
|
|
160
159
|
{
|
|
161
|
-
ref:
|
|
162
|
-
style:
|
|
163
|
-
className:
|
|
160
|
+
ref: w,
|
|
161
|
+
style: L,
|
|
162
|
+
className: F,
|
|
164
163
|
theme: u,
|
|
165
|
-
color:
|
|
166
|
-
size:
|
|
167
|
-
focused:
|
|
164
|
+
color: c,
|
|
165
|
+
size: p,
|
|
166
|
+
focused: s,
|
|
168
167
|
disabled: C,
|
|
169
168
|
readOnly: S,
|
|
170
169
|
children: [
|
|
171
|
-
|
|
172
|
-
|
|
170
|
+
f && /* @__PURE__ */ i(
|
|
171
|
+
I,
|
|
173
172
|
{
|
|
174
173
|
theme: u,
|
|
175
|
-
color:
|
|
176
|
-
focused:
|
|
174
|
+
color: c,
|
|
175
|
+
focused: s,
|
|
177
176
|
className: "lnc-input-prefix",
|
|
178
|
-
children:
|
|
177
|
+
children: f
|
|
179
178
|
}
|
|
180
179
|
),
|
|
181
|
-
/* @__PURE__ */
|
|
182
|
-
|
|
180
|
+
/* @__PURE__ */ i(
|
|
181
|
+
ee,
|
|
183
182
|
{
|
|
184
|
-
ref:
|
|
185
|
-
type:
|
|
183
|
+
ref: l,
|
|
184
|
+
type: m ? "password" : "text",
|
|
186
185
|
theme: u,
|
|
187
|
-
color:
|
|
188
|
-
size:
|
|
189
|
-
placeholder:
|
|
190
|
-
prefix:
|
|
191
|
-
suffix:
|
|
186
|
+
color: c,
|
|
187
|
+
size: p,
|
|
188
|
+
placeholder: V,
|
|
189
|
+
prefix: f,
|
|
190
|
+
suffix: b,
|
|
192
191
|
disabled: C,
|
|
193
192
|
readOnly: S,
|
|
194
|
-
focused:
|
|
193
|
+
focused: s,
|
|
195
194
|
onFocus: (t) => {
|
|
196
|
-
z(!0),
|
|
195
|
+
z(!0), y == null || y(t);
|
|
197
196
|
},
|
|
198
197
|
onBlur: (t) => {
|
|
199
198
|
z(!1), $ == null || $(t);
|
|
200
199
|
},
|
|
201
|
-
onChange:
|
|
202
|
-
value:
|
|
203
|
-
...
|
|
200
|
+
onChange: P,
|
|
201
|
+
value: T,
|
|
202
|
+
...N
|
|
204
203
|
}
|
|
205
204
|
),
|
|
206
|
-
/* @__PURE__ */
|
|
207
|
-
|
|
205
|
+
/* @__PURE__ */ i(
|
|
206
|
+
_,
|
|
208
207
|
{
|
|
209
208
|
theme: u,
|
|
210
|
-
color:
|
|
211
|
-
focused:
|
|
212
|
-
onClick:
|
|
213
|
-
children: /* @__PURE__ */
|
|
209
|
+
color: c,
|
|
210
|
+
focused: s,
|
|
211
|
+
onClick: U,
|
|
212
|
+
children: /* @__PURE__ */ i(J, { icon: m ? "eye-slash" : "eye" })
|
|
214
213
|
}
|
|
215
214
|
),
|
|
216
|
-
|
|
217
|
-
|
|
215
|
+
b && /* @__PURE__ */ i(
|
|
216
|
+
Z,
|
|
218
217
|
{
|
|
219
218
|
theme: u,
|
|
220
|
-
color:
|
|
221
|
-
focused:
|
|
219
|
+
color: c,
|
|
220
|
+
focused: s,
|
|
222
221
|
className: "lnc-input-suffix",
|
|
223
|
-
children:
|
|
222
|
+
children: b
|
|
224
223
|
}
|
|
225
224
|
)
|
|
226
225
|
]
|
|
227
226
|
}
|
|
228
227
|
);
|
|
229
228
|
});
|
|
230
|
-
ne.propTypes = {
|
|
231
|
-
id: n.any,
|
|
232
|
-
value: n.string,
|
|
233
|
-
defaultValue: n.string,
|
|
234
|
-
disabled: n.bool,
|
|
235
|
-
readOnly: n.bool,
|
|
236
|
-
debounceTime: n.number,
|
|
237
|
-
placeholder: n.string,
|
|
238
|
-
tabIndex: n.number,
|
|
239
|
-
//----------------
|
|
240
|
-
onChange: n.func,
|
|
241
|
-
onBlur: n.func,
|
|
242
|
-
onFocus: n.func,
|
|
243
|
-
//----------------
|
|
244
|
-
className: n.string,
|
|
245
|
-
style: n.object,
|
|
246
|
-
size: n.oneOf(["small", "medium", "large"]),
|
|
247
|
-
color: n.oneOf([
|
|
248
|
-
"primary",
|
|
249
|
-
"secondary",
|
|
250
|
-
"success",
|
|
251
|
-
"danger",
|
|
252
|
-
"warning",
|
|
253
|
-
"information",
|
|
254
|
-
"neutral",
|
|
255
|
-
"gray"
|
|
256
|
-
])
|
|
257
|
-
};
|
|
258
229
|
export {
|
|
259
|
-
|
|
230
|
+
se as default
|
|
260
231
|
};
|
package/dist/Popover.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),n=require("./PopoverContext.cjs"),u=require("./usePopover.cjs");function i({children:e,modal:o=!1,...r}){const t=u({modal:o,...r});return s.jsx(n.Provider,{value:t,children:e})}module.exports=i;
|
package/dist/Popover.js
CHANGED
|
@@ -1,35 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return /* @__PURE__ */ n(a.Provider, { value: p, children: t });
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import f from "./PopoverContext.js";
|
|
3
|
+
import m from "./usePopover.js";
|
|
4
|
+
function s({ children: o, modal: r = !1, ...e }) {
|
|
5
|
+
const t = m({ modal: r, ...e });
|
|
6
|
+
return /* @__PURE__ */ p(f.Provider, { value: t, children: o });
|
|
8
7
|
}
|
|
9
|
-
m.propTypes = {
|
|
10
|
-
initialOpen: o.bool,
|
|
11
|
-
placement: o.oneOf([
|
|
12
|
-
"center",
|
|
13
|
-
"top",
|
|
14
|
-
"right",
|
|
15
|
-
"bottom",
|
|
16
|
-
"left",
|
|
17
|
-
"top-start",
|
|
18
|
-
"top-end",
|
|
19
|
-
"right-start",
|
|
20
|
-
"right-end",
|
|
21
|
-
"bottom-start",
|
|
22
|
-
"bottom-end",
|
|
23
|
-
"left-start",
|
|
24
|
-
"left-end"
|
|
25
|
-
]),
|
|
26
|
-
modal: o.bool,
|
|
27
|
-
offsetValue: o.number,
|
|
28
|
-
/** For controlled usage of Popover */
|
|
29
|
-
open: o.bool,
|
|
30
|
-
/** For controlled usage of Popover */
|
|
31
|
-
onOpenChange: o.func
|
|
32
|
-
};
|
|
33
8
|
export {
|
|
34
|
-
|
|
9
|
+
s as default
|
|
35
10
|
};
|
package/dist/PopoverContent.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),l=require("react"),i=require("./floating-ui.react.esm-CiYofNnh.cjs"),g=require("./PopoverContext.cjs"),p=require("./emotion-styled.browser.esm-BtEseadx.cjs"),s=require("./utils-RnrgDDZP.cjs"),x=require("./motion-B_VPZaJq.cjs"),h=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),f=p.styled(x.motion.div)`
|
|
2
2
|
font-family: ${e=>{var t,r;return(r=(t=e.theme)==null?void 0:t.typography)==null?void 0:r.fontFamily}};
|
|
3
3
|
animation: fadeIn 0.4s;
|
|
4
|
-
box-shadow: ${e=>
|
|
5
|
-
border-radius: ${e=>
|
|
4
|
+
box-shadow: ${e=>s.getComponentPropValue(e.theme,"Popover",e.color,"enabled","boxShadow")};
|
|
5
|
+
border-radius: ${e=>s.getBorderRadiusValueWithUnits(e.theme,e.borderRadius)};
|
|
6
6
|
border-top: 1px solid rgba(0, 0, 0, 0.04);
|
|
7
7
|
box-sizing: border-box;
|
|
8
8
|
padding: 0.25rem;
|
|
9
|
-
background-color: ${e=>
|
|
10
|
-
`,
|
|
9
|
+
background-color: ${e=>s.getColorRgbaValue(e.theme,"Popover","default","enabled","bg")};
|
|
10
|
+
`,y=()=>{const e=l.useContext(g);if(e==null)throw new Error("Popover components must be wrapped in <Popover />");return e},v=l.forwardRef(function({borderRadius:t="regular",className:r="",zIndex:c,style:d={},...a},u){const o=y(),m=i.useMergeRefs([o.floating,u]),b=h.useTheme();return n.jsx(i.FloatingPortal,{children:o.open&&n.jsx(i.FloatingFocusManager,{context:o.context,modal:o.modal,children:n.jsx("div",{ref:m,style:{position:o.strategy,top:o.y??0,left:o.x??0,width:"max-content",zIndex:c},className:"lnc-ui-floating-manager","aria-labelledby":o.labelId,"aria-describedby":o.descriptionId,...o.getFloatingProps(a),children:n.jsx(f,{theme:b,borderRadius:t,className:"lnc-ui-popover-content "+r,style:d,children:a.children})})})})});module.exports=v;
|
package/dist/PopoverContent.js
CHANGED
|
@@ -1,38 +1,37 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as c, useContext as
|
|
3
|
-
import { a as f, F as u, b
|
|
4
|
-
import
|
|
5
|
-
import h from "./
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
const F = x(w.div)`
|
|
2
|
+
import { forwardRef as c, useContext as p } from "react";
|
|
3
|
+
import { a as f, F as u, b } from "./floating-ui.react.esm-CfpRzwmn.js";
|
|
4
|
+
import g from "./PopoverContext.js";
|
|
5
|
+
import { s as h } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
6
|
+
import { g as x, a as v, b as y } from "./utils-DtEfC-TX.js";
|
|
7
|
+
import { m as P } from "./motion-Ckekul_K.js";
|
|
8
|
+
import { u as w } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
9
|
+
const C = h(P.div)`
|
|
11
10
|
font-family: ${(o) => {
|
|
12
11
|
var t, r;
|
|
13
12
|
return (r = (t = o.theme) == null ? void 0 : t.typography) == null ? void 0 : r.fontFamily;
|
|
14
13
|
}};
|
|
15
14
|
animation: fadeIn 0.4s;
|
|
16
|
-
box-shadow: ${(o) =>
|
|
15
|
+
box-shadow: ${(o) => x(
|
|
17
16
|
o.theme,
|
|
18
17
|
"Popover",
|
|
19
18
|
o.color,
|
|
20
19
|
"enabled",
|
|
21
20
|
"boxShadow"
|
|
22
21
|
)};
|
|
23
|
-
border-radius: ${(o) =>
|
|
22
|
+
border-radius: ${(o) => v(o.theme, o.borderRadius)};
|
|
24
23
|
border-top: 1px solid rgba(0, 0, 0, 0.04);
|
|
25
24
|
box-sizing: border-box;
|
|
26
25
|
padding: 0.25rem;
|
|
27
|
-
background-color: ${(o) =>
|
|
28
|
-
`,
|
|
29
|
-
const o =
|
|
26
|
+
background-color: ${(o) => y(o.theme, "Popover", "default", "enabled", "bg")};
|
|
27
|
+
`, F = () => {
|
|
28
|
+
const o = p(g);
|
|
30
29
|
if (o == null)
|
|
31
30
|
throw new Error("Popover components must be wrapped in <Popover />");
|
|
32
31
|
return o;
|
|
33
|
-
},
|
|
34
|
-
const e =
|
|
35
|
-
return /* @__PURE__ */ a(u, { children: e.open && /* @__PURE__ */ a(
|
|
32
|
+
}, k = c(function({ borderRadius: t = "regular", className: r = "", zIndex: i, style: s = {}, ...n }, l) {
|
|
33
|
+
const e = F(), d = f([e.floating, l]), m = w();
|
|
34
|
+
return /* @__PURE__ */ a(u, { children: e.open && /* @__PURE__ */ a(b, { context: e.context, modal: e.modal, children: /* @__PURE__ */ a(
|
|
36
35
|
"div",
|
|
37
36
|
{
|
|
38
37
|
ref: d,
|
|
@@ -46,25 +45,20 @@ const F = x(w.div)`
|
|
|
46
45
|
className: "lnc-ui-floating-manager",
|
|
47
46
|
"aria-labelledby": e.labelId,
|
|
48
47
|
"aria-describedby": e.descriptionId,
|
|
49
|
-
...e.getFloatingProps(
|
|
48
|
+
...e.getFloatingProps(n),
|
|
50
49
|
children: /* @__PURE__ */ a(
|
|
51
|
-
|
|
50
|
+
C,
|
|
52
51
|
{
|
|
53
|
-
theme:
|
|
52
|
+
theme: m,
|
|
54
53
|
borderRadius: t,
|
|
55
54
|
className: "lnc-ui-popover-content " + r,
|
|
56
|
-
style:
|
|
57
|
-
children:
|
|
55
|
+
style: s,
|
|
56
|
+
children: n.children
|
|
58
57
|
}
|
|
59
58
|
)
|
|
60
59
|
}
|
|
61
60
|
) }) });
|
|
62
61
|
});
|
|
63
|
-
I.propTypes = {
|
|
64
|
-
className: n.string,
|
|
65
|
-
style: n.object,
|
|
66
|
-
zIndex: n.number
|
|
67
|
-
};
|
|
68
62
|
export {
|
|
69
|
-
|
|
63
|
+
k as default
|
|
70
64
|
};
|
package/dist/PopoverTrigger.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),o=require("react"),u=require("./floating-ui.react.esm-CiYofNnh.cjs"),f=require("./PopoverContext.cjs"),g=()=>{const r=o.useContext(f);if(r==null)throw new Error("Popover components must be wrapped in <Popover />");return r},P=o.forwardRef(function({children:e,asChild:c,...n},p){const t=g(),a=e.ref,s=u.useMergeRefs([t.reference,p,a]);return c&&o.isValidElement(e)?o.cloneElement(e,t.getReferenceProps({ref:s,...n,...e.props,"data-state":t.open?"open":"closed"})):i.jsx("div",{ref:s,"data-state":t.open?"open":"closed",style:{width:"max-content"},...t.getReferenceProps(n),children:e})});module.exports=P;
|
package/dist/PopoverTrigger.js
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as c, isValidElement as m, cloneElement as i, useContext as u } from "react";
|
|
3
3
|
import { a as P } from "./floating-ui.react.esm-CfpRzwmn.js";
|
|
4
|
-
import { P as l } from "./index-CblbdqjE.js";
|
|
5
4
|
import d from "./PopoverContext.js";
|
|
6
5
|
const g = () => {
|
|
7
6
|
const t = u(d);
|
|
8
7
|
if (t == null)
|
|
9
8
|
throw new Error("Popover components must be wrapped in <Popover />");
|
|
10
9
|
return t;
|
|
11
|
-
},
|
|
12
|
-
const o = g(),
|
|
13
|
-
return s &&
|
|
10
|
+
}, R = c(function({ children: e, asChild: s, ...r }, p) {
|
|
11
|
+
const o = g(), f = e.ref, n = P([o.reference, p, f]);
|
|
12
|
+
return s && m(e) ? i(
|
|
14
13
|
e,
|
|
15
14
|
o.getReferenceProps({
|
|
16
15
|
ref: n,
|
|
@@ -18,7 +17,7 @@ const g = () => {
|
|
|
18
17
|
...e.props,
|
|
19
18
|
"data-state": o.open ? "open" : "closed"
|
|
20
19
|
})
|
|
21
|
-
) : /* @__PURE__ */
|
|
20
|
+
) : /* @__PURE__ */ a(
|
|
22
21
|
"div",
|
|
23
22
|
{
|
|
24
23
|
ref: n,
|
|
@@ -29,10 +28,6 @@ const g = () => {
|
|
|
29
28
|
}
|
|
30
29
|
);
|
|
31
30
|
});
|
|
32
|
-
v.propTypes = {
|
|
33
|
-
/** Allows the user to pass any element as the anchor */
|
|
34
|
-
asChild: l.bool
|
|
35
|
-
};
|
|
36
31
|
export {
|
|
37
|
-
|
|
32
|
+
R as default
|
|
38
33
|
};
|
package/dist/ProgressBar.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const l=require("react/jsx-runtime"),n=require("react"),i=require("./emotion-styled.browser.esm-BtEseadx.cjs"),r=require("./utils-RnrgDDZP.cjs"),p=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),x=i.styled.div`
|
|
2
2
|
width: 100%;
|
|
3
3
|
position: relative;
|
|
4
|
-
background-color: ${e=>
|
|
4
|
+
background-color: ${e=>r.getColorRgbaValue(e.theme,"Progress",e.color,"enabled","unfilled")};
|
|
5
5
|
height: ${e=>e.theme.components.Progress.default.enabled.sizes[e.size]};
|
|
6
6
|
border-radius: 5px;
|
|
7
7
|
animation: progres 4s infinite linear;
|
|
8
|
-
`,
|
|
8
|
+
`,f=i.styled.div`
|
|
9
9
|
position: relative;
|
|
10
10
|
height: 100%;
|
|
11
11
|
width: ${e=>e.progressPercentage+"%"};
|
|
12
|
-
background-color: ${e=>
|
|
12
|
+
background-color: ${e=>r.getColorRgbaValue(e.theme,"Progress",e.color,"enabled","background")};
|
|
13
13
|
position: absolute;
|
|
14
14
|
border-radius: ${e=>e.progressPercentage==100?"5px":"5px 0px 0px 5px"};
|
|
15
15
|
transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
top: 50%;
|
|
21
21
|
transform: translate(50%, -50%);
|
|
22
22
|
}
|
|
23
|
-
`,
|
|
24
|
-
${e=>
|
|
23
|
+
`,P=i.styled.label`
|
|
24
|
+
${e=>r.getComponentTypographyCss(e.theme,"Progress",e.size,"enabled")};
|
|
25
25
|
position: absolute;
|
|
26
26
|
top: 50%;
|
|
27
27
|
left: 50%;
|
|
28
28
|
transform: translate(-50%, -50%);
|
|
29
|
-
color: ${e=>
|
|
30
|
-
`,
|
|
29
|
+
color: ${e=>r.getColorRgbaValue(e.theme,"Progress",e.color,"enabled","text")};
|
|
30
|
+
`,y=n.forwardRef((e,$)=>{const{showLabel:a=!1,progressPercentage:o=0,className:d="",style:u={},size:c="small",color:m="primary",progressBarEndComponent:s,...b}=e,t=p.useTheme(),h=()=>{var g;if(n.isValidElement(s))return n.cloneElement(s,{className:`progress-icon ${(g=s==null?void 0:s.props)==null?void 0:g.className}`})};return l.jsxs(x,{style:u,className:"lnc-ui-progress "+d,theme:t,size:c,showLabel:a,progressPercentage:o,...b,children:[l.jsx(f,{progressPercentage:o,theme:t,color:m,children:s!==null&&h()}),a&&l.jsxs(P,{theme:t,size:c,children:[o,"%"]})]})});module.exports=y;
|