@up42/up-components 0.3.0 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/cjs/index.js +1 -1
  2. package/dist/cjs/types/components/Alert/Alert.d.ts +9 -0
  3. package/dist/cjs/types/components/Alert/Alert.overrides.d.ts +2 -0
  4. package/dist/cjs/types/components/Alert/Alert.stories.d.ts +7 -0
  5. package/dist/cjs/types/components/Alert/Alert.test.d.ts +1 -0
  6. package/dist/cjs/types/components/FormCheckbox/FormCheckbox.d.ts +16 -1
  7. package/dist/cjs/types/components/FormInput/FormInput.d.ts +11 -1
  8. package/dist/cjs/types/components/FormRadio/FormRadio.d.ts +20 -1
  9. package/dist/cjs/types/components/FormSelect/FormSelect.d.ts +16 -1
  10. package/dist/cjs/types/components/FormSwitch/FormSwitch.d.ts +12 -1
  11. package/dist/cjs/types/components/Modal/Modal.d.ts +13 -0
  12. package/dist/cjs/types/components/Modal/Modal.stories.d.ts +6 -0
  13. package/dist/cjs/types/components/Modal/Modal.test.d.ts +1 -0
  14. package/dist/cjs/types/components/PageHeader/PageHeader.d.ts +11 -0
  15. package/dist/cjs/types/components/PageHeader/PageHeader.stories.d.ts +9 -0
  16. package/dist/cjs/types/components/PageHeader/PageHeader.test.d.ts +1 -0
  17. package/dist/cjs/types/global/icons/index.d.ts +4 -1
  18. package/dist/cjs/types/index.d.ts +2 -0
  19. package/dist/esm/index.js +1 -1
  20. package/dist/esm/types/components/Alert/Alert.d.ts +9 -0
  21. package/dist/esm/types/components/Alert/Alert.overrides.d.ts +2 -0
  22. package/dist/esm/types/components/Alert/Alert.stories.d.ts +7 -0
  23. package/dist/esm/types/components/Alert/Alert.test.d.ts +1 -0
  24. package/dist/esm/types/components/FormCheckbox/FormCheckbox.d.ts +16 -1
  25. package/dist/esm/types/components/FormInput/FormInput.d.ts +11 -1
  26. package/dist/esm/types/components/FormRadio/FormRadio.d.ts +20 -1
  27. package/dist/esm/types/components/FormSelect/FormSelect.d.ts +16 -1
  28. package/dist/esm/types/components/FormSwitch/FormSwitch.d.ts +12 -1
  29. package/dist/esm/types/components/Modal/Modal.d.ts +13 -0
  30. package/dist/esm/types/components/Modal/Modal.stories.d.ts +6 -0
  31. package/dist/esm/types/components/Modal/Modal.test.d.ts +1 -0
  32. package/dist/esm/types/components/PageHeader/PageHeader.d.ts +11 -0
  33. package/dist/esm/types/components/PageHeader/PageHeader.stories.d.ts +9 -0
  34. package/dist/esm/types/components/PageHeader/PageHeader.test.d.ts +1 -0
  35. package/dist/esm/types/global/icons/index.d.ts +4 -1
  36. package/dist/esm/types/index.d.ts +2 -0
  37. package/dist/index.d.ts +96 -7
  38. package/package.json +1 -1
