@oliasoft-open-source/react-ui-library 4.7.7 → 4.7.8-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.
Files changed (180) hide show
  1. package/dist/assets/{index-Oe0PlEED.css → index-BpSdrNXy.css} +316 -316
  2. package/dist/assets/{index-DCeIsyRy.js → index-CfpMPxgr.js} +1120 -1000
  3. package/dist/index.html +1 -1
  4. package/dist/index.js +2 -1
  5. package/dist/index.js.map +1 -1
  6. package/dist/storybook/assets/Color-KGDBMAHA-CgvLCgqn.js +1 -0
  7. package/dist/storybook/assets/DocsRenderer-PKQXORMH-Bnk9fu_p.js +1 -0
  8. package/dist/storybook/assets/{accordion-BiuI_LCA.js → accordion-6ouB0WTt.js} +1 -1
  9. package/dist/storybook/assets/{accordion.stories-wRr6K6oi.js → accordion.stories-BM2A9Ycz.js} +2 -2
  10. package/dist/storybook/assets/{actions-CHgr8eL8.js → actions-BO4Qjedk.js} +1 -1
  11. package/dist/storybook/assets/{actions.stories-CCDxFKFk.js → actions.stories-D0QIqnMp.js} +1 -1
  12. package/dist/storybook/assets/{afe.stories-80-X2oCf.js → afe.stories-CcHBWifH.js} +2 -2
  13. package/dist/storybook/assets/{badge.stories-D5DA-vxC.js → badge.stories-DIrrG6P1.js} +1 -1
  14. package/dist/storybook/assets/{blowout.stories-ES-Fuaqn.js → blowout.stories-D0pIbWxv.js} +1 -1
  15. package/dist/storybook/assets/button-Nl-iM4E9.js +1 -0
  16. package/dist/storybook/assets/button-fAxt_G4d.css +1 -0
  17. package/dist/storybook/assets/{button-group-CwJdFo2z.js → button-group-Cfmdts3y.js} +1 -1
  18. package/dist/storybook/assets/{button-group.stories-DU5k5qCY.js → button-group.stories-BLo6acO_.js} +1 -1
  19. package/dist/storybook/assets/{button.stories-DVtec2Eo.js → button.stories-novTlASU.js} +2 -2
  20. package/dist/storybook/assets/{buttons-and-links-DrDYbdOk.js → buttons-and-links-C60POD5w.js} +2 -2
  21. package/dist/storybook/assets/{card.stories-CsTB0DuM.js → card.stories-Bn6LpucB.js} +1 -1
  22. package/dist/storybook/assets/{casing-loads.stories-BXcv0FiI.js → casing-loads.stories-CzZ11NBQ.js} +2 -2
  23. package/dist/storybook/assets/{cell.stories-MhANINNu.js → cell.stories-C2iOpdT8.js} +2 -2
  24. package/dist/storybook/assets/{check-box-BtCGePRy.js → check-box-CaSrhzev.js} +1 -1
  25. package/dist/storybook/assets/{check-box.stories-C_7Z7Ss6.js → check-box.stories-BRZDXWlp.js} +1 -1
  26. package/dist/storybook/assets/{chunk-HLWAVYOI-3IbBqp3W.js → chunk-HLWAVYOI-Dq4zCag0.js} +1 -1
  27. package/dist/storybook/assets/color-D4BEIdyW.js +25 -0
  28. package/dist/storybook/assets/{column.stories-BxfR9Tla.js → column.stories-DATtbLrP.js} +1 -1
  29. package/dist/storybook/assets/{dialog-Di8hNunM.js → dialog-DHZwgN1J.js} +1 -1
  30. package/dist/storybook/assets/drawer-DhrjYsQu.css +1 -0
  31. package/dist/storybook/assets/drawer-eslxDMsk.js +3 -0
  32. package/dist/storybook/assets/drawer.stories-DEmv0seL.js +113 -0
  33. package/dist/storybook/assets/{empty.stories-BVYXwvpa.js → empty.stories-lm0UXceF.js} +1 -1
  34. package/dist/storybook/assets/extends-CF3RwP-h.js +1 -0
  35. package/dist/storybook/assets/{field-HrLaMLbx.js → field-C5_fLDpy.js} +1 -1
  36. package/dist/storybook/assets/{field.stories-B9p9nBgY.js → field.stories-DKabKkpY.js} +1 -1
  37. package/dist/storybook/assets/{file-button.stories-FOaiNPt-.js → file-button.stories-CfQAHpzd.js} +1 -1
  38. package/dist/storybook/assets/{file-input-BpMtsZ2S.js → file-input-C1USni2k.js} +1 -1
  39. package/dist/storybook/assets/{file-input.stories-Jrdw5k-s.js → file-input.stories-le1QtUvc.js} +1 -1
  40. package/dist/storybook/assets/{flex.stories-BEXf0VqI.js → flex.stories-CpXERw-9.js} +1 -1
  41. package/dist/storybook/assets/footer.stories-ConMG8cP.js +3 -0
  42. package/dist/storybook/assets/form.stories-C-1H9KKA.js +49 -0
  43. package/dist/storybook/assets/formation.stories-DjtPZWn7.js +74 -0
  44. package/dist/storybook/assets/{grid-B6LFPf51.js → grid-DRkC-bt8.js} +1 -1
  45. package/dist/storybook/assets/{grid.stories-BhjMGl59.js → grid.stories-DqjhHHwX.js} +1 -1
  46. package/dist/storybook/assets/{heading-CRNoBc7q.js → heading-NkLgQYoP.js} +1 -1
  47. package/dist/storybook/assets/{heading.stories-DahFxeiX.js → heading.stories-nI_cFnAN.js} +1 -1
  48. package/dist/storybook/assets/{help-icon-Buhx5nl6.js → help-icon-41R-Z9N1.js} +1 -1
  49. package/dist/storybook/assets/{help-icon.stories-DbmZ1fgP.js → help-icon.stories-DBYh0YX7.js} +1 -1
  50. package/dist/storybook/assets/icon-BP4BO6-k.js +8 -0
  51. package/dist/storybook/assets/{icon.stories-C1hZXIMX.js → icon.stories-C4pR7xky.js} +1 -1
  52. package/dist/storybook/assets/iframe-veQq2fOg.js +2 -0
  53. package/dist/storybook/assets/{index-Dx_aqqZM.js → index-CCIzIzmw.js} +95 -95
  54. package/dist/storybook/assets/index-DaLCDjg_.js +14 -0
  55. package/dist/storybook/assets/index-ZUqUscdi.js +1 -0
  56. package/dist/storybook/assets/{index.es-DazXb-ul.js → index.es-D2piFfFj.js} +4 -4
  57. package/dist/storybook/assets/inheritsLoose-DR8r8Ogv.js +1 -0
  58. package/dist/storybook/assets/input-DD7t4kHm.css +1 -0
  59. package/dist/storybook/assets/input-DFNY9YDm.js +1 -0
  60. package/dist/storybook/assets/{input-group.stories-44quIZTV.js → input-group.stories-CNgazSNn.js} +2 -2
  61. package/dist/storybook/assets/{input-validation-CregAhZZ.js → input-validation-BAauofrr.js} +2 -2
  62. package/dist/storybook/assets/{input.stories-BruLeJ44.js → input.stories-EZ7qJt4K.js} +1 -1
  63. package/dist/storybook/assets/{inputs-DZn0C_9Y.js → inputs-DDobTTLy.js} +2 -2
  64. package/dist/storybook/assets/{label-CqmyC9he.js → label-hiSz3I8H.js} +1 -1
  65. package/dist/storybook/assets/{label.stories-C0AO5F1a.js → label.stories-Cyv5jBAO.js} +1 -1
  66. package/dist/storybook/assets/layout-forms-GKHrAksv.js +16 -0
  67. package/dist/storybook/assets/{layout-general-_85zGG_p.js → layout-general-BQ7XOkUP.js} +2 -2
  68. package/dist/storybook/assets/{list-yVTOdmpX.js → list-qDLciw5I.js} +1 -1
  69. package/dist/storybook/assets/{list.stories-ChqQXY5M.js → list.stories-C4aq5yH1.js} +2 -2
  70. package/dist/storybook/assets/{list.stories-data-Iq66w9oH.js → list.stories-data-Bb69C9ED.js} +1 -1
  71. package/dist/storybook/assets/{loader.stories-DM7ZJBgz.js → loader.stories-CP1wsg3-.js} +1 -1
  72. package/dist/storybook/assets/{menu.stories-mt3LwVCk.js → menu.stories-Bo3KBdyY.js} +2 -2
  73. package/dist/storybook/assets/message-Cl3kn7ZD.css +1 -0
  74. package/dist/storybook/assets/message-DQ3q8XF9.js +1 -0
  75. package/dist/storybook/assets/{message.stories-K3bQ-5bJ.js → message.stories-CXvBu8Eh.js} +1 -1
  76. package/dist/storybook/assets/meta-content-BFs3c8_I.js +9 -0
  77. package/dist/storybook/assets/meta-content-DnZPPeTF.css +1 -0
  78. package/dist/storybook/assets/{modal.stories-Cct1SMOP.js → modal.stories-PN023DHW.js} +2 -2
  79. package/dist/storybook/assets/{number-input-uQOVHv2N.js → number-input-B6I6KkcP.js} +1 -1
  80. package/dist/storybook/assets/number-input.stories-DrddhbAq.js +107 -0
  81. package/dist/storybook/assets/{option-dropdown.stories-CoLsSS95.js → option-dropdown.stories-On5p7o8x.js} +1 -1
  82. package/dist/storybook/assets/{padding-and-spacing-CPgb4ZMT.js → padding-and-spacing-CSlKX1Dq.js} +2 -2
  83. package/dist/storybook/assets/{page.stories-Cse3cMsO.js → page.stories-C-2VKGth.js} +1 -1
  84. package/dist/storybook/assets/{pagination-iSMIbR33.js → pagination-BJSFecNw.js} +1 -1
  85. package/dist/storybook/assets/{pagination.stories-BUPaZD5R.js → pagination.stories-CP4abVYK.js} +2 -2
  86. package/dist/storybook/assets/{pop-confirm.stories-Dhid1FK8.js → pop-confirm.stories-Du0AIyKt.js} +1 -1
  87. package/dist/storybook/assets/{popover-CzZdWNnB.js → popover-DYTMr1Fd.js} +1 -1
  88. package/dist/storybook/assets/popover.stories-BP-XWtw2.js +10 -0
  89. package/dist/storybook/assets/preview-B6tlSqMG.js +2 -0
  90. package/dist/storybook/assets/{preview-Bay6IiqP.js → preview-D4Rt2i6_.js} +2 -2
  91. package/dist/storybook/assets/projects.stories-BGMIr8QG.js +47 -0
  92. package/dist/storybook/assets/{radio-button-YBwYcMaM.js → radio-button-C_cV5TWA.js} +1 -1
  93. package/dist/storybook/assets/{radio-button.stories-CGJnfCk-.js → radio-button.stories-BzCvj7vt.js} +1 -1
  94. package/dist/storybook/assets/react-router-dom-CMITYWBH.js +8 -0
  95. package/dist/storybook/assets/{reservoirs.stories-aSZ9r1Pu.js → reservoirs.stories-gClJhYDT.js} +2 -2
  96. package/dist/storybook/assets/{rich-text-input-DPMWElGY.css → rich-text-input-dDjxXFl-.css} +1 -1
  97. package/dist/storybook/assets/rich-text-input.stories-B74E4Tlj.js +256 -0
  98. package/dist/storybook/assets/{row-4iAGREkV.js → row-Bmiy2Lh0.js} +1 -1
  99. package/dist/storybook/assets/{row.stories-DL2h5FzP.js → row.stories-DP3P7HwU.js} +2 -2
  100. package/dist/storybook/assets/select-D2oDfaf0.js +40 -0
  101. package/dist/storybook/assets/select-H-9tdhwc.css +1 -0
  102. package/dist/storybook/assets/{select.stories-BZFdXGPs.js → select.stories-CnrMfdA1.js} +2 -2
  103. package/dist/storybook/assets/{side-bar-CKbHPgIV.js → side-bar-C4b17uva.js} +4 -4
  104. package/dist/storybook/assets/side-bar-auov230-.css +1 -0
  105. package/dist/storybook/assets/{side-bar.stories-MUj_dj1F.js → side-bar.stories-DDAU8kNJ.js} +1 -1
  106. package/dist/storybook/assets/{site.stories-Ci4g5W2A.js → site.stories-BLalBJdd.js} +2 -2
  107. package/dist/storybook/assets/{slider-DAramr8j.js → slider-DPq3zf_3.js} +4 -4
  108. package/dist/storybook/assets/{slider.stories-Cd0rLfHP.js → slider.stories-BiZ6LYwI.js} +2 -2
  109. package/dist/storybook/assets/{smart-upload-modal.stories-BmrhOtOG.js → smart-upload-modal.stories-Bb1IZkrO.js} +1 -1
  110. package/dist/storybook/assets/{spacer.stories-CHEZdgDM.js → spacer.stories-Dzaw70ig.js} +1 -1
  111. package/dist/storybook/assets/styled-components.browser.esm-BQ9GQzDc.js +2 -0
  112. package/dist/storybook/assets/table-BLGCy103.js +86 -0
  113. package/dist/storybook/assets/table-C9uAiJu6.css +1 -0
  114. package/dist/storybook/assets/{table.stories-YV04PKkU.js → table.stories-DJKbYnBk.js} +2 -2
  115. package/dist/storybook/assets/table.stories-data-C-pC7SBY.js +1 -0
  116. package/dist/storybook/assets/text-link.stories-BsuVBOWo.js +14 -0
  117. package/dist/storybook/assets/textarea-D-R3vavM.js +1 -0
  118. package/dist/storybook/assets/textarea-H-YTEwr8.css +1 -0
  119. package/dist/storybook/assets/{textarea.stories-aRLEoDHg.js → textarea.stories-CrZgmMxl.js} +1 -1
  120. package/dist/storybook/assets/{title.stories-CuiMnOil.js → title.stories-8XzSWYTz.js} +2 -2
  121. package/dist/storybook/assets/{toaster-BNO0suPv.js → toaster-CDSt-Toh.js} +1 -1
  122. package/dist/storybook/assets/{toaster.stories-zcWIPp_X.js → toaster.stories-CXX0cghy.js} +1 -1
  123. package/dist/storybook/assets/{toggle-CBpNgTrm.js → toggle-Bo-JPbUP.js} +1 -1
  124. package/dist/storybook/assets/{toggle.stories-mjk0JIle.js → toggle.stories-CnNIGpMC.js} +1 -1
  125. package/dist/storybook/assets/{tooltip.test-case.stories-i9YQqba1.js → tooltip.test-case.stories-CHw-bEav.js} +1 -1
  126. package/dist/storybook/assets/{top-bar-C_tn2Pc5.js → top-bar-CagFtK25.js} +1 -1
  127. package/dist/storybook/assets/top-bar.stories-D7vjPFH1.js +21 -0
  128. package/dist/storybook/assets/{top-bar.testcase.stories-DoPEAMYc.js → top-bar.testcase.stories-DoycjLZo.js} +1 -1
  129. package/dist/storybook/assets/{tree.stories-6UHASEZu.js → tree.stories-DXMHMBFf.js} +1 -1
  130. package/dist/storybook/assets/{unit-input.stories-B3VwXCO8.js → unit-input.stories-BtbfkOqU.js} +1 -1
  131. package/dist/storybook/assets/unit-table.stories-sfWkbFwA.js +152 -0
  132. package/dist/storybook/iframe.html +1 -1
  133. package/dist/storybook/project.json +1 -1
  134. package/dist/storybook/sb-addons/interactions-2/manager-bundle.js +1 -0
  135. package/dist/storybook/sb-manager/globals-runtime.js +1 -1
  136. package/dist/storybook/sb-manager/globals.js +48 -0
  137. package/dist/storybook/sb-preview/runtime.js +1 -0
  138. package/package.json +1 -1
  139. package/dist/404.html +0 -1
  140. package/dist/storybook/assets/Color-KGDBMAHA-B09ajdpG.js +0 -1
  141. package/dist/storybook/assets/DocsRenderer-PKQXORMH-B1FePHEE.js +0 -1
  142. package/dist/storybook/assets/button-BpFIj2Vw.css +0 -1
  143. package/dist/storybook/assets/button-VxhoNhrV.js +0 -1
  144. package/dist/storybook/assets/color-DqVXeBjc.js +0 -25
  145. package/dist/storybook/assets/drawer-BhuWxI7V.js +0 -3
  146. package/dist/storybook/assets/drawer-v-B4gIC0.css +0 -1
  147. package/dist/storybook/assets/drawer.stories-B-PsNJJ6.js +0 -113
  148. package/dist/storybook/assets/footer.stories-CGHFDUfT.js +0 -3
  149. package/dist/storybook/assets/form.stories-C1Qx3M_1.js +0 -49
  150. package/dist/storybook/assets/formation.stories-BEowxQZ-.js +0 -74
  151. package/dist/storybook/assets/icon-BSFY3vDO.js +0 -8
  152. package/dist/storybook/assets/iframe-0oHxQxyh.js +0 -2
  153. package/dist/storybook/assets/index-CWz-hU-f.js +0 -14
  154. package/dist/storybook/assets/index-iPmJVpyV.js +0 -1
  155. package/dist/storybook/assets/inheritsLoose-DP0QEDDI.js +0 -1
  156. package/dist/storybook/assets/input-BW9trNAW.js +0 -1
  157. package/dist/storybook/assets/input-WN7SK0fa.css +0 -1
  158. package/dist/storybook/assets/layout-forms-zjNDNCOQ.js +0 -16
  159. package/dist/storybook/assets/message-BYzRg8Ae.js +0 -1
  160. package/dist/storybook/assets/message-nw5WQq6S.css +0 -1
  161. package/dist/storybook/assets/meta-content-B1HsACrT.css +0 -1
  162. package/dist/storybook/assets/meta-content-cbHGvPJ7.js +0 -9
  163. package/dist/storybook/assets/number-input.stories-C2QTTzzN.js +0 -110
  164. package/dist/storybook/assets/popover.stories-Duemqiqp.js +0 -10
  165. package/dist/storybook/assets/preview-DrVrew0c.js +0 -2
  166. package/dist/storybook/assets/projects.stories-DU-QlBa6.js +0 -47
  167. package/dist/storybook/assets/react-router-dom-Ck2Y_Fzc.js +0 -8
  168. package/dist/storybook/assets/rich-text-input.stories-CsFyrKRA.js +0 -256
  169. package/dist/storybook/assets/select-Byh1FIvP.css +0 -1
  170. package/dist/storybook/assets/select-C8iu4-uz.js +0 -40
  171. package/dist/storybook/assets/side-bar-DvwMCSK0.css +0 -1
  172. package/dist/storybook/assets/styled-components.browser.esm-Bf0q9Yjk.js +0 -2
  173. package/dist/storybook/assets/table-BNMxYhsu.js +0 -86
  174. package/dist/storybook/assets/table-CyYpP6Fs.css +0 -1
  175. package/dist/storybook/assets/table.stories-data-CR9VpXHs.js +0 -1
  176. package/dist/storybook/assets/text-link.stories-BQAkVO-W.js +0 -14
  177. package/dist/storybook/assets/textarea-BV7xWEdt.js +0 -1
  178. package/dist/storybook/assets/textarea-DapBtyYV.css +0 -1
  179. package/dist/storybook/assets/top-bar.stories-B2a-RgK-.js +0 -21
  180. package/dist/storybook/assets/unit-table.stories-DQrTQd6a.js +0 -152
