@oliasoft-open-source/react-ui-library 4.4.9-beta-1 → 4.4.9-beta-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/dist/assets/{index-UlXF8M5L.js → index-neKlYvgy.js} +5 -21
- package/dist/index.d.ts +4 -8
- package/dist/index.html +1 -1
- package/dist/index.js +66 -31
- package/dist/index.js.map +1 -1
- package/dist/storybook/assets/{Color-6VNJS4EI-dBRov0iu.js → Color-6VNJS4EI-UR0GIGxc.js} +1 -1
- package/dist/storybook/assets/{DocsRenderer-NNNQARDV-XOipoxsx.js → DocsRenderer-NNNQARDV-xsk8IDEt.js} +1 -1
- package/dist/storybook/assets/{WithTooltip-4HIR6TLV-N9BTPjWv.js → WithTooltip-4HIR6TLV-pVgy1VPd.js} +1 -1
- package/dist/storybook/assets/{accordion-MRdNs3mQ.js → accordion-6_27SROY.js} +1 -1
- package/dist/storybook/assets/{accordion.stories-UmGPZpjJ.js → accordion.stories-DAmwlTmm.js} +2 -2
- package/dist/storybook/assets/{actions--jdeAagr.js → actions-SGexXf58.js} +1 -1
- package/dist/storybook/assets/actions.stories-dDCC23QK.js +1 -0
- package/dist/storybook/assets/afe.stories-1YkAm2l2.js +88 -0
- package/dist/storybook/assets/badge.stories-nzXJ1qip.js +1 -0
- package/dist/storybook/assets/blowout.stories-ro9WCHli.js +40 -0
- package/dist/storybook/assets/button-IoNblLER.js +1 -0
- package/dist/storybook/assets/{button-group-kcxXYkIJ.js → button-group-KeeGgC4K.js} +1 -1
- package/dist/storybook/assets/{button-group.stories-U6DjmSki.js → button-group.stories-DG3i2d7K.js} +2 -2
- package/dist/storybook/assets/button.stories-vebimSi_.js +71 -0
- package/dist/storybook/assets/{buttons-and-links-e6-ikhN9.js → buttons-and-links-dnIYywWP.js} +2 -2
- package/dist/storybook/assets/card.stories-OtRekExg.js +1 -0
- package/dist/storybook/assets/{casing-loads.stories-xqjG7_uN.js → casing-loads.stories--oHbAVn4.js} +2 -2
- package/dist/storybook/assets/{cell.stories-SsCpOpZw.js → cell.stories-nm3Q_0D8.js} +2 -2
- package/dist/storybook/assets/{check-box-7DccPNCs.js → check-box-BX5dfQFk.js} +1 -1
- package/dist/storybook/assets/{check-box.stories-QBPARD7M.js → check-box.stories-FNs72smP.js} +2 -2
- package/dist/storybook/assets/{chunk-HLWAVYOI-HfFAKSRB.js → chunk-HLWAVYOI-k6gf1d96.js} +1 -1
- package/dist/storybook/assets/color-Cy3ydp1T.js +25 -0
- package/dist/storybook/assets/{column.stories-FWqVDX5B.js → column.stories-5pd3N4bE.js} +4 -4
- package/dist/storybook/assets/{dialog-e8amLd6m.js → dialog-dekS0lUR.js} +1 -1
- package/dist/storybook/assets/{drawer-LFjap9lP.js → drawer-TM-jK3WR.js} +1 -1
- package/dist/storybook/assets/{drawer.stories-liH4UlvJ.js → drawer.stories-OE24f2Y4.js} +4 -4
- package/dist/storybook/assets/empty.stories-KIByp315.js +1 -0
- package/dist/storybook/assets/{field-9udMeZdr.js → field-kOZPBHf6.js} +1 -1
- package/dist/storybook/assets/{field.stories-H98nslNw.js → field.stories-aEccauPi.js} +2 -2
- package/dist/storybook/assets/file-input.stories-I6IPu7wX.js +66 -0
- package/dist/storybook/assets/{flex-ZVra76N-.js → flex-KzhjL9yc.js} +1 -1
- package/dist/storybook/assets/{flex.stories-JzmT6lSO.js → flex.stories-rDfMJbP6.js} +2 -2
- package/dist/storybook/assets/footer.stories-FmE2JKok.js +3 -0
- package/dist/storybook/assets/form.stories-rWTgqDNA.js +49 -0
- package/dist/storybook/assets/formation.stories-ZGzBQKt1.js +74 -0
- package/dist/storybook/assets/{formatter-SWP5E3XI-s19u3emO.js → formatter-SWP5E3XI-xxvke7zr.js} +1 -1
- package/dist/storybook/assets/{heading-sY0SLHoQ.js → heading-cUVItwKq.js} +1 -1
- package/dist/storybook/assets/{heading.stories-hnhUBXVe.js → heading.stories-UJlMVVI-.js} +2 -2
- package/dist/storybook/assets/{help-icon-yrJgkgdC.js → help-icon-nI9A506M.js} +1 -1
- package/dist/storybook/assets/help-icon.stories-Qz7MKCnQ.js +4 -0
- package/dist/storybook/assets/{icon-_m67DAr0.js → icon-y1a2N5SZ.js} +3 -3
- package/dist/storybook/assets/icon.stories-D_XEmSGG.js +6 -0
- package/dist/storybook/assets/iframe-OdUxEBCn.js +7 -0
- package/dist/storybook/assets/{index-oLFGkfb-.js → index-7-xF_Wf1.js} +5 -5
- package/dist/storybook/assets/index.es-JXn3JM7k.js +86 -0
- package/dist/storybook/assets/{input-group.stories-zQ6b9scC.js → input-group.stories-EouZEW-v.js} +2 -2
- package/dist/storybook/assets/{input-validation-lIx2JTiW.js → input-validation-aKeFulYg.js} +2 -2
- package/dist/storybook/assets/{inputs-ubhN8jR5.js → inputs--9ASkoLe.js} +14 -14
- package/dist/storybook/assets/{label-J7MI85wD.js → label-RpB4JmHX.js} +1 -1
- package/dist/storybook/assets/label.stories-HcdQ1bEB.js +11 -0
- package/dist/storybook/assets/{layout-forms-R_iC_SeZ.js → layout-forms-bs4G5L9b.js} +4 -4
- package/dist/storybook/assets/{layout-general-2sM6LsZn.js → layout-general-ZfCQGRaN.js} +2 -2
- package/dist/storybook/assets/list-ciYNlkVM.js +8 -0
- package/dist/storybook/assets/{list-heading-vbaXVA9N.js → list-heading-XbqCJOHh.js} +1 -1
- package/dist/storybook/assets/list.stories-G1n5uCjl.js +457 -0
- package/dist/storybook/assets/{list.stories-data-tBKSPg9P.js → list.stories-data-8eswVWst.js} +1 -1
- package/dist/storybook/assets/{loader.stories-9Tv8nlOO.js → loader.stories-G8Q_Fm8u.js} +2 -2
- package/dist/storybook/assets/{menu.stories-iE1tUnCd.js → menu.stories-GFJs09Wk.js} +2 -2
- package/dist/storybook/assets/{menu.stories-data-VCYkzuDD.js → menu.stories-data-c8X93fYM.js} +1 -1
- package/dist/storybook/assets/{message-p9VAXLNZ.js → message-uMHaTEXV.js} +1 -1
- package/dist/storybook/assets/{message.stories-34ul5gSz.js → message.stories-BqM_-mrZ.js} +2 -2
- package/dist/storybook/assets/{modal.stories-RMMVeIMK.js → modal.stories-K4XxeWTp.js} +2 -2
- package/dist/storybook/assets/{number-input.stories-477qVsQF.js → number-input.stories-SOsG2FLJ.js} +2 -2
- package/dist/storybook/assets/option-dropdown.stories-1Y5JDaBF.js +21 -0
- package/dist/storybook/assets/{padding-and-spacing-_thODzSW.js → padding-and-spacing-5Di4mATJ.js} +1 -1
- package/dist/storybook/assets/page.stories-B5gzoAi8.js +57 -0
- package/dist/storybook/assets/{pagination-qKZAUHlD.js → pagination-Eaj_UOBW.js} +1 -1
- package/dist/storybook/assets/{pagination.stories-tRiEpkH6.js → pagination.stories-sl2a8BMq.js} +2 -2
- package/dist/storybook/assets/pop-confirm.stories-94l3Xg8w.js +9 -0
- package/dist/storybook/assets/{popover-GnGIPc9x.js → popover-uAo1e4-D.js} +1 -1
- package/dist/storybook/assets/popover.stories-JVzzF0Jm.js +1 -0
- package/dist/storybook/assets/{preview-eDFlm4aX.js → preview-isirG_5x.js} +2 -2
- package/dist/storybook/assets/{preview-FRdqQg8W.js → preview-vxQ6dQWV.js} +3 -3
- package/dist/storybook/assets/projects.stories-ojOsn6HU.js +47 -0
- package/dist/storybook/assets/{radio-button-T38JdN-I.js → radio-button-QcS9mLYi.js} +1 -1
- package/dist/storybook/assets/{radio-button.stories-MbtUJQ4_.js → radio-button.stories-KCS981-F.js} +5 -5
- package/dist/storybook/assets/{reservoirs.stories-ttnZYnPz.js → reservoirs.stories-Dg5QFAXV.js} +2 -2
- package/dist/storybook/assets/{rich-text-input.stories-OiAxLAVQ.js → rich-text-input.stories-D55Op5Gf.js} +3 -3
- package/dist/storybook/assets/{row.stories-8AoB-Dlf.js → row.stories-2iigGv-u.js} +2 -2
- package/dist/storybook/assets/{select-0hek2Baz.js → select-Z1HqJ5aU.js} +1 -1
- package/dist/storybook/assets/{select.stories-tCGanTNP.js → select.stories-oUxeDUts.js} +2 -2
- package/dist/storybook/assets/{side-bar-0iIgujp4.js → side-bar-GJ2tcZYY.js} +1 -1
- package/dist/storybook/assets/side-bar.stories-Ld0zOToQ.js +1 -0
- package/dist/storybook/assets/{site.stories-2PTp7gw0.js → site.stories-OEW6o2C_.js} +2 -2
- package/dist/storybook/assets/{slider-t5EokN-o.js → slider-_5NQKbM-.js} +2 -2
- package/dist/storybook/assets/{slider.stories-Knk-d29_.js → slider.stories-QyyBB_rz.js} +4 -4
- package/dist/storybook/assets/spacer.stories--ynGgvN4.js +1 -0
- package/dist/storybook/assets/{syntaxhighlighter-NMPM6SWI-y1MAbcc6.js → syntaxhighlighter-NMPM6SWI-ex2bNHCn.js} +1 -1
- package/dist/storybook/assets/{table-o1Zuxe0v.js → table-_jWgMFOi.js} +1 -1
- package/dist/storybook/assets/{table.stories-K2LI80yY.js → table.stories-QupkMmra.js} +2 -2
- package/dist/storybook/assets/{table.stories-data-tHq-3JM9.js → table.stories-data-w897tYMJ.js} +1 -1
- package/dist/storybook/assets/text-link.stories-kjfUeFtk.js +1 -0
- package/dist/storybook/assets/{textarea-QFVBH_vb.js → textarea-mYEkEnUR.js} +1 -1
- package/dist/storybook/assets/{textarea.stories-HETiaNLn.js → textarea.stories-ARS3RM31.js} +1 -1
- package/dist/storybook/assets/{title.stories-waT6sG0P.js → title.stories-14d2lIxy.js} +3 -3
- package/dist/storybook/assets/{toaster-bqqWcltU.js → toaster-eOozfa7U.js} +1 -1
- package/dist/storybook/assets/{toaster.stories-oExX0THb.js → toaster.stories-XhUo3pbR.js} +2 -2
- package/dist/storybook/assets/{toggle-b0PkHQDl.js → toggle-wk0GbVB8.js} +1 -1
- package/dist/storybook/assets/{toggle.stories-wWcYddEt.js → toggle.stories-ItCMhW4M.js} +2 -2
- package/dist/storybook/assets/tooltip.test-case.stories-L2bW8Ijz.js +3 -0
- package/dist/storybook/assets/{top-bar-odjinr_b.js → top-bar-0fDAFWyC.js} +1 -1
- package/dist/storybook/assets/top-bar.stories-YKtteM_h.js +1 -0
- package/dist/storybook/assets/top-bar.testcase.stories-Z-6C5D2R.js +30 -0
- package/dist/storybook/assets/tree.stories-5fjCVN1S.js +180 -0
- package/dist/storybook/assets/unit-input.stories-ZdrR9JWT.js +273 -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/stories.json +1 -1
- package/package.json +1 -2
- package/dist/storybook/assets/actions.stories-T8b1WLu9.js +0 -1
- package/dist/storybook/assets/afe.stories-Vw9r62sk.js +0 -88
- package/dist/storybook/assets/badge.stories-spKtjcPw.js +0 -1
- package/dist/storybook/assets/blowout.stories-U_cS_3Xs.js +0 -40
- package/dist/storybook/assets/button-qfybxFqE.js +0 -1
- package/dist/storybook/assets/button.stories-6GvGJMKF.js +0 -80
- package/dist/storybook/assets/card.stories-v_QIHoI3.js +0 -1
- package/dist/storybook/assets/color-RZTO_BH4.js +0 -25
- package/dist/storybook/assets/empty.stories-quAOsHNV.js +0 -1
- package/dist/storybook/assets/file-input.stories-WyK9TFKC.js +0 -66
- package/dist/storybook/assets/footer.stories-wPp58LMn.js +0 -3
- package/dist/storybook/assets/form.stories-RMbO5qjE.js +0 -49
- package/dist/storybook/assets/formation.stories-0fppcLax.js +0 -74
- package/dist/storybook/assets/help-icon.stories-gjzAU_pF.js +0 -4
- package/dist/storybook/assets/hoist-non-react-statics.cjs-pnyno-Dk.js +0 -8
- package/dist/storybook/assets/icon.stories-vAvCbxZP.js +0 -6
- package/dist/storybook/assets/iframe-uF49rd0M.js +0 -7
- package/dist/storybook/assets/index.es-LXZC0YVN.js +0 -79
- package/dist/storybook/assets/label.stories-kmvMrgz2.js +0 -11
- package/dist/storybook/assets/list-1fS-ZLaF.js +0 -8
- package/dist/storybook/assets/list.stories-maVHoPyy.js +0 -478
- package/dist/storybook/assets/objectWithoutPropertiesLoose-9Q1jwsKS.js +0 -1
- package/dist/storybook/assets/option-dropdown.stories-NRogMOtD.js +0 -21
- package/dist/storybook/assets/page.stories-qo9KEiWt.js +0 -57
- package/dist/storybook/assets/pop-confirm.stories-aFXfbsuI.js +0 -9
- package/dist/storybook/assets/popover.stories-zzxDYG13.js +0 -1
- package/dist/storybook/assets/projects.stories-mDHzd2Nc.js +0 -47
- package/dist/storybook/assets/react-router-dom-2JKSc1g5.js +0 -8
- package/dist/storybook/assets/side-bar.stories-v7wWMQcv.js +0 -1
- package/dist/storybook/assets/spacer.stories--6Lac6Fz.js +0 -1
- package/dist/storybook/assets/text-link.stories-sfurduAc.js +0 -14
- package/dist/storybook/assets/tooltip.test-case.stories-8mCQYXFD.js +0 -3
- package/dist/storybook/assets/top-bar.stories-Q3tcZHmc.js +0 -1
- package/dist/storybook/assets/top-bar.testcase.stories-85g2VfLi.js +0 -30
- package/dist/storybook/assets/tree.stories-vNmT3unc.js +0 -128
- package/dist/storybook/assets/unit-input.stories-OL_uzjER.js +0 -273
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./jsx-runtime-FsUICBgo.js";import"./index-RfLt4OUa.js";import{T as n}from"./top-bar-odjinr_b.js";import{L as e}from"./list-1fS-ZLaF.js";import{P as p}from"./page-9-f6BzS0.js";import{R as c,C as o}from"./row-vFUhHoz5.js";import{T as d}from"./tabs-fcLbHC1n.js";import{S as u}from"./spacer-Yji9g2AW.js";import"./index-VW3EWkuE.js";import"./icon-_m67DAr0.js";import"./objectWithoutPropertiesLoose-9Q1jwsKS.js";import"./inheritsLoose-Y9jOMJLd.js";import"./tslib.es6-OIsz3r9a.js";import"./index-4QtD-hFu.js";import"./disabled-context-urNQThQz.js";import"./common-types-U65vzrrz.js";import"./button-qfybxFqE.js";import"./spinner-R8Il4aRe.js";import"./tooltip-ZHdi6rl-.js";import"./index-miLrID2P.js";import"./actions--jdeAagr.js";import"./lodash-Bmg8FrMx.js";import"./types-VB5zD18b.js";import"./types-5uVBABF4.js";import"./badge-23Ty_zBt.js";import"./index.es-LXZC0YVN.js";import"./extends-dGVwEr9R.js";import"./redux-F5dueAP3.js";import"./objectSpread2-93s0nBry.js";import"./hoist-non-react-statics.cjs-pnyno-Dk.js";import"./memoize-one.esm-hqe5SRxC.js";import"./card-0r8RRVk-.js";import"./list-heading-vbaXVA9N.js";import"./heading-sY0SLHoQ.js";import"./help-icon-yrJgkgdC.js";import"./loader-TGOJBZQG.js";import"./styled-components.browser.esm-qIipjd6c.js";import"./select.input-zP5tW20f.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"}],Z={title:"Layout/Layout Examples",parameters:{layout:"fullscreen",docs:{story:{inline:!1,iframeHeight:400}}}},l=()=>r.jsxs(r.Fragment,{children:[r.jsx(n,{}),r.jsxs(p,{padding:!1,left:0,scroll:!1,children:[r.jsx(u,{}),r.jsx(d,{margin:!1,padding:!0,options:t,value:t[0]}),r.jsxs(c,{spacing:0,flex:!0,height:"100%",children:[r.jsx(o,{borderRight:!0,scroll:!0,showScrollbar:!1,children:r.jsx(e,{list:{name:"Country",items:s}})}),r.jsx(o,{borderRight:!0,scroll:!0,showScrollbar:!1,children:r.jsx(e,{list:{name:"Field",items:s}})}),r.jsx(o,{borderRight:!0,scroll:!0,showScrollbar:!1,children:r.jsx(e,{list:{name:"Site",items:s}})}),r.jsx(o,{borderRight:!0,scroll:!0,showScrollbar:!1,children:r.jsx(e,{list:{name:"Well",items:s}})}),r.jsx(o,{borderRight:!0,scroll:!0,showScrollbar:!1,children:r.jsx(e,{list:{name:"Wellbore",items:s}})}),r.jsx(o,{scroll:!0,showScrollbar:!1,children:r.jsx(e,{list:{name:"Design",items:s}})})]})]})]});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}}};l.__docgenInfo={description:"",methods:[],displayName:"Projects"};const $=["Projects"];export{l as Projects,$ as __namedExportsOrder,Z as default};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{_ as V}from"./inheritsLoose-Y9jOMJLd.js";import{g as st,R as w}from"./index-RfLt4OUa.js";import{P as Be}from"./index-4QtD-hFu.js";import{_ as F}from"./extends-dGVwEr9R.js";import{i as Y}from"./hoist-non-react-statics.cjs-pnyno-Dk.js";import{_ as ce}from"./objectWithoutPropertiesLoose-9Q1jwsKS.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(!1);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(!1);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(!1);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(!1)}}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(!1);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(!1);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(!1);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};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./jsx-runtime-FsUICBgo.js";import{I as t}from"./common-types-U65vzrrz.js";import{S as m}from"./side-bar-0iIgujp4.js";import{F as g}from"./flex-ZVra76N-.js";import{B as u}from"./badge-23Ty_zBt.js";import{s as S}from"./icon-custom-PyWFQsS3.js";import"./index-RfLt4OUa.js";import"./index-VW3EWkuE.js";import"./index-ugi_ZH6T.js";import"./drawer-LFjap9lP.js";import"./lodash-Bmg8FrMx.js";import"./index-4QtD-hFu.js";import"./index-miLrID2P.js";import"./icon-_m67DAr0.js";import"./objectWithoutPropertiesLoose-9Q1jwsKS.js";import"./inheritsLoose-Y9jOMJLd.js";import"./tslib.es6-OIsz3r9a.js";import"./disabled-context-urNQThQz.js";import"./button-qfybxFqE.js";import"./spinner-R8Il4aRe.js";import"./tooltip-ZHdi6rl-.js";const h=[{heading:"First Heading",items:[{label:"Section A",value:"/path/to/something",onClick:()=>{},icon:S},{label:i.jsxs(g,{alignItems:"center",gap:"var(--padding-xxs)",children:["Section B",i.jsx(u,{small:!0,title:"BETA"})]}),value:"/path/to/something",onClick:()=>{},icon:t.HELP,isActive:!0},{label:"Section C",value:"/path/to/something",onClick:()=>{},icon:t.EDIT},{label:"Experimental Section",value:"/path/to/something",onClick:()=>{},icon:t.LIBRARY,isExperimental:!0}]},{heading:"Second Heading",items:[{label:"Section 1",value:"/path/to/something",onClick:()=>{},icon:t.SETTINGS},{label:"Section 2",value:"/path/to/something",onClick:()=>{},icon:t.STAR},{label:"Invalid Section",value:"/path/to/something",onClick:()=>{},icon:t.NOTIFICATION,invalid:!0}]}],G={title:"Navigation/SideBar",component:m,parameters:{layout:"fullscreen",docs:{story:{inline:!1,iframeHeight:400}}},args:{options:{title:"Title",sections:h},startOpen:!1},argTypes:{top:{control:{type:"text"}},startOpen:{control:{type:"boolean"}}}},c=d=>i.jsx(m,{...d}),o=c.bind({}),e=c.bind({});e.args={startOpen:!0};var r,a,s;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:"args => <SideBar {...args} />",...(s=(a=o.parameters)==null?void 0:a.docs)==null?void 0:s.source}}};var n,p,l;e.parameters={...e.parameters,docs:{...(n=e.parameters)==null?void 0:n.docs,source:{originalSource:"args => <SideBar {...args} />",...(l=(p=e.parameters)==null?void 0:p.docs)==null?void 0:l.source}}};const P=["Default","StartOpen"];export{o as Default,e as StartOpen,P as __namedExportsOrder,G as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./jsx-runtime-FsUICBgo.js";import{S as h}from"./spacer-Yji9g2AW.js";import{F as j}from"./flex-ZVra76N-.js";import{B as s}from"./button-qfybxFqE.js";import"./index-RfLt4OUa.js";import"./index-VW3EWkuE.js";import"./common-types-U65vzrrz.js";import"./disabled-context-urNQThQz.js";import"./spinner-R8Il4aRe.js";import"./icon-_m67DAr0.js";import"./objectWithoutPropertiesLoose-9Q1jwsKS.js";import"./inheritsLoose-Y9jOMJLd.js";import"./tslib.es6-OIsz3r9a.js";import"./index-4QtD-hFu.js";import"./tooltip-ZHdi6rl-.js";import"./index-miLrID2P.js";const L={title:"Layout/Spacer",component:h,argTypes:{width:{control:"text"},height:{control:"text"}}},p=t=>r.jsx(h,{...t}),a=p.bind({});a.decorators=[t=>r.jsxs(r.Fragment,{children:[r.jsx(s,{label:"Button"}),t(),r.jsx(s,{label:"Button"})]})];const e=p.bind({});e.args={height:"var(--padding-xxs)"};e.decorators=[t=>r.jsxs(r.Fragment,{children:[r.jsx(s,{label:"Button"}),t(),r.jsx(s,{label:"Button"})]})];const o=p.bind({});o.args={width:"var(--padding)"};o.decorators=[t=>r.jsxs(j,{children:[r.jsx(s,{label:"Button"}),t(),r.jsx(s,{label:"Button"})]})];var c,i,m;a.parameters={...a.parameters,docs:{...(c=a.parameters)==null?void 0:c.docs,source:{originalSource:"(args: ISpacerProps) => <Spacer {...args} />",...(m=(i=a.parameters)==null?void 0:i.docs)==null?void 0:m.source}}};var n,d,l;e.parameters={...e.parameters,docs:{...(n=e.parameters)==null?void 0:n.docs,source:{originalSource:"(args: ISpacerProps) => <Spacer {...args} />",...(l=(d=e.parameters)==null?void 0:d.docs)==null?void 0:l.source}}};var u,g,x;o.parameters={...o.parameters,docs:{...(u=o.parameters)==null?void 0:u.docs,source:{originalSource:"(args: ISpacerProps) => <Spacer {...args} />",...(x=(g=o.parameters)==null?void 0:g.docs)==null?void 0:x.source}}};const O=["Default","Height","Width"];export{a as Default,e as Height,o as Width,O as __namedExportsOrder,L as default};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-FsUICBgo.js";import{H as y,L as i,S,R as d}from"./react-router-dom-2JKSc1g5.js";import{F as _}from"./flex-ZVra76N-.js";import{T as b}from"./text-6KQ6ntOV.js";import"./index-RfLt4OUa.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-4QtD-hFu.js";import"./extends-dGVwEr9R.js";import"./hoist-non-react-statics.cjs-pnyno-Dk.js";import"./objectWithoutPropertiesLoose-9Q1jwsKS.js";import"./index-VW3EWkuE.js";const t=({children:n,href:o=void 0,target:L=void 0,testId:T,onClick:j,component:R="a"})=>e.jsx(R,{href:o,to:o,target:L,onClick:j,"data-testid":T,children:e.jsx(b,{link:!0,children:n})});try{t.displayName="TextLink",t.__docgenInfo={description:"",displayName:"TextLink",props:{href:{defaultValue:{value:"undefined"},description:"",name:"href",required:!1,type:{name:"string"}},target:{defaultValue:{value:"undefined"},description:"",name:"target",required:!1,type:{name:"string"}},testId:{defaultValue:null,description:"",name:"testId",required:!1,type:{name:"string"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!1,type:{name:"((e: MouseEvent<HTMLAnchorElement, MouseEvent>) => void)"}},component:{defaultValue:null,description:"",name:"component",required:!1,type:{name:"ElementType<any>"}}}}}catch{}const M={title:"Basic/TextLink",component:t,args:{children:"Link text goes here",href:"http://oliasoft.com"}},k=n=>e.jsx(t,{...n}),s=k.bind({}),r=k.bind({});r.args={href:void 0,onClick:()=>console.log("Clicked!")};const a=()=>e.jsxs(y,{children:[e.jsxs(_,{gap:!0,children:[e.jsx(t,{component:i,href:"/dashboard",children:"Dashboard"}),e.jsx(t,{component:i,href:"/settings",children:"Settings"})]}),e.jsxs(S,{children:[e.jsx(d,{path:"/dashboard",children:"Dashboard"}),e.jsx(d,{path:"/settings",children:"Settings"})]})]});var c,p,l;s.parameters={...s.parameters,docs:{...(c=s.parameters)==null?void 0:c.docs,source:{originalSource:"args => <TextLink {...args} />",...(l=(p=s.parameters)==null?void 0:p.docs)==null?void 0:l.source}}};var m,u,h;r.parameters={...r.parameters,docs:{...(m=r.parameters)==null?void 0:m.docs,source:{originalSource:"args => <TextLink {...args} />",...(h=(u=r.parameters)==null?void 0:u.docs)==null?void 0:h.source}}};var x,f,g;a.parameters={...a.parameters,docs:{...(x=a.parameters)==null?void 0:x.docs,source:{originalSource:`() => <HashRouter>
|
|
2
|
-
<Flex gap>
|
|
3
|
-
<TextLink component={Link} href="/dashboard">
|
|
4
|
-
Dashboard
|
|
5
|
-
</TextLink>
|
|
6
|
-
<TextLink component={Link} href="/settings">
|
|
7
|
-
Settings
|
|
8
|
-
</TextLink>
|
|
9
|
-
</Flex>
|
|
10
|
-
<Switch>
|
|
11
|
-
<Route path="/dashboard">Dashboard</Route>
|
|
12
|
-
<Route path="/settings">Settings</Route>
|
|
13
|
-
</Switch>
|
|
14
|
-
</HashRouter>`,...(g=(f=a.parameters)==null?void 0:f.docs)==null?void 0:g.source}}};const O=["Default","OnClick","AsRouterLink"];export{a as AsRouterLink,s as Default,r as OnClick,O as __namedExportsOrder,M as default};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./jsx-runtime-FsUICBgo.js";import{T as p}from"./tooltip-ZHdi6rl-.js";import{M as m}from"./actions--jdeAagr.js";import{m as n}from"./menu.stories-data-VCYkzuDD.js";import"./index-RfLt4OUa.js";import"./index-miLrID2P.js";import"./index-VW3EWkuE.js";import"./lodash-Bmg8FrMx.js";import"./common-types-U65vzrrz.js";import"./disabled-context-urNQThQz.js";import"./button-qfybxFqE.js";import"./spinner-R8Il4aRe.js";import"./icon-_m67DAr0.js";import"./objectWithoutPropertiesLoose-9Q1jwsKS.js";import"./inheritsLoose-Y9jOMJLd.js";import"./tslib.es6-OIsz3r9a.js";import"./index-4QtD-hFu.js";import"./types-VB5zD18b.js";import"./types-5uVBABF4.js";import"./badge-23Ty_zBt.js";import"./flex-ZVra76N-.js";const S={title:"Basic/Tooltip/Test Cases",component:p,args:{text:"Tooltip text"}},a=i=>s.jsx(p,{...i}),o=a.bind({});o.args={children:s.jsx(m,{menu:n}),placement:"bottom-end",display:"inline-block"};var t,r,e;o.parameters={...o.parameters,docs:{...(t=o.parameters)==null?void 0:t.docs,source:{originalSource:`args => <Tooltip
|
|
2
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
3
|
-
{...args} />`,...(e=(r=o.parameters)==null?void 0:r.docs)==null?void 0:e.source}}};const q=["CloseWhenMenuOpen"];export{o as CloseWhenMenuOpen,q as __namedExportsOrder,S as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-FsUICBgo.js";import{I as B,T as h}from"./common-types-U65vzrrz.js";import{T as C}from"./top-bar-odjinr_b.js";import{M as I}from"./actions--jdeAagr.js";import{B as n}from"./button-qfybxFqE.js";import{B as O}from"./badge-23Ty_zBt.js";import{L as S}from"./logo-nHW4TqZt.js";import{s as j}from"./icon-custom-PyWFQsS3.js";import{M as a}from"./types-VB5zD18b.js";import"./index-RfLt4OUa.js";import"./index-VW3EWkuE.js";import"./icon-_m67DAr0.js";import"./objectWithoutPropertiesLoose-9Q1jwsKS.js";import"./inheritsLoose-Y9jOMJLd.js";import"./tslib.es6-OIsz3r9a.js";import"./index-4QtD-hFu.js";import"./disabled-context-urNQThQz.js";import"./lodash-Bmg8FrMx.js";import"./tooltip-ZHdi6rl-.js";import"./index-miLrID2P.js";import"./types-5uVBABF4.js";import"./spinner-R8Il4aRe.js";const N=[{type:"Link",label:"Link",onClick:()=>{}},{type:"Link",label:"Active",active:!0,onClick:()=>{}},{type:"Link",label:"Disabled",disabled:!0,onClick:()=>{}},{type:"Menu",label:"Dropdown",onClick:()=>{},sections:[{type:"Option",label:"Alpacas",onClick:()=>{}},{type:"Option",label:"Llamas",onClick:()=>{}}]},{type:"Button",label:"Save",colored:!0,onClick:()=>{},testId:"top-bar-button-save"}],v=[{type:"Component",component:e.jsx(O,{title:"3",small:!0,margin:"5px",children:e.jsx(n,{icon:B.NOTIFICATION,round:!0,onClick:()=>{}})})},{type:"Component",component:e.jsx(I,{menu:{trigger:h.COMPONENT,fullHeightTrigger:!0,placement:"bottom-end",component:e.jsx(n,{label:"TU",round:!0,onClick:()=>{}}),sections:[{type:a.HEADING,label:"Test User"},{type:a.OPTION,label:"Profile",icon:"user",onClick:()=>{}},{type:a.DIVIDER},{type:a.OPTION,label:"Sign out",icon:"lock",onClick:()=>{}}]}})}],Z={title:"Navigation/TopBar",component:C,parameters:{layout:"fullscreen",docs:{story:{inline:!1,iframeHeight:400}}},argTypes:{height:{control:"text"}},args:{title:{logo:e.jsx("img",{src:S,alt:"logo"}),onClick:()=>{}},content:N,contentRight:v}},i=x=>e.jsx(C,{...x}),s=i.bind({}),r=i.bind({});r.args={warning:"Application update available. Please refresh your browser."};const o=i.bind({});o.args={title:{label:"Text Branding",onClick:()=>{}}};const t=i.bind({});t.args={appSwitcher:{icon:j,onClick:()=>{}}};var p,c,l;s.parameters={...s.parameters,docs:{...(p=s.parameters)==null?void 0:p.docs,source:{originalSource:"args => <TopBar {...args} />",...(l=(c=s.parameters)==null?void 0:c.docs)==null?void 0:l.source}}};var m,g,u;r.parameters={...r.parameters,docs:{...(m=r.parameters)==null?void 0:m.docs,source:{originalSource:"args => <TopBar {...args} />",...(u=(g=r.parameters)==null?void 0:g.docs)==null?void 0:u.source}}};var d,T,b;o.parameters={...o.parameters,docs:{...(d=o.parameters)==null?void 0:d.docs,source:{originalSource:"args => <TopBar {...args} />",...(b=(T=o.parameters)==null?void 0:T.docs)==null?void 0:b.source}}};var y,k,f;t.parameters={...t.parameters,docs:{...(y=t.parameters)==null?void 0:y.docs,source:{originalSource:"args => <TopBar {...args} />",...(f=(k=t.parameters)==null?void 0:k.docs)==null?void 0:f.source}}};const $=["Default","WithWarning","TextBranding","AppSwitcher"];export{t as AppSwitcher,s as Default,o as TextBranding,r as WithWarning,$ as __namedExportsOrder,Z as default};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./jsx-runtime-FsUICBgo.js";import{I as n}from"./common-types-U65vzrrz.js";import{T as l}from"./top-bar-odjinr_b.js";import{B as s}from"./button-qfybxFqE.js";import{B as m}from"./badge-23Ty_zBt.js";import{L as p}from"./logo-nHW4TqZt.js";import"./index-RfLt4OUa.js";import"./index-VW3EWkuE.js";import"./icon-_m67DAr0.js";import"./objectWithoutPropertiesLoose-9Q1jwsKS.js";import"./inheritsLoose-Y9jOMJLd.js";import"./tslib.es6-OIsz3r9a.js";import"./index-4QtD-hFu.js";import"./disabled-context-urNQThQz.js";import"./actions--jdeAagr.js";import"./lodash-Bmg8FrMx.js";import"./tooltip-ZHdi6rl-.js";import"./index-miLrID2P.js";import"./types-VB5zD18b.js";import"./types-5uVBABF4.js";import"./spinner-R8Il4aRe.js";const V={title:"Navigation/TopBar/Test Cases",parameters:{layout:"fullscreen",docs:{story:{inline:!1,iframeHeight:400}}}},t=()=>o.jsx(l,{title:{logo:o.jsx("img",{src:p,alt:"logo"}),version:"V1.2.3",onClick:()=>{}},content:[{type:"Link",label:"Link",onClick:()=>{}},{type:"Link",label:"Lorem ipsum dolor est compendum lorem ipsum dolor est compendum lorem ipsum dolor est (cloned 2022-06-17 01:33:42)",active:!0,onClick:()=>{}},{type:"Link",label:"Disabled",disabled:!0,onClick:()=>{}},{type:"Button",label:"Save",colored:!0,onClick:()=>{},testId:"top-bar-button-save"}],contentRight:[{type:"Component",component:o.jsx(m,{title:"3",small:!0,margin:"5px",children:o.jsx(s,{icon:n.NOTIFICATION,round:!0,onClick:()=>{}})})}]});var e,r,i;t.parameters={...t.parameters,docs:{...(e=t.parameters)==null?void 0:e.docs,source:{originalSource:`() => <TopBar title={{
|
|
2
|
-
logo: <img src={LogoSVG} alt="logo" />,
|
|
3
|
-
version: 'V1.2.3',
|
|
4
|
-
onClick: () => {}
|
|
5
|
-
}} content={[{
|
|
6
|
-
type: 'Link',
|
|
7
|
-
label: 'Link',
|
|
8
|
-
onClick: () => {}
|
|
9
|
-
}, {
|
|
10
|
-
type: 'Link',
|
|
11
|
-
label: 'Lorem ipsum dolor est compendum lorem ipsum dolor est compendum lorem ipsum dolor est (cloned 2022-06-17 01:33:42)',
|
|
12
|
-
active: true,
|
|
13
|
-
onClick: () => {}
|
|
14
|
-
}, {
|
|
15
|
-
type: 'Link',
|
|
16
|
-
label: 'Disabled',
|
|
17
|
-
disabled: true,
|
|
18
|
-
onClick: () => {}
|
|
19
|
-
}, {
|
|
20
|
-
type: 'Button',
|
|
21
|
-
label: 'Save',
|
|
22
|
-
colored: true,
|
|
23
|
-
onClick: () => {},
|
|
24
|
-
testId: 'top-bar-button-save'
|
|
25
|
-
}]} contentRight={[{
|
|
26
|
-
type: 'Component',
|
|
27
|
-
component: <Badge title="3" small margin="5px">
|
|
28
|
-
<Button icon={IconType.NOTIFICATION} round onClick={() => {}} />
|
|
29
|
-
</Badge>
|
|
30
|
-
}]} />`,...(i=(r=t.parameters)==null?void 0:r.docs)==null?void 0:i.source}}};const _=["OverflowingLinks"];export{t as OverflowingLinks,_ as __namedExportsOrder,V as default};
|