@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,113 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Te=require("react/jsx-runtime"),Y=require("react"),q=require("./utils-hdRGTsQ7.cjs"),Ne=require("./index-DXnSjbfJ.cjs"),Be=require("./emotion-is-prop-valid.esm-CMrshNb7.cjs"),gt=require("./hoist-non-react-statics.cjs-B8r9S_ak.cjs"),vt=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),yt=e=>{const n=e.palette.disabled.color,t=e.palette[n][e.palette.disabled.background],r=e.palette.opacity[e.palette.disabled.opacity];return q.hexToRgba(t,r??"100%")},bt=e=>{const n=e.palette.disabled.color;return e.palette[n][e.palette.disabled.text]};var $e={exports:{}},$={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-is.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var He;function St(){if(He)return $;He=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),c=Symbol.for("react.context"),f=Symbol.for("react.server_context"),g=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),j=Symbol.for("react.offscreen"),E;E=Symbol.for("react.module.reference");function b(a){if(typeof a=="object"&&a!==null){var I=a.$$typeof;switch(I){case e:switch(a=a.type,a){case t:case s:case r:case m:case v:return a;default:switch(a=a&&a.$$typeof,a){case f:case c:case g:case R:case y:case i:return a;default:return I}}case n:return I}}}return $.ContextConsumer=c,$.ContextProvider=i,$.Element=e,$.ForwardRef=g,$.Fragment=t,$.Lazy=R,$.Memo=y,$.Portal=n,$.Profiler=s,$.StrictMode=r,$.Suspense=m,$.SuspenseList=v,$.isAsyncMode=function(){return!1},$.isConcurrentMode=function(){return!1},$.isContextConsumer=function(a){return b(a)===c},$.isContextProvider=function(a){return b(a)===i},$.isElement=function(a){return typeof a=="object"&&a!==null&&a.$$typeof===e},$.isForwardRef=function(a){return b(a)===g},$.isFragment=function(a){return b(a)===t},$.isLazy=function(a){return b(a)===R},$.isMemo=function(a){return b(a)===y},$.isPortal=function(a){return b(a)===n},$.isProfiler=function(a){return b(a)===s},$.isStrictMode=function(a){return b(a)===r},$.isSuspense=function(a){return b(a)===m},$.isSuspenseList=function(a){return b(a)===v},$.isValidElementType=function(a){return typeof a=="string"||typeof a=="function"||a===t||a===s||a===r||a===m||a===v||a===j||typeof a=="object"&&a!==null&&(a.$$typeof===R||a.$$typeof===y||a.$$typeof===i||a.$$typeof===c||a.$$typeof===g||a.$$typeof===E||a.getModuleId!==void 0)},$.typeOf=b,$}var D={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-is.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var We;function wt(){return We||(We=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),c=Symbol.for("react.context"),f=Symbol.for("react.server_context"),g=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),j=Symbol.for("react.offscreen"),E=!1,b=!1,a=!1,I=!1,A=!1,M;M=Symbol.for("react.module.reference");function O(d){return!!(typeof d=="string"||typeof d=="function"||d===t||d===s||A||d===r||d===m||d===v||I||d===j||E||b||a||typeof d=="object"&&d!==null&&(d.$$typeof===R||d.$$typeof===y||d.$$typeof===i||d.$$typeof===c||d.$$typeof===g||d.$$typeof===M||d.getModuleId!==void 0))}function _(d){if(typeof d=="object"&&d!==null){var k=d.$$typeof;switch(k){case e:var V=d.type;switch(V){case t:case s:case r:case m:case v:return V;default:var x=V&&V.$$typeof;switch(x){case f:case c:case g:case R:case y:case i:return x;default:return k}}case n:return k}}}var J=c,re=i,X=e,K=g,ne=t,se=R,W=y,Z=n,ee=s,H=r,ue=m,Q=v,U=!1,ae=!1;function ie(d){return U||(U=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function de(d){return ae||(ae=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function h(d){return _(d)===c}function u(d){return _(d)===i}function p(d){return typeof d=="object"&&d!==null&&d.$$typeof===e}function w(d){return _(d)===g}function o(d){return _(d)===t}function P(d){return _(d)===R}function l(d){return _(d)===y}function z(d){return _(d)===n}function T(d){return _(d)===s}function N(d){return _(d)===r}function C(d){return _(d)===m}function L(d){return _(d)===v}D.ContextConsumer=J,D.ContextProvider=re,D.Element=X,D.ForwardRef=K,D.Fragment=ne,D.Lazy=se,D.Memo=W,D.Portal=Z,D.Profiler=ee,D.StrictMode=H,D.Suspense=ue,D.SuspenseList=Q,D.isAsyncMode=ie,D.isConcurrentMode=de,D.isContextConsumer=h,D.isContextProvider=u,D.isElement=p,D.isForwardRef=w,D.isFragment=o,D.isLazy=P,D.isMemo=l,D.isPortal=z,D.isProfiler=T,D.isStrictMode=N,D.isSuspense=C,D.isSuspenseList=L,D.isValidElementType=O,D.typeOf=_}()),D}process.env.NODE_ENV==="production"?$e.exports=St():$e.exports=wt();var Fe=$e.exports;function Ct(e){function n(h,u,p,w,o){for(var P=0,l=0,z=0,T=0,N,C,L=0,d=0,k,V=k=N=0,x=0,G=0,ge=0,B=0,Se=p.length,ve=Se-1,te,S="",F="",xe="",Pe="",ce;x<Se;){if(C=p.charCodeAt(x),x===ve&&l+T+z+P!==0&&(l!==0&&(C=l===47?10:47),T=z=P=0,Se++,ve++),l+T+z+P===0){if(x===ve&&(0<G&&(S=S.replace(R,"")),0<S.trim().length)){switch(C){case 32:case 9:case 59:case 13:case 10:break;default:S+=p.charAt(x)}C=59}switch(C){case 123:for(S=S.trim(),N=S.charCodeAt(0),k=1,B=++x;x<Se;){switch(C=p.charCodeAt(x)){case 123:k++;break;case 125:k--;break;case 47:switch(C=p.charCodeAt(x+1)){case 42:case 47:e:{for(V=x+1;V<ve;++V)switch(p.charCodeAt(V)){case 47:if(C===42&&p.charCodeAt(V-1)===42&&x+2!==V){x=V+1;break e}break;case 10:if(C===47){x=V+1;break e}}x=V}}break;case 91:C++;case 40:C++;case 34:case 39:for(;x++<ve&&p.charCodeAt(x)!==C;);}if(k===0)break;x++}switch(k=p.substring(B,x),N===0&&(N=(S=S.replace(y,"").trim()).charCodeAt(0)),N){case 64:switch(0<G&&(S=S.replace(R,"")),C=S.charCodeAt(1),C){case 100:case 109:case 115:case 45:G=u;break;default:G=ue}if(k=n(u,G,k,C,o+1),B=k.length,0<U&&(G=t(ue,S,ge),ce=f(3,k,G,u,Z,W,B,C,o,w),S=G.join(""),ce!==void 0&&(B=(k=ce.trim()).length)===0&&(C=0,k="")),0<B)switch(C){case 115:S=S.replace(J,c);case 100:case 109:case 45:k=S+"{"+k+"}";break;case 107:S=S.replace(A,"$1 $2"),k=S+"{"+k+"}",k=H===1||H===2&&i("@"+k,3)?"@-webkit-"+k+"@"+k:"@"+k;break;default:k=S+k,w===112&&(k=(F+=k,""))}else k="";break;default:k=n(u,t(u,S,ge),k,w,o+1)}xe+=k,k=ge=G=V=N=0,S="",C=p.charCodeAt(++x);break;case 125:case 59:if(S=(0<G?S.replace(R,""):S).trim(),1<(B=S.length))switch(V===0&&(N=S.charCodeAt(0),N===45||96<N&&123>N)&&(B=(S=S.replace(" ",":")).length),0<U&&(ce=f(1,S,u,h,Z,W,F.length,w,o,w))!==void 0&&(B=(S=ce.trim()).length)===0&&(S="\0\0"),N=S.charCodeAt(0),C=S.charCodeAt(1),N){case 0:break;case 64:if(C===105||C===99){Pe+=S+p.charAt(x);break}default:S.charCodeAt(B-1)!==58&&(F+=s(S,N,C,S.charCodeAt(2)))}ge=G=V=N=0,S="",C=p.charCodeAt(++x)}}switch(C){case 13:case 10:l===47?l=0:1+N===0&&w!==107&&0<S.length&&(G=1,S+="\0"),0<U*ie&&f(0,S,u,h,Z,W,F.length,w,o,w),W=1,Z++;break;case 59:case 125:if(l+T+z+P===0){W++;break}default:switch(W++,te=p.charAt(x),C){case 9:case 32:if(T+P+l===0)switch(L){case 44:case 58:case 9:case 32:te="";break;default:C!==32&&(te=" ")}break;case 0:te="\\0";break;case 12:te="\\f";break;case 11:te="\\v";break;case 38:T+l+P===0&&(G=ge=1,te="\f"+te);break;case 108:if(T+l+P+ee===0&&0<V)switch(x-V){case 2:L===112&&p.charCodeAt(x-3)===58&&(ee=L);case 8:d===111&&(ee=d)}break;case 58:T+l+P===0&&(V=x);break;case 44:l+z+T+P===0&&(G=1,te+="\r");break;case 34:case 39:l===0&&(T=T===C?0:T===0?C:T);break;case 91:T+l+z===0&&P++;break;case 93:T+l+z===0&&P--;break;case 41:T+l+P===0&&z--;break;case 40:if(T+l+P===0){if(N===0)switch(2*L+3*d){case 533:break;default:N=1}z++}break;case 64:l+z+T+P+V+k===0&&(k=1);break;case 42:case 47:if(!(0<T+P+z))switch(l){case 0:switch(2*C+3*p.charCodeAt(x+1)){case 235:l=47;break;case 220:B=x,l=42}break;case 42:C===47&&L===42&&B+2!==x&&(p.charCodeAt(B+2)===33&&(F+=p.substring(B,x+1)),te="",l=0)}}l===0&&(S+=te)}d=L,L=C,x++}if(B=F.length,0<B){if(G=u,0<U&&(ce=f(2,F,G,h,Z,W,B,w,o,w),ce!==void 0&&(F=ce).length===0))return Pe+F+xe;if(F=G.join(",")+"{"+F+"}",H*ee!==0){switch(H!==2||i(F,2)||(ee=0),ee){case 111:F=F.replace(O,":-moz-$1")+F;break;case 112:F=F.replace(M,"::-webkit-input-$1")+F.replace(M,"::-moz-$1")+F.replace(M,":-ms-input-$1")+F}ee=0}}return Pe+F+xe}function t(h,u,p){var w=u.trim().split(a);u=w;var o=w.length,P=h.length;switch(P){case 0:case 1:var l=0;for(h=P===0?"":h[0]+" ";l<o;++l)u[l]=r(h,u[l],p).trim();break;default:var z=l=0;for(u=[];l<o;++l)for(var T=0;T<P;++T)u[z++]=r(h[T]+" ",w[l],p).trim()}return u}function r(h,u,p){var w=u.charCodeAt(0);switch(33>w&&(w=(u=u.trim()).charCodeAt(0)),w){case 38:return u.replace(I,"$1"+h.trim());case 58:return h.trim()+u.replace(I,"$1"+h.trim());default:if(0<1*p&&0<u.indexOf("\f"))return u.replace(I,(h.charCodeAt(0)===58?"":"$1")+h.trim())}return h+u}function s(h,u,p,w){var o=h+";",P=2*u+3*p+4*w;if(P===944){h=o.indexOf(":",9)+1;var l=o.substring(h,o.length-1).trim();return l=o.substring(0,h).trim()+l+";",H===1||H===2&&i(l,1)?"-webkit-"+l+l:l}if(H===0||H===2&&!i(o,1))return o;switch(P){case 1015:return o.charCodeAt(10)===97?"-webkit-"+o+o:o;case 951:return o.charCodeAt(3)===116?"-webkit-"+o+o:o;case 963:return o.charCodeAt(5)===110?"-webkit-"+o+o:o;case 1009:if(o.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+o+o;case 978:return"-webkit-"+o+"-moz-"+o+o;case 1019:case 983:return"-webkit-"+o+"-moz-"+o+"-ms-"+o+o;case 883:if(o.charCodeAt(8)===45)return"-webkit-"+o+o;if(0<o.indexOf("image-set(",11))return o.replace(se,"$1-webkit-$2")+o;break;case 932:if(o.charCodeAt(4)===45)switch(o.charCodeAt(5)){case 103:return"-webkit-box-"+o.replace("-grow","")+"-webkit-"+o+"-ms-"+o.replace("grow","positive")+o;case 115:return"-webkit-"+o+"-ms-"+o.replace("shrink","negative")+o;case 98:return"-webkit-"+o+"-ms-"+o.replace("basis","preferred-size")+o}return"-webkit-"+o+"-ms-"+o+o;case 964:return"-webkit-"+o+"-ms-flex-"+o+o;case 1023:if(o.charCodeAt(8)!==99)break;return l=o.substring(o.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+l+"-webkit-"+o+"-ms-flex-pack"+l+o;case 1005:return E.test(o)?o.replace(j,":-webkit-")+o.replace(j,":-moz-")+o:o;case 1e3:switch(l=o.substring(13).trim(),u=l.indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(u)){case 226:l=o.replace(_,"tb");break;case 232:l=o.replace(_,"tb-rl");break;case 220:l=o.replace(_,"lr");break;default:return o}return"-webkit-"+o+"-ms-"+l+o;case 1017:if(o.indexOf("sticky",9)===-1)break;case 975:switch(u=(o=h).length-10,l=(o.charCodeAt(u)===33?o.substring(0,u):o).substring(h.indexOf(":",7)+1).trim(),P=l.charCodeAt(0)+(l.charCodeAt(7)|0)){case 203:if(111>l.charCodeAt(8))break;case 115:o=o.replace(l,"-webkit-"+l)+";"+o;break;case 207:case 102:o=o.replace(l,"-webkit-"+(102<P?"inline-":"")+"box")+";"+o.replace(l,"-webkit-"+l)+";"+o.replace(l,"-ms-"+l+"box")+";"+o}return o+";";case 938:if(o.charCodeAt(5)===45)switch(o.charCodeAt(6)){case 105:return l=o.replace("-items",""),"-webkit-"+o+"-webkit-box-"+l+"-ms-flex-"+l+o;case 115:return"-webkit-"+o+"-ms-flex-item-"+o.replace(X,"")+o;default:return"-webkit-"+o+"-ms-flex-line-pack"+o.replace("align-content","").replace(X,"")+o}break;case 973:case 989:if(o.charCodeAt(3)!==45||o.charCodeAt(4)===122)break;case 931:case 953:if(ne.test(h)===!0)return(l=h.substring(h.indexOf(":")+1)).charCodeAt(0)===115?s(h.replace("stretch","fill-available"),u,p,w).replace(":fill-available",":stretch"):o.replace(l,"-webkit-"+l)+o.replace(l,"-moz-"+l.replace("fill-",""))+o;break;case 962:if(o="-webkit-"+o+(o.charCodeAt(5)===102?"-ms-"+o:"")+o,p+w===211&&o.charCodeAt(13)===105&&0<o.indexOf("transform",10))return o.substring(0,o.indexOf(";",27)+1).replace(b,"$1-webkit-$2")+o}return o}function i(h,u){var p=h.indexOf(u===1?":":"{"),w=h.substring(0,u!==3?p:10);return p=h.substring(p+1,h.length-1),ae(u!==2?w:w.replace(K,"$1"),p,u)}function c(h,u){var p=s(u,u.charCodeAt(0),u.charCodeAt(1),u.charCodeAt(2));return p!==u+";"?p.replace(re," or ($1)").substring(4):"("+u+")"}function f(h,u,p,w,o,P,l,z,T,N){for(var C=0,L=u,d;C<U;++C)switch(d=Q[C].call(v,h,L,p,w,o,P,l,z,T,N)){case void 0:case!1:case!0:case null:break;default:L=d}if(L!==u)return L}function g(h){switch(h){case void 0:case null:U=Q.length=0;break;default:if(typeof h=="function")Q[U++]=h;else if(typeof h=="object")for(var u=0,p=h.length;u<p;++u)g(h[u]);else ie=!!h|0}return g}function m(h){return h=h.prefix,h!==void 0&&(ae=null,h?typeof h!="function"?H=1:(H=2,ae=h):H=0),m}function v(h,u){var p=h;if(33>p.charCodeAt(0)&&(p=p.trim()),de=p,p=[de],0<U){var w=f(-1,u,p,p,Z,W,0,0,0,0);w!==void 0&&typeof w=="string"&&(u=w)}var o=n(ue,p,u,0,0);return 0<U&&(w=f(-2,o,p,p,Z,W,o.length,0,0,0),w!==void 0&&(o=w)),de="",ee=0,W=Z=1,o}var y=/^\0+/g,R=/[\0\r\f]/g,j=/: */g,E=/zoo|gra/,b=/([,: ])(transform)/g,a=/,\r+?/g,I=/([\t\r\n ])*\f?&/g,A=/@(k\w+)\s*(\S*)\s*/,M=/::(place)/g,O=/:(read-only)/g,_=/[svh]\w+-[tblr]{2}/,J=/\(\s*(.*)\s*\)/g,re=/([\s\S]*?);/g,X=/-self|flex-/g,K=/[^]*?(:[rp][el]a[\w-]+)[^]*/,ne=/stretch|:\s*\w+\-(?:conte|avail)/,se=/([^-])(image-set\()/,W=1,Z=1,ee=0,H=1,ue=[],Q=[],U=0,ae=null,ie=0,de="";return v.use=g,v.set=m,e!==void 0&&m(e),v}var Et={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function oe(){return(oe=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}var Ue=function(e,n){for(var t=[e[0]],r=0,s=n.length;r<s;r+=1)t.push(n[r],e[r+1]);return t},De=function(e){return e!==null&&typeof e=="object"&&(e.toString?e.toString():Object.prototype.toString.call(e))==="[object Object]"&&!Fe.typeOf(e)},_e=Object.freeze([]),le=Object.freeze({});function be(e){return typeof e=="function"}function je(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function Le(e){return e&&typeof e.styledComponentId=="string"}var he=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ye=typeof window<"u"&&"HTMLElement"in window,At=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production")),_t={},Rt=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
18
|
+
|
|
19
|
+
`,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
20
|
+
|
|
21
|
+
- Are you trying to reuse it across renders?
|
|
22
|
+
- Are you accidentally calling collectStyles twice?
|
|
23
|
+
|
|
24
|
+
`,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
|
|
25
|
+
|
|
26
|
+
`,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
|
|
27
|
+
|
|
28
|
+
- Does this error occur on the client and is your target falsy?
|
|
29
|
+
- Does this error occur on the server and is the sheet falsy?
|
|
30
|
+
|
|
31
|
+
`,5:`The clone method cannot be used on the client!
|
|
32
|
+
|
|
33
|
+
- Are you running in a client-like environment on the server?
|
|
34
|
+
- Are you trying to run SSR on the client?
|
|
35
|
+
|
|
36
|
+
`,6:`Trying to insert a new style tag, but the given Node is unmounted!
|
|
37
|
+
|
|
38
|
+
- Are you using a custom target that isn't mounted?
|
|
39
|
+
- Does your document not have a valid head element?
|
|
40
|
+
- Have you accidentally removed a style tag manually?
|
|
41
|
+
|
|
42
|
+
`,7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:`ThemeProvider: Please make your "theme" prop an object.
|
|
43
|
+
|
|
44
|
+
`,9:"Missing document `<head>`\n\n",10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
|
|
45
|
+
|
|
46
|
+
`,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
|
|
47
|
+
|
|
48
|
+
`,12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:`%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
|
|
49
|
+
|
|
50
|
+
`,14:`ThemeProvider: "theme" prop is required.
|
|
51
|
+
|
|
52
|
+
`,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:`Reached the limit of how many styled components may be created at group %s.
|
|
53
|
+
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
|
|
54
|
+
as for instance in your render method then you may be running into this limitation.
|
|
55
|
+
|
|
56
|
+
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
57
|
+
Has styled-components' style tag been unmounted or altered by another script?
|
|
58
|
+
`}:{};function kt(){for(var e=arguments.length<=0?void 0:arguments[0],n=[],t=1,r=arguments.length;t<r;t+=1)n.push(t<0||arguments.length<=t?void 0:arguments[t]);return n.forEach(function(s){e=e.replace(/%[a-z]/,s)}),e}function me(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];throw process.env.NODE_ENV==="production"?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(t.length>0?" Args: "+t.join(", "):"")):new Error(kt.apply(void 0,[Rt[e]].concat(t)).trim())}var xt=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}var n=e.prototype;return n.indexOfGroup=function(t){for(var r=0,s=0;s<t;s++)r+=this.groupSizes[s];return r},n.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var s=this.groupSizes,i=s.length,c=i;t>=c;)(c<<=1)<0&&me(16,""+t);this.groupSizes=new Uint32Array(c),this.groupSizes.set(s),this.length=c;for(var f=i;f<c;f++)this.groupSizes[f]=0}for(var g=this.indexOfGroup(t+1),m=0,v=r.length;m<v;m++)this.tag.insertRule(g,r[m])&&(this.groupSizes[t]++,g++)},n.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],s=this.indexOfGroup(t),i=s+r;this.groupSizes[t]=0;for(var c=s;c<i;c++)this.tag.deleteRule(s)}},n.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var s=this.groupSizes[t],i=this.indexOfGroup(t),c=i+s,f=i;f<c;f++)r+=this.tag.getRule(f)+`/*!sc*/
|
|
59
|
+
`;return r},e}(),Ae=new Map,Re=new Map,ye=1,we=function(e){if(Ae.has(e))return Ae.get(e);for(;Re.has(ye);)ye++;var n=ye++;return process.env.NODE_ENV!=="production"&&((0|n)<0||n>1<<30)&&me(16,""+n),Ae.set(e,n),Re.set(n,e),n},Pt=function(e){return Re.get(e)},Tt=function(e,n){n>=ye&&(ye=n+1),Ae.set(e,n),Re.set(n,e)},Nt="style["+he+'][data-styled-version="5.3.11"]',It=new RegExp("^"+he+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Ot=function(e,n,t){for(var r,s=t.split(","),i=0,c=s.length;i<c;i++)(r=s[i])&&e.registerName(n,r)},$t=function(e,n){for(var t=(n.textContent||"").split(`/*!sc*/
|
|
60
|
+
`),r=[],s=0,i=t.length;s<i;s++){var c=t[s].trim();if(c){var f=c.match(It);if(f){var g=0|parseInt(f[1],10),m=f[2];g!==0&&(Tt(m,g),Ot(e,m,f[3]),e.getTag().insertRules(g,r)),r.length=0}else r.push(c)}}},Dt=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null},tt=function(e){var n=document.head,t=e||n,r=document.createElement("style"),s=function(f){for(var g=f.childNodes,m=g.length;m>=0;m--){var v=g[m];if(v&&v.nodeType===1&&v.hasAttribute(he))return v}}(t),i=s!==void 0?s.nextSibling:null;r.setAttribute(he,"active"),r.setAttribute("data-styled-version","5.3.11");var c=Dt();return c&&r.setAttribute("nonce",c),t.insertBefore(r,i),r},jt=function(){function e(t){var r=this.element=tt(t);r.appendChild(document.createTextNode("")),this.sheet=function(s){if(s.sheet)return s.sheet;for(var i=document.styleSheets,c=0,f=i.length;c<f;c++){var g=i[c];if(g.ownerNode===s)return g}me(17)}(r),this.length=0}var n=e.prototype;return n.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},n.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},n.getRule=function(t){var r=this.sheet.cssRules[t];return r!==void 0&&typeof r.cssText=="string"?r.cssText:""},e}(),Mt=function(){function e(t){var r=this.element=tt(t);this.nodes=r.childNodes,this.length=0}var n=e.prototype;return n.insertRule=function(t,r){if(t<=this.length&&t>=0){var s=document.createTextNode(r),i=this.nodes[t];return this.element.insertBefore(s,i||null),this.length++,!0}return!1},n.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},n.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),zt=function(){function e(t){this.rules=[],this.length=0}var n=e.prototype;return n.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},n.deleteRule=function(t){this.rules.splice(t,1),this.length--},n.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),qe=Ye,Vt={isServer:!Ye,useCSSOMInjection:!At},ke=function(){function e(t,r,s){t===void 0&&(t=le),r===void 0&&(r={}),this.options=oe({},Vt,{},t),this.gs=r,this.names=new Map(s),this.server=!!t.isServer,!this.server&&Ye&&qe&&(qe=!1,function(i){for(var c=document.querySelectorAll(Nt),f=0,g=c.length;f<g;f++){var m=c[f];m&&m.getAttribute(he)!=="active"&&($t(i,m),m.parentNode&&m.parentNode.removeChild(m))}}(this))}e.registerId=function(t){return we(t)};var n=e.prototype;return n.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(oe({},this.options,{},t),this.gs,r&&this.names||void 0)},n.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},n.getTag=function(){return this.tag||(this.tag=(s=(r=this.options).isServer,i=r.useCSSOMInjection,c=r.target,t=s?new zt(c):i?new jt(c):new Mt(c),new xt(t)));var t,r,s,i,c},n.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},n.registerName=function(t,r){if(we(t),this.names.has(t))this.names.get(t).add(r);else{var s=new Set;s.add(r),this.names.set(t,s)}},n.insertRules=function(t,r,s){this.registerName(t,r),this.getTag().insertRules(we(t),s)},n.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},n.clearRules=function(t){this.getTag().clearGroup(we(t)),this.clearNames(t)},n.clearTag=function(){this.tag=void 0},n.toString=function(){return function(t){for(var r=t.getTag(),s=r.length,i="",c=0;c<s;c++){var f=Pt(c);if(f!==void 0){var g=t.names.get(f),m=r.getGroup(c);if(g&&m&&g.size){var v=he+".g"+c+'[id="'+f+'"]',y="";g!==void 0&&g.forEach(function(R){R.length>0&&(y+=R+",")}),i+=""+m+v+'{content:"'+y+`"}/*!sc*/
|
|
61
|
+
`}}}return i}(this)},e}(),Ft=/(a)(d)/gi,Xe=function(e){return String.fromCharCode(e+(e>25?39:97))};function Me(e){var n,t="";for(n=Math.abs(e);n>52;n=n/52|0)t=Xe(n%52)+t;return(Xe(n%52)+t).replace(Ft,"$1-$2")}var fe=function(e,n){for(var t=n.length;t;)e=33*e^n.charCodeAt(--t);return e},rt=function(e){return fe(5381,e)};function nt(e){for(var n=0;n<e.length;n+=1){var t=e[n];if(be(t)&&!Le(t))return!1}return!0}var Lt=rt("5.3.11"),Yt=function(){function e(n,t,r){this.rules=n,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&nt(n),this.componentId=t,this.baseHash=fe(Lt,t),this.baseStyle=r,ke.registerId(t)}return e.prototype.generateAndInjectStyles=function(n,t,r){var s=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(n,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(s,this.staticRulesId))i.push(this.staticRulesId);else{var c=pe(this.rules,n,t,r).join(""),f=Me(fe(this.baseHash,c)>>>0);if(!t.hasNameForId(s,f)){var g=r(c,"."+f,void 0,s);t.insertRules(s,f,g)}i.push(f),this.staticRulesId=f}else{for(var m=this.rules.length,v=fe(this.baseHash,r.hash),y="",R=0;R<m;R++){var j=this.rules[R];if(typeof j=="string")y+=j,process.env.NODE_ENV!=="production"&&(v=fe(v,j+R));else if(j){var E=pe(j,n,t,r),b=Array.isArray(E)?E.join(""):E;v=fe(v,b+R),y+=b}}if(y){var a=Me(v>>>0);if(!t.hasNameForId(s,a)){var I=r(y,"."+a,void 0,s);t.insertRules(s,a,I)}i.push(a)}}return i.join(" ")},e}(),Gt=/^\s*\/\/.*$/gm,Bt=[":","[",".","#"];function Ht(e){var n,t,r,s,i=le,c=i.options,f=c===void 0?le:c,g=i.plugins,m=g===void 0?_e:g,v=new Ct(f),y=[],R=function(b){function a(I){if(I)try{b(I+"}")}catch{}}return function(I,A,M,O,_,J,re,X,K,ne){switch(I){case 1:if(K===0&&A.charCodeAt(0)===64)return b(A+";"),"";break;case 2:if(X===0)return A+"/*|*/";break;case 3:switch(X){case 102:case 112:return b(M[0]+A),"";default:return A+(ne===0?"/*|*/":"")}case-2:A.split("/*|*/}").forEach(a)}}}(function(b){y.push(b)}),j=function(b,a,I){return a===0&&Bt.indexOf(I[t.length])!==-1||I.match(s)?b:"."+n};function E(b,a,I,A){A===void 0&&(A="&");var M=b.replace(Gt,""),O=a&&I?I+" "+a+" { "+M+" }":M;return n=A,t=a,r=new RegExp("\\"+t+"\\b","g"),s=new RegExp("(\\"+t+"\\b){2,}"),v(I||!a?"":a,O)}return v.use([].concat(m,[function(b,a,I){b===2&&I.length&&I[0].lastIndexOf(t)>0&&(I[0]=I[0].replace(r,j))},R,function(b){if(b===-2){var a=y;return y=[],a}}])),E.hash=m.length?m.reduce(function(b,a){return a.name||me(15),fe(b,a.name)},5381).toString():"",E}var ot=Y.createContext();ot.Consumer;var st=Y.createContext(),Wt=(st.Consumer,new ke),ze=Ht();function at(){return Y.useContext(ot)||Wt}function it(){return Y.useContext(st)||ze}var Ut=function(){function e(n,t){var r=this;this.inject=function(s,i){i===void 0&&(i=ze);var c=r.name+i.hash;s.hasNameForId(r.id,c)||s.insertRules(r.id,c,i(r.rules,c,"@keyframes"))},this.toString=function(){return me(12,String(r.name))},this.name=n,this.id="sc-keyframes-"+n,this.rules=t}return e.prototype.getName=function(n){return n===void 0&&(n=ze),this.name+n.hash},e}(),qt=/([A-Z])/,Xt=/([A-Z])/g,Zt=/^ms-/,Qt=function(e){return"-"+e.toLowerCase()};function Ze(e){return qt.test(e)?e.replace(Xt,Qt).replace(Zt,"-ms-"):e}var Qe=function(e){return e==null||e===!1||e===""};function pe(e,n,t,r){if(Array.isArray(e)){for(var s,i=[],c=0,f=e.length;c<f;c+=1)(s=pe(e[c],n,t,r))!==""&&(Array.isArray(s)?i.push.apply(i,s):i.push(s));return i}if(Qe(e))return"";if(Le(e))return"."+e.styledComponentId;if(be(e)){if(typeof(m=e)!="function"||m.prototype&&m.prototype.isReactComponent||!n)return e;var g=e(n);return process.env.NODE_ENV!=="production"&&Fe.isElement(g)&&console.warn(je(e)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),pe(g,n,t,r)}var m;return e instanceof Ut?t?(e.inject(t,r),e.getName(r)):e:De(e)?function v(y,R){var j,E,b=[];for(var a in y)y.hasOwnProperty(a)&&!Qe(y[a])&&(Array.isArray(y[a])&&y[a].isCss||be(y[a])?b.push(Ze(a)+":",y[a],";"):De(y[a])?b.push.apply(b,v(y[a],a)):b.push(Ze(a)+": "+(j=a,(E=y[a])==null||typeof E=="boolean"||E===""?"":typeof E!="number"||E===0||j in Et||j.startsWith("--")?String(E).trim():E+"px")+";"));return R?[R+" {"].concat(b,["}"]):b}(e):e.toString()}var Je=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ct(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];return be(e)||De(e)?Je(pe(Ue(_e,[e].concat(t)))):t.length===0&&e.length===1&&typeof e[0]=="string"?e:Je(pe(Ue(e,t)))}var Ke=/invalid hook call/i,Ce=new Set,lt=function(e,n){if(process.env.NODE_ENV!=="production"){var t="The component "+e+(n?' with the id of "'+n+'"':"")+` has been created dynamically.
|
|
62
|
+
You may see this warning because you've called styled inside another component.
|
|
63
|
+
To resolve this only create new StyledComponents outside of any render method and function component.`,r=console.error;try{var s=!0;console.error=function(i){if(Ke.test(i))s=!1,Ce.delete(t);else{for(var c=arguments.length,f=new Array(c>1?c-1:0),g=1;g<c;g++)f[g-1]=arguments[g];r.apply(void 0,[i].concat(f))}},Y.useRef(),s&&!Ce.has(t)&&(console.warn(t),Ce.add(t))}catch(i){Ke.test(i.message)&&Ce.delete(t)}finally{console.error=r}}},ut=function(e,n,t){return t===void 0&&(t=le),e.theme!==t.theme&&e.theme||n||t.theme},Jt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Kt=/(^-|-$)/g;function Ie(e){return e.replace(Jt,"-").replace(Kt,"")}var dt=function(e){return Me(rt(e)>>>0)};function Ee(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Ve=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},er=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function tr(e,n,t){var r=e[t];Ve(n)&&Ve(r)?ft(r,n):e[t]=n}function ft(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];for(var s=0,i=t;s<i.length;s++){var c=i[s];if(Ve(c))for(var f in c)er(f)&&tr(e,c[f],f)}return e}var Ge=Y.createContext();Ge.Consumer;var Oe={};function pt(e,n,t){var r=Le(e),s=!Ee(e),i=n.attrs,c=i===void 0?_e:i,f=n.componentId,g=f===void 0?function(A,M){var O=typeof A!="string"?"sc":Ie(A);Oe[O]=(Oe[O]||0)+1;var _=O+"-"+dt("5.3.11"+O+Oe[O]);return M?M+"-"+_:_}(n.displayName,n.parentComponentId):f,m=n.displayName,v=m===void 0?function(A){return Ee(A)?"styled."+A:"Styled("+je(A)+")"}(e):m,y=n.displayName&&n.componentId?Ie(n.displayName)+"-"+n.componentId:n.componentId||g,R=r&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,j=n.shouldForwardProp;r&&e.shouldForwardProp&&(j=n.shouldForwardProp?function(A,M,O){return e.shouldForwardProp(A,M,O)&&n.shouldForwardProp(A,M,O)}:e.shouldForwardProp);var E,b=new Yt(t,y,r?e.componentStyle:void 0),a=b.isStatic&&c.length===0,I=function(A,M){return function(O,_,J,re){var X=O.attrs,K=O.componentStyle,ne=O.defaultProps,se=O.foldedComponentIds,W=O.shouldForwardProp,Z=O.styledComponentId,ee=O.target,H=function(w,o,P){w===void 0&&(w=le);var l=oe({},o,{theme:w}),z={};return P.forEach(function(T){var N,C,L,d=T;for(N in be(d)&&(d=d(l)),d)l[N]=z[N]=N==="className"?(C=z[N],L=d[N],C&&L?C+" "+L:C||L):d[N]}),[l,z]}(ut(_,Y.useContext(Ge),ne)||le,_,X),ue=H[0],Q=H[1],U=function(w,o,P,l){var z=at(),T=it(),N=o?w.generateAndInjectStyles(le,z,T):w.generateAndInjectStyles(P,z,T);return process.env.NODE_ENV!=="production"&&!o&&l&&l(N),N}(K,re,ue,process.env.NODE_ENV!=="production"?O.warnTooManyClasses:void 0),ae=J,ie=Q.$as||_.$as||Q.as||_.as||ee,de=Ee(ie),h=Q!==_?oe({},_,{},Q):_,u={};for(var p in h)p[0]!=="$"&&p!=="as"&&(p==="forwardedAs"?u.as=h[p]:(W?W(p,Be.isPropValid,ie):!de||Be.isPropValid(p))&&(u[p]=h[p]));return _.style&&Q.style!==_.style&&(u.style=oe({},_.style,{},Q.style)),u.className=Array.prototype.concat(se,Z,U!==Z?U:null,_.className,Q.className).filter(Boolean).join(" "),u.ref=ae,Y.createElement(ie,u)}(E,A,M,a)};return I.displayName=v,(E=Y.forwardRef(I)).attrs=R,E.componentStyle=b,E.displayName=v,E.shouldForwardProp=j,E.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):_e,E.styledComponentId=y,E.target=r?e.target:e,E.withComponent=function(A){var M=n.componentId,O=function(J,re){if(J==null)return{};var X,K,ne={},se=Object.keys(J);for(K=0;K<se.length;K++)X=se[K],re.indexOf(X)>=0||(ne[X]=J[X]);return ne}(n,["componentId"]),_=M&&M+"-"+(Ee(A)?A:Ie(je(A)));return pt(A,oe({},O,{attrs:R,componentId:_}),t)},Object.defineProperty(E,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(A){this._foldedDefaultProps=r?ft({},e.defaultProps,A):A}}),process.env.NODE_ENV!=="production"&&(lt(v,y),E.warnTooManyClasses=function(A,M){var O={},_=!1;return function(J){if(!_&&(O[J]=!0,Object.keys(O).length>=200)){var re=M?' with the id of "'+M+'"':"";console.warn("Over 200 classes were generated for component "+A+re+`.
|
|
64
|
+
Consider using the attrs method, together with a style object for frequently changed styles.
|
|
65
|
+
Example:
|
|
66
|
+
const Component = styled.div.attrs(props => ({
|
|
67
|
+
style: {
|
|
68
|
+
background: props.background,
|
|
69
|
+
},
|
|
70
|
+
}))\`width: 100%;\`
|
|
71
|
+
|
|
72
|
+
<Component />`),_=!0,O={}}}}(v,y)),Object.defineProperty(E,"toString",{value:function(){return"."+E.styledComponentId}}),s&>.m(E,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),E}var et=function(e){return function n(t,r,s){if(s===void 0&&(s=le),!Fe.isValidElementType(r))return me(1,String(r));var i=function(){return t(r,s,ct.apply(void 0,arguments))};return i.withConfig=function(c){return n(t,r,oe({},s,{},c))},i.attrs=function(c){return n(t,r,oe({},s,{attrs:Array.prototype.concat(s.attrs,c).filter(Boolean)}))},i}(pt,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){et[e]=et(e)});var rr=function(){function e(t,r){this.rules=t,this.componentId=r,this.isStatic=nt(t),ke.registerId(this.componentId+1)}var n=e.prototype;return n.createStyles=function(t,r,s,i){var c=i(pe(this.rules,r,s,i).join(""),""),f=this.componentId+t;s.insertRules(f,f,c)},n.removeStyles=function(t,r){r.clearRules(this.componentId+t)},n.renderStyles=function(t,r,s,i){t>2&&ke.registerId(this.componentId+t),this.removeStyles(t,s),this.createStyles(t,r,s,i)},e}();function nr(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];var s=ct.apply(void 0,[e].concat(t)),i="sc-global-"+dt(JSON.stringify(s)),c=new rr(s,i);function f(m){var v=at(),y=it(),R=Y.useContext(Ge),j=Y.useRef(v.allocateGSInstance(i)).current;return process.env.NODE_ENV!=="production"&&Y.Children.count(m.children)&&console.warn("The global style component "+i+" was given child JSX. createGlobalStyle does not render children."),process.env.NODE_ENV!=="production"&&s.some(function(E){return typeof E=="string"&&E.indexOf("@import")!==-1})&&console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."),v.server&&g(j,m,v,R,y),Y.useLayoutEffect(function(){if(!v.server)return g(j,m,v,R,y),function(){return c.removeStyles(j,v)}},[j,m,v,R,y]),null}function g(m,v,y,R,j){if(c.isStatic)c.renderStyles(m,_t,y,j);else{var E=oe({},v,{theme:ut(v,R,f.defaultProps)});c.renderStyles(m,E,y,j)}}return process.env.NODE_ENV!=="production"&<(i),Y.memo(f)}process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
73
|
+
Perhaps you're looking to import 'styled-components/native'?
|
|
74
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,window["__styled-components-init__"]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
75
|
+
|
|
76
|
+
See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]+=1);const or=nr`
|
|
77
|
+
* {
|
|
78
|
+
--size-small: ${e=>q.getSizeValueWithUnits(e.theme,"small")};
|
|
79
|
+
--size-medium: ${e=>q.getSizeValueWithUnits(e.theme,"medium")};
|
|
80
|
+
--size-large: ${e=>q.getSizeValueWithUnits(e.theme,"large")};
|
|
81
|
+
--disabled-text: ${e=>bt(e.theme)};
|
|
82
|
+
--disabled-bg: ${e=>yt(e.theme)};
|
|
83
|
+
|
|
84
|
+
box-sizing: border-box;
|
|
85
|
+
font-family: ${e=>{var n,t;return(t=(n=e.theme)==null?void 0:n.typography)==null?void 0:t.fontFamily}};
|
|
86
|
+
-webkit-tap-highlight-color: transparent;
|
|
87
|
+
|
|
88
|
+
& i {
|
|
89
|
+
font-family: "Font Awesome 5 Free";
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
& .lnc-doc {
|
|
93
|
+
& th {
|
|
94
|
+
background-color: ${e=>q.getColorRgbaValue(e.theme,"Background","default","enabled","background")} !important;
|
|
95
|
+
color: ${e=>q.getColorRgbaValue(e.theme,"Text","default","enabled","text")} !important;
|
|
96
|
+
}
|
|
97
|
+
& td {
|
|
98
|
+
background-color: ${e=>q.getColorRgbaValue(e.theme,"Background","default","enabled","background")} !important;
|
|
99
|
+
color: ${e=>q.getColorRgbaValue(e.theme,"Text","default","enabled","text")} !important;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
& .sbdocs {
|
|
104
|
+
background-color: ${e=>q.getColorRgbaValue(e.theme,"Background","default","enabled","background")} !important;
|
|
105
|
+
color: ${e=>q.getColorRgbaValue(e.theme,"Text","default","enabled","text")} !important;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
body {
|
|
109
|
+
position: relative;
|
|
110
|
+
background-color: ${e=>q.getColorRgbaValue(e.theme,"Background","default","enabled","background")};
|
|
111
|
+
color: ${e=>q.getColorRgbaValue(e.theme,"Text","default","enabled","text")};
|
|
112
|
+
}
|
|
113
|
+
`,ht=Y.createContext(),sr=()=>Y.useContext(ht),mt=({theme:e="Lanaco Light",children:n})=>{const[t,r]=Y.useState(()=>{var i;return typeof e=="string"?(i=q.themes)==null?void 0:i.find(c=>c.name==e):e});Y.useEffect(()=>{var i;r(typeof e=="string"?(i=q.themes)==null?void 0:i.find(c=>c.name==e):e)},[e]);const s=i=>{var c;r(typeof e=="string"?(c=q.themes)==null?void 0:c.find(f=>f.name==e):e)};return Te.jsx(ht.Provider,{value:{theme:t,switchTheme:s},children:Te.jsxs(vt.ThemeProvider,{theme:t,children:[Te.jsx(or,{theme:t}),n]})})};mt.propTypes={theme:Ne.PropTypes.oneOfType([Ne.PropTypes.string,Ne.PropTypes.object])};exports.default=mt;exports.useTheme=sr;
|