@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
package/dist/FormView.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as c, jsx as r, Fragment as g } from "react/jsx-runtime";
|
|
2
|
-
import W from "react";
|
|
3
|
-
import { P as e } from "./index-
|
|
4
|
-
import { n as y } from "./emotion-styled.browser.esm-
|
|
2
|
+
import { forwardRef as W } from "react";
|
|
3
|
+
import { P as e } from "./index-BYnWp42a.js";
|
|
4
|
+
import { n as y } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
5
|
import M from "./FlexGrid.js";
|
|
6
6
|
import Y from "./FlexGridItem.js";
|
|
7
|
-
import
|
|
7
|
+
import f from "./Button.js";
|
|
8
8
|
import x from "./IconButton.js";
|
|
9
9
|
import U from "./TextInput.js";
|
|
10
10
|
import q from "./CheckBoxInput.js";
|
|
@@ -17,9 +17,9 @@ import X from "./TimeInput.js";
|
|
|
17
17
|
import Z from "./ColorInput.js";
|
|
18
18
|
import z from "./FileInput.js";
|
|
19
19
|
import ee from "./RangeSlider.js";
|
|
20
|
-
import {
|
|
20
|
+
import { c as re, b as te, a as oe } from "./utils-C52T57HO.js";
|
|
21
21
|
import ae from "./FormField.js";
|
|
22
|
-
import { u as ne } from "./emotion-element-5486c51c.browser.esm-
|
|
22
|
+
import { u as ne } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
23
23
|
const ie = y.div`
|
|
24
24
|
display: flex;
|
|
25
25
|
justify-content: space-between;
|
|
@@ -166,7 +166,7 @@ const ie = y.div`
|
|
|
166
166
|
default:
|
|
167
167
|
return n;
|
|
168
168
|
}
|
|
169
|
-
}, h = W
|
|
169
|
+
}, h = W((d, a) => {
|
|
170
170
|
const {
|
|
171
171
|
__TYPE__: l = "FORM_VIEW",
|
|
172
172
|
goToPreviousView: n,
|
|
@@ -181,17 +181,17 @@ const ie = y.div`
|
|
|
181
181
|
previousActive: V = !0,
|
|
182
182
|
editActive: se,
|
|
183
183
|
disableGoBack: w = !1,
|
|
184
|
-
disableNext:
|
|
185
|
-
disablePrevious:
|
|
184
|
+
disableNext: B = !1,
|
|
185
|
+
disablePrevious: C = !1,
|
|
186
186
|
disableEdit: ce,
|
|
187
|
-
disableDiscard:
|
|
188
|
-
disableSave:
|
|
189
|
-
discardText:
|
|
190
|
-
saveText:
|
|
187
|
+
disableDiscard: A = !1,
|
|
188
|
+
disableSave: F = !1,
|
|
189
|
+
discardText: G = "Discard",
|
|
190
|
+
saveText: S = "Save",
|
|
191
191
|
//------------------
|
|
192
|
-
goToNext:
|
|
192
|
+
goToNext: _ = () => {
|
|
193
193
|
},
|
|
194
|
-
goToPrevious:
|
|
194
|
+
goToPrevious: R = () => {
|
|
195
195
|
},
|
|
196
196
|
onEdit: me = () => {
|
|
197
197
|
},
|
|
@@ -203,8 +203,8 @@ const ie = y.div`
|
|
|
203
203
|
},
|
|
204
204
|
//------------------
|
|
205
205
|
className: ue = "",
|
|
206
|
-
style:
|
|
207
|
-
color:
|
|
206
|
+
style: be = {},
|
|
207
|
+
color: b = "primary",
|
|
208
208
|
size: p = "small",
|
|
209
209
|
children: j,
|
|
210
210
|
...D
|
|
@@ -216,12 +216,12 @@ const ie = y.div`
|
|
|
216
216
|
{
|
|
217
217
|
ref: a,
|
|
218
218
|
theme: O,
|
|
219
|
-
color:
|
|
219
|
+
color: b,
|
|
220
220
|
borderRadius: "regular",
|
|
221
221
|
...D,
|
|
222
222
|
children: [
|
|
223
223
|
v && /* @__PURE__ */ r(
|
|
224
|
-
|
|
224
|
+
f,
|
|
225
225
|
{
|
|
226
226
|
leadingIcon: "arrow-circle-left",
|
|
227
227
|
text: k,
|
|
@@ -238,14 +238,14 @@ const ie = y.div`
|
|
|
238
238
|
{
|
|
239
239
|
label: t.label,
|
|
240
240
|
text: s[t.accessor],
|
|
241
|
-
color: s[t.accessor] ? "danger" :
|
|
241
|
+
color: s[t.accessor] ? "danger" : b,
|
|
242
242
|
size: p,
|
|
243
243
|
children: t.type == "custom" ? t.element : de(
|
|
244
244
|
t.type,
|
|
245
245
|
t.inputProps,
|
|
246
246
|
t.accessor,
|
|
247
247
|
o[t.accessor],
|
|
248
|
-
s[t.accessor] ? "danger" :
|
|
248
|
+
s[t.accessor] ? "danger" : b,
|
|
249
249
|
p
|
|
250
250
|
)
|
|
251
251
|
},
|
|
@@ -259,8 +259,8 @@ const ie = y.div`
|
|
|
259
259
|
{
|
|
260
260
|
btnType: "outline",
|
|
261
261
|
icon: "angle-left",
|
|
262
|
-
disabled:
|
|
263
|
-
onClick: (t) =>
|
|
262
|
+
disabled: C,
|
|
263
|
+
onClick: (t) => R(o, t),
|
|
264
264
|
type: "button"
|
|
265
265
|
}
|
|
266
266
|
),
|
|
@@ -271,34 +271,34 @@ const ie = y.div`
|
|
|
271
271
|
{
|
|
272
272
|
btnType: "outline",
|
|
273
273
|
icon: "angle-right",
|
|
274
|
-
disabled:
|
|
275
|
-
onClick: (t) =>
|
|
274
|
+
disabled: B,
|
|
275
|
+
onClick: (t) => _(o, t),
|
|
276
276
|
type: "button"
|
|
277
277
|
}
|
|
278
278
|
)
|
|
279
279
|
] }),
|
|
280
280
|
/* @__PURE__ */ c("div", { children: [
|
|
281
281
|
/* @__PURE__ */ r(
|
|
282
|
-
|
|
282
|
+
f,
|
|
283
283
|
{
|
|
284
284
|
leadingIcon: "eraser",
|
|
285
285
|
btnType: "outline",
|
|
286
286
|
color: "warning",
|
|
287
|
-
text:
|
|
288
|
-
disabled:
|
|
287
|
+
text: G,
|
|
288
|
+
disabled: A,
|
|
289
289
|
onClick: P,
|
|
290
290
|
type: "button"
|
|
291
291
|
}
|
|
292
292
|
),
|
|
293
293
|
" ",
|
|
294
294
|
/* @__PURE__ */ r(
|
|
295
|
-
|
|
295
|
+
f,
|
|
296
296
|
{
|
|
297
297
|
leadingIcon: "floppy-disk",
|
|
298
298
|
btnType: "tinted",
|
|
299
299
|
color: "success",
|
|
300
|
-
text:
|
|
301
|
-
disabled:
|
|
300
|
+
text: S,
|
|
301
|
+
disabled: F,
|
|
302
302
|
onClick: E
|
|
303
303
|
}
|
|
304
304
|
)
|
package/dist/Grid.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const w=require("react/jsx-runtime"),j=require("react"),t=require("./index-
|
|
1
|
+
"use strict";const w=require("react/jsx-runtime"),j=require("react"),t=require("./index-BIlhCoy2.cjs"),G=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),I=G.newStyled.div`
|
|
2
2
|
display: ${e=>e.inline?"inline-grid":"grid"};
|
|
3
3
|
row-gap: ${e=>e.rowGap?e.rowGap:e.gap?e.gap:0};
|
|
4
4
|
column-gap: ${e=>e.columnGap?e.columnGap:e.gap?e.gap:0};
|
package/dist/Grid.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as G } from "react/jsx-runtime";
|
|
2
2
|
import I from "react";
|
|
3
|
-
import { P as e } from "./index-
|
|
4
|
-
import { n as C } from "./emotion-styled.browser.esm-
|
|
3
|
+
import { P as e } from "./index-BYnWp42a.js";
|
|
4
|
+
import { n as C } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
5
|
const R = C.div`
|
|
6
6
|
display: ${(t) => t.inline ? "inline-grid" : "grid"};
|
|
7
7
|
row-gap: ${(t) => t.rowGap ? t.rowGap : t.gap ? t.gap : 0};
|
package/dist/GridItem.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const f=require("react/jsx-runtime"),p=require("react"),t=require("./index-
|
|
1
|
+
"use strict";const f=require("react/jsx-runtime"),p=require("react"),t=require("./index-BIlhCoy2.cjs"),T=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),P=T.newStyled.div`
|
|
2
2
|
display: ${e=>e.inline?"inline-grid":"grid"};
|
|
3
3
|
row-gap: ${e=>e.rowGap?e.rowGap:e.gap?e.gap:0};
|
|
4
4
|
column-gap: ${e=>e.columnGap?e.columnGap:e.gap?e.gap:0};
|
package/dist/GridItem.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import y from "react";
|
|
3
|
-
import { P as t } from "./index-
|
|
4
|
-
import { n as E } from "./emotion-styled.browser.esm-
|
|
3
|
+
import { P as t } from "./index-BYnWp42a.js";
|
|
4
|
+
import { n as E } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
5
|
const b = E.div`
|
|
6
6
|
display: ${(e) => e.inline ? "inline-grid" : "grid"};
|
|
7
7
|
row-gap: ${(e) => e.rowGap ? e.rowGap : e.gap ? e.gap : 0};
|
package/dist/Header.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),o=require("react"),a=require("./index-
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),o=require("react"),a=require("./index-BIlhCoy2.cjs"),e=o.forwardRef((r,s)=>{const{children:t,__TYPE__:c="Header",...n}=r;return i.jsx("header",{ref:s,...n,children:t})});e.propTypes={__TYPE__:a.PropTypes.string};e.displayName="Header";module.exports=e;
|
package/dist/Header.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { P as
|
|
4
|
-
const r =
|
|
5
|
-
const { children:
|
|
6
|
-
return /* @__PURE__ */
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as t } from "react";
|
|
3
|
+
import { P as d } from "./index-BYnWp42a.js";
|
|
4
|
+
const r = t((e, o) => {
|
|
5
|
+
const { children: a, __TYPE__: _ = "Header", ...p } = e;
|
|
6
|
+
return /* @__PURE__ */ s("header", { ref: o, ...p, children: a });
|
|
7
7
|
});
|
|
8
8
|
r.propTypes = {
|
|
9
9
|
/**
|
|
10
10
|
* Do not override this property.
|
|
11
11
|
* Should only be used as indicator for type if you are passing custom component.
|
|
12
12
|
*/
|
|
13
|
-
__TYPE__:
|
|
13
|
+
__TYPE__: d.string
|
|
14
14
|
};
|
|
15
15
|
r.displayName = "Header";
|
|
16
16
|
export {
|
package/dist/Icon.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),z=require("react");;/* empty css */const s=require("./index-
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),z=require("react");;/* empty css */const s=require("./index-BIlhCoy2.cjs"),P=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),o=require("./utils-DTAPpJXU.cjs"),b=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),I=P.newStyled.span`
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
${e=>e.sizeInUnits&&e.sizeInUnits!=""?`font-size: ${e.sizeInUnits}`:o.getComponentTypographyCss(e.theme,"Icon",e.size,"enabled")};
|
|
4
4
|
${e=>e.color&&`color: ${o.getColorRgbaValue(e.theme,"Icon",e.color,"enabled","icon")}`};
|
package/dist/Icon.js
CHANGED
|
@@ -1,18 +1,24 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import z from "react";
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as z } from "react";
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { P as o } from "./index-
|
|
5
|
-
import { n as p } from "./emotion-styled.browser.esm-
|
|
6
|
-
import {
|
|
7
|
-
import { u as
|
|
4
|
+
import { P as o } from "./index-BYnWp42a.js";
|
|
5
|
+
import { n as p } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
6
|
+
import { g as I, a as h } from "./utils-C52T57HO.js";
|
|
7
|
+
import { u as b } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
8
8
|
const $ = p.span`
|
|
9
9
|
box-sizing: border-box;
|
|
10
10
|
${(e) => e.sizeInUnits && e.sizeInUnits != "" ? `font-size: ${e.sizeInUnits}` : I(e.theme, "Icon", e.size, "enabled")};
|
|
11
|
-
${(e) => e.color && `color: ${
|
|
11
|
+
${(e) => e.color && `color: ${h(
|
|
12
|
+
e.theme,
|
|
13
|
+
"Icon",
|
|
14
|
+
e.color,
|
|
15
|
+
"enabled",
|
|
16
|
+
"icon"
|
|
17
|
+
)}`};
|
|
12
18
|
display: inline-flex;
|
|
13
19
|
justify-content: center;
|
|
14
20
|
align-items: center;
|
|
15
|
-
`, x = z
|
|
21
|
+
`, x = z((e, t) => {
|
|
16
22
|
const {
|
|
17
23
|
id: U = "",
|
|
18
24
|
icon: s = "",
|
|
@@ -24,11 +30,28 @@ const $ = p.span`
|
|
|
24
30
|
className: m = "",
|
|
25
31
|
style: f = {},
|
|
26
32
|
...d
|
|
27
|
-
} = e, g = { theme:
|
|
33
|
+
} = e, g = { theme: b(), size: l, color: c, sizeInUnits: a }, y = () => {
|
|
28
34
|
var u = i === "solid" ? "fas" : "far";
|
|
29
35
|
return `${u} fa-${s} fa-fw`;
|
|
30
36
|
};
|
|
31
|
-
return /* @__PURE__ */
|
|
37
|
+
return /* @__PURE__ */ n(
|
|
38
|
+
$,
|
|
39
|
+
{
|
|
40
|
+
ref: t,
|
|
41
|
+
...g,
|
|
42
|
+
tooltip: r,
|
|
43
|
+
className: m,
|
|
44
|
+
style: f,
|
|
45
|
+
...d,
|
|
46
|
+
children: /* @__PURE__ */ n(
|
|
47
|
+
"i",
|
|
48
|
+
{
|
|
49
|
+
"data-control": !!e["data-control"],
|
|
50
|
+
className: y()
|
|
51
|
+
}
|
|
52
|
+
)
|
|
53
|
+
}
|
|
54
|
+
);
|
|
32
55
|
});
|
|
33
56
|
x.propTypes = {
|
|
34
57
|
id: o.string,
|
package/dist/IconButton.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const a=require("react/jsx-runtime")
|
|
1
|
+
"use strict";const a=require("react/jsx-runtime"),O=require("react"),o=require("./index-BIlhCoy2.cjs");;/* empty css */const b=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),t=require("./utils-DTAPpJXU.cjs"),S=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),m=e=>`
|
|
2
2
|
outline: none;
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
flex-direction: row;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
max-width: ${t.getSizeValueWithUnits(e.theme,e.size)};
|
|
16
16
|
`,P=b.newStyled.i`
|
|
17
17
|
font-size: 1.125rem;
|
|
18
|
-
|
|
18
|
+
`,$=b.newStyled.button`
|
|
19
19
|
${e=>m(e)}
|
|
20
20
|
|
|
21
21
|
${e=>t.getComponentTypographyCss(e.theme,"ButtonFilled",e.size,"enabled")};
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
background-color: ${e=>t.getColorRgbaValue(e.theme,"ButtonTinted","gray","disabled","background","backgroundOpacity")};
|
|
84
84
|
color: ${e=>t.getColorRgbaValue(e.theme,"ButtonTinted","gray","disabled","text")};
|
|
85
85
|
}
|
|
86
|
-
`,
|
|
86
|
+
`,B=b.newStyled.button`
|
|
87
87
|
${e=>m(e)}
|
|
88
88
|
|
|
89
89
|
${e=>t.getComponentTypographyCss(e.theme,"ButtonTinted",e.size,"enabled")};
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
cursor: default;
|
|
117
117
|
background-color: ${e=>t.getColorRgbaValue(e.theme,"ButtonBasic","gray","disabled","background","backgroundOpacity")};
|
|
118
118
|
}
|
|
119
|
-
`,F=b.newStyled(
|
|
119
|
+
`,F=b.newStyled(B)`
|
|
120
120
|
border: 1px solid
|
|
121
121
|
${e=>t.getColorRgbaValue(e.theme,"ButtonBasic",e.color,"enabled","border","borderOpacity")};
|
|
122
|
-
`,
|
|
122
|
+
`,C=O.forwardRef((e,n)=>{const{icon:h=null,iconStyle:f="solid",borderRadius:k="regular",btnType:l="filled",disabled:V=!1,tabIndex:j=0,onFocus:r=()=>{},onBlur:i=()=>{},onClick:c=()=>{},onKeyDown:u=()=>{},size:y="small",color:R="primary",className:T="",style:x={},...d}=e,g={theme:S.useTheme(),color:R,size:y,style:x,className:"lnc-ui-icon-button "+T,disabled:V,borderRadius:k,btnType:l},z=()=>{var v=f==="solid"?"fas":"far";return`${v} fa-${h} fa-fw`},s=()=>React.isValidElement(h)?h:a.jsx(P,{className:z()});return l==="filled"?a.jsx($,{ref:n,"data-type":"filled",...g,onFocus:r,onBlur:i,onClick:c,onKeyDown:u,type:l,...d,children:s()}):l==="tinted"?a.jsx(w,{ref:n,"data-type":"tinted",...g,onFocus:r,onBlur:i,onClick:c,onKeyDown:u,...d,children:s()}):l==="outline"?a.jsx(F,{ref:n,"data-type":"outline",...g,onFocus:r,onBlur:i,onClick:c,onKeyDown:u,...d,children:s()}):l==="basic"?a.jsx(B,{ref:n,"data-type":"basic",...g,onFocus:r,onBlur:i,onClick:c,onKeyDown:u,...d,children:s()}):a.jsx($,{ref:n,"data-type":"filled",size:y,...g,onFocus:r,onBlur:i,onClick:c,onKeyDown:u,...d,children:s()})});C.propTypes={icon:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.element]),iconStyle:o.PropTypes.oneOf(["regular","solid"]),borderRadius:o.PropTypes.oneOf(["slight","regular","edged","curved","none"]),btnType:o.PropTypes.oneOf(["filled","tinted","outline","basic"]),disabled:o.PropTypes.bool,tabIndex:o.PropTypes.number,onBlur:o.PropTypes.func,onFocus:o.PropTypes.func,onClick:o.PropTypes.func,onKeyDown:o.PropTypes.func,className:o.PropTypes.string,style:o.PropTypes.object,color:o.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:o.PropTypes.oneOf(["small","medium","large"])};module.exports=C;
|
package/dist/IconButton.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { P as o } from "./index-
|
|
2
|
+
import { forwardRef as I } from "react";
|
|
3
|
+
import { P as o } from "./index-BYnWp42a.js";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import { n as h } from "./emotion-styled.browser.esm-
|
|
6
|
-
import {
|
|
7
|
-
import { u as V } from "./emotion-element-5486c51c.browser.esm-
|
|
5
|
+
import { n as h } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
6
|
+
import { g as $, a as t, d as n, e as B, h as f, b as N } from "./utils-C52T57HO.js";
|
|
7
|
+
import { u as V } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
8
8
|
const k = (e) => `
|
|
9
9
|
outline: none;
|
|
10
10
|
display: inline-flex;
|
|
@@ -25,7 +25,7 @@ const k = (e) => `
|
|
|
25
25
|
max-width: ${n(e.theme, e.size)};
|
|
26
26
|
`, j = h.i`
|
|
27
27
|
font-size: 1.125rem;
|
|
28
|
-
`,
|
|
28
|
+
`, x = h.button`
|
|
29
29
|
${(e) => k(e)}
|
|
30
30
|
|
|
31
31
|
${(e) => $(
|
|
@@ -86,7 +86,7 @@ const k = (e) => `
|
|
|
86
86
|
"text"
|
|
87
87
|
)};
|
|
88
88
|
|
|
89
|
-
${(e) => e.disabled === !1 &&
|
|
89
|
+
${(e) => e.disabled === !1 && B(e.theme)};
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
&:active {
|
|
@@ -107,7 +107,7 @@ const k = (e) => `
|
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
&:disabled {
|
|
110
|
-
${(e) => e.disabled === !0 &&
|
|
110
|
+
${(e) => e.disabled === !0 && f(e.theme)};
|
|
111
111
|
cursor: default;
|
|
112
112
|
background-color: ${(e) => t(
|
|
113
113
|
e.theme,
|
|
@@ -189,7 +189,7 @@ const k = (e) => `
|
|
|
189
189
|
"focus",
|
|
190
190
|
"text"
|
|
191
191
|
)};
|
|
192
|
-
${(e) => e.disabled === !1 &&
|
|
192
|
+
${(e) => e.disabled === !1 && B(e.theme)};
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
&:active {
|
|
@@ -210,7 +210,7 @@ const k = (e) => `
|
|
|
210
210
|
)};
|
|
211
211
|
}
|
|
212
212
|
&:disabled {
|
|
213
|
-
${(e) => e.disabled === !0 &&
|
|
213
|
+
${(e) => e.disabled === !0 && f(e.theme)};
|
|
214
214
|
cursor: default;
|
|
215
215
|
background-color: ${(e) => t(
|
|
216
216
|
e.theme,
|
|
@@ -228,7 +228,7 @@ const k = (e) => `
|
|
|
228
228
|
"text"
|
|
229
229
|
)};
|
|
230
230
|
}
|
|
231
|
-
`,
|
|
231
|
+
`, v = h.button`
|
|
232
232
|
${(e) => k(e)}
|
|
233
233
|
|
|
234
234
|
${(e) => $(
|
|
@@ -292,7 +292,7 @@ const k = (e) => `
|
|
|
292
292
|
"hover",
|
|
293
293
|
"text"
|
|
294
294
|
)};
|
|
295
|
-
${(e) => e.disabled === !1 &&
|
|
295
|
+
${(e) => e.disabled === !1 && B(e.theme)};
|
|
296
296
|
}
|
|
297
297
|
|
|
298
298
|
&:active {
|
|
@@ -314,7 +314,7 @@ const k = (e) => `
|
|
|
314
314
|
}
|
|
315
315
|
|
|
316
316
|
&:disabled {
|
|
317
|
-
${(e) => e.disabled === !0 &&
|
|
317
|
+
${(e) => e.disabled === !0 && f(e.theme)};
|
|
318
318
|
cursor: default;
|
|
319
319
|
background-color: ${(e) => t(
|
|
320
320
|
e.theme,
|
|
@@ -325,7 +325,7 @@ const k = (e) => `
|
|
|
325
325
|
"backgroundOpacity"
|
|
326
326
|
)};
|
|
327
327
|
}
|
|
328
|
-
`, P = h(
|
|
328
|
+
`, P = h(v)`
|
|
329
329
|
border: 1px solid
|
|
330
330
|
${(e) => t(
|
|
331
331
|
e.theme,
|
|
@@ -335,13 +335,13 @@ const k = (e) => `
|
|
|
335
335
|
"border",
|
|
336
336
|
"borderOpacity"
|
|
337
337
|
)};
|
|
338
|
-
`, K =
|
|
338
|
+
`, K = I((e, c) => {
|
|
339
339
|
const {
|
|
340
340
|
icon: g = null,
|
|
341
|
-
iconStyle:
|
|
342
|
-
borderRadius:
|
|
341
|
+
iconStyle: T = "solid",
|
|
342
|
+
borderRadius: O = "regular",
|
|
343
343
|
btnType: a = "filled",
|
|
344
|
-
disabled:
|
|
344
|
+
disabled: z = !1,
|
|
345
345
|
tabIndex: U = 0,
|
|
346
346
|
//----------------
|
|
347
347
|
onFocus: i = () => {
|
|
@@ -354,25 +354,25 @@ const k = (e) => `
|
|
|
354
354
|
},
|
|
355
355
|
//----------------
|
|
356
356
|
size: y = "small",
|
|
357
|
-
color:
|
|
358
|
-
className:
|
|
359
|
-
style:
|
|
357
|
+
color: F = "primary",
|
|
358
|
+
className: w = "",
|
|
359
|
+
style: C = {},
|
|
360
360
|
...b
|
|
361
361
|
} = e, s = {
|
|
362
362
|
theme: V(),
|
|
363
|
-
color:
|
|
363
|
+
color: F,
|
|
364
364
|
size: y,
|
|
365
|
-
style:
|
|
366
|
-
className: "lnc-ui-icon-button " +
|
|
367
|
-
disabled:
|
|
368
|
-
borderRadius:
|
|
365
|
+
style: C,
|
|
366
|
+
className: "lnc-ui-icon-button " + w,
|
|
367
|
+
disabled: z,
|
|
368
|
+
borderRadius: O,
|
|
369
369
|
btnType: a
|
|
370
|
-
},
|
|
371
|
-
var
|
|
372
|
-
return `${
|
|
373
|
-
}, m = () =>
|
|
370
|
+
}, R = () => {
|
|
371
|
+
var S = T === "solid" ? "fas" : "far";
|
|
372
|
+
return `${S} fa-${g} fa-fw`;
|
|
373
|
+
}, m = () => React.isValidElement(g) ? g : /* @__PURE__ */ l(j, { className: R() });
|
|
374
374
|
return a === "filled" ? /* @__PURE__ */ l(
|
|
375
|
-
|
|
375
|
+
x,
|
|
376
376
|
{
|
|
377
377
|
ref: c,
|
|
378
378
|
"data-type": "filled",
|
|
@@ -412,7 +412,7 @@ const k = (e) => `
|
|
|
412
412
|
children: m()
|
|
413
413
|
}
|
|
414
414
|
) : a === "basic" ? /* @__PURE__ */ l(
|
|
415
|
-
|
|
415
|
+
v,
|
|
416
416
|
{
|
|
417
417
|
ref: c,
|
|
418
418
|
"data-type": "basic",
|
|
@@ -425,7 +425,7 @@ const k = (e) => `
|
|
|
425
425
|
children: m()
|
|
426
426
|
}
|
|
427
427
|
) : /* @__PURE__ */ l(
|
|
428
|
-
|
|
428
|
+
x,
|
|
429
429
|
{
|
|
430
430
|
ref: c,
|
|
431
431
|
"data-type": "filled",
|