@lanaco/lnc-react-ui 4.0.2 → 4.0.3
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/bundle-visualization.html +4842 -0
- package/dist/Accordion.cjs +1 -1
- package/dist/Accordion.js +55 -50
- package/dist/AccordionDetails.cjs +1 -1
- package/dist/AccordionDetails.js +15 -15
- package/dist/AccordionSummary.cjs +1 -1
- package/dist/AccordionSummary.js +11 -11
- package/dist/ActionsToolbar.cjs +2 -2
- package/dist/ActionsToolbar.js +16 -16
- package/dist/Alert.cjs +1 -1
- package/dist/Alert.js +23 -23
- package/dist/Avatar.cjs +2 -2
- package/dist/Avatar.js +23 -25
- package/dist/Badge.cjs +1 -1
- package/dist/Badge.js +21 -14
- package/dist/Breadcrumbs.cjs +1 -1
- package/dist/Breadcrumbs.js +28 -28
- package/dist/Button.cjs +1 -1
- package/dist/Button.js +21 -21
- package/dist/ButtonGroup.cjs +1 -1
- package/dist/ButtonGroup.js +10 -6
- package/dist/CheckBoxInput.cjs +1 -1
- package/dist/CheckBoxInput.js +4 -4
- package/dist/Chip.cjs +1 -1
- package/dist/Chip.js +9 -9
- package/dist/ColorInput.cjs +1 -1
- package/dist/ColorInput.js +5 -5
- package/dist/ConfirmationForm.cjs +5 -5
- package/dist/ConfirmationForm.js +59 -59
- package/dist/Content.cjs +1 -1
- package/dist/Content.js +8 -8
- package/dist/{CustomStyles-nfD3J1mi.js → CustomStyles-BUSJ8bZt.js} +5 -5
- package/dist/{CustomStyles-CqlCjTgU.cjs → CustomStyles-Dlqxic2X.cjs} +1 -1
- package/dist/DataView.cjs +1 -1
- package/dist/DataView.js +2 -2
- package/dist/DateInput.cjs +4 -4
- package/dist/DateInput.js +491 -491
- package/dist/DecimalInput.cjs +1 -1
- package/dist/DecimalInput.js +5 -5
- package/dist/DetailsView.cjs +4 -4
- package/dist/DetailsView.js +40 -40
- package/dist/DoubleRangeSlider.cjs +1 -1
- package/dist/DoubleRangeSlider.js +4 -4
- package/dist/DragAndDropFile.cjs +1 -1
- package/dist/DragAndDropFile.js +6 -6
- package/dist/DragDropFiles.cjs +1 -1
- package/dist/DragDropFiles.js +4 -4
- package/dist/Drawer.cjs +1 -1
- package/dist/Drawer.js +15 -15
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +6 -6
- package/dist/DropdownItem.cjs +1 -1
- package/dist/DropdownItem.js +4 -4
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +6 -6
- package/dist/DropdownMenu.cjs +7 -1
- package/dist/DropdownMenu.js +192 -10
- package/dist/EditableTable.cjs +1 -1
- package/dist/EditableTable.js +4 -4
- package/dist/FileInput.cjs +1 -1
- package/dist/FileInput.js +4 -4
- package/dist/FlexBox.cjs +1 -1
- package/dist/FlexBox.js +14 -14
- package/dist/FlexGrid.cjs +1 -1
- package/dist/FlexGrid.js +30 -30
- package/dist/FlexGridItem.cjs +1 -1
- package/dist/FlexGridItem.js +3 -3
- package/dist/Footer.cjs +1 -1
- package/dist/Footer.js +5 -5
- package/dist/FormField.cjs +1 -1
- package/dist/FormField.js +8 -9
- package/dist/FormView.cjs +1 -1
- package/dist/FormView.js +31 -31
- package/dist/Grid.cjs +1 -1
- package/dist/Grid.js +2 -2
- package/dist/GridItem.cjs +1 -1
- package/dist/GridItem.js +2 -2
- package/dist/Header.cjs +1 -1
- package/dist/Header.js +7 -7
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.js +33 -10
- package/dist/IconButton.cjs +5 -5
- package/dist/IconButton.js +33 -33
- package/dist/Kanban.cjs +12 -12
- package/dist/Kanban.js +948 -936
- package/dist/KanbanActionsToolbar.cjs +2 -2
- package/dist/KanbanActionsToolbar.js +28 -28
- package/dist/{KanbanCard-D9OhU8C6.js → KanbanCard-CHZ_C9kk.js} +50 -50
- package/dist/KanbanCard-DV3VnSUi.cjs +30 -0
- package/dist/KanbanCard.cjs +1 -1
- package/dist/KanbanCard.js +5 -5
- package/dist/KanbanFooter.cjs +1 -1
- package/dist/KanbanFooter.js +40 -40
- package/dist/KanbanHeader.cjs +2 -2
- package/dist/KanbanHeader.js +46 -46
- package/dist/KanbanView.cjs +1 -1
- package/dist/KanbanView.js +27 -27
- package/dist/Link.cjs +1 -1
- package/dist/Link.js +9 -9
- package/dist/MenuItem.cjs +1 -1
- package/dist/MenuItem.js +11 -11
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.js +7 -7
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +4 -4
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +4 -4
- package/dist/NestedDropdownItem.cjs +1 -1
- package/dist/NestedDropdownItem.js +18 -18
- package/dist/NestedMenuItem.cjs +1 -1
- package/dist/NestedMenuItem.js +9 -9
- package/dist/Notification.cjs +1 -83
- package/dist/Notification.js +3 -1077
- package/dist/NotificationContainer.cjs +37 -0
- package/dist/NotificationContainer.js +162 -0
- package/dist/NotificationMessage.cjs +47 -0
- package/dist/NotificationMessage.js +133 -0
- package/dist/NumberInput.cjs +1 -1
- package/dist/NumberInput.js +5 -5
- package/dist/PageLayout.cjs +2 -2
- package/dist/PageLayout.js +27 -27
- package/dist/Pagination.cjs +12 -0
- package/dist/Pagination.js +248 -0
- package/dist/PasswordInput.cjs +1 -1
- package/dist/PasswordInput.js +14 -14
- package/dist/Popover.cjs +1 -0
- package/dist/Popover.js +36 -0
- package/dist/PopoverClose.cjs +1 -0
- package/dist/PopoverClose.js +15 -0
- package/dist/PopoverContent.cjs +10 -0
- package/dist/PopoverContent.js +68 -0
- package/dist/PopoverContext.cjs +1 -0
- package/dist/PopoverContext.js +5 -0
- package/dist/PopoverDescription.cjs +1 -0
- package/dist/PopoverDescription.js +16 -0
- package/dist/PopoverHeading.cjs +1 -0
- package/dist/PopoverHeading.js +16 -0
- package/dist/PopoverTrigger.cjs +1 -0
- package/dist/PopoverTrigger.js +38 -0
- package/dist/ProgressBar.cjs +1 -1
- package/dist/ProgressBar.js +35 -24
- package/dist/RadioGroup.cjs +1 -1
- package/dist/RadioGroup.js +3 -3
- package/dist/RadioInput.cjs +1 -1
- package/dist/RadioInput.js +4 -4
- package/dist/RangeSlider.cjs +1 -1
- package/dist/RangeSlider.js +4 -4
- package/dist/SearchBar.cjs +1 -1
- package/dist/SearchBar.js +6 -6
- package/dist/Separator.cjs +1 -1
- package/dist/Separator.js +9 -9
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +4 -4
- package/dist/Spinner.cjs +1 -1
- package/dist/Spinner.js +25 -20
- package/dist/Surface.cjs +2 -2
- package/dist/Surface.js +14 -15
- package/dist/SwipeableDrawer.cjs +1 -1
- package/dist/SwipeableDrawer.js +4 -4
- package/dist/TabItem.cjs +26 -0
- package/dist/TabItem.js +210 -0
- package/dist/Table.cjs +20 -20
- package/dist/Table.js +13 -12
- package/dist/TableView.cjs +8 -1
- package/dist/TableView.js +238 -9
- package/dist/Tabs.cjs +1 -1
- package/dist/Tabs.js +3 -3
- package/dist/TextAreaInput.cjs +1 -1
- package/dist/TextAreaInput.js +5 -5
- package/dist/TextInput.cjs +1 -1
- package/dist/TextInput.js +5 -5
- package/dist/ThemeProvider.cjs +1 -1
- package/dist/ThemeProvider.js +5 -5
- package/dist/TimeInput.cjs +1 -1
- package/dist/TimeInput.js +9 -9
- package/dist/Toggle.cjs +1 -1
- package/dist/Toggle.js +4 -4
- package/dist/TreeMenu.cjs +1 -1
- package/dist/TreeMenu.js +2 -2
- package/dist/TreeMenuSeparator.cjs +3 -3
- package/dist/TreeMenuSeparator.js +11 -11
- package/dist/UploadedFile.cjs +1 -1
- package/dist/UploadedFile.js +29 -29
- package/dist/_commonjsHelpers-DKOUU3wS.cjs +1 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/{defineProperty-BHpTtkhC.js → defineProperty-B5pLF6px.js} +8 -8
- package/dist/{emotion-element-5486c51c.browser.esm-CSejtOeT.js → emotion-element-5486c51c.browser.esm-Bb4VkP8U.js} +4 -4
- package/dist/{emotion-is-prop-valid.esm-BzFBwmJz.js → emotion-is-prop-valid.esm-DkbeH1Xy.js} +1 -1
- package/dist/{emotion-react.browser.esm-OWM-uG8Q.js → emotion-react.browser.esm-CN-s34fZ.js} +6 -6
- package/dist/{emotion-react.browser.esm-DQBL7Wls.cjs → emotion-react.browser.esm-D7h2t2Bz.cjs} +1 -1
- package/dist/{emotion-styled.browser.esm-BZSYYThs.js → emotion-styled.browser.esm-BiK8DcgW.js} +12 -12
- package/dist/floating-ui.react.esm-72DKnou_.js +1198 -0
- package/dist/floating-ui.react.esm-C4vrBVJU.cjs +4 -0
- package/dist/{hoist-non-react-statics.cjs-Drf1aBlk.js → hoist-non-react-statics.cjs-CAHiRNzQ.js} +1 -1
- package/dist/{hoist-non-react-statics.cjs-B8r9S_ak.cjs → hoist-non-react-statics.cjs-Dr-ytKVG.cjs} +3 -3
- package/dist/{index-CZJEA84h.js → index--Kmch3aI.js} +1 -1
- package/dist/index-BIlhCoy2.cjs +20 -0
- package/dist/{index-BLQWNy78.js → index-BUChtubz.js} +4 -4
- package/dist/{index-Ds9PUTwb.js → index-BYnWp42a.js} +208 -213
- package/dist/{index-D5vEbKUT.js → index-CNBqQrtK.js} +1 -1
- package/dist/{index-IO9v6o0I.cjs → index-CSXL784P.cjs} +2 -2
- package/dist/{index-C29T0m2a.cjs → index-Ct1N7fF4.cjs} +1 -1
- package/dist/{index-BklgDeu4.js → index-Cu0xwYjD.js} +1 -1
- package/dist/{index-Cdkz-XH-.js → index-CvebWhtp.js} +1 -1
- package/dist/index-DAOBjHnD.cjs +1 -0
- package/dist/index-DBXXH_TD.cjs +1 -0
- package/dist/{index-B_da1uvD.js → index-DLVVKJXD.js} +1 -1
- package/dist/index-DaiUAQVF.cjs +1 -0
- package/dist/index.cjs +1 -26
- package/dist/index.js +180 -376
- package/dist/{motion-CtkUpWEn.js → motion-ecIGZGwI.js} +1 -1
- package/dist/react-toastify.esm-CkXGwKXL.js +798 -0
- package/dist/react-toastify.esm-Dqcb4SQT.cjs +1 -0
- package/dist/{setPrototypeOf-a891FLQJ.js → setPrototypeOf-CttqfWo1.js} +2 -2
- package/dist/{tslib.es6-ZNVz5r_T.js → tslib.es6-DQ-SzcmG.js} +5 -5
- package/dist/usePopover.cjs +1 -0
- package/dist/usePopover.js +44 -0
- package/dist/{utils-DEke8iwo.js → utils-C52T57HO.js} +73 -73
- package/dist/{utils-hdRGTsQ7.cjs → utils-DTAPpJXU.cjs} +1 -1
- package/package.json +17 -5
- package/vite.config.js +16 -0
- package/dist/DropdownMenu-B6qr13ik.cjs +0 -19
- package/dist/DropdownMenu-DZi3TJ8Q.js +0 -1547
- package/dist/KanbanCard-ConTmu3w.cjs +0 -30
- package/dist/TableView-Cj5_fbSR.js +0 -481
- package/dist/TableView-D8ex512p.cjs +0 -19
- package/dist/index-BjdOz5Ok.cjs +0 -1
- package/dist/index-DXnSjbfJ.cjs +0 -20
- package/dist/index-Dzkd2i4n.cjs +0 -1
- package/dist/index-P-naJISQ.cjs +0 -1
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import { jsx as i, jsxs as G, Fragment as $ } from "react/jsx-runtime";
|
|
2
|
+
import { useState as E } from "react";
|
|
3
|
+
import { P as t } from "./index-BYnWp42a.js";
|
|
4
|
+
import h from "./Button.js";
|
|
5
|
+
import b from "./IconButton.js";
|
|
6
|
+
import U from "./ButtonGroup.js";
|
|
7
|
+
import { n as O } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
8
|
+
import { u as q } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
9
|
+
import { u as w } from "./useUpdateEffect-CuYWz7EA.js";
|
|
10
|
+
const D = O.div`
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
flex-wrap: wrap;
|
|
13
|
+
width: 100%;
|
|
14
|
+
gap: 0.375rem;
|
|
15
|
+
justify-content: ${(d) => d.horizontalAlignment};
|
|
16
|
+
`, H = O.div`
|
|
17
|
+
& > .button-group-pagination-lnc {
|
|
18
|
+
width: 100%;
|
|
19
|
+
justify-content: ${(d) => d.horizontalAlignment};
|
|
20
|
+
}
|
|
21
|
+
`, I = (d) => {
|
|
22
|
+
const {
|
|
23
|
+
icons: c = {},
|
|
24
|
+
borderRadius: f = "regular",
|
|
25
|
+
currentPage: m = 1,
|
|
26
|
+
buttonType: B = "outline",
|
|
27
|
+
currentPageButtonType: N = "tinted",
|
|
28
|
+
withFirstLast: y = !0,
|
|
29
|
+
withButtonGroup: v = !0,
|
|
30
|
+
disabledNext: k = !1,
|
|
31
|
+
disabledPrevious: z = !1,
|
|
32
|
+
disabledFirst: L = !1,
|
|
33
|
+
disabledLast: j = !1,
|
|
34
|
+
disabled: l = !1,
|
|
35
|
+
totalNumberOfPages: g = 1,
|
|
36
|
+
pagesOffset: p = 0,
|
|
37
|
+
horizontalAlignment: P = "left",
|
|
38
|
+
//------------------
|
|
39
|
+
onPageChange: F = () => {
|
|
40
|
+
},
|
|
41
|
+
//------------------
|
|
42
|
+
className: x = "",
|
|
43
|
+
style: C = {},
|
|
44
|
+
color: S = "primary",
|
|
45
|
+
size: A = "small"
|
|
46
|
+
} = d, s = { theme: q(), size: A, color: S, btnType: B }, [n, a] = E(m);
|
|
47
|
+
w(() => {
|
|
48
|
+
a(m);
|
|
49
|
+
}, [m]), w(() => {
|
|
50
|
+
F(n);
|
|
51
|
+
}, [n]);
|
|
52
|
+
const u = (r, e) => {
|
|
53
|
+
e == "next" && n < g ? a(n + 1) : e == "previous" && n > 1 ? a(n - 1) : e == "last" && n != g ? a(g) : e == "first" && n != 1 ? a(1) : isNaN(+e) || a(e);
|
|
54
|
+
}, R = () => {
|
|
55
|
+
let r = [];
|
|
56
|
+
for (let e = n - p > 0 ? n - p : 1; e < n && e > 0; e++)
|
|
57
|
+
r.push(
|
|
58
|
+
/* @__PURE__ */ i(
|
|
59
|
+
h,
|
|
60
|
+
{
|
|
61
|
+
...s,
|
|
62
|
+
borderRadius: f,
|
|
63
|
+
onClick: (o) => u(o, e),
|
|
64
|
+
btnType: "basic",
|
|
65
|
+
text: e.toString(),
|
|
66
|
+
disabled: l
|
|
67
|
+
},
|
|
68
|
+
e
|
|
69
|
+
)
|
|
70
|
+
);
|
|
71
|
+
r.push(
|
|
72
|
+
/* @__PURE__ */ i(
|
|
73
|
+
h,
|
|
74
|
+
{
|
|
75
|
+
...s,
|
|
76
|
+
borderRadius: f,
|
|
77
|
+
btnType: N,
|
|
78
|
+
text: n.toString(),
|
|
79
|
+
disabled: l
|
|
80
|
+
},
|
|
81
|
+
n
|
|
82
|
+
)
|
|
83
|
+
);
|
|
84
|
+
for (let e = n + 1; e <= n + p && e <= g; e++)
|
|
85
|
+
r.push(
|
|
86
|
+
/* @__PURE__ */ i(
|
|
87
|
+
h,
|
|
88
|
+
{
|
|
89
|
+
...s,
|
|
90
|
+
borderRadius: f,
|
|
91
|
+
onClick: (o) => u(o, e),
|
|
92
|
+
btnType: "basic",
|
|
93
|
+
text: e.toString(),
|
|
94
|
+
disabled: l
|
|
95
|
+
},
|
|
96
|
+
e
|
|
97
|
+
)
|
|
98
|
+
);
|
|
99
|
+
return r;
|
|
100
|
+
}, T = (r = null) => {
|
|
101
|
+
var e = {};
|
|
102
|
+
return r && (e.borderRadius = r), /* @__PURE__ */ G($, { children: [
|
|
103
|
+
y && /* @__PURE__ */ i(
|
|
104
|
+
b,
|
|
105
|
+
{
|
|
106
|
+
...s,
|
|
107
|
+
icon: c.doubleLeft || "angle-double-left",
|
|
108
|
+
disabled: L || l,
|
|
109
|
+
onClick: (o) => u(o, "first"),
|
|
110
|
+
...e
|
|
111
|
+
}
|
|
112
|
+
),
|
|
113
|
+
/* @__PURE__ */ i(
|
|
114
|
+
b,
|
|
115
|
+
{
|
|
116
|
+
...s,
|
|
117
|
+
icon: c.left || "angle-left",
|
|
118
|
+
disabled: z || l,
|
|
119
|
+
onClick: (o) => u(o, "previous"),
|
|
120
|
+
...e
|
|
121
|
+
}
|
|
122
|
+
),
|
|
123
|
+
R(),
|
|
124
|
+
/* @__PURE__ */ i(
|
|
125
|
+
b,
|
|
126
|
+
{
|
|
127
|
+
...s,
|
|
128
|
+
icon: c.right || "angle-right",
|
|
129
|
+
disabled: k || l,
|
|
130
|
+
onClick: (o) => u(o, "next"),
|
|
131
|
+
...e
|
|
132
|
+
}
|
|
133
|
+
),
|
|
134
|
+
y && /* @__PURE__ */ i(
|
|
135
|
+
b,
|
|
136
|
+
{
|
|
137
|
+
...s,
|
|
138
|
+
icon: c.doubleRight || "angle-double-right",
|
|
139
|
+
disabled: j || l,
|
|
140
|
+
onClick: (o) => u(o, "last"),
|
|
141
|
+
...e
|
|
142
|
+
}
|
|
143
|
+
)
|
|
144
|
+
] });
|
|
145
|
+
};
|
|
146
|
+
return v ? /* @__PURE__ */ i(H, { horizontalAlignment: P, children: /* @__PURE__ */ i(
|
|
147
|
+
U,
|
|
148
|
+
{
|
|
149
|
+
className: "button-group-pagination-lnc " + x,
|
|
150
|
+
style: C,
|
|
151
|
+
borderRadius: f,
|
|
152
|
+
children: T()
|
|
153
|
+
}
|
|
154
|
+
) }) : /* @__PURE__ */ i(
|
|
155
|
+
D,
|
|
156
|
+
{
|
|
157
|
+
horizontalAlignment: P,
|
|
158
|
+
className: x,
|
|
159
|
+
style: C,
|
|
160
|
+
children: T(f)
|
|
161
|
+
}
|
|
162
|
+
);
|
|
163
|
+
};
|
|
164
|
+
I.propTypes = {
|
|
165
|
+
icons: t.shape({
|
|
166
|
+
left: t.element,
|
|
167
|
+
right: t.element,
|
|
168
|
+
doubleLeft: t.element,
|
|
169
|
+
doubleRight: t.element
|
|
170
|
+
}),
|
|
171
|
+
/**
|
|
172
|
+
* Applies to the movement buttons and to the page number buttons
|
|
173
|
+
*/
|
|
174
|
+
disabled: t.bool,
|
|
175
|
+
borderRadius: t.oneOf([
|
|
176
|
+
"slight",
|
|
177
|
+
"regular",
|
|
178
|
+
"edged",
|
|
179
|
+
"curved",
|
|
180
|
+
"none"
|
|
181
|
+
]),
|
|
182
|
+
/**
|
|
183
|
+
* Sets the button `type`
|
|
184
|
+
*/
|
|
185
|
+
buttonType: t.oneOf(["filled", "tinted", "outline", "basic"]),
|
|
186
|
+
/**
|
|
187
|
+
* Set button `type` of the current page button
|
|
188
|
+
*/
|
|
189
|
+
currentPageButtonType: t.oneOf([
|
|
190
|
+
"filled",
|
|
191
|
+
"tinted",
|
|
192
|
+
"outline",
|
|
193
|
+
"basic"
|
|
194
|
+
]),
|
|
195
|
+
/**
|
|
196
|
+
* Show the First and Last buttons
|
|
197
|
+
*/
|
|
198
|
+
withFirstLast: t.bool,
|
|
199
|
+
/**
|
|
200
|
+
* Wrap the buttons in a `ButtonGroup` component
|
|
201
|
+
*/
|
|
202
|
+
withButtonGroup: t.bool,
|
|
203
|
+
/**
|
|
204
|
+
* Active page number
|
|
205
|
+
*/
|
|
206
|
+
currentPage: t.number,
|
|
207
|
+
totalNumberOfPages: t.number,
|
|
208
|
+
/**
|
|
209
|
+
* how many page numbers will be shown to the right/left of the current page
|
|
210
|
+
*/
|
|
211
|
+
pagesOffset: t.number,
|
|
212
|
+
/**
|
|
213
|
+
* Applies to the Next button
|
|
214
|
+
*/
|
|
215
|
+
disabledNext: t.bool,
|
|
216
|
+
/**
|
|
217
|
+
* Applies to the Previous button
|
|
218
|
+
*/
|
|
219
|
+
disabledPrevious: t.bool,
|
|
220
|
+
/**
|
|
221
|
+
* Applies to the First button
|
|
222
|
+
*/
|
|
223
|
+
disabledFirst: t.bool,
|
|
224
|
+
/**
|
|
225
|
+
* Applies to the Last button
|
|
226
|
+
*/
|
|
227
|
+
disabledLast: t.bool,
|
|
228
|
+
horizontalAlignment: t.oneOf(["left", "center", "right"]),
|
|
229
|
+
//-------------------------------
|
|
230
|
+
onPageChange: t.func,
|
|
231
|
+
//-------------------------------
|
|
232
|
+
className: t.string,
|
|
233
|
+
style: t.object,
|
|
234
|
+
size: t.oneOf(["small", "medium", "large"]),
|
|
235
|
+
color: t.oneOf([
|
|
236
|
+
"primary",
|
|
237
|
+
"secondary",
|
|
238
|
+
"success",
|
|
239
|
+
"warning",
|
|
240
|
+
"danger",
|
|
241
|
+
"information",
|
|
242
|
+
"neutral",
|
|
243
|
+
"gray"
|
|
244
|
+
])
|
|
245
|
+
};
|
|
246
|
+
export {
|
|
247
|
+
I as default
|
|
248
|
+
};
|
package/dist/PasswordInput.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const a=require("react/jsx-runtime"),s=require("react"),n=require("./index-
|
|
1
|
+
"use strict";const a=require("react/jsx-runtime"),s=require("react"),n=require("./index-BIlhCoy2.cjs"),L=require("./index-DaiUAQVF.cjs"),D=require("./Icon.cjs"),h=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),r=require("./utils-DTAPpJXU.cjs"),A=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),G=h.newStyled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
|
package/dist/PasswordInput.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as D, jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import q, { useRef as A, useState as $, useEffect as I, useCallback as G } from "react";
|
|
3
|
-
import { P as n } from "./index-
|
|
4
|
-
import { d as H } from "./index-
|
|
3
|
+
import { P as n } from "./index-BYnWp42a.js";
|
|
4
|
+
import { d as H } from "./index-CNBqQrtK.js";
|
|
5
5
|
import J from "./Icon.js";
|
|
6
|
-
import { n as m } from "./emotion-styled.browser.esm-
|
|
7
|
-
import {
|
|
8
|
-
import { u as X } from "./emotion-element-5486c51c.browser.esm-
|
|
6
|
+
import { n as m } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
7
|
+
import { d as g, a, b as K, e as M, h as O, g as Q } from "./utils-C52T57HO.js";
|
|
8
|
+
import { u as X } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
9
9
|
const Y = m.div`
|
|
10
10
|
display: flex;
|
|
11
11
|
align-items: center;
|
|
@@ -94,14 +94,14 @@ const Y = m.div`
|
|
|
94
94
|
value: l,
|
|
95
95
|
defaultValue: B,
|
|
96
96
|
//----------------
|
|
97
|
-
onChange:
|
|
97
|
+
onChange: d,
|
|
98
98
|
onBlur: p,
|
|
99
99
|
onFocus: x,
|
|
100
100
|
//----------------
|
|
101
101
|
className: F = "",
|
|
102
102
|
style: N = {},
|
|
103
103
|
size: v = "small",
|
|
104
|
-
color:
|
|
104
|
+
color: s = "primary",
|
|
105
105
|
...P
|
|
106
106
|
} = e, r = A(), c = X(), [j, z] = $(l || B || "");
|
|
107
107
|
I(() => {
|
|
@@ -117,9 +117,9 @@ const Y = m.div`
|
|
|
117
117
|
}, [h, r]);
|
|
118
118
|
const W = G(
|
|
119
119
|
H((t, o) => E(t, o), R),
|
|
120
|
-
[
|
|
120
|
+
[d]
|
|
121
121
|
), E = (t, o) => {
|
|
122
|
-
|
|
122
|
+
d && (d == null || d(t, o));
|
|
123
123
|
}, U = (t) => {
|
|
124
124
|
z(t.target.value), W(t, t.target.value);
|
|
125
125
|
}, _ = () => {
|
|
@@ -132,7 +132,7 @@ const Y = m.div`
|
|
|
132
132
|
style: N,
|
|
133
133
|
className: F,
|
|
134
134
|
theme: c,
|
|
135
|
-
color:
|
|
135
|
+
color: s,
|
|
136
136
|
size: v,
|
|
137
137
|
focused: i,
|
|
138
138
|
disabled: S,
|
|
@@ -142,7 +142,7 @@ const Y = m.div`
|
|
|
142
142
|
C,
|
|
143
143
|
{
|
|
144
144
|
theme: c,
|
|
145
|
-
color:
|
|
145
|
+
color: s,
|
|
146
146
|
focused: i,
|
|
147
147
|
className: "lnc-input-prefix",
|
|
148
148
|
children: b
|
|
@@ -154,7 +154,7 @@ const Y = m.div`
|
|
|
154
154
|
ref: r,
|
|
155
155
|
type: f ? "password" : "text",
|
|
156
156
|
theme: c,
|
|
157
|
-
color:
|
|
157
|
+
color: s,
|
|
158
158
|
size: v,
|
|
159
159
|
placeholder: V,
|
|
160
160
|
prefix: b,
|
|
@@ -177,7 +177,7 @@ const Y = m.div`
|
|
|
177
177
|
ee,
|
|
178
178
|
{
|
|
179
179
|
theme: c,
|
|
180
|
-
color:
|
|
180
|
+
color: s,
|
|
181
181
|
focused: i,
|
|
182
182
|
onClick: _,
|
|
183
183
|
children: /* @__PURE__ */ u(J, { icon: f ? "eye-slash" : "eye" })
|
|
@@ -187,7 +187,7 @@ const Y = m.div`
|
|
|
187
187
|
Z,
|
|
188
188
|
{
|
|
189
189
|
theme: c,
|
|
190
|
-
color:
|
|
190
|
+
color: s,
|
|
191
191
|
focused: i,
|
|
192
192
|
className: "lnc-input-suffix",
|
|
193
193
|
children: y
|
package/dist/Popover.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime");require("react");const e=require("./index-BIlhCoy2.cjs"),i=require("./PopoverContext.cjs"),u=require("./usePopover.cjs");function o({children:t,modal:r=!1,...p}){const n=u({modal:r,...p});return s.jsx(i.Provider,{value:n,children:t})}o.propTypes={initialOpen:e.PropTypes.bool,placement:e.PropTypes.oneOf(["center","top","right","bottom","left","top-start","top-end","right-start","right-end","bottom-start","bottom-end","left-start","left-end"]),modal:e.PropTypes.bool,offsetValue:e.PropTypes.number,open:e.PropTypes.bool,onOpenChange:e.PropTypes.func};module.exports=o;
|
package/dist/Popover.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { P as o } from "./index-BYnWp42a.js";
|
|
4
|
+
import m from "./PopoverContext.js";
|
|
5
|
+
import a from "./usePopover.js";
|
|
6
|
+
function f({ children: t, modal: e = !1, ...r }) {
|
|
7
|
+
const p = a({ modal: e, ...r });
|
|
8
|
+
return /* @__PURE__ */ n(m.Provider, { value: p, children: t });
|
|
9
|
+
}
|
|
10
|
+
f.propTypes = {
|
|
11
|
+
initialOpen: o.bool,
|
|
12
|
+
placement: o.oneOf([
|
|
13
|
+
"center",
|
|
14
|
+
"top",
|
|
15
|
+
"right",
|
|
16
|
+
"bottom",
|
|
17
|
+
"left",
|
|
18
|
+
"top-start",
|
|
19
|
+
"top-end",
|
|
20
|
+
"right-start",
|
|
21
|
+
"right-end",
|
|
22
|
+
"bottom-start",
|
|
23
|
+
"bottom-end",
|
|
24
|
+
"left-start",
|
|
25
|
+
"left-end"
|
|
26
|
+
]),
|
|
27
|
+
modal: o.bool,
|
|
28
|
+
offsetValue: o.number,
|
|
29
|
+
/** For controlled usage of Popover */
|
|
30
|
+
open: o.bool,
|
|
31
|
+
/** For controlled usage of Popover */
|
|
32
|
+
onOpenChange: o.func
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
f as default
|
|
36
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),c=require("react"),u=require("./PopoverContext.cjs"),p=()=>{const e=c.useContext(u);if(e==null)throw new Error("Popover components must be wrapped in <Popover />");return e},i=React.forwardRef(function({children:o,...t},r){const n=p();return s.jsx("div",{...t,ref:r,onClick:()=>n.setOpen(!1),children:o})});module.exports=i;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useContext as p } from "react";
|
|
3
|
+
import c from "./PopoverContext.js";
|
|
4
|
+
const f = () => {
|
|
5
|
+
const o = p(c);
|
|
6
|
+
if (o == null)
|
|
7
|
+
throw new Error("Popover components must be wrapped in <Popover />");
|
|
8
|
+
return o;
|
|
9
|
+
}, u = React.forwardRef(function({ children: e, ...t }, r) {
|
|
10
|
+
const n = f();
|
|
11
|
+
return /* @__PURE__ */ s("div", { ...t, ref: r, onClick: () => n.setOpen(!1), children: e });
|
|
12
|
+
});
|
|
13
|
+
export {
|
|
14
|
+
u as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),l=require("react"),s=require("./floating-ui.react.esm-C4vrBVJU.cjs"),a=require("./index-BIlhCoy2.cjs"),g=require("./PopoverContext.cjs"),x=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),h=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),y=x.newStyled(motion.div)`
|
|
2
|
+
font-family: ${e=>{var t,r;return(r=(t=e.theme)==null?void 0:t.typography)==null?void 0:r.fontFamily}};
|
|
3
|
+
animation: fadeIn 0.4s;
|
|
4
|
+
box-shadow: ${e=>getComponentPropValue(e.theme,"Popover",e.color,"enabled","boxShadow")};
|
|
5
|
+
border-radius: ${e=>getBorderRadiusValueWithUnits(e.theme,e.borderRadius)};
|
|
6
|
+
border-top: 1px solid rgba(0, 0, 0, 0.04);
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
padding: 0.25rem;
|
|
9
|
+
background-color: ${e=>getColorRgbaValue(e.theme,"Popover","default","enabled","bg")};
|
|
10
|
+
`,f=()=>{const e=l.useContext(g);if(e==null)throw new Error("Popover components must be wrapped in <Popover />");return e},c=l.forwardRef(function({borderRadius:t="regular",className:r="",zIndex:d,style:u={},...i},m){const o=f(),p=s.useMergeRefs([o.floating,m]),b=h.useTheme();return n.jsx(s.FloatingPortal,{children:o.open&&n.jsx(s.FloatingFocusManager,{context:o.context,modal:o.modal,children:n.jsx("div",{ref:p,style:{position:o.strategy,top:o.y??0,left:o.x??0,width:"max-content",zIndex:d},className:"lnc-ui-floating-manager","aria-labelledby":o.labelId,"aria-describedby":o.descriptionId,...o.getFloatingProps(i),children:n.jsx(y,{theme:b,borderRadius:t,className:"lnc-ui-popover-content "+r,style:u,children:i.children})})})})});c.propTypes={className:a.PropTypes.string,style:a.PropTypes.object,zIndex:a.PropTypes.number};module.exports=c;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as c, useContext as u } from "react";
|
|
3
|
+
import { a as b, F as f, b as g } from "./floating-ui.react.esm-72DKnou_.js";
|
|
4
|
+
import { P as a } from "./index-BYnWp42a.js";
|
|
5
|
+
import h from "./PopoverContext.js";
|
|
6
|
+
import { n as x } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
7
|
+
import { u as y } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
8
|
+
const P = x(motion.div)`
|
|
9
|
+
font-family: ${(e) => {
|
|
10
|
+
var t, r;
|
|
11
|
+
return (r = (t = e.theme) == null ? void 0 : t.typography) == null ? void 0 : r.fontFamily;
|
|
12
|
+
}};
|
|
13
|
+
animation: fadeIn 0.4s;
|
|
14
|
+
box-shadow: ${(e) => getComponentPropValue(
|
|
15
|
+
e.theme,
|
|
16
|
+
"Popover",
|
|
17
|
+
e.color,
|
|
18
|
+
"enabled",
|
|
19
|
+
"boxShadow"
|
|
20
|
+
)};
|
|
21
|
+
border-radius: ${(e) => getBorderRadiusValueWithUnits(e.theme, e.borderRadius)};
|
|
22
|
+
border-top: 1px solid rgba(0, 0, 0, 0.04);
|
|
23
|
+
box-sizing: border-box;
|
|
24
|
+
padding: 0.25rem;
|
|
25
|
+
background-color: ${(e) => getColorRgbaValue(e.theme, "Popover", "default", "enabled", "bg")};
|
|
26
|
+
`, v = () => {
|
|
27
|
+
const e = u(h);
|
|
28
|
+
if (e == null)
|
|
29
|
+
throw new Error("Popover components must be wrapped in <Popover />");
|
|
30
|
+
return e;
|
|
31
|
+
}, w = c(function({ borderRadius: t = "regular", className: r = "", zIndex: s, style: l = {}, ...i }, d) {
|
|
32
|
+
const o = v(), m = b([o.floating, d]), p = y();
|
|
33
|
+
return /* @__PURE__ */ n(f, { children: o.open && /* @__PURE__ */ n(g, { context: o.context, modal: o.modal, children: /* @__PURE__ */ n(
|
|
34
|
+
"div",
|
|
35
|
+
{
|
|
36
|
+
ref: m,
|
|
37
|
+
style: {
|
|
38
|
+
position: o.strategy,
|
|
39
|
+
top: o.y ?? 0,
|
|
40
|
+
left: o.x ?? 0,
|
|
41
|
+
width: "max-content",
|
|
42
|
+
zIndex: s
|
|
43
|
+
},
|
|
44
|
+
className: "lnc-ui-floating-manager",
|
|
45
|
+
"aria-labelledby": o.labelId,
|
|
46
|
+
"aria-describedby": o.descriptionId,
|
|
47
|
+
...o.getFloatingProps(i),
|
|
48
|
+
children: /* @__PURE__ */ n(
|
|
49
|
+
P,
|
|
50
|
+
{
|
|
51
|
+
theme: p,
|
|
52
|
+
borderRadius: t,
|
|
53
|
+
className: "lnc-ui-popover-content " + r,
|
|
54
|
+
style: l,
|
|
55
|
+
children: i.children
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
}
|
|
59
|
+
) }) });
|
|
60
|
+
});
|
|
61
|
+
w.propTypes = {
|
|
62
|
+
className: a.string,
|
|
63
|
+
style: a.object,
|
|
64
|
+
zIndex: a.number
|
|
65
|
+
};
|
|
66
|
+
export {
|
|
67
|
+
w as default
|
|
68
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("react"),e=t.createContext(null);module.exports=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),u=require("./floating-ui.react.esm-C4vrBVJU.cjs"),r=require("react"),p=require("./PopoverContext.cjs"),a=()=>{const e=r.useContext(p);if(e==null)throw new Error("Popover components must be wrapped in <Popover />");return e},f=forwardRef(function({children:n,...s},c){const{setDescriptionId:o}=a(),t=u.useId();return r.useLayoutEffect(()=>(o(t),()=>o(void 0)),[t,o]),i.jsx("p",{...s,ref:c,id:t,children:n})});module.exports=f;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { u as i } from "./floating-ui.react.esm-72DKnou_.js";
|
|
3
|
+
import { useLayoutEffect as u, useContext as c } from "react";
|
|
4
|
+
import f from "./PopoverContext.js";
|
|
5
|
+
const m = () => {
|
|
6
|
+
const o = c(f);
|
|
7
|
+
if (o == null)
|
|
8
|
+
throw new Error("Popover components must be wrapped in <Popover />");
|
|
9
|
+
return o;
|
|
10
|
+
}, x = forwardRef(function({ children: e, ...n }, p) {
|
|
11
|
+
const { setDescriptionId: t } = m(), r = i();
|
|
12
|
+
return u(() => (t(r), () => t(void 0)), [r, t]), /* @__PURE__ */ s("p", { ...n, ref: p, id: r, children: e });
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
x as default
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const c=require("react/jsx-runtime"),r=require("react"),i=require("./floating-ui.react.esm-C4vrBVJU.cjs"),a=require("./PopoverContext.cjs"),p=()=>{const e=useContext(a);if(e==null)throw new Error("Popover components must be wrapped in <Popover />");return e},d=r.forwardRef(function({children:n,...s},u){const{setLabelId:o}=p(),t=i.useId();return r.useLayoutEffect(()=>(o(t),()=>o(void 0)),[t,o]),c.jsx("h2",{...s,ref:u,id:t,children:n})});module.exports=d;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as u, useLayoutEffect as f } from "react";
|
|
3
|
+
import { u as i } from "./floating-ui.react.esm-72DKnou_.js";
|
|
4
|
+
import a from "./PopoverContext.js";
|
|
5
|
+
const m = () => {
|
|
6
|
+
const o = useContext(a);
|
|
7
|
+
if (o == null)
|
|
8
|
+
throw new Error("Popover components must be wrapped in <Popover />");
|
|
9
|
+
return o;
|
|
10
|
+
}, x = u(function({ children: r, ...n }, s) {
|
|
11
|
+
const { setLabelId: e } = m(), t = i();
|
|
12
|
+
return f(() => (e(t), () => e(void 0)), [t, e]), /* @__PURE__ */ p("h2", { ...n, ref: s, id: t, children: r });
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
x as default
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("react/jsx-runtime"),r=require("react"),f=require("./floating-ui.react.esm-C4vrBVJU.cjs"),l=require("./index-BIlhCoy2.cjs"),P=require("./PopoverContext.cjs"),d=()=>{const o=useContext(P);if(o==null)throw new Error("Popover components must be wrapped in <Popover />");return o},c=r.forwardRef(function({children:e,asChild:p,...n},i){const t=d(),a=e.ref,s=f.useMergeRefs([t.reference,i,a]);return p&&r.isValidElement(e)?r.cloneElement(e,t.getReferenceProps({ref:s,...n,...e.props,"data-state":t.open?"open":"closed"})):u.jsx("div",{ref:s,"data-state":t.open?"open":"closed",style:{width:"max-content"},...t.getReferenceProps(n),children:e})});c.propTypes={asChild:l.PropTypes.bool};module.exports=c;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as m, isValidElement as c, cloneElement as i } from "react";
|
|
3
|
+
import { a as u } from "./floating-ui.react.esm-72DKnou_.js";
|
|
4
|
+
import { P } from "./index-BYnWp42a.js";
|
|
5
|
+
import l from "./PopoverContext.js";
|
|
6
|
+
const d = () => {
|
|
7
|
+
const t = useContext(l);
|
|
8
|
+
if (t == null)
|
|
9
|
+
throw new Error("Popover components must be wrapped in <Popover />");
|
|
10
|
+
return t;
|
|
11
|
+
}, g = m(function({ children: e, asChild: s, ...r }, p) {
|
|
12
|
+
const o = d(), a = e.ref, n = u([o.reference, p, a]);
|
|
13
|
+
return s && c(e) ? i(
|
|
14
|
+
e,
|
|
15
|
+
o.getReferenceProps({
|
|
16
|
+
ref: n,
|
|
17
|
+
...r,
|
|
18
|
+
...e.props,
|
|
19
|
+
"data-state": o.open ? "open" : "closed"
|
|
20
|
+
})
|
|
21
|
+
) : /* @__PURE__ */ f(
|
|
22
|
+
"div",
|
|
23
|
+
{
|
|
24
|
+
ref: n,
|
|
25
|
+
"data-state": o.open ? "open" : "closed",
|
|
26
|
+
style: { width: "max-content" },
|
|
27
|
+
...o.getReferenceProps(r),
|
|
28
|
+
children: e
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
});
|
|
32
|
+
g.propTypes = {
|
|
33
|
+
/** Allows the user to pass any element as the anchor */
|
|
34
|
+
asChild: P.bool
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
g as default
|
|
38
|
+
};
|
package/dist/ProgressBar.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),m=require("react"),r=require("./index-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),m=require("react"),r=require("./index-BIlhCoy2.cjs"),n=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),s=require("./utils-DTAPpJXU.cjs"),b=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),h=n.newStyled.div`
|
|
2
2
|
width: 100%;
|
|
3
3
|
position: relative;
|
|
4
4
|
background-color: ${e=>s.getColorRgbaValue(e.theme,"Progress",e.color,"enabled","unfilled")};
|
package/dist/ProgressBar.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as l, jsx as
|
|
2
|
-
import
|
|
3
|
-
import { P as r } from "./index-
|
|
4
|
-
import { n as s } from "./emotion-styled.browser.esm-
|
|
5
|
-
import {
|
|
6
|
-
import { u
|
|
7
|
-
const
|
|
1
|
+
import { jsxs as l, jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as b } from "react";
|
|
3
|
+
import { P as r } from "./index-BYnWp42a.js";
|
|
4
|
+
import { n as s } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
+
import { a, g as h } from "./utils-C52T57HO.js";
|
|
6
|
+
import { u } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
7
|
+
const f = s.div`
|
|
8
8
|
width: 100%;
|
|
9
9
|
position: relative;
|
|
10
10
|
background-color: ${(e) => a(
|
|
@@ -31,13 +31,13 @@ const h = s.div`
|
|
|
31
31
|
border-radius: ${(e) => e.progressPercentage == 100 ? "5px" : "5px 0px 0px 5px"};
|
|
32
32
|
transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
|
|
33
33
|
`, y = s.label`
|
|
34
|
-
${(e) =>
|
|
34
|
+
${(e) => h(e.theme, "Progress", e.size, "enabled")};
|
|
35
35
|
position: absolute;
|
|
36
36
|
top: 50%;
|
|
37
37
|
left: 50%;
|
|
38
38
|
transform: translate(-50%, -50%);
|
|
39
39
|
color: ${(e) => a(e.theme, "Progress", e.color, "enabled", "text")};
|
|
40
|
-
`, x =
|
|
40
|
+
`, x = b((e, w) => {
|
|
41
41
|
const {
|
|
42
42
|
id: $ = "",
|
|
43
43
|
showLabel: t = !1,
|
|
@@ -49,21 +49,32 @@ const h = s.div`
|
|
|
49
49
|
size: i = "small",
|
|
50
50
|
color: m = "primary",
|
|
51
51
|
...d
|
|
52
|
-
} = e, o =
|
|
53
|
-
return /* @__PURE__ */ l(
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
52
|
+
} = e, o = u();
|
|
53
|
+
return /* @__PURE__ */ l(
|
|
54
|
+
f,
|
|
55
|
+
{
|
|
56
|
+
style: g,
|
|
57
|
+
className: "lnc-ui-progress " + c,
|
|
58
|
+
theme: o,
|
|
59
|
+
size: i,
|
|
60
|
+
showLabel: t,
|
|
61
|
+
...d,
|
|
62
|
+
children: [
|
|
63
|
+
/* @__PURE__ */ p(
|
|
64
|
+
P,
|
|
65
|
+
{
|
|
66
|
+
progressPercentage: n,
|
|
67
|
+
theme: o,
|
|
68
|
+
color: m
|
|
69
|
+
}
|
|
70
|
+
),
|
|
71
|
+
t && /* @__PURE__ */ l(y, { theme: o, size: i, children: [
|
|
72
|
+
n,
|
|
73
|
+
"%"
|
|
74
|
+
] })
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
);
|
|
67
78
|
});
|
|
68
79
|
x.propTypes = {
|
|
69
80
|
id: r.string,
|