@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/DropdownLookup.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const le=require("react/jsx-runtime"),e=require("./index-
|
|
1
|
+
"use strict";const le=require("react/jsx-runtime"),e=require("./index-BIlhCoy2.cjs"),t=require("react"),B=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),n=require("./CustomStyles-Dlqxic2X.cjs"),ce=require("./defineProperty-DHvxLH8G.cjs");require("./index-Ct1N7fF4.cjs");const fe=require("./index-DaiUAQVF.cjs");function de(o){const p=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const s in o)if(s!=="default"){const a=Object.getOwnPropertyDescriptor(o,s);Object.defineProperty(p,s,a.get?a:{enumerable:!0,get:()=>o[s]})}}return p.default=o,Object.freeze(p)}const ye=de(t);var Te=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function Pe(o){var p=o.defaultOptions,s=p===void 0?!1:p,a=o.cacheOptions,i=a===void 0?!1:a,y=o.loadOptions;o.options;var l=o.isLoading,h=l===void 0?!1:l,S=o.onInputChange,m=o.filterOption,C=m===void 0?null:m,g=n._objectWithoutProperties(o,Te),_=g.inputValue,u=t.useRef(void 0),c=t.useRef(!1),T=t.useState(Array.isArray(s)?s:void 0),f=n._slicedToArray(T,2),G=f[0],x=f[1],W=t.useState(typeof _<"u"?_:""),q=n._slicedToArray(W,2),D=q[0],I=q[1],J=t.useState(s===!0),R=n._slicedToArray(J,2),K=R[0],P=R[1],Q=t.useState(void 0),w=n._slicedToArray(Q,2),A=w[0],L=w[1],U=t.useState([]),E=n._slicedToArray(U,2),X=E[0],j=E[1],Y=t.useState(!1),$=n._slicedToArray(Y,2),Z=$[0],v=$[1],ee=t.useState({}),k=n._slicedToArray(ee,2),O=k[0],z=k[1],te=t.useState(void 0),F=n._slicedToArray(te,2),oe=F[0],se=F[1],ne=t.useState(void 0),N=n._slicedToArray(ne,2),re=N[0],pe=N[1];i!==re&&(z({}),pe(i)),s!==oe&&(x(Array.isArray(s)?s:void 0),se(s)),t.useEffect(function(){return c.current=!0,function(){c.current=!1}},[]);var M=t.useCallback(function(b,d){if(!y)return d();var r=y(b,d);r&&typeof r.then=="function"&&r.then(d,function(){return d()})},[y]);t.useEffect(function(){s===!0&&M(D,function(b){c.current&&(x(b||[]),P(!!u.current))})},[]);var ae=t.useCallback(function(b,d){var r=n.handleInputChange(b,d,S);if(!r){u.current=void 0,I(""),L(""),j([]),P(!1),v(!1);return}if(i&&O[r])I(r),L(r),j(O[r]),P(!1),v(!1);else{var ie=u.current={};I(r),P(!0),v(!A),M(r,function(V){c&&ie===u.current&&(u.current=void 0,P(!1),L(r),j(V||[]),v(!1),z(V?n._objectSpread2(n._objectSpread2({},O),{},ce._defineProperty({},r,V)):O))})}},[i,M,A,O,S]),ue=Z?[]:D&&A?X:G||[];return n._objectSpread2(n._objectSpread2({},g),{},{options:ue,isLoading:K||h,onInputChange:ae,filterOption:C})}var Oe=t.forwardRef(function(o,p){var s=Pe(o),a=n.useStateManager(s);return ye.createElement(n.Select,B._extends({ref:p},a))}),be=Oe;const H=t.forwardRef((o,p)=>{const{styles:s,debounceTime:a=180,isSearchable:i=!0,isClearable:y=!0,onInputChange:l,size:h="small",color:S="primary",className:m="",style:C={},...g}=o,_=B.useTheme(),u=t.useCallback(fe.debounce((T,f)=>{l==null||l(T,f)},a)),c=(T,f)=>{u(T,f)};return le.jsx(be,{ref:p,styles:s||n.customStyles,size:h,color:S,theme:_,isSearchable:i,isClearable:y,onInputChange:c,className:m,style:C,...g})});H.propTypes={defaultOptions:e.PropTypes.oneOfType([e.PropTypes.bool,e.PropTypes.array]),cacheOptions:e.PropTypes.any,loadOptions:e.PropTypes.func,styles:e.PropTypes.object,debounceTime:e.PropTypes.number,name:e.PropTypes.string,value:e.PropTypes.any,tabIndex:e.PropTypes.number,isSearchable:e.PropTypes.bool,isClearable:e.PropTypes.bool,isLoading:e.PropTypes.bool,isRtl:e.PropTypes.bool,isDisabled:e.PropTypes.bool,readOnly:e.PropTypes.bool,closeMenuOnSelect:e.PropTypes.bool,closeMenuOnScroll:e.PropTypes.oneOfType([e.PropTypes.bool,e.PropTypes.func]),escapeClearsValue:e.PropTypes.bool,filterOption:e.PropTypes.func,formatGroupLabel:e.PropTypes.func,formatOptionLabel:e.PropTypes.func,getOptionLabel:e.PropTypes.func,getOptionValue:e.PropTypes.func,hideSelectedOptions:e.PropTypes.bool,id:e.PropTypes.string,inputId:e.PropTypes.string,isOptionDisabled:e.PropTypes.func,isOptionSelected:e.PropTypes.func,loadingMessage:e.PropTypes.func,minMenuHeight:e.PropTypes.number,maxMenuHeight:e.PropTypes.number,menuPlacement:e.PropTypes.oneOf(["bottom","auto","top"]),menuPosition:e.PropTypes.oneOf(["absolute","fixed"]),menuShouldBlockScroll:e.PropTypes.bool,menuShouldScrollIntoView:e.PropTypes.bool,openMenuOnFocus:e.PropTypes.bool,openMenuOnClick:e.PropTypes.bool,autoFocus:e.PropTypes.bool,placeholder:e.PropTypes.any,noOptionsMessage:e.PropTypes.string,menuIsOpen:e.PropTypes.bool,components:e.PropTypes.object,defaultValue:e.PropTypes.string,defaultInputValue:e.PropTypes.string,defaultMenuIsOpen:e.PropTypes.bool,delimiter:e.PropTypes.string,onChange:e.PropTypes.func,onInputChange:e.PropTypes.func,onMenuOpen:e.PropTypes.func,onMenuClose:e.PropTypes.func,onFocus:e.PropTypes.func,onBlur:e.PropTypes.func,className:e.PropTypes.string,style:e.PropTypes.object,color:e.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:e.PropTypes.oneOf(["small","medium","large"])};module.exports=H;
|
package/dist/DropdownLookup.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as ce } from "react/jsx-runtime";
|
|
2
|
-
import { P as e } from "./index-
|
|
2
|
+
import { P as e } from "./index-BYnWp42a.js";
|
|
3
3
|
import * as de from "react";
|
|
4
4
|
import Oe, { useRef as G, useState as a, useEffect as W, useCallback as R, forwardRef as me } from "react";
|
|
5
|
-
import { _ as be, u as ge } from "./emotion-element-5486c51c.browser.esm-
|
|
6
|
-
import { _ as Se, b as s, h as he, d as C, u as ve, S as ye, a as _e } from "./CustomStyles-
|
|
7
|
-
import {
|
|
8
|
-
import "./index
|
|
9
|
-
import { d as Ce } from "./index-
|
|
5
|
+
import { _ as be, u as ge } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
6
|
+
import { _ as Se, b as s, h as he, d as C, u as ve, S as ye, a as _e } from "./CustomStyles-BUSJ8bZt.js";
|
|
7
|
+
import { _ as Ie } from "./defineProperty-B5pLF6px.js";
|
|
8
|
+
import "./index--Kmch3aI.js";
|
|
9
|
+
import { d as Ce } from "./index-CNBqQrtK.js";
|
|
10
10
|
var Le = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading", "onInputChange", "filterOption"];
|
|
11
11
|
function Me(o) {
|
|
12
12
|
var r = o.defaultOptions, t = r === void 0 ? !1 : r, i = o.cacheOptions, l = i === void 0 ? !1 : i, d = o.loadOptions;
|
package/dist/DropdownMenu.cjs
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
"use strict";require("react/jsx-runtime")
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),t=require("react"),o=require("./index-BIlhCoy2.cjs"),x=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),B=require("./Button.cjs"),K=require("./utils-DTAPpJXU.cjs"),L=require("./ThemeProvider.cjs"),U=require("./Popover.cjs"),Y=require("./PopoverTrigger.cjs"),$=require("./PopoverContent.cjs"),A=require("./motion-Oud-wpUz.cjs"),G=x.newStyled.div``,H=x.newStyled(A.motion.div)`
|
|
2
|
+
gap: 0.25rem;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
${n=>n.widthfitcontent==!1&&"min-width: 12.5rem"};
|
|
6
|
+
background-color: ${n=>K.getColorRgbaValue(n.theme,"Dropdown",n.color,"enabled","background")};
|
|
7
|
+
`,I=t.forwardRef((n,p)=>{const{control:i,offsetValue:C=9,placement:_,widthFitContent:b=!1,closeOnItemSelect:v=!0,zIndex:q,onFocus:m=()=>{},onBlur:f=()=>{},onClick:y=()=>{},onKeyDown:d=()=>{},onMouseEnter:T=()=>{},onMouseLeave:P=()=>{},onItemSelected:M=()=>{},animation:R={animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},initial:{opacity:0,height:0},transition:{type:"tween",duration:.15,opacity:{duration:.15,ease:"easeOut"},height:{duration:.15}}},className:h="",style:J={},color:s="primary",size:c="small",contentClassName:N="",popoverProps:Q,children:O,...j}=n;t.useRef();const D=t.useRef(),{theme:k}=L.useTheme(),g=t.useRef(),E=t.useRef(),[z,l]=t.useState(!1),w=(e,u,a)=>{M(e,u,a),v==!0&&l(!1)},F=t.Children.map(O,(e,u)=>{var a,S;return t.isValidElement(e)&&(e.props.__TYPE__=="MENU_ITEM"||((a=e==null?void 0:e.type)==null?void 0:a.displayName)==="MENU_ITEM"||e.props.__TYPE__=="NESTED_ITEM"||((S=e==null?void 0:e.type)==null?void 0:S.displayName)==="NESTED_ITEM")?u==0?(e.props.ref&&(E.current=p),t.cloneElement(e,{ref:p||E,color:e.props.color?e.props.color:s,size:c,onItemSelected:w,animation:R})):t.cloneElement(e,{color:e.props.color?e.props.color:s,size:c,onItemSelected:w}):e}),V=()=>typeof i=="string"||i instanceof String?r.jsx(B,{text:i,onClick:y,onMouseEnter:T,onMouseLeave:P,onBlur:f,onFocus:m,ref:g,onKeyDown:d,trailingIcon:"angle-down",color:s,size:c}):t.cloneElement(i,{color:s,size:c,ref:g,onClick:y,onMouseEnter:T,onMouseLeave:P,onBlur:f,onFocus:m,onKeyDown:d});return r.jsx(G,{ref:p,className:h,...j,children:r.jsxs(U,{open:z,onOpenChange:l,placement:_,offsetValue:C,children:[r.jsx(Y,{onClick:()=>l(e=>!e),children:V()}),r.jsx($,{zIndex:q,children:r.jsx(H,{ref:D,widthfitcontent:b,color:s,theme:k,className:N,children:F})})]})})});I.propTypes={control:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.element]),offsetValue:o.PropTypes.number,placement:o.PropTypes.oneOf(["center","top","right","bottom","left","top-start","top-end","right-start","right-end","bottom-start","bottom-end","left-start","left-end"]),widthFitContent:o.PropTypes.bool,closeOnItemSelect:o.PropTypes.bool,zIndex:o.PropTypes.number,onBlur:o.PropTypes.func,onFocus:o.PropTypes.func,onClick:o.PropTypes.func,onKeyDown:o.PropTypes.func,onMouseEnter:o.PropTypes.func,onMouseLeave:o.PropTypes.func,onItemSelected:o.PropTypes.func,animation:o.PropTypes.object,className:o.PropTypes.string,color:o.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:o.PropTypes.oneOf(["small","medium","large"]),popoverProps:o.PropTypes.any};module.exports=I;
|
package/dist/DropdownMenu.js
CHANGED
|
@@ -1,12 +1,194 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
|
-
import "./index-
|
|
4
|
-
import "./emotion-styled.browser.esm-
|
|
5
|
-
import "./Button.js";
|
|
6
|
-
import "./utils-
|
|
7
|
-
import "./ThemeProvider.js";
|
|
8
|
-
import
|
|
9
|
-
import "./
|
|
1
|
+
import { jsx as s, jsxs as B } from "react/jsx-runtime";
|
|
2
|
+
import n, { useRef as p, useState as K } from "react";
|
|
3
|
+
import { P as o } from "./index-BYnWp42a.js";
|
|
4
|
+
import { n as T } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
+
import L from "./Button.js";
|
|
6
|
+
import { a as U } from "./utils-C52T57HO.js";
|
|
7
|
+
import { useTheme as Y } from "./ThemeProvider.js";
|
|
8
|
+
import $ from "./Popover.js";
|
|
9
|
+
import q from "./PopoverTrigger.js";
|
|
10
|
+
import A from "./PopoverContent.js";
|
|
11
|
+
import { m as G } from "./motion-ecIGZGwI.js";
|
|
12
|
+
const H = T.div``, J = T(G.div)`
|
|
13
|
+
gap: 0.25rem;
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
${(t) => t.widthfitcontent == !1 && "min-width: 12.5rem"};
|
|
17
|
+
background-color: ${(t) => U(
|
|
18
|
+
t.theme,
|
|
19
|
+
"Dropdown",
|
|
20
|
+
t.color,
|
|
21
|
+
"enabled",
|
|
22
|
+
"background"
|
|
23
|
+
)};
|
|
24
|
+
`, Q = n.forwardRef((t, a) => {
|
|
25
|
+
const {
|
|
26
|
+
control: l,
|
|
27
|
+
offsetValue: b = 9,
|
|
28
|
+
placement: v,
|
|
29
|
+
widthFitContent: M = !1,
|
|
30
|
+
closeOnItemSelect: P = !0,
|
|
31
|
+
zIndex: N,
|
|
32
|
+
//----------------
|
|
33
|
+
onFocus: u = () => {
|
|
34
|
+
},
|
|
35
|
+
onBlur: d = () => {
|
|
36
|
+
},
|
|
37
|
+
onClick: g = () => {
|
|
38
|
+
},
|
|
39
|
+
onKeyDown: y = () => {
|
|
40
|
+
},
|
|
41
|
+
onMouseEnter: E = () => {
|
|
42
|
+
},
|
|
43
|
+
onMouseLeave: w = () => {
|
|
44
|
+
},
|
|
45
|
+
onItemSelected: O = () => {
|
|
46
|
+
},
|
|
47
|
+
//----------------
|
|
48
|
+
animation: h = {
|
|
49
|
+
animate: { opacity: 1, height: "auto" },
|
|
50
|
+
exit: { opacity: 0, height: 0 },
|
|
51
|
+
initial: { opacity: 0, height: 0 },
|
|
52
|
+
transition: {
|
|
53
|
+
type: "tween",
|
|
54
|
+
duration: 0.15,
|
|
55
|
+
opacity: { duration: 0.15, ease: "easeOut" },
|
|
56
|
+
height: { duration: 0.15 }
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
className: x = "",
|
|
60
|
+
style: W = {},
|
|
61
|
+
color: r = "primary",
|
|
62
|
+
size: i = "small",
|
|
63
|
+
contentClassName: D = "",
|
|
64
|
+
popoverProps: X,
|
|
65
|
+
children: R,
|
|
66
|
+
...k
|
|
67
|
+
} = t;
|
|
68
|
+
p();
|
|
69
|
+
const z = p(), { theme: F } = Y(), C = p(), I = p(), [V, c] = K(!1), S = (e, f, m) => {
|
|
70
|
+
O(e, f, m), P == !0 && c(!1);
|
|
71
|
+
}, j = n.Children.map(R, (e, f) => {
|
|
72
|
+
var m, _;
|
|
73
|
+
return n.isValidElement(e) && (e.props.__TYPE__ == "MENU_ITEM" || ((m = e == null ? void 0 : e.type) == null ? void 0 : m.displayName) === "MENU_ITEM" || e.props.__TYPE__ == "NESTED_ITEM" || ((_ = e == null ? void 0 : e.type) == null ? void 0 : _.displayName) === "NESTED_ITEM") ? f == 0 ? (e.props.ref && (I.current = a), n.cloneElement(e, {
|
|
74
|
+
ref: a || I,
|
|
75
|
+
//needed to focus on navigation
|
|
76
|
+
color: e.props.color ? e.props.color : r,
|
|
77
|
+
size: i,
|
|
78
|
+
onItemSelected: S,
|
|
79
|
+
animation: h
|
|
80
|
+
})) : n.cloneElement(e, {
|
|
81
|
+
color: e.props.color ? e.props.color : r,
|
|
82
|
+
size: i,
|
|
83
|
+
onItemSelected: S
|
|
84
|
+
}) : e;
|
|
85
|
+
});
|
|
86
|
+
return /* @__PURE__ */ s(H, { ref: a, className: x, ...k, children: /* @__PURE__ */ B(
|
|
87
|
+
$,
|
|
88
|
+
{
|
|
89
|
+
open: V,
|
|
90
|
+
onOpenChange: c,
|
|
91
|
+
placement: v,
|
|
92
|
+
offsetValue: b,
|
|
93
|
+
children: [
|
|
94
|
+
/* @__PURE__ */ s(q, { onClick: () => c((e) => !e), children: typeof l == "string" || l instanceof String ? /* @__PURE__ */ s(
|
|
95
|
+
L,
|
|
96
|
+
{
|
|
97
|
+
text: l,
|
|
98
|
+
onClick: g,
|
|
99
|
+
onMouseEnter: E,
|
|
100
|
+
onMouseLeave: w,
|
|
101
|
+
onBlur: d,
|
|
102
|
+
onFocus: u,
|
|
103
|
+
ref: C,
|
|
104
|
+
onKeyDown: y,
|
|
105
|
+
trailingIcon: "angle-down",
|
|
106
|
+
color: r,
|
|
107
|
+
size: i
|
|
108
|
+
}
|
|
109
|
+
) : n.cloneElement(l, {
|
|
110
|
+
color: r,
|
|
111
|
+
size: i,
|
|
112
|
+
ref: C,
|
|
113
|
+
onClick: g,
|
|
114
|
+
onMouseEnter: E,
|
|
115
|
+
onMouseLeave: w,
|
|
116
|
+
onBlur: d,
|
|
117
|
+
onFocus: u,
|
|
118
|
+
onKeyDown: y
|
|
119
|
+
}) }),
|
|
120
|
+
/* @__PURE__ */ s(A, { zIndex: N, children: /* @__PURE__ */ s(
|
|
121
|
+
J,
|
|
122
|
+
{
|
|
123
|
+
ref: z,
|
|
124
|
+
widthfitcontent: M,
|
|
125
|
+
color: r,
|
|
126
|
+
theme: F,
|
|
127
|
+
className: D,
|
|
128
|
+
children: j
|
|
129
|
+
}
|
|
130
|
+
) })
|
|
131
|
+
]
|
|
132
|
+
}
|
|
133
|
+
) });
|
|
134
|
+
});
|
|
135
|
+
Q.propTypes = {
|
|
136
|
+
control: o.oneOfType([o.string, o.element]),
|
|
137
|
+
/**
|
|
138
|
+
* Menu offset from the control
|
|
139
|
+
*/
|
|
140
|
+
offsetValue: o.number,
|
|
141
|
+
placement: o.oneOf([
|
|
142
|
+
"center",
|
|
143
|
+
"top",
|
|
144
|
+
"right",
|
|
145
|
+
"bottom",
|
|
146
|
+
"left",
|
|
147
|
+
"top-start",
|
|
148
|
+
"top-end",
|
|
149
|
+
"right-start",
|
|
150
|
+
"right-end",
|
|
151
|
+
"bottom-start",
|
|
152
|
+
"bottom-end",
|
|
153
|
+
"left-start",
|
|
154
|
+
"left-end"
|
|
155
|
+
]),
|
|
156
|
+
/**
|
|
157
|
+
* Adjust width of dropdown according to dropdown items content.
|
|
158
|
+
*/
|
|
159
|
+
widthFitContent: o.bool,
|
|
160
|
+
/**
|
|
161
|
+
* Close menu when item is selected
|
|
162
|
+
*/
|
|
163
|
+
closeOnItemSelect: o.bool,
|
|
164
|
+
/**
|
|
165
|
+
* zIndex of dropdown popup
|
|
166
|
+
*/
|
|
167
|
+
zIndex: o.number,
|
|
168
|
+
//---------------------------------------------------------------
|
|
169
|
+
onBlur: o.func,
|
|
170
|
+
onFocus: o.func,
|
|
171
|
+
onClick: o.func,
|
|
172
|
+
onKeyDown: o.func,
|
|
173
|
+
onMouseEnter: o.func,
|
|
174
|
+
onMouseLeave: o.func,
|
|
175
|
+
onItemSelected: o.func,
|
|
176
|
+
//---------------------------------------------------------------
|
|
177
|
+
animation: o.object,
|
|
178
|
+
className: o.string,
|
|
179
|
+
color: o.oneOf([
|
|
180
|
+
"primary",
|
|
181
|
+
"secondary",
|
|
182
|
+
"success",
|
|
183
|
+
"warning",
|
|
184
|
+
"danger",
|
|
185
|
+
"information",
|
|
186
|
+
"neutral",
|
|
187
|
+
"gray"
|
|
188
|
+
]),
|
|
189
|
+
size: o.oneOf(["small", "medium", "large"]),
|
|
190
|
+
popoverProps: o.any
|
|
191
|
+
};
|
|
10
192
|
export {
|
|
11
|
-
|
|
193
|
+
Q as default
|
|
12
194
|
};
|
package/dist/EditableTable.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const c=require("react/jsx-runtime"),i=require("react"),r=require("./index-
|
|
1
|
+
"use strict";const c=require("react/jsx-runtime"),i=require("react"),r=require("./index-BIlhCoy2.cjs"),w=require("./utils-DTAPpJXU.cjs"),H=require("./Table.cjs"),G=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),B=require("./TextInput.cjs"),W=require("./NumberInput.cjs"),J=require("./DecimalInput.cjs"),Q=require("./CheckBoxInput.cjs"),U=require("./Dropdown.cjs"),X=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),m={BOOLEAN:"BOOLEAN",STRING:"STRING",INTEGER:"INTEGER",DECIMAL:"DECIMAL",DATE:"DATE",SELECT:"SELECT"},Z=G.newStyled.td`
|
|
2
2
|
white-space: nowrap;
|
|
3
3
|
overflow: hidden;
|
|
4
4
|
text-overflow: ellipsis;
|
package/dist/EditableTable.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as i, Fragment as G, jsxs as U } from "react/jsx-runtime";
|
|
2
2
|
import { useState as X, useRef as w, useEffect as F, createElement as Z, forwardRef as ee, useImperativeHandle as re } from "react";
|
|
3
|
-
import { P as r } from "./index-
|
|
4
|
-
import {
|
|
3
|
+
import { P as r } from "./index-BYnWp42a.js";
|
|
4
|
+
import { g as V, r as M, i as z } from "./utils-C52T57HO.js";
|
|
5
5
|
import te from "./Table.js";
|
|
6
|
-
import { n as Y } from "./emotion-styled.browser.esm-
|
|
6
|
+
import { n as Y } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
7
7
|
import N from "./TextInput.js";
|
|
8
8
|
import oe from "./NumberInput.js";
|
|
9
9
|
import ne from "./DecimalInput.js";
|
|
10
10
|
import ae from "./CheckBoxInput.js";
|
|
11
11
|
import se from "./Dropdown.js";
|
|
12
|
-
import { u as ce } from "./emotion-element-5486c51c.browser.esm-
|
|
12
|
+
import { u as ce } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
13
13
|
const h = {
|
|
14
14
|
BOOLEAN: "BOOLEAN",
|
|
15
15
|
STRING: "STRING",
|
package/dist/FileInput.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const c=require("react/jsx-runtime"),g=require("react"),b=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),t=require("./index-
|
|
1
|
+
"use strict";const c=require("react/jsx-runtime"),g=require("react"),b=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),t=require("./index-BIlhCoy2.cjs"),r=require("./utils-DTAPpJXU.cjs"),j=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),k=b.newStyled.label`
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
width: 100%;
|
package/dist/FileInput.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as R, jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import S, { useState as g } from "react";
|
|
3
|
-
import { n as c } from "./emotion-styled.browser.esm-
|
|
4
|
-
import { P as t } from "./index-
|
|
5
|
-
import {
|
|
6
|
-
import { u as _ } from "./emotion-element-5486c51c.browser.esm-
|
|
3
|
+
import { n as c } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
4
|
+
import { P as t } from "./index-BYnWp42a.js";
|
|
5
|
+
import { d as y, a as r, e as V, g as x, h as p } from "./utils-C52T57HO.js";
|
|
6
|
+
import { u as _ } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
7
7
|
const B = c.label`
|
|
8
8
|
display: inline-flex;
|
|
9
9
|
box-sizing: border-box;
|
package/dist/FlexBox.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const w=require("react/jsx-runtime"),d=require("react"),y=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),r=require("./index-
|
|
1
|
+
"use strict";const w=require("react/jsx-runtime"),d=require("react"),y=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),r=require("./index-BIlhCoy2.cjs"),f={Row:"row",RowReverse:"row-reverse",Column:"column",ColumnReverse:"column-reverse"},m={NoWrap:"nowrap",Wrap:"wrap",WrapReverse:"wrap-reverse"},x={Start:"flex-start",Center:"center",End:"flex-end",SpaceAround:"space-around",SpaceBetween:"space-between",SpaceEvenly:"space-evenly"},S={Start:"flex-start",Center:"center",Stretch:"stretch",End:"flex-end",Baseline:"baseline"},g=y.newStyled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: ${e=>f[e.direction]};
|
|
4
4
|
flex-wrap: ${e=>m[e.wrap]};
|
package/dist/FlexBox.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
-
import m from "react";
|
|
3
|
-
import { n as w } from "./emotion-styled.browser.esm-
|
|
4
|
-
import { P as
|
|
2
|
+
import { forwardRef as m } from "react";
|
|
3
|
+
import { n as w } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
4
|
+
import { P as r } from "./index-BYnWp42a.js";
|
|
5
5
|
const d = {
|
|
6
6
|
Row: "row",
|
|
7
7
|
RowReverse: "row-reverse",
|
|
@@ -32,9 +32,9 @@ const d = {
|
|
|
32
32
|
align-items: ${(e) => x[e.alignItems]};
|
|
33
33
|
column-gap: ${(e) => e.columnGap ? e.columnGap : e.gap};
|
|
34
34
|
row-gap: ${(e) => e.rowGap ? e.rowGap : e.gap};
|
|
35
|
-
`, v = m
|
|
35
|
+
`, v = m((e, t) => {
|
|
36
36
|
const {
|
|
37
|
-
className:
|
|
37
|
+
className: n = "",
|
|
38
38
|
children: a,
|
|
39
39
|
direction: o = "Row",
|
|
40
40
|
wrap: s = "NoWrap",
|
|
@@ -46,8 +46,8 @@ const d = {
|
|
|
46
46
|
return /* @__PURE__ */ f(
|
|
47
47
|
g,
|
|
48
48
|
{
|
|
49
|
-
className: "lnc-flexbox-container " + (
|
|
50
|
-
ref:
|
|
49
|
+
className: "lnc-flexbox-container " + (n || ""),
|
|
50
|
+
ref: t,
|
|
51
51
|
wrap: s,
|
|
52
52
|
gap: p,
|
|
53
53
|
alignItems: l,
|
|
@@ -59,21 +59,21 @@ const d = {
|
|
|
59
59
|
);
|
|
60
60
|
});
|
|
61
61
|
v.propTypes = {
|
|
62
|
-
rowGap:
|
|
63
|
-
columnGap:
|
|
64
|
-
gap:
|
|
62
|
+
rowGap: r.string,
|
|
63
|
+
columnGap: r.string,
|
|
64
|
+
gap: r.string,
|
|
65
65
|
/**
|
|
66
66
|
* Controls the direction of items in FlexBox.
|
|
67
67
|
*/
|
|
68
|
-
direction:
|
|
68
|
+
direction: r.oneOf(["Row", "RowReverse", "Column", "ColumnReverse"]),
|
|
69
69
|
/**
|
|
70
70
|
* Determines whether the FlexBox should wrap, when there is not enough space to display all items in one line.
|
|
71
71
|
*/
|
|
72
|
-
wrap:
|
|
72
|
+
wrap: r.oneOf(["NoWrap", "Wrap", "WrapReverse"]),
|
|
73
73
|
/**
|
|
74
74
|
* Controls how the space is distributed between items along the main-axis.
|
|
75
75
|
*/
|
|
76
|
-
justifyContent:
|
|
76
|
+
justifyContent: r.oneOf([
|
|
77
77
|
"Start",
|
|
78
78
|
"Center",
|
|
79
79
|
"End",
|
|
@@ -84,7 +84,7 @@ v.propTypes = {
|
|
|
84
84
|
/**
|
|
85
85
|
* Controls how the space is distributed between items along the cross-axis.
|
|
86
86
|
*/
|
|
87
|
-
alignItems:
|
|
87
|
+
alignItems: r.oneOf([
|
|
88
88
|
"Start",
|
|
89
89
|
"Center",
|
|
90
90
|
"Stretch",
|
package/dist/FlexGrid.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
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"),S=require("./FlexBox.cjs"),d=require("./FlexGridItem.cjs"),t=r.forwardRef((p,o)=>{const{columns:s=12,spacing:c,rowSpacing:i,columnSpacing:a,justifyContent:u="Start",alignItems:y="Stretch",children:l,rest:T}=p,m=r.Children.map(l,n=>{if(!(!r.isValidElement(n)||n.type!=d))return r.cloneElement(n,{columns:s,spacing:c,rowSpacing:i,columnSpacing:a})});return P.jsx(S,{ref:o,wrap:"Wrap",justifyContent:u,alignItems:y,...T,children:m})});t.propTypes={columns:e.PropTypes.number,spacing:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.object]),rowSpacing:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.object]),columnSpacing:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.object]),justifyContent:e.PropTypes.oneOf(["Start","Center","End","SpaceAround","SpaceBetween","SpaceEvenly"]),alignItems:e.PropTypes.oneOf(["Start","Center","Stretch","End","Baseline"])};module.exports=t;
|
package/dist/FlexGrid.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { P as e } from "./index-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
const
|
|
1
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as S, Children as d, isValidElement as y, cloneElement as g } from "react";
|
|
3
|
+
import { P as e } from "./index-BYnWp42a.js";
|
|
4
|
+
import b from "./FlexBox.js";
|
|
5
|
+
import j from "./FlexGridItem.js";
|
|
6
|
+
const x = S((r, t) => {
|
|
7
7
|
const {
|
|
8
|
-
columns:
|
|
9
|
-
spacing:
|
|
10
|
-
rowSpacing:
|
|
11
|
-
columnSpacing:
|
|
12
|
-
justifyContent:
|
|
13
|
-
alignItems:
|
|
14
|
-
children:
|
|
15
|
-
rest:
|
|
16
|
-
} =
|
|
17
|
-
if (!(!n
|
|
18
|
-
return n
|
|
19
|
-
columns:
|
|
20
|
-
spacing:
|
|
21
|
-
rowSpacing:
|
|
22
|
-
columnSpacing:
|
|
8
|
+
columns: o = 12,
|
|
9
|
+
spacing: p,
|
|
10
|
+
rowSpacing: m,
|
|
11
|
+
columnSpacing: a,
|
|
12
|
+
justifyContent: c = "Start",
|
|
13
|
+
alignItems: i = "Stretch",
|
|
14
|
+
children: l,
|
|
15
|
+
rest: s
|
|
16
|
+
} = r, f = d.map(l, (n) => {
|
|
17
|
+
if (!(!y(n) || n.type != j))
|
|
18
|
+
return g(n, {
|
|
19
|
+
columns: o,
|
|
20
|
+
spacing: p,
|
|
21
|
+
rowSpacing: m,
|
|
22
|
+
columnSpacing: a
|
|
23
23
|
});
|
|
24
24
|
});
|
|
25
|
-
return /* @__PURE__ */
|
|
26
|
-
|
|
25
|
+
return /* @__PURE__ */ u(
|
|
26
|
+
b,
|
|
27
27
|
{
|
|
28
|
-
ref:
|
|
28
|
+
ref: t,
|
|
29
29
|
wrap: "Wrap",
|
|
30
|
-
justifyContent:
|
|
31
|
-
alignItems:
|
|
32
|
-
...
|
|
33
|
-
children:
|
|
30
|
+
justifyContent: c,
|
|
31
|
+
alignItems: i,
|
|
32
|
+
...s,
|
|
33
|
+
children: f
|
|
34
34
|
}
|
|
35
35
|
);
|
|
36
36
|
});
|
|
37
|
-
|
|
37
|
+
x.propTypes = {
|
|
38
38
|
/**
|
|
39
39
|
* Number of available grid columns.
|
|
40
40
|
*/
|
|
@@ -74,5 +74,5 @@ g.propTypes = {
|
|
|
74
74
|
])
|
|
75
75
|
};
|
|
76
76
|
export {
|
|
77
|
-
|
|
77
|
+
x as default
|
|
78
78
|
};
|
package/dist/FlexGridItem.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const X=require("react/jsx-runtime"),i=require("react"),n=require("./index-
|
|
1
|
+
"use strict";const X=require("react/jsx-runtime"),i=require("react"),n=require("./index-BIlhCoy2.cjs"),g=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),q=require("./utils-DTAPpJXU.cjs"),$=g.newStyled.div`
|
|
2
2
|
${s=>s.width>0?"":"flex: 1;"}
|
|
3
3
|
min-width: ${s=>100/s.columns}%;
|
|
4
4
|
width: ${s=>s.width}%;
|
package/dist/FlexGridItem.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as y } from "react/jsx-runtime";
|
|
2
2
|
import N, { useState as S, useEffect as b } from "react";
|
|
3
|
-
import { P as i } from "./index-
|
|
4
|
-
import { n as I } from "./emotion-styled.browser.esm-
|
|
5
|
-
import { u as M } from "./utils-
|
|
3
|
+
import { P as i } from "./index-BYnWp42a.js";
|
|
4
|
+
import { n as I } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
+
import { u as M } from "./utils-C52T57HO.js";
|
|
6
6
|
const R = I.div`
|
|
7
7
|
${(t) => t.width > 0 ? "" : "flex: 1;"}
|
|
8
8
|
min-width: ${(t) => 100 / t.columns}%;
|
package/dist/Footer.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),i=require("react"),c=require("./index-
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),i=require("react"),c=require("./index-BIlhCoy2.cjs"),e=i.forwardRef((r,o)=>{const{children:t,__TYPE__:_="Footer",...s}=r;return n.jsx("footer",{ref:o,...s,children:t})});e.propTypes={__TYPE__:c.PropTypes.string};e.displayName="Footer";module.exports=e;
|
package/dist/Footer.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import _ from "react";
|
|
3
|
-
import { P as
|
|
4
|
-
const o = _
|
|
5
|
-
const { children: e, __TYPE__:
|
|
2
|
+
import { forwardRef as _ } from "react";
|
|
3
|
+
import { P as f } from "./index-BYnWp42a.js";
|
|
4
|
+
const o = _((r, t) => {
|
|
5
|
+
const { children: e, __TYPE__: m = "Footer", ...p } = r;
|
|
6
6
|
return /* @__PURE__ */ s("footer", { ref: t, ...p, children: e });
|
|
7
7
|
});
|
|
8
8
|
o.propTypes = {
|
|
@@ -10,7 +10,7 @@ o.propTypes = {
|
|
|
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__: f.string
|
|
14
14
|
};
|
|
15
15
|
o.displayName = "Footer";
|
|
16
16
|
export {
|
package/dist/FormField.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime")
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),r=require("./index-BIlhCoy2.cjs"),a=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),o=require("./utils-DTAPpJXU.cjs"),b=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),g=a.newStyled.label`
|
|
2
2
|
display: block;
|
|
3
3
|
margin-bottom: 4px;
|
|
4
4
|
${e=>o.getComponentTypographyCss(e.theme,"FormField",e.size,"enabled")}
|
package/dist/FormField.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsxs as b, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { u as g } from "./emotion-element-5486c51c.browser.esm-CSejtOeT.js";
|
|
2
|
+
import { P as l } from "./index-BYnWp42a.js";
|
|
3
|
+
import { n as m } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
4
|
+
import { g as i, a as n } from "./utils-C52T57HO.js";
|
|
5
|
+
import { u as g } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
7
6
|
const f = m.label`
|
|
8
7
|
display: block;
|
|
9
8
|
margin-bottom: 4px;
|
|
@@ -27,14 +26,14 @@ const f = m.label`
|
|
|
27
26
|
className: d = "",
|
|
28
27
|
style: p = {},
|
|
29
28
|
text: o = "",
|
|
30
|
-
label:
|
|
29
|
+
label: a = "",
|
|
31
30
|
children: y,
|
|
32
31
|
...u
|
|
33
|
-
} = e,
|
|
32
|
+
} = e, t = g();
|
|
34
33
|
return /* @__PURE__ */ b("div", { style: p, className: "lnc-ui-form-field " + d, children: [
|
|
35
|
-
|
|
34
|
+
a && /* @__PURE__ */ s(f, { theme: t, size: r, children: a }),
|
|
36
35
|
y,
|
|
37
|
-
o && /* @__PURE__ */ s(h, { size: r, theme:
|
|
36
|
+
o && /* @__PURE__ */ s(h, { size: r, theme: t, color: c, children: o })
|
|
38
37
|
] });
|
|
39
38
|
};
|
|
40
39
|
F.propTypes = {
|
package/dist/FormView.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),W=require("react"),r=require("./index-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),W=require("react"),r=require("./index-BIlhCoy2.cjs"),g=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),$=require("./FlexGrid.cjs"),M=require("./FlexGridItem.cjs"),b=require("./Button.cjs"),m=require("./IconButton.cjs"),Y=require("./TextInput.cjs"),U=require("./CheckBoxInput.cjs"),H=require("./RadioGroup.cjs"),J=require("./NumberInput.cjs"),K=require("./DecimalInput.cjs"),L=require("./PasswordInput.cjs"),Q=require("./TextAreaInput.cjs"),X=require("./TimeInput.cjs"),Z=require("./ColorInput.cjs"),z=require("./FileInput.cjs"),ee=require("./RangeSlider.cjs"),x=require("./utils-DTAPpJXU.cjs"),re=require("./FormField.cjs"),te=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),oe=g.newStyled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
`,se=g.newStyled.form`
|