@oliasoft-open-source/react-ui-library 4.7.6 → 4.7.8-beta-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{index-CbZ_B_tn.js → index-B2uOOxtJ.js} +1126 -999
- package/dist/assets/{index-Oe0PlEED.css → index-BpSdrNXy.css} +316 -316
- package/dist/global.css +576 -576
- package/dist/index.html +1 -1
- package/dist/index.js +1266 -1165
- package/dist/index.js.map +1 -1
- package/dist/storybook/assets/Color-KGDBMAHA-DpR5uFO5.js +1 -0
- package/dist/storybook/assets/DocsRenderer-PKQXORMH-B6MH61AH.js +1 -0
- package/dist/storybook/assets/{accordion-6ouB0WTt.js → accordion-BiuI_LCA.js} +1 -1
- package/dist/storybook/assets/{accordion.stories-YuQaNHcr.js → accordion.stories-CQnBN3c-.js} +2 -2
- package/dist/storybook/assets/{actions-CZK3mphC.js → actions-B-KaMy86.js} +1 -1
- package/dist/storybook/assets/{actions.stories-FOK1cLb3.js → actions.stories-0QucBdvR.js} +1 -1
- package/dist/storybook/assets/{afe.stories-CT81gs6M.js → afe.stories-BLazOV5O.js} +2 -2
- package/dist/storybook/assets/{badge.stories-D30jHm96.js → badge.stories-BfzclMwL.js} +1 -1
- package/dist/storybook/assets/{blowout.stories-CJrNKpKP.js → blowout.stories-BzyDpAFh.js} +1 -1
- package/dist/storybook/assets/button-fAxt_G4d.css +1 -0
- package/dist/storybook/assets/{button-group-Ai4DXqNr.js → button-group-BWm0fImX.js} +1 -1
- package/dist/storybook/assets/{button-group.stories-incmyYJ-.js → button-group.stories-UzL8Rsdd.js} +1 -1
- package/dist/storybook/assets/button-kgPRviUL.js +1 -0
- package/dist/storybook/assets/{button.stories-Bcy7mnLs.js → button.stories-C7sh19Zp.js} +2 -2
- package/dist/storybook/assets/{buttons-and-links-CtOaPZlv.js → buttons-and-links-DYIhOGVX.js} +1 -1
- package/dist/storybook/assets/{card.stories-Bn6LpucB.js → card.stories-CsTB0DuM.js} +1 -1
- package/dist/storybook/assets/{casing-loads.stories-DQy8gjj6.js → casing-loads.stories-Dm_vS7PB.js} +2 -2
- package/dist/storybook/assets/{cell.stories-ChfAWqCt.js → cell.stories-C5Y7g7zh.js} +2 -2
- package/dist/storybook/assets/{check-box-CaSrhzev.js → check-box-BtCGePRy.js} +1 -1
- package/dist/storybook/assets/{check-box.stories-BAH78tMZ.js → check-box.stories-C_7Z7Ss6.js} +1 -1
- package/dist/storybook/assets/{chunk-HLWAVYOI-CkQdzq8g.js → chunk-HLWAVYOI-BNSvDNcU.js} +1 -1
- package/dist/storybook/assets/color-7xFSipNl.js +25 -0
- package/dist/storybook/assets/{column.stories-JMvj3_fr.js → column.stories-DDTHFELF.js} +1 -1
- package/dist/storybook/assets/{dialog-vClt2ahZ.js → dialog-OKqVW3Np.js} +1 -1
- package/dist/storybook/assets/drawer-BJ2m_mJk.js +3 -0
- package/dist/storybook/assets/drawer-DhrjYsQu.css +1 -0
- package/dist/storybook/assets/drawer.stories-mFNpjCH9.js +113 -0
- package/dist/storybook/assets/{empty.stories-G8jeIfLL.js → empty.stories-DDYvxBwV.js} +1 -1
- package/dist/storybook/assets/{field-C5_fLDpy.js → field-HrLaMLbx.js} +1 -1
- package/dist/storybook/assets/{field.stories-D5Mej0Bt.js → field.stories-BBqJzdkf.js} +1 -1
- package/dist/storybook/assets/{file-button.stories-DePr8MKB.js → file-button.stories-Bs2Pxt4H.js} +1 -1
- package/dist/storybook/assets/{file-input-BZecnRBy.js → file-input-DF5MV4Ht.js} +1 -1
- package/dist/storybook/assets/{file-input.stories-Br89AkVv.js → file-input.stories-TDwXvcE0.js} +1 -1
- package/dist/storybook/assets/{flex.stories-sSdg0ChR.js → flex.stories-DBeXsenx.js} +1 -1
- package/dist/storybook/assets/footer.stories-DWHZZjiM.js +3 -0
- package/dist/storybook/assets/form.stories-DJOs_h5K.js +49 -0
- package/dist/storybook/assets/formation.stories-C4fb2S1i.js +74 -0
- package/dist/storybook/assets/{grid-B6LFPf51.js → grid-DRkC-bt8.js} +1 -1
- package/dist/storybook/assets/{grid.stories-BhjMGl59.js → grid.stories-DqjhHHwX.js} +1 -1
- package/dist/storybook/assets/{heading-NkLgQYoP.js → heading-CRNoBc7q.js} +1 -1
- package/dist/storybook/assets/{heading.stories-nI_cFnAN.js → heading.stories-DahFxeiX.js} +1 -1
- package/dist/storybook/assets/{help-icon-41R-Z9N1.js → help-icon-Buhx5nl6.js} +1 -1
- package/dist/storybook/assets/{help-icon.stories-DBYh0YX7.js → help-icon.stories-DbmZ1fgP.js} +1 -1
- package/dist/storybook/assets/icon-BSFY3vDO.js +8 -0
- package/dist/storybook/assets/{icon.stories-B-tKaIKA.js → icon.stories-fnZUR-LK.js} +1 -1
- package/dist/storybook/assets/iframe-BU_I1db1.js +2 -0
- package/dist/storybook/assets/index-CM4hTxj3.js +1 -0
- package/dist/storybook/assets/{index-Cf2IDQZ4.js → index-CsM3zQRV.js} +95 -95
- package/dist/storybook/assets/{index-Be0hXiyp.js → index-DMAnyMX5.js} +1 -1
- package/dist/storybook/assets/index-DaLCDjg_.js +14 -0
- package/dist/storybook/assets/{index.es-D2piFfFj.js → index.es-DazXb-ul.js} +4 -4
- package/dist/storybook/assets/inheritsLoose-DP0QEDDI.js +1 -0
- package/dist/storybook/assets/input-DD7t4kHm.css +1 -0
- package/dist/storybook/assets/input-DFNY9YDm.js +1 -0
- package/dist/storybook/assets/{input-group.stories-BmeUtBOK.js → input-group.stories-bmCjov4W.js} +2 -2
- package/dist/storybook/assets/{input-validation-U3o9_8IY.js → input-validation-BB4l8snm.js} +2 -2
- package/dist/storybook/assets/{input.stories-BruLeJ44.js → input.stories-EZ7qJt4K.js} +1 -1
- package/dist/storybook/assets/{inputs-gP7hGRtM.js → inputs-80PxcbVR.js} +2 -2
- package/dist/storybook/assets/{label-hiSz3I8H.js → label-CqmyC9he.js} +1 -1
- package/dist/storybook/assets/{label.stories-Cyv5jBAO.js → label.stories-C0AO5F1a.js} +1 -1
- package/dist/storybook/assets/layout-forms-BCe8BOb4.js +16 -0
- package/dist/storybook/assets/{layout-general-Bw291PmI.js → layout-general-5Un7lfT-.js} +2 -2
- package/dist/storybook/assets/{list-DYNKqvUR.js → list-B44UGuAn.js} +1 -1
- package/dist/storybook/assets/{list.stories-BX67BegD.js → list.stories-C2CqtSs9.js} +2 -2
- package/dist/storybook/assets/{list.stories-data-D_ZfzaxE.js → list.stories-data-ltVdQHBq.js} +1 -1
- package/dist/storybook/assets/{loader.stories-DjrwwZ15.js → loader.stories-UXvpup_C.js} +1 -1
- package/dist/storybook/assets/{menu.stories-QTzp0Z7C.js → menu.stories-DlIqr_2d.js} +2 -2
- package/dist/storybook/assets/message-Cl3kn7ZD.css +1 -0
- package/dist/storybook/assets/message-Y48EomV-.js +1 -0
- package/dist/storybook/assets/{message.stories-Czui5Ym7.js → message.stories-B26-7Hy3.js} +1 -1
- package/dist/storybook/assets/meta-content-B6Hd3SEO.js +9 -0
- package/dist/storybook/assets/meta-content-DnZPPeTF.css +1 -0
- package/dist/storybook/assets/{modal.stories-DAxDpo0A.js → modal.stories-BCr3l8ig.js} +2 -2
- package/dist/storybook/assets/{number-input-uQOVHv2N.js → number-input-B6I6KkcP.js} +1 -1
- package/dist/storybook/assets/number-input.stories-DbHM32XI.js +107 -0
- package/dist/storybook/assets/{option-dropdown.stories-ByLG631x.js → option-dropdown.stories-D084pZKJ.js} +1 -1
- package/dist/storybook/assets/{padding-and-spacing-DLeCWmND.js → padding-and-spacing-Cl2UXS7W.js} +2 -2
- package/dist/storybook/assets/{page.stories-br9ia4zp.js → page.stories-6eeuJkzD.js} +1 -1
- package/dist/storybook/assets/{pagination-BtguPxeR.js → pagination-C_0Lfz0Y.js} +1 -1
- package/dist/storybook/assets/{pagination.stories-CgG4wp8P.js → pagination.stories-DvMkTj1z.js} +2 -2
- package/dist/storybook/assets/{pop-confirm.stories-CZpYmUBz.js → pop-confirm.stories-Do64y_r4.js} +1 -1
- package/dist/storybook/assets/{popover-DgUpTRMk.js → popover-IH58FliU.js} +1 -1
- package/dist/storybook/assets/popover.stories-BzD7x3ao.js +10 -0
- package/dist/storybook/assets/{preview-Dml2wSQG.js → preview-BEG33Q1N.js} +2 -2
- package/dist/storybook/assets/preview-Cj6YVsXb.js +2 -0
- package/dist/storybook/assets/projects.stories-D4s4oX-e.js +47 -0
- package/dist/storybook/assets/{radio-button-C_cV5TWA.js → radio-button-YBwYcMaM.js} +1 -1
- package/dist/storybook/assets/{radio-button.stories-BNE-U9db.js → radio-button.stories-CGJnfCk-.js} +1 -1
- package/dist/storybook/assets/react-router-dom-Ck2Y_Fzc.js +8 -0
- package/dist/storybook/assets/{reservoirs.stories-ux3hZbkX.js → reservoirs.stories-C_ygapwp.js} +2 -2
- package/dist/storybook/assets/{rich-text-input-DPMWElGY.css → rich-text-input-dDjxXFl-.css} +1 -1
- package/dist/storybook/assets/rich-text-input.stories-KYizJ77A.js +256 -0
- package/dist/storybook/assets/{row-4iAGREkV.js → row-Bmiy2Lh0.js} +1 -1
- package/dist/storybook/assets/{row.stories-CG6Eipay.js → row.stories-BlGnjdju.js} +2 -2
- package/dist/storybook/assets/select-BFv5KuOX.js +40 -0
- package/dist/storybook/assets/select-H-9tdhwc.css +1 -0
- package/dist/storybook/assets/{select.stories-CX_B6BvR.js → select.stories-Bwd7kuF0.js} +2 -2
- package/dist/storybook/assets/{side-bar-ChOjPNLR.js → side-bar-BimJX1XV.js} +4 -4
- package/dist/storybook/assets/side-bar-auov230-.css +1 -0
- package/dist/storybook/assets/{side-bar.stories-BupidZk5.js → side-bar.stories-CgYaKEGJ.js} +1 -1
- package/dist/storybook/assets/{site.stories-C1GnbK5P.js → site.stories-Dg8J08Ee.js} +2 -2
- package/dist/storybook/assets/{slider-gZmYlxxz.js → slider-BeJzxarD.js} +4 -4
- package/dist/storybook/assets/{slider.stories-CY4GxD4Y.js → slider.stories-Szx4exmO.js} +2 -2
- package/dist/storybook/assets/{smart-upload-modal.stories-BrsVuS4a.js → smart-upload-modal.stories-nGBYTYDh.js} +1 -1
- package/dist/storybook/assets/{spacer.stories-D7Q45uBk.js → spacer.stories-bYMCDQ_z.js} +1 -1
- package/dist/storybook/assets/styled-components.browser.esm-BQ9GQzDc.js +2 -0
- package/dist/storybook/assets/table-BFgZ2w5W.js +86 -0
- package/dist/storybook/assets/table-C9uAiJu6.css +1 -0
- package/dist/storybook/assets/{table.stories-BiBivAvh.js → table.stories-D6NToWT4.js} +2 -2
- package/dist/storybook/assets/table.stories-data-DcBBxO_k.js +1 -0
- package/dist/storybook/assets/text-link.stories-BQAkVO-W.js +14 -0
- package/dist/storybook/assets/textarea-D-R3vavM.js +1 -0
- package/dist/storybook/assets/textarea-H-YTEwr8.css +1 -0
- package/dist/storybook/assets/{textarea.stories-aRLEoDHg.js → textarea.stories-CrZgmMxl.js} +1 -1
- package/dist/storybook/assets/{title.stories-CfdJbgvT.js → title.stories-7ZXTmMf-.js} +2 -2
- package/dist/storybook/assets/{toaster-DJeREs3e.js → toaster-BoBcvmf9.js} +1 -1
- package/dist/storybook/assets/{toaster.stories-QjvljKdT.js → toaster.stories-LvqSpnTb.js} +1 -1
- package/dist/storybook/assets/{toggle-Bo-JPbUP.js → toggle-CBpNgTrm.js} +1 -1
- package/dist/storybook/assets/{toggle.stories-BYrikgrA.js → toggle.stories-mjk0JIle.js} +1 -1
- package/dist/storybook/assets/{tooltip.test-case.stories-C74mKGrI.js → tooltip.test-case.stories-COOtdxxm.js} +1 -1
- package/dist/storybook/assets/{top-bar-DG4ok0uF.js → top-bar-kBVQ5xF2.js} +1 -1
- package/dist/storybook/assets/top-bar.stories-BCX6zjmD.js +21 -0
- package/dist/storybook/assets/{top-bar.testcase.stories-DzsYUZIx.js → top-bar.testcase.stories-DiRFCAQn.js} +1 -1
- package/dist/storybook/assets/{tree.stories-RtuZpYXn.js → tree.stories-D48X6p9d.js} +1 -1
- package/dist/storybook/assets/unit-input.stories-BuWI2HbG.js +295 -0
- package/dist/storybook/assets/unit-table.stories-B6Y5A-a5.js +152 -0
- package/dist/storybook/iframe.html +1 -1
- package/dist/storybook/index.json +1 -1
- package/dist/storybook/project.json +1 -1
- package/dist/storybook/sb-addons/interactions-2/manager-bundle.js +1 -0
- package/dist/storybook/sb-manager/globals-runtime.js +1 -1
- package/dist/storybook/sb-manager/globals.js +48 -0
- package/dist/storybook/sb-preview/runtime.js +1 -0
- package/package.json +1 -1
- package/dist/404.html +0 -1
- package/dist/storybook/assets/Color-KGDBMAHA-C0EpwEFf.js +0 -1
- package/dist/storybook/assets/DocsRenderer-PKQXORMH-CWe5JIRI.js +0 -1
- package/dist/storybook/assets/button-BpFIj2Vw.css +0 -1
- package/dist/storybook/assets/button-C1sV-0mR.js +0 -1
- package/dist/storybook/assets/color-eaylxLAo.js +0 -25
- package/dist/storybook/assets/drawer-DSS8yvvp.js +0 -3
- package/dist/storybook/assets/drawer-v-B4gIC0.css +0 -1
- package/dist/storybook/assets/drawer.stories-D6FBs1_r.js +0 -113
- package/dist/storybook/assets/extends-CF3RwP-h.js +0 -1
- package/dist/storybook/assets/footer.stories-BM5UBN62.js +0 -3
- package/dist/storybook/assets/form.stories-CYcggA-f.js +0 -49
- package/dist/storybook/assets/formation.stories-NDB_Sbor.js +0 -74
- package/dist/storybook/assets/icon-BP4BO6-k.js +0 -8
- package/dist/storybook/assets/iframe-WLuE3PcW.js +0 -2
- package/dist/storybook/assets/index-CWz-hU-f.js +0 -14
- package/dist/storybook/assets/index-CXmS_Aty.js +0 -1
- package/dist/storybook/assets/inheritsLoose-DR8r8Ogv.js +0 -1
- package/dist/storybook/assets/input-BW9trNAW.js +0 -1
- package/dist/storybook/assets/input-WN7SK0fa.css +0 -1
- package/dist/storybook/assets/layout-forms-r2wYyx-8.js +0 -16
- package/dist/storybook/assets/message-B7G1ESkC.js +0 -1
- package/dist/storybook/assets/message-nw5WQq6S.css +0 -1
- package/dist/storybook/assets/meta-content-B1HsACrT.css +0 -1
- package/dist/storybook/assets/meta-content-BE7pulye.js +0 -9
- package/dist/storybook/assets/number-input.stories-CFTNLnHw.js +0 -105
- package/dist/storybook/assets/popover.stories-CtaFGXR_.js +0 -10
- package/dist/storybook/assets/preview-BjyexbB3.js +0 -2
- package/dist/storybook/assets/projects.stories-BSAMs8RG.js +0 -47
- package/dist/storybook/assets/react-router-dom-CMITYWBH.js +0 -8
- package/dist/storybook/assets/rich-text-input.stories-savcIJ5B.js +0 -256
- package/dist/storybook/assets/select-Byh1FIvP.css +0 -1
- package/dist/storybook/assets/select-Z-GCZ-pY.js +0 -40
- package/dist/storybook/assets/side-bar-DvwMCSK0.css +0 -1
- package/dist/storybook/assets/styled-components.browser.esm-Bf0q9Yjk.js +0 -2
- package/dist/storybook/assets/table-CaaSoHex.js +0 -86
- package/dist/storybook/assets/table-CyYpP6Fs.css +0 -1
- package/dist/storybook/assets/table.stories-data-DwfKQW7P.js +0 -1
- package/dist/storybook/assets/text-link.stories-BsuVBOWo.js +0 -14
- package/dist/storybook/assets/textarea-BV7xWEdt.js +0 -1
- package/dist/storybook/assets/textarea-DapBtyYV.css +0 -1
- package/dist/storybook/assets/top-bar.stories-BI4a_ekv.js +0 -21
- package/dist/storybook/assets/unit-input.stories-BSWm9641.js +0 -290
- package/dist/storybook/assets/unit-table.stories-CgF-UOP3.js +0 -150
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as T,o as l,S as c,l as H,A as L,v as B,w as b,b as S,F as u,J as C,z as h,a as d,y as g,D as y,x as F,C as I,E as k,c as x,R as A,d as P,e as R,f as W,j as f,g as D,W as E,k as N,T as q,L as v,H as w,h as O,I as U,B as j,m as z,M as G,n as J,r as K,p as M,q as Q,s as V,t as X,u as Y,_ as Z,G as _,K as $,V as aa,N as sa,O as oa,P as ta,Q as ra,U as ea,X as ia,Y as pa}from"./index-Cf2IDQZ4.js";import"./iframe-WLuE3PcW.js";import"../sb-preview/runtime.js";import"./index-DhsZuJvc.js";import"./index-CUZDtIZe.js";import"./extends-CF3RwP-h.js";import"./assertThisInitialized-B9jnkVVz.js";import"./inheritsLoose-DR8r8Ogv.js";import"./index-D6rZ4wEC.js";export{T as A,l as ActionBar,c as Bar,H as Blockquote,L as Button,B as Code,b as DL,S as Div,u as EmptyTabContent,C as ErrorFormatter,h as FlexBar,d as Form,g as H1,y as H2,F as H3,I as H4,k as H5,x as H6,A as HR,P as IconButton,R as Img,W as LI,f as Link,D as ListItem,E as Loader,N as OL,q as P,v as Pre,w as ResetWrapper,O as ScrollArea,U as Separator,j as Span,z as SyntaxHighlighter,G as TT,J as TabBar,K as TabButton,M as Table,Q as Tabs,V as TabsState,X as TooltipLinkList,Y as TooltipNote,Z as UL,_ as WithTooltip,$ as WithTooltipPure,aa as Zoom,sa as codeCommon,oa as components,ta as createCopyToClipboardFunction,ra as getStoryHref,ea as icons,ia as nameSpaceClassNames,pa as withReset};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function e(t,o){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},e(t,o)}function p(t,o){t.prototype=Object.create(o.prototype),t.prototype.constructor=t,e(t,o)}export{p as _,e as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./jsx-runtime-eps93zm2.js";import{r as o}from"./index-DhsZuJvc.js";import{c as C}from"./index-Bk2sglWO.js";import{D}from"./disabled-context-rmpd7YJS.js";import{i as r}from"./types-UmZ4Y_CR.js";import{T as E}from"./tooltip-1V7clEnw.js";const N="_inputInTable_jnwnh_1",W="_inputHover_jnwnh_13",L="_inputFocus_jnwnh_18",M="_inputError_jnwnh_25",S="_inputWarning_jnwnh_26",H="_inputDisabled_jnwnh_61",P="_hideScrollbars_jnwnh_67",R="_input_jnwnh_1",k="_isInTable_jnwnh_100",z="_small_jnwnh_124",B="_error_jnwnh_130",K="_warning_jnwnh_147",A="_right_jnwnh_170",G="_groupOrderFirst_jnwnh_173",J="_groupOrderMiddle_jnwnh_174",Q="_groupOrderLast_jnwnh_175",e={inputInTable:N,inputHover:W,inputFocus:L,inputError:M,inputWarning:S,inputDisabled:H,hideScrollbars:P,input:R,isInTable:k,small:z,error:B,warning:K,right:A,groupOrderFirst:G,groupOrderMiddle:J,groupOrderLast:Q},U=o.forwardRef(({error:l=null,tooltip:a=null,isInTable:i,width:f=void 0,small:p=!1,onChange:c=()=>{},placeholder:m="",value:_="",onKeyPress:h=()=>{},onFocus:v=()=>{},onBlur:g=()=>{},onPaste:w=()=>{},name:b=void 0,type:j="text",tabIndex:q=0,disabled:V=!1,right:x=!1,warning:u=null,groupOrder:n=null,maxTooltipWidth:I=void 0,testId:O=void 0,size:s=null},T)=>{const y=o.useContext(D),F=(()=>{if(n)switch(n){case"first":return e.groupOrderFirst;case"last":return e.groupOrderLast;default:return e.groupOrderMiddle}return""})(),d=f||(s?"auto":"100%");return t.jsx("div",{style:{width:d},className:F,children:t.jsx(E,{error:!!l,warning:!!u,text:a||l||u,enabled:a&&r(a)||l&&r(l)||u&&r(u)||!1,maxWidth:I,display:"block",placement:"bottom-center",children:t.jsx("input",{ref:T,type:j||"text",size:s||20,placeholder:m??"",value:_??"",onChange:c,onKeyPress:h,onFocus:v,onBlur:g,onPaste:w,name:b,tabIndex:q,autoComplete:"off",disabled:V||y,className:C(e.input,l?e.error:u?e.warning:"",x?e.right:"",p?e.small:"",i?e.isInTable:""),style:{width:d},"data-testid":O})})})});U.__docgenInfo={description:"",methods:[],displayName:"Input",props:{error:{defaultValue:{value:"null",computed:!1},required:!1},tooltip:{defaultValue:{value:"null",computed:!1},required:!1},width:{defaultValue:{value:"undefined",computed:!0},required:!1},small:{defaultValue:{value:"false",computed:!1},required:!1},onChange:{defaultValue:{value:"() => {}",computed:!1},required:!1},placeholder:{defaultValue:{value:"''",computed:!1},required:!1},value:{defaultValue:{value:"''",computed:!1},required:!1},onKeyPress:{defaultValue:{value:"() => {}",computed:!1},required:!1},onFocus:{defaultValue:{value:"() => {}",computed:!1},required:!1},onBlur:{defaultValue:{value:"() => {}",computed:!1},required:!1},onPaste:{defaultValue:{value:"() => {}",computed:!1},required:!1},name:{defaultValue:{value:"undefined",computed:!0},required:!1},type:{defaultValue:{value:"'text'",computed:!1},required:!1},tabIndex:{defaultValue:{value:"0",computed:!1},required:!1},disabled:{defaultValue:{value:"false",computed:!1},required:!1},right:{defaultValue:{value:"false",computed:!1},required:!1},warning:{defaultValue:{value:"null",computed:!1},required:!1},groupOrder:{defaultValue:{value:"null",computed:!1},required:!1},maxTooltipWidth:{defaultValue:{value:"undefined",computed:!0},required:!1},testId:{defaultValue:{value:"undefined",computed:!0},required:!1},size:{defaultValue:{value:"null",computed:!1},required:!1}}};export{U as I};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._inputInTable_jnwnh_1{background-color:transparent;border-radius:inherit!important;height:var(--size);min-height:100%}._inputInTable_jnwnh_1:not(:hover){border-color:transparent}._inputInTable_jnwnh_1:not(:focus){box-shadow:none}._inputHover_jnwnh_13{position:relative;border-color:var(--color-border-hover);z-index:2}._inputFocus_jnwnh_18{position:relative;outline:none!important;border-color:var(--color-border-focus)!important;box-shadow:var(--shadow-focus);z-index:3}._inputError_jnwnh_25,._inputWarning_jnwnh_26{position:relative}._inputError_jnwnh_25{z-index:2;border-color:var(--color-border-error);color:var(--color-text-error)!important;background-color:var(--color-background-error-muted)}._inputError_jnwnh_25:hover{border-color:var(--color-border-error-hover)!important}._inputError_jnwnh_25:focus{position:relative;outline:none!important;border-color:var(--color-border-focus)!important;box-shadow:var(--shadow-focus);z-index:3}._inputWarning_jnwnh_26{z-index:1;border-color:var(--color-border-warning);color:var(--color-text-warning)!important;background-color:var(--color-background-warning-muted)}._inputWarning_jnwnh_26:hover{border-color:var(--color-border-warning-hover)!important}._inputWarning_jnwnh_26:focus{position:relative;outline:none!important;border-color:var(--color-border-focus)!important;box-shadow:var(--shadow-focus);z-index:3}._inputDisabled_jnwnh_61{pointer-events:none;background-color:var(--color-background-disabled);color:var(--color-text-muted);box-shadow:none}._hideScrollbars_jnwnh_67{scrollbar-width:none;-ms-overflow-style:none}._hideScrollbars_jnwnh_67::-webkit-scrollbar{display:none}._input_jnwnh_1{margin:0;outline:0;text-align:left;font-family:var(--font-family);padding:var(--padding-input);background:var(--color-background-input);border:1px solid var(--color-border);color:var(--color-text);border-radius:var(--border-radius);transition:box-shadow .1s ease,border-color .1s ease;box-shadow:none;height:var(--size);line-height:var(--line-height);width:100%;font-weight:400;font-style:normal;position:relative;font-variant-numeric:tabular-nums}._input_jnwnh_1::placeholder{color:var(--color-text-placeholder)}._input_jnwnh_1._isInTable_jnwnh_100{background-color:transparent;border-radius:inherit!important;height:var(--size);min-height:100%}._input_jnwnh_1._isInTable_jnwnh_100:not(:hover){border-color:transparent}._input_jnwnh_1._isInTable_jnwnh_100:not(:focus){box-shadow:none}._input_jnwnh_1:hover{position:relative;border-color:var(--color-border-hover);z-index:2}._input_jnwnh_1:focus{position:relative;outline:none!important;border-color:var(--color-border-focus)!important;box-shadow:var(--shadow-focus);z-index:3}._input_jnwnh_1._small_jnwnh_124{font-size:var(--font-size-sm);height:var(--size-sm);padding:var(--padding-input-sm);line-height:var(--size-sm)}._input_jnwnh_1._error_jnwnh_130{position:relative;z-index:2;border-color:var(--color-border-error);color:var(--color-text-error)!important;background-color:var(--color-background-error-muted)}._input_jnwnh_1._error_jnwnh_130:hover{border-color:var(--color-border-error-hover)!important}._input_jnwnh_1._error_jnwnh_130:focus{position:relative;outline:none!important;border-color:var(--color-border-focus)!important;box-shadow:var(--shadow-focus);z-index:3}._input_jnwnh_1._warning_jnwnh_147{position:relative;z-index:1;border-color:var(--color-border-warning);color:var(--color-text-warning)!important;background-color:var(--color-background-warning-muted)}._input_jnwnh_1._warning_jnwnh_147:hover{border-color:var(--color-border-warning-hover)!important}._input_jnwnh_1._warning_jnwnh_147:focus{position:relative;outline:none!important;border-color:var(--color-border-focus)!important;box-shadow:var(--shadow-focus);z-index:3}._input_jnwnh_1[disabled]{pointer-events:none;background-color:var(--color-background-disabled);color:var(--color-text-muted);box-shadow:none}._input_jnwnh_1._right_jnwnh_170{text-align:right}._groupOrderFirst_jnwnh_173,._groupOrderMiddle_jnwnh_174,._groupOrderLast_jnwnh_175{flex:1}._groupOrderFirst_jnwnh_173 ._input_jnwnh_1,._groupOrderMiddle_jnwnh_174 ._input_jnwnh_1{border-top-right-radius:0!important;border-bottom-right-radius:0!important}._groupOrderLast_jnwnh_175 ._input_jnwnh_1,._groupOrderMiddle_jnwnh_174 ._input_jnwnh_1{border-top-left-radius:0!important;border-bottom-left-radius:0!important}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./jsx-runtime-eps93zm2.js";import{useMDXComponents as n}from"./index-BcNHZKhG.js";import{Z as s,$ as o}from"./index-Cf2IDQZ4.js";import{Default as p,LabelOnLeft as l}from"./field.stories-D5Mej0Bt.js";import{Default as m,LabelsOnLeft as a,Row as h}from"./form.stories-CYcggA-f.js";import"./index-DhsZuJvc.js";import"./iframe-WLuE3PcW.js";import"../sb-preview/runtime.js";import"./index-CUZDtIZe.js";import"./extends-CF3RwP-h.js";import"./assertThisInitialized-B9jnkVVz.js";import"./inheritsLoose-DR8r8Ogv.js";import"./index-D6rZ4wEC.js";import"./field-C5_fLDpy.js";import"./index-Bk2sglWO.js";import"./label-hiSz3I8H.js";import"./common-types-Sih75Sav.js";import"./help-icon-41R-Z9N1.js";import"./tooltip-1V7clEnw.js";import"./icon-BP4BO6-k.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./index-CEuq6vkz.js";import"./disabled-context-rmpd7YJS.js";import"./input-BW9trNAW.js";import"./types-UmZ4Y_CR.js";import"./lodash-BHd_uQHh.js";import"./text-B3-TSWok.js";import"./select-Z-GCZ-pY.js";import"./memoize-one.esm-CcMeOnPo.js";import"./types-BmbYqTX_.js";import"./actions-CZK3mphC.js";import"./button-C1sV-0mR.js";import"./spinner-AWUe4xwQ.js";import"./badge-CLQ59MDF.js";import"./select.input-DIKP56UZ.js";import"./check-box-CaSrhzev.js";import"./button-group-Ai4DXqNr.js";import"./toggle-Bo-JPbUP.js";import"./input-group-BaRSJAEN.js";import"./input-group-addon-D68iUKV2.js";import"./slider-gZmYlxxz.js";import"./objectSpread2-DW4nTBoq.js";import"./index-BI4_Bp97.js";import"./textarea-BV7xWEdt.js";import"./radio-button-C_cV5TWA.js";import"./form-row-CM112EYF.js";function r(i){const e={code:"code",h1:"h1",h2:"h2",p:"p",...n(),...i.components};return t.jsxs(t.Fragment,{children:[t.jsx(s,{title:"Layout (Forms)"}),`
|
|
2
|
-
`,t.jsx(e.h1,{id:"layout-forms",children:"Layout (Forms)"}),`
|
|
3
|
-
`,t.jsx(e.h2,{id:"field",children:"Field"}),`
|
|
4
|
-
`,t.jsxs(e.p,{children:["This is a wrapper for any form element with default bottom margin, and props like ",t.jsx(e.code,{children:"label"})," for other default styling."]}),`
|
|
5
|
-
`,t.jsx(o,{of:p}),`
|
|
6
|
-
`,t.jsxs(e.p,{children:["For inline labels, use the ",t.jsx(e.code,{children:"labelLeft"})," prop (and the optional ",t.jsx(e.code,{children:"labelWidth"}),")."]}),`
|
|
7
|
-
`,t.jsx(o,{of:l}),`
|
|
8
|
-
`,t.jsx(e.h2,{id:"stacked",children:"Stacked"}),`
|
|
9
|
-
`,t.jsxs(e.p,{children:["This is the simplest form layout, and works well when horizontal space is limited, or inputs vary in height (e.g. ",t.jsx(e.code,{children:"TextArea"}),")."]}),`
|
|
10
|
-
`,t.jsx(o,{of:m}),`
|
|
11
|
-
`,t.jsx(e.h2,{id:"stacked-with-inline-labels",children:"Stacked with inline labels"}),`
|
|
12
|
-
`,t.jsxs(e.p,{children:["This has the same markup, but with ",t.jsx(e.code,{children:"labelLeft"})," and ",t.jsx(e.code,{children:"labelWidth"})," set on each field."]}),`
|
|
13
|
-
`,t.jsx(o,{of:a}),`
|
|
14
|
-
`,t.jsx(e.h2,{id:"row",children:"Row"}),`
|
|
15
|
-
`,t.jsxs(e.p,{children:["Wrapping a group of form controls in ",t.jsx(e.code,{children:"FormRow"})," arranges them horizontally, and applies default spacing between each item. This works well when vertical space is limited, because inputs will only wrap onto the next line when they need to."]}),`
|
|
16
|
-
`,t.jsx(o,{of:h})]})}function rt(i={}){const{wrapper:e}={...n(),...i.components};return e?t.jsx(e,{...i,children:t.jsx(r,{...i})}):r(i)}export{rt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-eps93zm2.js";import{r as T}from"./index-DhsZuJvc.js";import{c as l}from"./index-Bk2sglWO.js";import{I as o}from"./common-types-Sih75Sav.js";import{I as a}from"./icon-BP4BO6-k.js";const N="_inputInTable_s49vk_1",b="_inputHover_s49vk_13",j="_inputFocus_s49vk_18",R="_inputError_s49vk_25",y="_inputWarning_s49vk_26",C="_inputDisabled_s49vk_61",w="_hideScrollbars_s49vk_67",O="_container_s49vk_83",D="_block_s49vk_101",G="_info_s49vk_104",W="_success_s49vk_108",A="_warning_s49vk_112",L="_error_s49vk_116",F="_content_s49vk_120",q="_heading_s49vk_124",z="_icon_s49vk_131",H="_dismiss_s49vk_139",U="_absolute_s49vk_143",V="_legendToggle_s49vk_155",M="_detailsText_s49vk_165",B="_footer_s49vk_169",n={inputInTable:N,inputHover:b,inputFocus:j,inputError:R,inputWarning:y,inputDisabled:C,hideScrollbars:w,container:O,block:D,info:G,success:W,warning:A,error:L,content:F,heading:q,icon:z,dismiss:H,absolute:U,legendToggle:V,detailsText:M,footer:B};var i=(s=>(s.INFO="Info",s.SUCCESS="Success",s.WARNING="Warning",s.ERROR="Error",s))(i||{}),d=(s=>(s.TOGGLE_DETAILS="TOGGLE_DETAILS",s))(d||{});const g=({type:s,onClose:t,isInToast:r,testId:c})=>e.jsx("div",{className:l(n.dismiss,r?n.absolute:"",s===i.INFO?n.info:s===i.SUCCESS?n.success:s===i.WARNING?n.warning:s===i.ERROR?n.error:null),children:e.jsx(a,{icon:o.CLOSE,onClick:t,testId:c})});g.__docgenInfo={description:"",methods:[],displayName:"Dismiss",props:{type:{required:!0,tsType:{name:"union",raw:"TMessageType | string",elements:[{name:"union",raw:"'Info' | 'Success' | 'Warning' | 'Error'",elements:[{name:"literal",value:"'Info'"},{name:"literal",value:"'Success'"},{name:"literal",value:"'Warning'"},{name:"literal",value:"'Error'"}]},{name:"string"}]},description:""},onClose:{required:!1,tsType:{name:"signature",type:"function",raw:"(...args: any[]) => any",signature:{arguments:[{type:{name:"Array",elements:[{name:"any"}],raw:"any[]"},name:"args",rest:!0}],return:{name:"any"}}},description:""},isInToast:{required:!1,tsType:{name:"boolean"},description:""},testId:{required:!1,tsType:{name:"string"},description:""}}};const J=(s,t)=>{switch(t.type){case d.TOGGLE_DETAILS:return{...s,detailsVisible:!s.detailsVisible};default:return s}},K=({details:s,visible:t,dispatch:r})=>e.jsxs("div",{children:[e.jsx("div",{className:l(n.legendToggle),onClick:r,children:t?"Hide details":"Show details"}),t?e.jsx("div",{className:n.detailsText,children:s}):null]}),P=({type:s})=>{switch(s){case i.SUCCESS:return e.jsx(a,{icon:o.SUCCESS,size:16});case i.WARNING:return e.jsx(a,{icon:o.WARNING,size:16});case i.ERROR:return e.jsx(a,{icon:o.ERROR,size:16});default:return e.jsx(a,{icon:o.INFO,size:16})}},Q=({message:s})=>{const{visible:t,type:r=i.INFO,icon:c,heading:u,content:v,details:_,detailsVisible:h=!1,footer:m,withDismiss:x,onClose:I,width:p,maxHeight:S}=s,f={detailsVisible:h},[k,E]=T.useReducer(J,f);return e.jsx(e.Fragment,{children:t?e.jsxs("div",{className:l(n.container,p?n.block:null,r===i.SUCCESS?n.success:r===i.WARNING?n.warning:r===i.ERROR?n.error:n.info),style:{width:p,maxHeight:S},children:[e.jsx("div",{children:c?e.jsx("div",{className:n.icon,children:e.jsx(P,{type:r})}):null}),e.jsxs("div",{className:n.content,children:[u?e.jsx("div",{className:n.heading,children:u}):null,e.jsx("div",{children:v}),_?e.jsx(K,{details:_,visible:k.detailsVisible,dispatch:()=>E({type:d.TOGGLE_DETAILS})}):null,!!m&&e.jsx("div",{className:n.footer,children:m})]}),x?e.jsx(g,{type:r,onClose:I}):null]}):null})};Q.__docgenInfo={description:"",methods:[],displayName:"Message",props:{message:{required:!0,tsType:{name:"IMessage"},description:""}}};export{g as D,Q as M,i as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._inputInTable_s49vk_1{background-color:transparent;border-radius:inherit!important;height:var(--size);min-height:100%}._inputInTable_s49vk_1:not(:hover){border-color:transparent}._inputInTable_s49vk_1:not(:focus){box-shadow:none}._inputHover_s49vk_13{position:relative;border-color:var(--color-border-hover);z-index:2}._inputFocus_s49vk_18{position:relative;outline:none!important;border-color:var(--color-border-focus)!important;box-shadow:var(--shadow-focus);z-index:3}._inputError_s49vk_25,._inputWarning_s49vk_26{position:relative}._inputError_s49vk_25{z-index:2;border-color:var(--color-border-error);color:var(--color-text-error)!important;background-color:var(--color-background-error-muted)}._inputError_s49vk_25:hover{border-color:var(--color-border-error-hover)!important}._inputError_s49vk_25:focus{position:relative;outline:none!important;border-color:var(--color-border-focus)!important;box-shadow:var(--shadow-focus);z-index:3}._inputWarning_s49vk_26{z-index:1;border-color:var(--color-border-warning);color:var(--color-text-warning)!important;background-color:var(--color-background-warning-muted)}._inputWarning_s49vk_26:hover{border-color:var(--color-border-warning-hover)!important}._inputWarning_s49vk_26:focus{position:relative;outline:none!important;border-color:var(--color-border-focus)!important;box-shadow:var(--shadow-focus);z-index:3}._inputDisabled_s49vk_61{pointer-events:none;background-color:var(--color-background-disabled);color:var(--color-text-muted);box-shadow:none}._hideScrollbars_s49vk_67{scrollbar-width:none;-ms-overflow-style:none}._hideScrollbars_s49vk_67::-webkit-scrollbar{display:none}:root{--color-border-message: rgba(0, 0, 0, .1)}html[data-theme=dark]{--color-border-message: rgba(255, 255, 255, .1)}._container_s49vk_83{padding:var(--padding-sm);border-radius:var(--border-radius);display:inline-flex;align-items:flex-start;line-height:var(--line-height);flex-wrap:wrap;overflow-y:auto;border:1px solid var(--color-border-message);scrollbar-width:none;-ms-overflow-style:none}._container_s49vk_83::-webkit-scrollbar{display:none}._container_s49vk_83._block_s49vk_101{display:flex}._container_s49vk_83._info_s49vk_104{color:var(--color-text-info);background-color:var(--color-background-info-muted)}._container_s49vk_83._success_s49vk_108{color:var(--color-text-success);background-color:var(--color-background-success-muted)}._container_s49vk_83._warning_s49vk_112{color:var(--color-text-warning);background-color:var(--color-background-warning-muted)}._container_s49vk_83._error_s49vk_116{color:var(--color-text-error);background-color:var(--color-background-error-muted)}._content_s49vk_120{flex:1;min-width:0}._heading_s49vk_124{font-weight:700;letter-spacing:var(--letter-spacing-wide);text-transform:uppercase;font-size:var(--font-size-sm);line-height:var(--line-height)}._icon_s49vk_131{display:flex;justify-content:center;align-items:center;height:var(--line-height);margin-right:var(--padding-xs);font-size:var(--size-xs)}._dismiss_s49vk_139{margin-left:var(--padding);color:var(--color-text)}._dismiss_s49vk_139._absolute_s49vk_143{position:absolute;top:var(--padding-sm);right:var(--padding-sm)}._dismiss_s49vk_139{--offset-message-dismiss: calc((var(--line-height) - var(--size-sm)) / 2);display:flex;margin-top:var(--offset-message-dismiss);margin-bottom:var(--offset-message-dismiss);margin-right:var(--offset-message-dismiss)}._legendToggle_s49vk_155{opacity:.6}._legendToggle_s49vk_155:hover{opacity:.8;cursor:pointer}._legendToggle_s49vk_155:active{opacity:1}._detailsText_s49vk_165{margin-top:var(--padding-xxs);word-break:break-word}._footer_s49vk_169{display:flex;flex-wrap:wrap;gap:var(--padding-sm);margin-top:var(--padding-xxs)}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._inputInTable_tn20e_1{background-color:transparent;border-radius:inherit!important;height:var(--size);min-height:100%}._inputInTable_tn20e_1:not(:hover){border-color:transparent}._inputInTable_tn20e_1:not(:focus){box-shadow:none}._inputHover_tn20e_13{position:relative;border-color:var(--color-border-hover);z-index:2}._inputFocus_tn20e_18{position:relative;outline:none!important;border-color:var(--color-border-focus)!important;box-shadow:var(--shadow-focus);z-index:3}._inputError_tn20e_25,._inputWarning_tn20e_26{position:relative}._inputError_tn20e_25{z-index:2;border-color:var(--color-border-error);color:var(--color-text-error)!important;background-color:var(--color-background-error-muted)}._inputError_tn20e_25:hover{border-color:var(--color-border-error-hover)!important}._inputError_tn20e_25:focus{position:relative;outline:none!important;border-color:var(--color-border-focus)!important;box-shadow:var(--shadow-focus);z-index:3}._inputWarning_tn20e_26{z-index:1;border-color:var(--color-border-warning);color:var(--color-text-warning)!important;background-color:var(--color-background-warning-muted)}._inputWarning_tn20e_26:hover{border-color:var(--color-border-warning-hover)!important}._inputWarning_tn20e_26:focus{position:relative;outline:none!important;border-color:var(--color-border-focus)!important;box-shadow:var(--shadow-focus);z-index:3}._inputDisabled_tn20e_61{pointer-events:none;background-color:var(--color-background-disabled);color:var(--color-text-muted);box-shadow:none}._hideScrollbars_tn20e_67{scrollbar-width:none;-ms-overflow-style:none}._hideScrollbars_tn20e_67::-webkit-scrollbar{display:none}._header_tn20e_77 ._headerTitle_tn20e_77,._heading_tn20e_78 ._itemHeader_tn20e_78{transition:opacity .3s}._narrow_tn20e_81 ._header_tn20e_77 ._headerTitle_tn20e_77,._narrow_tn20e_81 ._heading_tn20e_78 ._itemHeader_tn20e_78{opacity:0}._stickyHeader_tn20e_85{position:sticky;top:0;background-color:var(--color-background);z-index:10}._itemHeader_tn20e_78{padding:var(--padding-xs) var(--padding);display:flex;align-items:flex-start}._itemHeader_tn20e_78 ._title_tn20e_96{margin:0;padding:0;flex-grow:1;min-width:0}._itemHeader_tn20e_78 ._name_tn20e_102{font-weight:400}._itemHeader_tn20e_78 ._iconTooltipMargin_tn20e_105{margin-left:var(--padding-xs)}._itemHeader_tn20e_78 ._bold_tn20e_108{font-weight:700}._header_tn20e_77{padding:var(--padding);display:flex;align-items:center;border-bottom:1px solid var(--color-border)}._toggleNarrow_tn20e_117{margin-right:16px;margin-left:-5px;color:#c8c8c8;transition:all .4s;display:flex;width:22px;justify-content:center}._toggleNarrow_tn20e_117:hover{color:var(--color-text-primary-hover)}._toggleNarrow_tn20e_117:active{color:var(--color-text-primary-active)}._narrow_tn20e_81 ._toggleNarrow_tn20e_117{transform:scaleX(-1)}._drag_tn20e_135{color:var(--color-text-faint);display:flex;align-items:center;justify-content:center;margin-right:var(--padding-xs);margin-left:calc(var(--padding-xs) * -1);margin-top:calc((var(--line-height) - var(--size-sm)) / 2);margin-bottom:calc((var(--line-height) - var(--size-sm)) / 2);cursor:move;height:var(--size-sm);width:var(--size-sm);flex-shrink:0}._drag_tn20e_135:hover{color:var(--color-text-primary-hover)}._drag_tn20e_135:active{color:var(--color-text-primary-active)}._list_tn20e_155{flex-shrink:0;background:var(--color-background)}._list_tn20e_155._bordered_tn20e_159:first-child,._list_tn20e_155._bordered_tn20e_159:first-child>:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}._list_tn20e_155._bordered_tn20e_159:last-child,._list_tn20e_155._bordered_tn20e_159:last-child>:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;border-bottom:0}._item_tn20e_78{color:inherit;display:block;transition:background-color .2s;position:relative;border-bottom:1px solid var(--color-border);background-color:var(--color-background-raised);transition:background .3s;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}._item_tn20e_78:not(._heading_tn20e_78):after{content:"";position:absolute;left:0;top:0;bottom:0;width:2px;border-top-left-radius:inherit;border-bottom-left-radius:inherit;transition:background .3s,width .3s}._item_tn20e_78._action_tn20e_192{cursor:pointer}._item_tn20e_78._action_tn20e_192:not(._active_tn20e_195):hover{background:var(--color-background-listitem-hover)}._item_tn20e_78._action_tn20e_192:not(._active_tn20e_195):hover:after{width:5px;background:#0000001a}._item_tn20e_78._indented_tn20e_202:after{width:3px;background:#0000001a}._item_tn20e_78._active_tn20e_195{cursor:default;position:relative;z-index:1;background:var(--color-background-listitem-active)}._item_tn20e_78._active_tn20e_195:after{background:var(--color-background-primary)!important}._item_tn20e_78._disabled_tn20e_215{color:var(--color-text-faint);pointer-events:none}._item_tn20e_78._heading_tn20e_78{color:var(--color-text-muted);background-color:var(--color-background-cardheader)}._item_tn20e_78._heading_tn20e_78._action_tn20e_192:hover{color:var(--color-text-primary-hover)}._item_tn20e_78 ._label_tn20e_226{margin-right:var(--padding-xs);flex-shrink:0;width:var(--size-sm);height:var(--size-sm);margin-top:calc(var(--line-height) / 2 - var(--size-sm) / 2);margin-bottom:calc(var(--line-height) / 2 - var(--size-sm) / 2);display:flex;align-items:center;justify-content:center}._item_tn20e_78 ._details_tn20e_237,._item_tn20e_78 ._metadata_tn20e_238{display:block;width:100%;font-weight:400}._item_tn20e_78 ._metadata_tn20e_238{color:var(--color-text-muted)}._item_tn20e_78 ._itemContent_tn20e_246{padding:0 var(--padding) var(--padding-sm);cursor:auto}._item_tn20e_78 ._itemContent_tn20e_246:empty{padding:inherit}._indentIcon_tn20e_253{color:var(--color-text-faint);flex-shrink:0;margin-right:var(--padding-xxs)}._expandIcon_tn20e_258{flex-shrink:0;position:relative;display:flex;height:var(--line-height);margin-right:var(--padding-xs)}._expandIcon_tn20e_258._expanded_tn20e_265 svg{transform:rotate(90deg)}._right_tn20e_268{margin-left:auto;display:flex;align-items:center;margin-top:calc((var(--line-height) - var(--size-sm)) / 2);margin-bottom:calc((var(--line-height) - var(--size-sm)) / 2);min-height:var(--size-sm)}._actions_tn20e_276{margin-left:var(--padding-xs);display:flex;align-items:center}._scrollableList_tn20e_281{height:100%;overflow-y:auto;scroll-behavior:smooth}._infiniteScrollContainer_tn20e_286{overflow:hidden!important}._hideScrollbar_tn20e_67{scrollbar-width:none;-ms-overflow-style:none}._hideScrollbar_tn20e_67::-webkit-scrollbar{display:none}._bordered_tn20e_159{box-shadow:inset 0 0 0 2px var(--color-background-primary);background:var(--color-background-listitem-active)}._noPointerEvents_tn20e_303{pointer-events:none}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-eps93zm2.js";import{r as u}from"./index-DhsZuJvc.js";import{c}from"./index-Bk2sglWO.js";import{I as g}from"./common-types-Sih75Sav.js";import{I as _}from"./icon-BP4BO6-k.js";import{H as h}from"./heading-NkLgQYoP.js";import{A as x}from"./actions-CZK3mphC.js";import{B as f}from"./badge-CLQ59MDF.js";import{T as N}from"./tooltip-1V7clEnw.js";const b="_inputInTable_tn20e_1",T="_inputHover_tn20e_13",j="_inputFocus_tn20e_18",v="_inputError_tn20e_25",y="_inputWarning_tn20e_26",I="_inputDisabled_tn20e_61",w="_hideScrollbars_tn20e_67",H="_header_tn20e_77",q="_headerTitle_tn20e_77",C="_heading_tn20e_78",k="_itemHeader_tn20e_78",E="_narrow_tn20e_81",S="_stickyHeader_tn20e_85",M="_title_tn20e_96",R="_name_tn20e_102",L="_iconTooltipMargin_tn20e_105",F="_bold_tn20e_108",V="_toggleNarrow_tn20e_117",W="_drag_tn20e_135",B="_list_tn20e_155",D="_bordered_tn20e_159",P="_item_tn20e_78",$="_action_tn20e_192",A="_active_tn20e_195",O="_indented_tn20e_202",z="_disabled_tn20e_215",G="_label_tn20e_226",J="_details_tn20e_237",K="_metadata_tn20e_238",Q="_itemContent_tn20e_246",U="_indentIcon_tn20e_253",X="_expandIcon_tn20e_258",Y="_expanded_tn20e_265",Z="_right_tn20e_268",ee="_actions_tn20e_276",te="_scrollableList_tn20e_281",ne="_infiniteScrollContainer_tn20e_286",ae="_hideScrollbar_tn20e_67",oe="_noPointerEvents_tn20e_303",n={inputInTable:b,inputHover:T,inputFocus:j,inputError:v,inputWarning:y,inputDisabled:I,hideScrollbars:w,header:H,headerTitle:q,heading:C,itemHeader:k,narrow:E,stickyHeader:S,title:M,name:R,iconTooltipMargin:L,bold:F,toggleNarrow:V,drag:W,list:B,bordered:D,item:P,action:$,active:A,indented:O,disabled:z,label:G,details:J,metadata:K,itemContent:Q,indentIcon:U,expandIcon:X,expanded:Y,right:Z,actions:ee,scrollableList:te,infiniteScrollContainer:ne,hideScrollbar:ae,noPointerEvents:oe},p=({toggleNarrow:a,onClickToggleNarrow:t})=>a?e.jsx("a",{className:n.toggleNarrow,onClick:t,children:e.jsx(_,{icon:g.CHEVRON_LEFT})}):null;p.__docgenInfo={description:"",methods:[],displayName:"ToggleNarrow",props:{toggleNarrow:{required:!1,tsType:{name:"boolean"},description:""},onClickToggleNarrow:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""}}};const ie=u.forwardRef(({name:a,actions:t=[],toggleNarrow:r=!1,onToggleNarrow:o=()=>{},stickyHeader:s},d)=>e.jsxs("div",{ref:d,className:c(n.header,s?n.stickyHeader:""),children:[e.jsx(p,{toggleNarrow:r,onClickToggleNarrow:o}),a&&e.jsx("div",{className:n.headerTitle,children:e.jsx(h,{top:!0,marginBottom:0,children:a})}),e.jsx("div",{className:n.right,children:e.jsx("div",{className:n.actions,children:e.jsx(x,{actions:t})})})]}));ie.__docgenInfo={description:"",methods:[],displayName:"ListHeading",props:{actions:{defaultValue:{value:"[]",computed:!1},required:!1},toggleNarrow:{defaultValue:{value:"false",computed:!1},required:!1},onToggleNarrow:{defaultValue:{value:"() => {}",computed:!1},required:!1}}};const m=({name:a,icon:t,testId:r})=>{const o=t&&e.jsx(_,{icon:t.icon,color:t.color||"#db2828"});return e.jsxs("span",{className:c(n.name,n.bold),"data-testid":r,children:[a,t&&t.tooltip&&t.tooltip.text?e.jsx("span",{className:n.iconTooltipMargin,children:e.jsx(N,{text:t.tooltip.text,maxWidth:"350px",children:o})}):t&&t.icon&&e.jsx("span",{className:n.iconTooltipMargin,children:o})]})};m.__docgenInfo={description:"",methods:[],displayName:"Name",props:{name:{required:!0,tsType:{name:"ReactNode"},description:""},icon:{required:!1,tsType:{name:"signature",type:"object",raw:`{
|
|
2
|
-
icon: ReactNode;
|
|
3
|
-
color?: string;
|
|
4
|
-
tooltip?: {
|
|
5
|
-
text: ReactNode;
|
|
6
|
-
};
|
|
7
|
-
}`,signature:{properties:[{key:"icon",value:{name:"ReactNode",required:!0}},{key:"color",value:{name:"string",required:!1}},{key:"tooltip",value:{name:"signature",type:"object",raw:`{
|
|
8
|
-
text: ReactNode;
|
|
9
|
-
}`,signature:{properties:[{key:"text",value:{name:"ReactNode",required:!0}}]},required:!1}}]}},description:""},testId:{required:!1,tsType:{name:"string"},description:""}}};const re=({item:a})=>{const{name:t,icon:r,details:o,metadata:s,invalid:d,testId:i}=a;let l=e.jsx(m,{name:t,icon:r,testId:i&&`${i}-name`});return d&&(l=e.jsx(f,{small:!0,margin:"-2px",title:"!",children:l})),e.jsxs("span",{className:n.title,children:[l,o&&e.jsx("span",{className:n.details,"data-testid":i&&`${i}-details`,children:o}),s&&e.jsx("span",{className:n.metadata,"data-testid":i&&`${i}-metadata`,children:s})]})};re.__docgenInfo={description:"",methods:[],displayName:"MetaContent",props:{item:{required:!0,tsType:{name:"IMetaContentItem"},description:""}}};export{ie as L,re as M,m as N,n as l};
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./jsx-runtime-eps93zm2.js";import{w as pe,u as I,e as E}from"./index-Be0hXiyp.js";import{d as ge}from"./index-CWz-hU-f.js";import{N as A}from"./number-input-uQOVHv2N.js";import{I as le}from"./input-group-BaRSJAEN.js";import{I as de}from"./input-group-addon-D68iUKV2.js";import{S as ce}from"./select-Z-GCZ-pY.js";import"./index-DhsZuJvc.js";import"./index-CF7H4eMJ.js";import"./index-DRSy5Ssd.js";import"./lodash-BHd_uQHh.js";import"./input-BW9trNAW.js";import"./index-Bk2sglWO.js";import"./disabled-context-rmpd7YJS.js";import"./types-UmZ4Y_CR.js";import"./tooltip-1V7clEnw.js";import"./index-CUZDtIZe.js";import"./common-types-Sih75Sav.js";import"./index-CEuq6vkz.js";import"./extends-CF3RwP-h.js";import"./assertThisInitialized-B9jnkVVz.js";import"./inheritsLoose-DR8r8Ogv.js";import"./memoize-one.esm-CcMeOnPo.js";import"./types-BmbYqTX_.js";import"./text-B3-TSWok.js";import"./actions-CZK3mphC.js";import"./button-C1sV-0mR.js";import"./spinner-AWUe4xwQ.js";import"./icon-BP4BO6-k.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./badge-CLQ59MDF.js";import"./select.input-DIKP56UZ.js";const{useArgs:ie}=__STORYBOOK_MODULE_PREVIEW_API__,Ye={title:"Forms/NumberInput",component:A,parameters:{canvas:{page:null}},args:{label:"Label"}},e=a=>{const[b,n]=ie(),r=oe=>{n({value:oe.target.value})};return t.jsx(A,{onChange:r,value:123,...a})},C=e.bind({}),u=e.bind({});u.args={small:!0};const o=e.bind({});o.args={width:"150px"};const p=e.bind({});p.args={left:!0};const g=e.bind({});g.args={disabled:!0};const l=e.bind({});l.args={allowEmpty:!0,value:""};const d=e.bind({});d.args={warning:"This input number is almost 100!",value:"99"};const c=e.bind({});c.args={error:"This is a error message"};const i=e.bind({});i.args={value:"123test"};const m=e.bind({});m.args={value:"123.123456789",enableDisplayRounding:!0};const h=e.bind({});h.args={value:"123.123456789",enableDisplayRounding:!0,roundDisplayValue:a=>ge.roundToFixed(a,4)};const v=()=>t.jsxs(le,{small:!0,children:[t.jsx(A,{value:123}),t.jsx(de,{children:"to"}),t.jsx(A,{value:123}),t.jsx(ce,{options:[{value:"units",label:"units"}],width:"auto",value:"units"})]}),s=e.bind({});s.args={testId:"testId",enableDisplayRounding:!0};s.play=async({canvasElement:a,step:b})=>{const n=pe(a);await b("Value should be rounded on blur",async()=>{const r=n.getByTestId("testId");await I.clear(r),await I.type(r,"123.123456789"),await I.click(a),await E(n.getByDisplayValue("123.12")).toBeInTheDocument()}),await b("Full value shown on focus",async()=>{const r=n.getByTestId("testId");await I.click(r),await E(n.getByDisplayValue("123.123456789")).toBeInTheDocument()})};v.__docgenInfo={description:"",methods:[],displayName:"TestInputGroup"};var T,y,_;C.parameters={...C.parameters,docs:{...(T=C.parameters)==null?void 0:T.docs,source:{originalSource:`args => {
|
|
2
|
-
const [_, updateArgs] = useArgs();
|
|
3
|
-
const handleChange = (evt: ChangeEvent<HTMLInputElement>) => {
|
|
4
|
-
updateArgs({
|
|
5
|
-
value: evt.target.value
|
|
6
|
-
});
|
|
7
|
-
};
|
|
8
|
-
return <NumberInput onChange={handleChange} value={123} {...args} />;
|
|
9
|
-
}`,...(_=(y=C.parameters)==null?void 0:y.docs)==null?void 0:_.source}}};var D,S,w;u.parameters={...u.parameters,docs:{...(D=u.parameters)==null?void 0:D.docs,source:{originalSource:`args => {
|
|
10
|
-
const [_, updateArgs] = useArgs();
|
|
11
|
-
const handleChange = (evt: ChangeEvent<HTMLInputElement>) => {
|
|
12
|
-
updateArgs({
|
|
13
|
-
value: evt.target.value
|
|
14
|
-
});
|
|
15
|
-
};
|
|
16
|
-
return <NumberInput onChange={handleChange} value={123} {...args} />;
|
|
17
|
-
}`,...(w=(S=u.parameters)==null?void 0:S.docs)==null?void 0:w.source}}};var N,L,f;o.parameters={...o.parameters,docs:{...(N=o.parameters)==null?void 0:N.docs,source:{originalSource:`args => {
|
|
18
|
-
const [_, updateArgs] = useArgs();
|
|
19
|
-
const handleChange = (evt: ChangeEvent<HTMLInputElement>) => {
|
|
20
|
-
updateArgs({
|
|
21
|
-
value: evt.target.value
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
return <NumberInput onChange={handleChange} value={123} {...args} />;
|
|
25
|
-
}`,...(f=(L=o.parameters)==null?void 0:L.docs)==null?void 0:f.source}}};var x,M,H;p.parameters={...p.parameters,docs:{...(x=p.parameters)==null?void 0:x.docs,source:{originalSource:`args => {
|
|
26
|
-
const [_, updateArgs] = useArgs();
|
|
27
|
-
const handleChange = (evt: ChangeEvent<HTMLInputElement>) => {
|
|
28
|
-
updateArgs({
|
|
29
|
-
value: evt.target.value
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
return <NumberInput onChange={handleChange} value={123} {...args} />;
|
|
33
|
-
}`,...(H=(M=p.parameters)==null?void 0:M.docs)==null?void 0:H.source}}};var R,B,G;g.parameters={...g.parameters,docs:{...(R=g.parameters)==null?void 0:R.docs,source:{originalSource:`args => {
|
|
34
|
-
const [_, updateArgs] = useArgs();
|
|
35
|
-
const handleChange = (evt: ChangeEvent<HTMLInputElement>) => {
|
|
36
|
-
updateArgs({
|
|
37
|
-
value: evt.target.value
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
return <NumberInput onChange={handleChange} value={123} {...args} />;
|
|
41
|
-
}`,...(G=(B=g.parameters)==null?void 0:B.docs)==null?void 0:G.source}}};var W,j,O;l.parameters={...l.parameters,docs:{...(W=l.parameters)==null?void 0:W.docs,source:{originalSource:`args => {
|
|
42
|
-
const [_, updateArgs] = useArgs();
|
|
43
|
-
const handleChange = (evt: ChangeEvent<HTMLInputElement>) => {
|
|
44
|
-
updateArgs({
|
|
45
|
-
value: evt.target.value
|
|
46
|
-
});
|
|
47
|
-
};
|
|
48
|
-
return <NumberInput onChange={handleChange} value={123} {...args} />;
|
|
49
|
-
}`,...(O=(j=l.parameters)==null?void 0:j.docs)==null?void 0:O.source}}};var V,F,k;d.parameters={...d.parameters,docs:{...(V=d.parameters)==null?void 0:V.docs,source:{originalSource:`args => {
|
|
50
|
-
const [_, updateArgs] = useArgs();
|
|
51
|
-
const handleChange = (evt: ChangeEvent<HTMLInputElement>) => {
|
|
52
|
-
updateArgs({
|
|
53
|
-
value: evt.target.value
|
|
54
|
-
});
|
|
55
|
-
};
|
|
56
|
-
return <NumberInput onChange={handleChange} value={123} {...args} />;
|
|
57
|
-
}`,...(k=(F=d.parameters)==null?void 0:F.docs)==null?void 0:k.source}}};var P,K,U;c.parameters={...c.parameters,docs:{...(P=c.parameters)==null?void 0:P.docs,source:{originalSource:`args => {
|
|
58
|
-
const [_, updateArgs] = useArgs();
|
|
59
|
-
const handleChange = (evt: ChangeEvent<HTMLInputElement>) => {
|
|
60
|
-
updateArgs({
|
|
61
|
-
value: evt.target.value
|
|
62
|
-
});
|
|
63
|
-
};
|
|
64
|
-
return <NumberInput onChange={handleChange} value={123} {...args} />;
|
|
65
|
-
}`,...(U=(K=c.parameters)==null?void 0:K.docs)==null?void 0:U.source}}};var Y,q,z;i.parameters={...i.parameters,docs:{...(Y=i.parameters)==null?void 0:Y.docs,source:{originalSource:`args => {
|
|
66
|
-
const [_, updateArgs] = useArgs();
|
|
67
|
-
const handleChange = (evt: ChangeEvent<HTMLInputElement>) => {
|
|
68
|
-
updateArgs({
|
|
69
|
-
value: evt.target.value
|
|
70
|
-
});
|
|
71
|
-
};
|
|
72
|
-
return <NumberInput onChange={handleChange} value={123} {...args} />;
|
|
73
|
-
}`,...(z=(q=i.parameters)==null?void 0:q.docs)==null?void 0:z.source}}};var J,Q,X;m.parameters={...m.parameters,docs:{...(J=m.parameters)==null?void 0:J.docs,source:{originalSource:`args => {
|
|
74
|
-
const [_, updateArgs] = useArgs();
|
|
75
|
-
const handleChange = (evt: ChangeEvent<HTMLInputElement>) => {
|
|
76
|
-
updateArgs({
|
|
77
|
-
value: evt.target.value
|
|
78
|
-
});
|
|
79
|
-
};
|
|
80
|
-
return <NumberInput onChange={handleChange} value={123} {...args} />;
|
|
81
|
-
}`,...(X=(Q=m.parameters)==null?void 0:Q.docs)==null?void 0:X.source}}};var Z,$,ee;h.parameters={...h.parameters,docs:{...(Z=h.parameters)==null?void 0:Z.docs,source:{originalSource:`args => {
|
|
82
|
-
const [_, updateArgs] = useArgs();
|
|
83
|
-
const handleChange = (evt: ChangeEvent<HTMLInputElement>) => {
|
|
84
|
-
updateArgs({
|
|
85
|
-
value: evt.target.value
|
|
86
|
-
});
|
|
87
|
-
};
|
|
88
|
-
return <NumberInput onChange={handleChange} value={123} {...args} />;
|
|
89
|
-
}`,...(ee=($=h.parameters)==null?void 0:$.docs)==null?void 0:ee.source}}};var ae,ne,re;v.parameters={...v.parameters,docs:{...(ae=v.parameters)==null?void 0:ae.docs,source:{originalSource:`() => <InputGroup small>
|
|
90
|
-
<NumberInput value={123} />
|
|
91
|
-
<InputGroupAddon>to</InputGroupAddon>
|
|
92
|
-
<NumberInput value={123} />
|
|
93
|
-
<Select options={[{
|
|
94
|
-
value: 'units',
|
|
95
|
-
label: 'units'
|
|
96
|
-
}]} width="auto" value="units" />
|
|
97
|
-
</InputGroup>`,...(re=(ne=v.parameters)==null?void 0:ne.docs)==null?void 0:re.source}}};var te,se,ue;s.parameters={...s.parameters,docs:{...(te=s.parameters)==null?void 0:te.docs,source:{originalSource:`args => {
|
|
98
|
-
const [_, updateArgs] = useArgs();
|
|
99
|
-
const handleChange = (evt: ChangeEvent<HTMLInputElement>) => {
|
|
100
|
-
updateArgs({
|
|
101
|
-
value: evt.target.value
|
|
102
|
-
});
|
|
103
|
-
};
|
|
104
|
-
return <NumberInput onChange={handleChange} value={123} {...args} />;
|
|
105
|
-
}`,...(ue=(se=s.parameters)==null?void 0:se.docs)==null?void 0:ue.source}}};const qe=["Default","Small","Width","Left","Disabled","AllowEmpty","Warning","Error","BadInput","WithDisplayRounding","WithCustomDisplayRounding","TestInputGroup","TestDisplayRounding"];export{l as AllowEmpty,i as BadInput,C as Default,g as Disabled,c as Error,p as Left,u as Small,s as TestDisplayRounding,v as TestInputGroup,d as Warning,o as Width,h as WithCustomDisplayRounding,m as WithDisplayRounding,qe as __namedExportsOrder,Ye as default};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./jsx-runtime-eps93zm2.js";import{r as k}from"./index-DhsZuJvc.js";import{S as w}from"./spacer-BWoNR27H.js";import{P as n}from"./popover-DgUpTRMk.js";import{I as c}from"./input-BW9trNAW.js";import{B as i}from"./button-C1sV-0mR.js";import{F as y}from"./flex-EllkLxgO.js";import{S as D}from"./select-Z-GCZ-pY.js";import"./tooltip-1V7clEnw.js";import"./index-CUZDtIZe.js";import"./index-Bk2sglWO.js";import"./common-types-Sih75Sav.js";import"./disabled-context-rmpd7YJS.js";import"./types-UmZ4Y_CR.js";import"./lodash-BHd_uQHh.js";import"./spinner-AWUe4xwQ.js";import"./icon-BP4BO6-k.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./inheritsLoose-DR8r8Ogv.js";import"./index-CEuq6vkz.js";import"./extends-CF3RwP-h.js";import"./assertThisInitialized-B9jnkVVz.js";import"./memoize-one.esm-CcMeOnPo.js";import"./types-BmbYqTX_.js";import"./text-B3-TSWok.js";import"./actions-CZK3mphC.js";import"./badge-CLQ59MDF.js";import"./select.input-DIKP56UZ.js";const u=[{label:"Option 1",value:"1"},{label:"Option 2",value:"2"}],_=({close:e})=>r.jsxs(y,{gap:"var(--padding-xs)",children:[r.jsx(c,{value:"Value",width:"150px",small:!0}),r.jsx(D,{options:u,value:u[0],width:"auto",small:!0}),r.jsx(i,{colored:!0,label:"Save",onClick:()=>{},small:!0}),r.jsx(i,{label:"Cancel",onClick:e,small:!0})]}),lr={title:"Basic/Popover",component:n,args:{overflowContainer:!0,content:r.jsx(_,{}),children:r.jsx(i,{label:"Toggle me"})},decorators:[e=>r.jsx("div",{style:{display:"flex"},children:e()})],parameters:{docs:{source:{excludeDecorators:!0}}}},l=e=>r.jsx(n,{...e}),p=l.bind({}),o=l.bind({});o.args={children:r.jsx(c,{value:"Value",width:"100%"})};const s=l.bind({});s.args={closeOnOutsideClick:!1,showCloseButton:!0};const t=l.bind({});t.args={disabled:!0};const a=e=>{const[m,T]=k.useState(!1);return r.jsxs("div",{children:[r.jsx(i,{onClick:()=>T(!m),label:"Toggle Popover Externally"}),r.jsx(w,{}),r.jsx(n,{...e,isOpen:m,children:r.jsx(c,{})})]})};a.__docgenInfo={description:"",methods:[],displayName:"ExternalControl"};var d,g,x;p.parameters={...p.parameters,docs:{...(d=p.parameters)==null?void 0:d.docs,source:{originalSource:"args => <Popover {...args} />",...(x=(g=p.parameters)==null?void 0:g.docs)==null?void 0:x.source}}};var v,f,j;o.parameters={...o.parameters,docs:{...(v=o.parameters)==null?void 0:v.docs,source:{originalSource:"args => <Popover {...args} />",...(j=(f=o.parameters)==null?void 0:f.docs)==null?void 0:j.source}}};var b,S,C;s.parameters={...s.parameters,docs:{...(b=s.parameters)==null?void 0:b.docs,source:{originalSource:"args => <Popover {...args} />",...(C=(S=s.parameters)==null?void 0:S.docs)==null?void 0:C.source}}};var O,h,P;t.parameters={...t.parameters,docs:{...(O=t.parameters)==null?void 0:O.docs,source:{originalSource:"args => <Popover {...args} />",...(P=(h=t.parameters)==null?void 0:h.docs)==null?void 0:P.source}}};var I,E,B;a.parameters={...a.parameters,docs:{...(I=a.parameters)==null?void 0:I.docs,source:{originalSource:`args => {
|
|
2
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
3
|
-
return <div>
|
|
4
|
-
<Button onClick={() => setIsOpen(!isOpen)} label="Toggle Popover Externally" />
|
|
5
|
-
<Spacer />
|
|
6
|
-
<Popover {...args} isOpen={isOpen}>
|
|
7
|
-
<Input />
|
|
8
|
-
</Popover>
|
|
9
|
-
</div>;
|
|
10
|
-
}`,...(B=(E=a.parameters)==null?void 0:E.docs)==null?void 0:B.source}}};const nr=["Default","InputTrigger","CloseButton","Disabled","ExternalControl"];export{s as CloseButton,p as Default,t as Disabled,a as ExternalControl,o as InputTrigger,nr as __namedExportsOrder,lr as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DocsRenderer-PKQXORMH-CWe5JIRI.js","./chunk-HLWAVYOI-CkQdzq8g.js","./iframe-WLuE3PcW.js","./index-DhsZuJvc.js","./react-16-DXAfArL2.js","./index-CUZDtIZe.js","./index-Cf2IDQZ4.js","./extends-CF3RwP-h.js","./assertThisInitialized-B9jnkVVz.js","./inheritsLoose-DR8r8Ogv.js","./index-D6rZ4wEC.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as a}from"./iframe-WLuE3PcW.js";import"../sb-preview/runtime.js";const{global:s}=__STORYBOOK_MODULE_GLOBAL__;var _=Object.entries(s.TAGS_OPTIONS??{}).reduce((e,r)=>{let[t,o]=r;return o.excludeFromDocsStories&&(e[t]=!0),e},{}),d={docs:{renderer:async()=>{let{DocsRenderer:e}=await a(()=>import("./DocsRenderer-PKQXORMH-CWe5JIRI.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url);return new e},stories:{filter:e=>{var r;return(e.tags||[]).filter(t=>_[t]).length===0&&!((r=e.parameters.docs)!=null&&r.disable)}}}};export{d as parameters};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-eps93zm2.js";import"./index-DhsZuJvc.js";import{T as n}from"./top-bar-DG4ok0uF.js";import{L as r}from"./list-DYNKqvUR.js";import{P as p}from"./page-7SSpdYhb.js";import{R as c,C as o}from"./row-4iAGREkV.js";import{T as d}from"./tabs-CAZ_dHGK.js";import{S as u}from"./spacer-BWoNR27H.js";import"./index-Bk2sglWO.js";import"./icon-BP4BO6-k.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./inheritsLoose-DR8r8Ogv.js";import"./index-CEuq6vkz.js";import"./disabled-context-rmpd7YJS.js";import"./common-types-Sih75Sav.js";import"./button-C1sV-0mR.js";import"./spinner-AWUe4xwQ.js";import"./tooltip-1V7clEnw.js";import"./index-CUZDtIZe.js";import"./actions-CZK3mphC.js";import"./lodash-BHd_uQHh.js";import"./types-BmbYqTX_.js";import"./types-UmZ4Y_CR.js";import"./badge-CLQ59MDF.js";import"./index.es-D2piFfFj.js";import"./extends-CF3RwP-h.js";import"./redux-tRgGMjwY.js";import"./objectSpread2-DW4nTBoq.js";import"./tiny-invariant-DqLgxztJ.js";import"./memoize-one.esm-CcMeOnPo.js";import"./card-EcjmryU9.js";import"./meta-content-BE7pulye.js";import"./heading-NkLgQYoP.js";import"./help-icon-41R-Z9N1.js";import"./loader-XHoVniao.js";import"./styled-components.browser.esm-Bf0q9Yjk.js";import"./select.input-DIKP56UZ.js";const t=[{label:"Browse",value:"Browse"},{label:"Recent",value:"Recent"},{label:"My Projects",value:"My Projects"}],s=[{id:1,name:"Lorem",active:!0},{id:2,name:"Ipsum"},{id:3,name:"Dolor"},{id:4,name:"Long name goes here lorem ipsum"},{id:5,name:"Lorem"},{id:6,name:"Ipsum"},{id:7,name:"Dolor"},{id:8,name:"Long name goes here lorem ipsum"},{id:9,name:"Lorem"},{id:10,name:"Ipsum"},{id:11,name:"Dolor"},{id:12,name:"Long name goes here lorem ipsum"},{id:13,name:"Lorem"},{id:14,name:"Ipsum"},{id:15,name:"Dolor"},{id:16,name:"Long name goes here lorem ipsum"}],Y={title:"Layout/Layout Examples",parameters:{layout:"fullscreen",docs:{story:{inline:!1,iframeHeight:400}}}},l=()=>e.jsxs(e.Fragment,{children:[e.jsx(n,{}),e.jsxs(p,{padding:!1,left:0,scroll:!1,children:[e.jsx(u,{}),e.jsx(d,{margin:!1,padding:!0,options:t,value:t[0]}),e.jsxs(c,{spacing:0,flex:!0,height:"100%",children:[e.jsx(o,{borderRight:!0,scroll:!0,showScrollbar:!1,children:e.jsx(r,{list:{name:"Country",items:s}})}),e.jsx(o,{borderRight:!0,scroll:!0,showScrollbar:!1,children:e.jsx(r,{list:{name:"Field",items:s}})}),e.jsx(o,{borderRight:!0,scroll:!0,showScrollbar:!1,children:e.jsx(r,{list:{name:"Site",items:s}})}),e.jsx(o,{borderRight:!0,scroll:!0,showScrollbar:!1,children:e.jsx(r,{list:{name:"Well",items:s}})}),e.jsx(o,{borderRight:!0,scroll:!0,showScrollbar:!1,children:e.jsx(r,{list:{name:"Wellbore",items:s}})}),e.jsx(o,{scroll:!0,showScrollbar:!1,children:e.jsx(r,{list:{name:"Design",items:s}})})]})]})]});l.__docgenInfo={description:"",methods:[],displayName:"Projects"};var i,m,a;l.parameters={...l.parameters,docs:{...(i=l.parameters)==null?void 0:i.docs,source:{originalSource:`() => {
|
|
2
|
-
return <>
|
|
3
|
-
<TopBar />
|
|
4
|
-
<Page padding={false} left={0} scroll={false}>
|
|
5
|
-
<Spacer />
|
|
6
|
-
<Tabs margin={false} padding options={tabs} value={tabs[0]} />
|
|
7
|
-
<Row spacing={0} flex height="100%">
|
|
8
|
-
<Column borderRight scroll showScrollbar={false}>
|
|
9
|
-
<List list={{
|
|
10
|
-
name: 'Country',
|
|
11
|
-
items
|
|
12
|
-
}} />
|
|
13
|
-
</Column>
|
|
14
|
-
<Column borderRight scroll showScrollbar={false}>
|
|
15
|
-
<List list={{
|
|
16
|
-
name: 'Field',
|
|
17
|
-
items
|
|
18
|
-
}} />
|
|
19
|
-
</Column>
|
|
20
|
-
<Column borderRight scroll showScrollbar={false}>
|
|
21
|
-
<List list={{
|
|
22
|
-
name: 'Site',
|
|
23
|
-
items
|
|
24
|
-
}} />
|
|
25
|
-
</Column>
|
|
26
|
-
<Column borderRight scroll showScrollbar={false}>
|
|
27
|
-
<List list={{
|
|
28
|
-
name: 'Well',
|
|
29
|
-
items
|
|
30
|
-
}} />
|
|
31
|
-
</Column>
|
|
32
|
-
<Column borderRight scroll showScrollbar={false}>
|
|
33
|
-
<List list={{
|
|
34
|
-
name: 'Wellbore',
|
|
35
|
-
items
|
|
36
|
-
}} />
|
|
37
|
-
</Column>
|
|
38
|
-
<Column scroll showScrollbar={false}>
|
|
39
|
-
<List list={{
|
|
40
|
-
name: 'Design',
|
|
41
|
-
items
|
|
42
|
-
}} />
|
|
43
|
-
</Column>
|
|
44
|
-
</Row>
|
|
45
|
-
</Page>
|
|
46
|
-
</>;
|
|
47
|
-
}`,...(a=(m=l.parameters)==null?void 0:m.docs)==null?void 0:a.source}}};const Z=["Projects"];export{l as Projects,Z as __namedExportsOrder,Y as default};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{_ as V}from"./inheritsLoose-DR8r8Ogv.js";import{g as st,R as w}from"./index-DhsZuJvc.js";import{P as Be}from"./index-CEuq6vkz.js";import{_ as F}from"./extends-CF3RwP-h.js";import{i as Y}from"./tiny-invariant-DqLgxztJ.js";import{_ as ce}from"./objectWithoutPropertiesLoose-CAYKN5F1.js";function ie(e){return e.charAt(0)==="/"}function Pe(e,t){for(var i=t,r=i+1,n=e.length;r<n;i+=1,r+=1)e[i]=e[r];e.pop()}function ct(e,t){t===void 0&&(t="");var i=e&&e.split("/")||[],r=t&&t.split("/")||[],n=e&&ie(e),o=t&&ie(t),u=n||o;if(e&&ie(e)?r=i:i.length&&(r.pop(),r=r.concat(i)),!r.length)return"/";var c;if(r.length){var l=r[r.length-1];c=l==="."||l===".."||l===""}else c=!1;for(var a=0,s=r.length;s>=0;s--){var f=r[s];f==="."?Pe(r,s):f===".."?(Pe(r,s),a++):a&&(Pe(r,s),a--)}if(!u)for(;a--;a)r.unshift("..");u&&r[0]!==""&&(!r[0]||!ie(r[0]))&&r.unshift("");var h=r.join("/");return c&&h.substr(-1)!=="/"&&(h+="/"),h}function re(e){return e.charAt(0)==="/"?e:"/"+e}function Ne(e){return e.charAt(0)==="/"?e.substr(1):e}function ut(e,t){return e.toLowerCase().indexOf(t.toLowerCase())===0&&"/?#".indexOf(e.charAt(t.length))!==-1}function Qe(e,t){return ut(e,t)?e.substr(t.length):e}function Ye(e){return e.charAt(e.length-1)==="/"?e.slice(0,-1):e}function ft(e){var t=e||"/",i="",r="",n=t.indexOf("#");n!==-1&&(r=t.substr(n),t=t.substr(0,n));var o=t.indexOf("?");return o!==-1&&(i=t.substr(o),t=t.substr(0,o)),{pathname:t,search:i==="?"?"":i,hash:r==="#"?"":r}}function B(e){var t=e.pathname,i=e.search,r=e.hash,n=t||"/";return i&&i!=="?"&&(n+=i.charAt(0)==="?"?i:"?"+i),r&&r!=="#"&&(n+=r.charAt(0)==="#"?r:"#"+r),n}function W(e,t,i,r){var n;typeof e=="string"?(n=ft(e),n.state=t):(n=F({},e),n.pathname===void 0&&(n.pathname=""),n.search?n.search.charAt(0)!=="?"&&(n.search="?"+n.search):n.search="",n.hash?n.hash.charAt(0)!=="#"&&(n.hash="#"+n.hash):n.hash="",t!==void 0&&n.state===void 0&&(n.state=t));try{n.pathname=decodeURI(n.pathname)}catch(o){throw o instanceof URIError?new URIError('Pathname "'+n.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):o}return i&&(n.key=i),r?n.pathname?n.pathname.charAt(0)!=="/"&&(n.pathname=ct(n.pathname,r.pathname)):n.pathname=r.pathname:n.pathname||(n.pathname="/"),n}function Ae(){var e=null;function t(u){return e=u,function(){e===u&&(e=null)}}function i(u,c,l,a){if(e!=null){var s=typeof e=="function"?e(u,c):e;typeof s=="string"?typeof l=="function"?l(s,a):a(!0):a(s!==!1)}else a(!0)}var r=[];function n(u){var c=!0;function l(){c&&u.apply(void 0,arguments)}return r.push(l),function(){c=!1,r=r.filter(function(a){return a!==l})}}function o(){for(var u=arguments.length,c=new Array(u),l=0;l<u;l++)c[l]=arguments[l];r.forEach(function(a){return a.apply(void 0,c)})}return{setPrompt:t,confirmTransitionTo:i,appendListener:n,notifyListeners:o}}var Ze=!!(typeof window<"u"&&window.document&&window.document.createElement);function ke(e,t){t(window.confirm(e))}function lt(){var e=window.navigator.userAgent;return(e.indexOf("Android 2.")!==-1||e.indexOf("Android 4.0")!==-1)&&e.indexOf("Mobile Safari")!==-1&&e.indexOf("Chrome")===-1&&e.indexOf("Windows Phone")===-1?!1:window.history&&"pushState"in window.history}function ht(){return window.navigator.userAgent.indexOf("Trident")===-1}function pt(){return window.navigator.userAgent.indexOf("Firefox")===-1}function vt(e){return e.state===void 0&&navigator.userAgent.indexOf("CriOS")===-1}var je="popstate",We="hashchange";function Fe(){try{return window.history.state||{}}catch{return{}}}function dt(e){e===void 0&&(e={}),Ze||Y();var t=window.history,i=lt(),r=!ht(),n=e,o=n.forceRefresh,u=o===void 0?!1:o,c=n.getUserConfirmation,l=c===void 0?ke:c,a=n.keyLength,s=a===void 0?6:a,f=e.basename?Ye(re(e.basename)):"";function h(d){var p=d||{},x=p.key,m=p.state,C=window.location,U=C.pathname,j=C.search,G=C.hash,z=U+j+G;return f&&(z=Qe(z,f)),W(z,m,x)}function v(){return Math.random().toString(36).substr(2,s)}var g=Ae();function E(d){F(q,d),q.length=t.length,g.notifyListeners(q.location,q.action)}function S(d){vt(d)||_(h(d.state))}function A(){_(h(Fe()))}var O=!1;function _(d){if(O)O=!1,E();else{var p="POP";g.confirmTransitionTo(d,p,l,function(x){x?E({action:p,location:d}):D(d)})}}function D(d){var p=q.location,x=T.indexOf(p.key);x===-1&&(x=0);var m=T.indexOf(d.key);m===-1&&(m=0);var C=x-m;C&&(O=!0,R(C))}var H=h(Fe()),T=[H.key];function y(d){return f+B(d)}function P(d,p){var x="PUSH",m=W(d,p,v(),q.location);g.confirmTransitionTo(m,x,l,function(C){if(C){var U=y(m),j=m.key,G=m.state;if(i)if(t.pushState({key:j,state:G},null,U),u)window.location.href=U;else{var z=T.indexOf(q.location.key),Q=T.slice(0,z+1);Q.push(m.key),T=Q,E({action:x,location:m})}else window.location.href=U}})}function M(d,p){var x="REPLACE",m=W(d,p,v(),q.location);g.confirmTransitionTo(m,x,l,function(C){if(C){var U=y(m),j=m.key,G=m.state;if(i)if(t.replaceState({key:j,state:G},null,U),u)window.location.replace(U);else{var z=T.indexOf(q.location.key);z!==-1&&(T[z]=m.key),E({action:x,location:m})}else window.location.replace(U)}})}function R(d){t.go(d)}function L(){R(-1)}function J(){R(1)}var X=0;function N(d){X+=d,X===1&&d===1?(window.addEventListener(je,S),r&&window.addEventListener(We,A)):X===0&&(window.removeEventListener(je,S),r&&window.removeEventListener(We,A))}var I=!1;function Z(d){d===void 0&&(d=!1);var p=g.setPrompt(d);return I||(N(1),I=!0),function(){return I&&(I=!1,N(-1)),p()}}function we(d){var p=g.appendListener(d);return N(1),function(){N(-1),p()}}var q={length:t.length,action:"POP",location:H,createHref:y,push:P,replace:M,go:R,goBack:L,goForward:J,block:Z,listen:we};return q}var Ke="hashchange",mt={hashbang:{encodePath:function(t){return t.charAt(0)==="!"?t:"!/"+Ne(t)},decodePath:function(t){return t.charAt(0)==="!"?t.substr(1):t}},noslash:{encodePath:Ne,decodePath:re},slash:{encodePath:re,decodePath:re}};function et(e){var t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function ne(){var e=window.location.href,t=e.indexOf("#");return t===-1?"":e.substring(t+1)}function gt(e){window.location.hash=e}function be(e){window.location.replace(et(window.location.href)+"#"+e)}function yt(e){e===void 0&&(e={}),Ze||Y();var t=window.history;pt();var i=e,r=i.getUserConfirmation,n=r===void 0?ke:r,o=i.hashType,u=o===void 0?"slash":o,c=e.basename?Ye(re(e.basename)):"",l=mt[u],a=l.encodePath,s=l.decodePath;function f(){var p=s(ne());return c&&(p=Qe(p,c)),W(p)}var h=Ae();function v(p){F(d,p),d.length=t.length,h.notifyListeners(d.location,d.action)}var g=!1,E=null;function S(p,x){return p.pathname===x.pathname&&p.search===x.search&&p.hash===x.hash}function A(){var p=ne(),x=a(p);if(p!==x)be(x);else{var m=f(),C=d.location;if(!g&&S(C,m)||E===B(m))return;E=null,O(m)}}function O(p){if(g)g=!1,v();else{var x="POP";h.confirmTransitionTo(p,x,n,function(m){m?v({action:x,location:p}):_(p)})}}function _(p){var x=d.location,m=y.lastIndexOf(B(x));m===-1&&(m=0);var C=y.lastIndexOf(B(p));C===-1&&(C=0);var U=m-C;U&&(g=!0,L(U))}var D=ne(),H=a(D);D!==H&&be(H);var T=f(),y=[B(T)];function P(p){var x=document.querySelector("base"),m="";return x&&x.getAttribute("href")&&(m=et(window.location.href)),m+"#"+a(c+B(p))}function M(p,x){var m="PUSH",C=W(p,void 0,void 0,d.location);h.confirmTransitionTo(C,m,n,function(U){if(U){var j=B(C),G=a(c+j),z=ne()!==G;if(z){E=j,gt(G);var Q=y.lastIndexOf(B(d.location)),De=y.slice(0,Q+1);De.push(j),y=De,v({action:m,location:C})}else v()}})}function R(p,x){var m="REPLACE",C=W(p,void 0,void 0,d.location);h.confirmTransitionTo(C,m,n,function(U){if(U){var j=B(C),G=a(c+j),z=ne()!==G;z&&(E=j,be(G));var Q=y.indexOf(B(d.location));Q!==-1&&(y[Q]=j),v({action:m,location:C})}})}function L(p){t.go(p)}function J(){L(-1)}function X(){L(1)}var N=0;function I(p){N+=p,N===1&&p===1?window.addEventListener(Ke,A):N===0&&window.removeEventListener(Ke,A)}var Z=!1;function we(p){p===void 0&&(p=!1);var x=h.setPrompt(p);return Z||(I(1),Z=!0),function(){return Z&&(Z=!1,I(-1)),x()}}function q(p){var x=h.appendListener(p);return I(1),function(){I(-1),x()}}var d={length:t.length,action:"POP",location:T,createHref:P,push:M,replace:R,go:L,goBack:J,goForward:X,block:we,listen:q};return d}function qe(e,t,i){return Math.min(Math.max(e,t),i)}function xt(e){e===void 0&&(e={});var t=e,i=t.getUserConfirmation,r=t.initialEntries,n=r===void 0?["/"]:r,o=t.initialIndex,u=o===void 0?0:o,c=t.keyLength,l=c===void 0?6:c,a=Ae();function s(P){F(y,P),y.length=y.entries.length,a.notifyListeners(y.location,y.action)}function f(){return Math.random().toString(36).substr(2,l)}var h=qe(u,0,n.length-1),v=n.map(function(P){return typeof P=="string"?W(P,void 0,f()):W(P,void 0,P.key||f())}),g=B;function E(P,M){var R="PUSH",L=W(P,M,f(),y.location);a.confirmTransitionTo(L,R,i,function(J){if(J){var X=y.index,N=X+1,I=y.entries.slice(0);I.length>N?I.splice(N,I.length-N,L):I.push(L),s({action:R,location:L,index:N,entries:I})}})}function S(P,M){var R="REPLACE",L=W(P,M,f(),y.location);a.confirmTransitionTo(L,R,i,function(J){J&&(y.entries[y.index]=L,s({action:R,location:L}))})}function A(P){var M=qe(y.index+P,0,y.entries.length-1),R="POP",L=y.entries[M];a.confirmTransitionTo(L,R,i,function(J){J?s({action:R,location:L,index:M}):s()})}function O(){A(-1)}function _(){A(1)}function D(P){var M=y.index+P;return M>=0&&M<y.entries.length}function H(P){return P===void 0&&(P=!1),a.setPrompt(P)}function T(P){return a.appendListener(P)}var y={length:v.length,action:"POP",location:v[h],index:h,entries:v,createHref:g,push:E,replace:S,go:A,goBack:O,goForward:_,canGo:D,block:H,listen:T};return y}var te={exports:{}},wt=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"},ae=wt;te.exports=rt;te.exports.parse=Re;te.exports.compile=bt;te.exports.tokensToFunction=tt;te.exports.tokensToRegExp=nt;var Pt=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function Re(e,t){for(var i=[],r=0,n=0,o="",u=t&&t.delimiter||"/",c;(c=Pt.exec(e))!=null;){var l=c[0],a=c[1],s=c.index;if(o+=e.slice(n,s),n=s+l.length,a){o+=a[1];continue}var f=e[n],h=c[2],v=c[3],g=c[4],E=c[5],S=c[6],A=c[7];o&&(i.push(o),o="");var O=h!=null&&f!=null&&f!==h,_=S==="+"||S==="*",D=S==="?"||S==="*",H=c[2]||u,T=g||E;i.push({name:v||r++,prefix:h||"",delimiter:H,optional:D,repeat:_,partial:O,asterisk:!!A,pattern:T?St(T):A?".*":"[^"+oe(H)+"]+?"})}return n<e.length&&(o+=e.substr(n)),o&&i.push(o),i}function bt(e,t){return tt(Re(e,t),t)}function Ct(e){return encodeURI(e).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function Et(e){return encodeURI(e).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function tt(e,t){for(var i=new Array(e.length),r=0;r<e.length;r++)typeof e[r]=="object"&&(i[r]=new RegExp("^(?:"+e[r].pattern+")$",$e(t)));return function(n,o){for(var u="",c=n||{},l=o||{},a=l.pretty?Ct:encodeURIComponent,s=0;s<e.length;s++){var f=e[s];if(typeof f=="string"){u+=f;continue}var h=c[f.name],v;if(h==null)if(f.optional){f.partial&&(u+=f.prefix);continue}else throw new TypeError('Expected "'+f.name+'" to be defined');if(ae(h)){if(!f.repeat)throw new TypeError('Expected "'+f.name+'" to not repeat, but received `'+JSON.stringify(h)+"`");if(h.length===0){if(f.optional)continue;throw new TypeError('Expected "'+f.name+'" to not be empty')}for(var g=0;g<h.length;g++){if(v=a(h[g]),!i[s].test(v))throw new TypeError('Expected all "'+f.name+'" to match "'+f.pattern+'", but received `'+JSON.stringify(v)+"`");u+=(g===0?f.prefix:f.delimiter)+v}continue}if(v=f.asterisk?Et(h):a(h),!i[s].test(v))throw new TypeError('Expected "'+f.name+'" to match "'+f.pattern+'", but received "'+v+'"');u+=f.prefix+v}return u}}function oe(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function St(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function Le(e,t){return e.keys=t,e}function $e(e){return e&&e.sensitive?"":"i"}function Tt(e,t){var i=e.source.match(/\((?!\?)/g);if(i)for(var r=0;r<i.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return Le(e,t)}function At(e,t,i){for(var r=[],n=0;n<e.length;n++)r.push(rt(e[n],t,i).source);var o=new RegExp("(?:"+r.join("|")+")",$e(i));return Le(o,t)}function Rt(e,t,i){return nt(Re(e,i),t,i)}function nt(e,t,i){ae(t)||(i=t||i,t=[]),i=i||{};for(var r=i.strict,n=i.end!==!1,o="",u=0;u<e.length;u++){var c=e[u];if(typeof c=="string")o+=oe(c);else{var l=oe(c.prefix),a="(?:"+c.pattern+")";t.push(c),c.repeat&&(a+="(?:"+l+a+")*"),c.optional?c.partial?a=l+"("+a+")?":a="(?:"+l+"("+a+"))?":a=l+"("+a+")",o+=a}}var s=oe(i.delimiter||"/"),f=o.slice(-s.length)===s;return r||(o=(f?o.slice(0,-s.length):o)+"(?:"+s+"(?=$))?"),n?o+="$":o+=r&&f?"":"(?="+s+"|$)",Le(new RegExp("^"+o,$e(i)),t)}function rt(e,t,i){return ae(t)||(i=t||i,t=[]),i=i||{},e instanceof RegExp?Tt(e,t):ae(e)?At(e,t,i):Rt(e,t,i)}var Lt=te.exports;const $t=st(Lt);var b={};/** @license React v16.13.1
|
|
2
|
-
* react-is.production.min.js
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/var $=typeof Symbol=="function"&&Symbol.for,Me=$?Symbol.for("react.element"):60103,Oe=$?Symbol.for("react.portal"):60106,ue=$?Symbol.for("react.fragment"):60107,fe=$?Symbol.for("react.strict_mode"):60108,le=$?Symbol.for("react.profiler"):60114,he=$?Symbol.for("react.provider"):60109,pe=$?Symbol.for("react.context"):60110,Ue=$?Symbol.for("react.async_mode"):60111,ve=$?Symbol.for("react.concurrent_mode"):60111,de=$?Symbol.for("react.forward_ref"):60112,me=$?Symbol.for("react.suspense"):60113,Mt=$?Symbol.for("react.suspense_list"):60120,ge=$?Symbol.for("react.memo"):60115,ye=$?Symbol.for("react.lazy"):60116,Ot=$?Symbol.for("react.block"):60121,Ut=$?Symbol.for("react.fundamental"):60117,Ht=$?Symbol.for("react.responder"):60118,It=$?Symbol.for("react.scope"):60119;function K(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Me:switch(e=e.type,e){case Ue:case ve:case ue:case le:case fe:case me:return e;default:switch(e=e&&e.$$typeof,e){case pe:case de:case ye:case ge:case he:return e;default:return t}}case Oe:return t}}}function it(e){return K(e)===ve}b.AsyncMode=Ue;b.ConcurrentMode=ve;b.ContextConsumer=pe;b.ContextProvider=he;b.Element=Me;b.ForwardRef=de;b.Fragment=ue;b.Lazy=ye;b.Memo=ge;b.Portal=Oe;b.Profiler=le;b.StrictMode=fe;b.Suspense=me;b.isAsyncMode=function(e){return it(e)||K(e)===Ue};b.isConcurrentMode=it;b.isContextConsumer=function(e){return K(e)===pe};b.isContextProvider=function(e){return K(e)===he};b.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Me};b.isForwardRef=function(e){return K(e)===de};b.isFragment=function(e){return K(e)===ue};b.isLazy=function(e){return K(e)===ye};b.isMemo=function(e){return K(e)===ge};b.isPortal=function(e){return K(e)===Oe};b.isProfiler=function(e){return K(e)===le};b.isStrictMode=function(e){return K(e)===fe};b.isSuspense=function(e){return K(e)===me};b.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ue||e===ve||e===le||e===fe||e===me||e===Mt||typeof e=="object"&&e!==null&&(e.$$typeof===ye||e.$$typeof===ge||e.$$typeof===he||e.$$typeof===pe||e.$$typeof===de||e.$$typeof===Ut||e.$$typeof===Ht||e.$$typeof===It||e.$$typeof===Ot)};b.typeOf=K;var Ce=1073741823,ze=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:{};function _t(){var e="__global_unique_id__";return ze[e]=(ze[e]||0)+1}function Dt(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Bt(e){var t=[];return{on:function(r){t.push(r)},off:function(r){t=t.filter(function(n){return n!==r})},get:function(){return e},set:function(r,n){e=r,t.forEach(function(o){return o(e,n)})}}}function Nt(e){return Array.isArray(e)?e[0]:e}function jt(e,t){var i,r,n="__create-react-context-"+_t()+"__",o=function(c){V(l,c);function l(){for(var s,f=arguments.length,h=new Array(f),v=0;v<f;v++)h[v]=arguments[v];return s=c.call.apply(c,[this].concat(h))||this,s.emitter=Bt(s.props.value),s}var a=l.prototype;return a.getChildContext=function(){var f;return f={},f[n]=this.emitter,f},a.componentWillReceiveProps=function(f){if(this.props.value!==f.value){var h=this.props.value,v=f.value,g;Dt(h,v)?g=0:(g=typeof t=="function"?t(h,v):Ce,g|=0,g!==0&&this.emitter.set(f.value,g))}},a.render=function(){return this.props.children},l}(w.Component);o.childContextTypes=(i={},i[n]=Be.object.isRequired,i);var u=function(c){V(l,c);function l(){for(var s,f=arguments.length,h=new Array(f),v=0;v<f;v++)h[v]=arguments[v];return s=c.call.apply(c,[this].concat(h))||this,s.observedBits=void 0,s.state={value:s.getValue()},s.onUpdate=function(g,E){var S=s.observedBits|0;S&E&&s.setState({value:s.getValue()})},s}var a=l.prototype;return a.componentWillReceiveProps=function(f){var h=f.observedBits;this.observedBits=h??Ce},a.componentDidMount=function(){this.context[n]&&this.context[n].on(this.onUpdate);var f=this.props.observedBits;this.observedBits=f??Ce},a.componentWillUnmount=function(){this.context[n]&&this.context[n].off(this.onUpdate)},a.getValue=function(){return this.context[n]?this.context[n].get():e},a.render=function(){return Nt(this.props.children)(this.state.value)},l}(w.Component);return u.contextTypes=(r={},r[n]=Be.object,r),{Provider:o,Consumer:u}}var Wt=w.createContext||jt,ot=function(t){var i=Wt();return i.displayName=t,i},Ft=ot("Router-History"),k=ot("Router"),xe=function(e){V(t,e),t.computeRootMatch=function(n){return{path:"/",url:"/",params:{},isExact:n==="/"}};function t(r){var n;return n=e.call(this,r)||this,n.state={location:r.history.location},n._isMounted=!1,n._pendingLocation=null,r.staticContext||(n.unlisten=r.history.listen(function(o){n._pendingLocation=o})),n}var i=t.prototype;return i.componentDidMount=function(){var n=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen(function(o){n._isMounted&&n.setState({location:o})})),this._pendingLocation&&this.setState({location:this._pendingLocation})},i.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},i.render=function(){return w.createElement(k.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},w.createElement(Ft.Provider,{children:this.props.children||null,value:this.props.history}))},t}(w.Component);w.Component;w.Component;var Ge={},Kt=1e4,Ve=0;function qt(e,t){var i=""+t.end+t.strict+t.sensitive,r=Ge[i]||(Ge[i]={});if(r[e])return r[e];var n=[],o=$t(e,n,t),u={regexp:o,keys:n};return Ve<Kt&&(r[e]=u,Ve++),u}function He(e,t){t===void 0&&(t={}),(typeof t=="string"||Array.isArray(t))&&(t={path:t});var i=t,r=i.path,n=i.exact,o=n===void 0?!1:n,u=i.strict,c=u===void 0?!1:u,l=i.sensitive,a=l===void 0?!1:l,s=[].concat(r);return s.reduce(function(f,h){if(!h&&h!=="")return null;if(f)return f;var v=qt(h,{end:o,strict:c,sensitive:a}),g=v.regexp,E=v.keys,S=g.exec(e);if(!S)return null;var A=S[0],O=S.slice(1),_=e===A;return o&&!_?null:{path:h,url:h==="/"&&A===""?"/":A,isExact:_,params:E.reduce(function(D,H,T){return D[H.name]=O[T],D},{})}},null)}function zt(e){return w.Children.count(e)===0}var on=function(e){V(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;return i.render=function(){var n=this;return w.createElement(k.Consumer,null,function(o){o||Y();var u=n.props.location||o.location,c=n.props.computedMatch?n.props.computedMatch:n.props.path?He(u.pathname,n.props):o.match,l=F({},o,{location:u,match:c}),a=n.props,s=a.children,f=a.component,h=a.render;return Array.isArray(s)&&zt(s)&&(s=null),w.createElement(k.Provider,{value:l},l.match?s?typeof s=="function"?s(l):s:f?w.createElement(f,l):h?h(l):null:typeof s=="function"?s(l):null)})},t}(w.Component);function Ie(e){return e.charAt(0)==="/"?e:"/"+e}function Gt(e,t){return e?F({},t,{pathname:Ie(e)+t.pathname}):t}function Vt(e,t){if(!e)return t;var i=Ie(e);return t.pathname.indexOf(i)!==0?t:F({},t,{pathname:t.pathname.substr(i.length)})}function Je(e){return typeof e=="string"?e:B(e)}function Ee(e){return function(){Y()}}function Xe(){}w.Component;var an=function(e){V(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;return i.render=function(){var n=this;return w.createElement(k.Consumer,null,function(o){o||Y();var u=n.props.location||o.location,c,l;return w.Children.forEach(n.props.children,function(a){if(l==null&&w.isValidElement(a)){c=a;var s=a.props.path||a.props.from;l=s?He(u.pathname,F({},a.props,{path:s})):o.match}}),l?w.cloneElement(c,{location:u,computedMatch:l}):null})},t}(w.Component);w.useContext;w.Component;var sn=function(e){V(t,e);function t(){for(var r,n=arguments.length,o=new Array(n),u=0;u<n;u++)o[u]=arguments[u];return r=e.call.apply(e,[this].concat(o))||this,r.history=yt(r.props),r}var i=t.prototype;return i.render=function(){return w.createElement(xe,{history:this.history,children:this.props.children})},t}(w.Component),Se=function(t,i){return typeof t=="function"?t(i):t},Te=function(t,i){return typeof t=="string"?W(t,null,null,i):t},_e=function(t){return t},ee=w.forwardRef;typeof ee>"u"&&(ee=_e);function Jt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var Xt=ee(function(e,t){var i=e.innerRef,r=e.navigate,n=e.onClick,o=ce(e,["innerRef","navigate","onClick"]),u=o.target,c=F({},o,{onClick:function(a){try{n&&n(a)}catch(s){throw a.preventDefault(),s}!a.defaultPrevented&&a.button===0&&(!u||u==="_self")&&!Jt(a)&&(a.preventDefault(),r())}});return _e!==ee?c.ref=t||i:c.ref=i,w.createElement("a",c)}),Qt=ee(function(e,t){var i=e.component,r=i===void 0?Xt:i,n=e.replace,o=e.to,u=e.innerRef,c=ce(e,["component","replace","to","innerRef"]);return w.createElement(k.Consumer,null,function(l){l||Y();var a=l.history,s=Te(Se(o,l.location),l.location),f=s?a.createHref(s):"",h=F({},c,{href:f,navigate:function(){var g=Se(o,l.location),E=B(l.location)===B(Te(g)),S=n||E?a.replace:a.push;S(g)}});return _e!==ee?h.ref=t||u:h.innerRef=u,w.createElement(r,h)})}),at=function(t){return t},se=w.forwardRef;typeof se>"u"&&(se=at);function Yt(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return t.filter(function(r){return r}).join(" ")}se(function(e,t){var i=e["aria-current"],r=i===void 0?"page":i,n=e.activeClassName,o=n===void 0?"active":n,u=e.activeStyle,c=e.className,l=e.exact,a=e.isActive,s=e.location,f=e.sensitive,h=e.strict,v=e.style,g=e.to,E=e.innerRef,S=ce(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return w.createElement(k.Consumer,null,function(A){A||Y();var O=s||A.location,_=Te(Se(g,O),O),D=_.pathname,H=D&&D.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),T=H?He(O.pathname,{path:H,exact:l,sensitive:f,strict:h}):null,y=!!(a?a(T,O):T),P=typeof c=="function"?c(y):c,M=typeof v=="function"?v(y):v;y&&(P=Yt(P,o),M=F({},M,u));var R=F({"aria-current":y&&r||null,className:P,style:M,to:_},S);return at!==se?R.ref=t||E:R.innerRef=E,w.createElement(Qt,R)})});export{sn as H,Qt as L,on as R,an as S};
|