@lanaco/lnc-react-ui 3.11.35 → 4.0.2
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/README.md +0 -3
- package/dist/Accordion.cjs +6 -0
- package/dist/Accordion.js +65 -0
- package/dist/AccordionDetails.cjs +7 -0
- package/dist/AccordionDetails.js +32 -0
- package/dist/AccordionSummary.cjs +12 -0
- package/dist/AccordionSummary.js +78 -0
- package/dist/ActionsToolbar.cjs +19 -0
- package/dist/ActionsToolbar.js +225 -0
- package/dist/Alert.cjs +40 -0
- package/dist/Alert.js +138 -0
- package/dist/Avatar.cjs +16 -0
- package/dist/Avatar.js +114 -0
- package/dist/Badge.cjs +17 -0
- package/dist/Badge.js +70 -0
- package/dist/Breadcrumbs.cjs +8 -0
- package/dist/Breadcrumbs.js +131 -0
- package/dist/Button.cjs +127 -0
- package/dist/Button.js +542 -0
- package/dist/ButtonGroup.cjs +44 -0
- package/dist/ButtonGroup.js +112 -0
- package/dist/CheckBoxInput.cjs +118 -0
- package/dist/CheckBoxInput.js +348 -0
- package/dist/Chip.cjs +27 -0
- package/dist/Chip.js +189 -0
- package/dist/ColorInput.cjs +60 -0
- package/dist/ColorInput.js +256 -0
- package/dist/ConfirmationForm.cjs +22 -0
- package/dist/ConfirmationForm.js +169 -0
- package/dist/Content.cjs +1 -0
- package/dist/Content.js +18 -0
- package/dist/CustomStyles-CqlCjTgU.cjs +8 -0
- package/dist/CustomStyles-nfD3J1mi.js +2881 -0
- package/dist/DataView.cjs +1 -0
- package/dist/DataView.js +62 -0
- package/dist/DateInput.cjs +296 -0
- package/dist/DateInput.js +7042 -0
- package/dist/DecimalInput.cjs +54 -0
- package/dist/DecimalInput.js +697 -0
- package/dist/DetailsView.cjs +18 -0
- package/dist/DetailsView.js +243 -0
- package/dist/DoubleRangeSlider.cjs +114 -0
- package/dist/DoubleRangeSlider.js +289 -0
- package/dist/DragAndDropFile.cjs +31 -0
- package/dist/DragAndDropFile.js +2331 -0
- package/dist/DragDropFiles.cjs +14 -0
- package/dist/DragDropFiles.js +175 -0
- package/dist/Drawer.cjs +6 -0
- package/dist/Drawer.js +206 -0
- package/dist/Dropdown.cjs +1 -0
- package/dist/Dropdown.js +266 -0
- package/dist/DropdownItem.cjs +36 -0
- package/dist/DropdownItem.js +241 -0
- package/dist/DropdownLookup.cjs +1 -0
- package/dist/DropdownLookup.js +325 -0
- package/dist/DropdownMenu-B6qr13ik.cjs +19 -0
- package/dist/DropdownMenu-DZi3TJ8Q.js +1547 -0
- package/dist/DropdownMenu.cjs +1 -0
- package/dist/DropdownMenu.js +12 -0
- package/dist/EditableTable.cjs +21 -0
- package/dist/EditableTable.js +462 -0
- package/dist/FileInput.cjs +47 -0
- package/dist/FileInput.js +206 -0
- package/dist/FlexBox.cjs +9 -0
- package/dist/FlexBox.js +97 -0
- package/dist/FlexGrid.cjs +1 -0
- package/dist/FlexGrid.js +78 -0
- package/dist/FlexGridItem.cjs +7 -0
- package/dist/FlexGridItem.js +97 -0
- package/dist/Footer.cjs +1 -0
- package/dist/Footer.js +18 -0
- package/dist/FormField.cjs +11 -0
- package/dist/FormField.js +65 -0
- package/dist/FormView.cjs +13 -0
- package/dist/FormView.js +354 -0
- package/dist/Grid.cjs +13 -0
- package/dist/Grid.js +62 -0
- package/dist/GridItem.cjs +15 -0
- package/dist/GridItem.js +72 -0
- package/dist/Header.cjs +1 -0
- package/dist/Header.js +18 -0
- package/dist/Icon.cjs +8 -0
- package/dist/Icon.js +59 -0
- package/dist/IconButton.cjs +122 -0
- package/dist/IconButton.js +481 -0
- package/dist/Kanban.cjs +85 -0
- package/dist/Kanban.js +4793 -0
- package/dist/KanbanActionsToolbar.cjs +19 -0
- package/dist/KanbanActionsToolbar.js +152 -0
- package/dist/KanbanCard-ConTmu3w.cjs +30 -0
- package/dist/KanbanCard-D9OhU8C6.js +175 -0
- package/dist/KanbanCard.cjs +1 -0
- package/dist/KanbanCard.js +12 -0
- package/dist/KanbanFooter.cjs +5 -0
- package/dist/KanbanFooter.js +84 -0
- package/dist/KanbanHeader.cjs +15 -0
- package/dist/KanbanHeader.js +127 -0
- package/dist/KanbanView.cjs +8 -0
- package/dist/KanbanView.js +255 -0
- package/dist/Link.cjs +15 -0
- package/dist/Link.js +62 -0
- package/dist/MenuItem.cjs +36 -0
- package/dist/MenuItem.js +230 -0
- package/dist/Modal.cjs +84 -0
- package/dist/Modal.js +372 -0
- package/dist/MultiSelectDropdown.cjs +1 -0
- package/dist/MultiSelectDropdown.js +261 -0
- package/dist/MultiSelectDropdownLookup.cjs +1 -0
- package/dist/MultiSelectDropdownLookup.js +274 -0
- package/dist/NestedDropdownItem.cjs +6 -0
- package/dist/NestedDropdownItem.js +102 -0
- package/dist/NestedMenuItem.cjs +6 -0
- package/dist/NestedMenuItem.js +115 -0
- package/dist/Notification.cjs +83 -0
- package/dist/Notification.js +1079 -0
- package/dist/NumberInput.cjs +45 -0
- package/dist/NumberInput.js +241 -0
- package/dist/PageLayout.cjs +26 -0
- package/dist/PageLayout.js +92 -0
- package/dist/PasswordInput.cjs +47 -0
- package/dist/PasswordInput.js +230 -0
- package/dist/ProgressBar.cjs +22 -0
- package/dist/ProgressBar.js +92 -0
- package/dist/RadioGroup.cjs +7 -0
- package/dist/RadioGroup.js +104 -0
- package/dist/RadioInput.cjs +117 -0
- package/dist/RadioInput.js +362 -0
- package/dist/RangeSlider.cjs +72 -0
- package/dist/RangeSlider.js +253 -0
- package/dist/SearchBar.cjs +100 -0
- package/dist/SearchBar.js +994 -0
- package/dist/Separator.cjs +6 -0
- package/dist/Separator.js +37 -0
- package/dist/Sidebar.cjs +39 -0
- package/dist/Sidebar.js +123 -0
- package/dist/Spinner.cjs +38 -0
- package/dist/Spinner.js +114 -0
- package/dist/Surface.cjs +7 -0
- package/dist/Surface.js +60 -0
- package/dist/SwipeableDrawer.cjs +33 -0
- package/dist/SwipeableDrawer.js +213 -0
- package/dist/Table.cjs +170 -0
- package/dist/Table.js +1408 -0
- package/dist/TableView-Cj5_fbSR.js +481 -0
- package/dist/TableView-D8ex512p.cjs +19 -0
- package/dist/TableView.cjs +1 -0
- package/dist/TableView.js +11 -0
- package/dist/Tabs.cjs +7 -0
- package/dist/Tabs.js +72 -0
- package/dist/TextAreaInput.cjs +33 -0
- package/dist/TextAreaInput.js +320 -0
- package/dist/TextInput.cjs +45 -0
- package/dist/TextInput.js +227 -0
- package/dist/ThemeProvider.cjs +113 -0
- package/dist/ThemeProvider.js +1340 -0
- package/dist/TimeInput.cjs +31 -0
- package/dist/TimeInput.js +133 -0
- package/dist/Toggle.cjs +151 -0
- package/dist/Toggle.js +421 -0
- package/dist/TreeMenu.cjs +15 -0
- package/dist/TreeMenu.js +108 -0
- package/dist/TreeMenuSeparator.cjs +6 -0
- package/dist/TreeMenuSeparator.js +40 -0
- package/dist/UploadedFile.cjs +39 -0
- package/dist/UploadedFile.js +192 -0
- package/dist/defineProperty-BHpTtkhC.js +110 -0
- package/dist/defineProperty-DHvxLH8G.cjs +1 -0
- package/dist/emotion-element-5486c51c.browser.esm-CSejtOeT.js +886 -0
- package/dist/emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs +1 -0
- package/dist/emotion-is-prop-valid.esm-BzFBwmJz.js +10 -0
- package/dist/emotion-is-prop-valid.esm-CMrshNb7.cjs +1 -0
- package/dist/emotion-react.browser.esm-DQBL7Wls.cjs +1 -0
- package/dist/emotion-react.browser.esm-OWM-uG8Q.js +94 -0
- package/dist/emotion-styled.browser.esm-BZSYYThs.js +210 -0
- package/dist/emotion-styled.browser.esm-Cbp_XsK4.cjs +1 -0
- package/dist/floating-ui.dom-1F2mTXOe.cjs +1 -0
- package/dist/floating-ui.dom-BdUovkEr.js +938 -0
- package/dist/hoist-non-react-statics.cjs-B8r9S_ak.cjs +15 -0
- package/dist/hoist-non-react-statics.cjs-Drf1aBlk.js +235 -0
- package/dist/index-BLQWNy78.js +109 -0
- package/dist/index-BP5r5zGN.cjs +1 -0
- package/dist/index-B_da1uvD.js +451 -0
- package/dist/index-BjdOz5Ok.cjs +1 -0
- package/dist/index-BklgDeu4.js +42 -0
- package/dist/index-C29T0m2a.cjs +174 -0
- package/dist/index-CZJEA84h.js +19069 -0
- package/dist/index-Cdkz-XH-.js +127 -0
- package/dist/index-D5vEbKUT.js +81 -0
- package/dist/index-DXnSjbfJ.cjs +20 -0
- package/dist/index-Ds9PUTwb.js +667 -0
- package/dist/index-Dzkd2i4n.cjs +1 -0
- package/dist/index-IO9v6o0I.cjs +5 -0
- package/dist/index-P-naJISQ.cjs +1 -0
- package/dist/index.cjs +26 -0
- package/dist/index.js +378 -0
- package/dist/motion-CtkUpWEn.js +3785 -0
- package/dist/motion-Oud-wpUz.cjs +1 -0
- package/dist/objectWithoutPropertiesLoose-Bz3hwpmU.cjs +1 -0
- package/dist/objectWithoutPropertiesLoose-DwEN6RBQ.js +12 -0
- package/dist/setPrototypeOf-4aSEnBDm.cjs +1 -0
- package/dist/setPrototypeOf-a891FLQJ.js +13 -0
- package/dist/style.css +5 -0
- package/dist/tslib.es6-ZNVz5r_T.js +90 -0
- package/dist/tslib.es6-fPwcSa2V.cjs +1 -0
- package/dist/use-isomorphic-layout-effect.browser.esm-CkGv31zs.cjs +1 -0
- package/dist/use-isomorphic-layout-effect.browser.esm-DERp5kr6.js +5 -0
- package/dist/useUpdateEffect-BtMgpgIV.cjs +1 -0
- package/dist/useUpdateEffect-CuYWz7EA.js +15 -0
- package/dist/utils-DEke8iwo.js +10196 -0
- package/dist/utils-hdRGTsQ7.cjs +13 -0
- package/eslint.config.js +38 -0
- package/package.json +137 -58
- package/vite.config.js +135 -0
- package/jest.config.js +0 -7
- package/lib/index.esm.js +0 -84028
- package/lib/index.js +0 -84165
- package/rc1 +0 -0
- package/test/jest/__mocks__/styleMock.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("./index-DXnSjbfJ.cjs");var p={exports:{}};p.exports;(function(s,b){var I=9007199254740991,B="[object Arguments]",V="[object Function]",$="[object GeneratorFunction]",g="[object Map]",D="[object Object]",w="[object Promise]",y="[object Set]",T="[object WeakMap]",E="[object DataView]",L=/[\\^$.*+?()[\]{}|]/g,N=/^\[object .+?Constructor\]$/,R=typeof i.commonjsGlobal=="object"&&i.commonjsGlobal&&i.commonjsGlobal.Object===Object&&i.commonjsGlobal,W=typeof self=="object"&&self&&self.Object===Object&&self,n=R||W||Function("return this")(),v=b&&!b.nodeType&&b,k=v&&!0&&s&&!s.nodeType&&s,H=k&&k.exports===v;function K(r,t){return r==null?void 0:r[t]}function q(r){var t=!1;if(r!=null&&typeof r.toString!="function")try{t=!!(r+"")}catch{}return t}function z(r,t){return function(e){return r(t(e))}}var J=Function.prototype,f=Object.prototype,l=n["__core-js_shared__"],x=function(){var r=/[^.]+$/.exec(l&&l.keys&&l.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),A=J.toString,j=f.hasOwnProperty,u=f.toString,X=RegExp("^"+A.call(j).replace(L,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=H?n.Buffer:void 0,M=f.propertyIsEnumerable,Q=C?C.isBuffer:void 0,U=z(Object.keys,Object),m=c(n,"DataView"),d=c(n,"Map"),S=c(n,"Promise"),O=c(n,"Set"),h=c(n,"WeakMap"),Y=!M.call({valueOf:1},"valueOf"),Z=a(m),rr=a(d),tr=a(S),er=a(O),nr=a(h);function or(r){return u.call(r)}function ar(r){if(!F(r)||cr(r))return!1;var t=P(r)||q(r)?X:N;return t.test(a(r))}function c(r,t){var e=K(r,t);return ar(e)?e:void 0}var o=or;(m&&o(new m(new ArrayBuffer(1)))!=E||d&&o(new d)!=g||S&&o(S.resolve())!=w||O&&o(new O)!=y||h&&o(new h)!=T)&&(o=function(r){var t=u.call(r),e=t==D?r.constructor:void 0,G=e?a(e):void 0;if(G)switch(G){case Z:return E;case rr:return g;case tr:return w;case er:return y;case nr:return T}return t});function cr(r){return!!x&&x in r}function ir(r){var t=r&&r.constructor,e=typeof t=="function"&&t.prototype||f;return r===e}function a(r){if(r!=null){try{return A.call(r)}catch{}try{return r+""}catch{}}return""}function sr(r){return ur(r)&&j.call(r,"callee")&&(!M.call(r,"callee")||u.call(r)==B)}var fr=Array.isArray;function _(r){return r!=null&&gr(r.length)&&!P(r)}function ur(r){return yr(r)&&_(r)}var pr=Q||lr;function br(r){if(_(r)&&(fr(r)||typeof r=="string"||typeof r.splice=="function"||pr(r)||sr(r)))return!r.length;var t=o(r);if(t==g||t==y)return!r.size;if(Y||ir(r))return!U(r).length;for(var e in r)if(j.call(r,e))return!1;return!0}function P(r){var t=F(r)?u.call(r):"";return t==V||t==$}function gr(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=I}function F(r){var t=typeof r;return!!r&&(t=="object"||t=="function")}function yr(r){return!!r&&typeof r=="object"}function lr(){return!1}s.exports=br})(p,p.exports);var jr=p.exports;const mr=i.getDefaultExportFromCjs(jr);exports.isEmpty=mr;
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const U=require("./CheckBoxInput.cjs"),G=require("./ColorInput.cjs"),h=require("./DateInput.cjs"),L=require("./DecimalInput.cjs"),H=require("./FileInput.cjs"),W=require("./NumberInput.cjs"),O=require("./PasswordInput.cjs"),E=require("./RadioInput.cjs"),j=require("./RangeSlider.cjs"),z=require("./TextAreaInput.cjs"),_=require("./TextInput.cjs"),J=require("./TimeInput.cjs"),Q=require("./Badge.cjs"),X=require("./Chip.cjs"),Y=require("./DataView.cjs"),Z=require("./DetailsView.cjs"),ee=require("./EditableTable.cjs"),re=require("./FormView.cjs"),te=require("./Kanban.cjs"),oe=require("./KanbanCard-ConTmu3w.cjs"),ne=require("./KanbanHeader.cjs"),ie=require("./KanbanFooter.cjs"),ae=require("./KanbanView.cjs"),ue=require("./KanbanActionsToolbar.cjs"),le=require("./Table.cjs"),w=require("./TableView-D8ex512p.cjs"),ce=require("./ActionsToolbar.cjs"),se=require("./Alert.cjs"),d=require("./Notification.cjs"),de=require("./ProgressBar.cjs"),be=require("./Spinner.cjs"),ge=require("./Avatar.cjs"),qe=require("./Button.cjs"),me=require("./Icon.cjs"),pe=require("./IconButton.cjs"),fe=require("./Link.cjs"),Te=require("./Surface.cjs"),ye=require("./UploadedFile.cjs"),he=require("./DoubleRangeSlider.cjs"),we=require("./DragAndDropFile.cjs"),De=require("./DragDropFiles.cjs"),Ie=require("./Dropdown.cjs"),ve=require("./DropdownLookup.cjs"),Pe=require("./MultiSelectDropdown.cjs"),Ce=require("./MultiSelectDropdownLookup.cjs"),Se=require("./RadioGroup.cjs"),Fe=require("./SearchBar.cjs"),Be=require("./Toggle.cjs"),Re=require("./ButtonGroup.cjs"),xe=require("./Content.cjs"),Ve=require("./FlexBox.cjs"),ke=require("./FlexGrid.cjs"),$e=require("./FlexGridItem.cjs"),Ae=require("./Footer.cjs"),Me=require("./FormField.cjs"),Ke=require("./Grid.cjs"),Ne=require("./GridItem.cjs"),Ue=require("./Header.cjs"),Ge=require("./PageLayout.cjs"),Le=require("./Sidebar.cjs"),He=require("./Tabs.cjs"),We=require("react/jsx-runtime"),f=require("react"),t=require("./index-DXnSjbfJ.cjs"),Oe=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),r=require("./utils-hdRGTsQ7.cjs"),Ee=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),T=require("./useUpdateEffect-BtMgpgIV.cjs"),je=require("./Accordion.cjs"),ze=require("./AccordionSummary.cjs"),_e=require("./AccordionDetails.cjs"),Je=require("./Breadcrumbs.cjs"),Qe=require("./ConfirmationForm.cjs"),Xe=require("./Drawer.cjs"),u=require("./DropdownMenu-B6qr13ik.cjs"),Ye=require("./DropdownItem.cjs"),Ze=require("./NestedDropdownItem.cjs"),er=require("./Separator.cjs"),rr=require("./Modal.cjs"),tr=require("./SwipeableDrawer.cjs"),or=require("./TreeMenu.cjs"),nr=require("./MenuItem.cjs"),ir=require("./NestedMenuItem.cjs"),ar=require("./TreeMenuSeparator.cjs"),D=require("./ThemeProvider.cjs"),ur=require("./CustomStyles-CqlCjTgU.cjs"),lr=e=>e=="small"?"3.125rem":e=="medium"?"3.375rem":"3.625rem",cr=Oe.newStyled.div`
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
${e=>e.disabled===!0&&r.getDisabledStateCss(e.theme)};
|
|
4
|
+
min-width: 5.25rem;
|
|
5
|
+
${e=>e.fullWidth&&"width: 100%"};
|
|
6
|
+
display: flex;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
align-items: center;
|
|
9
|
+
|
|
10
|
+
height: ${e=>lr(e.size)};
|
|
11
|
+
${e=>r.getComponentTypographyCss(e.theme,i(e.type),e.size,"enabled")};
|
|
12
|
+
${e=>!e.disabled&&"cursor: pointer"};
|
|
13
|
+
color: ${e=>!e.disabled&&r.getColorRgbaValue(e.theme,i(e.type),e.color,e.active?"active":"enabled","text")};
|
|
14
|
+
background-color: ${e=>e.type=="regular"||e.type=="pill"&&(e.disabled==!0||e.active==!1)?"transparent":!e.disabled&&r.getColorRgbaValue(e.theme,i(e.type),e.color,e.active?"active":"enabled","background","backgroundOpacity")};
|
|
15
|
+
${e=>e.type=="underline"&&e.last==!1&&"border-right: 1px solid "+r.getColorRgbaValue(e.theme,i(e.type),e.color,"enabled","line")};
|
|
16
|
+
${e=>y(e.theme,e.type,e.active,e.disabled,e.color,"enabled")};
|
|
17
|
+
${e=>sr(e.theme,e.type,e.first,e.last)};
|
|
18
|
+
&:hover {
|
|
19
|
+
color: ${e=>!e.disabled&&r.getColorRgbaValue(e.theme,i(e.type),e.color,"hover","text")};
|
|
20
|
+
background-color: ${e=>e.type=="regular"?"transparent":!e.disabled&&r.getColorRgbaValue(e.theme,i(e.type),e.color,"hover","background","backgroundOpacity")};
|
|
21
|
+
${e=>y(e.theme,e.type,e.active,e.disabled,e.color,"hover")};
|
|
22
|
+
}
|
|
23
|
+
&:active {
|
|
24
|
+
background: ${e=>r.getColorRgbaValue(e.theme,i(e.type),e.color,"active","background","backgroundOpacity")};
|
|
25
|
+
}
|
|
26
|
+
`,i=e=>e=="underline"?"TabUnderline":e=="pill"?"TabPill":"TabRegular",sr=(e,o,a,n)=>{if(o=="pill")return`border-radius: ${r.getBorderRadiusValueWithUnits(e,"regular")}`;if(o=="underline"&&a)return`border-radius: ${r.getBorderRadiusValueWithUnits(e,"regular")} 0 0 ${r.getBorderRadiusValueWithUnits(e,"regular")}`;if(o=="underline"&&n)return`border-radius: 0 ${r.getBorderRadiusValueWithUnits(e,"regular")} ${r.getBorderRadiusValueWithUnits(e,"regular")} 0`},y=(e,o,a,n,c,l)=>{if(o!="pill")return`border-bottom: ${!n&&(a||l=="hover")?e.components[o==="regular"?"TabRegular":"TabUnderline"].default.enabled.lineHeight+"":e.components[o==="regular"?"TabRegular":"TabUnderline"].default.hover.lineHeight+""} solid ${r.getColorRgbaValue(e,i(o),c,a&&!n?"active":n?"enabled":l,"line")}`},I=f.forwardRef((e,o)=>{const{type:a="underline",disabled:n,first:c=!1,last:l=!1,fullWidth:v=!1,active:s=!1,activeIndex:b,index:g,onFocus:P=()=>{},onBlur:C=()=>{},onClick:q=()=>{},onKeyDown:S=()=>{},itemClick:m=()=>{},size:F="small",color:B="primary",className:R="",style:x={},children:V,...k}=e,$=Ee.useTheme(),[A,p]=f.useState(s),M={theme:$,color:B,size:F,style:x,className:"lnc-ui-tabitem "+R},K=N=>{m&&!n&&m(g),q&&!n&&q(N)};return T.useUpdateEffect(()=>{p(s)},[s]),T.useUpdateEffect(()=>{p(b==g)},[b]),We.jsx(cr,{ref:o,onFocus:P,onBlur:C,onClick:K,onKeyDown:S,disabled:n,type:a,first:c,last:l,fullWidth:v,active:A,...M,...k,children:V})});I.propTypes={type:t.PropTypes.oneOf(["regular","pill","underline"]),first:t.PropTypes.bool,last:t.PropTypes.bool,fullWidth:t.PropTypes.bool,active:t.PropTypes.bool,onClick:t.PropTypes.func,onBlur:t.PropTypes.func,onFocus:t.PropTypes.func,onKeyDown:t.PropTypes.func,className:t.PropTypes.string,style:t.PropTypes.object,color:t.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:t.PropTypes.oneOf(["small","medium","large"])};exports.CheckBoxInput=U;exports.ColorInput=G;exports.DateInput=h.default;exports.registerLocale=h.registerLocale;exports.DecimalInput=L;exports.FileInput=H;exports.NumberInput=W;exports.PasswordInput=O;exports.RadioInput=E;exports.RangeSlider=j;exports.TextAreaInput=z;exports.TextInput=_;exports.TimeInput=J;exports.Badge=Q;exports.Chip=X;exports.DataView=Y;exports.DetailsView=Z;exports.EditableTable=ee;exports.FormView=re;exports.Kanban=te;exports.KanbanCard=oe.KanbanCard;exports.KanbanHeader=ne;exports.KanbanFooter=ie;exports.KanbanView=ae;exports.KanbanActionsToolbar=ue;exports.Table=le.default;exports.Pagination=w.Pagination;exports.TableView=w.TableView;exports.ActionsToolbar=ce;exports.Alert=se;exports.NotificationContainer=d.NotificationContainer;exports.NotificationMessage=d.NotificationMessage;exports.notification=d.notification;exports.ProgressBar=de;exports.Spinner=be;exports.Avatar=ge;exports.Button=qe;exports.Icon=me;exports.IconButton=pe;exports.Link=fe;exports.Surface=Te;exports.UploadedFile=ye;exports.DoubleRangeSlider=he;exports.DragAndDropFile=we;exports.DragDropFiles=De;exports.Dropdown=Ie.default;exports.DropdownLookup=ve;exports.MultiSelectDropdown=Pe;exports.MultiSelectDropdownLookup=Ce;exports.RadioGroup=Se;exports.SearchBar=Fe;exports.Toggle=Be;exports.ButtonGroup=Re;exports.Content=xe;exports.FlexBox=Ve;exports.FlexGrid=ke;exports.FlexGridItem=$e;exports.Footer=Ae;exports.FormField=Me;exports.Grid=Ke;exports.GridItem=Ne;exports.Header=Ue;exports.PageLayout=Ge;exports.Sidebar=Le;exports.Tabs=He;exports.Accordion=je;exports.AccordionSummary=ze;exports.AccordionDetails=_e.default;exports.Breadcrumbs=Je;exports.ConfirmationForm=Qe;exports.Drawer=Xe;exports.DropdownMenu=u.DropdownMenu;exports.Popover=u.Popover;exports.PopoverClose=u.PopoverClose;exports.PopoverContent=u.PopoverContent;exports.PopoverHeading=u.PopoverHeading;exports.PopoverTrigger=u.PopoverTrigger;exports.DropdownItem=Ye;exports.NestedDropdownItem=Ze;exports.Separator=er;exports.Modal=rr;exports.SwipeableDrawer=tr;exports.TreeMenu=or;exports.MenuItem=nr;exports.NestedMenuItem=ir;exports.TreeMenuSeparator=ar;exports.ThemeProvider=D.default;exports.useTheme=D.useTheme;exports.components=ur.components;exports.TabItem=I;
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
import { default as Z } from "./CheckBoxInput.js";
|
|
2
|
+
import { default as re } from "./ColorInput.js";
|
|
3
|
+
import { default as ae, registerLocale as oe } from "./DateInput.js";
|
|
4
|
+
import { default as fe } from "./DecimalInput.js";
|
|
5
|
+
import { default as ue } from "./FileInput.js";
|
|
6
|
+
import { default as ie } from "./NumberInput.js";
|
|
7
|
+
import { default as me } from "./PasswordInput.js";
|
|
8
|
+
import { default as xe } from "./RadioInput.js";
|
|
9
|
+
import { default as be } from "./RangeSlider.js";
|
|
10
|
+
import { default as he } from "./TextAreaInput.js";
|
|
11
|
+
import { default as Te } from "./TextInput.js";
|
|
12
|
+
import { default as we } from "./TimeInput.js";
|
|
13
|
+
import { default as Ie } from "./Badge.js";
|
|
14
|
+
import { default as ke } from "./Chip.js";
|
|
15
|
+
import { default as Pe } from "./DataView.js";
|
|
16
|
+
import { default as Se } from "./DetailsView.js";
|
|
17
|
+
import { default as Re } from "./EditableTable.js";
|
|
18
|
+
import { default as Ke } from "./FormView.js";
|
|
19
|
+
import { default as Ne } from "./Kanban.js";
|
|
20
|
+
import { K as Ge } from "./KanbanCard-D9OhU8C6.js";
|
|
21
|
+
import { default as Le } from "./KanbanHeader.js";
|
|
22
|
+
import { default as Ue } from "./KanbanFooter.js";
|
|
23
|
+
import { default as We } from "./KanbanView.js";
|
|
24
|
+
import { default as Ee } from "./KanbanActionsToolbar.js";
|
|
25
|
+
import { default as qe } from "./Table.js";
|
|
26
|
+
import { P as Qe, T as Xe } from "./TableView-Cj5_fbSR.js";
|
|
27
|
+
import { default as Ze } from "./ActionsToolbar.js";
|
|
28
|
+
import { default as rr } from "./Alert.js";
|
|
29
|
+
import { NotificationContainer as ar, NotificationMessage as or, notification as lr } from "./Notification.js";
|
|
30
|
+
import { default as dr } from "./ProgressBar.js";
|
|
31
|
+
import { default as nr } from "./Spinner.js";
|
|
32
|
+
import { default as sr } from "./Avatar.js";
|
|
33
|
+
import { default as cr } from "./Button.js";
|
|
34
|
+
import { default as pr } from "./Icon.js";
|
|
35
|
+
import { default as gr } from "./IconButton.js";
|
|
36
|
+
import { default as yr } from "./Link.js";
|
|
37
|
+
import { default as vr } from "./Surface.js";
|
|
38
|
+
import { default as Dr } from "./UploadedFile.js";
|
|
39
|
+
import { default as $r } from "./DoubleRangeSlider.js";
|
|
40
|
+
import { default as Cr } from "./DragAndDropFile.js";
|
|
41
|
+
import { default as Fr } from "./DragDropFiles.js";
|
|
42
|
+
import { default as Br } from "./Dropdown.js";
|
|
43
|
+
import { default as Ar } from "./DropdownLookup.js";
|
|
44
|
+
import { default as Mr } from "./MultiSelectDropdown.js";
|
|
45
|
+
import { default as Vr } from "./MultiSelectDropdownLookup.js";
|
|
46
|
+
import { default as Hr } from "./RadioGroup.js";
|
|
47
|
+
import { default as Or } from "./SearchBar.js";
|
|
48
|
+
import { default as zr } from "./Toggle.js";
|
|
49
|
+
import { default as jr } from "./ButtonGroup.js";
|
|
50
|
+
import { default as _r } from "./Content.js";
|
|
51
|
+
import { default as Jr } from "./FlexBox.js";
|
|
52
|
+
import { default as Xr } from "./FlexGrid.js";
|
|
53
|
+
import { default as Zr } from "./FlexGridItem.js";
|
|
54
|
+
import { default as rt } from "./Footer.js";
|
|
55
|
+
import { default as at } from "./FormField.js";
|
|
56
|
+
import { default as lt } from "./Grid.js";
|
|
57
|
+
import { default as dt } from "./GridItem.js";
|
|
58
|
+
import { default as nt } from "./Header.js";
|
|
59
|
+
import { default as st } from "./PageLayout.js";
|
|
60
|
+
import { default as ct } from "./Sidebar.js";
|
|
61
|
+
import { default as pt } from "./Tabs.js";
|
|
62
|
+
import { jsx as A } from "react/jsx-runtime";
|
|
63
|
+
import K, { useState as M } from "react";
|
|
64
|
+
import { P as r } from "./index-Ds9PUTwb.js";
|
|
65
|
+
import { n as N } from "./emotion-styled.browser.esm-BZSYYThs.js";
|
|
66
|
+
import { g as V, a as G, b as l, c as d } from "./utils-DEke8iwo.js";
|
|
67
|
+
import { u as H } from "./emotion-element-5486c51c.browser.esm-CSejtOeT.js";
|
|
68
|
+
import { u as b } from "./useUpdateEffect-CuYWz7EA.js";
|
|
69
|
+
import { default as gt } from "./Accordion.js";
|
|
70
|
+
import { default as yt } from "./AccordionSummary.js";
|
|
71
|
+
import { default as vt } from "./AccordionDetails.js";
|
|
72
|
+
import { default as Dt } from "./Breadcrumbs.js";
|
|
73
|
+
import { default as $t } from "./ConfirmationForm.js";
|
|
74
|
+
import { default as Ct } from "./Drawer.js";
|
|
75
|
+
import { D as Ft, P as St, d as Bt, b as Rt, c as At, a as Kt } from "./DropdownMenu-DZi3TJ8Q.js";
|
|
76
|
+
import { default as Nt } from "./DropdownItem.js";
|
|
77
|
+
import { default as Gt } from "./NestedDropdownItem.js";
|
|
78
|
+
import { default as Lt } from "./Separator.js";
|
|
79
|
+
import { default as Ut } from "./Modal.js";
|
|
80
|
+
import { default as Wt } from "./SwipeableDrawer.js";
|
|
81
|
+
import { default as Et } from "./TreeMenu.js";
|
|
82
|
+
import { default as qt } from "./MenuItem.js";
|
|
83
|
+
import { default as Qt } from "./NestedMenuItem.js";
|
|
84
|
+
import { default as Yt } from "./TreeMenuSeparator.js";
|
|
85
|
+
import { default as ea, useTheme as ra } from "./ThemeProvider.js";
|
|
86
|
+
import { c as aa } from "./CustomStyles-nfD3J1mi.js";
|
|
87
|
+
const L = (e) => e == "small" ? "3.125rem" : e == "medium" ? "3.375rem" : "3.625rem", O = N.div`
|
|
88
|
+
box-sizing: border-box;
|
|
89
|
+
${(e) => e.disabled === !0 && V(e.theme)};
|
|
90
|
+
min-width: 5.25rem;
|
|
91
|
+
${(e) => e.fullWidth && "width: 100%"};
|
|
92
|
+
display: flex;
|
|
93
|
+
justify-content: center;
|
|
94
|
+
align-items: center;
|
|
95
|
+
|
|
96
|
+
height: ${(e) => L(e.size)};
|
|
97
|
+
${(e) => G(
|
|
98
|
+
e.theme,
|
|
99
|
+
o(e.type),
|
|
100
|
+
e.size,
|
|
101
|
+
"enabled"
|
|
102
|
+
)};
|
|
103
|
+
${(e) => !e.disabled && "cursor: pointer"};
|
|
104
|
+
color: ${(e) => !e.disabled && l(
|
|
105
|
+
e.theme,
|
|
106
|
+
o(e.type),
|
|
107
|
+
e.color,
|
|
108
|
+
e.active ? "active" : "enabled",
|
|
109
|
+
"text"
|
|
110
|
+
)};
|
|
111
|
+
background-color: ${(e) => e.type == "regular" || e.type == "pill" && (e.disabled == !0 || e.active == !1) ? "transparent" : !e.disabled && l(
|
|
112
|
+
e.theme,
|
|
113
|
+
o(e.type),
|
|
114
|
+
e.color,
|
|
115
|
+
e.active ? "active" : "enabled",
|
|
116
|
+
"background",
|
|
117
|
+
"backgroundOpacity"
|
|
118
|
+
)};
|
|
119
|
+
${(e) => e.type == "underline" && e.last == !1 && "border-right: 1px solid " + l(
|
|
120
|
+
e.theme,
|
|
121
|
+
o(e.type),
|
|
122
|
+
e.color,
|
|
123
|
+
"enabled",
|
|
124
|
+
"line"
|
|
125
|
+
)};
|
|
126
|
+
${(e) => g(
|
|
127
|
+
e.theme,
|
|
128
|
+
e.type,
|
|
129
|
+
e.active,
|
|
130
|
+
e.disabled,
|
|
131
|
+
e.color,
|
|
132
|
+
"enabled"
|
|
133
|
+
)};
|
|
134
|
+
${(e) => U(e.theme, e.type, e.first, e.last)};
|
|
135
|
+
&:hover {
|
|
136
|
+
color: ${(e) => !e.disabled && l(
|
|
137
|
+
e.theme,
|
|
138
|
+
o(e.type),
|
|
139
|
+
e.color,
|
|
140
|
+
"hover",
|
|
141
|
+
"text"
|
|
142
|
+
)};
|
|
143
|
+
background-color: ${(e) => e.type == "regular" ? "transparent" : !e.disabled && l(
|
|
144
|
+
e.theme,
|
|
145
|
+
o(e.type),
|
|
146
|
+
e.color,
|
|
147
|
+
"hover",
|
|
148
|
+
"background",
|
|
149
|
+
"backgroundOpacity"
|
|
150
|
+
)};
|
|
151
|
+
${(e) => g(
|
|
152
|
+
e.theme,
|
|
153
|
+
e.type,
|
|
154
|
+
e.active,
|
|
155
|
+
e.disabled,
|
|
156
|
+
e.color,
|
|
157
|
+
"hover"
|
|
158
|
+
)};
|
|
159
|
+
}
|
|
160
|
+
&:active {
|
|
161
|
+
background: ${(e) => l(
|
|
162
|
+
e.theme,
|
|
163
|
+
o(e.type),
|
|
164
|
+
e.color,
|
|
165
|
+
"active",
|
|
166
|
+
"background",
|
|
167
|
+
"backgroundOpacity"
|
|
168
|
+
)};
|
|
169
|
+
}
|
|
170
|
+
`, o = (e) => e == "underline" ? "TabUnderline" : e == "pill" ? "TabPill" : "TabRegular", U = (e, t, f, a) => {
|
|
171
|
+
if (t == "pill")
|
|
172
|
+
return `border-radius: ${d(e, "regular")}`;
|
|
173
|
+
if (t == "underline" && f)
|
|
174
|
+
return `border-radius: ${d(
|
|
175
|
+
e,
|
|
176
|
+
"regular"
|
|
177
|
+
)} 0 0 ${d(e, "regular")}`;
|
|
178
|
+
if (t == "underline" && a)
|
|
179
|
+
return `border-radius: 0 ${d(
|
|
180
|
+
e,
|
|
181
|
+
"regular"
|
|
182
|
+
)} ${d(e, "regular")} 0`;
|
|
183
|
+
}, g = (e, t, f, a, n, u) => {
|
|
184
|
+
if (t != "pill")
|
|
185
|
+
return `border-bottom: ${!a && (f || u == "hover") ? e.components[t === "regular" ? "TabRegular" : "TabUnderline"].default.enabled.lineHeight + "" : e.components[t === "regular" ? "TabRegular" : "TabUnderline"].default.hover.lineHeight + ""} solid ${l(
|
|
186
|
+
e,
|
|
187
|
+
o(t),
|
|
188
|
+
n,
|
|
189
|
+
f && !a ? "active" : a ? "enabled" : u,
|
|
190
|
+
"line"
|
|
191
|
+
)}`;
|
|
192
|
+
}, z = K.forwardRef((e, t) => {
|
|
193
|
+
const {
|
|
194
|
+
type: f = "underline",
|
|
195
|
+
disabled: a,
|
|
196
|
+
first: n = !1,
|
|
197
|
+
last: u = !1,
|
|
198
|
+
fullWidth: h = !1,
|
|
199
|
+
active: i = !1,
|
|
200
|
+
activeIndex: s,
|
|
201
|
+
index: m,
|
|
202
|
+
//----------------
|
|
203
|
+
onFocus: y = () => {
|
|
204
|
+
},
|
|
205
|
+
onBlur: T = () => {
|
|
206
|
+
},
|
|
207
|
+
onClick: c = () => {
|
|
208
|
+
},
|
|
209
|
+
onKeyDown: v = () => {
|
|
210
|
+
},
|
|
211
|
+
itemClick: x = () => {
|
|
212
|
+
},
|
|
213
|
+
//----------------
|
|
214
|
+
size: w = "small",
|
|
215
|
+
color: D = "primary",
|
|
216
|
+
className: I = "",
|
|
217
|
+
style: $ = {},
|
|
218
|
+
children: k,
|
|
219
|
+
...C
|
|
220
|
+
} = e, P = H(), [F, p] = M(i), S = {
|
|
221
|
+
theme: P,
|
|
222
|
+
color: D,
|
|
223
|
+
size: w,
|
|
224
|
+
style: $,
|
|
225
|
+
className: "lnc-ui-tabitem " + I
|
|
226
|
+
}, B = (R) => {
|
|
227
|
+
x && !a && x(m), c && !a && c(R);
|
|
228
|
+
};
|
|
229
|
+
return b(() => {
|
|
230
|
+
p(i);
|
|
231
|
+
}, [i]), b(() => {
|
|
232
|
+
p(s == m);
|
|
233
|
+
}, [s]), /* @__PURE__ */ A(
|
|
234
|
+
O,
|
|
235
|
+
{
|
|
236
|
+
ref: t,
|
|
237
|
+
onFocus: y,
|
|
238
|
+
onBlur: T,
|
|
239
|
+
onClick: B,
|
|
240
|
+
onKeyDown: v,
|
|
241
|
+
disabled: a,
|
|
242
|
+
type: f,
|
|
243
|
+
first: n,
|
|
244
|
+
last: u,
|
|
245
|
+
fullWidth: h,
|
|
246
|
+
active: F,
|
|
247
|
+
...S,
|
|
248
|
+
...C,
|
|
249
|
+
children: k
|
|
250
|
+
}
|
|
251
|
+
);
|
|
252
|
+
});
|
|
253
|
+
z.propTypes = {
|
|
254
|
+
type: r.oneOf(["regular", "pill", "underline"]),
|
|
255
|
+
/**
|
|
256
|
+
* Is it first Tab Item in Tab Wrapper
|
|
257
|
+
* }
|
|
258
|
+
*/
|
|
259
|
+
first: r.bool,
|
|
260
|
+
/**
|
|
261
|
+
* Is it last Tab Item in Tab Wrapper
|
|
262
|
+
* }
|
|
263
|
+
*/
|
|
264
|
+
last: r.bool,
|
|
265
|
+
fullWidth: r.bool,
|
|
266
|
+
active: r.bool,
|
|
267
|
+
//---------------------------------------------------------------
|
|
268
|
+
onClick: r.func,
|
|
269
|
+
onBlur: r.func,
|
|
270
|
+
onFocus: r.func,
|
|
271
|
+
onKeyDown: r.func,
|
|
272
|
+
//---------------------------------------------------------------
|
|
273
|
+
className: r.string,
|
|
274
|
+
style: r.object,
|
|
275
|
+
color: r.oneOf([
|
|
276
|
+
"primary",
|
|
277
|
+
"secondary",
|
|
278
|
+
"success",
|
|
279
|
+
"warning",
|
|
280
|
+
"danger",
|
|
281
|
+
"information",
|
|
282
|
+
"neutral",
|
|
283
|
+
"gray"
|
|
284
|
+
]),
|
|
285
|
+
size: r.oneOf(["small", "medium", "large"])
|
|
286
|
+
};
|
|
287
|
+
export {
|
|
288
|
+
gt as Accordion,
|
|
289
|
+
vt as AccordionDetails,
|
|
290
|
+
yt as AccordionSummary,
|
|
291
|
+
Ze as ActionsToolbar,
|
|
292
|
+
rr as Alert,
|
|
293
|
+
sr as Avatar,
|
|
294
|
+
Ie as Badge,
|
|
295
|
+
Dt as Breadcrumbs,
|
|
296
|
+
cr as Button,
|
|
297
|
+
jr as ButtonGroup,
|
|
298
|
+
Z as CheckBoxInput,
|
|
299
|
+
ke as Chip,
|
|
300
|
+
re as ColorInput,
|
|
301
|
+
$t as ConfirmationForm,
|
|
302
|
+
_r as Content,
|
|
303
|
+
Pe as DataView,
|
|
304
|
+
ae as DateInput,
|
|
305
|
+
fe as DecimalInput,
|
|
306
|
+
Se as DetailsView,
|
|
307
|
+
$r as DoubleRangeSlider,
|
|
308
|
+
Cr as DragAndDropFile,
|
|
309
|
+
Fr as DragDropFiles,
|
|
310
|
+
Ct as Drawer,
|
|
311
|
+
Br as Dropdown,
|
|
312
|
+
Nt as DropdownItem,
|
|
313
|
+
Ar as DropdownLookup,
|
|
314
|
+
Ft as DropdownMenu,
|
|
315
|
+
Re as EditableTable,
|
|
316
|
+
ue as FileInput,
|
|
317
|
+
Jr as FlexBox,
|
|
318
|
+
Xr as FlexGrid,
|
|
319
|
+
Zr as FlexGridItem,
|
|
320
|
+
rt as Footer,
|
|
321
|
+
at as FormField,
|
|
322
|
+
Ke as FormView,
|
|
323
|
+
lt as Grid,
|
|
324
|
+
dt as GridItem,
|
|
325
|
+
nt as Header,
|
|
326
|
+
pr as Icon,
|
|
327
|
+
gr as IconButton,
|
|
328
|
+
Ne as Kanban,
|
|
329
|
+
Ee as KanbanActionsToolbar,
|
|
330
|
+
Ge as KanbanCard,
|
|
331
|
+
Ue as KanbanFooter,
|
|
332
|
+
Le as KanbanHeader,
|
|
333
|
+
We as KanbanView,
|
|
334
|
+
yr as Link,
|
|
335
|
+
qt as MenuItem,
|
|
336
|
+
Ut as Modal,
|
|
337
|
+
Mr as MultiSelectDropdown,
|
|
338
|
+
Vr as MultiSelectDropdownLookup,
|
|
339
|
+
Gt as NestedDropdownItem,
|
|
340
|
+
Qt as NestedMenuItem,
|
|
341
|
+
ar as NotificationContainer,
|
|
342
|
+
or as NotificationMessage,
|
|
343
|
+
ie as NumberInput,
|
|
344
|
+
st as PageLayout,
|
|
345
|
+
Qe as Pagination,
|
|
346
|
+
me as PasswordInput,
|
|
347
|
+
St as Popover,
|
|
348
|
+
Bt as PopoverClose,
|
|
349
|
+
Rt as PopoverContent,
|
|
350
|
+
At as PopoverHeading,
|
|
351
|
+
Kt as PopoverTrigger,
|
|
352
|
+
dr as ProgressBar,
|
|
353
|
+
Hr as RadioGroup,
|
|
354
|
+
xe as RadioInput,
|
|
355
|
+
be as RangeSlider,
|
|
356
|
+
Or as SearchBar,
|
|
357
|
+
Lt as Separator,
|
|
358
|
+
ct as Sidebar,
|
|
359
|
+
nr as Spinner,
|
|
360
|
+
vr as Surface,
|
|
361
|
+
Wt as SwipeableDrawer,
|
|
362
|
+
z as TabItem,
|
|
363
|
+
qe as Table,
|
|
364
|
+
Xe as TableView,
|
|
365
|
+
pt as Tabs,
|
|
366
|
+
he as TextAreaInput,
|
|
367
|
+
Te as TextInput,
|
|
368
|
+
ea as ThemeProvider,
|
|
369
|
+
we as TimeInput,
|
|
370
|
+
zr as Toggle,
|
|
371
|
+
Et as TreeMenu,
|
|
372
|
+
Yt as TreeMenuSeparator,
|
|
373
|
+
Dr as UploadedFile,
|
|
374
|
+
aa as components,
|
|
375
|
+
lr as notification,
|
|
376
|
+
oe as registerLocale,
|
|
377
|
+
ra as useTheme
|
|
378
|
+
};
|