@lotte-innovate/ui-component-test 0.2.39 → 0.2.41

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. package/README.md +5 -5
  2. package/dist/globals.css +1 -1
  3. package/dist/lib/components/Box/index.d.ts +10 -0
  4. package/dist/lib/components/Box/index.js +57 -0
  5. package/dist/lib/components/Box/index.mjs +3 -0
  6. package/dist/lib/{_virtual → components/Box}/index.mjs.map +1 -1
  7. package/dist/lib/components/Calendar/index.js +4 -2
  8. package/dist/lib/components/Calendar/index.mjs +1 -1
  9. package/dist/lib/components/Datepicker/index.js +2 -2
  10. package/dist/lib/components/Datepicker/index.mjs +1 -1
  11. package/dist/lib/components/Dialog/DialogAction.mjs +1 -1
  12. package/dist/lib/components/Dialog/DialogCancel.mjs +1 -1
  13. package/dist/lib/components/Dialog/DialogRoot.js +1 -1
  14. package/dist/lib/components/Dialog/DialogRoot.mjs +1 -1
  15. package/dist/lib/components/Grid/NumberingPagination.d.ts +2 -0
  16. package/dist/lib/components/Grid/NumberingPagination.js +41 -0
  17. package/dist/lib/components/Grid/NumberingPagination.mjs +2 -0
  18. package/dist/lib/components/Grid/NumberingPagination.mjs.map +1 -0
  19. package/dist/lib/components/Grid/index.js +2 -2
  20. package/dist/lib/components/Grid/index.mjs +1 -1
  21. package/dist/lib/components/Modal/ModalAction.mjs +1 -1
  22. package/dist/lib/components/Modal/ModalCancel.mjs +1 -1
  23. package/dist/lib/components/Modal/ModalRoot.js +1 -1
  24. package/dist/lib/components/Modal/ModalRoot.mjs +1 -1
  25. package/dist/lib/components/Modal/ModalTitle.d.ts +3 -0
  26. package/dist/lib/components/Modal/ModalTitle.js +17 -3
  27. package/dist/lib/components/Modal/ModalTitle.mjs +1 -1
  28. package/dist/lib/components/Modal/index.mjs.map +1 -1
  29. package/dist/lib/components/SideBar/index.mjs +1 -1
  30. package/dist/lib/components/Tabs/DynamicTabs.mjs +1 -1
  31. package/dist/lib/components/TextField/index.js +1 -1
  32. package/dist/lib/components/TextField/index.mjs +1 -1
  33. package/dist/lib/components/Timeline/TimelineRoot.js +9 -3
  34. package/dist/lib/components/Timeline/TimelineRoot.mjs +1 -1
  35. package/dist/lib/components/Tooltip/index.d.ts +1 -0
  36. package/dist/lib/components/Tooltip/index.js +2 -2
  37. package/dist/lib/components/Tooltip/index.mjs +1 -1
  38. package/dist/lib/components/index.d.ts +1 -0
  39. package/dist/lib/components/index.js +1 -0
  40. package/dist/lib/index.mjs +1 -1
  41. package/dist/lib/tsconfig.tsbuildinfo +1 -1
  42. package/dist/tsconfig.tsbuildinfo +1 -1
  43. package/package.json +1 -1
  44. package/dist/lib/_virtual/_commonjsHelpers.mjs +0 -2
  45. package/dist/lib/_virtual/_commonjsHelpers.mjs.map +0 -1
  46. package/dist/lib/_virtual/index.mjs +0 -2
  47. package/dist/lib/_virtual/index2.mjs +0 -2
  48. package/dist/lib/_virtual/index2.mjs.map +0 -1
  49. package/dist/lib/_virtual/index3.mjs +0 -2
  50. package/dist/lib/_virtual/index3.mjs.map +0 -1
  51. package/dist/lib/_virtual/react-is.development.mjs +0 -2
  52. package/dist/lib/_virtual/react-is.development.mjs.map +0 -1
  53. package/dist/lib/_virtual/react-is.production.min.mjs +0 -2
  54. package/dist/lib/_virtual/react-is.production.min.mjs.map +0 -1
  55. package/dist/lib/components/Grid/Pagination.mjs +0 -2
  56. package/dist/lib/components/Grid/Pagination.mjs.map +0 -1
  57. package/dist/lib/node_modules/object-assign/index.mjs +0 -7
  58. package/dist/lib/node_modules/object-assign/index.mjs.map +0 -1
  59. package/dist/lib/node_modules/prop-types/checkPropTypes.mjs +0 -2
  60. package/dist/lib/node_modules/prop-types/checkPropTypes.mjs.map +0 -1
  61. package/dist/lib/node_modules/prop-types/factoryWithThrowingShims.mjs +0 -2
  62. package/dist/lib/node_modules/prop-types/factoryWithThrowingShims.mjs.map +0 -1
  63. package/dist/lib/node_modules/prop-types/factoryWithTypeCheckers.mjs +0 -2
  64. package/dist/lib/node_modules/prop-types/factoryWithTypeCheckers.mjs.map +0 -1
  65. package/dist/lib/node_modules/prop-types/index.mjs +0 -2
  66. package/dist/lib/node_modules/prop-types/index.mjs.map +0 -1
  67. package/dist/lib/node_modules/prop-types/lib/ReactPropTypesSecret.mjs +0 -2
  68. package/dist/lib/node_modules/prop-types/lib/ReactPropTypesSecret.mjs.map +0 -1
  69. package/dist/lib/node_modules/prop-types/lib/has.mjs +0 -2
  70. package/dist/lib/node_modules/prop-types/lib/has.mjs.map +0 -1
  71. package/dist/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.mjs +0 -10
  72. package/dist/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.mjs.map +0 -1
  73. package/dist/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.mjs +0 -10
  74. package/dist/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.mjs.map +0 -1
  75. package/dist/lib/node_modules/prop-types/node_modules/react-is/index.mjs +0 -2
  76. package/dist/lib/node_modules/prop-types/node_modules/react-is/index.mjs.map +0 -1
  77. package/dist/lib/node_modules/react-pro-sidebar/dist/index.es.mjs +0 -21
  78. package/dist/lib/node_modules/react-pro-sidebar/dist/index.es.mjs.map +0 -1
  79. package/dist/lib/node_modules/react-tabs/esm/components/Tab.mjs +0 -2
  80. package/dist/lib/node_modules/react-tabs/esm/components/Tab.mjs.map +0 -1
  81. package/dist/lib/node_modules/react-tabs/esm/components/TabList.mjs +0 -2
  82. package/dist/lib/node_modules/react-tabs/esm/components/TabList.mjs.map +0 -1
  83. package/dist/lib/node_modules/react-tabs/esm/components/TabPanel.mjs +0 -2
  84. package/dist/lib/node_modules/react-tabs/esm/components/TabPanel.mjs.map +0 -1
  85. package/dist/lib/node_modules/react-tabs/esm/components/Tabs.mjs +0 -2
  86. package/dist/lib/node_modules/react-tabs/esm/components/Tabs.mjs.map +0 -1
  87. package/dist/lib/node_modules/react-tabs/esm/components/UncontrolledTabs.mjs +0 -2
  88. package/dist/lib/node_modules/react-tabs/esm/components/UncontrolledTabs.mjs.map +0 -1
  89. package/dist/lib/node_modules/react-tabs/esm/helpers/childrenDeepMap.mjs +0 -2
  90. package/dist/lib/node_modules/react-tabs/esm/helpers/childrenDeepMap.mjs.map +0 -1
  91. package/dist/lib/node_modules/react-tabs/esm/helpers/count.mjs +0 -2
  92. package/dist/lib/node_modules/react-tabs/esm/helpers/count.mjs.map +0 -1
  93. package/dist/lib/node_modules/react-tabs/esm/helpers/elementTypes.mjs +0 -2
  94. package/dist/lib/node_modules/react-tabs/esm/helpers/elementTypes.mjs.map +0 -1
  95. package/dist/lib/node_modules/react-tabs/esm/helpers/propTypes.mjs +0 -2
  96. package/dist/lib/node_modules/react-tabs/esm/helpers/propTypes.mjs.map +0 -1
