@lanaco/lnc-react-ui 4.0.3 → 4.0.6
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/Avatar.cjs +1 -1
- package/dist/Avatar.js +5 -6
- package/dist/Button.cjs +2 -2
- package/dist/Button.js +0 -1
- package/dist/CheckBoxInput.js +2 -2
- package/dist/Chip.cjs +1 -1
- package/dist/Chip.js +10 -9
- package/dist/ColorInput.js +18 -18
- package/dist/ConfirmationForm.cjs +5 -5
- package/dist/ConfirmationForm.js +16 -16
- package/dist/DataView.cjs +1 -1
- package/dist/DataView.js +35 -35
- package/dist/DecimalInput.js +41 -41
- package/dist/DoubleRangeSlider.js +30 -30
- package/dist/DragAndDropFile.js +162 -162
- package/dist/DragDropFiles.js +29 -29
- package/dist/Drawer.js +46 -46
- package/dist/Dropdown.js +36 -36
- package/dist/DropdownItem.js +19 -19
- package/dist/DropdownLookup.js +34 -34
- package/dist/DropdownMenu.js +43 -43
- package/dist/FileInput.js +21 -21
- package/dist/FlexGridItem.js +13 -13
- package/dist/Grid.cjs +1 -2
- package/dist/Grid.js +36 -8
- package/dist/GridItem.cjs +1 -1
- package/dist/GridItem.js +27 -7
- package/dist/Icon.cjs +2 -2
- package/dist/Icon.js +5 -6
- package/dist/IconButton.cjs +5 -5
- package/dist/IconButton.js +24 -25
- package/dist/Kanban.js +446 -446
- package/dist/MenuItem.cjs +2 -2
- package/dist/MenuItem.js +59 -58
- package/dist/Modal.js +38 -38
- package/dist/MultiSelectDropdown.js +2 -2
- package/dist/MultiSelectDropdownLookup.js +2 -2
- package/dist/NestedDropdownItem.js +43 -43
- package/dist/NestedMenuItem.js +44 -44
- package/dist/NotificationContainer.cjs +2 -2
- package/dist/NotificationContainer.js +24 -23
- package/dist/NumberInput.js +12 -12
- package/dist/PageLayout.cjs +2 -2
- package/dist/PageLayout.js +18 -18
- package/dist/PasswordInput.js +40 -40
- package/dist/RadioGroup.js +11 -11
- package/dist/RadioInput.js +6 -6
- package/dist/RangeSlider.js +25 -25
- package/dist/SearchBar.js +73 -73
- package/dist/Sidebar.js +11 -11
- package/dist/SwipeableDrawer.js +16 -16
- package/dist/TabItem.js +25 -25
- package/dist/Tabs.js +32 -26
- package/dist/TextAreaInput.js +30 -30
- package/dist/TextInput.js +22 -22
- package/dist/ThemeProvider.js +83 -83
- package/dist/TimeInput.js +4 -4
- package/dist/Toggle.cjs +1 -1
- package/dist/Toggle.js +0 -1
- package/dist/TreeMenu.js +56 -56
- package/dist/style.css +1 -5
- package/package.json +1 -1
- package/bundle-visualization.html +0 -4842
- package/custom-addons/ThemeSelector.js +0 -111
- package/custom-addons/register.js +0 -16
- package/custom-addons/theme-selector.css +0 -17
package/dist/IconButton.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as I } from "react";
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as I, isValidElement as N } from "react";
|
|
3
3
|
import { P as o } from "./index-BYnWp42a.js";
|
|
4
|
-
/* empty css */
|
|
5
4
|
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
|
|
7
|
-
import { u as
|
|
5
|
+
import { g as $, a as t, d as n, e as B, h as f, b as V } from "./utils-C52T57HO.js";
|
|
6
|
+
import { u as j } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
8
7
|
const k = (e) => `
|
|
9
8
|
outline: none;
|
|
10
9
|
display: inline-flex;
|
|
@@ -16,14 +15,14 @@ const k = (e) => `
|
|
|
16
15
|
cursor: pointer;
|
|
17
16
|
color: ${!e.disabled && "white"};
|
|
18
17
|
|
|
19
|
-
border-radius: ${
|
|
18
|
+
border-radius: ${V(
|
|
20
19
|
e.theme,
|
|
21
20
|
e.borderRadius
|
|
22
21
|
)};
|
|
23
22
|
|
|
24
23
|
min-width: ${n(e.theme, e.size)};
|
|
25
24
|
max-width: ${n(e.theme, e.size)};
|
|
26
|
-
`,
|
|
25
|
+
`, D = h.i`
|
|
27
26
|
font-size: 1.125rem;
|
|
28
27
|
`, x = h.button`
|
|
29
28
|
${(e) => k(e)}
|
|
@@ -124,7 +123,7 @@ const k = (e) => `
|
|
|
124
123
|
"text"
|
|
125
124
|
)};
|
|
126
125
|
}
|
|
127
|
-
`,
|
|
126
|
+
`, P = h.button`
|
|
128
127
|
${(e) => k(e)}
|
|
129
128
|
|
|
130
129
|
${(e) => $(
|
|
@@ -325,7 +324,7 @@ const k = (e) => `
|
|
|
325
324
|
"backgroundOpacity"
|
|
326
325
|
)};
|
|
327
326
|
}
|
|
328
|
-
`,
|
|
327
|
+
`, K = h(v)`
|
|
329
328
|
border: 1px solid
|
|
330
329
|
${(e) => t(
|
|
331
330
|
e.theme,
|
|
@@ -335,14 +334,14 @@ const k = (e) => `
|
|
|
335
334
|
"border",
|
|
336
335
|
"borderOpacity"
|
|
337
336
|
)};
|
|
338
|
-
`,
|
|
337
|
+
`, U = I((e, c) => {
|
|
339
338
|
const {
|
|
340
339
|
icon: g = null,
|
|
341
340
|
iconStyle: T = "solid",
|
|
342
341
|
borderRadius: O = "regular",
|
|
343
|
-
btnType:
|
|
342
|
+
btnType: l = "filled",
|
|
344
343
|
disabled: z = !1,
|
|
345
|
-
tabIndex:
|
|
344
|
+
tabIndex: W = 0,
|
|
346
345
|
//----------------
|
|
347
346
|
onFocus: i = () => {
|
|
348
347
|
},
|
|
@@ -359,19 +358,19 @@ const k = (e) => `
|
|
|
359
358
|
style: C = {},
|
|
360
359
|
...b
|
|
361
360
|
} = e, s = {
|
|
362
|
-
theme:
|
|
361
|
+
theme: j(),
|
|
363
362
|
color: F,
|
|
364
363
|
size: y,
|
|
365
364
|
style: C,
|
|
366
365
|
className: "lnc-ui-icon-button " + w,
|
|
367
366
|
disabled: z,
|
|
368
367
|
borderRadius: O,
|
|
369
|
-
btnType:
|
|
368
|
+
btnType: l
|
|
370
369
|
}, R = () => {
|
|
371
370
|
var S = T === "solid" ? "fas" : "far";
|
|
372
371
|
return `${S} fa-${g} fa-fw`;
|
|
373
|
-
}, m = () =>
|
|
374
|
-
return
|
|
372
|
+
}, m = () => N(g) ? g : /* @__PURE__ */ a(D, { className: R() });
|
|
373
|
+
return l === "filled" ? /* @__PURE__ */ a(
|
|
375
374
|
x,
|
|
376
375
|
{
|
|
377
376
|
ref: c,
|
|
@@ -381,12 +380,12 @@ const k = (e) => `
|
|
|
381
380
|
onBlur: d,
|
|
382
381
|
onClick: r,
|
|
383
382
|
onKeyDown: u,
|
|
384
|
-
type:
|
|
383
|
+
type: l,
|
|
385
384
|
...b,
|
|
386
385
|
children: m()
|
|
387
386
|
}
|
|
388
|
-
) :
|
|
389
|
-
|
|
387
|
+
) : l === "tinted" ? /* @__PURE__ */ a(
|
|
388
|
+
P,
|
|
390
389
|
{
|
|
391
390
|
ref: c,
|
|
392
391
|
"data-type": "tinted",
|
|
@@ -398,8 +397,8 @@ const k = (e) => `
|
|
|
398
397
|
...b,
|
|
399
398
|
children: m()
|
|
400
399
|
}
|
|
401
|
-
) :
|
|
402
|
-
|
|
400
|
+
) : l === "outline" ? /* @__PURE__ */ a(
|
|
401
|
+
K,
|
|
403
402
|
{
|
|
404
403
|
ref: c,
|
|
405
404
|
"data-type": "outline",
|
|
@@ -411,7 +410,7 @@ const k = (e) => `
|
|
|
411
410
|
...b,
|
|
412
411
|
children: m()
|
|
413
412
|
}
|
|
414
|
-
) :
|
|
413
|
+
) : l === "basic" ? /* @__PURE__ */ a(
|
|
415
414
|
v,
|
|
416
415
|
{
|
|
417
416
|
ref: c,
|
|
@@ -424,7 +423,7 @@ const k = (e) => `
|
|
|
424
423
|
...b,
|
|
425
424
|
children: m()
|
|
426
425
|
}
|
|
427
|
-
) : /* @__PURE__ */
|
|
426
|
+
) : /* @__PURE__ */ a(
|
|
428
427
|
x,
|
|
429
428
|
{
|
|
430
429
|
ref: c,
|
|
@@ -440,7 +439,7 @@ const k = (e) => `
|
|
|
440
439
|
}
|
|
441
440
|
);
|
|
442
441
|
});
|
|
443
|
-
|
|
442
|
+
U.propTypes = {
|
|
444
443
|
icon: o.oneOfType([o.string, o.element]),
|
|
445
444
|
iconStyle: o.oneOf(["regular", "solid"]),
|
|
446
445
|
borderRadius: o.oneOf([
|
|
@@ -477,5 +476,5 @@ K.propTypes = {
|
|
|
477
476
|
size: o.oneOf(["small", "medium", "large"])
|
|
478
477
|
};
|
|
479
478
|
export {
|
|
480
|
-
|
|
479
|
+
U as default
|
|
481
480
|
};
|