@@ -1 +0,0 @@
1
- import{i as n,o as T,S as l,l as c,A as H,v as L,w as B,b,F as S,J as u,z as C,a as h,y as d,D as g,x as y,C as F,E as I,c as k,R as x,d as A,e as P,f as R,j as W,g as f,W as D,k as E,T as N,L as q,H as v,h as w,I as O,B as U,m as j,M as z,n as G,r as J,p as K,q as M,s as Q,t as V,u as X,_ as Y,G as Z,K as _,V as $,N as aa,O as sa,P as oa,Q as ta,U as ra,X as ea,Y as ia}from"./index-Dx_aqqZM.js";import"./iframe-0oHxQxyh.js";import"../sb-preview/runtime.js";import"./index-DhsZuJvc.js";import"./index-CUZDtIZe.js";import"./inheritsLoose-DP0QEDDI.js";import"./assertThisInitialized-B9jnkVVz.js";import"./index-D6rZ4wEC.js";export{n as A,T as ActionBar,l as Bar,c as Blockquote,H as Button,L as Code,B as DL,b as Div,S as EmptyTabContent,u as ErrorFormatter,C as FlexBar,h as Form,d as H1,g as H2,y as H3,F as H4,I as H5,k as H6,x as HR,A as IconButton,P as Img,R as LI,W as Link,f as ListItem,D as Loader,E as OL,N as P,q as Pre,v as ResetWrapper,w as ScrollArea,O as Separator,U as Span,j as SyntaxHighlighter,z as TT,G as TabBar,J as TabButton,K as Table,M as Tabs,Q as TabsState,V as TooltipLinkList,X as TooltipNote,Y as UL,Z as WithTooltip,_ as WithTooltipPure,$ as Zoom,aa as codeCommon,sa as components,oa as createCopyToClipboardFunction,ta as getStoryHref,ra as icons,ea as nameSpaceClassNames,ia as withReset};
@@ -1 +0,0 @@
1
- function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},o.apply(null,arguments)}const a=Object.freeze(Object.defineProperty({__proto__:null,get default(){return o}},Symbol.toStringTag,{value:"Module"}));function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},s(t,e)}function u(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,s(t,e)}export{o as _,u as a,a as b,s as c};
@@ -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-Dx_aqqZM.js";import{Default as l,LabelOnLeft as p}from"./field.stories-B9p9nBgY.js";import{Default as m,LabelsOnLeft as a,Row as h}from"./form.stories-C1Qx3M_1.js";import"./index-DhsZuJvc.js";import"./iframe-0oHxQxyh.js";import"../sb-preview/runtime.js";import"./index-CUZDtIZe.js";import"./inheritsLoose-DP0QEDDI.js";import"./assertThisInitialized-B9jnkVVz.js";import"./index-D6rZ4wEC.js";import"./field-HrLaMLbx.js";import"./index-Bk2sglWO.js";import"./label-CqmyC9he.js";import"./common-types-Sih75Sav.js";import"./help-icon-Buhx5nl6.js";import"./tooltip-1V7clEnw.js";import"./icon-BSFY3vDO.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-C8iu4-uz.js";import"./memoize-one.esm-CcMeOnPo.js";import"./types-BmbYqTX_.js";import"./actions-CHgr8eL8.js";import"./button-VxhoNhrV.js";import"./spinner-AWUe4xwQ.js";import"./badge-CLQ59MDF.js";import"./select.input-DIKP56UZ.js";import"./check-box-BtCGePRy.js";import"./button-group-CwJdFo2z.js";import"./toggle-CBpNgTrm.js";import"./input-group-BaRSJAEN.js";import"./input-group-addon-D68iUKV2.js";import"./slider-DAramr8j.js";import"./objectSpread2-DW4nTBoq.js";import"./index-BI4_Bp97.js";import"./textarea-BV7xWEdt.js";import"./radio-button-YBwYcMaM.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:l}),`
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:p}),`
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 ot(i={}){const{wrapper:e}={...n(),...i.components};return e?t.jsx(e,{...i,children:t.jsx(r,{...i})}):r(i)}export{ot 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-BSFY3vDO.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-BSFY3vDO.js";import{H as h}from"./heading-CRNoBc7q.js";import{A as x}from"./actions-CHgr8eL8.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,110 +0,0 @@
1
- import{j as p}from"./jsx-runtime-eps93zm2.js";import{r as de}from"./index-DhsZuJvc.js";import{w as D,u as e,e as u,f as me}from"./index-DMAnyMX5.js";import{d as he}from"./index-CWz-hU-f.js";import{N as A}from"./number-input-uQOVHv2N.js";import{I as ve}from"./input-group-BaRSJAEN.js";import{I as Ie}from"./input-group-addon-D68iUKV2.js";import{S as ye}from"./select-C8iu4-uz.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"./inheritsLoose-DP0QEDDI.js";import"./assertThisInitialized-B9jnkVVz.js";import"./memoize-one.esm-CcMeOnPo.js";import"./types-BmbYqTX_.js";import"./text-B3-TSWok.js";import"./actions-CHgr8eL8.js";import"./button-VxhoNhrV.js";import"./spinner-AWUe4xwQ.js";import"./icon-BSFY3vDO.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./badge-CLQ59MDF.js";import"./select.input-DIKP56UZ.js";const{useArgs:Ce}=__STORYBOOK_MODULE_PREVIEW_API__,Xe={title:"Forms/NumberInput",component:A,parameters:{canvas:{page:null}},args:{label:"Label"}},s=n=>{const[r,a]=Ce(),o=t=>{a({value:t.target.value})};return p.jsx(A,{onChange:o,value:123,...n})},T=s.bind({}),c=s.bind({});c.args={small:!0};const g=s.bind({});g.args={width:"150px"};const d=s.bind({});d.args={left:!0};const m=s.bind({});m.args={disabled:!0};const h=s.bind({});h.args={allowEmpty:!0,value:""};const v=s.bind({});v.args={warning:"This input number is almost 100!",value:"99"};const I=s.bind({});I.args={error:"This is a error message"};const y=s.bind({});y.args={value:"123test"};const C=s.bind({});C.args={value:"123.123456789",enableDisplayRounding:!0};const w=s.bind({});w.args={value:"123.123456789",enableDisplayRounding:!0,roundDisplayValue:n=>he.roundToFixed(n,4)};const b=()=>p.jsxs(ve,{small:!0,children:[p.jsx(A,{value:123}),p.jsx(Ie,{children:"to"}),p.jsx(A,{value:123}),p.jsx(ye,{options:[{value:"units",label:"units"}],width:"auto",value:"units"})]}),l=s.bind({});l.args={testId:"testId",enableDisplayRounding:!0};l.play=async({canvasElement:n,step:r})=>{const a=D(n);await r("Value should be rounded on blur",async()=>{const o=a.getByTestId("testId");await e.clear(o),await e.type(o,"123.123456789"),await e.click(n),await u(a.getByDisplayValue("123.12")).toBeInTheDocument()}),await r("Full value shown on focus",async()=>{const o=a.getByTestId("testId");await e.click(o),await u(a.getByDisplayValue("123.123456789")).toBeInTheDocument()})};const i=()=>{const[n,r]=de.useState("123");return p.jsx(A,{value:n,onChange:a=>{r(a.target.value)},testId:"testId"})};i.play=async({canvasElement:n,step:r})=>{const a=D(n),o=D(n.ownerDocument.body);await r("Can enter decimal values",async()=>{const t=a.getByTestId("testId");await e.clear(t),await e.type(t,"123.123456789"),await e.click(n),await u(a.getByDisplayValue("123.123456789")).toBeInTheDocument()}),await r("Can enter scientific notation",async()=>{const t=a.getByTestId("testId");await e.clear(t),await e.type(t,"-1.12e3"),await e.click(n),await u(a.getByDisplayValue("-1.12e3")).toBeInTheDocument()}),await r("Can enter comma decimals (converts to dot)",async()=>{const t=a.getByTestId("testId");await e.clear(t),await e.type(t,"123,456"),await e.click(n),await u(a.getByDisplayValue("123.456")).toBeInTheDocument()}),await r("Can enter small numbers",async()=>{const t=a.getByTestId("testId");await e.clear(t),await e.type(t,"0.0000000023"),await e.click(n),await u(a.getByDisplayValue("0.0000000023")).toBeInTheDocument()}),await r("Can enter large numbers",async()=>{const t=a.getByTestId("testId");await e.clear(t),await e.type(t,"999999999999"),await e.click(n),await u(a.getByDisplayValue("999999999999")).toBeInTheDocument()}),await r("Shows validation error for non-numeric input",async()=>{const t=a.getByTestId("testId");await e.clear(t),await e.type(t,"123x45s6"),await e.click(n),await u(a.getByDisplayValue("123x45s6")).toBeInTheDocument(),await me.mouseOver(t),await u(o.getByText("Must be a numerical value")).toBeInTheDocument()})};b.__docgenInfo={description:"",methods:[],displayName:"TestInputGroup"};i.__docgenInfo={description:"",methods:[{name:"play",docblock:null,modifiers:["static"],params:[{name:"{ canvasElement, step }",optional:!1,type:null}],returns:null}],displayName:"TestUserInput"};var E,B,_;T.parameters={...T.parameters,docs:{...(E=T.parameters)==null?void 0:E.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
- }`,...(_=(B=T.parameters)==null?void 0:B.docs)==null?void 0:_.source}}};var f,S,N;c.parameters={...c.parameters,docs:{...(f=c.parameters)==null?void 0:f.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
- }`,...(N=(S=c.parameters)==null?void 0:S.docs)==null?void 0:N.source}}};var x,L,M;g.parameters={...g.parameters,docs:{...(x=g.parameters)==null?void 0:x.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
- }`,...(M=(L=g.parameters)==null?void 0:L.docs)==null?void 0:M.source}}};var V,H,R;d.parameters={...d.parameters,docs:{...(V=d.parameters)==null?void 0:V.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
- }`,...(R=(H=d.parameters)==null?void 0:H.docs)==null?void 0:R.source}}};var j,k,G;m.parameters={...m.parameters,docs:{...(j=m.parameters)==null?void 0:j.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=(k=m.parameters)==null?void 0:k.docs)==null?void 0:G.source}}};var W,O,U;h.parameters={...h.parameters,docs:{...(W=h.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
- }`,...(U=(O=h.parameters)==null?void 0:O.docs)==null?void 0:U.source}}};var F,P,K;v.parameters={...v.parameters,docs:{...(F=v.parameters)==null?void 0:F.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=(P=v.parameters)==null?void 0:P.docs)==null?void 0:K.source}}};var Y,q,z;I.parameters={...I.parameters,docs:{...(Y=I.parameters)==null?void 0:Y.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
- }`,...(z=(q=I.parameters)==null?void 0:q.docs)==null?void 0:z.source}}};var J,Q,X;y.parameters={...y.parameters,docs:{...(J=y.parameters)==null?void 0:J.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
- }`,...(X=(Q=y.parameters)==null?void 0:Q.docs)==null?void 0:X.source}}};var Z,$,ee;C.parameters={...C.parameters,docs:{...(Z=C.parameters)==null?void 0:Z.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
- }`,...(ee=($=C.parameters)==null?void 0:$.docs)==null?void 0:ee.source}}};var ae,te,ne;w.parameters={...w.parameters,docs:{...(ae=w.parameters)==null?void 0:ae.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
- }`,...(ne=(te=w.parameters)==null?void 0:te.docs)==null?void 0:ne.source}}};var re,se,ue;b.parameters={...b.parameters,docs:{...(re=b.parameters)==null?void 0:re.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>`,...(ue=(se=b.parameters)==null?void 0:se.docs)==null?void 0:ue.source}}};var oe,pe,le;l.parameters={...l.parameters,docs:{...(oe=l.parameters)==null?void 0:oe.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
- }`,...(le=(pe=l.parameters)==null?void 0:pe.docs)==null?void 0:le.source}}};var ie,ce,ge;i.parameters={...i.parameters,docs:{...(ie=i.parameters)==null?void 0:ie.docs,source:{originalSource:`() => {
106
- const [value, setValue] = useState('123');
107
- return <NumberInput value={value} onChange={evt => {
108
- setValue(evt.target.value);
109
- }} testId="testId" />;
110
- }`,...(ge=(ce=i.parameters)==null?void 0:ce.docs)==null?void 0:ge.source}}};const Ze=["Default","Small","Width","Left","Disabled","AllowEmpty","Warning","Error","BadInput","WithDisplayRounding","WithCustomDisplayRounding","TestInputGroup","TestDisplayRounding","TestUserInput"];export{h as AllowEmpty,y as BadInput,T as Default,m as Disabled,I as Error,d as Left,c as Small,l as TestDisplayRounding,b as TestInputGroup,i as TestUserInput,v as Warning,g as Width,w as WithCustomDisplayRounding,C as WithDisplayRounding,Ze as __namedExportsOrder,Xe 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 i}from"./popover-CzZdWNnB.js";import{I as c}from"./input-BW9trNAW.js";import{B as l}from"./button-VxhoNhrV.js";import{F as y}from"./flex-EllkLxgO.js";import{S as D}from"./select-C8iu4-uz.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-BSFY3vDO.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./inheritsLoose-DP0QEDDI.js";import"./index-CEuq6vkz.js";import"./assertThisInitialized-B9jnkVVz.js";import"./memoize-one.esm-CcMeOnPo.js";import"./types-BmbYqTX_.js";import"./text-B3-TSWok.js";import"./actions-CHgr8eL8.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(l,{colored:!0,label:"Save",onClick:()=>{},small:!0}),r.jsx(l,{label:"Cancel",onClick:e,small:!0})]}),lr={title:"Basic/Popover",component:i,args:{overflowContainer:!0,content:r.jsx(_,{}),children:r.jsx(l,{label:"Toggle me"})},decorators:[e=>r.jsx("div",{style:{display:"flex"},children:e()})],parameters:{docs:{source:{excludeDecorators:!0}}}},n=e=>r.jsx(i,{...e}),p=n.bind({}),o=n.bind({});o.args={children:r.jsx(c,{value:"Value",width:"100%"})};const s=n.bind({});s.args={closeOnOutsideClick:!1,showCloseButton:!0};const t=n.bind({});t.args={disabled:!0};const a=e=>{const[m,T]=k.useState(!1);return r.jsxs("div",{children:[r.jsx(l,{onClick:()=>T(!m),label:"Toggle Popover Externally"}),r.jsx(w,{}),r.jsx(i,{...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-B1FePHEE.js","./chunk-HLWAVYOI-3IbBqp3W.js","./iframe-0oHxQxyh.js","./index-DhsZuJvc.js","./react-16-DXAfArL2.js","./index-CUZDtIZe.js","./index-Dx_aqqZM.js","./inheritsLoose-DP0QEDDI.js","./assertThisInitialized-B9jnkVVz.js","./index-D6rZ4wEC.js"])))=>i.map(i=>d[i]);
2
- import{_ as a}from"./iframe-0oHxQxyh.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-B1FePHEE.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),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-C_tn2Pc5.js";import{L as r}from"./list-yVTOdmpX.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-BSFY3vDO.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./inheritsLoose-DP0QEDDI.js";import"./index-CEuq6vkz.js";import"./disabled-context-rmpd7YJS.js";import"./common-types-Sih75Sav.js";import"./button-VxhoNhrV.js";import"./spinner-AWUe4xwQ.js";import"./tooltip-1V7clEnw.js";import"./index-CUZDtIZe.js";import"./actions-CHgr8eL8.js";import"./lodash-BHd_uQHh.js";import"./types-BmbYqTX_.js";import"./types-UmZ4Y_CR.js";import"./badge-CLQ59MDF.js";import"./index.es-DazXb-ul.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-cbHGvPJ7.js";import"./heading-CRNoBc7q.js";import"./help-icon-Buhx5nl6.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"}],X={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 Y=["Projects"];export{l as Projects,Y as __namedExportsOrder,X as default};
@@ -1,8 +0,0 @@
1
- import{_ as F,a as V}from"./inheritsLoose-DP0QEDDI.js";import{g as st,R as w}from"./index-DhsZuJvc.js";import{P as Be}from"./index-CEuq6vkz.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 rn=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 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,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 an=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{an as H,Qt as L,rn as R,on as S};