package/dist/esm/index.js CHANGED
@@ -1 +1 @@
1
- import{createTheme as e,CssBaseline as r,CircularProgress as o,Chip as t,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 x,Link as v,SvgIcon as E,Tabs as z,Tab as k}from"@mui/material";export*from"@mui/material";import*as T from"react";import S,{useState as w}from"react";import{ThemeProvider as C,styled as O}from"@mui/material/styles";import M from"@mui/material/Button";import F from"@mui/material/Typography";import P from"@mui/material/InputAdornment";import W from"@mui/material/IconButton";import L from"@mui/icons-material/VisibilityOutlined";import B from"@mui/icons-material/VisibilityOffOutlined";import I from"@mui/icons-material/InfoOutlined";import H from"@mui/material/Table";import j from"@mui/material/TableBody";import q from"@mui/material/TableCell";import R from"@mui/material/TableContainer";import $ from"@mui/material/TableHead";import A from"@mui/material/TableRow";import N from"@mui/material/TablePagination";import V from"@mui/material/TableSortLabel";import D from"@mui/material/TableFooter";var X={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"}}},G=function(){return G=Object.assign||function(e){for(var r,o=1,t=arguments.length;o<t;o++)for(var n in r=arguments[o])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},G.apply(this,arguments)};function U(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}var _={styleOverrides:{root:{fontSize:"12px",fontWeight:600,fontFamily:X.font.family.text,"& .MuiChip-icon":{width:"12px",height:"12px",marginLeft:X.size.spacing.scale8}},colorDefault:{backgroundColor:X.color.gray10,color:X.color.gray60},colorPrimary:{backgroundColor:X.color.indigo10,color:X.color.indigo80},colorSecondary:{backgroundColor:X.color.pink10,color:X.color.pink80},colorError:{backgroundColor:X.color.red10,color:X.color.error},colorInfo:{backgroundColor:X.color.indigo10,color:X.color.indigo80},colorSuccess:{backgroundColor:X.color.green10,color:X.color.green80}}},J={h1:{fontFamily:X.font.family.heading,fontSize:X.size.font.heading.default,fontWeight:X.font.weight.bold,lineHeight:X.font.lineHeight.xlarge},h2:{fontFamily:X.font.family.heading,fontSize:X.size.font.heading.small,fontWeight:X.font.weight.bold,lineHeight:X.font.lineHeight.xlarge},h3:{fontFamily:X.font.family.heading,fontSize:X.size.font.heading.xsmall,fontWeight:X.font.weight.bold,lineHeight:X.font.lineHeight.large},body1:{fontFamily:X.font.family.text,fontSize:X.size.font.body.default,fontWeight:X.font.weight.normal,lineHeight:X.font.lineHeight.large},body2:{fontFamily:X.font.family.text,fontSize:X.size.font.body.default,fontWeight:X.font.weight.bold,lineHeight:X.font.lineHeight.large},caption:{fontFamily:X.font.family.text,fontSize:X.size.font.caption.default,fontWeight:X.font.weight.normal,lineHeight:X.font.lineHeight.medium},overline:{fontFamily:X.font.family.heading,fontSize:X.size.font.overline.default,letterSpacing:"initial",fontWeight:X.font.weight.bold,color:X.color.gray60}},K={small:"".concat(X.size.spacing.scale4," ").concat(X.size.spacing.scale8),medium:"".concat(X.size.spacing.scale8," ").concat(X.size.spacing.scale16),large:"".concat(X.size.spacing.scale16," ").concat(X.size.spacing.scale32)},Q={styleOverrides:{root:{textTransform:"none",lineHeight:X.size.spacing.scale16,fontWeight:X.font.weight.bold,fontFamily:X.font.family.text},contained:{padding:K.medium,color:X.color.gray0},containedSuccess:{backgroundColor:X.color.green60},containedSizeSmall:{padding:K.small},containedSizeLarge:{padding:K.large},text:{padding:K.medium},textSizeSmall:{padding:K.small},textSizeLarge:{padding:K.large},outlined:{padding:"7px ".concat(X.size.spacing.scale16)},outlinedSizeSmall:{padding:K.small},outlinedSizeLarge:{padding:K.large},sizeSmall:{fontSize:X.size.font.label.default},sizeLarge:{fontSize:X.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"}}}},Y={styleOverrides:{root:{color:X.color.gray60,backgroundColor:X.color.background.dark},sizeSmall:{padding:"3px"}}},Z={styleOverrides:{root:{fontFamily:X.font.family.text,fontSize:X.size.font.label.default,fontWeight:X.font.weight.bold,width:X.size.spacing.scale24,height:X.size.spacing.scale24,"& .MuiSvgIcon-root":{width:X.size.spacing.scale16}},colorDefault:{backgroundColor:X.color.background.dark,"& .MuiSvgIcon-root":{color:X.color.gray60}}}},ee={styleOverrides:{root:{paddingTop:4,paddingBottom:4,color:X.color.border.default,"& svg":{width:"16px",height:"16px"},"&&:hover":{backgroundColor:"transparent"}},colorPrimary:{"&$checked":{"&&:hover":{backgroundColor:"transparent"}}},colorSecondary:{"&$checked":{color:X.color.primary},"&$disabled":{opacity:.5}}}},re={styleOverrides:{root:{paddingTop:4,paddingBottom:4,color:X.color.border.default,"& svg":{width:"16px",height:"16px"},"&:hover":{background:"none"}}}},oe={styleOverrides:{root:{marginRight:16},colorSecondary:{color:X.color.gray0,"&$checked":{color:X.color.gray0,left:2,"&:hover":{backgroundColor:"transparent"}},"&$disabled":{color:X.color.gray0}},track:{position:"absolute",width:48,height:24,borderRadius:12,opacity:1,left:"calc(50% - 48px/2)",top:"calc(50% - 24px/2)",backgroundColor:X.color.background.light,border:"2px solid ".concat(X.color.border.default),boxSizing:"border-box","$checked$checked + &":{opacity:1,backgroundColor:X.color.primary,border:"2px solid ".concat(X.color.primary)},"$disabled$disabled + &":{opacity:.5,cursor:"not-allowed"}},thumb:{boxShadow:"none"}}},te={styleOverrides:{root:{"& .MuiInputAdornment-root":{button:{padding:"0 ".concat(X.size.spacing.scale8," 0 0"),backgroundColor:"transparent"},svg:{width:X.size.spacing.scale16,height:X.size.spacing.scale16}}}}},ne={styleOverrides:{input:{"&.Mui-disabled":{backgroundColor:X.color.background.dark,color:X.color.text.light}}},defaultProps:{size:"small"}},ie={styleOverrides:{outlined:{notchedOutline:{borderColor:X.color.border.default}},root:{underline:{"&:before":{borderBottom:"none"},"&:after":{borderBottom:"none"},"&:hover":{borderBottom:"none"},"&&:hover::before":{border:"none"}}}}},ae={styleOverrides:{root:{width:"100%","& .MuiFormHelperText-root":{marginTop:X.size.spacing.scale8,marginLeft:0}}}},le={styleOverrides:{root:{fontSize:X.size.font.base,color:X.color.text.base}}},ce={styleOverrides:{root:{borderBottom:"1px solid ".concat(X.color.gray20)},indicator:{backgroundColor:X.color.primary}}},de={styleOverrides:{textColorPrimary:{textTransform:"none",minWidth:"auto",fontWeight:700,marginRight:"".concat(X.size.spacing.scale16),fontFamily:X.font.family.text,color:X.color.gray60,padding:"0 0 ".concat(X.size.spacing.scale16," 0"),"&:hover":{color:X.color.primary,opacity:1},"&$selected":{color:X.color.primary},"&:focus":{color:X.color.primary}}},defaultProps:{disableRipple:!0}},se={styleOverrides:{root:{fontWeight:X.font.weight.normal}}},me={styleOverrides:{root:{fontWeight:X.font.weight.normal},head:{fontWeight:X.font.weight.bold}}},fe={styleOverrides:{root:{borderTop:"1px solid ".concat(X.color.border.default)}}},ue={styleOverrides:{root:{borderBottom:"none","& .MuiIconButton-root":{backgroundColor:"transparent"}},selectLabel:{fontWeight:X.font.weight.normal,fontSize:X.size.font.caption.default},displayedRows:{fontWeight:X.font.weight.normal,fontSize:X.size.font.caption.default}}};X.size.font.body.default,X.font.family.text,X.color.gray100,X.size.font.caption.default;var pe,ge,he,be,ye={styleOverrides:{root:{fontWeight:X.font.weight.bold,lineHeight:X.font.lineHeight.medium,fontFamily:X.font.family.text,fontSize:X.size.font.caption.default,color:X.color.text.base,marginBottom:X.size.spacing.scale8}}},xe=e({typography:G({},J),palette:{background:{default:"#ffffff"},primary:{main:X.color.primary},secondary:{main:X.color.secondary},error:{main:X.color.error},info:{main:X.color.info},success:{main:X.color.success}},components:{MuiButton:Q,MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0}},MuiContainer:{styleOverrides:{maxWidthLg:{"@media (min-width: 1280px)":{maxWidth:"1185px"}}}},MuiIconButton:Y,MuiChip:_,MuiInput:ie,MuiInputBase:ne,MuiFormControl:ae,MuiFormControlLabel:le,MuiTextField:te,MuiFormLabel:ye,MuiTabs:ce,MuiTab:de,MuiAvatar:Z,MuiCheckbox:ee,MuiRadio:re,MuiSwitch:oe,MuiLink:{styleOverrides:{root:{cursor:"pointer"}}},MuiTable:se,MuiTableCell:me,MuiTableRow:{styleOverrides:{root:{"&:last-child td":{borderBottom:0}}}},MuiTableFooter:fe,MuiTablePagination:ue,MuiDivider:{styleOverrides:{root:{margin:"16px 0"}}}}}),ve=function(e){return S.createElement(S.Fragment,null,S.createElement(r,null),S.createElement(C,{theme:xe},e.children))},Ee=O(o)(he||(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"],ge=["\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(pe,"raw",{value:ge}):pe.raw=ge,he=pe)),ze=function(e){var r=e.color,o=void 0===r?"primary":r,t=e.variant,n=void 0===t?"contained":t,i=e.size,a=void 0===i?"medium":i,l=e.loading,c=e.children,d=U(e,["color","variant","size","loading","children"]);return S.createElement(M,G({size:a,variant:n,color:o,disabled:l},d),S.createElement("span",{style:{opacity:l?0:1}},c),l&&S.createElement(Ee,{size:20,color:"inherit"}))},ke=function(e){var r=e.children,o=U(e,["children"]);return S.createElement(F,G({},o),r)},Te=function(e){var r=e.label,o=U(e,["label"]);return S.createElement(t,G({size:"small",label:r},o))},Se=function(e){var r=e.icon,o=e.firstName,t=void 0===o?"":o,i=e.lastName,a=void 0===i?"":i,l=U(e,["icon","firstName","lastName"]),c="".concat(t.substring(0,1)).concat(a.substring(0,1)).toLocaleUpperCase(),d=c?X.color.secondary:X.color.background.dark;return S.createElement(n,G({sx:G({backgroundColor:d},l.sx)},l),c||r)},we={small:6,medium:8,large:12,fluid:12},Ce=function(e){var r=e.component,o=void 0===r?"div":r,t=e.size,n=void 0===t?"large":t,l=e.children,c=U(e,["component","size","children"]),d="fluid"===n;return S.createElement(i,G({component:o,disableGutters:d,maxWidth:!d&&"lg",sx:G({display:"flex",justifyContent:"center"},c.sx)},c),S.createElement(a,{container:!0,justifyContent:"center"},S.createElement(a,{item:!0,md:we[n]},l)))},Oe=function(e){var r=e.children,o=U(e,["children"]);return S.createElement(l,G({},o),r)},Me=function(e){var r=U(e,[]);return S.createElement(c,G({},r))},Fe=function(e){var r=e.label,o=e.htmlFor,t=e.required,n=void 0===t||t;return S.createElement(d,{component:"label",htmlFor:o},r,!n&&S.createElement(l,{ml:1,component:"span",sx:{fontWeight:X.font.weight.normal,color:X.color.text.light}},"(optional)"))},Pe=function(e){var r=e.id,o=e.label,t=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=U(e,["id","label","required","component","disabled","data","error","helperText","sx"]);return S.createElement(s,{component:i,error:c,disabled:a,sx:p},S.createElement(Fe,{label:o,required:t,htmlFor:r}),S.createElement(m,null,l.map((function(e,o){var t=e.value,n=e.label;return S.createElement(f,{key:o,value:t,label:n||"",control:S.createElement(Me,G({color:"primary",inputProps:{"data-testid":"".concat(r,"-").concat(o)}},g))})}))),c&&S.createElement(u,{error:c},d))},We=function(e){return S.createElement(p,G({},e))},Le=function(e){var r=e.id,o=e.required,t=e.component,n=void 0===t?"div":t,i=e.disabled,a=e.data,l=e.label,c=e.error,d=e.helperText,m=e.sx,p=U(e,["id","required","component","disabled","data","label","error","helperText","sx"]);return S.createElement(s,{component:n,error:c,disabled:i,sx:m},S.createElement(Fe,{label:l,required:o,htmlFor:r}),S.createElement(g,G({},p),a.map((function(e,o){var t=e.value,n=e.label,i=e.message;return S.createElement(S.Fragment,null,S.createElement(f,{value:t,key:t,label:n||"",control:S.createElement(We,{color:"primary",inputProps:{"data-testid":"".concat(r,"-").concat(o)}})}),i&&S.createElement(ke,{variant:"caption",marginLeft:X.size.spacing.scale24,color:X.color.text.light,mb:1},i))}))),c&&d&&S.createElement(u,{error:c},d))},Be=function(e){return S.createElement(h,G({},e))},Ie=function(e){var r=e.component,o=void 0===r?"div":r,t=e.disabled,n=e.label,i=e.error,a=e.sx,l=U(e,["component","disabled","label","error","sx"]);return S.createElement(s,{component:o,error:i,disabled:t,sx:G({mb:2},a)},S.createElement(d,{component:"label"},n),S.createElement(Be,G({},l)))},He=function(e){return S.createElement(b,G({variant:"outlined"},e))},je=function(e){var r=e.id,o=e.required,t=e.component,n=void 0===t?"div":t,i=e.disabled,a=e.label,l=e.error,c=e.helperText,d=e.sx,m=e.options,f=U(e,["id","required","component","disabled","label","error","helperText","sx","options"]);return S.createElement(s,{component:n,error:l,disabled:i,sx:d},S.createElement(Fe,{label:a,required:o,htmlFor:r}),S.createElement(He,G({},f,{error:l,inputProps:{id:r,"data-testid":r}}),m.map((function(e){return S.createElement(y,{key:e.value,value:e.value},e.text)}))),l&&c&&S.createElement(u,{error:l},c))},qe=function(e){var r=e.type,o=U(e,["type"]),t=w(!1),n=t[0],i=t[1],a=G(G({},o.InputProps),"password"===r&&{endAdornment:S.createElement(P,{position:"end"},S.createElement(W,{"aria-label":"toggle password visibility",onClick:function(){return i(!n)},edge:"end"},n?S.createElement(L,null):S.createElement(B,null)))});return S.createElement(x,G({},o,{type:n?"text":r,InputProps:a}))},Re=function(e){var r=e.id,o=e.component,t=void 0===o?"div":o,n=e.required,i=e.disabled,a=e.label,l=e.error,c=e.helperText,d=e.sx,m=U(e,["id","component","required","disabled","label","error","helperText","sx"]);return S.createElement(s,{component:t,error:l,disabled:i,sx:d},S.createElement(Fe,{label:a,required:n,htmlFor:r}),S.createElement(qe,G({},m,{id:r,error:l,inputProps:{"data-testid":r},disabled:i,helperText:c})))};function $e(){return $e=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},$e.apply(this,arguments)}var Ae=function(e){return T.createElement("svg",$e({viewBox:"0 0 24 24"},e),be||(be=T.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"})))},Ne=function(e){var r,o=e.children,t=e.underline,n=void 0===t?"hover":t,i=e.toParentNavigation,a=U(e,["children","underline","toParentNavigation"]),l=null===(r=a.href)||void 0===r?void 0:r.startsWith("https"),c={underline:n};return i?S.createElement(v,G({},c,a,{onClick:function(){return e=i,void window.parent.postMessage({type:"NAVIGATION",content:e},"*");var e}}),o):S.createElement(v,G({},c,l&&{target:"_blank",rel:"noopener noreferrer"},a),o,l&&S.createElement(E,{component:Ae,fontSize:"inherit",sx:{marginLeft:".25em"}}))},Ve=function(e){var r=e.children,o=U(e,["children"]);return S.createElement(z,G({},o),r)},De=function(e){var r=e.children,o=U(e,["children"]);return S.createElement(k,G({},o),r)},Xe=function(e){var r=e.children,o=e.value,t=void 0===o?0:o,n=e.index,i=e.id;return S.createElement(Oe,{role:"tabpanel",hidden:t!==n,id:i},r)},Ge=function(e){var r=e.tabs,o=e.nameSpace,t=e.tabContentProps,n=e.tabsProps,i=w(0),a=i[0],l=i[1],c=o?"".concat(o,"-"):"";return S.createElement(S.Fragment,null,S.createElement(Ve,G({},n,{value:a,onChange:function(e,r){l(r)}}),r.map((function(e,r){return S.createElement(De,{key:"".concat(c,"tab-").concat(r),label:e.label,"aria-controls":"".concat(c,"panel-").concat(r)})}))),S.createElement(Oe,G({},t),r.map((function(e,r){var o="".concat(c,"panel-").concat(r);return S.createElement(Xe,{key:o,value:a,index:r,id:o,"aria-labelledby":"".concat(c,"tab-").concat(r)},e.content)}))))},Ue=function(e){var r=e.icon,o=e.title,t=e.subTitle,n=e.action,i=U(e,["icon","title","subTitle","action"]);return S.createElement(l,G({p:4,display:"flex",flexDirection:"column",alignItems:"center"},i),S.createElement(E,{component:null!=r?r:I,sx:{marginBottom:X.size.spacing.scale24,fontSize:X.size.spacing.scale104,color:X.color.gray20}}),S.createElement(ke,{variant:"h1",component:"span",mb:2},o),S.createElement(ke,{variant:"body1",color:X.color.gray60,mb:3},t),n)},_e=function(e){var r=e.children,o=U(e,["children"]);return S.createElement(H,G({},o),r)},Je=function(e){var r=e.children,o=U(e,["children"]);return S.createElement(j,G({},o),r)},Ke=function(e){var r=e.children,o=U(e,["children"]);return S.createElement(q,G({},o),r)},Qe=function(e){var r=e.children,o=U(e,["children"]);return S.createElement(R,G({},o),r)},Ye=function(e){var r=e.children,o=U(e,["children"]);return S.createElement($,G({},o),r)},Ze=function(e){var r=e.children,o=U(e,["children"]);return S.createElement(A,G({},o),r)},er=function(e){var r=U(e,[]);return S.createElement(N,G({},r))},rr=function(e){var r=e.children,o=U(e,["children"]);return S.createElement(V,G({},o),r)},or=function(e){var r=e.children,o=U(e,["children"]);return S.createElement(D,G({},o),r)};export{Se as Avatar,Oe as Box,ze as Button,Me as Checkbox,Te as Chip,Ce as Container,Ue as EmptyState,Pe as FormCheckbox,Re as FormInput,Le as FormRadio,je as FormSelect,Ie as FormSwitch,qe as Input,Ne as Link,We as Radio,He as Select,Be as Switch,De as Tab,Ge as TabGroup,_e as Table,Je as TableBody,Ke as TableCell,Qe as TableContainer,or as TableFooter,Ye as TableHead,er as TablePagination,Ze as TableRow,rr as TableSortLabel,Ve as Tabs,ke as Typography,ve as UpComponentsProvider,xe as theme,X as tokens};
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 z,Tab as w,Modal as k,Fade as S,Card as C,CardContent as T,Typography as O,IconButton as M,Divider as F,Alert as P,AlertTitle as W,capitalize as R}from"@mui/material";export*from"@mui/material";import*as L from"react";import B,{useState as I}from"react";import{ThemeProvider as j,styled as H}from"@mui/material/styles";import A from"@mui/material/Button";import q from"@mui/material/Typography";import Z from"@mui/material/InputAdornment";import $ from"@mui/material/IconButton";import N from"@mui/icons-material/VisibilityOutlined";import V from"@mui/icons-material/VisibilityOffOutlined";import D 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 _ from"@mui/material/TableContainer";import J from"@mui/material/TableHead";import Q from"@mui/material/TableRow";import Y from"@mui/material/TablePagination";import ee from"@mui/material/TableSortLabel";import re from"@mui/material/TableFooter";var te={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"}}},oe=function(){return oe=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},oe.apply(this,arguments)};function ne(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 ie={styleOverrides:{root:{fontSize:"12px",fontWeight:600,fontFamily:te.font.family.text,"& .MuiChip-icon":{width:"12px",height:"12px",marginLeft:te.size.spacing.scale8}},colorDefault:{backgroundColor:te.color.gray10,color:te.color.gray60},colorPrimary:{backgroundColor:te.color.indigo10,color:te.color.indigo80},colorSecondary:{backgroundColor:te.color.pink10,color:te.color.pink80},colorError:{backgroundColor:te.color.red10,color:te.color.error},colorInfo:{backgroundColor:te.color.indigo10,color:te.color.indigo80},colorSuccess:{backgroundColor:te.color.green10,color:te.color.green80}}},ae={h1:{fontFamily:te.font.family.heading,fontSize:te.size.font.heading.default,fontWeight:te.font.weight.bold,lineHeight:te.font.lineHeight.xlarge},h2:{fontFamily:te.font.family.heading,fontSize:te.size.font.heading.small,fontWeight:te.font.weight.bold,lineHeight:te.font.lineHeight.xlarge},h3:{fontFamily:te.font.family.heading,fontSize:te.size.font.heading.xsmall,fontWeight:te.font.weight.bold,lineHeight:te.font.lineHeight.large},body1:{fontFamily:te.font.family.text,fontSize:te.size.font.body.default,fontWeight:te.font.weight.normal,lineHeight:te.font.lineHeight.large},body2:{fontFamily:te.font.family.text,fontSize:te.size.font.body.default,fontWeight:te.font.weight.bold,lineHeight:te.font.lineHeight.large},caption:{fontFamily:te.font.family.text,fontSize:te.size.font.caption.default,fontWeight:te.font.weight.normal,lineHeight:te.font.lineHeight.medium},overline:{fontFamily:te.font.family.heading,fontSize:te.size.font.overline.default,letterSpacing:"initial",fontWeight:te.font.weight.bold,color:te.color.gray60}},le={small:"".concat(te.size.spacing.scale4," ").concat(te.size.spacing.scale8),medium:"".concat(te.size.spacing.scale8," ").concat(te.size.spacing.scale16),large:"".concat(te.size.spacing.scale16," ").concat(te.size.spacing.scale32)},ce={styleOverrides:{root:{textTransform:"none",lineHeight:te.size.spacing.scale16,fontWeight:te.font.weight.bold,fontFamily:te.font.family.text},contained:{padding:le.medium,color:te.color.gray0},containedSuccess:{backgroundColor:te.color.green60},containedSizeSmall:{padding:le.small},containedSizeLarge:{padding:le.large},text:{padding:le.medium},textSizeSmall:{padding:le.small},textSizeLarge:{padding:le.large},outlined:{padding:"7px ".concat(te.size.spacing.scale16)},outlinedSizeSmall:{padding:le.small},outlinedSizeLarge:{padding:le.large},sizeSmall:{fontSize:te.size.font.label.default},sizeLarge:{fontSize:te.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"}}}},de={styleOverrides:{root:{color:te.color.gray60,backgroundColor:te.color.background.dark},sizeSmall:{padding:"3px"}}},se={styleOverrides:{root:{fontFamily:te.font.family.text,fontSize:te.size.font.label.default,fontWeight:te.font.weight.bold,width:te.size.spacing.scale24,height:te.size.spacing.scale24,"& .MuiSvgIcon-root":{width:te.size.spacing.scale16}},colorDefault:{backgroundColor:te.color.background.dark,"& .MuiSvgIcon-root":{color:te.color.gray60}}}},me={styleOverrides:{root:{paddingTop:4,paddingBottom:4,color:te.color.border.default,"& svg":{width:"16px",height:"16px"},"&&:hover":{backgroundColor:"transparent"}},colorPrimary:{"&$checked":{"&&:hover":{backgroundColor:"transparent"}}},colorSecondary:{"&$checked":{color:te.color.primary},"&$disabled":{opacity:.5}}}},fe={styleOverrides:{root:{paddingTop:4,paddingBottom:4,color:te.color.border.default,"& svg":{width:"16px",height:"16px"},"&:hover":{background:"none"}}}},ue={styleOverrides:{root:{marginRight:16},colorSecondary:{color:te.color.gray0,"&$checked":{color:te.color.gray0,left:2,"&:hover":{backgroundColor:"transparent"}},"&$disabled":{color:te.color.gray0}},track:{position:"absolute",width:48,height:24,borderRadius:12,opacity:1,left:"calc(50% - 48px/2)",top:"calc(50% - 24px/2)",backgroundColor:te.color.background.light,border:"2px solid ".concat(te.color.border.default),boxSizing:"border-box","$checked$checked + &":{opacity:1,backgroundColor:te.color.primary,border:"2px solid ".concat(te.color.primary)},"$disabled$disabled + &":{opacity:.5,cursor:"not-allowed"}},thumb:{boxShadow:"none"}}},pe={styleOverrides:{root:{"& .MuiInputAdornment-root":{button:{padding:"0 ".concat(te.size.spacing.scale8," 0 0"),backgroundColor:"transparent"},svg:{width:te.size.spacing.scale16,height:te.size.spacing.scale16}}}}},ge={styleOverrides:{input:{"&.Mui-disabled":{backgroundColor:te.color.background.dark,color:te.color.text.light}}},defaultProps:{size:"small"}},he={styleOverrides:{outlined:{notchedOutline:{borderColor:te.color.border.default}},root:{underline:{"&:before":{borderBottom:"none"},"&:after":{borderBottom:"none"},"&:hover":{borderBottom:"none"},"&&:hover::before":{border:"none"}}}}},be={styleOverrides:{root:{width:"100%","& .MuiFormHelperText-root":{marginTop:te.size.spacing.scale8,marginLeft:0}}}},ye={styleOverrides:{root:{fontSize:te.size.font.base,color:te.color.text.base}}},ve={styleOverrides:{root:{borderBottom:"1px solid ".concat(te.color.gray20)},indicator:{backgroundColor:te.color.primary}}},xe={styleOverrides:{textColorPrimary:{textTransform:"none",minWidth:"auto",fontWeight:700,marginRight:"".concat(te.size.spacing.scale16),fontFamily:te.font.family.text,color:te.color.gray60,padding:"0 0 ".concat(te.size.spacing.scale16," 0"),"&:hover":{color:te.color.primary,opacity:1},"&$selected":{color:te.color.primary},"&:focus":{color:te.color.primary}}},defaultProps:{disableRipple:!0}},Ee={styleOverrides:{root:{fontWeight:te.font.weight.normal}}},ze={styleOverrides:{root:{fontWeight:te.font.weight.normal},head:{fontWeight:te.font.weight.bold}}},we={styleOverrides:{root:{borderTop:"1px solid ".concat(te.color.border.default)}}},ke={styleOverrides:{root:{borderBottom:"none","& .MuiIconButton-root":{backgroundColor:"transparent"}},selectLabel:{fontWeight:te.font.weight.normal,fontSize:te.size.font.caption.default},displayedRows:{fontWeight:te.font.weight.normal,fontSize:te.size.font.caption.default}}},Se=function(e){var r;return(r={})[{error:"&-standardError",success:"&-standardSuccess",info:"&-standardInfo"}[e]]={"& .MuiAlertTitle-root":{color:te.color["success"===e?"green60":e],fontFamily:te.font.family.heading,lineHeight:te.font.lineHeight.medium,fontWeight:te.font.weight.bold,fontSize:te.size.font.caption.default}},r},Ce={fontSize:te.size.font.caption.default,lineHeight:te.font.lineHeight.medium,fontWeight:te.font.weight.normal},Te={styleOverrides:{root:oe(oe({width:328,borderRadius:6,backgroundColor:te.color.gray0,boxShadow:"0px 8px 16px rgba(18, 19, 21, 0.08)",color:te.color.text.light,padding:"".concat(te.size.spacing.scale8," ").concat(te.size.spacing.scale16)},Ce),{"& p, & span":oe({},Ce),"& .MuiAlert-action":{button:{width:te.size.spacing.scale16,height:te.size.spacing.scale16,backgroundColor:te.color.background.light},svg:{width:14,height:14,fill:te.color.gray60}},"&.MuiAlert":oe(oe(oe({},Se("error")),Se("success")),Se("info"))}),icon:{svg:{width:20,height:20}}}};te.size.font.body.default,te.font.family.text,te.color.gray100,te.size.font.caption.default;var Oe,Me,Fe,Pe,We={styleOverrides:{root:{fontWeight:te.font.weight.bold,lineHeight:te.font.lineHeight.medium,fontFamily:te.font.family.text,fontSize:te.size.font.caption.default,color:te.color.text.base,marginBottom:te.size.spacing.scale8}}},Re=e({typography:oe({},ae),palette:{background:{default:"#ffffff"},primary:{main:te.color.primary},secondary:{main:te.color.secondary},error:{main:te.color.error},info:{main:te.color.info},success:{main:te.color.success}},components:{MuiButton:ce,MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0}},MuiContainer:{styleOverrides:{maxWidthLg:{"@media (min-width: 1280px)":{maxWidth:"1185px"}}}},MuiIconButton:de,MuiChip:ie,MuiInput:he,MuiInputBase:ge,MuiFormControl:be,MuiFormControlLabel:ye,MuiTextField:pe,MuiFormLabel:We,MuiTabs:ve,MuiTab:xe,MuiAvatar:se,MuiCheckbox:me,MuiRadio:fe,MuiSwitch:ue,MuiLink:{styleOverrides:{root:{cursor:"pointer"}}},MuiTable:Ee,MuiTableCell:ze,MuiTableRow:{styleOverrides:{root:{"&:last-child td":{borderBottom:0}}}},MuiTableFooter:we,MuiTablePagination:ke,MuiAlert:Te,MuiDivider:{styleOverrides:{root:{margin:"16px 0"}}}}}),Le=function(e){return B.createElement(B.Fragment,null,B.createElement(r,null),B.createElement(j,{theme:Re},e.children))},Be=H(t)(Fe||(Oe=["\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"],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"],Object.defineProperty?Object.defineProperty(Oe,"raw",{value:Me}):Oe.raw=Me,Fe=Oe)),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=ne(e,["color","variant","size","loading","children"]);return B.createElement(A,oe({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"}))},je=function(e){var r=e.children,t=ne(e,["children"]);return B.createElement(q,oe({},t),r)},He=function(e){var r=e.label,t=ne(e,["label"]);return B.createElement(o,oe({size:"small",label:r},t))},Ae=function(e){var r=e.icon,t=e.firstName,o=void 0===t?"":t,i=e.lastName,a=void 0===i?"":i,l=ne(e,["icon","firstName","lastName"]),c="".concat(o.substring(0,1)).concat(a.substring(0,1)).toLocaleUpperCase(),d=c?te.color.secondary:te.color.background.dark;return B.createElement(n,oe({sx:oe({backgroundColor:d},l.sx)},l),c||r)},qe={small:6,medium:8,large:12,fluid:12},Ze=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=ne(e,["component","size","children"]),d="fluid"===n;return B.createElement(i,oe({component:t,disableGutters:d,maxWidth:!d&&"lg",sx:oe({display:"flex",justifyContent:"center"},c.sx)},c),B.createElement(a,{container:!0,justifyContent:"center"},B.createElement(a,{item:!0,md:qe[n]},l)))},$e=function(e){var r=e.children,t=ne(e,["children"]);return B.createElement(l,oe({},t),r)},Ne=function(e){var r=ne(e,[]);return B.createElement(c,oe({},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:te.font.weight.normal,color:te.color.text.light}},"(optional)"))},De=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=ne(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(Ne,oe({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(De,oe({inputRef:r},e))})),Ge=function(e){return B.createElement(p,oe({},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=ne(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,oe({},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(je,{variant:"caption",marginLeft:te.size.spacing.scale24,color:te.color.text.light,mb:1},i))}))),c&&m&&B.createElement(u,{error:c},m))},Ue=B.forwardRef((function(e,r){return B.createElement(Ke,oe({inputRef:r},e))})),_e=function(e){return B.createElement(h,oe({},e))},Je=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=ne(e,["component","disabled","label","error","sx"]);return B.createElement(s,{component:t,error:i,disabled:o,sx:oe({mb:2},a)},B.createElement(d,{component:"label"},n),B.createElement(_e,oe({},l)))},Qe=B.forwardRef((function(e,r){return B.createElement(Je,oe({inputRef:r},e))})),Ye=function(e){return B.createElement(b,oe({variant:"outlined"},e))},er=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=ne(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(Ye,oe({},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))},rr=B.forwardRef((function(e,r){return B.createElement(er,oe({inputRef:r},e))})),tr=function(e){var r=e.type,t=ne(e,["type"]),o=I(!1),n=o[0],i=o[1],a=oe(oe({},t.InputProps),"password"===r&&{endAdornment:B.createElement(Z,{position:"end"},B.createElement($,{"aria-label":"toggle password visibility",onClick:function(){return i(!n)},edge:"end"},n?B.createElement(N,null):B.createElement(V,null)))});return B.createElement(v,oe({},t,{type:n?"text":r,InputProps:a}))},or=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=ne(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(tr,oe({},m,{id:r,error:l,inputProps:{"data-testid":r},disabled:i,helperText:c})))},nr=B.forwardRef((function(e,r){return B.createElement(or,oe({inputRef:r},e))}));function ir(){return ir=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},ir.apply(this,arguments)}var ar,lr,cr=function(e){return L.createElement("svg",ir({viewBox:"0 0 24 24"},e),Pe||(Pe=L.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 dr(){return dr=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},dr.apply(this,arguments)}var sr,mr,fr=function(e){return L.createElement("svg",dr({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),ar||(ar=L.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"})),lr||(lr=L.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 ur(){return ur=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},ur.apply(this,arguments)}var pr,gr,hr=function(e){return L.createElement("svg",ur({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),sr||(sr=L.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"})),mr||(mr=L.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 br(){return br=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},br.apply(this,arguments)}var yr=function(e){return L.createElement("svg",br({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),pr||(pr=L.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"})),gr||(gr=L.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"})))},vr=function(e){var r,t=e.children,o=e.underline,n=void 0===o?"hover":o,i=e.toParentNavigation,a=ne(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,oe({},c,a,{onClick:function(){return e=i,void window.parent.postMessage({type:"NAVIGATION",content:e},"*");var e}}),t):B.createElement(x,oe({},c,l&&{target:"_blank",rel:"noopener noreferrer"},a),t,l&&B.createElement(E,{component:cr,fontSize:"inherit",sx:{marginLeft:".25em"}}))},xr=function(e){var r=e.children,t=ne(e,["children"]);return B.createElement(z,oe({},t),r)},Er=function(e){var r=e.children,t=ne(e,["children"]);return B.createElement(w,oe({},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)},wr=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(xr,oe({},n,{value:a,onChange:function(e,r){l(r)}}),r.map((function(e,r){return B.createElement(Er,{key:"".concat(c,"tab-").concat(r),label:e.label,"aria-controls":"".concat(c,"panel-").concat(r)})}))),B.createElement($e,oe({},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)}))))},kr=function(e){var r=e.icon,t=e.title,o=e.subTitle,n=e.action,i=ne(e,["icon","title","subTitle","action"]);return B.createElement(l,oe({p:4,display:"flex",flexDirection:"column",alignItems:"center"},i),B.createElement(E,{component:null!=r?r:D,sx:{marginBottom:te.size.spacing.scale24,fontSize:te.size.spacing.scale104,color:te.color.gray20}}),B.createElement(je,{variant:"h1",component:"span",mb:2},t),B.createElement(je,{variant:"body1",color:te.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=ne(e,["title","subtitle","children","actions","open","maxWidth","onClose"]);return B.createElement(k,oe({open:i,onClose:d,closeAfterTransition:!0,BackdropProps:{timeout:500}},s),B.createElement(S,{in:i},B.createElement(l,{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},B.createElement(C,{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(F,null),o,n&&B.createElement(B.Fragment,null,B.createElement(F,null),B.createElement(l,null,n)))))))},Cr=function(e){var r=e.type,t=void 0===r?"success":r,o=e.title,n=e.children,i=ne(e,["type","title","children"]);return B.createElement(P,oe({},i,{severity:t,iconMapping:{info:B.createElement(E,{component:hr,sx:{color:te.color.primary}}),success:B.createElement(E,{component:yr,sx:{color:te.color.green60}}),error:B.createElement(E,{component:fr,sx:{color:te.color.error}})}}),o&&B.createElement(W,null,R(o)),n)},Tr=function(e){var r=e.children,t=ne(e,["children"]);return B.createElement(G,oe({},t),r)},Or=function(e){var r=e.children,t=ne(e,["children"]);return B.createElement(K,oe({},t),r)},Mr=function(e){var r=e.children,t=ne(e,["children"]);return B.createElement(U,oe({},t),r)},Fr=function(e){var r=e.children,t=ne(e,["children"]);return B.createElement(_,oe({},t),r)},Pr=function(e){var r=e.children,t=ne(e,["children"]);return B.createElement(J,oe({},t),r)},Wr=function(e){var r=e.children,t=ne(e,["children"]);return B.createElement(Q,oe({},t),r)},Rr=function(e){var r=ne(e,[]);return B.createElement(Y,oe({},r))},Lr=function(e){var r=e.children,t=ne(e,["children"]);return B.createElement(ee,oe({},t),r)},Br=function(e){var r=e.children,t=ne(e,["children"]);return B.createElement(re,oe({},t),r)};export{Cr as Alert,Ae as Avatar,$e as Box,Ie as Button,Ne as Checkbox,He as Chip,Ze as Container,kr as EmptyState,Xe as FormCheckbox,nr as FormInput,Ue as FormRadio,rr as FormSelect,Qe as FormSwitch,tr as Input,vr as Link,Sr as Modal,Ge as Radio,Ye as Select,_e as Switch,Er as Tab,wr as TabGroup,Tr as Table,Or as TableBody,Mr as TableCell,Fr as TableContainer,Br as TableFooter,Pr as TableHead,Rr as TablePagination,Wr as TableRow,Lr as TableSortLabel,xr as Tabs,je as Typography,Le as UpComponentsProvider,Re as theme,te as tokens};
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { AlertProps as MUIALertProps, AlertColor } from '@mui/material';
3
+ export declare type AlertProps = Omit<MUIALertProps, 'color' | 'elevation' | 'iconMapping' | 'severity' | 'square' | 'variant' | 'action'> & {
4
+ type?: AlertColor;
5
+ };
6
+ /**
7
+ * Documentation: https://up-components.up42.dev/?path=/docs/feedback-alert
8
+ */
9
+ export declare const Alert: ({ type, title, children, ...props }: AlertProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { OverridesStyleRules } from '@mui/material/styles/overrides';
2
+ export declare const MuiAlert: OverridesStyleRules;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { Meta } from '@storybook/react';
3
+ declare const _default: Meta<import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Types: () => JSX.Element;
6
+ export declare const SimpleAlert: () => JSX.Element;
7
+ export declare const ComplexAlert: () => JSX.Element;
@@ -0,0 +1 @@
1
+ export {};
@@ -7,4 +7,19 @@ export declare type FormCheckboxProps<C extends React.ElementType = 'div'> = Che
7
7
  label?: string;
8
8
  }[];
9
9
  };
10
- export declare const FormCheckbox: <C extends React.ElementType<any>>({ id, label, required, component, disabled, data, error, helperText, sx, ...props }: FormCheckboxProps<C>) => JSX.Element;
10
+ /**
11
+ * Documentation: https://up-components.up42.dev/?path=/story/patterns-form
12
+ */
13
+ export declare const FormCheckbox: React.ForwardRefExoticComponent<Pick<Omit<import("@mui/material").CheckboxProps, "disableFocusRipple" | "disableRipple" | "classes" | "tabIndex" | "action" | "centerRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "disableElevation" | "touchRippleRef"> & Pick<import("@mui/material").TextFieldProps, "error" | "label" | "id" | "disabled" | "required" | "focused" | "helperText"> & import("@mui/system").SystemProps<import("@mui/material").Theme> & {
14
+ children?: React.ReactNode;
15
+ component?: React.ElementType<any> | undefined;
16
+ ref?: React.Ref<unknown> | undefined;
17
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
18
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
19
+ ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
20
+ }, "error" | keyof import("@mui/material/OverridableComponent").CommonProps | "label" | "id" | "children" | "disabled" | "sx" | "ref" | ("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" | "required" | "focused" | "helperText"> & {
21
+ data: {
22
+ value: string | number;
23
+ label?: string;
24
+ }[];
25
+ }, "translate" | "size" | "error" | "icon" | keyof import("@mui/material/OverridableComponent").CommonProps | "data" | "form" | "label" | "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" | "disabled" | "onFocusVisible" | "sx" | "key" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | ("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" | "required" | "focused" | "helperText" | "inputProps" | "inputRef" | "checked" | "readOnly" | "checkedIcon" | "edge" | "indeterminate" | "indeterminateIcon"> & React.RefAttributes<unknown>>;
@@ -2,4 +2,14 @@ import React from 'react';
2
2
  import { FormBaseProps } from '@global/utils/types';
3
3
  import { InputProps } from '../Input/Input';
4
4
  export declare type FormInputProps<C extends React.ElementType = 'div'> = InputProps & FormBaseProps<C>;
5
- export declare const FormInput: <C extends React.ElementType<any>>({ id, component, required, disabled, label, error, helperText, sx, ...props }: FormInputProps<C>) => JSX.Element;
5
+ /**
6
+ * Documentation: https://up-components.up42.dev/?path=/story/patterns-form
7
+ */
8
+ export declare const FormInput: React.ForwardRefExoticComponent<Pick<InputProps & Pick<import("@mui/material").TextFieldProps, "error" | "label" | "id" | "disabled" | "required" | "focused" | "helperText"> & import("@mui/system").SystemProps<import("@mui/material").Theme> & {
9
+ children?: React.ReactNode;
10
+ component?: React.ElementType<any> | undefined;
11
+ ref?: React.Ref<unknown> | undefined;
12
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
13
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
14
+ ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
15
+ }, "error" | keyof import("@mui/material/OverridableComponent").CommonProps | "label" | "id" | "children" | "disabled" | "sx" | "ref" | ("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" | "required" | "focused" | "helperText">, "translate" | "error" | "fullWidth" | keyof import("@mui/material/OverridableComponent").CommonProps | "label" | "slot" | "select" | "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" | "disabled" | "sx" | "key" | "autoFocus" | "name" | "type" | "value" | ("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" | "required" | "focused" | "helperText" | "hiddenLabel" | "InputProps" | "autoComplete" | "FormHelperTextProps" | "InputLabelProps" | "inputProps" | "inputRef" | "SelectProps"> & React.RefAttributes<unknown>>;
@@ -1,11 +1,30 @@
1
1
  import React from 'react';
2
2
  import { RadioGroupProps } from '@mui/material';
3
3
  import { FormBaseProps } from '@global/utils/types';
4
+ import { RadioProps } from '../Radio/Radio';
4
5
  export declare type FormRadioProps<C extends React.ElementType = 'div'> = RadioGroupProps & FormBaseProps<C> & {
6
+ inputRef?: RadioProps['inputRef'];
5
7
  data: {
6
8
  value: string | number;
7
9
  label?: string;
8
10
  message?: string;
9
11
  }[];
10
12
  };
11
- export declare const FormRadio: ({ id, required, component, disabled, data, label, error, helperText, sx, ...props }: FormRadioProps) => JSX.Element;
13
+ /**
14
+ * Documentation: https://up-components.up42.dev/?path=/story/patterns-form
15
+ */
16
+ export declare const FormRadio: React.ForwardRefExoticComponent<Pick<RadioGroupProps & Pick<import("@mui/material").TextFieldProps, "error" | "label" | "id" | "disabled" | "required" | "focused" | "helperText"> & import("@mui/system").SystemProps<import("@mui/material").Theme> & {
17
+ children?: React.ReactNode;
18
+ component?: React.ElementType<any> | undefined;
19
+ ref?: React.Ref<unknown> | undefined;
20
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
21
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
22
+ ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
23
+ }, "error" | keyof import("@mui/material/OverridableComponent").CommonProps | "label" | "id" | "children" | "disabled" | "sx" | "ref" | ("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" | "required" | "focused" | "helperText"> & {
24
+ inputRef?: RadioProps['inputRef'];
25
+ data: {
26
+ value: string | number;
27
+ label?: string;
28
+ message?: string;
29
+ }[];
30
+ }, "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" | "translate" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "error" | "typography" | "className" | "style" | "classes" | "data" | "label" | "p" | "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" | "disabled" | "sx" | "key" | "name" | "value" | "row" | "displayPrint" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "marginX" | "marginY" | "paddingX" | "paddingY" | "component" | "required" | "focused" | "helperText" | "inputRef"> & React.RefAttributes<unknown>>;
@@ -7,4 +7,19 @@ export declare type FormSelectProps<C extends React.ElementType = 'div'> = Selec
7
7
  text: string;
8
8
  }[];
9
9
  };
10
- export declare const FormSelect: ({ id, required, component, disabled, label, error, helperText, sx, options, ...props }: FormSelectProps) => JSX.Element;
10
+ /**
11
+ * Documentation: https://up-components.up42.dev/?path=/story/patterns-form
12
+ */
13
+ export declare const FormSelect: React.ForwardRefExoticComponent<Pick<Omit<Omit<import("@mui/material").SelectProps<unknown>, "label" | "variant">, "disableFocusRipple" | "disableRipple" | "classes" | "tabIndex" | "action" | "centerRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "disableElevation" | "touchRippleRef"> & Pick<import("@mui/material").TextFieldProps, "error" | "label" | "id" | "disabled" | "required" | "focused" | "helperText"> & import("@mui/system").SystemProps<import("@mui/material").Theme> & {
14
+ children?: React.ReactNode;
15
+ component?: React.ElementType<any> | undefined;
16
+ ref?: React.Ref<unknown> | undefined;
17
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
18
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
19
+ ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
20
+ }, "error" | keyof import("@mui/material/OverridableComponent").CommonProps | "label" | "id" | "children" | "disabled" | "sx" | "ref" | ("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" | "required" | "focused" | "helperText"> & {
21
+ options: {
22
+ value: string | number;
23
+ text: string;
24
+ }[];
25
+ }, "translate" | "input" | "size" | "error" | "components" | "fullWidth" | keyof import("@mui/material/OverridableComponent").CommonProps | "label" | "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" | "disabled" | "sx" | "key" | "autoFocus" | "name" | "type" | "value" | ("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" | "required" | "focused" | "helperText" | "autoComplete" | "inputProps" | "inputRef" | "multiline" | "rows" | "maxRows" | "minRows" | "multiple" | "readOnly" | "open" | "componentsProps" | "disableInjectingGlobalStyles" | "endAdornment" | "inputComponent" | "renderSuffix" | "startAdornment" | "disableUnderline" | "autoWidth" | "defaultOpen" | "displayEmpty" | "IconComponent" | "labelId" | "MenuProps" | "native" | "onClose" | "onOpen" | "renderValue" | "SelectDisplayProps" | "options"> & React.RefAttributes<unknown>>;
@@ -2,4 +2,15 @@ import React from 'react';
2
2
  import { FormBaseProps } from '@global/utils/types';
3
3
  import { SwitchProps } from '../Switch/Switch';
4
4
  export declare type FormSwitchProps<C extends React.ElementType = 'div'> = SwitchProps & FormBaseProps<C>;
5
- export declare const FormSwitch: <C extends React.ElementType<any>>({ component, disabled, label, error, sx, ...props }: FormSwitchProps<C>) => JSX.Element;
5
+ export declare const BaseFormSwitch: <C extends React.ElementType<any>>({ component, disabled, label, error, sx, ...props }: FormSwitchProps<C>) => JSX.Element;
6
+ /**
7
+ * Documentation: https://up-components.up42.dev/?path=/story/patterns-form
8
+ */
9
+ export declare const FormSwitch: React.ForwardRefExoticComponent<Pick<Omit<import("@mui/material").SwitchProps, "disableFocusRipple" | "disableRipple" | "classes" | "tabIndex" | "action" | "centerRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "disableElevation" | "touchRippleRef"> & Pick<import("@mui/material").TextFieldProps, "error" | "label" | "id" | "disabled" | "required" | "focused" | "helperText"> & import("@mui/system").SystemProps<import("@mui/material").Theme> & {
10
+ children?: React.ReactNode;
11
+ component?: React.ElementType<any> | undefined;
12
+ ref?: React.Ref<unknown> | undefined;
13
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
14
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
15
+ ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
16
+ }, "error" | keyof import("@mui/material/OverridableComponent").CommonProps | "label" | "id" | "children" | "disabled" | "sx" | "ref" | ("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" | "required" | "focused" | "helperText">, "translate" | "size" | "error" | "icon" | keyof import("@mui/material/OverridableComponent").CommonProps | "form" | "label" | "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" | "disabled" | "onFocusVisible" | "sx" | "key" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | ("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" | "required" | "focused" | "helperText" | "inputProps" | "inputRef" | "checked" | "readOnly" | "checkedIcon" | "edge"> & React.RefAttributes<unknown>>;
@@ -0,0 +1,13 @@
1
+ import { ReactNode } from 'react';
2
+ import { ModalProps as MUIModalProps } from '@mui/material';
3
+ import { MUIGlobalOmit } from '@global/utils/types';
4
+ export declare type ModalProps = MUIGlobalOmit<Omit<MUIModalProps, 'BackdropProps' | 'BackdropComponent' | 'onBackdropClick'>, {
5
+ title: string;
6
+ subtitle?: string;
7
+ actions?: ReactNode;
8
+ maxWidth?: number;
9
+ }>;
10
+ /**
11
+ * Documentation: https://up-components.up42.dev/?path=/docs/feedback-modal
12
+ */
13
+ export declare const Modal: ({ title, subtitle, children, actions, open, maxWidth, onClose, ...props }: ModalProps) => JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { Story, Meta } from '@storybook/react';
2
+ import { ModalProps } from './Modal';
3
+ declare const _default: Meta<import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const SimpleModal: Story<ModalProps>;
6
+ export declare const ComplexModal: Story<ModalProps>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ export declare type PageHeaderProps = {
3
+ title: string;
4
+ divider?: boolean;
5
+ description?: React.ReactNode;
6
+ action?: React.ReactNode;
7
+ };
8
+ /**
9
+ * Documentation: https://up-components.up42.dev/?path=/story/patterns-pageheader
10
+ */
11
+ export declare const PageHeader: ({ title, description, divider, action }: PageHeaderProps) => JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { Meta, Story } from '@storybook/react';
2
+ import { PageHeaderProps } from './PageHeader';
3
+ declare const _default: Meta<import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Default: Story<PageHeaderProps>;
6
+ export declare const WithoutDivider: Story<PageHeaderProps>;
7
+ export declare const SimpleDescription: Story<PageHeaderProps>;
8
+ export declare const Actions: Story<PageHeaderProps>;
9
+ export declare const Complex: Story<PageHeaderProps>;
@@ -1,3 +1,6 @@
1
1
  import ExternalLink from './external-link.svg';
2
2
  import Calendar from './calendar.svg';
3
- export { ExternalLink, Calendar };
3
+ import Error from './error.svg';
4
+ import Info from './info.svg';
5
+ import Success from './success.svg';
6
+ export { ExternalLink, Calendar, Error, Info, Success };
@@ -23,4 +23,6 @@ export { Link, type LinkProps } from './components/Link/Link';
23
23
  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
+ export { Modal, type ModalProps } from './components/Modal/Modal';
27
+ export { Alert, type AlertProps } from './components/Alert/Alert';
26
28
  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';