@lanaco/lnc-react-ui 4.0.2 → 4.0.5
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 +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 +18 -21
- 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 +2 -2
- package/dist/Button.js +21 -22
- package/dist/ButtonGroup.cjs +1 -1
- package/dist/ButtonGroup.js +10 -6
- package/dist/CheckBoxInput.cjs +1 -1
- package/dist/CheckBoxInput.js +6 -6
- package/dist/Chip.cjs +1 -1
- package/dist/Chip.js +9 -9
- package/dist/ColorInput.cjs +1 -1
- package/dist/ColorInput.js +20 -20
- package/dist/ConfirmationForm.cjs +1 -1
- package/dist/ConfirmationForm.js +58 -58
- 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 +35 -35
- package/dist/DateInput.cjs +4 -4
- package/dist/DateInput.js +491 -491
- package/dist/DecimalInput.cjs +1 -1
- package/dist/DecimalInput.js +43 -43
- package/dist/DetailsView.cjs +4 -4
- package/dist/DetailsView.js +40 -40
- package/dist/DoubleRangeSlider.cjs +1 -1
- package/dist/DoubleRangeSlider.js +33 -33
- package/dist/DragAndDropFile.cjs +1 -1
- package/dist/DragAndDropFile.js +165 -165
- package/dist/DragDropFiles.cjs +1 -1
- package/dist/DragDropFiles.js +31 -31
- package/dist/Drawer.cjs +1 -1
- package/dist/Drawer.js +47 -47
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +39 -39
- package/dist/DropdownItem.cjs +1 -1
- package/dist/DropdownItem.js +23 -23
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +36 -36
- 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 +24 -24
- 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 +16 -16
- 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 +2 -3
- package/dist/Grid.js +38 -10
- package/dist/GridItem.cjs +2 -2
- package/dist/GridItem.js +29 -9
- package/dist/Header.cjs +1 -1
- package/dist/Header.js +7 -7
- package/dist/Icon.cjs +2 -2
- package/dist/Icon.js +35 -13
- package/dist/IconButton.cjs +1 -1
- package/dist/IconButton.js +51 -52
- package/dist/Kanban.cjs +12 -12
- package/dist/Kanban.js +891 -879
- 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 +39 -39
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.js +42 -42
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +6 -6
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +6 -6
- package/dist/NestedDropdownItem.cjs +1 -1
- package/dist/NestedDropdownItem.js +40 -40
- package/dist/NestedMenuItem.cjs +1 -1
- package/dist/NestedMenuItem.js +45 -45
- 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 +17 -17
- package/dist/PageLayout.cjs +1 -1
- package/dist/PageLayout.js +32 -32
- package/dist/Pagination.cjs +12 -0
- package/dist/Pagination.js +248 -0
- package/dist/PasswordInput.cjs +1 -1
- package/dist/PasswordInput.js +33 -33
- 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 +13 -13
- package/dist/RadioInput.cjs +1 -1
- package/dist/RadioInput.js +10 -10
- package/dist/RangeSlider.cjs +1 -1
- package/dist/RangeSlider.js +27 -27
- package/dist/SearchBar.cjs +1 -1
- package/dist/SearchBar.js +77 -77
- package/dist/Separator.cjs +1 -1
- package/dist/Separator.js +9 -9
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +13 -13
- 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 +18 -18
- 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 +33 -27
- package/dist/TextAreaInput.cjs +1 -1
- package/dist/TextAreaInput.js +35 -35
- package/dist/TextInput.cjs +1 -1
- package/dist/TextInput.js +24 -24
- package/dist/ThemeProvider.cjs +1 -1
- package/dist/ThemeProvider.js +85 -85
- package/dist/TimeInput.cjs +1 -1
- package/dist/TimeInput.js +13 -13
- package/dist/Toggle.cjs +1 -1
- package/dist/Toggle.js +4 -5
- package/dist/TreeMenu.cjs +1 -1
- package/dist/TreeMenu.js +57 -57
- 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/style.css +1 -5
- 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/custom-addons/ThemeSelector.js +0 -111
- package/custom-addons/register.js +0 -16
- package/custom-addons/theme-selector.css +0 -17
- 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/Breadcrumbs.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as o, jsxs as u, Fragment as z } from "react/jsx-runtime";
|
|
2
|
-
import A,
|
|
3
|
-
import { P as t } from "./index-
|
|
4
|
-
import { n as c } from "./emotion-styled.browser.esm-
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import { u as
|
|
8
|
-
const
|
|
2
|
+
import { forwardRef as A, useState as N } from "react";
|
|
3
|
+
import { P as t } from "./index-BYnWp42a.js";
|
|
4
|
+
import { n as c } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
+
import { g as O, a as P } from "./utils-C52T57HO.js";
|
|
6
|
+
import v from "./Icon.js";
|
|
7
|
+
import { u as R } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
8
|
+
const $ = c.div`
|
|
9
9
|
display: inline-flex;
|
|
10
10
|
flex-wrap: wrap;
|
|
11
11
|
${(r) => O(
|
|
@@ -21,24 +21,24 @@ const _ = c.div`
|
|
|
21
21
|
"enabled",
|
|
22
22
|
"text"
|
|
23
23
|
)};
|
|
24
|
-
`,
|
|
24
|
+
`, k = c.div`
|
|
25
25
|
cursor: pointer;
|
|
26
|
-
`,
|
|
26
|
+
`, F = c.span``, V = A((r, i) => {
|
|
27
27
|
const {
|
|
28
28
|
separator: a = "/",
|
|
29
|
-
maxItems:
|
|
30
|
-
itemsAfterCollapse:
|
|
29
|
+
maxItems: y = 8,
|
|
30
|
+
itemsAfterCollapse: b = 1,
|
|
31
31
|
itemsBeforeCollapse: C = 1,
|
|
32
32
|
//----------------
|
|
33
33
|
className: B = "",
|
|
34
34
|
style: I = {},
|
|
35
35
|
color: h = "neutral",
|
|
36
|
-
size:
|
|
37
|
-
children:
|
|
38
|
-
...
|
|
36
|
+
size: w = "small",
|
|
37
|
+
children: T,
|
|
38
|
+
...d
|
|
39
39
|
} = r, S = {
|
|
40
|
-
theme:
|
|
41
|
-
size:
|
|
40
|
+
theme: R(),
|
|
41
|
+
size: w,
|
|
42
42
|
color: h,
|
|
43
43
|
className: "lnc-ui-breadcrumbs " + B,
|
|
44
44
|
style: I
|
|
@@ -56,17 +56,17 @@ const _ = c.div`
|
|
|
56
56
|
child: e
|
|
57
57
|
}
|
|
58
58
|
) : e == null ? void 0 : e.map(
|
|
59
|
-
(
|
|
59
|
+
(g, s) => n <= e.length && f == !0 ? m - 1 >= s || e.length - p <= s ? /* @__PURE__ */ o(
|
|
60
60
|
l,
|
|
61
61
|
{
|
|
62
62
|
index: s,
|
|
63
63
|
length: e.length,
|
|
64
64
|
separator: a,
|
|
65
|
-
child:
|
|
65
|
+
child: g
|
|
66
66
|
},
|
|
67
67
|
s
|
|
68
|
-
) : m == s && /* @__PURE__ */ u(
|
|
69
|
-
/* @__PURE__ */ o(
|
|
68
|
+
) : m == s && /* @__PURE__ */ u(k, { onClick: (D) => j(!f), children: [
|
|
69
|
+
/* @__PURE__ */ o(v, { icon: "ellipsis" }),
|
|
70
70
|
a,
|
|
71
71
|
" "
|
|
72
72
|
] }, s) : /* @__PURE__ */ o(
|
|
@@ -75,11 +75,11 @@ const _ = c.div`
|
|
|
75
75
|
index: s,
|
|
76
76
|
length: e.length,
|
|
77
77
|
separator: a,
|
|
78
|
-
child:
|
|
78
|
+
child: g
|
|
79
79
|
},
|
|
80
80
|
s
|
|
81
81
|
)
|
|
82
|
-
), l = ({ index: n, length: p, separator: m, child: e }) => /* @__PURE__ */ u(
|
|
82
|
+
), l = ({ index: n, length: p, separator: m, child: e }) => /* @__PURE__ */ u(F, { children: [
|
|
83
83
|
e,
|
|
84
84
|
n + 1 !== p && /* @__PURE__ */ u(z, { children: [
|
|
85
85
|
" ",
|
|
@@ -87,17 +87,17 @@ const _ = c.div`
|
|
|
87
87
|
" "
|
|
88
88
|
] })
|
|
89
89
|
] });
|
|
90
|
-
return /* @__PURE__ */ o(
|
|
90
|
+
return /* @__PURE__ */ o($, { ref: i, ...S, ...d, children: /* @__PURE__ */ o(
|
|
91
91
|
x,
|
|
92
92
|
{
|
|
93
|
-
maxItems:
|
|
94
|
-
itemsAfterCollapse:
|
|
93
|
+
maxItems: y,
|
|
94
|
+
itemsAfterCollapse: b,
|
|
95
95
|
itemsBeforeCollapse: C,
|
|
96
|
-
children:
|
|
96
|
+
children: T
|
|
97
97
|
}
|
|
98
98
|
) });
|
|
99
99
|
});
|
|
100
|
-
|
|
100
|
+
V.propTypes = {
|
|
101
101
|
separator: t.oneOfType([t.string, t.element]),
|
|
102
102
|
/**
|
|
103
103
|
* Specifies the maximum number of breadcrumbs to display. When there are more than the maximum number, only the first itemsBeforeCollapse and last itemsAfterCollapse will be shown, with an ellipsis in between
|
|
@@ -127,5 +127,5 @@ F.propTypes = {
|
|
|
127
127
|
size: t.oneOf(["small", "medium", "large"])
|
|
128
128
|
};
|
|
129
129
|
export {
|
|
130
|
-
|
|
130
|
+
V as default
|
|
131
131
|
};
|
package/dist/Button.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),q=require("react"),o=require("./index-BIlhCoy2.cjs"),C=require("./index-DAOBjHnD.cjs"),r=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),t=require("./utils-DTAPpJXU.cjs"),V=require("./Icon.cjs"),W=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),B={small:{regular:"1rem",icon:"0.75rem",justIcon:"0.5rem"},medium:{regular:"1.5rem",icon:"1rem",justIcon:"0.5rem"},large:{regular:"1.5rem",icon:"1rem",justIcon:"0.5rem"}},f=e=>`
|
|
2
2
|
outline: none;
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
flex-direction: row;
|
|
@@ -124,4 +124,4 @@
|
|
|
124
124
|
`,_=r.newStyled(I)`
|
|
125
125
|
border: 1px solid
|
|
126
126
|
${e=>t.getColorRgbaValue(e.theme,"ButtonBasic",e.color,"enabled","border","borderOpacity")};
|
|
127
|
-
`,O=
|
|
127
|
+
`,O=q.forwardRef((e,c)=>{const{text:k="",iconStyle:T="solid",leadingIcon:x=null,trailingIcon:R=null,borderRadius:v="regular",btnType:l="filled",disabled:S=!1,tabIndex:d=0,onFocus:u,onBlur:s,onClick:g,onKeyDown:b,onLeadingIconClick:N,onTrailingIconClick:K,size:$="small",color:P="primary",className:j="",style:F={},children:w,...m}=e,h={theme:W.useTheme(),color:P,size:$,style:F,disabled:S,borderRadius:v,btnType:l,className:"lnc-ui-button "+j},a=!C.isEmpty(x),i=!C.isEmpty(R),U=!C.isEmpty(k),y=()=>n.jsxs(n.Fragment,{children:[a&&n.jsx(D,{size:$,children:n.jsx(V,{icon:x,sizeInUnits:"1.125rem",iconStyle:T})}),k,w,i&&n.jsx(E,{size:$,children:n.jsx(V,{icon:R,sizeInUnits:"1.125rem",iconStyle:T})})]});return l==="filled"?n.jsx(z,{ref:c,"data-type":"filled",...h,hasLeadingIcon:a,hasTrailingIcon:i,onFocus:u,onBlur:s,onClick:g,onKeyDown:b,tabIndex:d,btnType:l,...m,children:y()}):l==="tinted"?n.jsx(L,{ref:c,"data-type":"tinted",...h,hasLeadingIcon:a,hasTrailingIcon:i,onFocus:u,onBlur:s,onClick:g,onKeyDown:b,tabIndex:d,btnType:l,...m,children:y()}):l==="outline"?n.jsx(_,{ref:c,"data-type":"outline",...h,hasLeadingIcon:a,hasTrailingIcon:i,onFocus:u,onBlur:s,onClick:g,onKeyDown:b,tabIndex:d,btnType:l,...m,children:y()}):l==="basic"?n.jsx(I,{ref:c,"data-type":"basic",...h,hasLeadingIcon:a,hasTrailingIcon:i,onFocus:u,onBlur:s,onClick:g,onKeyDown:b,tabIndex:d,btnType:l,...m,children:y()}):n.jsx(z,{ref:c,"data-type":"filled",size:$,...h,hasLeadingIcon:a,hasTrailingIcon:i,onFocus:u,onBlur:s,onClick:g,onKeyDown:b,hasText:U,tabIndex:d,btnType:l,...m,children:y()})});O.propTypes={text:o.PropTypes.string,iconStyle:o.PropTypes.oneOf(["regular","solid"]),leadingIcon:o.PropTypes.string,trailingIcon:o.PropTypes.string,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=O;
|
package/dist/Button.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { jsx as i, jsxs as K, Fragment as W } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { P as o } from "./index-
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { a as x, b as t, f as c, g as T, h as z, c as E } from "./utils-DEke8iwo.js";
|
|
2
|
+
import { forwardRef as E } from "react";
|
|
3
|
+
import { P as o } from "./index-BYnWp42a.js";
|
|
4
|
+
import { i as y } from "./index-CvebWhtp.js";
|
|
5
|
+
import { n as r } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
6
|
+
import { g as x, a as t, d as c, h as T, e as z, b as q } from "./utils-C52T57HO.js";
|
|
8
7
|
import j from "./Icon.js";
|
|
9
|
-
import { u as
|
|
8
|
+
import { u as A } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
10
9
|
const k = {
|
|
11
10
|
small: {
|
|
12
11
|
regular: "1rem",
|
|
@@ -34,16 +33,16 @@ const k = {
|
|
|
34
33
|
cursor: pointer;
|
|
35
34
|
color: ${!e.disabled && "white"};
|
|
36
35
|
|
|
37
|
-
border-radius: ${
|
|
36
|
+
border-radius: ${q(
|
|
38
37
|
e.theme,
|
|
39
38
|
e.borderRadius
|
|
40
39
|
)};
|
|
41
40
|
|
|
42
41
|
padding-left: ${e.hasLeadingIcon ? k[e.size].icon : k[e.size].regular};
|
|
43
42
|
padding-right: ${e.hasTrailingIcon ? k[e.size].icon : k[e.size].regular};
|
|
44
|
-
`,
|
|
43
|
+
`, G = r.span`
|
|
45
44
|
padding-right: ${(e) => e.size === "small" ? "0.25rem" : "0.5rem"};
|
|
46
|
-
`,
|
|
45
|
+
`, H = r.span`
|
|
47
46
|
padding-left: ${(e) => e.size === "small" ? "0.25rem" : "0.5rem"};
|
|
48
47
|
`, w = r.button`
|
|
49
48
|
${(e) => I(e)}
|
|
@@ -143,7 +142,7 @@ const k = {
|
|
|
143
142
|
"text"
|
|
144
143
|
)};
|
|
145
144
|
}
|
|
146
|
-
`,
|
|
145
|
+
`, J = r.button`
|
|
147
146
|
${(e) => I(e)}
|
|
148
147
|
|
|
149
148
|
min-height: ${(e) => c(e.theme, e.size)};
|
|
@@ -341,7 +340,7 @@ const k = {
|
|
|
341
340
|
"backgroundOpacity"
|
|
342
341
|
)};
|
|
343
342
|
}
|
|
344
|
-
`,
|
|
343
|
+
`, M = r(R)`
|
|
345
344
|
border: 1px solid
|
|
346
345
|
${(e) => t(
|
|
347
346
|
e.theme,
|
|
@@ -351,7 +350,7 @@ const k = {
|
|
|
351
350
|
"border",
|
|
352
351
|
"borderOpacity"
|
|
353
352
|
)};
|
|
354
|
-
`,
|
|
353
|
+
`, Q = E((e, d) => {
|
|
355
354
|
const {
|
|
356
355
|
text: v = "",
|
|
357
356
|
iconStyle: O = "solid",
|
|
@@ -366,8 +365,8 @@ const k = {
|
|
|
366
365
|
onBlur: m,
|
|
367
366
|
onClick: b,
|
|
368
367
|
onKeyDown: g,
|
|
369
|
-
onLeadingIconClick:
|
|
370
|
-
onTrailingIconClick:
|
|
368
|
+
onLeadingIconClick: X,
|
|
369
|
+
onTrailingIconClick: Y,
|
|
371
370
|
//----------------
|
|
372
371
|
size: B = "small",
|
|
373
372
|
color: U = "primary",
|
|
@@ -376,7 +375,7 @@ const k = {
|
|
|
376
375
|
children: P,
|
|
377
376
|
...h
|
|
378
377
|
} = e, f = {
|
|
379
|
-
theme:
|
|
378
|
+
theme: A(),
|
|
380
379
|
color: U,
|
|
381
380
|
size: B,
|
|
382
381
|
style: N,
|
|
@@ -385,7 +384,7 @@ const k = {
|
|
|
385
384
|
btnType: n,
|
|
386
385
|
className: "lnc-ui-button " + D
|
|
387
386
|
}, a = !y(F), l = !y(C), V = !y(v), $ = () => /* @__PURE__ */ K(W, { children: [
|
|
388
|
-
a && /* @__PURE__ */ i(
|
|
387
|
+
a && /* @__PURE__ */ i(G, { size: B, children: /* @__PURE__ */ i(
|
|
389
388
|
j,
|
|
390
389
|
{
|
|
391
390
|
icon: F,
|
|
@@ -395,7 +394,7 @@ const k = {
|
|
|
395
394
|
) }),
|
|
396
395
|
v,
|
|
397
396
|
P,
|
|
398
|
-
l && /* @__PURE__ */ i(
|
|
397
|
+
l && /* @__PURE__ */ i(H, { size: B, children: /* @__PURE__ */ i(
|
|
399
398
|
j,
|
|
400
399
|
{
|
|
401
400
|
icon: C,
|
|
@@ -422,7 +421,7 @@ const k = {
|
|
|
422
421
|
children: $()
|
|
423
422
|
}
|
|
424
423
|
) : n === "tinted" ? /* @__PURE__ */ i(
|
|
425
|
-
|
|
424
|
+
J,
|
|
426
425
|
{
|
|
427
426
|
ref: d,
|
|
428
427
|
"data-type": "tinted",
|
|
@@ -439,7 +438,7 @@ const k = {
|
|
|
439
438
|
children: $()
|
|
440
439
|
}
|
|
441
440
|
) : n === "outline" ? /* @__PURE__ */ i(
|
|
442
|
-
|
|
441
|
+
M,
|
|
443
442
|
{
|
|
444
443
|
ref: d,
|
|
445
444
|
"data-type": "outline",
|
|
@@ -493,7 +492,7 @@ const k = {
|
|
|
493
492
|
}
|
|
494
493
|
);
|
|
495
494
|
});
|
|
496
|
-
|
|
495
|
+
Q.propTypes = {
|
|
497
496
|
text: o.string,
|
|
498
497
|
iconStyle: o.oneOf(["regular", "solid"]),
|
|
499
498
|
/**
|
|
@@ -538,5 +537,5 @@ M.propTypes = {
|
|
|
538
537
|
size: o.oneOf(["small", "medium", "large"])
|
|
539
538
|
};
|
|
540
539
|
export {
|
|
541
|
-
|
|
540
|
+
Q as default
|
|
542
541
|
};
|
package/dist/ButtonGroup.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime")
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),a=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),t=require("./index-BIlhCoy2.cjs"),o=require("./utils-DTAPpJXU.cjs"),b=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),s=a.newStyled.div`
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
flex-wrap: wrap;
|
|
4
4
|
width: fit-content;
|
package/dist/ButtonGroup.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { u as l } from "./emotion-element-5486c51c.browser.esm-CSejtOeT.js";
|
|
2
|
+
import { n as i } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
3
|
+
import { P as t } from "./index-BYnWp42a.js";
|
|
4
|
+
import { a as o, b } from "./utils-C52T57HO.js";
|
|
5
|
+
import { u as l } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
7
6
|
const s = i.div`
|
|
8
7
|
display: inline-flex;
|
|
9
8
|
flex-wrap: wrap;
|
|
@@ -83,7 +82,12 @@ const s = i.div`
|
|
|
83
82
|
"border"
|
|
84
83
|
)};
|
|
85
84
|
}
|
|
86
|
-
`, m = ({
|
|
85
|
+
`, m = ({
|
|
86
|
+
children: e,
|
|
87
|
+
borderRadius: d = "regular",
|
|
88
|
+
style: n = {},
|
|
89
|
+
className: a = ""
|
|
90
|
+
}) => {
|
|
87
91
|
const r = l();
|
|
88
92
|
return /* @__PURE__ */ u(
|
|
89
93
|
s,
|
package/dist/CheckBoxInput.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),z=require("react"),t=require("./index-
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),z=require("react"),t=require("./index-BIlhCoy2.cjs"),R=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),o=require("./utils-DTAPpJXU.cjs"),j=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),V=e=>e=="left"?"row-reverse":"row",i=(e,s)=>`calc(${e.components.Checkbox.default.enabled.sizes[s]} / 2)`,O=R.newStyled.label`
|
|
2
2
|
-webkit-user-select: none;
|
|
3
3
|
-moz-user-select: none;
|
|
4
4
|
-ms-user-select: none;
|
package/dist/CheckBoxInput.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as k, jsx as i, Fragment as B } from "react/jsx-runtime";
|
|
2
|
-
import I from "react";
|
|
3
|
-
import { P as t } from "./index-
|
|
4
|
-
import { n as j } from "./emotion-styled.browser.esm-
|
|
5
|
-
import {
|
|
6
|
-
import { u as P } from "./emotion-element-5486c51c.browser.esm-
|
|
2
|
+
import { forwardRef as I } from "react";
|
|
3
|
+
import { P as t } from "./index-BYnWp42a.js";
|
|
4
|
+
import { n as j } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
+
import { d as g, g as L, a as n, b as N, e as x } from "./utils-C52T57HO.js";
|
|
6
|
+
import { u as P } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
7
7
|
const R = (e) => e == "left" ? "row-reverse" : "row", o = (e, d) => `calc(${e.components.Checkbox.default.enabled.sizes[d]} / 2)`, T = j.label`
|
|
8
8
|
-webkit-user-select: none;
|
|
9
9
|
-moz-user-select: none;
|
|
@@ -195,7 +195,7 @@ const R = (e) => e == "left" ? "row-reverse" : "row", o = (e, d) => `calc(${e.co
|
|
|
195
195
|
& input:active ~ .checkmark {
|
|
196
196
|
${(e) => x(e.theme)};
|
|
197
197
|
}
|
|
198
|
-
`, F = I
|
|
198
|
+
`, F = I((e, d) => {
|
|
199
199
|
const {
|
|
200
200
|
containerRef: f,
|
|
201
201
|
id: W,
|
package/dist/Chip.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),V=require("react"),r=require("./index-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),V=require("react"),r=require("./index-BIlhCoy2.cjs"),j=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),n=require("./utils-DTAPpJXU.cjs"),O=require("./Avatar.cjs"),q=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),m=e=>{var o="fas";return`${o} fa-${e} fa-fw`},S=(e,o,l,a)=>e?`padding-right: ${a=="small"?"0.75rem":"0.625rem"}; padding-left: ${a=="small"?"0.25rem":"0.125rem"};`:o?`padding-right: ${a=="small"?"0.5rem":"0.375rem"}; padding-left: ${a=="small"?"0.5rem":"0.375rem"};`:l?`padding-right: ${a=="small"?"0.5rem":"0.375rem"}; padding-left: ${a=="small"?"0.75rem":"0.625rem"};`:`padding-right: ${a=="small"?"1rem":"0.75rem"}; padding-left: ${a=="small"?"1rem":"0.75rem"};`,N=j.newStyled.span`
|
|
2
2
|
cursor: pointer;
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
height: ${e=>n.getSizeValueWithUnits(e.theme,e.size)};
|
package/dist/Chip.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as u, jsx as i, Fragment as N } from "react/jsx-runtime";
|
|
2
|
-
import S from "react";
|
|
3
|
-
import { P as a } from "./index-
|
|
4
|
-
import { n as j } from "./emotion-styled.browser.esm-
|
|
5
|
-
import {
|
|
2
|
+
import { forwardRef as S } from "react";
|
|
3
|
+
import { P as a } from "./index-BYnWp42a.js";
|
|
4
|
+
import { n as j } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
+
import { d as b, h as B, a as t, b as D, g as F, c as V, e as U } from "./utils-C52T57HO.js";
|
|
6
6
|
import W from "./Avatar.js";
|
|
7
|
-
import { u as A } from "./emotion-element-5486c51c.browser.esm-
|
|
7
|
+
import { u as A } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
8
8
|
const h = (e) => {
|
|
9
9
|
var n = "fas";
|
|
10
10
|
return `${n} fa-${e} fa-fw`;
|
|
@@ -68,7 +68,7 @@ const h = (e) => {
|
|
|
68
68
|
"backgroundOpacity"
|
|
69
69
|
)};
|
|
70
70
|
}
|
|
71
|
-
`,
|
|
71
|
+
`, z = (e, n) => `calc(${b(e, n)} - 8px)`, q = S((e, n) => {
|
|
72
72
|
const {
|
|
73
73
|
label: l,
|
|
74
74
|
leadingIcon: r,
|
|
@@ -127,7 +127,7 @@ const h = (e) => {
|
|
|
127
127
|
{
|
|
128
128
|
...g,
|
|
129
129
|
disabled: s,
|
|
130
|
-
sizeInUnits:
|
|
130
|
+
sizeInUnits: z(m, d),
|
|
131
131
|
...P
|
|
132
132
|
}
|
|
133
133
|
),
|
|
@@ -147,7 +147,7 @@ const h = (e) => {
|
|
|
147
147
|
}
|
|
148
148
|
);
|
|
149
149
|
});
|
|
150
|
-
|
|
150
|
+
q.propTypes = {
|
|
151
151
|
label: a.string,
|
|
152
152
|
leadingIcon: a.string,
|
|
153
153
|
trailingIcon: a.string,
|
|
@@ -185,5 +185,5 @@ z.propTypes = {
|
|
|
185
185
|
avatarProps: a.any
|
|
186
186
|
};
|
|
187
187
|
export {
|
|
188
|
-
|
|
188
|
+
q as default
|
|
189
189
|
};
|
package/dist/ColorInput.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),b=require("react"),C=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),t=require("./index-
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),b=require("react"),C=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),t=require("./index-BIlhCoy2.cjs"),n=require("./utils-DTAPpJXU.cjs"),N=require("./index-DaiUAQVF.cjs"),A=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),H=require("./useUpdateEffect-BtMgpgIV.cjs"),V=(e,r)=>`calc(${n.getSizeValueWithUnits(e,r)} - 1rem)`,L=C.newStyled.label`
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
gap: 0.5rem;
|
package/dist/ColorInput.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsx as a, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { n as I } from "./emotion-styled.browser.esm-
|
|
4
|
-
import { P as t } from "./index-
|
|
5
|
-
import {
|
|
6
|
-
import { d as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
1
|
+
import { jsx as a, jsxs as q } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as G, useState as R, useCallback as J } from "react";
|
|
3
|
+
import { n as I } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
4
|
+
import { P as t } from "./index-BYnWp42a.js";
|
|
5
|
+
import { g as M, d, a as g, b as V, e as C, f as Q, h as X } from "./utils-C52T57HO.js";
|
|
6
|
+
import { d as Y } from "./index-CNBqQrtK.js";
|
|
7
|
+
import { u as Z } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
8
|
+
import { u as _ } from "./useUpdateEffect-CuYWz7EA.js";
|
|
9
9
|
const T = (e, o) => `calc(${d(e, o)} - 1rem)`, ee = I.label`
|
|
10
10
|
display: inline-flex;
|
|
11
11
|
align-items: center;
|
|
12
12
|
gap: 0.5rem;
|
|
13
|
-
${(e) =>
|
|
13
|
+
${(e) => M(e.theme, "Input", e.size, "enabled")};
|
|
14
14
|
min-height: ${(e) => d(e.theme, e.size)};
|
|
15
15
|
max-height: ${(e) => d(e.theme, e.size)};
|
|
16
16
|
background-color: ${(e) => g(
|
|
@@ -39,7 +39,7 @@ const T = (e, o) => `calc(${d(e, o)} - 1rem)`, ee = I.label`
|
|
|
39
39
|
padding: 0.625rem 0.75rem;
|
|
40
40
|
width: 100%;
|
|
41
41
|
${(e) => !e.disabled && e.readOnly !== !0 && e.isFocused === !0 && C(e.theme)};
|
|
42
|
-
${(e) => e.disabled === !0 &&
|
|
42
|
+
${(e) => e.disabled === !0 && Q(e.theme)}
|
|
43
43
|
border: 1px solid ${(e) => g(e.theme, "Input", e.color, "disabled", "border")};
|
|
44
44
|
`, te = I.div`
|
|
45
45
|
${(e) => !e.disabled && e.readOnly !== !0 && "cursor: pointer;"}
|
|
@@ -69,7 +69,7 @@ const T = (e, o) => `calc(${d(e, o)} - 1rem)`, ee = I.label`
|
|
|
69
69
|
height: 200%;
|
|
70
70
|
cursor: pointer;
|
|
71
71
|
transform: translate(-25%, -25%);
|
|
72
|
-
${(e) => e.disabled === !0 &&
|
|
72
|
+
${(e) => e.disabled === !0 && X(e.theme)};
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
`, ne = I.span`
|
|
@@ -83,7 +83,7 @@ const T = (e, o) => `calc(${d(e, o)} - 1rem)`, ee = I.label`
|
|
|
83
83
|
background-color: transparent;
|
|
84
84
|
width: 100%;
|
|
85
85
|
}
|
|
86
|
-
`, ae =
|
|
86
|
+
`, ae = G((e, o) => {
|
|
87
87
|
const {
|
|
88
88
|
id: u,
|
|
89
89
|
name: f,
|
|
@@ -111,19 +111,19 @@ const T = (e, o) => `calc(${d(e, o)} - 1rem)`, ee = I.label`
|
|
|
111
111
|
labelRef: N,
|
|
112
112
|
inputProps: x,
|
|
113
113
|
...O
|
|
114
|
-
} = e, B =
|
|
115
|
-
|
|
116
|
-
const
|
|
117
|
-
|
|
114
|
+
} = e, B = Z(), [c, p] = R(i), [W, S] = R(!1), A = new RegExp(/^#[0-9A-F]{6}$/i);
|
|
115
|
+
_(() => p(i), [i]);
|
|
116
|
+
const H = J(
|
|
117
|
+
Y((n, v) => L(n, v), j),
|
|
118
118
|
[w]
|
|
119
|
-
),
|
|
119
|
+
), L = (n, v) => {
|
|
120
120
|
w && w(n, v);
|
|
121
121
|
}, m = (n) => {
|
|
122
|
-
i && p(n.target.value),
|
|
122
|
+
i && p(n.target.value), H(n, n.target.value);
|
|
123
123
|
}, h = (n) => {
|
|
124
124
|
S(!0), P(n);
|
|
125
125
|
}, b = (n) => {
|
|
126
|
-
|
|
126
|
+
A.test(c) || p(z), S(!1), U(n);
|
|
127
127
|
};
|
|
128
128
|
return /* @__PURE__ */ a(
|
|
129
129
|
te,
|
|
@@ -137,7 +137,7 @@ const T = (e, o) => `calc(${d(e, o)} - 1rem)`, ee = I.label`
|
|
|
137
137
|
readOnly: l,
|
|
138
138
|
withInput: $,
|
|
139
139
|
...O,
|
|
140
|
-
children: $ ? /* @__PURE__ */
|
|
140
|
+
children: $ ? /* @__PURE__ */ q(
|
|
141
141
|
ee,
|
|
142
142
|
{
|
|
143
143
|
withInput: $,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),p=require("react"),r=require("./index-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),p=require("react"),r=require("./index-BIlhCoy2.cjs"),y=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),m=require("./Icon.cjs"),u=require("./utils-DTAPpJXU.cjs"),B=require("./Modal.cjs"),F=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),E=y.newStyled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
gap: 1rem;
|
|
4
4
|
align-items: center;
|