@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/Table.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { jsx as i, jsxs as z, Fragment as R } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { n as w } from "./emotion-styled.browser.esm-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { c as ue } from "./index-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
2
|
+
import { useLayoutEffect as Me, useEffect as V, useState as de, useMemo as Xe, createElement as O, isValidElement as qe, forwardRef as Je, useImperativeHandle as Ke } from "react";
|
|
3
|
+
import { n as w } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
4
|
+
import { P as r } from "./index-BYnWp42a.js";
|
|
5
|
+
import { m as be, n as Qe, a as f, g as M, s as ce, u as Ze, o as B, r as S, i as A } from "./utils-C52T57HO.js";
|
|
6
|
+
import { c as ue } from "./index-DLVVKJXD.js";
|
|
7
|
+
import { c as D, g as J } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
8
|
+
import { u as v } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
9
|
+
import { i as er } from "./index-CvebWhtp.js";
|
|
9
10
|
import fe from "./CheckBoxInput.js";
|
|
10
11
|
import rr from "./Icon.js";
|
|
11
12
|
import tr from "./Spinner.js";
|
|
12
|
-
var or = be ?
|
|
13
|
+
var or = be ? Me : V, he = {
|
|
13
14
|
x: 0,
|
|
14
15
|
y: 0,
|
|
15
16
|
width: 0,
|
|
@@ -20,7 +21,7 @@ var or = be ? Xe : V, he = {
|
|
|
20
21
|
right: 0
|
|
21
22
|
};
|
|
22
23
|
function nr() {
|
|
23
|
-
var e = de(null), s = e[0], t = e[1], o = de(he), d = o[0], c = o[1], h =
|
|
24
|
+
var e = de(null), s = e[0], t = e[1], o = de(he), d = o[0], c = o[1], h = Xe(function() {
|
|
24
25
|
return new window.ResizeObserver(function(g) {
|
|
25
26
|
if (g[0]) {
|
|
26
27
|
var T = g[0].contentRect, y = T.x, E = T.y, L = T.width, _ = T.height, C = T.top, P = T.left, $ = T.bottom, m = T.right;
|
|
@@ -289,7 +290,7 @@ const Nr = /* @__PURE__ */ J($r), xr = w.td`
|
|
|
289
290
|
}, m = () => {
|
|
290
291
|
if (t.render && Nr(t.render)) {
|
|
291
292
|
var a = t.render(o);
|
|
292
|
-
if (
|
|
293
|
+
if (qe(a)) return a;
|
|
293
294
|
console.error(
|
|
294
295
|
`${t.id}/${t.accessor}: invalid render function.`
|
|
295
296
|
);
|
|
@@ -896,7 +897,7 @@ const Mr = w.div`
|
|
|
896
897
|
justify-content: center;
|
|
897
898
|
${(e) => M(e.theme, "Table", e.size, "enabled")};
|
|
898
899
|
padding: 0.5rem;
|
|
899
|
-
`,
|
|
900
|
+
`, ut = {
|
|
900
901
|
TableContainer: "TABLE_CONTAINER",
|
|
901
902
|
TableRow: "TABLE_ROW",
|
|
902
903
|
TableCell: "TABLE_CELL",
|
|
@@ -1403,6 +1404,6 @@ _e.propTypes = {
|
|
|
1403
1404
|
};
|
|
1404
1405
|
_e.displayName = "TABLE";
|
|
1405
1406
|
export {
|
|
1406
|
-
|
|
1407
|
+
ut as TableComponentOverrides,
|
|
1407
1408
|
_e as default
|
|
1408
1409
|
};
|
package/dist/TableView.cjs
CHANGED
|
@@ -1 +1,8 @@
|
|
|
1
|
-
"use strict";require("react/jsx-runtime")
|
|
1
|
+
"use strict";const T=require("react/jsx-runtime"),g=require("react"),e=require("./index-BIlhCoy2.cjs"),ee=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),oe=require("./ActionsToolbar.cjs"),ne=require("./Pagination.cjs"),d=require("./utils-DTAPpJXU.cjs"),le=require("./Table.cjs"),se=ee.newStyled.div`
|
|
2
|
+
& .table-view-pagination-lnc {
|
|
3
|
+
padding: 0 0.625rem;
|
|
4
|
+
}
|
|
5
|
+
& .table-view-toolbar-lnc {
|
|
6
|
+
margin: 0 0.625rem;
|
|
7
|
+
}
|
|
8
|
+
`,w=g.forwardRef((h,S)=>{const{__TYPE__:te="TABLE_VIEW",goToPreviousView:re,tableProps:o={},paginationProps:n={},actionsToolbarProps:f={},rowsSingleSelect:C=!0,rowsMultiSelect:m=!1,loading:ce=!1,showCreate:z=!0,enableCreate:E=!0,enableDetails:ae=!0,showEdit:D,enableEditOnSelection:N,showDelete:P=!0,enableDeleteOnSelection:R=!0,showCopy:O=!0,enableCopyOnSelection:_=!0,customActions:x,pagination:A=!0,readOnly:b=!1,actionsDropdownZIndex:j=null,actionsDropdownPlacement:v=null,actionDropdownProps:q,onCreate:k=()=>{},onEdit:I=()=>{},onDelete:L=()=>{},onDetails:V=()=>{},onCopy:B=()=>{},onFilter:ie=()=>{},onSort:ye=()=>{},onPageChange:F=()=>{},onEmptyRowsSelection:pe=()=>{},className:de="",style:ue={},color:c="primary",size:a="small",children:i,...M}=h,l={...f,showCreate:z,enableCreate:E,showCopy:O,enableCopyOnSelection:_,showEdit:D,enableEditOnSelection:N,showDelete:P,enableDeleteOnSelection:R,customActions:x,readOnly:b},[r,y]=g.useState([]),W=(s,t)=>{t?m?y([...r,s]):C&&y([s]):y(m?p=>p.filter(u=>u!=s):[])},Y=(s,t)=>{var p,u;((p=s.target)==null?void 0:p.type)!=="checkbox"&&((u=s.target)==null?void 0:u.className)!=="checkmark"&&(o!=null&&o.onRowClick&&o.onRowClick(s,t),Z(t,s))},Z=(s,t)=>{V(s,t)},G=s=>{k(s)},H=s=>{B(r,s)},J=s=>{I(r,s),y([])},K=s=>{L(r,s),y([])},Q=s=>{F(s)},U=()=>d.renderCustomElement(d.getCustomRender("ACTIONS_TOOLBAR",i),{...l,size:l!=null&&l.size?l.size:a,color:l!=null&&l.color?l.color:c,className:"table-view-toolbar-lnc "+(l==null?void 0:l.className)},i)||T.jsx(oe,{...l,className:"table-view-toolbar-lnc "+(l==null?void 0:l.className),size:l!=null&&l.size?l.size:a,color:l!=null&&l.color?l.color:c,selectedRowsLength:r!=null&&r.length?r.length:0,onCreate:G,onCopy:H,onEdit:J,onDelete:K,actionsDropdownZIndex:j,actionDropdownProps:q,actionsDropdownPlacement:v}),X=()=>d.renderCustomElement(d.getCustomRender("TABLE",i),{...o,size:o!=null&&o.size?o.size:a,color:o!=null&&o.color?o.color:c,className:"table-view-pagination-lnc "+(o==null?void 0:o.className)},i)||T.jsx(le.default,{size:o!=null&&o.size?o.size:a,color:o!=null&&o.color?o.color:c,EnableSelection:(C||m)&&b==!1,onSelectRow:(s,t,p)=>W(t,!p),SelectedData:r,onRowClick:(s,t)=>Y(s,t),...o}),$=()=>d.renderCustomElement(d.getCustomRender("PAGINATION",i),{...n,size:n!=null&&n.size?n.size:a,color:n!=null&&n.color?n.color:c,className:"table-view-pagination-lnc "+(n==null?void 0:n.className)},i)||T.jsx(ne,{...n,size:n!=null&&n.size?n.size:a,color:n!=null&&n.color?n.color:c,className:"table-view-pagination-lnc "+(n==null?void 0:n.className),onPageChange:Q});return T.jsxs(se,{ref:S,...M,children:[U(),X(),A==!0&&$()]})});w.propTypes={__TYPE__:e.PropTypes.string,tableProps:e.PropTypes.object,actionsToolbarProps:e.PropTypes.object,paginationProps:e.PropTypes.object,rowsSingleSelect:e.PropTypes.bool,rowsMultiSelect:e.PropTypes.bool,loading:e.PropTypes.bool,showCreate:e.PropTypes.bool,actionsDropdownZIndex:e.PropTypes.any,actionsDropdownPlacement:e.PropTypes.any,enableCreate:e.PropTypes.bool,enableDetails:e.PropTypes.bool,showEdit:e.PropTypes.bool,enableEditOnSelection:e.PropTypes.bool,showDelete:e.PropTypes.bool,enableDeleteOnSelection:e.PropTypes.bool,showCopy:e.PropTypes.bool,enableCopyOnSelection:e.PropTypes.bool,customActions:e.PropTypes.array,pagination:e.PropTypes.bool,readOnly:e.PropTypes.bool,onCreate:e.PropTypes.func,onEdit:e.PropTypes.func,onDelete:e.PropTypes.func,onDetails:e.PropTypes.func,onCopy:e.PropTypes.func,onFilter:e.PropTypes.func,onSort:e.PropTypes.func,onPageChange:e.PropTypes.func,className:e.PropTypes.string,style:e.PropTypes.object,size:e.PropTypes.oneOf(["small","medium","large"]),color:e.PropTypes.oneOf(["primary","secondary","success","danger","warning","information","neutral","gray"])};w.displayName="TABLE_VIEW";module.exports=w;
|
package/dist/TableView.js
CHANGED
|
@@ -1,11 +1,240 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
|
-
import "./index-
|
|
4
|
-
import "./emotion-styled.browser.esm-
|
|
5
|
-
import "./ActionsToolbar.js";
|
|
6
|
-
import
|
|
7
|
-
import "./utils-
|
|
8
|
-
import "./Table.js";
|
|
1
|
+
import { jsxs as ee, jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as oe, useState as ne } from "react";
|
|
3
|
+
import { P as e } from "./index-BYnWp42a.js";
|
|
4
|
+
import { n as le } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
+
import te from "./ActionsToolbar.js";
|
|
6
|
+
import ce from "./Pagination.js";
|
|
7
|
+
import { r as h, i as C } from "./utils-C52T57HO.js";
|
|
8
|
+
import ae from "./Table.js";
|
|
9
|
+
const ie = le.div`
|
|
10
|
+
& .table-view-pagination-lnc {
|
|
11
|
+
padding: 0 0.625rem;
|
|
12
|
+
}
|
|
13
|
+
& .table-view-toolbar-lnc {
|
|
14
|
+
margin: 0 0.625rem;
|
|
15
|
+
}
|
|
16
|
+
`, g = oe((S, z) => {
|
|
17
|
+
const {
|
|
18
|
+
__TYPE__: se = "TABLE_VIEW",
|
|
19
|
+
goToPreviousView: re,
|
|
20
|
+
tableProps: o = {},
|
|
21
|
+
paginationProps: n = {},
|
|
22
|
+
actionsToolbarProps: D = {},
|
|
23
|
+
rowsSingleSelect: b = !0,
|
|
24
|
+
rowsMultiSelect: w = !1,
|
|
25
|
+
loading: me = !1,
|
|
26
|
+
showCreate: E = !0,
|
|
27
|
+
enableCreate: T = !0,
|
|
28
|
+
enableDetails: de = !0,
|
|
29
|
+
showEdit: N,
|
|
30
|
+
enableEditOnSelection: O,
|
|
31
|
+
showDelete: R = !0,
|
|
32
|
+
enableDeleteOnSelection: _ = !0,
|
|
33
|
+
showCopy: A = !0,
|
|
34
|
+
enableCopyOnSelection: v = !0,
|
|
35
|
+
customActions: k,
|
|
36
|
+
pagination: I = !0,
|
|
37
|
+
readOnly: y = !1,
|
|
38
|
+
actionsDropdownZIndex: j = null,
|
|
39
|
+
actionsDropdownPlacement: x = null,
|
|
40
|
+
actionDropdownProps: L,
|
|
41
|
+
//----------------
|
|
42
|
+
onCreate: V = () => {
|
|
43
|
+
},
|
|
44
|
+
onEdit: B = () => {
|
|
45
|
+
},
|
|
46
|
+
onDelete: F = () => {
|
|
47
|
+
},
|
|
48
|
+
onDetails: M = () => {
|
|
49
|
+
},
|
|
50
|
+
onCopy: W = () => {
|
|
51
|
+
},
|
|
52
|
+
onFilter: ue = () => {
|
|
53
|
+
},
|
|
54
|
+
onSort: we = () => {
|
|
55
|
+
},
|
|
56
|
+
onPageChange: Y = () => {
|
|
57
|
+
},
|
|
58
|
+
onEmptyRowsSelection: fe = () => {
|
|
59
|
+
},
|
|
60
|
+
//------------------
|
|
61
|
+
className: he = "",
|
|
62
|
+
style: Ce = {},
|
|
63
|
+
color: i = "primary",
|
|
64
|
+
size: s = "small",
|
|
65
|
+
children: r,
|
|
66
|
+
...Z
|
|
67
|
+
} = S, l = {
|
|
68
|
+
...D,
|
|
69
|
+
showCreate: E,
|
|
70
|
+
enableCreate: T,
|
|
71
|
+
showCopy: A,
|
|
72
|
+
enableCopyOnSelection: v,
|
|
73
|
+
showEdit: N,
|
|
74
|
+
enableEditOnSelection: O,
|
|
75
|
+
showDelete: R,
|
|
76
|
+
enableDeleteOnSelection: _,
|
|
77
|
+
customActions: k,
|
|
78
|
+
readOnly: y
|
|
79
|
+
}, [a, m] = ne([]), p = (t, c) => {
|
|
80
|
+
c ? w ? m([...a, t]) : b && m([t]) : m(w ? (d) => d.filter((u) => u != t) : []);
|
|
81
|
+
}, G = (t, c) => {
|
|
82
|
+
var d, u;
|
|
83
|
+
((d = t.target) == null ? void 0 : d.type) !== "checkbox" && ((u = t.target) == null ? void 0 : u.className) !== "checkmark" && (o != null && o.onRowClick && o.onRowClick(t, c), q(c, t));
|
|
84
|
+
}, q = (t, c) => {
|
|
85
|
+
M(t, c);
|
|
86
|
+
}, H = (t) => {
|
|
87
|
+
V(t);
|
|
88
|
+
}, J = (t) => {
|
|
89
|
+
W(a, t);
|
|
90
|
+
}, K = (t) => {
|
|
91
|
+
B(a, t), m([]);
|
|
92
|
+
}, Q = (t) => {
|
|
93
|
+
F(a, t), m([]);
|
|
94
|
+
}, U = (t) => {
|
|
95
|
+
Y(t);
|
|
96
|
+
}, X = () => h(
|
|
97
|
+
C("ACTIONS_TOOLBAR", r),
|
|
98
|
+
{
|
|
99
|
+
...l,
|
|
100
|
+
size: l != null && l.size ? l.size : s,
|
|
101
|
+
color: l != null && l.color ? l.color : i,
|
|
102
|
+
className: "table-view-toolbar-lnc " + (l == null ? void 0 : l.className)
|
|
103
|
+
},
|
|
104
|
+
r
|
|
105
|
+
) || /* @__PURE__ */ f(
|
|
106
|
+
te,
|
|
107
|
+
{
|
|
108
|
+
...l,
|
|
109
|
+
className: "table-view-toolbar-lnc " + (l == null ? void 0 : l.className),
|
|
110
|
+
size: l != null && l.size ? l.size : s,
|
|
111
|
+
color: l != null && l.color ? l.color : i,
|
|
112
|
+
selectedRowsLength: a != null && a.length ? a.length : 0,
|
|
113
|
+
onCreate: H,
|
|
114
|
+
onCopy: J,
|
|
115
|
+
onEdit: K,
|
|
116
|
+
onDelete: Q,
|
|
117
|
+
actionsDropdownZIndex: j,
|
|
118
|
+
actionDropdownProps: L,
|
|
119
|
+
actionsDropdownPlacement: x
|
|
120
|
+
}
|
|
121
|
+
), $ = () => h(
|
|
122
|
+
C("TABLE", r),
|
|
123
|
+
{
|
|
124
|
+
...o,
|
|
125
|
+
size: o != null && o.size ? o.size : s,
|
|
126
|
+
color: o != null && o.color ? o.color : i,
|
|
127
|
+
className: "table-view-pagination-lnc " + (o == null ? void 0 : o.className)
|
|
128
|
+
},
|
|
129
|
+
r
|
|
130
|
+
) || /* @__PURE__ */ f(
|
|
131
|
+
ae,
|
|
132
|
+
{
|
|
133
|
+
size: o != null && o.size ? o.size : s,
|
|
134
|
+
color: o != null && o.color ? o.color : i,
|
|
135
|
+
EnableSelection: (b || w) && y == !1,
|
|
136
|
+
onSelectRow: (t, c, d) => p(c, !d),
|
|
137
|
+
SelectedData: a,
|
|
138
|
+
onRowClick: (t, c) => G(t, c),
|
|
139
|
+
...o
|
|
140
|
+
}
|
|
141
|
+
), P = () => h(
|
|
142
|
+
C("PAGINATION", r),
|
|
143
|
+
{
|
|
144
|
+
...n,
|
|
145
|
+
size: n != null && n.size ? n.size : s,
|
|
146
|
+
color: n != null && n.color ? n.color : i,
|
|
147
|
+
className: "table-view-pagination-lnc " + (n == null ? void 0 : n.className)
|
|
148
|
+
},
|
|
149
|
+
r
|
|
150
|
+
) || /* @__PURE__ */ f(
|
|
151
|
+
ce,
|
|
152
|
+
{
|
|
153
|
+
...n,
|
|
154
|
+
size: n != null && n.size ? n.size : s,
|
|
155
|
+
color: n != null && n.color ? n.color : i,
|
|
156
|
+
className: "table-view-pagination-lnc " + (n == null ? void 0 : n.className),
|
|
157
|
+
onPageChange: U
|
|
158
|
+
}
|
|
159
|
+
);
|
|
160
|
+
return /* @__PURE__ */ ee(ie, { ref: z, ...Z, children: [
|
|
161
|
+
X(),
|
|
162
|
+
$(),
|
|
163
|
+
I == !0 && P()
|
|
164
|
+
] });
|
|
165
|
+
});
|
|
166
|
+
g.propTypes = {
|
|
167
|
+
__TYPE__: e.string,
|
|
168
|
+
tableProps: e.object,
|
|
169
|
+
actionsToolbarProps: e.object,
|
|
170
|
+
paginationProps: e.object,
|
|
171
|
+
rowsSingleSelect: e.bool,
|
|
172
|
+
rowsMultiSelect: e.bool,
|
|
173
|
+
loading: e.bool,
|
|
174
|
+
showCreate: e.bool,
|
|
175
|
+
actionsDropdownZIndex: e.any,
|
|
176
|
+
actionsDropdownPlacement: e.any,
|
|
177
|
+
/**
|
|
178
|
+
* Enable create
|
|
179
|
+
*/
|
|
180
|
+
enableCreate: e.bool,
|
|
181
|
+
/**
|
|
182
|
+
* Enable details on row click
|
|
183
|
+
*/
|
|
184
|
+
enableDetails: e.bool,
|
|
185
|
+
showEdit: e.bool,
|
|
186
|
+
/**
|
|
187
|
+
* Enable edit when one row is selected
|
|
188
|
+
*/
|
|
189
|
+
enableEditOnSelection: e.bool,
|
|
190
|
+
showDelete: e.bool,
|
|
191
|
+
/**
|
|
192
|
+
* Enable delete when one row is selected
|
|
193
|
+
*/
|
|
194
|
+
enableDeleteOnSelection: e.bool,
|
|
195
|
+
showCopy: e.bool,
|
|
196
|
+
/**
|
|
197
|
+
* Enable copy when one row is selected
|
|
198
|
+
*/
|
|
199
|
+
enableCopyOnSelection: e.bool,
|
|
200
|
+
/**
|
|
201
|
+
* Actions that will be shown in toolbar with existing actions
|
|
202
|
+
* type of [{name: `<string>`, show: `<bool>`, enable: `<bool>`, enableOnSelection: `<bool>`, onAction: `<func>`, customAction: `<elemet>`}, ...]
|
|
203
|
+
*/
|
|
204
|
+
customActions: e.array,
|
|
205
|
+
/**
|
|
206
|
+
* Determines whether will pagination be shown in view
|
|
207
|
+
*/
|
|
208
|
+
pagination: e.bool,
|
|
209
|
+
/**
|
|
210
|
+
* If `readOnly={true}` actions Delete, Edit and Copy won't be shown. Row Selction will be disabled.
|
|
211
|
+
*/
|
|
212
|
+
readOnly: e.bool,
|
|
213
|
+
//-------------------------------------------------------------
|
|
214
|
+
onCreate: e.func,
|
|
215
|
+
onEdit: e.func,
|
|
216
|
+
onDelete: e.func,
|
|
217
|
+
onDetails: e.func,
|
|
218
|
+
onCopy: e.func,
|
|
219
|
+
onFilter: e.func,
|
|
220
|
+
onSort: e.func,
|
|
221
|
+
onPageChange: e.func,
|
|
222
|
+
//------------------------------------------------------------
|
|
223
|
+
className: e.string,
|
|
224
|
+
style: e.object,
|
|
225
|
+
size: e.oneOf(["small", "medium", "large"]),
|
|
226
|
+
color: e.oneOf([
|
|
227
|
+
"primary",
|
|
228
|
+
"secondary",
|
|
229
|
+
"success",
|
|
230
|
+
"danger",
|
|
231
|
+
"warning",
|
|
232
|
+
"information",
|
|
233
|
+
"neutral",
|
|
234
|
+
"gray"
|
|
235
|
+
])
|
|
236
|
+
};
|
|
237
|
+
g.displayName = "TABLE_VIEW";
|
|
9
238
|
export {
|
|
10
|
-
|
|
239
|
+
g as default
|
|
11
240
|
};
|
package/dist/Tabs.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const P=require("react/jsx-runtime"),r=require("react"),e=require("./index-
|
|
1
|
+
"use strict";const P=require("react/jsx-runtime"),r=require("react"),e=require("./index-BIlhCoy2.cjs"),j=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),q=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),w=j.newStyled.div`
|
|
2
2
|
background: transparent;
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: ${s=>s.fullWidth?"space-evenly":"none"};
|
package/dist/Tabs.js
CHANGED
|
@@ -1,55 +1,61 @@
|
|
|
1
1
|
import { jsx as T } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { P as e } from "./index-
|
|
4
|
-
import { n as
|
|
5
|
-
import { u as
|
|
6
|
-
const
|
|
2
|
+
import { forwardRef as j, useState as v, Children as c, cloneElement as P } from "react";
|
|
3
|
+
import { P as e } from "./index-BYnWp42a.js";
|
|
4
|
+
import { n as W } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
+
import { u as k } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
6
|
+
const w = W.div`
|
|
7
7
|
background: transparent;
|
|
8
8
|
display: flex;
|
|
9
9
|
justify-content: ${(t) => t.fullWidth ? "space-evenly" : "none"};
|
|
10
10
|
gap: ${(t) => t.type == "pill" ? "10px" : "0"};
|
|
11
11
|
box-sizing: border-box;
|
|
12
|
-
`,
|
|
12
|
+
`, z = j((t, m) => {
|
|
13
13
|
const {
|
|
14
|
-
type:
|
|
15
|
-
fullWidth:
|
|
14
|
+
type: o = "regular",
|
|
15
|
+
fullWidth: r = !1,
|
|
16
16
|
//----------------
|
|
17
17
|
className: p = "",
|
|
18
18
|
style: d = {},
|
|
19
19
|
color: n = "primary",
|
|
20
|
-
size:
|
|
21
|
-
children:
|
|
20
|
+
size: a = "small",
|
|
21
|
+
children: i,
|
|
22
22
|
...f
|
|
23
|
-
} = t, u =
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
23
|
+
} = t, u = k(), [y, h] = v(), g = {
|
|
24
|
+
theme: u,
|
|
25
|
+
color: n,
|
|
26
|
+
size: a,
|
|
27
|
+
style: d,
|
|
28
|
+
className: "lnc-ui-tabs " + p
|
|
29
|
+
}, b = (s) => {
|
|
30
|
+
h(s);
|
|
31
|
+
}, x = c.map(
|
|
32
|
+
i,
|
|
33
|
+
(s, l) => P(s, {
|
|
34
|
+
type: o,
|
|
35
|
+
first: l == 0,
|
|
36
|
+
last: l == c.toArray(i).length - 1,
|
|
37
|
+
fullWidth: r,
|
|
38
|
+
index: l,
|
|
33
39
|
itemClick: b,
|
|
34
40
|
activeIndex: y,
|
|
35
41
|
color: n,
|
|
36
|
-
size:
|
|
37
|
-
fullWidth:
|
|
42
|
+
size: a,
|
|
43
|
+
fullWidth: r
|
|
38
44
|
})
|
|
39
45
|
);
|
|
40
46
|
return /* @__PURE__ */ T(
|
|
41
|
-
|
|
47
|
+
w,
|
|
42
48
|
{
|
|
43
49
|
ref: m,
|
|
44
|
-
type:
|
|
45
|
-
fullWidth:
|
|
50
|
+
type: o,
|
|
51
|
+
fullWidth: r,
|
|
46
52
|
...g,
|
|
47
53
|
...f,
|
|
48
54
|
children: x
|
|
49
55
|
}
|
|
50
56
|
);
|
|
51
57
|
});
|
|
52
|
-
|
|
58
|
+
z.propTypes = {
|
|
53
59
|
type: e.oneOf(["regular", "pill", "underline"]),
|
|
54
60
|
fullWidth: e.bool,
|
|
55
61
|
//---------------------------------------------------------------
|
|
@@ -68,5 +74,5 @@ W.propTypes = {
|
|
|
68
74
|
size: e.oneOf(["small", "medium", "large"])
|
|
69
75
|
};
|
|
70
76
|
export {
|
|
71
|
-
|
|
77
|
+
z as default
|
|
72
78
|
};
|
package/dist/TextAreaInput.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const O=require("react/jsx-runtime"),a=require("./index-
|
|
1
|
+
"use strict";const O=require("react/jsx-runtime"),a=require("./index-BIlhCoy2.cjs"),c=require("react"),X=require("./index-DaiUAQVF.cjs"),Z=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),g=require("./utils-DTAPpJXU.cjs"),V=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),J=require("./objectWithoutPropertiesLoose-Bz3hwpmU.cjs"),K=require("./use-isomorphic-layout-effect.browser.esm-CkGv31zs.cjs");function Q(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const x=Q(c),ee=Z.newStyled.div`
|
|
2
2
|
& textarea {
|
|
3
3
|
${e=>g.getComponentTypographyCss(e.theme,"Input",e.size,"enabled")}
|
|
4
4
|
min-height: ${e=>g.getSizeValueWithUnits(e.theme,e.size)};
|
package/dist/TextAreaInput.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as W } from "react/jsx-runtime";
|
|
2
|
-
import { P as o } from "./index-
|
|
2
|
+
import { P as o } from "./index-BYnWp42a.js";
|
|
3
3
|
import * as v from "react";
|
|
4
|
-
import
|
|
5
|
-
import { d as X } from "./index-
|
|
6
|
-
import { n as Z } from "./emotion-styled.browser.esm-
|
|
7
|
-
import {
|
|
8
|
-
import { _ as te, u as re } from "./emotion-element-5486c51c.browser.esm-
|
|
4
|
+
import { useRef as Y, useCallback as A, forwardRef as D, useState as H, useEffect as $ } from "react";
|
|
5
|
+
import { d as X } from "./index-CNBqQrtK.js";
|
|
6
|
+
import { n as Z } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
7
|
+
import { g as q, d as J, a as z, b as K, e as Q, h as ee } from "./utils-C52T57HO.js";
|
|
8
|
+
import { _ as te, u as re } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
9
9
|
import { _ as ne } from "./objectWithoutPropertiesLoose-DwEN6RBQ.js";
|
|
10
10
|
import { i as ae } from "./use-isomorphic-layout-effect.browser.esm-DERp5kr6.js";
|
|
11
11
|
const oe = Z.div`
|
|
@@ -77,8 +77,8 @@ var ie = function(t) {
|
|
|
77
77
|
}
|
|
78
78
|
t.current = r;
|
|
79
79
|
}, de = function(t, r) {
|
|
80
|
-
var n =
|
|
81
|
-
return
|
|
80
|
+
var n = Y();
|
|
81
|
+
return A(function(a) {
|
|
82
82
|
t.current = a, n.current && B(n.current, null), n.current = r, r && B(r, a);
|
|
83
83
|
}, [r]);
|
|
84
84
|
}, O = {
|
|
@@ -102,7 +102,7 @@ var ie = function(t) {
|
|
|
102
102
|
};
|
|
103
103
|
function se(e, t, r, n) {
|
|
104
104
|
r === void 0 && (r = 1), n === void 0 && (n = 1 / 0), d || (d = document.createElement("textarea"), d.setAttribute("tabindex", "-1"), d.setAttribute("aria-hidden", "true"), k(d)), d.parentNode === null && document.body.appendChild(d);
|
|
105
|
-
var a = e.paddingSize,
|
|
105
|
+
var a = e.paddingSize, f = e.borderSize, s = e.sizingStyle, S = s.boxSizing;
|
|
106
106
|
Object.keys(s).forEach(function(g) {
|
|
107
107
|
var m = g;
|
|
108
108
|
d.style[m] = s[m];
|
|
@@ -110,9 +110,9 @@ function se(e, t, r, n) {
|
|
|
110
110
|
var i = M(d, e);
|
|
111
111
|
d.value = t, i = M(d, e), d.value = "x";
|
|
112
112
|
var u = d.scrollHeight - a, l = u * r;
|
|
113
|
-
S === "border-box" && (l = l + a +
|
|
113
|
+
S === "border-box" && (l = l + a + f), i = Math.max(l, i);
|
|
114
114
|
var c = u * n;
|
|
115
|
-
return S === "border-box" && (c = c + a +
|
|
115
|
+
return S === "border-box" && (c = c + a + f), i = Math.min(c, i), [i, u];
|
|
116
116
|
}
|
|
117
117
|
var V = function() {
|
|
118
118
|
}, le = function(t, r) {
|
|
@@ -145,22 +145,22 @@ var V = function() {
|
|
|
145
145
|
"wordBreak",
|
|
146
146
|
"wordSpacing",
|
|
147
147
|
"scrollbarGutter"
|
|
148
|
-
],
|
|
148
|
+
], he = !!document.documentElement.currentStyle, fe = function(t) {
|
|
149
149
|
var r = window.getComputedStyle(t);
|
|
150
150
|
if (r === null)
|
|
151
151
|
return null;
|
|
152
152
|
var n = le(ce, r), a = n.boxSizing;
|
|
153
153
|
if (a === "")
|
|
154
154
|
return null;
|
|
155
|
-
|
|
156
|
-
var
|
|
155
|
+
he && a === "border-box" && (n.width = parseFloat(n.width) + parseFloat(n.borderRightWidth) + parseFloat(n.borderLeftWidth) + parseFloat(n.paddingRight) + parseFloat(n.paddingLeft) + "px");
|
|
156
|
+
var f = parseFloat(n.paddingBottom) + parseFloat(n.paddingTop), s = parseFloat(n.borderBottomWidth) + parseFloat(n.borderTopWidth);
|
|
157
157
|
return {
|
|
158
158
|
sizingStyle: n,
|
|
159
|
-
paddingSize:
|
|
159
|
+
paddingSize: f,
|
|
160
160
|
borderSize: s
|
|
161
161
|
};
|
|
162
|
-
}, ge =
|
|
163
|
-
function
|
|
162
|
+
}, ge = fe;
|
|
163
|
+
function N(e, t, r) {
|
|
164
164
|
var n = ie(r);
|
|
165
165
|
v.useLayoutEffect(function() {
|
|
166
166
|
var a = function(s) {
|
|
@@ -173,15 +173,15 @@ function A(e, t, r) {
|
|
|
173
173
|
}, []);
|
|
174
174
|
}
|
|
175
175
|
var me = function(t) {
|
|
176
|
-
|
|
176
|
+
N(window, "resize", t);
|
|
177
177
|
}, be = function(t) {
|
|
178
|
-
|
|
178
|
+
N(document.fonts, "loadingdone", t);
|
|
179
179
|
}, pe = ["cacheMeasurements", "maxRows", "minRows", "onChange", "onHeightChange"], ve = function(t, r) {
|
|
180
|
-
var n = t.cacheMeasurements, a = t.maxRows,
|
|
180
|
+
var n = t.cacheMeasurements, a = t.maxRows, f = t.minRows, s = t.onChange, S = s === void 0 ? V : s, i = t.onHeightChange, u = i === void 0 ? V : i, l = ne(t, pe), c = l.value !== void 0, g = v.useRef(null), m = de(g, r), C = v.useRef(0), R = v.useRef(), x = function() {
|
|
181
181
|
var b = g.current, y = n && R.current ? R.current : ge(b);
|
|
182
182
|
if (y) {
|
|
183
183
|
R.current = y;
|
|
184
|
-
var T = se(y, b.value || b.placeholder || "x",
|
|
184
|
+
var T = se(y, b.value || b.placeholder || "x", f, a), p = T[0], L = T[1];
|
|
185
185
|
C.current !== p && (C.current = p, b.style.setProperty("height", p + "px", "important"), u(p, {
|
|
186
186
|
rowHeight: L
|
|
187
187
|
}));
|
|
@@ -194,12 +194,12 @@ var me = function(t) {
|
|
|
194
194
|
ref: m
|
|
195
195
|
}));
|
|
196
196
|
}, xe = /* @__PURE__ */ v.forwardRef(ve);
|
|
197
|
-
const ye =
|
|
197
|
+
const ye = D((e, t) => {
|
|
198
198
|
const {
|
|
199
199
|
disabled: r,
|
|
200
200
|
readOnly: n,
|
|
201
201
|
value: a,
|
|
202
|
-
defaultValue:
|
|
202
|
+
defaultValue: f,
|
|
203
203
|
debounceTime: s = 180,
|
|
204
204
|
type: S = "textarea",
|
|
205
205
|
collapseOnBlur: i = !1,
|
|
@@ -215,7 +215,7 @@ const ye = Y.forwardRef((e, t) => {
|
|
|
215
215
|
size: x = "small",
|
|
216
216
|
color: I = "primary",
|
|
217
217
|
...E
|
|
218
|
-
} = e, [b, y] = H(a ||
|
|
218
|
+
} = e, [b, y] = H(a || f || ""), T = re(), [p, L] = H(!1), [_, j] = H(u), [P, w] = H(
|
|
219
219
|
i ? u : l
|
|
220
220
|
);
|
|
221
221
|
$(() => {
|
|
@@ -225,11 +225,11 @@ const ye = Y.forwardRef((e, t) => {
|
|
|
225
225
|
}, [u, l]), $(() => {
|
|
226
226
|
w(i ? p === !0 ? l : u : l);
|
|
227
227
|
}, [i]);
|
|
228
|
-
const U =
|
|
229
|
-
X((
|
|
228
|
+
const U = A(
|
|
229
|
+
X((h, F) => G(h, F), s),
|
|
230
230
|
[c]
|
|
231
|
-
), G = (
|
|
232
|
-
c && (c == null || c(
|
|
231
|
+
), G = (h, F) => {
|
|
232
|
+
c && (c == null || c(h, F));
|
|
233
233
|
};
|
|
234
234
|
return /* @__PURE__ */ W(
|
|
235
235
|
oe,
|
|
@@ -250,16 +250,16 @@ const ye = Y.forwardRef((e, t) => {
|
|
|
250
250
|
disabled: r,
|
|
251
251
|
value: b,
|
|
252
252
|
readOnly: n,
|
|
253
|
-
minRows:
|
|
253
|
+
minRows: _,
|
|
254
254
|
maxRows: P,
|
|
255
|
-
onChange: (
|
|
256
|
-
y(
|
|
255
|
+
onChange: (h) => {
|
|
256
|
+
y(h.target.value), U(h, h.target.value);
|
|
257
257
|
},
|
|
258
|
-
onFocus: (
|
|
259
|
-
L(!0), i && w(l), m == null || m(
|
|
258
|
+
onFocus: (h) => {
|
|
259
|
+
L(!0), i && w(l), m == null || m(h);
|
|
260
260
|
},
|
|
261
|
-
onBlur: (
|
|
262
|
-
L(!1), i && w(u), g == null || g(
|
|
261
|
+
onBlur: (h) => {
|
|
262
|
+
L(!1), i && w(u), g == null || g(h);
|
|
263
263
|
},
|
|
264
264
|
...E
|
|
265
265
|
}
|
package/dist/TextInput.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const d=require("react/jsx-runtime"),t=require("./index-
|
|
1
|
+
"use strict";const d=require("react/jsx-runtime"),t=require("./index-BIlhCoy2.cjs"),s=require("react"),B=require("./index-DaiUAQVF.cjs"),c=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),n=require("./utils-DTAPpJXU.cjs"),F=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),D=c.newStyled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
|