@@ -1,2 +0,0 @@
1
- import e from"../../../../_virtual/index.mjs";import s,{useRef as a,useEffect as t}from"react";import l from"clsx";const r="react-tabs__tab",d={className:r,disabledClassName:`${r}--disabled`,focus:!1,id:null,selected:!1,selectedClassName:`${r}--selected`},c="production"!==process.env.NODE_ENV?{children:e.oneOfType([e.array,e.object,e.string]),className:e.oneOfType([e.string,e.array,e.object]),disabled:e.bool,disabledClassName:e.string,focus:e.bool,id:e.string,selected:e.bool,selectedClassName:e.string,tabIndex:e.string,tabRef:e.func}:{},o=e=>{let r=a();const{children:c,className:o,disabled:i,disabledClassName:n,focus:b,id:m,selected:f,selectedClassName:u,tabIndex:p,tabRef:N,...g}={...d,...e};return t((()=>{f&&b&&r.current.focus()}),[f,b]),s.createElement("li",Object.assign({},g,{className:l(o,{[u]:f,[n]:i}),ref:e=>{r.current=e,N&&N(e)},role:"tab",id:`tab${m}`,"aria-selected":f?"true":"false","aria-disabled":i?"true":"false","aria-controls":`panel${m}`,tabIndex:p||(f?"0":null),"data-rttab":!0}),c)};o.propTypes="production"!==process.env.NODE_ENV?c:{},o.tabsRole="Tab";export{o as default};
2
- //# sourceMappingURL=Tab.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tab.mjs","sources":["../../../../../../node_modules/react-tabs/esm/components/Tab.js"],"sourcesContent":["import PropTypes from\"prop-types\";import React,{useEffect,useRef}from\"react\";import cx from\"clsx\";const DEFAULT_CLASS=\"react-tabs__tab\";const defaultProps={className:DEFAULT_CLASS,disabledClassName:`${DEFAULT_CLASS}--disabled`,focus:false,id:null,selected:false,selectedClassName:`${DEFAULT_CLASS}--selected`};const propTypes=process.env.NODE_ENV!==\"production\"?{children:PropTypes.oneOfType([PropTypes.array,PropTypes.object,PropTypes.string]),className:PropTypes.oneOfType([PropTypes.string,PropTypes.array,PropTypes.object]),disabled:PropTypes.bool,disabledClassName:PropTypes.string,focus:PropTypes.bool,id:PropTypes.string,selected:PropTypes.bool,selectedClassName:PropTypes.string,tabIndex:PropTypes.string,tabRef:PropTypes.func}:{};const Tab=props=>{let nodeRef=useRef();const{children,className,disabled,disabledClassName,focus,id,selected,selectedClassName,tabIndex,tabRef,...attributes}={...defaultProps,...props};useEffect(()=>{if(selected&&focus){nodeRef.current.focus()}},[selected,focus]);return React.createElement(\"li\",Object.assign({},attributes,{className:cx(className,{[selectedClassName]:selected,[disabledClassName]:disabled}),ref:node=>{nodeRef.current=node;if(tabRef)tabRef(node)},role:\"tab\",id:`tab${id}`,\"aria-selected\":selected?\"true\":\"false\",\"aria-disabled\":disabled?\"true\":\"false\",\"aria-controls\":`panel${id}`,tabIndex:tabIndex||(selected?\"0\":null),\"data-rttab\":true}),children)};Tab.propTypes=process.env.NODE_ENV!==\"production\"?propTypes:{};Tab.tabsRole=\"Tab\";export default Tab;"],"names":["DEFAULT_CLASS","defaultProps","className","disabledClassName","focus","id","selected","selectedClassName","propTypes","process","env","NODE_ENV","children","PropTypes","oneOfType","array","object","string","disabled","bool","tabIndex","tabRef","func","Tab","props","nodeRef","useRef","attributes","useEffect","current","React","createElement","Object","assign","cx","ref","node","role","tabsRole"],"mappings":"mHAAkG,MAAMA,EAAc,kBAAwBC,EAAa,CAACC,UAAUF,EAAcG,kBAAkB,GAAGH,cAA0BI,OAAM,EAA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const t={className:"react-tabs__tab-list"},a="production"!==process.env.NODE_ENV?{children:e.oneOfType([e.object,e.array]),className:e.oneOfType([e.string,e.array,e.object])}:{},o=e=>{const{children:a,className:o,...c}={...t,...e};return r.createElement("ul",Object.assign({},c,{className:s(o),role:"tablist"}),a)};o.tabsRole="TabList",o.propTypes="production"!==process.env.NODE_ENV?a:{};export{o as default};
2
- //# sourceMappingURL=TabList.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TabList.mjs","sources":["../../../../../../node_modules/react-tabs/esm/components/TabList.js"],"sourcesContent":["import PropTypes from\"prop-types\";import React from\"react\";import cx from\"clsx\";const defaultProps={className:\"react-tabs__tab-list\"};const propTypes=process.env.NODE_ENV!==\"production\"?{children:PropTypes.oneOfType([PropTypes.object,PropTypes.array]),className:PropTypes.oneOfType([PropTypes.string,PropTypes.array,PropTypes.object])}:{};const TabList=props=>{const{children,className,...attributes}={...defaultProps,...props};return React.createElement(\"ul\",Object.assign({},attributes,{className:cx(className),role:\"tablist\"}),children)};TabList.tabsRole=\"TabList\";TabList.propTypes=process.env.NODE_ENV!==\"production\"?propTypes:{};export default TabList;"],"names":["defaultProps","className","propTypes","process","env","NODE_ENV","children","PropTypes","oneOfType","object","array","string","TabList","props","attributes","React","createElement","Object","assign","cx","role","tabsRole"],"mappings":"uFAAgF,MAAMA,EAAa,CAACC,UAAU,wBAA8BC,EAAiC,eAAvBC,QAAQC,IAAIC,SAAwB,CAACC,SAASC,EAAUC,UAAU,CAACD,EAAUE,OAAOF,EAAUG,QAAQT,UAAUM,EAAUC,UAAU,CAACD,EAAUI,OAAOJ,EAAUG,MAAMH,EAAUE,UAAU,CAAE,EAAOG,EAAQC,IAAQ,MAAKP,SAACA,EAAQL,UAACA,KAAaa,GAAY,IAAId,KAAgBa,GAAO,OAAOE,EAAMC,cAAc,KAAKC,OAAOC,OAAO,CAAE,EAACJ,EAAW,CAACb,UAAUkB,EAAGlB,GAAWmB,KAAK,YAAYd,EAAQ,EAAGM,EAAQS,SAAS,UAAUT,EAAQV,UAAiC,eAAvBC,QAAQC,IAAIC,SAAwBH,EAAU,CAAE"}
@@ -1,2 +0,0 @@
1
- import e from"../../../../_virtual/index.mjs";import s from"react";import a from"clsx";const r="react-tabs__tab-panel",l={className:r,forceRender:!1,selectedClassName:`${r}--selected`},t="production"!==process.env.NODE_ENV?{children:e.node,className:e.oneOfType([e.string,e.array,e.object]),forceRender:e.bool,id:e.string,selected:e.bool,selectedClassName:e.string}:{},o=e=>{const{children:r,className:t,forceRender:o,id:c,selected:n,selectedClassName:d,...i}={...l,...e};return s.createElement("div",Object.assign({},i,{className:a(t,{[d]:n}),role:"tabpanel",id:`panel${c}`,"aria-labelledby":`tab${c}`}),o||n?r:null)};o.tabsRole="TabPanel",o.propTypes="production"!==process.env.NODE_ENV?t:{};export{o as default};
2
- //# sourceMappingURL=TabPanel.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TabPanel.mjs","sources":["../../../../../../node_modules/react-tabs/esm/components/TabPanel.js"],"sourcesContent":["import PropTypes from\"prop-types\";import React from\"react\";import cx from\"clsx\";const DEFAULT_CLASS=\"react-tabs__tab-panel\";const defaultProps={className:DEFAULT_CLASS,forceRender:false,selectedClassName:`${DEFAULT_CLASS}--selected`};const propTypes=process.env.NODE_ENV!==\"production\"?{children:PropTypes.node,className:PropTypes.oneOfType([PropTypes.string,PropTypes.array,PropTypes.object]),forceRender:PropTypes.bool,id:PropTypes.string,selected:PropTypes.bool,selectedClassName:PropTypes.string}:{};const TabPanel=props=>{const{children,className,forceRender,id,selected,selectedClassName,...attributes}={...defaultProps,...props};return React.createElement(\"div\",Object.assign({},attributes,{className:cx(className,{[selectedClassName]:selected}),role:\"tabpanel\",id:`panel${id}`,\"aria-labelledby\":`tab${id}`}),forceRender||selected?children:null)};TabPanel.tabsRole=\"TabPanel\";TabPanel.propTypes=process.env.NODE_ENV!==\"production\"?propTypes:{};export default TabPanel;"],"names":["DEFAULT_CLASS","defaultProps","className","forceRender","selectedClassName","propTypes","process","env","NODE_ENV","children","PropTypes","node","oneOfType","string","array","object","bool","id","selected","TabPanel","props","attributes","React","createElement","Object","assign","cx","role","tabsRole"],"mappings":"uFAAgF,MAAMA,EAAc,wBAA8BC,EAAa,CAACC,UAAUF,EAAcG,aAAY,EAAMC,kBAAkB,GAAGJ,eAAiCK,EAAiC,eAAvBC,QAAQC,IAAIC,SAAwB,CAACC,SAASC,EAAUC,KAAKT,UAAUQ,EAAUE,UAAU,CAACF,EAAUG,OAAOH,EAAUI,MAAMJ,EAAUK,SAASZ,YAAYO,EAAUM,KAAKC,GAAGP,EAAUG,OAAOK,SAASR,EAAUM,KAAKZ,kBAAkBM,EAAUG,QAAQ,CAAE,EAAOM,EAASC,IAAQ,MAAKX,SAACA,EAAQP,UAACA,EAASC,YAACA,EAAWc,GAACA,EAAEC,SAACA,EAAQd,kBAACA,KAAqBiB,GAAY,IAAIpB,KAAgBmB,GAAO,OAAOE,EAAMC,cAAc,MAAMC,OAAOC,OAAO,GAAGJ,EAAW,CAACnB,UAAUwB,EAAGxB,EAAU,CAACE,CAACA,GAAmBc,IAAWS,KAAK,WAAWV,GAAG,QAAQA,IAAK,kBAAkB,MAAMA,MAAOd,GAAae,EAAST,EAAS,KAAI,EAAGU,EAASS,SAAS,WAAWT,EAASd,UAAiC,eAAvBC,QAAQC,IAAIC,SAAwBH,EAAU,CAAE"}
@@ -1,2 +0,0 @@
1
- import e from"../../../../_virtual/index.mjs";import o,{useState as n,useEffect as t}from"react";import{childrenPropType as l,onSelectPropType as s,selectedIndexPropType as r}from"../helpers/propTypes.mjs";import c from"./UncontrolledTabs.mjs";import{getTabsCount as d}from"../helpers/count.mjs";const a="production"!==process.env.NODE_ENV?{children:l,className:e.oneOfType([e.string,e.array,e.object]),defaultFocus:e.bool,defaultIndex:e.number,direction:e.oneOf(["rtl","ltr"]),disabledTabClassName:e.string,disableUpDownKeys:e.bool,disableLeftRightKeys:e.bool,domRef:e.func,environment:e.object,focusTabOnClick:e.bool,forceRenderTabPanel:e.bool,onSelect:s,selectedIndex:r,selectedTabClassName:e.string,selectedTabPanelClassName:e.string}:{},i={defaultFocus:!1,focusTabOnClick:!0,forceRenderTabPanel:!1,selectedIndex:null,defaultIndex:null,environment:null,disableUpDownKeys:!1,disableLeftRightKeys:!1},u=e=>null===e.selectedIndex?1:0,f=e=>{const{children:l,defaultFocus:s,defaultIndex:r,focusTabOnClick:a,onSelect:f,...b}={...i,...e},[m,p]=n(s),[T]=n(u(b)),[h,x]=n(1===T?r||0:null);if(t((()=>{p(!1)}),[]),1===T){const e=d(l);t((()=>{if(null!=h){const o=Math.max(0,e-1);x(Math.min(h,o))}}),[e])}((e,o)=>{if("production"!==process.env.NODE_ENV&&null!=o&&o!==u(e))throw new Error("Switching between controlled mode (by using `selectedIndex`) and uncontrolled mode is not supported in `Tabs`.\nFor more information about controlled and uncontrolled mode of react-tabs see https://github.com/reactjs/react-tabs#controlled-vs-uncontrolled-mode.")})(b,T);let y={...e,...b};return y.focus=m,y.onSelect=(e,o,n)=>{"function"==typeof f&&!1===f(e,o,n)||(a&&p(!0),1===T&&x(e))},null!=h&&(y.selectedIndex=h),delete y.defaultFocus,delete y.defaultIndex,delete y.focusTabOnClick,o.createElement(c,y,l)};f.propTypes="production"!==process.env.NODE_ENV?a:{},f.tabsRole="Tabs";export{f as default};
2
- //# sourceMappingURL=Tabs.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tabs.mjs","sources":["../../../../../../node_modules/react-tabs/esm/components/Tabs.js"],"sourcesContent":["import PropTypes from\"prop-types\";import React,{useEffect,useState}from\"react\";import{childrenPropType,onSelectPropType,selectedIndexPropType}from\"../helpers/propTypes\";import UncontrolledTabs from\"./UncontrolledTabs\";import{getTabsCount}from\"../helpers/count\";const MODE_CONTROLLED=0;const MODE_UNCONTROLLED=1;const propTypes=process.env.NODE_ENV!==\"production\"?{children:childrenPropType,className:PropTypes.oneOfType([PropTypes.string,PropTypes.array,PropTypes.object]),defaultFocus:PropTypes.bool,defaultIndex:PropTypes.number,direction:PropTypes.oneOf([\"rtl\",\"ltr\"]),disabledTabClassName:PropTypes.string,disableUpDownKeys:PropTypes.bool,disableLeftRightKeys:PropTypes.bool,domRef:PropTypes.func,environment:PropTypes.object,focusTabOnClick:PropTypes.bool,forceRenderTabPanel:PropTypes.bool,onSelect:onSelectPropType,selectedIndex:selectedIndexPropType,selectedTabClassName:PropTypes.string,selectedTabPanelClassName:PropTypes.string}:{};const defaultProps={defaultFocus:false,focusTabOnClick:true,forceRenderTabPanel:false,selectedIndex:null,defaultIndex:null,environment:null,disableUpDownKeys:false,disableLeftRightKeys:false};const getModeFromProps=props=>{return props.selectedIndex===null?MODE_UNCONTROLLED:MODE_CONTROLLED};const checkForIllegalModeChange=(props,mode)=>{if(process.env.NODE_ENV!==\"production\"&&mode!=undefined&&mode!==getModeFromProps(props)){throw new Error(`Switching between controlled mode (by using \\`selectedIndex\\`) and uncontrolled mode is not supported in \\`Tabs\\`.\nFor more information about controlled and uncontrolled mode of react-tabs see https://github.com/reactjs/react-tabs#controlled-vs-uncontrolled-mode.`)}};const Tabs=props=>{const{children,defaultFocus,defaultIndex,focusTabOnClick,onSelect,...attributes}={...defaultProps,...props};const[focus,setFocus]=useState(defaultFocus);const[mode]=useState(getModeFromProps(attributes));const[selectedIndex,setSelectedIndex]=useState(mode===MODE_UNCONTROLLED?defaultIndex||0:null);useEffect(()=>{setFocus(false)},[]);if(mode===MODE_UNCONTROLLED){const tabsCount=getTabsCount(children);useEffect(()=>{if(selectedIndex!=null){const maxTabIndex=Math.max(0,tabsCount-1);setSelectedIndex(Math.min(selectedIndex,maxTabIndex))}},[tabsCount])}checkForIllegalModeChange(attributes,mode);const handleSelected=(index,last,event)=>{if(typeof onSelect===\"function\"){if(onSelect(index,last,event)===false)return}if(focusTabOnClick){setFocus(true)}if(mode===MODE_UNCONTROLLED){setSelectedIndex(index)}};let subProps={...props,...attributes};subProps.focus=focus;subProps.onSelect=handleSelected;if(selectedIndex!=null){subProps.selectedIndex=selectedIndex}delete subProps.defaultFocus;delete subProps.defaultIndex;delete subProps.focusTabOnClick;return React.createElement(UncontrolledTabs,subProps,children)};Tabs.propTypes=process.env.NODE_ENV!==\"production\"?propTypes:{};Tabs.tabsRole=\"Tabs\";export default Tabs;"],"names":["propTypes","process","env","NODE_ENV","children","childrenPropType","className","PropTypes","oneOfType","string","array","object","defaultFocus","bool","defaultIndex","number","direction","oneOf","disabledTabClassName","disableUpDownKeys","disableLeftRightKeys","domRef","func","environment","focusTabOnClick","forceRenderTabPanel","onSelect","onSelectPropType","selectedIndex","selectedIndexPropType","selectedTabClassName","selectedTabPanelClassName","defaultProps","getModeFromProps","props","Tabs","attributes","focus","setFocus","useState","mode","setSelectedIndex","useEffect","tabsCount","getTabsCount","maxTabIndex","Math","max","min","undefined","Error","checkForIllegalModeChange","subProps","index","last","event","React","createElement","UncontrolledTabs","tabsRole"],"mappings":"wSAAqQ,MAAwDA,EAAiC,eAAvBC,QAAQC,IAAIC,SAAwB,CAACC,SAASC,EAAiBC,UAAUC,EAAUC,UAAU,CAACD,EAAUE,OAAOF,EAAUG,MAAMH,EAAUI,SAASC,aAAaL,EAAUM,KAAKC,aAAaP,EAAUQ,OAAOC,UAAUT,EAAUU,MAAM,CAAC,MAAM,QAAQC,qBAAqBX,EAAUE,OAAOU,kBAAkBZ,EAAUM,KAAKO,qBAAqBb,EAAUM,KAAKQ,OAAOd,EAAUe,KAAKC,YAAYhB,EAAUI,OAAOa,gBAAgBjB,EAAUM,KAAKY,oBAAoBlB,EAAUM,KAAKa,SAASC,EAAiBC,cAAcC,EAAsBC,qBAAqBvB,EAAUE,OAAOsB,0BAA0BxB,EAAUE,QAAQ,CAAE,EAAOuB,EAAa,CAACpB,cAAa,EAAMY,iBAAgB,EAAKC,qBAAoB,EAAMG,cAAc,KAAKd,aAAa,KAAKS,YAAY,KAAKJ,mBAAkB,EAAMC,sBAAqB,GAAaa,EAAiBC,GAAqC,OAAtBA,EAAMN,cAAt2B,EAA1B,EAC5HO,EAAKD,IAAQ,MAAK9B,SAACA,EAAQQ,aAACA,EAAYE,aAACA,EAAYU,gBAACA,EAAeE,SAACA,KAAYU,GAAY,IAAIJ,KAAgBE,IAAaG,EAAMC,GAAUC,EAAS3B,IAAoB4B,GAAMD,EAASN,EAAiBG,KAAmBR,EAAca,GAAkBF,EADzG,IACkHC,EAAyB1B,GAAc,EAAE,MAA0C,GAApC4B,GAAU,KAAKJ,GAAS,KAAQ,IADjM,IACwME,EAAyB,CAAC,MAAMG,EAAUC,EAAaxC,GAAUsC,GAAU,KAAK,GAAkB,MAAfd,EAAoB,CAAC,MAAMiB,EAAYC,KAAKC,IAAI,EAAEJ,EAAU,GAAGF,EAAiBK,KAAKE,IAAIpB,EAAciB,GAAa,IAAG,CAACF,GAAW,CADgiB,EAACT,EAAMM,KAAQ,GAA0B,eAAvBvC,QAAQC,IAAIC,UAA+B8C,MAANT,GAAiBA,IAAOP,EAAiBC,GAAQ,MAAM,IAAIgB,MAAM,uQACrtC,EAA8jBC,CAA0Bf,EAAWI,GAAwN,IAAIY,EAAS,IAAIlB,KAASE,GAAyN,OAA7MgB,EAASf,MAAMA,EAAMe,EAAS1B,SAAjQ,CAAC2B,EAAMC,EAAKC,KAA8B,mBAAX7B,IAAuD,IAA7BA,EAAS2B,EAAMC,EAAKC,KAAyB/B,GAAiBc,GAAS,GAD/lB,IACwmBE,GAA0BC,EAAiBY,GAAM,EAAiH,MAAfzB,IAAqBwB,EAASxB,cAAcA,UAAqBwB,EAASxC,oBAAoBwC,EAAStC,oBAAoBsC,EAAS5B,gBAAuBgC,EAAMC,cAAcC,EAAiBN,EAAShD,EAAQ,EAAG+B,EAAKnC,UAAiC,eAAvBC,QAAQC,IAAIC,SAAwBH,EAAU,GAAGmC,EAAKwB,SAAS"}
@@ -1,2 +0,0 @@
1
- import e from"../../../../_virtual/index.mjs";import t,{useRef as r,useId as n,cloneElement as o}from"react";import s from"clsx";import{childrenPropType as l}from"../helpers/propTypes.mjs";import{getTabsCount as c}from"../helpers/count.mjs";import{deepMap as i}from"../helpers/childrenDeepMap.mjs";import{isTabList as d,isTabPanel as a,isTab as u}from"../helpers/elementTypes.mjs";function f(e){return e&&"getAttribute"in e}function m(e){return f(e)&&e.getAttribute("data-rttab")}function b(e){return f(e)&&"true"===e.getAttribute("aria-disabled")}let p;const h={className:"react-tabs",focus:!1},y="production"!==process.env.NODE_ENV?{children:l,direction:e.oneOf(["rtl","ltr"]),className:e.oneOfType([e.string,e.array,e.object]),disabledTabClassName:e.string,disableUpDownKeys:e.bool,disableLeftRightKeys:e.bool,domRef:e.func,focus:e.bool,forceRenderTabPanel:e.bool,onSelect:e.func.isRequired,selectedIndex:e.number.isRequired,selectedTabClassName:e.string,selectedTabPanelClassName:e.string,environment:e.object}:{},C=e=>{let l=r([]),f=r([]);const y=r();function C(t,r){if(t<0||t>=g())return;const{onSelect:n,selectedIndex:o}=e;n(t,o,r)}function N(e){const t=g();for(let r=e+1;r<t;r++)if(!b(T(r)))return r;for(let t=0;t<e;t++)if(!b(T(t)))return t;return e}function w(e){let t=e;for(;t--;)if(!b(T(t)))return t;for(t=g();t-- >e;)if(!b(T(t)))return t;return e}function g(){const{children:t}=e;return c(t)}function T(e){return l.current[`tabs-${e}`]}function v(e){let t=e.target;do{if(R(t)){if(b(t))return;return void C([].slice.call(t.parentNode.children).filter(m).indexOf(t),e)}}while(null!=(t=t.parentNode))}function R(e){if(!m(e))return!1;let t=e.parentElement;do{if(t===y.current)return!0;if(t.getAttribute("data-rttabs"))break;t=t.parentElement}while(t);return!1}const{children:E,className:k,disabledTabClassName:x,domRef:A,focus:D,forceRenderTabPanel:j,onSelect:K,selectedIndex:O,selectedTabClassName:P,selectedTabPanelClassName:I,environment:L,disableUpDownKeys:S,disableLeftRightKeys:U,...$}={...h,...e};return t.createElement("div",Object.assign({},$,{className:s(k),onClick:v,onKeyDown:function(t){const{direction:r,disableUpDownKeys:n,disableLeftRightKeys:o}=e;if(R(t.target)){let{selectedIndex:s}=e,l=!1,c=!1;"Space"!==t.code&&32!==t.keyCode&&"Enter"!==t.code&&13!==t.keyCode||(l=!0,c=!1,v(t)),(o||37!==t.keyCode&&"ArrowLeft"!==t.code)&&(n||38!==t.keyCode&&"ArrowUp"!==t.code)?(o||39!==t.keyCode&&"ArrowRight"!==t.code)&&(n||40!==t.keyCode&&"ArrowDown"!==t.code)?35===t.keyCode||"End"===t.code?(s=function(){let e=g();for(;e--;)if(!b(T(e)))return e;return null}(),l=!0,c=!0):36!==t.keyCode&&"Home"!==t.code||(s=function(){const e=g();for(let t=0;t<e;t++)if(!b(T(t)))return t;return null}(),l=!0,c=!0):(s="rtl"===r?w(s):N(s),l=!0,c=!0):(s="rtl"===r?N(s):w(s),l=!0,c=!0),l&&t.preventDefault(),c&&C(s,t)}},ref:e=>{y.current=e,A&&A(e)},"data-rttabs":!0}),function(){let r=0;const{children:s,disabledTabClassName:c,focus:m,forceRenderTabPanel:b,selectedIndex:h,selectedTabClassName:y,selectedTabPanelClassName:C,environment:N}=e;f.current=f.current||[];let w=f.current.length-g();const v=n();for(;w++<0;)f.current.push(`${v}${f.current.length}`);return i(s,(e=>{let n=e;if(d(e)){let r=0,s=!1;null==p&&function(e){const t=e||("undefined"!=typeof window?window:void 0);try{p=!(void 0===t||!t.document||!t.document.activeElement)}catch(e){p=!1}}(N);const d=N||("undefined"!=typeof window?window:void 0);p&&d&&(s=t.Children.toArray(e.props.children).filter(u).some(((e,t)=>d.document.activeElement===T(t)))),n=o(e,{children:i(e.props.children,(e=>{const t=`tabs-${r}`,n=h===r,i={tabRef:e=>{l.current[t]=e},id:f.current[r],selected:n,focus:n&&(m||s)};return y&&(i.selectedClassName=y),c&&(i.disabledClassName=c),r++,o(e,i)}))})}else if(a(e)){const t={id:f.current[r],selected:h===r};b&&(t.forceRender=b),C&&(t.selectedClassName=C),r++,n=o(e,t)}return n}))}())};C.propTypes="production"!==process.env.NODE_ENV?y:{};export{C as default};
2
- //# sourceMappingURL=UncontrolledTabs.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UncontrolledTabs.mjs","sources":["../../../../../../node_modules/react-tabs/esm/components/UncontrolledTabs.js"],"sourcesContent":["import PropTypes from\"prop-types\";import React,{cloneElement,useRef,useId}from\"react\";import cx from\"clsx\";import{childrenPropType}from\"../helpers/propTypes\";import{getTabsCount as getTabsCountHelper}from\"../helpers/count\";import{deepMap}from\"../helpers/childrenDeepMap\";import{isTabList,isTabPanel,isTab}from\"../helpers/elementTypes\";function isNode(node){return node&&\"getAttribute\"in node}function isTabNode(node){return isNode(node)&&node.getAttribute(\"data-rttab\")}function isTabDisabled(node){return isNode(node)&&node.getAttribute(\"aria-disabled\")===\"true\"}let canUseActiveElement;function determineCanUseActiveElement(environment){const env=environment||(typeof window!==\"undefined\"?window:undefined);try{canUseActiveElement=!!(typeof env!==\"undefined\"&&env.document&&env.document.activeElement)}catch(e){canUseActiveElement=false}}const defaultProps={className:\"react-tabs\",focus:false};const propTypes=process.env.NODE_ENV!==\"production\"?{children:childrenPropType,direction:PropTypes.oneOf([\"rtl\",\"ltr\"]),className:PropTypes.oneOfType([PropTypes.string,PropTypes.array,PropTypes.object]),disabledTabClassName:PropTypes.string,disableUpDownKeys:PropTypes.bool,disableLeftRightKeys:PropTypes.bool,domRef:PropTypes.func,focus:PropTypes.bool,forceRenderTabPanel:PropTypes.bool,onSelect:PropTypes.func.isRequired,selectedIndex:PropTypes.number.isRequired,selectedTabClassName:PropTypes.string,selectedTabPanelClassName:PropTypes.string,environment:PropTypes.object}:{};const UncontrolledTabs=props=>{let tabNodes=useRef([]);let tabIds=useRef([]);const ref=useRef();function setSelected(index,event){if(index<0||index>=getTabsCount())return;const{onSelect,selectedIndex}=props;onSelect(index,selectedIndex,event)}function getNextTab(index){const count=getTabsCount();for(let i=index+1;i<count;i++){if(!isTabDisabled(getTab(i))){return i}}for(let i=0;i<index;i++){if(!isTabDisabled(getTab(i))){return i}}return index}function getPrevTab(index){let i=index;while(i--){if(!isTabDisabled(getTab(i))){return i}}i=getTabsCount();while(i-->index){if(!isTabDisabled(getTab(i))){return i}}return index}function getFirstTab(){const count=getTabsCount();for(let i=0;i<count;i++){if(!isTabDisabled(getTab(i))){return i}}return null}function getLastTab(){let i=getTabsCount();while(i--){if(!isTabDisabled(getTab(i))){return i}}return null}function getTabsCount(){const{children}=props;return getTabsCountHelper(children)}function getTab(index){return tabNodes.current[`tabs-${index}`]}function getChildren(){let index=0;const{children,disabledTabClassName,focus,forceRenderTabPanel,selectedIndex,selectedTabClassName,selectedTabPanelClassName,environment}=props;tabIds.current=tabIds.current||[];let diff=tabIds.current.length-getTabsCount();const id=useId();while(diff++<0){tabIds.current.push(`${id}${tabIds.current.length}`)}return deepMap(children,child=>{let result=child;if(isTabList(child)){let listIndex=0;let wasTabFocused=false;if(canUseActiveElement==null){determineCanUseActiveElement(environment)}const env=environment||(typeof window!==\"undefined\"?window:undefined);if(canUseActiveElement&&env){wasTabFocused=React.Children.toArray(child.props.children).filter(isTab).some((tab,i)=>env.document.activeElement===getTab(i))}result=cloneElement(child,{children:deepMap(child.props.children,tab=>{const key=`tabs-${listIndex}`;const selected=selectedIndex===listIndex;const props={tabRef:node=>{tabNodes.current[key]=node},id:tabIds.current[listIndex],selected,focus:selected&&(focus||wasTabFocused)};if(selectedTabClassName)props.selectedClassName=selectedTabClassName;if(disabledTabClassName)props.disabledClassName=disabledTabClassName;listIndex++;return cloneElement(tab,props)})})}else if(isTabPanel(child)){const props={id:tabIds.current[index],selected:selectedIndex===index};if(forceRenderTabPanel)props.forceRender=forceRenderTabPanel;if(selectedTabPanelClassName)props.selectedClassName=selectedTabPanelClassName;index++;result=cloneElement(child,props)}return result})}function handleKeyDown(e){const{direction,disableUpDownKeys,disableLeftRightKeys}=props;if(isTabFromContainer(e.target)){let{selectedIndex:index}=props;let preventDefault=false;let useSelectedIndex=false;if(e.code===\"Space\"||e.keyCode===32||e.code===\"Enter\"||e.keyCode===13){preventDefault=true;useSelectedIndex=false;handleClick(e)}if(!disableLeftRightKeys&&(e.keyCode===37||e.code===\"ArrowLeft\")||!disableUpDownKeys&&(e.keyCode===38||e.code===\"ArrowUp\")){if(direction===\"rtl\"){index=getNextTab(index)}else{index=getPrevTab(index)}preventDefault=true;useSelectedIndex=true}else if(!disableLeftRightKeys&&(e.keyCode===39||e.code===\"ArrowRight\")||!disableUpDownKeys&&(e.keyCode===40||e.code===\"ArrowDown\")){if(direction===\"rtl\"){index=getPrevTab(index)}else{index=getNextTab(index)}preventDefault=true;useSelectedIndex=true}else if(e.keyCode===35||e.code===\"End\"){index=getLastTab();preventDefault=true;useSelectedIndex=true}else if(e.keyCode===36||e.code===\"Home\"){index=getFirstTab();preventDefault=true;useSelectedIndex=true}if(preventDefault){e.preventDefault()}if(useSelectedIndex){setSelected(index,e)}}}function handleClick(e){let node=e.target;do{if(isTabFromContainer(node)){if(isTabDisabled(node)){return}const index=[].slice.call(node.parentNode.children).filter(isTabNode).indexOf(node);setSelected(index,e);return}}while((node=node.parentNode)!=null)}function isTabFromContainer(node){if(!isTabNode(node)){return false}let nodeAncestor=node.parentElement;do{if(nodeAncestor===ref.current)return true;if(nodeAncestor.getAttribute(\"data-rttabs\"))break;nodeAncestor=nodeAncestor.parentElement}while(nodeAncestor);return false}const{children,className,disabledTabClassName,domRef,focus,forceRenderTabPanel,onSelect,selectedIndex,selectedTabClassName,selectedTabPanelClassName,environment,disableUpDownKeys,disableLeftRightKeys,...attributes}={...defaultProps,...props};return React.createElement(\"div\",Object.assign({},attributes,{className:cx(className),onClick:handleClick,onKeyDown:handleKeyDown,ref:node=>{ref.current=node;if(domRef)domRef(node)},\"data-rttabs\":true}),getChildren())};UncontrolledTabs.propTypes=process.env.NODE_ENV!==\"production\"?propTypes:{};export default UncontrolledTabs;"],"names":["isNode","node","isTabNode","getAttribute","isTabDisabled","canUseActiveElement","defaultProps","className","focus","propTypes","process","env","NODE_ENV","children","childrenPropType","direction","PropTypes","oneOf","oneOfType","string","array","object","disabledTabClassName","disableUpDownKeys","bool","disableLeftRightKeys","domRef","func","forceRenderTabPanel","onSelect","isRequired","selectedIndex","number","selectedTabClassName","selectedTabPanelClassName","environment","UncontrolledTabs","props","tabNodes","useRef","tabIds","ref","setSelected","index","event","getTabsCount","getNextTab","count","i","getTab","getPrevTab","getTabsCountHelper","current","handleClick","e","target","isTabFromContainer","slice","call","parentNode","filter","indexOf","nodeAncestor","parentElement","attributes","React","createElement","Object","assign","cx","onClick","onKeyDown","preventDefault","useSelectedIndex","code","keyCode","getLastTab","getFirstTab","diff","length","id","useId","push","deepMap","child","result","isTabList","listIndex","wasTabFocused","window","undefined","document","activeElement","determineCanUseActiveElement","Children","toArray","isTab","some","tab","cloneElement","key","selected","tabRef","selectedClassName","disabledClassName","isTabPanel","forceRender","getChildren"],"mappings":"6XAA+U,SAASA,EAAOC,GAAM,OAAOA,GAAM,iBAAiBA,CAAI,CAAC,SAASC,EAAUD,GAAM,OAAOD,EAAOC,IAAOA,EAAKE,aAAa,aAAa,CAAC,SAASC,EAAcH,GAAM,OAAOD,EAAOC,IAA4C,SAArCA,EAAKE,aAAa,gBAAyB,CAAC,IAAIE,EAAgR,MAAMC,EAAa,CAACC,UAAU,aAAaC,OAAM,GAAaC,EAAiC,eAAvBC,QAAQC,IAAIC,SAAwB,CAACC,SAASC,EAAiBC,UAAUC,EAAUC,MAAM,CAAC,MAAM,QAAQV,UAAUS,EAAUE,UAAU,CAACF,EAAUG,OAAOH,EAAUI,MAAMJ,EAAUK,SAASC,qBAAqBN,EAAUG,OAAOI,kBAAkBP,EAAUQ,KAAKC,qBAAqBT,EAAUQ,KAAKE,OAAOV,EAAUW,KAAKnB,MAAMQ,EAAUQ,KAAKI,oBAAoBZ,EAAUQ,KAAKK,SAASb,EAAUW,KAAKG,WAAWC,cAAcf,EAAUgB,OAAOF,WAAWG,qBAAqBjB,EAAUG,OAAOe,0BAA0BlB,EAAUG,OAAOgB,YAAYnB,EAAUK,QAAQ,CAAA,EAASe,E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SAASC,QAAQX,EAAM/C,MAAMxB,UAAU+C,OAAOoC,GAAOC,MAAK,CAACC,EAAIlD,IAAIrC,EAAIgF,SAASC,gBAAgB3C,EAAOD,MAAIqC,EAAOc,EAAaf,EAAM,CAACvE,SAASsE,EAAQC,EAAM/C,MAAMxB,UAASqF,IAAM,MAAME,EAAI,QAAQb,IAAkBc,EAAStE,IAAgBwD,EAAgBlD,EAAM,CAACiE,OAAOrG,IAAOqC,EAASc,QAAQgD,GAAKnG,CAAA,EAAM+E,GAAGxC,EAAOY,QAAQmC,GAAWc,WAAS7F,MAAM6F,IAAW7F,GAAOgF,IAAsK,OAAnJvD,IAAqBI,EAAMkE,kBAAkBtE,GAAwBX,IAAqBe,EAAMmE,kBAAkBlF,GAAqBiE,IAAmBY,EAAaD,EAAI7D,EAAK,KAAK,MAAM,GAAGoE,EAAWrB,GAAO,CAAC,MAAM/C,EAAM,CAAC2C,GAAGxC,EAAOY,QAAQT,GAAO0D,SAAStE,IAAgBY,GAAUf,IAAoBS,EAAMqE,YAAY9E,GAAuBM,IAA0BG,EAAMkE,kBAAkBrE,GAA0BS,IAAQ0C,EAAOc,EAAaf,EAAM/C,EAAM,CAAC,OAAOgD,IAAQ,CAAiiEsB,GAAa,EAAGvE,EAAiB3B,UAAiC,eAAvBC,QAAQC,IAAIC,SAAwBH,EAAU,CAAE"}
@@ -1,2 +0,0 @@
1
- import{Children as r,cloneElement as p}from"react";import{isTab as o,isTabPanel as e,isTabList as n}from"./elementTypes.mjs";function t(c,l){return r.map(c,(r=>null===r?null:function(r){return o(r)||n(r)||e(r)}(r)?l(r):r.props&&r.props.children&&"object"==typeof r.props.children?p(r,{...r.props,children:t(r.props.children,l)}):r))}function c(p,t){return r.forEach(p,(r=>{null!==r&&(o(r)||e(r)?t(r):r.props&&r.props.children&&"object"==typeof r.props.children&&(n(r)&&t(r),c(r.props.children,t)))}))}export{c as deepForEach,t as deepMap};
2
- //# sourceMappingURL=childrenDeepMap.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"childrenDeepMap.mjs","sources":["../../../../../../node_modules/react-tabs/esm/helpers/childrenDeepMap.js"],"sourcesContent":["import{Children,cloneElement}from\"react\";import{isTabPanel,isTab,isTabList}from\"./elementTypes\";function isTabChild(child){return isTab(child)||isTabList(child)||isTabPanel(child)}export function deepMap(children,callback){return Children.map(children,child=>{if(child===null)return null;if(isTabChild(child)){return callback(child)}if(child.props&&child.props.children&&typeof child.props.children===\"object\"){return cloneElement(child,{...child.props,children:deepMap(child.props.children,callback)})}return child})}export function deepForEach(children,callback){return Children.forEach(children,child=>{if(child===null)return;if(isTab(child)||isTabPanel(child)){callback(child)}else if(child.props&&child.props.children&&typeof child.props.children===\"object\"){if(isTabList(child))callback(child);deepForEach(child.props.children,callback)}})}"],"names":["deepMap","children","callback","Children","map","child","isTab","isTabList","isTabPanel","isTabChild","props","cloneElement","deepForEach","forEach"],"mappings":"6HAA2L,SAASA,EAAQC,EAASC,GAAU,OAAOC,EAASC,IAAIH,GAASI,GAAmB,OAARA,EAAoB,KAA3L,SAAoBA,GAAO,OAAOC,EAAMD,IAAQE,EAAUF,IAAQG,EAAWH,EAAM,CAAgHI,CAAWJ,GAAeH,EAASG,GAAUA,EAAMK,OAAOL,EAAMK,MAAMT,UAAwC,iBAAvBI,EAAMK,MAAMT,SAA4BU,EAAaN,EAAM,IAAIA,EAAMK,MAAMT,SAASD,EAAQK,EAAMK,MAAMT,SAASC,KAAmBG,GAAO,CAAQ,SAASO,EAAYX,EAASC,GAAU,OAAOC,EAASU,QAAQZ,GAASI,IAAmB,OAARA,IAAuBC,EAAMD,IAAQG,EAAWH,GAAQH,EAASG,GAAeA,EAAMK,OAAOL,EAAMK,MAAMT,UAAwC,iBAAvBI,EAAMK,MAAMT,WAAwBM,EAAUF,IAAOH,EAASG,GAAOO,EAAYP,EAAMK,MAAMT,SAASC,IAAS,GAAG"}
@@ -1,2 +0,0 @@
1
- import{deepForEach as e}from"./childrenDeepMap.mjs";import{isTab as r}from"./elementTypes.mjs";function m(m){let t=0;return e(m,(e=>{r(e)&&t++})),t}export{m as getTabsCount};
2
- //# sourceMappingURL=count.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"count.mjs","sources":["../../../../../../node_modules/react-tabs/esm/helpers/count.js"],"sourcesContent":["import{deepForEach}from\"./childrenDeepMap\";import{isTab}from\"./elementTypes\";export function getTabsCount(children){let tabCount=0;deepForEach(children,child=>{if(isTab(child))tabCount++});return tabCount}"],"names":["getTabsCount","children","tabCount","deepForEach","child","isTab"],"mappings":"+FAAoF,SAASA,EAAaC,GAAU,IAAIC,EAAS,EAA4D,OAA1DC,EAAYF,GAASG,IAAWC,EAAMD,IAAOF,GAAU,IAAUA,CAAQ"}
@@ -1,2 +0,0 @@
1
- function t(t){return e=>!!e.type&&e.type.tabsRole===t}const e=t("Tab"),a=t("TabList"),n=t("TabPanel");export{e as isTab,a as isTabList,n as isTabPanel};
2
- //# sourceMappingURL=elementTypes.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"elementTypes.mjs","sources":["../../../../../../node_modules/react-tabs/esm/helpers/elementTypes.js"],"sourcesContent":["function makeTypeChecker(tabsRole){return element=>!!element.type&&element.type.tabsRole===tabsRole}export const isTab=makeTypeChecker(\"Tab\");export const isTabList=makeTypeChecker(\"TabList\");export const isTabPanel=makeTypeChecker(\"TabPanel\");"],"names":["makeTypeChecker","tabsRole","element","type","isTab","isTabList","isTabPanel"],"mappings":"AAAA,SAASA,EAAgBC,GAAU,OAAOC,KAAWA,EAAQC,MAAMD,EAAQC,KAAKF,WAAWA,CAAQ,CAAa,MAACG,EAAMJ,EAAgB,OAAoBK,EAAUL,EAAgB,WAAwBM,EAAWN,EAAgB"}
@@ -1,2 +0,0 @@
1
- import{deepForEach as e}from"./childrenDeepMap.mjs";import{isTabList as n,isTab as t,isTabPanel as o}from"./elementTypes.mjs";function l(l,r,i){let d,a=0,s=0,u=!1;const p=[],c=l[r];return e(c,(l=>{n(l)&&(l.props&&l.props.children&&"object"==typeof l.props.children&&e(l.props.children,(e=>p.push(e))),u&&(d=new Error("Found multiple 'TabList' components inside 'Tabs'. Only one is allowed.")),u=!0),t(l)?(u&&-1!==p.indexOf(l)||(d=new Error("Found a 'Tab' component outside of the 'TabList' component. 'Tab' components have to be inside the 'TabList' component.")),a++):o(l)&&s++})),d||a===s||(d=new Error(`There should be an equal number of 'Tab' and 'TabPanel' in \`${i}\`. Received ${a} 'Tab' and ${s} 'TabPanel'.`)),d}function r(e,n,t,o,l){const r=e[n],i=l||n;let d=null;return r&&"function"!=typeof r?d=new Error(`Invalid ${o} \`${i}\` of type \`${typeof r}\` supplied to \`${t}\`, expected \`function\`.`):null!=e.selectedIndex&&null==r&&(d=new Error(`The ${o} \`${i}\` is marked as required in \`${t}\`, but its value is \`undefined\` or \`null\`.\n\`onSelect\` is required when \`selectedIndex\` is also set. Not doing so will make the tabs not do anything, as \`selectedIndex\` indicates that you want to handle the selected tab yourself.\nIf you only want to set the inital tab replace \`selectedIndex\` with \`defaultIndex\`.`)),d}function i(e,n,t,o,l){const r=e[n],i=l||n;let d=null;if(null!=r&&"number"!=typeof r)d=new Error(`Invalid ${o} \`${i}\` of type \`${typeof r}\` supplied to \`${t}\`, expected \`number\`.`);else if(null!=e.defaultIndex&&null!=r)return new Error(`The ${o} \`${i}\` cannot be used together with \`defaultIndex\` in \`${t}\`.\nEither remove \`${i}\` to let \`${t}\` handle the selected tab internally or remove \`defaultIndex\` to handle it yourself.`);return d}export{l as childrenPropType,r as onSelectPropType,i as selectedIndexPropType};
2
- //# sourceMappingURL=propTypes.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"propTypes.mjs","sources":["../../../../../../node_modules/react-tabs/esm/helpers/propTypes.js"],"sourcesContent":["import{deepForEach}from\"./childrenDeepMap\";import{isTab,isTabList,isTabPanel}from\"./elementTypes\";export function childrenPropType(props,propName,componentName){let error;let tabsCount=0;let panelsCount=0;let tabListFound=false;const listTabs=[];const children=props[propName];deepForEach(children,child=>{if(isTabList(child)){if(child.props&&child.props.children&&typeof child.props.children===\"object\"){deepForEach(child.props.children,listChild=>listTabs.push(listChild))}if(tabListFound){error=new Error(\"Found multiple 'TabList' components inside 'Tabs'. Only one is allowed.\")}tabListFound=true}if(isTab(child)){if(!tabListFound||listTabs.indexOf(child)===-1){error=new Error(\"Found a 'Tab' component outside of the 'TabList' component. 'Tab' components \"+\"have to be inside the 'TabList' component.\")}tabsCount++}else if(isTabPanel(child)){panelsCount++}});if(!error&&tabsCount!==panelsCount){error=new Error(`There should be an equal number of 'Tab' and 'TabPanel' in \\`${componentName}\\`. `+`Received ${tabsCount} 'Tab' and ${panelsCount} 'TabPanel'.`)}return error}export function onSelectPropType(props,propName,componentName,location,propFullName){const prop=props[propName];const name=propFullName||propName;let error=null;if(prop&&typeof prop!==\"function\"){error=new Error(`Invalid ${location} \\`${name}\\` of type \\`${typeof prop}\\` supplied `+`to \\`${componentName}\\`, expected \\`function\\`.`)}else if(props.selectedIndex!=null&&prop==null){error=new Error(`The ${location} \\`${name}\\` is marked as required in \\`${componentName}\\`, but `+`its value is \\`undefined\\` or \\`null\\`.\\n`+`\\`onSelect\\` is required when \\`selectedIndex\\` is also set. Not doing so will `+`make the tabs not do anything, as \\`selectedIndex\\` indicates that you want to `+`handle the selected tab yourself.\\n`+`If you only want to set the inital tab replace \\`selectedIndex\\` with \\`defaultIndex\\`.`)}return error}export function selectedIndexPropType(props,propName,componentName,location,propFullName){const prop=props[propName];const name=propFullName||propName;let error=null;if(prop!=null&&typeof prop!==\"number\"){error=new Error(`Invalid ${location} \\`${name}\\` of type \\`${typeof prop}\\` supplied to `+`\\`${componentName}\\`, expected \\`number\\`.`)}else if(props.defaultIndex!=null&&prop!=null){return new Error(`The ${location} \\`${name}\\` cannot be used together with \\`defaultIndex\\` `+`in \\`${componentName}\\`.\\n`+`Either remove \\`${name}\\` to let \\`${componentName}\\` handle the selected `+`tab internally or remove \\`defaultIndex\\` to handle it yourself.`)}return error}"],"names":["childrenPropType","props","propName","componentName","error","tabsCount","panelsCount","tabListFound","listTabs","children","deepForEach","child","isTabList","listChild","push","Error","isTab","indexOf","isTabPanel","onSelectPropType","location","propFullName","prop","name","selectedIndex","selectedIndexPropType","defaultIndex"],"mappings":"8HAAyG,SAASA,EAAiBC,EAAMC,EAASC,GAAe,IAAIC,EAAUC,EAAU,EAAMC,EAAY,EAAMC,GAAa,EAAM,MAAMC,EAAS,GAASC,EAASR,EAAMC,GAA2xB,OAAjxBQ,EAAYD,GAASE,IAAWC,EAAUD,KAAWA,EAAMV,OAAOU,EAAMV,MAAMQ,UAAwC,iBAAvBE,EAAMV,MAAMQ,UAAqBC,EAAYC,EAAMV,MAAMQ,UAASI,GAAWL,EAASM,KAAKD,KAAeN,IAAcH,EAAM,IAAIW,MAAM,4EAA2ER,GAAa,GAAQS,EAAML,IAAYJ,IAAyC,IAA3BC,EAASS,QAAQN,KAAaP,EAAM,IAAIW,MAAM,4HAA8HV,KAAoBa,EAAWP,IAAQL,GAAa,IAAQF,GAAOC,IAAYC,IAAaF,EAAM,IAAIW,MAAM,gEAAgEZ,iBAAgCE,eAAuBC,kBAAkCF,CAAK,CAAQ,SAASe,EAAiBlB,EAAMC,EAASC,EAAciB,EAASC,GAAc,MAAMC,EAAKrB,EAAMC,GAAgBqB,EAAKF,GAAcnB,EAAS,IAAIE,EAAM,KAAopB,OAA5oBkB,GAAoB,mBAAPA,EAAmBlB,EAAM,IAAIW,MAAM,WAAWK,OAAcG,wBAA2BD,qBAA2BnB,+BAAwE,MAArBF,EAAMuB,eAA2B,MAANF,IAAYlB,EAAM,IAAIW,MAAM,OAAOK,OAAcG,kCAAqCpB,+UAAgXC,CAAK,CAAQ,SAASqB,EAAsBxB,EAAMC,EAASC,EAAciB,EAASC,GAAc,MAAMC,EAAKrB,EAAMC,GAAgBqB,EAAKF,GAAcnB,EAAS,IAAIE,EAAM,KAAK,GAAS,MAANkB,GAA0B,iBAAPA,EAAiBlB,EAAM,IAAIW,MA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