@up42/up-components 0.3.4 → 0.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/types/components/Avatar/Avatar.d.ts +8 -1
- package/dist/cjs/types/components/Box/Box.d.ts +5 -2
- package/dist/cjs/types/components/Button/Button.d.ts +7 -2
- package/dist/cjs/types/components/Button/Button.overrides.d.ts +0 -11
- package/dist/cjs/types/components/ControlButton/ControlButton.d.ts +14 -0
- package/dist/cjs/types/components/ControlButton/ControlButton.stories.d.ts +6 -0
- package/dist/cjs/types/components/ControlButton/ControlButton.test.d.ts +1 -0
- package/dist/cjs/types/components/DocumentationPopover/DocumentationPopover.d.ts +25 -0
- package/dist/cjs/types/components/DocumentationPopover/DocumentationPopover.stories.d.ts +5 -0
- package/dist/cjs/types/components/DocumentationPopover/DocumentationPopover.test.d.ts +1 -0
- package/dist/cjs/types/components/InfoCard/InfoCard.d.ts +58 -0
- package/dist/cjs/types/components/InfoCard/InfoCard.stories.d.ts +7 -0
- package/dist/cjs/types/components/InfoCard/InfoCard.test.d.ts +1 -0
- package/dist/cjs/types/components/InfoModal/InfoModal.d.ts +14 -0
- package/dist/cjs/types/components/InfoModal/InfoModal.stories.d.ts +6 -0
- package/dist/cjs/types/components/InfoModal/InfoModal.test.d.ts +1 -0
- package/dist/cjs/types/components/InfoPopover/InfoPopover.d.ts +9 -0
- package/dist/cjs/types/components/InfoPopover/InfoPopover.stories.d.ts +6 -0
- package/dist/cjs/types/components/InfoPopover/InfoPopover.test.d.ts +1 -0
- package/dist/cjs/types/components/Modal/Modal.d.ts +3 -8
- package/dist/cjs/types/components/Modal/Modal.stories.d.ts +1 -2
- package/dist/cjs/types/components/Popover/Popover.d.ts +8 -0
- package/dist/cjs/types/components/Popover/Popover.stories.d.ts +5 -0
- package/dist/cjs/types/components/Popover/Popover.test.d.ts +1 -0
- package/dist/cjs/types/components/Tooltip/Tooltip.d.ts +7 -0
- package/dist/cjs/types/components/Tooltip/Tooltip.stories.d.ts +6 -0
- package/dist/cjs/types/components/Tooltip/Tooltip.test.d.ts +1 -0
- package/dist/cjs/types/global/icons/index.d.ts +6 -6
- package/dist/cjs/types/index.d.ts +7 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/types/components/Avatar/Avatar.d.ts +8 -1
- package/dist/esm/types/components/Box/Box.d.ts +5 -2
- package/dist/esm/types/components/Button/Button.d.ts +7 -2
- package/dist/esm/types/components/Button/Button.overrides.d.ts +0 -11
- package/dist/esm/types/components/ControlButton/ControlButton.d.ts +14 -0
- package/dist/esm/types/components/ControlButton/ControlButton.stories.d.ts +6 -0
- package/dist/esm/types/components/ControlButton/ControlButton.test.d.ts +1 -0
- package/dist/esm/types/components/DocumentationPopover/DocumentationPopover.d.ts +25 -0
- package/dist/esm/types/components/DocumentationPopover/DocumentationPopover.stories.d.ts +5 -0
- package/dist/esm/types/components/DocumentationPopover/DocumentationPopover.test.d.ts +1 -0
- package/dist/esm/types/components/InfoCard/InfoCard.d.ts +58 -0
- package/dist/esm/types/components/InfoCard/InfoCard.stories.d.ts +7 -0
- package/dist/esm/types/components/InfoCard/InfoCard.test.d.ts +1 -0
- package/dist/esm/types/components/InfoModal/InfoModal.d.ts +14 -0
- package/dist/esm/types/components/InfoModal/InfoModal.stories.d.ts +6 -0
- package/dist/esm/types/components/InfoModal/InfoModal.test.d.ts +1 -0
- package/dist/esm/types/components/InfoPopover/InfoPopover.d.ts +9 -0
- package/dist/esm/types/components/InfoPopover/InfoPopover.stories.d.ts +6 -0
- package/dist/esm/types/components/InfoPopover/InfoPopover.test.d.ts +1 -0
- package/dist/esm/types/components/Modal/Modal.d.ts +3 -8
- package/dist/esm/types/components/Modal/Modal.stories.d.ts +1 -2
- package/dist/esm/types/components/Popover/Popover.d.ts +8 -0
- package/dist/esm/types/components/Popover/Popover.stories.d.ts +5 -0
- package/dist/esm/types/components/Popover/Popover.test.d.ts +1 -0
- package/dist/esm/types/components/Tooltip/Tooltip.d.ts +7 -0
- package/dist/esm/types/components/Tooltip/Tooltip.stories.d.ts +6 -0
- package/dist/esm/types/components/Tooltip/Tooltip.test.d.ts +1 -0
- package/dist/esm/types/global/icons/index.d.ts +6 -6
- package/dist/esm/types/index.d.ts +7 -0
- package/dist/index.d.ts +124 -10
- package/package.json +3 -2
package/dist/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createTheme as e,CssBaseline as r,CircularProgress as t,Chip as o,Avatar as n,Container as i,Grid as a,Box as l,Checkbox as c,FormLabel as d,FormControl as s,FormGroup as m,FormControlLabel as f,FormHelperText as u,Radio as p,RadioGroup as g,Switch as h,Select as b,MenuItem as y,TextField as v,Link as x,SvgIcon as E,Tabs as w,Tab as z,Modal as k,Fade as C,Card as S,CardContent as T,Typography as O,IconButton as M,Divider as P,AlertTitle as F,capitalize as W,Alert as L,Button as R}from"@mui/material";export*from"@mui/material";import*as j from"react";import B,{useState as I}from"react";import{ThemeProvider as H,styled as A}from"@mui/material/styles";import q from"@mui/material/Button";import Z from"@mui/material/Typography";import N from"@mui/material/InputAdornment";import $ from"@mui/material/IconButton";import D from"@mui/icons-material/VisibilityOutlined";import V from"@mui/icons-material/VisibilityOffOutlined";import _ from"@mui/icons-material/InfoOutlined";import X from"@mui/icons-material/Close";import G from"@mui/material/Table";import K from"@mui/material/TableBody";import U from"@mui/material/TableCell";import J from"@mui/material/TableContainer";import Q from"@mui/material/TableHead";import Y from"@mui/material/TableRow";import ee from"@mui/material/TablePagination";import re from"@mui/material/TableSortLabel";import te from"@mui/material/TableFooter";var oe={animation:{speed:{normal:"0.5s",fast:"0.08s",slow:"1s"}},color:{background:{light:"#f4f5f7",dark:"#dfe1e6",indigo:"#262a59"},primary:"#262a59",secondary:"#d40fa9",info:"#262a59",error:"#e35656",success:"#aed581",indigo0:"#f4f4f6",indigo10:"#e9e9ee",indigo20:"#bdbfcd",indigo30:"#a8aabd",indigo40:"#9294ac",indigo50:"#7d7f9b",indigo60:"#67698a",indigo70:"#51557a",indigo80:"#3b3f69",indigo90:"#262a59",indigo100:"#161833",pink0:"#fff3ff",pink10:"#fedafd",pink20:"#fdc0fb",pink30:"#f98ef3",pink40:"#f362e8",pink50:"#ec3ed7",pink60:"#d40fa9",pink70:"#b0027c",pink80:"#990165",pink90:"#820050",pink100:"#390325",cyan0:"#f4ffff",cyan10:"#c6ffff",cyan20:"#96ffff",cyan30:"#59effc",cyan40:"#1dd7f0",cyan50:"#20b0c7",cyan60:"#1d8fa4",cyan70:"#167286",cyan80:"#0e5a6d",cyan90:"#064658",cyan100:"#103645",green0:"#f8fff4",green10:"#e2fccc",green20:"#e2fccc",green30:"#aed581",green40:"#8eaf65",green50:"#728f4b",green60:"#5a7533",green70:"#476020",green80:"#374e10",green90:"#2b3f05",green100:"#223300",red0:"#fff7f4",red10:"#ffe4db",red20:"#fcc4bb",red30:"#efa299",red40:"#e67e78",red50:"#e35656",red60:"#b83d3c",red70:"#922524",red80:"#6f1110",red90:"#500404",red100:"#330000",gray0:"#ffffff",gray10:"#f4f5f7",gray20:"#dfe1e6",gray30:"#c1c7d0",gray40:"#a8afba",gray50:"#9399a3",gray60:"#777c85",gray70:"#575b61",gray80:"#3c3e42",gray90:"#222426",gray100:"#121315",border:{default:"#dfe1e6"},shadow:{default:"#121315"},text:{base:"#121315",light:"#9399a3",inverted:"#ffffff",link:{default:"#20b0c7",visited:"#1d8fa4"}}},font:{family:{heading:"'Roboto Condensed', sans-serif",text:"'Source Sans Pro', sans-serif",code:"'Source Code Pro', monospace"},lineHeight:{medium:"1rem",large:"1.5rem",xlarge:"2rem",xxlarge:"3rem"},weight:{normal:400,bold:700}},size:{border:{radius:{default:"6px",small:"4px"},width:"1px"},font:{base:"16px",heading:{default:"1.728rem",small:"1.44rem",xsmall:"1rem"},overline:{large:"1.44rem",default:"0.833rem"},body:{default:"1rem"},caption:{default:"0.833rem",large:"1.44rem"},label:{default:"0.833rem",large:"1.44rem"},minorThird10:"6.192rem",minorThird9:"5.16rem",minorThird8:"4.3rem",minorThird7:"3.583rem",minorThird6:"2.986rem",minorThird5:"2.488rem",minorThird4:"2.074rem",minorThird3:"1.728rem",minorThird2:"1.44rem",minorThird1:"1.2rem",minorThird0:"1rem",minorThirdSub1:"0.833rem",minorThirdSub2:"0.694rem",minorThirdSub3:"0.579rem",minorThirdSub4:"0.482rem",minorThirdSub5:"0.402rem",minorThirdSub6:"0.335rem"},spacingXS:"8px",spacingS:"16px",spacingM:"24px",spacingL:"32px",spacingXL:"40px",spacingXXL:"48px",spacing:{main:"24px",section:"32px",header:"24px",article:"24px",paragraph:"16px",line:"8px",scale1:"1px",scale2:"2px",scale4:"4px",scale6:"6px",scale8:"8px",scale16:"16px",scale24:"24px",scale32:"32px",scale40:"40px",scale48:"48px",scale56:"56px",scale64:"64px",scale72:"72px",scale80:"80px",scale88:"88px",scale96:"96px",scale104:"104px",scale112:"112px",scale120:"120px",scale128:"128px",scale160:"160px",scale208:"208px"}}},ne=function(){return ne=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},ne.apply(this,arguments)};function ie(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)r.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(t[o[n]]=e[o[n]])}return t}var ae={styleOverrides:{root:{fontSize:"12px",fontWeight:600,fontFamily:oe.font.family.text,"& .MuiChip-icon":{width:"12px",height:"12px",marginLeft:oe.size.spacing.scale8}},colorDefault:{backgroundColor:oe.color.gray10,color:oe.color.gray60},colorPrimary:{backgroundColor:oe.color.indigo10,color:oe.color.indigo80},colorSecondary:{backgroundColor:oe.color.pink10,color:oe.color.pink80},colorError:{backgroundColor:oe.color.red10,color:oe.color.error},colorInfo:{backgroundColor:oe.color.indigo10,color:oe.color.indigo80},colorSuccess:{backgroundColor:oe.color.green10,color:oe.color.green80}}},le={h1:{fontFamily:oe.font.family.heading,fontSize:oe.size.font.heading.default,fontWeight:oe.font.weight.bold,lineHeight:oe.font.lineHeight.xlarge},h2:{fontFamily:oe.font.family.heading,fontSize:oe.size.font.heading.small,fontWeight:oe.font.weight.bold,lineHeight:oe.font.lineHeight.xlarge},h3:{fontFamily:oe.font.family.heading,fontSize:oe.size.font.heading.xsmall,fontWeight:oe.font.weight.bold,lineHeight:oe.font.lineHeight.large},body1:{fontFamily:oe.font.family.text,fontSize:oe.size.font.body.default,fontWeight:oe.font.weight.normal,lineHeight:oe.font.lineHeight.large},body2:{fontFamily:oe.font.family.text,fontSize:oe.size.font.body.default,fontWeight:oe.font.weight.bold,lineHeight:oe.font.lineHeight.large},caption:{fontFamily:oe.font.family.text,fontSize:oe.size.font.caption.default,fontWeight:oe.font.weight.normal,lineHeight:oe.font.lineHeight.medium},overline:{fontFamily:oe.font.family.heading,fontSize:oe.size.font.overline.default,letterSpacing:"initial",fontWeight:oe.font.weight.bold,color:oe.color.gray60}},ce={small:"".concat(oe.size.spacing.scale4," ").concat(oe.size.spacing.scale8),medium:"".concat(oe.size.spacing.scale8," ").concat(oe.size.spacing.scale16),large:"".concat(oe.size.spacing.scale16," ").concat(oe.size.spacing.scale32)},de={styleOverrides:{root:{textTransform:"none",lineHeight:oe.size.spacing.scale16,fontWeight:oe.font.weight.bold,fontFamily:oe.font.family.text,boxShadow:"none"},contained:{padding:ce.medium,color:oe.color.gray0},outlinedSuccess:{color:oe.color.green60},containedSuccess:{backgroundColor:oe.color.green60},containedSizeSmall:{padding:ce.small},containedSizeLarge:{padding:ce.large},text:{padding:ce.medium},textSizeSmall:{padding:ce.small},textSizeLarge:{padding:ce.large},outlined:{padding:"7px ".concat(oe.size.spacing.scale16)},outlinedSizeSmall:{padding:ce.small},outlinedSizeLarge:{padding:ce.large},sizeSmall:{fontSize:oe.size.font.label.default},sizeLarge:{fontSize:oe.size.font.label.large},startIcon:{"& svg":{fill:"currentColor",width:"12px",height:"12px"}},endIcon:{"& svg":{fill:"currentColor",width:"12px",height:"12px"}}},defaultProps:{disableFocusRipple:!0},MuiIconButton:{root:{"&&:hover":{backgroundColor:"transparent"}}}},se={styleOverrides:{root:{color:oe.color.gray60,backgroundColor:oe.color.background.dark},sizeSmall:{padding:"3px"}}},me={styleOverrides:{root:{fontFamily:oe.font.family.text,fontSize:oe.size.font.label.default,fontWeight:oe.font.weight.bold,width:oe.size.spacing.scale24,height:oe.size.spacing.scale24,"& .MuiSvgIcon-root":{width:oe.size.spacing.scale16}},colorDefault:{backgroundColor:oe.color.background.dark,"& .MuiSvgIcon-root":{color:oe.color.gray60}}}},fe={styleOverrides:{root:{paddingTop:4,paddingBottom:4,color:oe.color.border.default,"& svg":{width:"16px",height:"16px"},"&&:hover":{backgroundColor:"transparent"}},colorPrimary:{"&$checked":{"&&:hover":{backgroundColor:"transparent"}}},colorSecondary:{"&$checked":{color:oe.color.primary},"&$disabled":{opacity:.5}}}},ue={styleOverrides:{root:{paddingTop:4,paddingBottom:4,color:oe.color.border.default,"& svg":{width:"16px",height:"16px"},"&:hover":{background:"none"}}}},pe={styleOverrides:{root:{marginRight:16},colorSecondary:{color:oe.color.gray0,"&$checked":{color:oe.color.gray0,left:2,"&:hover":{backgroundColor:"transparent"}},"&$disabled":{color:oe.color.gray0}},track:{position:"absolute",width:48,height:24,borderRadius:12,opacity:1,left:"calc(50% - 48px/2)",top:"calc(50% - 24px/2)",backgroundColor:oe.color.background.light,border:"2px solid ".concat(oe.color.border.default),boxSizing:"border-box","$checked$checked + &":{opacity:1,backgroundColor:oe.color.primary,border:"2px solid ".concat(oe.color.primary)},"$disabled$disabled + &":{opacity:.5,cursor:"not-allowed"}},thumb:{boxShadow:"none"}}},ge={styleOverrides:{root:{"& .MuiInputAdornment-root":{button:{padding:"0 ".concat(oe.size.spacing.scale8," 0 0"),backgroundColor:"transparent"},svg:{width:oe.size.spacing.scale16,height:oe.size.spacing.scale16}}}}},he={styleOverrides:{input:{"&.Mui-disabled":{backgroundColor:oe.color.background.dark,color:oe.color.text.light}}},defaultProps:{size:"small"}},be={styleOverrides:{outlined:{notchedOutline:{borderColor:oe.color.border.default}},root:{underline:{"&:before":{borderBottom:"none"},"&:after":{borderBottom:"none"},"&:hover":{borderBottom:"none"},"&&:hover::before":{border:"none"}}}}},ye={styleOverrides:{root:{width:"100%","& .MuiFormHelperText-root":{marginTop:oe.size.spacing.scale8,marginLeft:0}}}},ve={styleOverrides:{root:{fontSize:oe.size.font.base,color:oe.color.text.base}}},xe={styleOverrides:{root:{borderBottom:"1px solid ".concat(oe.color.gray20)},indicator:{backgroundColor:oe.color.primary}}},Ee={styleOverrides:{textColorPrimary:{textTransform:"none",minWidth:"auto",fontWeight:700,marginRight:"".concat(oe.size.spacing.scale16),fontFamily:oe.font.family.text,color:oe.color.gray60,padding:"0 0 ".concat(oe.size.spacing.scale16," 0"),"&:hover":{color:oe.color.primary,opacity:1},"&$selected":{color:oe.color.primary},"&:focus":{color:oe.color.primary}}},defaultProps:{disableRipple:!0}},we={styleOverrides:{root:{fontWeight:oe.font.weight.normal}}},ze={styleOverrides:{root:{fontWeight:oe.font.weight.normal},head:{fontWeight:oe.font.weight.bold}}},ke={styleOverrides:{root:{borderTop:"1px solid ".concat(oe.color.border.default)}}},Ce={styleOverrides:{root:{borderBottom:"none","& .MuiIconButton-root":{backgroundColor:"transparent"}},selectLabel:{fontWeight:oe.font.weight.normal,fontSize:oe.size.font.caption.default},displayedRows:{fontWeight:oe.font.weight.normal,fontSize:oe.size.font.caption.default}}},Se=function(e){var r;return(r={})[{error:"&-standardError",success:"&-standardSuccess",info:"&-standardInfo"}[e]]={"& .MuiAlertTitle-root":{color:oe.color["success"===e?"green60":e],fontFamily:oe.font.family.text,lineHeight:oe.font.lineHeight.medium,fontWeight:oe.font.weight.bold,fontSize:oe.size.font.caption.default}},r},Te={fontSize:oe.size.font.caption.default,lineHeight:oe.font.lineHeight.medium,fontWeight:oe.font.weight.normal},Oe={styleOverrides:{root:ne(ne({width:328,borderRadius:6,backgroundColor:oe.color.gray0,boxShadow:"0px 8px 16px rgba(18, 19, 21, 0.08)",color:oe.color.text.light,padding:"".concat(oe.size.spacing.scale8," ").concat(oe.size.spacing.scale16)},Te),{"& p, & span":ne({},Te),"& .MuiAlert-action":{button:{width:oe.size.spacing.scale16,height:oe.size.spacing.scale16,backgroundColor:oe.color.background.light},svg:{width:14,height:14,fill:oe.color.gray60}},"&.MuiAlert":ne(ne(ne({},Se("error")),Se("success")),Se("info"))}),icon:{svg:{width:20,height:20}}}};oe.size.font.body.default,oe.font.family.text,oe.color.gray100,oe.size.font.caption.default;var Me,Pe,Fe,We,Le={styleOverrides:{root:{fontWeight:oe.font.weight.bold,lineHeight:oe.font.lineHeight.medium,fontFamily:oe.font.family.text,fontSize:oe.size.font.caption.default,color:oe.color.text.base,marginBottom:oe.size.spacing.scale8}}},Re=e({typography:ne({},le),palette:{background:{default:"#ffffff"},primary:{main:oe.color.primary},secondary:{main:oe.color.secondary},error:{main:oe.color.error},info:{main:oe.color.info},success:{main:oe.color.success}},components:{MuiButton:de,MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0}},MuiContainer:{styleOverrides:{maxWidthLg:{"@media (min-width: 1280px)":{maxWidth:"1185px"}}}},MuiIconButton:se,MuiChip:ae,MuiInput:be,MuiInputBase:he,MuiFormControl:ye,MuiFormControlLabel:ve,MuiTextField:ge,MuiFormLabel:Le,MuiTabs:xe,MuiTab:Ee,MuiAvatar:me,MuiCheckbox:fe,MuiRadio:ue,MuiSwitch:pe,MuiLink:{styleOverrides:{root:{cursor:"pointer"}}},MuiTable:we,MuiTableCell:ze,MuiTableRow:{styleOverrides:{root:{"&:last-child td":{borderBottom:0}}}},MuiTableFooter:ke,MuiTablePagination:Ce,MuiAlert:Oe,MuiDivider:{styleOverrides:{root:{margin:"16px 0"}}}}}),je=function(e){return B.createElement(B.Fragment,null,B.createElement(r,null),B.createElement(H,{theme:Re},e.children))},Be=A(t)(Fe||(Me=["\n position: absolute;\n width: 100%;\n height: 100%;\n z-index: 2;\n display: flex;\n align-items: center;\n justify-content: center;\n"],Pe=["\n position: absolute;\n width: 100%;\n height: 100%;\n z-index: 2;\n display: flex;\n align-items: center;\n justify-content: center;\n"],Object.defineProperty?Object.defineProperty(Me,"raw",{value:Pe}):Me.raw=Pe,Fe=Me)),Ie=function(e){var r=e.color,t=void 0===r?"primary":r,o=e.variant,n=void 0===o?"contained":o,i=e.size,a=void 0===i?"medium":i,l=e.loading,c=e.children,d=ie(e,["color","variant","size","loading","children"]);return B.createElement(q,ne({size:a,variant:n,color:t,disabled:l},d),B.createElement("span",{style:{opacity:l?0:1}},c),l&&B.createElement(Be,{size:20,color:"inherit"}))},He=function(e){var r=e.children,t=ie(e,["children"]);return B.createElement(Z,ne({},t),r)},Ae=function(e){var r=e.label,t=ie(e,["label"]);return B.createElement(o,ne({size:"small",label:r},t))},qe=function(e){var r=e.icon,t=e.firstName,o=void 0===t?"":t,i=e.lastName,a=void 0===i?"":i,l=ie(e,["icon","firstName","lastName"]),c="".concat(o.substring(0,1)).concat(a.substring(0,1)).toLocaleUpperCase(),d=c?oe.color.secondary:oe.color.background.dark;return B.createElement(n,ne({sx:ne({backgroundColor:d},l.sx)},l),c||r)},Ze={small:6,medium:8,large:12,fluid:12},Ne=function(e){var r=e.component,t=void 0===r?"div":r,o=e.size,n=void 0===o?"large":o,l=e.children,c=ie(e,["component","size","children"]),d="fluid"===n;return B.createElement(i,ne({component:t,disableGutters:d,maxWidth:!d&&"lg",sx:ne({display:"flex",justifyContent:"center"},c.sx)},c),B.createElement(a,{container:!0,justifyContent:"center"},B.createElement(a,{item:!0,md:Ze[n]},l)))},$e=function(e){var r=e.children,t=ie(e,["children"]);return B.createElement(l,ne({},t),r)},De=function(e){var r=ie(e,[]);return B.createElement(c,ne({},r))},Ve=function(e){var r=e.label,t=e.htmlFor,o=e.required,n=void 0===o||o;return B.createElement(d,{component:"label",htmlFor:t},r,!n&&B.createElement(l,{ml:1,component:"span",sx:{fontWeight:oe.font.weight.normal,color:oe.color.text.light}},"(optional)"))},_e=function(e){var r=e.id,t=e.label,o=e.required,n=e.component,i=void 0===n?"div":n,a=e.disabled,l=e.data,c=e.error,d=e.helperText,p=e.sx,g=ie(e,["id","label","required","component","disabled","data","error","helperText","sx"]);return B.createElement(s,{component:i,error:c,disabled:a,sx:p},B.createElement(Ve,{label:t,required:o,htmlFor:r}),B.createElement(m,null,l.map((function(e,t){var o=e.value,n=e.label;return B.createElement(f,{key:t,value:o,label:n||"",control:B.createElement(De,ne({color:"primary",inputProps:{"data-testid":"".concat(r,"-").concat(t)}},g))})}))),c&&B.createElement(u,{error:c},d))},Xe=B.forwardRef((function(e,r){return B.createElement(_e,ne({inputRef:r},e))})),Ge=function(e){return B.createElement(p,ne({},e))},Ke=function(e){var r=e.id,t=e.required,o=e.component,n=void 0===o?"div":o,i=e.disabled,a=e.data,l=e.label,c=e.error,d=e.sx,m=e.helperText,p=e.inputRef,h=ie(e,["id","required","component","disabled","data","label","error","sx","helperText","inputRef"]);return B.createElement(s,{component:n,error:c,disabled:i,sx:d},B.createElement(Ve,{label:l,required:t,htmlFor:r}),B.createElement(g,ne({},h),a.map((function(e,t){var o=e.value,n=e.label,i=e.message;return B.createElement(B.Fragment,null,B.createElement(f,{value:o,key:o,label:n||"",control:B.createElement(Ge,{color:"primary",inputProps:{"data-testid":"".concat(r,"-").concat(t)},inputRef:p})}),i&&B.createElement(He,{variant:"caption",marginLeft:oe.size.spacing.scale24,color:oe.color.text.light,mb:1},i))}))),c&&m&&B.createElement(u,{error:c},m))},Ue=B.forwardRef((function(e,r){return B.createElement(Ke,ne({inputRef:r},e))})),Je=function(e){return B.createElement(h,ne({},e))},Qe=function(e){var r=e.component,t=void 0===r?"div":r,o=e.disabled,n=e.label,i=e.error,a=e.sx,l=ie(e,["component","disabled","label","error","sx"]);return B.createElement(s,{component:t,error:i,disabled:o,sx:ne({mb:2},a)},B.createElement(d,{component:"label"},n),B.createElement(Je,ne({},l)))},Ye=B.forwardRef((function(e,r){return B.createElement(Qe,ne({inputRef:r},e))})),er=function(e){return B.createElement(b,ne({variant:"outlined"},e))},rr=function(e){var r=e.id,t=e.required,o=e.component,n=void 0===o?"div":o,i=e.disabled,a=e.label,l=e.error,c=e.helperText,d=e.sx,m=e.options,f=ie(e,["id","required","component","disabled","label","error","helperText","sx","options"]);return B.createElement(s,{component:n,error:l,disabled:i,sx:d},B.createElement(Ve,{label:a,required:t,htmlFor:r}),B.createElement(er,ne({},f,{error:l,inputProps:{id:r,"data-testid":r}}),m.map((function(e){return B.createElement(y,{key:e.value,value:e.value},e.text)}))),l&&c&&B.createElement(u,{error:l},c))},tr=B.forwardRef((function(e,r){return B.createElement(rr,ne({inputRef:r},e))})),or=function(e){var r=e.type,t=ie(e,["type"]),o=I(!1),n=o[0],i=o[1],a=ne(ne({},t.InputProps),"password"===r&&{endAdornment:B.createElement(N,{position:"end"},B.createElement($,{"aria-label":"toggle password visibility",onClick:function(){return i(!n)},edge:"end"},n?B.createElement(D,null):B.createElement(V,null)))});return B.createElement(v,ne({},t,{type:n?"text":r,InputProps:a}))},nr=function(e){var r=e.id,t=e.component,o=void 0===t?"div":t,n=e.required,i=e.disabled,a=e.label,l=e.error,c=e.helperText,d=e.sx,m=ie(e,["id","component","required","disabled","label","error","helperText","sx"]);return B.createElement(s,{component:o,error:l,disabled:i,sx:d},B.createElement(Ve,{label:a,required:n,htmlFor:r}),B.createElement(or,ne({},m,{id:r,error:l,inputProps:{"data-testid":r},disabled:i,helperText:c})))},ir=B.forwardRef((function(e,r){return B.createElement(nr,ne({inputRef:r},e))}));function ar(){return ar=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ar.apply(this,arguments)}var lr,cr,dr=function(e){return j.createElement("svg",ar({viewBox:"0 0 24 24"},e),We||(We=j.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12.141 4.894H3.576A1.977 1.977 0 0 0 1.6 6.871v14.494c0 1.09.885 1.976 1.976 1.976h14.495a1.977 1.977 0 0 0 1.976-1.976V12.8M17.412 1.6h4.94a.99.99 0 0 1 .99.988V7.53m-10.883 4.952L23.05 1.89"})))};function sr(){return sr=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},sr.apply(this,arguments)}var mr,fr,ur=function(e){return j.createElement("svg",sr({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),lr||(lr=j.createElement("path",{d:"M12 17.998a1.125 1.125 0 1 0 0-2.25 1.125 1.125 0 0 0 0 2.25ZM12 14.248a.75.75 0 0 1-.75-.75v-7.5a.75.75 0 0 1 1.5 0v7.5a.75.75 0 0 1-.75.75Z",fill:"currentColor"})),cr||(cr=j.createElement("path",{d:"M12 23.997a2.546 2.546 0 0 1-1.81-.748L.75 13.81a2.564 2.564 0 0 1 0-3.621L10.19.75a2.542 2.542 0 0 1 1.807-.751c.685 0 1.327.265 1.81.747l9.444 9.443a2.566 2.566 0 0 1 0 3.621l-9.44 9.439a2.55 2.55 0 0 1-1.811.748Zm-.75-1.809c.2.199.466.309.75.309s.55-.11.75-.31l9.44-9.439a1.064 1.064 0 0 0 0-1.501L12.749 1.81c-.01-.009-.024-.025-.033-.035a1.034 1.034 0 0 0-.713-.276c-.288 0-.553.111-.753.311l-9.441 9.44a1.063 1.063 0 0 0 0 1.5l9.441 9.438Z",fill:"currentColor"})))};function pr(){return pr=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},pr.apply(this,arguments)}var gr,hr,br=function(e){return j.createElement("svg",pr({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),mr||(mr=j.createElement("path",{d:"M13.5 17.25A2.252 2.252 0 0 1 11.25 15v-3.75h-.75a.75.75 0 0 1 0-1.5h.75c.827 0 1.5.673 1.5 1.5V15c0 .414.336.75.75.75h.75a.75.75 0 0 1 0 1.5h-.75ZM11.625 8.25a1.125 1.125 0 1 0 0-2.25 1.125 1.125 0 0 0 0 2.25Z",fill:"currentColor"})),fr||(fr=j.createElement("path",{d:"M12 24C5.383 24 0 18.617 0 12S5.383 0 12 0s12 5.383 12 12-5.383 12-12 12Zm0-22.5C6.21 1.5 1.5 6.21 1.5 12S6.21 22.5 12 22.5 22.5 17.79 22.5 12 17.79 1.5 12 1.5Z",fill:"currentColor"})))};function yr(){return yr=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},yr.apply(this,arguments)}var vr=function(e){return j.createElement("svg",yr({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),gr||(gr=j.createElement("path",{d:"M9.325 17.916a1.79 1.79 0 0 1-1.498-.799l-2.44-3.462a.75.75 0 0 1 1.227-.864l2.45 3.477a.306.306 0 0 0 .261.148.294.294 0 0 0 .236-.119l7.852-9.935a.75.75 0 0 1 1.175.93l-7.843 9.923a1.781 1.781 0 0 1-.423.396 1.78 1.78 0 0 1-.997.305Z",fill:"currentColor"})),hr||(hr=j.createElement("path",{d:"M12 23.999c-6.617 0-12-5.383-12-12s5.383-12 12-12 12 5.383 12 12-5.383 12-12 12Zm0-22.5c-5.79 0-10.5 4.71-10.5 10.5s4.71 10.5 10.5 10.5 10.5-4.71 10.5-10.5-4.71-10.5-10.5-10.5Z",fill:"currentColor"})))},xr=function(e){var r,t=e.children,o=e.underline,n=void 0===o?"hover":o,i=e.toParentNavigation,a=ie(e,["children","underline","toParentNavigation"]),l=null===(r=a.href)||void 0===r?void 0:r.startsWith("https"),c={underline:n};return i?B.createElement(x,ne({},c,a,{onClick:function(){return e=i,void window.parent.postMessage({type:"NAVIGATION",content:e},"*");var e}}),t):B.createElement(x,ne({},c,l&&{target:"_blank",rel:"noopener noreferrer"},a),t,l&&B.createElement(E,{component:dr,fontSize:"inherit",sx:{marginLeft:".25em"}}))},Er=function(e){var r=e.children,t=ie(e,["children"]);return B.createElement(w,ne({},t),r)},wr=function(e){var r=e.children,t=ie(e,["children"]);return B.createElement(z,ne({},t),r)},zr=function(e){var r=e.children,t=e.value,o=void 0===t?0:t,n=e.index,i=e.id;return B.createElement($e,{role:"tabpanel",hidden:o!==n,id:i},r)},kr=function(e){var r=e.tabs,t=e.nameSpace,o=e.tabContentProps,n=e.tabsProps,i=I(0),a=i[0],l=i[1],c=t?"".concat(t,"-"):"";return B.createElement(B.Fragment,null,B.createElement(Er,ne({},n,{value:a,onChange:function(e,r){l(r)}}),r.map((function(e,r){return B.createElement(wr,{key:"".concat(c,"tab-").concat(r),label:e.label,"aria-controls":"".concat(c,"panel-").concat(r)})}))),B.createElement($e,ne({},o),r.map((function(e,r){var t="".concat(c,"panel-").concat(r);return B.createElement(zr,{key:t,value:a,index:r,id:t,"aria-labelledby":"".concat(c,"tab-").concat(r)},e.content)}))))},Cr=function(e){var r=e.icon,t=e.title,o=e.subTitle,n=e.action,i=ie(e,["icon","title","subTitle","action"]);return B.createElement(l,ne({p:4,display:"flex",flexDirection:"column",alignItems:"center"},i),B.createElement(E,{component:null!=r?r:_,sx:{marginBottom:oe.size.spacing.scale24,fontSize:oe.size.spacing.scale104,color:oe.color.gray20}}),B.createElement(He,{variant:"h1",component:"span",mb:2},t),B.createElement(He,{variant:"body1",color:oe.color.gray60,mb:3},o),n)},Sr=function(e){var r=e.title,t=e.subtitle,o=e.children,n=e.actions,i=e.open,a=e.maxWidth,c=void 0===a?552:a,d=e.onClose,s=ie(e,["title","subtitle","children","actions","open","maxWidth","onClose"]);return B.createElement(k,ne({open:i,onClose:d,closeAfterTransition:!0,BackdropProps:{timeout:500}},s),B.createElement(C,{in:i},B.createElement(l,{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},B.createElement(S,{sx:{maxWidth:c,outline:"none"}},B.createElement(T,null,B.createElement(l,{display:"flex",justifyContent:"space-between",alignItems:"center"},B.createElement(O,{variant:"h2"},r),d&&B.createElement(M,{onClick:function(e){return d(e,"escapeKeyDown")},sx:{padding:"0"}},B.createElement(X,{sx:{fontSize:"16px"}}))),t&&B.createElement(l,null,B.createElement(O,{variant:"body1",color:"textSecondary"},t)),B.createElement(P,null),o,n&&B.createElement(B.Fragment,null,B.createElement(P,null),B.createElement(l,null,n)))))))},Tr=function(e){var r=e.children,t=ie(e,["children"]);return B.createElement(L,ne({},t,{iconMapping:{info:B.createElement(E,{component:br,sx:{color:oe.color.primary}}),success:B.createElement(E,{component:vr,sx:{color:oe.color.green60}}),error:B.createElement(E,{component:ur,sx:{color:oe.color.error}})}}),r)},Or=function(e){var r=e.type,t=void 0===r?"success":r,o=e.title,n=e.children,i=ie(e,["type","title","children"]);return B.createElement(Tr,ne({severity:t},i),o&&B.createElement(F,null,W(o)),n)},Mr={background:{info:oe.color.indigo10,success:oe.color.green10,error:oe.color.red10},font:{info:oe.color.primary,success:oe.color.green60,error:oe.color.error}},Pr=function(e){var r=e.type,t=void 0===r?"info":r,o=e.variant,n=void 0===o?"stacked":o,i=e.title,a=e.onDismiss,c=e.children,d=e.actionLabel,s=e.actionProps,m=ie(e,["type","variant","title","onDismiss","children","actionLabel","actionProps"]),f=function(e){return{get layout(){var r="stacked"===e;return{margin:{mb:r?2:0,mr:r?0:2},padding:{py:r?1:0},position:{display:r?"block":"flex",justifyContent:r?"initial":"center",alignItems:r?"initial":"center"}}}}}(n).layout;return B.createElement(Tr,ne({},m,{severity:t,sx:ne(ne({},m.sx),{backgroundColor:Mr.background[t],boxShadow:"initial",width:"initial",py:f.padding.py,justifyContent:f.position.justifyContent,".MuiAlert-icon":ne(ne({},f.position),{mr:1,svg:{width:16,height:16}}),".MuiAlert-message":ne({},f.position),".MuiAlertTitle-root":ne({},f.margin),".banner-content":ne(ne({},f.position),{"&__message":ne({},f.margin)})})}),B.createElement(F,null,W(i)),B.createElement(l,{display:"block",className:"banner-content"},B.createElement(l,{sx:{color:Mr.font[t]},className:"banner-content__message"},c),d&&B.createElement(R,ne({},s,{size:"small",variant:"contained",color:t}),d),a&&B.createElement(R,{onClick:a,size:"small",variant:"outlined",sx:{py:"3px",ml:2,backgroundColor:oe.color.gray0,":hover":{backgroundColor:oe.color.gray0}},color:t},"Dismiss")))},Fr=function(e){var r=e.children,t=ie(e,["children"]);return B.createElement(G,ne({},t),r)},Wr=function(e){var r=e.children,t=ie(e,["children"]);return B.createElement(K,ne({},t),r)},Lr=function(e){var r=e.children,t=ie(e,["children"]);return B.createElement(U,ne({},t),r)},Rr=function(e){var r=e.children,t=ie(e,["children"]);return B.createElement(J,ne({},t),r)},jr=function(e){var r=e.children,t=ie(e,["children"]);return B.createElement(Q,ne({},t),r)},Br=function(e){var r=e.children,t=ie(e,["children"]);return B.createElement(Y,ne({},t),r)},Ir=function(e){var r=ie(e,[]);return B.createElement(ee,ne({},r))},Hr=function(e){var r=e.children,t=ie(e,["children"]);return B.createElement(re,ne({},t),r)},Ar=function(e){var r=e.children,t=ie(e,["children"]);return B.createElement(te,ne({},t),r)};export{Or as Alert,qe as Avatar,Pr as Banner,$e as Box,Ie as Button,De as Checkbox,Ae as Chip,Ne as Container,Cr as EmptyState,Xe as FormCheckbox,ir as FormInput,Ue as FormRadio,tr as FormSelect,Ye as FormSwitch,or as Input,xr as Link,Sr as Modal,Ge as Radio,er as Select,Je as Switch,wr as Tab,kr as TabGroup,Fr as Table,Wr as TableBody,Lr as TableCell,Rr as TableContainer,Ar as TableFooter,jr as TableHead,Ir as TablePagination,Br as TableRow,Hr as TableSortLabel,Er as Tabs,He as Typography,je as UpComponentsProvider,Re as theme,oe as tokens};
|
|
1
|
+
import{createTheme as e,CssBaseline as r,CircularProgress as t,Chip as n,Avatar as o,Container as i,Grid as a,Box as l,Checkbox as c,FormLabel as d,FormControl as s,FormGroup as m,FormControlLabel as f,FormHelperText as u,Radio as p,RadioGroup as g,Switch as h,Select as b,MenuItem as y,TextField as v,Link as x,SvgIcon as E,Tabs as w,Tab as k,Modal as z,IconButton as C,Card as S,CardContent as T,Typography as O,Divider as M,Fade as R,AlertTitle as P,capitalize as F,Alert as L,Button as W,Tooltip as j,Popover as B}from"@mui/material";export*from"@mui/material";import*as A from"react";import H,{useState as I,useMemo as q}from"react";import{ThemeProvider as Z,styled as N}from"@mui/material/styles";import $ from"@mui/material/Button";import V from"@mui/material/Typography";import D from"@mui/material/InputAdornment";import _ from"@mui/material/IconButton";import X from"@mui/icons-material/VisibilityOutlined";import G from"@mui/icons-material/VisibilityOffOutlined";import K from"@mui/icons-material/InfoOutlined";import Q from"@mui/icons-material/QuestionMark";import U from"react-markdown";import J from"@mui/material/Table";import Y from"@mui/material/TableBody";import ee from"@mui/material/TableCell";import re from"@mui/material/TableContainer";import te from"@mui/material/TableHead";import ne from"@mui/material/TableRow";import oe from"@mui/material/TablePagination";import ie from"@mui/material/TableSortLabel";import ae from"@mui/material/TableFooter";var le={animation:{speed:{normal:"0.5s",fast:"0.08s",slow:"1s"}},color:{background:{light:"#f4f5f7",dark:"#dfe1e6",indigo:"#262a59"},primary:"#262a59",secondary:"#d40fa9",info:"#262a59",error:"#e35656",success:"#aed581",indigo0:"#f4f4f6",indigo10:"#e9e9ee",indigo20:"#bdbfcd",indigo30:"#a8aabd",indigo40:"#9294ac",indigo50:"#7d7f9b",indigo60:"#67698a",indigo70:"#51557a",indigo80:"#3b3f69",indigo90:"#262a59",indigo100:"#161833",pink0:"#fff3ff",pink10:"#fedafd",pink20:"#fdc0fb",pink30:"#f98ef3",pink40:"#f362e8",pink50:"#ec3ed7",pink60:"#d40fa9",pink70:"#b0027c",pink80:"#990165",pink90:"#820050",pink100:"#390325",cyan0:"#f4ffff",cyan10:"#c6ffff",cyan20:"#96ffff",cyan30:"#59effc",cyan40:"#1dd7f0",cyan50:"#20b0c7",cyan60:"#1d8fa4",cyan70:"#167286",cyan80:"#0e5a6d",cyan90:"#064658",cyan100:"#103645",green0:"#f8fff4",green10:"#e2fccc",green20:"#e2fccc",green30:"#aed581",green40:"#8eaf65",green50:"#728f4b",green60:"#5a7533",green70:"#476020",green80:"#374e10",green90:"#2b3f05",green100:"#223300",red0:"#fff7f4",red10:"#ffe4db",red20:"#fcc4bb",red30:"#efa299",red40:"#e67e78",red50:"#e35656",red60:"#b83d3c",red70:"#922524",red80:"#6f1110",red90:"#500404",red100:"#330000",gray0:"#ffffff",gray10:"#f4f5f7",gray20:"#dfe1e6",gray30:"#c1c7d0",gray40:"#a8afba",gray50:"#9399a3",gray60:"#777c85",gray70:"#575b61",gray80:"#3c3e42",gray90:"#222426",gray100:"#121315",border:{default:"#dfe1e6"},shadow:{default:"#121315"},text:{base:"#121315",light:"#9399a3",inverted:"#ffffff",link:{default:"#20b0c7",visited:"#1d8fa4"}}},font:{family:{heading:"'Roboto Condensed', sans-serif",text:"'Source Sans Pro', sans-serif",code:"'Source Code Pro', monospace"},lineHeight:{medium:"1rem",large:"1.5rem",xlarge:"2rem",xxlarge:"3rem"},weight:{normal:400,bold:700}},size:{border:{radius:{default:"6px",small:"4px"},width:"1px"},font:{base:"16px",heading:{default:"1.728rem",small:"1.44rem",xsmall:"1rem"},overline:{large:"1.44rem",default:"0.833rem"},body:{default:"1rem"},caption:{default:"0.833rem",large:"1.44rem"},label:{default:"0.833rem",large:"1.44rem"},minorThird10:"6.192rem",minorThird9:"5.16rem",minorThird8:"4.3rem",minorThird7:"3.583rem",minorThird6:"2.986rem",minorThird5:"2.488rem",minorThird4:"2.074rem",minorThird3:"1.728rem",minorThird2:"1.44rem",minorThird1:"1.2rem",minorThird0:"1rem",minorThirdSub1:"0.833rem",minorThirdSub2:"0.694rem",minorThirdSub3:"0.579rem",minorThirdSub4:"0.482rem",minorThirdSub5:"0.402rem",minorThirdSub6:"0.335rem"},spacingXS:"8px",spacingS:"16px",spacingM:"24px",spacingL:"32px",spacingXL:"40px",spacingXXL:"48px",spacing:{main:"24px",section:"32px",header:"24px",article:"24px",paragraph:"16px",line:"8px",scale1:"1px",scale2:"2px",scale4:"4px",scale6:"6px",scale8:"8px",scale16:"16px",scale24:"24px",scale32:"32px",scale40:"40px",scale48:"48px",scale56:"56px",scale64:"64px",scale72:"72px",scale80:"80px",scale88:"88px",scale96:"96px",scale104:"104px",scale112:"112px",scale120:"120px",scale128:"128px",scale160:"160px",scale208:"208px"}}},ce=function(){return ce=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},ce.apply(this,arguments)};function de(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t}var se={styleOverrides:{root:{fontSize:"12px",fontWeight:600,fontFamily:le.font.family.text,"& .MuiChip-icon":{width:"12px",height:"12px",marginLeft:le.size.spacing.scale8}},colorDefault:{backgroundColor:le.color.gray10,color:le.color.gray60},colorPrimary:{backgroundColor:le.color.indigo10,color:le.color.indigo80},colorSecondary:{backgroundColor:le.color.pink10,color:le.color.pink80},colorError:{backgroundColor:le.color.red10,color:le.color.error},colorInfo:{backgroundColor:le.color.indigo10,color:le.color.indigo80},colorSuccess:{backgroundColor:le.color.green10,color:le.color.green80}}},me={h1:{fontFamily:le.font.family.heading,fontSize:le.size.font.heading.default,fontWeight:le.font.weight.bold,lineHeight:le.font.lineHeight.xlarge},h2:{fontFamily:le.font.family.heading,fontSize:le.size.font.heading.small,fontWeight:le.font.weight.bold,lineHeight:le.font.lineHeight.xlarge},h3:{fontFamily:le.font.family.heading,fontSize:le.size.font.heading.xsmall,fontWeight:le.font.weight.bold,lineHeight:le.font.lineHeight.large},body1:{fontFamily:le.font.family.text,fontSize:le.size.font.body.default,fontWeight:le.font.weight.normal,lineHeight:le.font.lineHeight.large},body2:{fontFamily:le.font.family.text,fontSize:le.size.font.body.default,fontWeight:le.font.weight.bold,lineHeight:le.font.lineHeight.large},caption:{fontFamily:le.font.family.text,fontSize:le.size.font.caption.default,fontWeight:le.font.weight.normal,lineHeight:le.font.lineHeight.medium},overline:{fontFamily:le.font.family.heading,fontSize:le.size.font.overline.default,letterSpacing:"initial",fontWeight:le.font.weight.bold,color:le.color.gray60}},fe={small:"".concat(le.size.spacing.scale4," ").concat(le.size.spacing.scale8),medium:"".concat(le.size.spacing.scale8," ").concat(le.size.spacing.scale16),large:"".concat(le.size.spacing.scale16," ").concat(le.size.spacing.scale32)},ue={styleOverrides:{root:{textTransform:"none",lineHeight:le.size.spacing.scale16,fontWeight:le.font.weight.bold,fontFamily:le.font.family.text,boxShadow:"none"},contained:{padding:fe.medium,color:le.color.gray0},outlinedSuccess:{color:le.color.green60},containedSuccess:{backgroundColor:le.color.green60},containedSizeSmall:{padding:fe.small},containedSizeLarge:{padding:fe.large},text:{padding:fe.medium},textSizeSmall:{padding:fe.small},textSizeLarge:{padding:fe.large},outlined:{padding:"7px ".concat(le.size.spacing.scale16)},outlinedSizeSmall:{padding:fe.small},outlinedSizeLarge:{padding:fe.large},sizeSmall:{fontSize:le.size.font.label.default},sizeLarge:{fontSize:le.size.font.label.large},startIcon:{"& svg":{fill:"currentColor",width:"12px",height:"12px"}},endIcon:{"& svg":{fill:"currentColor",width:"12px",height:"12px"}}},defaultProps:{disableFocusRipple:!0}},pe={styleOverrides:{root:{fontFamily:le.font.family.text,fontSize:le.size.font.label.default,fontWeight:le.font.weight.bold,width:le.size.spacing.scale24,height:le.size.spacing.scale24,"& .MuiSvgIcon-root":{width:le.size.spacing.scale16}},colorDefault:{backgroundColor:le.color.background.dark,"& .MuiSvgIcon-root":{color:le.color.gray60}}}},ge={styleOverrides:{root:{paddingTop:4,paddingBottom:4,color:le.color.border.default,"& svg":{width:"16px",height:"16px"},"&&:hover":{backgroundColor:"transparent"}},colorPrimary:{"&$checked":{"&&:hover":{backgroundColor:"transparent"}}},colorSecondary:{"&$checked":{color:le.color.primary},"&$disabled":{opacity:.5}}}},he={styleOverrides:{root:{paddingTop:4,paddingBottom:4,color:le.color.border.default,"& svg":{width:"16px",height:"16px"},"&:hover":{background:"none"}}}},be={styleOverrides:{root:{marginRight:16},colorSecondary:{color:le.color.gray0,"&$checked":{color:le.color.gray0,left:2,"&:hover":{backgroundColor:"transparent"}},"&$disabled":{color:le.color.gray0}},track:{position:"absolute",width:48,height:24,borderRadius:12,opacity:1,left:"calc(50% - 48px/2)",top:"calc(50% - 24px/2)",backgroundColor:le.color.background.light,border:"2px solid ".concat(le.color.border.default),boxSizing:"border-box","$checked$checked + &":{opacity:1,backgroundColor:le.color.primary,border:"2px solid ".concat(le.color.primary)},"$disabled$disabled + &":{opacity:.5,cursor:"not-allowed"}},thumb:{boxShadow:"none"}}},ye={styleOverrides:{root:{"& .MuiInputAdornment-root":{button:{padding:"0 ".concat(le.size.spacing.scale8," 0 0"),backgroundColor:"transparent"},svg:{width:le.size.spacing.scale16,height:le.size.spacing.scale16}}}}},ve={styleOverrides:{input:{"&.Mui-disabled":{backgroundColor:le.color.background.dark,color:le.color.text.light}}},defaultProps:{size:"small"}},xe={styleOverrides:{outlined:{notchedOutline:{borderColor:le.color.border.default}},root:{underline:{"&:before":{borderBottom:"none"},"&:after":{borderBottom:"none"},"&:hover":{borderBottom:"none"},"&&:hover::before":{border:"none"}}}}},Ee={styleOverrides:{root:{width:"100%","& .MuiFormHelperText-root":{marginTop:le.size.spacing.scale8,marginLeft:0}}}},we={styleOverrides:{root:{fontSize:le.size.font.base,color:le.color.text.base}}},ke={styleOverrides:{root:{borderBottom:"1px solid ".concat(le.color.gray20)},indicator:{backgroundColor:le.color.primary}}},ze={styleOverrides:{textColorPrimary:{textTransform:"none",minWidth:"auto",fontWeight:700,marginRight:"".concat(le.size.spacing.scale16),fontFamily:le.font.family.text,color:le.color.gray60,padding:"0 0 ".concat(le.size.spacing.scale16," 0"),"&:hover":{color:le.color.primary,opacity:1},"&$selected":{color:le.color.primary},"&:focus":{color:le.color.primary}}},defaultProps:{disableRipple:!0}},Ce={styleOverrides:{root:{fontWeight:le.font.weight.normal}}},Se={styleOverrides:{root:{fontWeight:le.font.weight.normal},head:{fontWeight:le.font.weight.bold}}},Te={styleOverrides:{root:{borderTop:"1px solid ".concat(le.color.border.default)}}},Oe={styleOverrides:{root:{borderBottom:"none","& .MuiIconButton-root":{backgroundColor:"transparent"}},selectLabel:{fontWeight:le.font.weight.normal,fontSize:le.size.font.caption.default},displayedRows:{fontWeight:le.font.weight.normal,fontSize:le.size.font.caption.default}}},Me=function(e){var r;return(r={})[{error:"&-standardError",success:"&-standardSuccess",info:"&-standardInfo"}[e]]={"& .MuiAlertTitle-root":{color:le.color["success"===e?"green60":e],fontFamily:le.font.family.text,lineHeight:le.font.lineHeight.medium,fontWeight:le.font.weight.bold,fontSize:le.size.font.caption.default}},r},Re={fontSize:le.size.font.caption.default,lineHeight:le.font.lineHeight.medium,fontWeight:le.font.weight.normal},Pe={styleOverrides:{root:ce(ce({width:328,borderRadius:6,backgroundColor:le.color.gray0,boxShadow:"0px 8px 16px rgba(18, 19, 21, 0.08)",color:le.color.text.light,padding:"".concat(le.size.spacing.scale8," ").concat(le.size.spacing.scale16)},Re),{"& p, & span":ce({},Re),"& .MuiAlert-action":{button:{width:le.size.spacing.scale16,height:le.size.spacing.scale16,backgroundColor:le.color.background.light},svg:{width:14,height:14,fill:le.color.gray60}},"&.MuiAlert":ce(ce(ce({},Me("error")),Me("success")),Me("info"))}),icon:{svg:{width:20,height:20}}}};le.size.font.body.default,le.font.family.text,le.color.gray100,le.size.font.caption.default;var Fe,Le,We,je,Be={styleOverrides:{root:{fontWeight:le.font.weight.bold,lineHeight:le.font.lineHeight.medium,fontFamily:le.font.family.text,fontSize:le.size.font.caption.default,color:le.color.text.base,marginBottom:le.size.spacing.scale8}}},Ae=e({typography:ce({},me),palette:{background:{default:"#ffffff"},primary:{main:le.color.primary},secondary:{main:le.color.secondary},error:{main:le.color.error},info:{main:le.color.info},success:{main:le.color.success}},components:{MuiButton:ue,MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0}},MuiContainer:{styleOverrides:{maxWidthLg:{"@media (min-width: 1280px)":{maxWidth:"1185px"}}}},MuiChip:se,MuiInput:xe,MuiInputBase:ve,MuiFormControl:Ee,MuiFormControlLabel:we,MuiTextField:ye,MuiFormLabel:Be,MuiTabs:ke,MuiTab:ze,MuiAvatar:pe,MuiCheckbox:ge,MuiRadio:he,MuiSwitch:be,MuiLink:{styleOverrides:{root:{cursor:"pointer"}}},MuiTable:Ce,MuiTableCell:Se,MuiTableRow:{styleOverrides:{root:{"&:last-child td":{borderBottom:0}}}},MuiTableFooter:Te,MuiTablePagination:Oe,MuiAlert:Pe,MuiDivider:{styleOverrides:{root:{margin:"16px 0"}}}}}),He=function(e){return H.createElement(H.Fragment,null,H.createElement(r,null),H.createElement(Z,{theme:Ae},e.children))},Ie=N(t)(We||(Fe=["\n position: absolute;\n width: 100%;\n height: 100%;\n z-index: 2;\n display: flex;\n align-items: center;\n justify-content: center;\n"],Le=["\n position: absolute;\n width: 100%;\n height: 100%;\n z-index: 2;\n display: flex;\n align-items: center;\n justify-content: center;\n"],Object.defineProperty?Object.defineProperty(Fe,"raw",{value:Le}):Fe.raw=Le,We=Fe)),qe=function(e){var r=e.color,t=void 0===r?"primary":r,n=e.variant,o=void 0===n?"contained":n,i=e.size,a=void 0===i?"medium":i,l=e.loading,c=e.children,d=e.innerRef,s=de(e,["color","variant","size","loading","children","innerRef"]);return H.createElement($,ce({size:a,variant:o,color:t,disabled:l},s,{ref:d}),H.createElement("span",{style:{opacity:l?0:1}},c),l&&H.createElement(Ie,{size:20,color:"inherit"}))},Ze=H.forwardRef((function(e,r){return H.createElement(qe,ce({},e,{innerRef:r}))})),Ne=function(e){var r=e.children,t=de(e,["children"]);return H.createElement(V,ce({},t),r)},$e=function(e){var r=e.label,t=de(e,["label"]);return H.createElement(n,ce({size:"small",label:r},t))},Ve=function(e){var r=e.icon,t=e.firstName,n=void 0===t?"":t,i=e.lastName,a=void 0===i?"":i,l=e.sx,c=e.innerRef,d=de(e,["icon","firstName","lastName","sx","innerRef"]),s="".concat(n.substring(0,1)).concat(a.substring(0,1)).toLocaleUpperCase(),m=s?le.color.secondary:le.color.background.dark;return H.createElement(o,ce({sx:ce(ce({},l),{backgroundColor:m}),ref:c},d),s||r)},De=H.forwardRef((function(e,r){return H.createElement(Ve,ce({},e,{innerRef:r}))})),_e={small:6,medium:8,large:12,fluid:12},Xe=function(e){var r=e.component,t=void 0===r?"div":r,n=e.size,o=void 0===n?"large":n,l=e.children,c=de(e,["component","size","children"]),d="fluid"===o;return H.createElement(i,ce({component:t,disableGutters:d,maxWidth:!d&&"lg",sx:ce({display:"flex",justifyContent:"center"},c.sx)},c),H.createElement(a,{container:!0,justifyContent:"center"},H.createElement(a,{item:!0,md:_e[o]},l)))},Ge=function(e){var r=e.children,t=e.ref,n=de(e,["children","ref"]);return H.createElement(l,ce({},n,{ref:t}),r)},Ke=H.forwardRef((function(e,r){return H.createElement(Ge,ce({},e,{ref:r}))})),Qe=function(e){var r=de(e,[]);return H.createElement(c,ce({},r))},Ue=function(e){var r=e.label,t=e.htmlFor,n=e.required,o=void 0===n||n;return H.createElement(d,{component:"label",htmlFor:t},r,!o&&H.createElement(l,{ml:1,component:"span",sx:{fontWeight:le.font.weight.normal,color:le.color.text.light}},"(optional)"))},Je=function(e){var r=e.id,t=e.label,n=e.required,o=e.component,i=void 0===o?"div":o,a=e.disabled,l=e.data,c=e.error,d=e.helperText,p=e.sx,g=de(e,["id","label","required","component","disabled","data","error","helperText","sx"]);return H.createElement(s,{component:i,error:c,disabled:a,sx:p},H.createElement(Ue,{label:t,required:n,htmlFor:r}),H.createElement(m,null,l.map((function(e,t){var n=e.value,o=e.label;return H.createElement(f,{key:t,value:n,label:o||"",control:H.createElement(Qe,ce({color:"primary",inputProps:{"data-testid":"".concat(r,"-").concat(t)}},g))})}))),c&&H.createElement(u,{error:c},d))},Ye=H.forwardRef((function(e,r){return H.createElement(Je,ce({inputRef:r},e))})),er=function(e){return H.createElement(p,ce({},e))},rr=function(e){var r=e.id,t=e.required,n=e.component,o=void 0===n?"div":n,i=e.disabled,a=e.data,l=e.label,c=e.error,d=e.sx,m=e.helperText,p=e.inputRef,h=de(e,["id","required","component","disabled","data","label","error","sx","helperText","inputRef"]);return H.createElement(s,{component:o,error:c,disabled:i,sx:d},H.createElement(Ue,{label:l,required:t,htmlFor:r}),H.createElement(g,ce({},h),a.map((function(e,t){var n=e.value,o=e.label,i=e.message;return H.createElement(H.Fragment,null,H.createElement(f,{value:n,key:n,label:o||"",control:H.createElement(er,{color:"primary",inputProps:{"data-testid":"".concat(r,"-").concat(t)},inputRef:p})}),i&&H.createElement(Ne,{variant:"caption",marginLeft:le.size.spacing.scale24,color:le.color.text.light,mb:1},i))}))),c&&m&&H.createElement(u,{error:c},m))},tr=H.forwardRef((function(e,r){return H.createElement(rr,ce({inputRef:r},e))})),nr=function(e){return H.createElement(h,ce({},e))},or=function(e){var r=e.component,t=void 0===r?"div":r,n=e.disabled,o=e.label,i=e.error,a=e.sx,l=de(e,["component","disabled","label","error","sx"]);return H.createElement(s,{component:t,error:i,disabled:n,sx:ce({mb:2},a)},H.createElement(d,{component:"label"},o),H.createElement(nr,ce({},l)))},ir=H.forwardRef((function(e,r){return H.createElement(or,ce({inputRef:r},e))})),ar=function(e){return H.createElement(b,ce({variant:"outlined"},e))},lr=function(e){var r=e.id,t=e.required,n=e.component,o=void 0===n?"div":n,i=e.disabled,a=e.label,l=e.error,c=e.helperText,d=e.sx,m=e.options,f=de(e,["id","required","component","disabled","label","error","helperText","sx","options"]);return H.createElement(s,{component:o,error:l,disabled:i,sx:d},H.createElement(Ue,{label:a,required:t,htmlFor:r}),H.createElement(ar,ce({},f,{error:l,inputProps:{id:r,"data-testid":r}}),m.map((function(e){return H.createElement(y,{key:e.value,value:e.value},e.text)}))),l&&c&&H.createElement(u,{error:l},c))},cr=H.forwardRef((function(e,r){return H.createElement(lr,ce({inputRef:r},e))})),dr=function(e){var r=e.type,t=de(e,["type"]),n=I(!1),o=n[0],i=n[1],a=ce(ce({},t.InputProps),"password"===r&&{endAdornment:H.createElement(D,{position:"end"},H.createElement(_,{"aria-label":"toggle password visibility",onClick:function(){return i(!o)},edge:"end"},o?H.createElement(X,null):H.createElement(G,null)))});return H.createElement(v,ce({},t,{type:o?"text":r,InputProps:a}))},sr=function(e){var r=e.id,t=e.component,n=void 0===t?"div":t,o=e.required,i=e.disabled,a=e.label,l=e.error,c=e.helperText,d=e.sx,m=de(e,["id","component","required","disabled","label","error","helperText","sx"]);return H.createElement(s,{component:n,error:l,disabled:i,sx:d},H.createElement(Ue,{label:a,required:o,htmlFor:r}),H.createElement(dr,ce({},m,{id:r,error:l,inputProps:{"data-testid":r},disabled:i,helperText:c})))},mr=H.forwardRef((function(e,r){return H.createElement(sr,ce({inputRef:r},e))}));function fr(){return fr=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},fr.apply(this,arguments)}var ur,pr,gr=function(e){return A.createElement("svg",fr({viewBox:"0 0 24 24"},e),je||(je=A.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12.141 4.894H3.576A1.977 1.977 0 0 0 1.6 6.871v14.494c0 1.09.885 1.976 1.976 1.976h14.495a1.977 1.977 0 0 0 1.976-1.976V12.8M17.412 1.6h4.94a.99.99 0 0 1 .99.988V7.53m-10.883 4.952L23.05 1.89"})))};function hr(){return hr=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},hr.apply(this,arguments)}var br,yr,vr=function(e){return A.createElement("svg",hr({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),ur||(ur=A.createElement("path",{d:"M12 17.998a1.125 1.125 0 1 0 0-2.25 1.125 1.125 0 0 0 0 2.25ZM12 14.248a.75.75 0 0 1-.75-.75v-7.5a.75.75 0 0 1 1.5 0v7.5a.75.75 0 0 1-.75.75Z",fill:"currentColor"})),pr||(pr=A.createElement("path",{d:"M12 23.997a2.546 2.546 0 0 1-1.81-.748L.75 13.81a2.564 2.564 0 0 1 0-3.621L10.19.75a2.542 2.542 0 0 1 1.807-.751c.685 0 1.327.265 1.81.747l9.444 9.443a2.566 2.566 0 0 1 0 3.621l-9.44 9.439a2.55 2.55 0 0 1-1.811.748Zm-.75-1.809c.2.199.466.309.75.309s.55-.11.75-.31l9.44-9.439a1.064 1.064 0 0 0 0-1.501L12.749 1.81c-.01-.009-.024-.025-.033-.035a1.034 1.034 0 0 0-.713-.276c-.288 0-.553.111-.753.311l-9.441 9.44a1.063 1.063 0 0 0 0 1.5l9.441 9.438Z",fill:"currentColor"})))};function xr(){return xr=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},xr.apply(this,arguments)}var Er,wr,kr=function(e){return A.createElement("svg",xr({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),br||(br=A.createElement("path",{d:"M13.5 17.25A2.252 2.252 0 0 1 11.25 15v-3.75h-.75a.75.75 0 0 1 0-1.5h.75c.827 0 1.5.673 1.5 1.5V15c0 .414.336.75.75.75h.75a.75.75 0 0 1 0 1.5h-.75ZM11.625 8.25a1.125 1.125 0 1 0 0-2.25 1.125 1.125 0 0 0 0 2.25Z",fill:"currentColor"})),yr||(yr=A.createElement("path",{d:"M12 24C5.383 24 0 18.617 0 12S5.383 0 12 0s12 5.383 12 12-5.383 12-12 12Zm0-22.5C6.21 1.5 1.5 6.21 1.5 12S6.21 22.5 12 22.5 22.5 17.79 22.5 12 17.79 1.5 12 1.5Z",fill:"currentColor"})))};function zr(){return zr=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},zr.apply(this,arguments)}var Cr,Sr=function(e){return A.createElement("svg",zr({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Er||(Er=A.createElement("path",{d:"M9.325 17.916a1.79 1.79 0 0 1-1.498-.799l-2.44-3.462a.75.75 0 0 1 1.227-.864l2.45 3.477a.306.306 0 0 0 .261.148.294.294 0 0 0 .236-.119l7.852-9.935a.75.75 0 0 1 1.175.93l-7.843 9.923a1.781 1.781 0 0 1-.423.396 1.78 1.78 0 0 1-.997.305Z",fill:"currentColor"})),wr||(wr=A.createElement("path",{d:"M12 23.999c-6.617 0-12-5.383-12-12s5.383-12 12-12 12 5.383 12 12-5.383 12-12 12Zm0-22.5c-5.79 0-10.5 4.71-10.5 10.5s4.71 10.5 10.5 10.5 10.5-4.71 10.5-10.5-4.71-10.5-10.5-10.5Z",fill:"currentColor"})))};function Tr(){return Tr=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Tr.apply(this,arguments)}var Or=function(e){return A.createElement("svg",Tr({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Cr||(Cr=A.createElement("path",{d:"M23.25 23.999a.743.743 0 0 1-.53-.22L12 13.06 1.28 23.779a.744.744 0 0 1-1.06 0 .752.752 0 0 1 0-1.061l10.72-10.72L.22 1.279A.743.743 0 0 1 0 .749c0-.2.078-.389.22-.53a.743.743 0 0 1 .53-.22c.2 0 .389.078.53.22L12 10.938 22.72.218a.744.744 0 0 1 1.06 0 .747.747 0 0 1 0 1.061L13.06 12l10.72 10.72a.752.752 0 0 1 0 1.061.746.746 0 0 1-.53.219Z"})))},Mr=function(e){var r,t=e.children,n=e.underline,o=void 0===n?"hover":n,i=e.toParentNavigation,a=de(e,["children","underline","toParentNavigation"]),l=null===(r=a.href)||void 0===r?void 0:r.startsWith("https"),c={underline:o};return i?H.createElement(x,ce({},c,a,{onClick:function(){return e=i,void window.parent.postMessage({type:"NAVIGATION",content:e},"*");var e}}),t):H.createElement(x,ce({},c,l&&{target:"_blank",rel:"noopener noreferrer"},a),t,l&&H.createElement(E,{component:gr,fontSize:"inherit",sx:{marginLeft:".25em"}}))},Rr=function(e){var r=e.children,t=de(e,["children"]);return H.createElement(w,ce({},t),r)},Pr=function(e){var r=e.children,t=de(e,["children"]);return H.createElement(k,ce({},t),r)},Fr=function(e){var r=e.children,t=e.value,n=void 0===t?0:t,o=e.index,i=e.id;return H.createElement(Ke,{role:"tabpanel",hidden:n!==o,id:i},r)},Lr=function(e){var r=e.tabs,t=e.nameSpace,n=e.tabContentProps,o=e.tabsProps,i=I(0),a=i[0],l=i[1],c=t?"".concat(t,"-"):"";return H.createElement(H.Fragment,null,H.createElement(Rr,ce({},o,{value:a,onChange:function(e,r){l(r)}}),r.map((function(e,r){return H.createElement(Pr,{key:"".concat(c,"tab-").concat(r),label:e.label,"aria-controls":"".concat(c,"panel-").concat(r)})}))),H.createElement(Ke,ce({},n),r.map((function(e,r){var t="".concat(c,"panel-").concat(r);return H.createElement(Fr,{key:t,value:a,index:r,id:t,"aria-labelledby":"".concat(c,"tab-").concat(r)},e.content)}))))},Wr=function(e){var r=e.icon,t=e.title,n=e.subTitle,o=e.action,i=de(e,["icon","title","subTitle","action"]);return H.createElement(l,ce({p:4,display:"flex",flexDirection:"column",alignItems:"center"},i),H.createElement(E,{component:null!=r?r:K,sx:{marginBottom:le.size.spacing.scale24,fontSize:le.size.spacing.scale104,color:le.color.gray20}}),H.createElement(Ne,{variant:"h1",component:"span",mb:2},t),H.createElement(Ne,{variant:"body1",color:le.color.gray60,mb:3},n),o)},jr=function(e){var r=e.children,t=de(e,["children"]);return H.createElement(z,ce({},t),r)},Br=function(e){var r=e.size,t=void 0===r?"medium":r,n=e.removePadding,o=void 0!==n&&n,i=e.children,a=de(e,["size","removePadding","children"]),l="medium"===t?"16px":"12px",c="medium"===t?"10px":"6px";return H.createElement(C,ce({sx:{color:le.color.gray60,backgroundColor:le.color.background.dark,height:l,width:l,padding:o?0:"3px",svg:{width:o?l:c,height:o?l:c}}},a),i)},Ar=function(e){var r=e.title,t=e.titleVariant,n=void 0===t?"h2":t,o=e.subtitle,i=e.children,a=e.actions,c=e.headerAction,d=e.innerRef,s=de(e,["title","titleVariant","subtitle","children","actions","headerAction","innerRef"]);return H.createElement(S,ce({},s,{ref:d}),H.createElement(T,{sx:{"&:last-child":{pb:2}}},H.createElement(l,{display:"flex",justifyContent:"space-between",alignItems:"center"},H.createElement(O,{variant:n},r),c),o&&H.createElement(l,null,H.createElement(O,{variant:"body1",color:"textSecondary"},o)),H.createElement(M,null),i,a&&H.createElement(H.Fragment,null,H.createElement(M,null),H.createElement(l,null,a))))},Hr=H.forwardRef((function(e,r){return H.createElement(Ar,ce({},e,{innerRef:r}))})),Ir=function(e){var r=e.title,t=e.subtitle,n=e.children,o=e.actions,i=e.open,a=e.maxWidth,l=void 0===a?552:a,c=e.onClose,d=de(e,["title","subtitle","children","actions","open","maxWidth","onClose"]);return H.createElement(jr,ce({open:i,onClose:c,closeAfterTransition:!0,BackdropProps:{timeout:500}},d),H.createElement(R,{in:i},H.createElement(Hr,{title:r,subtitle:t,actions:o,headerAction:c&&H.createElement(Br,{onClick:function(e){return c(e,"escapeKeyDown")}},H.createElement(Or,null)),sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",maxWidth:l}},n)))},qr=function(e){var r=e.children,t=de(e,["children"]);return H.createElement(L,ce({},t,{iconMapping:{info:H.createElement(E,{component:kr,sx:{color:le.color.primary}}),success:H.createElement(E,{component:Sr,sx:{color:le.color.green60}}),error:H.createElement(E,{component:vr,sx:{color:le.color.error}})}}),r)},Zr=function(e){var r=e.type,t=void 0===r?"success":r,n=e.title,o=e.children,i=de(e,["type","title","children"]);return H.createElement(qr,ce({severity:t},i),n&&H.createElement(P,null,F(n)),o)},Nr={background:{info:le.color.indigo10,success:le.color.green10,error:le.color.red10},font:{info:le.color.primary,success:le.color.green60,error:le.color.error}},$r=function(e){var r=e.type,t=void 0===r?"info":r,n=e.variant,o=void 0===n?"stacked":n,i=e.title,a=e.onDismiss,c=e.children,d=e.actionLabel,s=e.actionProps,m=de(e,["type","variant","title","onDismiss","children","actionLabel","actionProps"]),f=function(e){return{get layout(){var r="stacked"===e;return{margin:{mb:r?2:0,mr:r?0:2},padding:{py:r?1:0},position:{display:r?"block":"flex",justifyContent:r?"initial":"center",alignItems:r?"initial":"center"}}}}}(o).layout;return H.createElement(qr,ce({},m,{severity:t,sx:ce(ce({},m.sx),{backgroundColor:Nr.background[t],boxShadow:"initial",width:"initial",py:f.padding.py,justifyContent:f.position.justifyContent,".MuiAlert-icon":ce(ce({},f.position),{mr:1,svg:{width:16,height:16}}),".MuiAlert-message":ce({},f.position),".MuiAlertTitle-root":ce({},f.margin),".banner-content":ce(ce({},f.position),{"&__message":ce({},f.margin)})})}),H.createElement(P,null,F(i)),H.createElement(l,{display:"block",className:"banner-content"},H.createElement(l,{sx:{color:Nr.font[t]},className:"banner-content__message"},c),d&&H.createElement(W,ce({},s,{size:"small",variant:"contained",color:t}),d),a&&H.createElement(W,{onClick:a,size:"small",variant:"outlined",sx:{py:"3px",ml:2,backgroundColor:le.color.gray0,":hover":{backgroundColor:le.color.gray0}},color:t},"Dismiss")))},Vr=function(e){var r=e.children,t=de(e,["children"]);return H.createElement(j,ce({},t),r)},Dr=function(e){var r=e.children,t=de(e,["children"]);return H.createElement(B,ce({},t),r)},_r=function(e){var r=e.id,t=e.icon,n=e.actions,o=e.title,i=e.children,a=e.sx,l=de(e,["id","icon","actions","title","children","sx"]),c=I(null),d=c[0],s=c[1],m=Boolean(d);return H.createElement(H.Fragment,null,H.createElement(Br,{onClick:function(e){return s(e.currentTarget)}},t?H.createElement(t,null):H.createElement(Q,null)),H.createElement(Dr,{id:m?r:void 0,open:m,anchorEl:d,onClose:function(){return s(null)},transformOrigin:{vertical:"top",horizontal:"left"},anchorOrigin:{vertical:"top",horizontal:"right"}},H.createElement(Hr,ce({},l,{sx:ce({maxWidth:328},a),title:o,titleVariant:"h3",headerAction:H.createElement(Br,{onClick:function(){return s(null)}},H.createElement(Or,null)),actions:n}),i)))},Xr=function(e){var r=e.content,t=e.linkPath,n=e.linkText,o=e.heading,i=e.contentfulId,a=q((function(){return t&&n}),[t,n]);return H.createElement(_r,{id:i,title:o,actions:a&&H.createElement(W,{variant:"outlined",size:"small",href:"".concat("https://docs.up42.com").concat(t),target:"_blank",rel:"noopener noreferrer"},n)},r&&H.createElement(Ne,{variant:"caption",style:{color:le.color.gray60}},H.createElement(U,null,r)))},Gr=function(e){var r=e.children,t=de(e,["children"]);return H.createElement(J,ce({},t),r)},Kr=function(e){var r=e.children,t=de(e,["children"]);return H.createElement(Y,ce({},t),r)},Qr=function(e){var r=e.children,t=de(e,["children"]);return H.createElement(ee,ce({},t),r)},Ur=function(e){var r=e.children,t=de(e,["children"]);return H.createElement(re,ce({},t),r)},Jr=function(e){var r=e.children,t=de(e,["children"]);return H.createElement(te,ce({},t),r)},Yr=function(e){var r=e.children,t=de(e,["children"]);return H.createElement(ne,ce({},t),r)},et=function(e){var r=de(e,[]);return H.createElement(oe,ce({},r))},rt=function(e){var r=e.children,t=de(e,["children"]);return H.createElement(ie,ce({},t),r)},tt=function(e){var r=e.children,t=de(e,["children"]);return H.createElement(ae,ce({},t),r)};export{Zr as Alert,De as Avatar,$r as Banner,Ke as Box,Ze as Button,Qe as Checkbox,$e as Chip,Xe as Container,Br as ControlButton,Xr as DocumentationPopover,Wr as EmptyState,Ye as FormCheckbox,mr as FormInput,tr as FormRadio,cr as FormSelect,ir as FormSwitch,Hr as InfoCard,Ir as InfoModal,_r as InfoPopover,dr as Input,Mr as Link,jr as Modal,Dr as Popover,er as Radio,ar as Select,nr as Switch,Pr as Tab,Lr as TabGroup,Gr as Table,Kr as TableBody,Qr as TableCell,Ur as TableContainer,tt as TableFooter,Jr as TableHead,et as TablePagination,Yr as TableRow,rt as TableSortLabel,Rr as Tabs,Vr as Tooltip,Ne as Typography,He as UpComponentsProvider,Ae as theme,le as tokens};
|
|
@@ -6,4 +6,11 @@ export declare type AvatarProps = MUIGlobalOmit<Omit<MUIAvatarProps, 'children'
|
|
|
6
6
|
lastName?: string;
|
|
7
7
|
icon?: React.ReactNode;
|
|
8
8
|
}>;
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Documentation: https://up-components.up42.dev/?path=/story/data-display-avatar
|
|
11
|
+
*/
|
|
12
|
+
export declare const Avatar: React.ForwardRefExoticComponent<Pick<{
|
|
13
|
+
firstName?: string | undefined;
|
|
14
|
+
lastName?: string | undefined;
|
|
15
|
+
icon?: React.ReactNode;
|
|
16
|
+
} & Omit<Omit<MUIAvatarProps<"div", {}>, "children" | "variant" | "src" | "alt" | "sizes" | "srcSet" | "imgProps">, "disableFocusRipple" | "disableRipple" | "classes" | "tabIndex" | "action" | "centerRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "disableElevation" | "touchRippleRef">, "color" | "translate" | "icon" | "className" | "style" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "sx" | "key" | "firstName" | "lastName"> & React.RefAttributes<unknown>>;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { BoxProps as MUIBoxProps } from '@mui/material';
|
|
3
3
|
import { MUIGlobalOmit } from '@global/utils/types';
|
|
4
4
|
export declare type BoxProps = MUIGlobalOmit<MUIBoxProps>;
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Documentation: https://up-components.up42.dev/?path=/story/layout-box
|
|
7
|
+
*/
|
|
8
|
+
export declare const Box: React.ForwardRefExoticComponent<Pick<Omit<MUIBoxProps<"div", {}>, "disableFocusRipple" | "disableRipple" | "classes" | "tabIndex" | "action" | "centerRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "disableElevation" | "touchRippleRef">, "translate" | "className" | "style" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "sx" | "key" | ("alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "typography" | "p" | "displayPrint" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "marginX" | "marginY" | "paddingX" | "paddingY") | "component"> & React.RefAttributes<unknown>>;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ButtonProps as MUIButtonProps } from '@mui/material/Button';
|
|
3
3
|
import { MUIGlobalOmit } from '@global/utils/types';
|
|
4
4
|
export declare type ButtonProps = MUIGlobalOmit<MUIButtonProps, {
|
|
5
5
|
loading?: boolean;
|
|
6
6
|
}>;
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Documentation: https://up-components.up42.dev/?path=/story/data-entry-button
|
|
9
|
+
*/
|
|
10
|
+
export declare const Button: React.ForwardRefExoticComponent<Pick<{
|
|
11
|
+
loading?: boolean | undefined;
|
|
12
|
+
} & Omit<MUIButtonProps<"button", {}>, "disableFocusRipple" | "disableRipple" | "classes" | "tabIndex" | "action" | "centerRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "disableElevation" | "touchRippleRef">, "color" | "translate" | "startIcon" | "endIcon" | "size" | "fullWidth" | "className" | "style" | "form" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "disabled" | "onFocusVisible" | "sx" | "key" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "variant" | "href" | "loading"> & React.RefAttributes<unknown>>;
|
|
@@ -6,14 +6,3 @@ export declare const MuiButtonBase: {
|
|
|
6
6
|
disableTouchRipple: boolean;
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
|
-
export declare const MuiIconButton: {
|
|
10
|
-
styleOverrides: {
|
|
11
|
-
root: {
|
|
12
|
-
color: string;
|
|
13
|
-
backgroundColor: string;
|
|
14
|
-
};
|
|
15
|
-
sizeSmall: {
|
|
16
|
-
padding: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IconButtonProps as MUIIconButtonProps } from '@mui/material';
|
|
3
|
+
import { MUIGlobalOmit } from '@global/utils/types';
|
|
4
|
+
export declare type ControlButtonProps = MUIGlobalOmit<MUIIconButtonProps, {
|
|
5
|
+
size?: 'medium' | 'small';
|
|
6
|
+
/**
|
|
7
|
+
* Remove default padding when using icons with built-in padding (Like MUI icons)
|
|
8
|
+
*/
|
|
9
|
+
removePadding?: boolean;
|
|
10
|
+
}>;
|
|
11
|
+
/**
|
|
12
|
+
* Documentation: https://up-components.up42.dev/?path=/data-entry-controlbutton--default
|
|
13
|
+
*/
|
|
14
|
+
export declare const ControlButton: ({ size, removePadding, children, ...props }: ControlButtonProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type DocumentationPopoverProps = {
|
|
3
|
+
heading: string;
|
|
4
|
+
/**
|
|
5
|
+
* The main content of the Popover.
|
|
6
|
+
*/
|
|
7
|
+
content: string;
|
|
8
|
+
/**
|
|
9
|
+
* The label of the CTA button, usually *View Documentation*.
|
|
10
|
+
*/
|
|
11
|
+
linkText?: string;
|
|
12
|
+
/**
|
|
13
|
+
* The link of the CTA button. A pathname relative to the documentation base URL.
|
|
14
|
+
* i.e: `/getting-started/workflows/catalog`
|
|
15
|
+
*/
|
|
16
|
+
linkPath?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Contentful entry ID.
|
|
19
|
+
*/
|
|
20
|
+
contentfulId: string;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Documentation: https://up-components.up42.dev/?path=/docs/patterns-popovers-documentationpopover
|
|
24
|
+
*/
|
|
25
|
+
export declare const DocumentationPopover: ({ content, linkPath, linkText, heading, contentfulId, }: DocumentationPopoverProps) => JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Story, Meta } from '@storybook/react';
|
|
2
|
+
import { DocumentationPopoverProps } from './DocumentationPopover';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<DocumentationPopoverProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CardProps } from '@mui/material';
|
|
3
|
+
export declare type InfoCardProps = {
|
|
4
|
+
title: string;
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
/**
|
|
7
|
+
* The content action section aka. card footer.
|
|
8
|
+
*/
|
|
9
|
+
actions?: React.ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* The content of the header action, usually an icon with a close event.
|
|
12
|
+
*/
|
|
13
|
+
headerAction?: React.ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* The Card's title typography variant.
|
|
16
|
+
*/
|
|
17
|
+
titleVariant?: 'h2' | 'h3' | 'overline';
|
|
18
|
+
} & Omit<CardProps, 'variant' | 'square' | 'raised'>;
|
|
19
|
+
/**
|
|
20
|
+
* Documentation: https://up-components.up42.dev/?path=/docs/patterns-infocard
|
|
21
|
+
*/
|
|
22
|
+
export declare const InfoCardBase: ({ title, titleVariant, subtitle, children, actions, headerAction, innerRef, ...props }: {
|
|
23
|
+
title: string;
|
|
24
|
+
subtitle?: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* The content action section aka. card footer.
|
|
27
|
+
*/
|
|
28
|
+
actions?: React.ReactNode;
|
|
29
|
+
/**
|
|
30
|
+
* The content of the header action, usually an icon with a close event.
|
|
31
|
+
*/
|
|
32
|
+
headerAction?: React.ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* The Card's title typography variant.
|
|
35
|
+
*/
|
|
36
|
+
titleVariant?: "h2" | "h3" | "overline" | undefined;
|
|
37
|
+
} & Omit<CardProps<"div", {}>, "variant" | "square" | "raised"> & {
|
|
38
|
+
innerRef: CardProps['ref'];
|
|
39
|
+
}) => JSX.Element;
|
|
40
|
+
/**
|
|
41
|
+
* Documentation: https://up-components.up42.dev/?path=/docs/patterns-infocard
|
|
42
|
+
*/
|
|
43
|
+
export declare const InfoCard: React.ForwardRefExoticComponent<Pick<{
|
|
44
|
+
title: string;
|
|
45
|
+
subtitle?: string | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* The content action section aka. card footer.
|
|
48
|
+
*/
|
|
49
|
+
actions?: React.ReactNode;
|
|
50
|
+
/**
|
|
51
|
+
* The content of the header action, usually an icon with a close event.
|
|
52
|
+
*/
|
|
53
|
+
headerAction?: React.ReactNode;
|
|
54
|
+
/**
|
|
55
|
+
* The Card's title typography variant.
|
|
56
|
+
*/
|
|
57
|
+
titleVariant?: "h2" | "h3" | "overline" | undefined;
|
|
58
|
+
} & Omit<CardProps<"div", {}>, "variant" | "square" | "raised">, "color" | "translate" | keyof import("@mui/material/OverridableComponent").CommonProps | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "sx" | "key" | "elevation" | "titleVariant" | "subtitle" | "actions" | "headerAction"> & React.RefAttributes<unknown>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Story, Meta } from '@storybook/react';
|
|
2
|
+
import { InfoCardProps } from './InfoCard';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Primary: Story<InfoCardProps>;
|
|
6
|
+
export declare const WithActions: Story<InfoCardProps>;
|
|
7
|
+
export declare const WithHeaderAction: Story<InfoCardProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { MUIGlobalOmit } from '@global/utils/types';
|
|
3
|
+
import { ModalProps as MUIModalProps } from '../Modal/Modal';
|
|
4
|
+
import { InfoCardProps } from '../InfoCard/InfoCard';
|
|
5
|
+
export declare type InfoModalProps = MUIGlobalOmit<Omit<MUIModalProps, 'BackdropProps' | 'BackdropComponent' | 'onBackdropClick'>, Omit<InfoCardProps, 'headerAction'> & {
|
|
6
|
+
/**
|
|
7
|
+
* Maximun width of the modal, in pixels.
|
|
8
|
+
*/
|
|
9
|
+
maxWidth?: number;
|
|
10
|
+
}>;
|
|
11
|
+
/**
|
|
12
|
+
* Documentation: https://up-components.up42.dev/?path=/docs/patterns-infomodal
|
|
13
|
+
*/
|
|
14
|
+
export declare const InfoModal: ({ title, subtitle, children, actions, open, maxWidth, onClose, ...props }: InfoModalProps) => JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Story, Meta } from '@storybook/react';
|
|
2
|
+
import { InfoModalProps } from './InfoModal';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const SimpleModal: Story<InfoModalProps>;
|
|
6
|
+
export declare const ComplexModal: Story<InfoModalProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InfoCardProps } from '../InfoCard/InfoCard';
|
|
3
|
+
export declare type InfoPopoverProps = InfoCardProps & {
|
|
4
|
+
icon?: React.ElementType;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Documentation: https://up-components.up42.dev/?path=/docs/patterns-popovers-infopopover
|
|
8
|
+
*/
|
|
9
|
+
export declare const InfoPopover: ({ id, icon: Icon, actions, title, children, sx, ...props }: InfoPopoverProps) => JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Story, Meta } from '@storybook/react';
|
|
2
|
+
import { InfoPopoverProps } from './InfoPopover';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Simple: Story<InfoPopoverProps>;
|
|
6
|
+
export declare const Complex: Story<InfoPopoverProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { ModalProps as MUIModalProps } from '@mui/material';
|
|
3
3
|
import { MUIGlobalOmit } from '@global/utils/types';
|
|
4
|
-
export declare type ModalProps = MUIGlobalOmit<
|
|
5
|
-
title: string;
|
|
6
|
-
subtitle?: string;
|
|
7
|
-
actions?: ReactNode;
|
|
8
|
-
maxWidth?: number;
|
|
9
|
-
}>;
|
|
4
|
+
export declare type ModalProps = MUIGlobalOmit<MUIModalProps>;
|
|
10
5
|
/**
|
|
11
6
|
* Documentation: https://up-components.up42.dev/?path=/docs/feedback-modal
|
|
12
7
|
*/
|
|
13
|
-
export declare const Modal: ({
|
|
8
|
+
export declare const Modal: ({ children, ...props }: ModalProps) => JSX.Element;
|
|
@@ -2,5 +2,4 @@ import { Story, Meta } from '@storybook/react';
|
|
|
2
2
|
import { ModalProps } from './Modal';
|
|
3
3
|
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const ComplexModal: Story<ModalProps>;
|
|
5
|
+
export declare const Default: Story<ModalProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PopoverProps as MUIPopoverProps } from '@mui/material';
|
|
3
|
+
import { MUIGlobalOmit } from '@global/utils/types';
|
|
4
|
+
export declare type PopoverProps = MUIGlobalOmit<MUIPopoverProps>;
|
|
5
|
+
/**
|
|
6
|
+
* Documentation: https://up-components.up42.dev/?path=/docs/data-display-popover
|
|
7
|
+
*/
|
|
8
|
+
export declare const Popover: ({ children, ...props }: PopoverProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TooltipProps as MUITooltipProps } from '@mui/material';
|
|
3
|
+
export declare type TooltipProps = Omit<MUITooltipProps, 'TransitionComponent' | 'TransitionProps' | 'PopperComponent' | 'PopperProps' | 'followCursor'>;
|
|
4
|
+
/**
|
|
5
|
+
* Documentation: https://up-components.up42.dev/?path=/docs/data-display-tooltip
|
|
6
|
+
*/
|
|
7
|
+
export declare const Tooltip: ({ children, ...props }: TooltipProps) => JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Meta } from '@storybook/react';
|
|
3
|
+
import { TooltipProps } from './Tooltip';
|
|
4
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Default: (args: TooltipProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export {
|
|
1
|
+
export { default as ExternalLink } from './external-link.svg';
|
|
2
|
+
export { default as Calendar } from './calendar.svg';
|
|
3
|
+
export { default as Error } from './error.svg';
|
|
4
|
+
export { default as Info } from './info.svg';
|
|
5
|
+
export { default as Success } from './success.svg';
|
|
6
|
+
export { default as Close } from './close.svg';
|
|
@@ -24,6 +24,13 @@ export { Tabs, Tab, type TabsProps, type TabProps } from './components/Tabs/Tabs
|
|
|
24
24
|
export { TabGroup, type TabGroupProps } from './components/TabGroup/TabGroup';
|
|
25
25
|
export { EmptyState, type EmptyStateProps } from './components/EmptyState/EmptyState';
|
|
26
26
|
export { Modal, type ModalProps } from './components/Modal/Modal';
|
|
27
|
+
export { InfoModal, type InfoModalProps } from './components/InfoModal/InfoModal';
|
|
27
28
|
export { Alert, type AlertProps } from './components/Alert/Alert';
|
|
28
29
|
export { Banner, type BannerProps } from './components/Banner/Banner';
|
|
30
|
+
export { Tooltip, type TooltipProps } from './components/Tooltip/Tooltip';
|
|
31
|
+
export { InfoCard, type InfoCardProps } from './components/InfoCard/InfoCard';
|
|
32
|
+
export { ControlButton, type ControlButtonProps } from './components/ControlButton/ControlButton';
|
|
33
|
+
export { Popover, type PopoverProps } from './components/Popover/Popover';
|
|
34
|
+
export { InfoPopover, type InfoPopoverProps } from './components/InfoPopover/InfoPopover';
|
|
35
|
+
export { DocumentationPopover, type DocumentationPopoverProps, } from './components/DocumentationPopover/DocumentationPopover';
|
|
29
36
|
export { Table, TableBody, TableCell, TableHead, TableContainer, TableRow, TableFooter, TablePagination, TableSortLabel, type TableProps, type TableBodyProps, type TableCellProps, type TableHeadProps, type TableContainerProps, type TableRowProps, type TableFooterProps, type TablePaginationProps, type TableSortLabelProps, } from './components/Table/Table';
|