@up42/up-components 0.3.2 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/types/components/Alert/Alert.d.ts +11 -0
- package/dist/cjs/types/components/Alert/Alert.overrides.d.ts +2 -0
- package/dist/cjs/types/components/Alert/Alert.stories.d.ts +7 -0
- package/dist/cjs/types/components/Alert/Alert.test.d.ts +1 -0
- package/dist/cjs/types/components/Avatar/Avatar.d.ts +8 -1
- package/dist/cjs/types/components/Banner/Banner.d.ts +30 -0
- package/dist/cjs/types/components/Banner/Banner.stories.d.ts +9 -0
- package/dist/cjs/types/components/Banner/Banner.test.d.ts +1 -0
- package/dist/cjs/types/components/Box/Box.d.ts +5 -2
- package/dist/cjs/types/components/Button/Button.d.ts +7 -2
- package/dist/cjs/types/components/FormCheckbox/FormCheckbox.d.ts +3 -3
- package/dist/cjs/types/components/FormInput/FormInput.d.ts +2 -2
- package/dist/cjs/types/components/FormRadio/FormRadio.d.ts +3 -3
- package/dist/cjs/types/components/FormSelect/FormSelect.d.ts +3 -3
- package/dist/cjs/types/components/FormSwitch/FormSwitch.d.ts +2 -2
- package/dist/cjs/types/components/Modal/Modal.d.ts +13 -0
- package/dist/cjs/types/components/Modal/Modal.stories.d.ts +6 -0
- package/dist/cjs/types/components/Modal/Modal.test.d.ts +1 -0
- package/dist/cjs/types/components/Tooltip/Tooltip.d.ts +7 -0
- package/dist/cjs/types/components/Tooltip/Tooltip.stories.d.ts +6 -0
- package/dist/cjs/types/components/Tooltip/Tooltip.test.d.ts +1 -0
- package/dist/cjs/types/global/icons/index.d.ts +4 -1
- package/dist/cjs/types/index.d.ts +4 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/types/components/Alert/Alert.d.ts +11 -0
- package/dist/esm/types/components/Alert/Alert.overrides.d.ts +2 -0
- package/dist/esm/types/components/Alert/Alert.stories.d.ts +7 -0
- package/dist/esm/types/components/Alert/Alert.test.d.ts +1 -0
- package/dist/esm/types/components/Avatar/Avatar.d.ts +8 -1
- package/dist/esm/types/components/Banner/Banner.d.ts +30 -0
- package/dist/esm/types/components/Banner/Banner.stories.d.ts +9 -0
- package/dist/esm/types/components/Banner/Banner.test.d.ts +1 -0
- package/dist/esm/types/components/Box/Box.d.ts +5 -2
- package/dist/esm/types/components/Button/Button.d.ts +7 -2
- package/dist/esm/types/components/FormCheckbox/FormCheckbox.d.ts +3 -3
- package/dist/esm/types/components/FormInput/FormInput.d.ts +2 -2
- package/dist/esm/types/components/FormRadio/FormRadio.d.ts +3 -3
- package/dist/esm/types/components/FormSelect/FormSelect.d.ts +3 -3
- package/dist/esm/types/components/FormSwitch/FormSwitch.d.ts +2 -2
- package/dist/esm/types/components/Modal/Modal.d.ts +13 -0
- package/dist/esm/types/components/Modal/Modal.stories.d.ts +6 -0
- package/dist/esm/types/components/Modal/Modal.test.d.ts +1 -0
- package/dist/esm/types/components/Tooltip/Tooltip.d.ts +7 -0
- package/dist/esm/types/components/Tooltip/Tooltip.stories.d.ts +6 -0
- package/dist/esm/types/components/Tooltip/Tooltip.test.d.ts +1 -0
- package/dist/esm/types/global/icons/index.d.ts +4 -1
- package/dist/esm/types/index.d.ts +4 -0
- package/dist/index.d.ts +88 -19
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@mui/material"),r=require("react"),t=require("@mui/material/styles"),o=require("@mui/material/Button"),n=require("@mui/material/Typography"),a=require("@mui/material/InputAdornment"),i=require("@mui/material/IconButton"),l=require("@mui/icons-material/VisibilityOutlined"),c=require("@mui/icons-material/VisibilityOffOutlined"),d=require("@mui/icons-material/InfoOutlined"),u=require("@mui/material/Table"),f=require("@mui/material/TableBody"),s=require("@mui/material/TableCell"),m=require("@mui/material/TableContainer"),p=require("@mui/material/TableHead"),g=require("@mui/material/TableRow"),b=require("@mui/material/TablePagination"),h=require("@mui/material/TableSortLabel"),x=require("@mui/material/TableFooter");function y(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function v(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var E=y(r),z=v(r),k=y(o),T=y(n),S=y(a),w=y(i),C=y(l),O=y(c),F=y(d),M=y(u),P=y(f),q=y(s),R=y(m),L=y(p),B=y(g),I=y(b),j=y(h),W=y(x),H={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"}}},$=function(){return $=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},$.apply(this,arguments)};function A(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 N={styleOverrides:{root:{fontSize:"12px",fontWeight:600,fontFamily:H.font.family.text,"& .MuiChip-icon":{width:"12px",height:"12px",marginLeft:H.size.spacing.scale8}},colorDefault:{backgroundColor:H.color.gray10,color:H.color.gray60},colorPrimary:{backgroundColor:H.color.indigo10,color:H.color.indigo80},colorSecondary:{backgroundColor:H.color.pink10,color:H.color.pink80},colorError:{backgroundColor:H.color.red10,color:H.color.error},colorInfo:{backgroundColor:H.color.indigo10,color:H.color.indigo80},colorSuccess:{backgroundColor:H.color.green10,color:H.color.green80}}},G={h1:{fontFamily:H.font.family.heading,fontSize:H.size.font.heading.default,fontWeight:H.font.weight.bold,lineHeight:H.font.lineHeight.xlarge},h2:{fontFamily:H.font.family.heading,fontSize:H.size.font.heading.small,fontWeight:H.font.weight.bold,lineHeight:H.font.lineHeight.xlarge},h3:{fontFamily:H.font.family.heading,fontSize:H.size.font.heading.xsmall,fontWeight:H.font.weight.bold,lineHeight:H.font.lineHeight.large},body1:{fontFamily:H.font.family.text,fontSize:H.size.font.body.default,fontWeight:H.font.weight.normal,lineHeight:H.font.lineHeight.large},body2:{fontFamily:H.font.family.text,fontSize:H.size.font.body.default,fontWeight:H.font.weight.bold,lineHeight:H.font.lineHeight.large},caption:{fontFamily:H.font.family.text,fontSize:H.size.font.caption.default,fontWeight:H.font.weight.normal,lineHeight:H.font.lineHeight.medium},overline:{fontFamily:H.font.family.heading,fontSize:H.size.font.overline.default,letterSpacing:"initial",fontWeight:H.font.weight.bold,color:H.color.gray60}},D={small:"".concat(H.size.spacing.scale4," ").concat(H.size.spacing.scale8),medium:"".concat(H.size.spacing.scale8," ").concat(H.size.spacing.scale16),large:"".concat(H.size.spacing.scale16," ").concat(H.size.spacing.scale32)},V={styleOverrides:{root:{textTransform:"none",lineHeight:H.size.spacing.scale16,fontWeight:H.font.weight.bold,fontFamily:H.font.family.text},contained:{padding:D.medium,color:H.color.gray0},containedSuccess:{backgroundColor:H.color.green60},containedSizeSmall:{padding:D.small},containedSizeLarge:{padding:D.large},text:{padding:D.medium},textSizeSmall:{padding:D.small},textSizeLarge:{padding:D.large},outlined:{padding:"7px ".concat(H.size.spacing.scale16)},outlinedSizeSmall:{padding:D.small},outlinedSizeLarge:{padding:D.large},sizeSmall:{fontSize:H.size.font.label.default},sizeLarge:{fontSize:H.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"}}}},_={styleOverrides:{root:{color:H.color.gray60,backgroundColor:H.color.background.dark},sizeSmall:{padding:"3px"}}},X={styleOverrides:{root:{fontFamily:H.font.family.text,fontSize:H.size.font.label.default,fontWeight:H.font.weight.bold,width:H.size.spacing.scale24,height:H.size.spacing.scale24,"& .MuiSvgIcon-root":{width:H.size.spacing.scale16}},colorDefault:{backgroundColor:H.color.background.dark,"& .MuiSvgIcon-root":{color:H.color.gray60}}}},U={styleOverrides:{root:{paddingTop:4,paddingBottom:4,color:H.color.border.default,"& svg":{width:"16px",height:"16px"},"&&:hover":{backgroundColor:"transparent"}},colorPrimary:{"&$checked":{"&&:hover":{backgroundColor:"transparent"}}},colorSecondary:{"&$checked":{color:H.color.primary},"&$disabled":{opacity:.5}}}},J={styleOverrides:{root:{paddingTop:4,paddingBottom:4,color:H.color.border.default,"& svg":{width:"16px",height:"16px"},"&:hover":{background:"none"}}}},K={styleOverrides:{root:{marginRight:16},colorSecondary:{color:H.color.gray0,"&$checked":{color:H.color.gray0,left:2,"&:hover":{backgroundColor:"transparent"}},"&$disabled":{color:H.color.gray0}},track:{position:"absolute",width:48,height:24,borderRadius:12,opacity:1,left:"calc(50% - 48px/2)",top:"calc(50% - 24px/2)",backgroundColor:H.color.background.light,border:"2px solid ".concat(H.color.border.default),boxSizing:"border-box","$checked$checked + &":{opacity:1,backgroundColor:H.color.primary,border:"2px solid ".concat(H.color.primary)},"$disabled$disabled + &":{opacity:.5,cursor:"not-allowed"}},thumb:{boxShadow:"none"}}},Q={styleOverrides:{root:{"& .MuiInputAdornment-root":{button:{padding:"0 ".concat(H.size.spacing.scale8," 0 0"),backgroundColor:"transparent"},svg:{width:H.size.spacing.scale16,height:H.size.spacing.scale16}}}}},Y={styleOverrides:{input:{"&.Mui-disabled":{backgroundColor:H.color.background.dark,color:H.color.text.light}}},defaultProps:{size:"small"}},Z={styleOverrides:{outlined:{notchedOutline:{borderColor:H.color.border.default}},root:{underline:{"&:before":{borderBottom:"none"},"&:after":{borderBottom:"none"},"&:hover":{borderBottom:"none"},"&&:hover::before":{border:"none"}}}}},ee={styleOverrides:{root:{width:"100%","& .MuiFormHelperText-root":{marginTop:H.size.spacing.scale8,marginLeft:0}}}},re={styleOverrides:{root:{fontSize:H.size.font.base,color:H.color.text.base}}},te={styleOverrides:{root:{borderBottom:"1px solid ".concat(H.color.gray20)},indicator:{backgroundColor:H.color.primary}}},oe={styleOverrides:{textColorPrimary:{textTransform:"none",minWidth:"auto",fontWeight:700,marginRight:"".concat(H.size.spacing.scale16),fontFamily:H.font.family.text,color:H.color.gray60,padding:"0 0 ".concat(H.size.spacing.scale16," 0"),"&:hover":{color:H.color.primary,opacity:1},"&$selected":{color:H.color.primary},"&:focus":{color:H.color.primary}}},defaultProps:{disableRipple:!0}},ne={styleOverrides:{root:{fontWeight:H.font.weight.normal}}},ae={styleOverrides:{root:{fontWeight:H.font.weight.normal},head:{fontWeight:H.font.weight.bold}}},ie={styleOverrides:{root:{borderTop:"1px solid ".concat(H.color.border.default)}}},le={styleOverrides:{root:{borderBottom:"none","& .MuiIconButton-root":{backgroundColor:"transparent"}},selectLabel:{fontWeight:H.font.weight.normal,fontSize:H.size.font.caption.default},displayedRows:{fontWeight:H.font.weight.normal,fontSize:H.size.font.caption.default}}};H.size.font.body.default,H.font.family.text,H.color.gray100,H.size.font.caption.default;var ce,de,ue,fe,se={styleOverrides:{root:{fontWeight:H.font.weight.bold,lineHeight:H.font.lineHeight.medium,fontFamily:H.font.family.text,fontSize:H.size.font.caption.default,color:H.color.text.base,marginBottom:H.size.spacing.scale8}}},me=e.createTheme({typography:$({},G),palette:{background:{default:"#ffffff"},primary:{main:H.color.primary},secondary:{main:H.color.secondary},error:{main:H.color.error},info:{main:H.color.info},success:{main:H.color.success}},components:{MuiButton:V,MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0}},MuiContainer:{styleOverrides:{maxWidthLg:{"@media (min-width: 1280px)":{maxWidth:"1185px"}}}},MuiIconButton:_,MuiChip:N,MuiInput:Z,MuiInputBase:Y,MuiFormControl:ee,MuiFormControlLabel:re,MuiTextField:Q,MuiFormLabel:se,MuiTabs:te,MuiTab:oe,MuiAvatar:X,MuiCheckbox:U,MuiRadio:J,MuiSwitch:K,MuiLink:{styleOverrides:{root:{cursor:"pointer"}}},MuiTable:ne,MuiTableCell:ae,MuiTableRow:{styleOverrides:{root:{"&:last-child td":{borderBottom:0}}}},MuiTableFooter:ie,MuiTablePagination:le,MuiDivider:{styleOverrides:{root:{margin:"16px 0"}}}}}),pe=t.styled(e.CircularProgress)(ue||(ce=["\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"],de=["\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(ce,"raw",{value:de}):ce.raw=de,ue=ce)),ge=function(e){var r=e.children,t=A(e,["children"]);return E.default.createElement(T.default,$({},t),r)},be={small:6,medium:8,large:12,fluid:12},he=function(r){var t=r.children,o=A(r,["children"]);return E.default.createElement(e.Box,$({},o),t)},xe=function(r){var t=A(r,[]);return E.default.createElement(e.Checkbox,$({},t))},ye=function(r){var t=r.label,o=r.htmlFor,n=r.required,a=void 0===n||n;return E.default.createElement(e.FormLabel,{component:"label",htmlFor:o},t,!a&&E.default.createElement(e.Box,{ml:1,component:"span",sx:{fontWeight:H.font.weight.normal,color:H.color.text.light}},"(optional)"))},ve=function(r){var t=r.id,o=r.label,n=r.required,a=r.component,i=void 0===a?"div":a,l=r.disabled,c=r.data,d=r.error,u=r.helperText,f=r.sx,s=A(r,["id","label","required","component","disabled","data","error","helperText","sx"]);return E.default.createElement(e.FormControl,{component:i,error:d,disabled:l,sx:f},E.default.createElement(ye,{label:o,required:n,htmlFor:t}),E.default.createElement(e.FormGroup,null,c.map((function(r,o){var n=r.value,a=r.label;return E.default.createElement(e.FormControlLabel,{key:o,value:n,label:a||"",control:E.default.createElement(xe,$({color:"primary",inputProps:{"data-testid":"".concat(t,"-").concat(o)}},s))})}))),d&&E.default.createElement(e.FormHelperText,{error:d},u))},Ee=E.default.forwardRef((function(e,r){return E.default.createElement(ve,$({inputRef:r},e))})),ze=function(r){return E.default.createElement(e.Radio,$({},r))},ke=function(r){var t=r.id,o=r.required,n=r.component,a=void 0===n?"div":n,i=r.disabled,l=r.data,c=r.label,d=r.error,u=r.sx,f=r.helperText,s=r.inputRef,m=A(r,["id","required","component","disabled","data","label","error","sx","helperText","inputRef"]);return E.default.createElement(e.FormControl,{component:a,error:d,disabled:i,sx:u},E.default.createElement(ye,{label:c,required:o,htmlFor:t}),E.default.createElement(e.RadioGroup,$({},m),l.map((function(r,o){var n=r.value,a=r.label,i=r.message;return E.default.createElement(E.default.Fragment,null,E.default.createElement(e.FormControlLabel,{value:n,key:n,label:a||"",control:E.default.createElement(ze,{color:"primary",inputProps:{"data-testid":"".concat(t,"-").concat(o)},inputRef:s})}),i&&E.default.createElement(ge,{variant:"caption",marginLeft:H.size.spacing.scale24,color:H.color.text.light,mb:1},i))}))),d&&f&&E.default.createElement(e.FormHelperText,{error:d},f))},Te=E.default.forwardRef((function(e,r){return E.default.createElement(ke,$({inputRef:r},e))})),Se=function(r){return E.default.createElement(e.Switch,$({},r))},we=function(r){var t=r.component,o=void 0===t?"div":t,n=r.disabled,a=r.label,i=r.error,l=r.sx,c=A(r,["component","disabled","label","error","sx"]);return E.default.createElement(e.FormControl,{component:o,error:i,disabled:n,sx:$({mb:2},l)},E.default.createElement(e.FormLabel,{component:"label"},a),E.default.createElement(Se,$({},c)))},Ce=E.default.forwardRef((function(e,r){return E.default.createElement(we,$({inputRef:r},e))})),Oe=function(r){return E.default.createElement(e.Select,$({variant:"outlined"},r))},Fe=function(r){var t=r.id,o=r.required,n=r.component,a=void 0===n?"div":n,i=r.disabled,l=r.label,c=r.error,d=r.helperText,u=r.sx,f=r.options,s=A(r,["id","required","component","disabled","label","error","helperText","sx","options"]);return E.default.createElement(e.FormControl,{component:a,error:c,disabled:i,sx:u},E.default.createElement(ye,{label:l,required:o,htmlFor:t}),E.default.createElement(Oe,$({},s,{error:c,inputProps:{id:t,"data-testid":t}}),f.map((function(r){return E.default.createElement(e.MenuItem,{key:r.value,value:r.value},r.text)}))),c&&d&&E.default.createElement(e.FormHelperText,{error:c},d))},Me=E.default.forwardRef((function(e,r){return E.default.createElement(Fe,$({inputRef:r},e))})),Pe=function(t){var o=t.type,n=A(t,["type"]),a=r.useState(!1),i=a[0],l=a[1],c=$($({},n.InputProps),"password"===o&&{endAdornment:E.default.createElement(S.default,{position:"end"},E.default.createElement(w.default,{"aria-label":"toggle password visibility",onClick:function(){return l(!i)},edge:"end"},i?E.default.createElement(C.default,null):E.default.createElement(O.default,null)))});return E.default.createElement(e.TextField,$({},n,{type:i?"text":o,InputProps:c}))},qe=function(r){var t=r.id,o=r.component,n=void 0===o?"div":o,a=r.required,i=r.disabled,l=r.label,c=r.error,d=r.helperText,u=r.sx,f=A(r,["id","component","required","disabled","label","error","helperText","sx"]);return E.default.createElement(e.FormControl,{component:n,error:c,disabled:i,sx:u},E.default.createElement(ye,{label:l,required:a,htmlFor:t}),E.default.createElement(Pe,$({},f,{id:t,error:c,inputProps:{"data-testid":t},disabled:i,helperText:d})))},Re=E.default.forwardRef((function(e,r){return E.default.createElement(qe,$({inputRef:r},e))}));function Le(){return Le=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},Le.apply(this,arguments)}var Be=function(e){return z.createElement("svg",Le({viewBox:"0 0 24 24"},e),fe||(fe=z.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"})))},Ie=function(r){var t=r.children,o=A(r,["children"]);return E.default.createElement(e.Tabs,$({},o),t)},je=function(r){var t=r.children,o=A(r,["children"]);return E.default.createElement(e.Tab,$({},o),t)},We=function(e){var r=e.children,t=e.value,o=void 0===t?0:t,n=e.index,a=e.id;return E.default.createElement(he,{role:"tabpanel",hidden:o!==n,id:a},r)};exports.Avatar=function(r){var t=r.icon,o=r.firstName,n=void 0===o?"":o,a=r.lastName,i=void 0===a?"":a,l=A(r,["icon","firstName","lastName"]),c="".concat(n.substring(0,1)).concat(i.substring(0,1)).toLocaleUpperCase(),d=c?H.color.secondary:H.color.background.dark;return E.default.createElement(e.Avatar,$({sx:$({backgroundColor:d},l.sx)},l),c||t)},exports.Box=he,exports.Button=function(e){var r=e.color,t=void 0===r?"primary":r,o=e.variant,n=void 0===o?"contained":o,a=e.size,i=void 0===a?"medium":a,l=e.loading,c=e.children,d=A(e,["color","variant","size","loading","children"]);return E.default.createElement(k.default,$({size:i,variant:n,color:t,disabled:l},d),E.default.createElement("span",{style:{opacity:l?0:1}},c),l&&E.default.createElement(pe,{size:20,color:"inherit"}))},exports.Checkbox=xe,exports.Chip=function(r){var t=r.label,o=A(r,["label"]);return E.default.createElement(e.Chip,$({size:"small",label:t},o))},exports.Container=function(r){var t=r.component,o=void 0===t?"div":t,n=r.size,a=void 0===n?"large":n,i=r.children,l=A(r,["component","size","children"]),c="fluid"===a;return E.default.createElement(e.Container,$({component:o,disableGutters:c,maxWidth:!c&&"lg",sx:$({display:"flex",justifyContent:"center"},l.sx)},l),E.default.createElement(e.Grid,{container:!0,justifyContent:"center"},E.default.createElement(e.Grid,{item:!0,md:be[a]},i)))},exports.EmptyState=function(r){var t=r.icon,o=r.title,n=r.subTitle,a=r.action,i=A(r,["icon","title","subTitle","action"]);return E.default.createElement(e.Box,$({p:4,display:"flex",flexDirection:"column",alignItems:"center"},i),E.default.createElement(e.SvgIcon,{component:null!=t?t:F.default,sx:{marginBottom:H.size.spacing.scale24,fontSize:H.size.spacing.scale104,color:H.color.gray20}}),E.default.createElement(ge,{variant:"h1",component:"span",mb:2},o),E.default.createElement(ge,{variant:"body1",color:H.color.gray60,mb:3},n),a)},exports.FormCheckbox=Ee,exports.FormInput=Re,exports.FormRadio=Te,exports.FormSelect=Me,exports.FormSwitch=Ce,exports.Input=Pe,exports.Link=function(r){var t,o=r.children,n=r.underline,a=void 0===n?"hover":n,i=r.toParentNavigation,l=A(r,["children","underline","toParentNavigation"]),c=null===(t=l.href)||void 0===t?void 0:t.startsWith("https"),d={underline:a};return i?E.default.createElement(e.Link,$({},d,l,{onClick:function(){return e=i,void window.parent.postMessage({type:"NAVIGATION",content:e},"*");var e}}),o):E.default.createElement(e.Link,$({},d,c&&{target:"_blank",rel:"noopener noreferrer"},l),o,c&&E.default.createElement(e.SvgIcon,{component:Be,fontSize:"inherit",sx:{marginLeft:".25em"}}))},exports.Radio=ze,exports.Select=Oe,exports.Switch=Se,exports.Tab=je,exports.TabGroup=function(e){var t=e.tabs,o=e.nameSpace,n=e.tabContentProps,a=e.tabsProps,i=r.useState(0),l=i[0],c=i[1],d=o?"".concat(o,"-"):"";return E.default.createElement(E.default.Fragment,null,E.default.createElement(Ie,$({},a,{value:l,onChange:function(e,r){c(r)}}),t.map((function(e,r){return E.default.createElement(je,{key:"".concat(d,"tab-").concat(r),label:e.label,"aria-controls":"".concat(d,"panel-").concat(r)})}))),E.default.createElement(he,$({},n),t.map((function(e,r){var t="".concat(d,"panel-").concat(r);return E.default.createElement(We,{key:t,value:l,index:r,id:t,"aria-labelledby":"".concat(d,"tab-").concat(r)},e.content)}))))},exports.Table=function(e){var r=e.children,t=A(e,["children"]);return E.default.createElement(M.default,$({},t),r)},exports.TableBody=function(e){var r=e.children,t=A(e,["children"]);return E.default.createElement(P.default,$({},t),r)},exports.TableCell=function(e){var r=e.children,t=A(e,["children"]);return E.default.createElement(q.default,$({},t),r)},exports.TableContainer=function(e){var r=e.children,t=A(e,["children"]);return E.default.createElement(R.default,$({},t),r)},exports.TableFooter=function(e){var r=e.children,t=A(e,["children"]);return E.default.createElement(W.default,$({},t),r)},exports.TableHead=function(e){var r=e.children,t=A(e,["children"]);return E.default.createElement(L.default,$({},t),r)},exports.TablePagination=function(e){var r=A(e,[]);return E.default.createElement(I.default,$({},r))},exports.TableRow=function(e){var r=e.children,t=A(e,["children"]);return E.default.createElement(B.default,$({},t),r)},exports.TableSortLabel=function(e){var r=e.children,t=A(e,["children"]);return E.default.createElement(j.default,$({},t),r)},exports.Tabs=Ie,exports.Typography=ge,exports.UpComponentsProvider=function(r){return E.default.createElement(E.default.Fragment,null,E.default.createElement(e.CssBaseline,null),E.default.createElement(t.ThemeProvider,{theme:me},r.children))},exports.theme=me,exports.tokens=H,Object.keys(e).forEach((function(r){"default"===r||exports.hasOwnProperty(r)||Object.defineProperty(exports,r,{enumerable:!0,get:function(){return e[r]}})}));
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@mui/material"),t=require("react"),r=require("@mui/material/styles"),o=require("@mui/material/Button"),n=require("@mui/material/Typography"),a=require("@mui/material/InputAdornment"),l=require("@mui/material/IconButton"),i=require("@mui/icons-material/VisibilityOutlined"),c=require("@mui/icons-material/VisibilityOffOutlined"),d=require("@mui/icons-material/InfoOutlined"),u=require("@mui/icons-material/Close"),f=require("@mui/material/Table"),s=require("@mui/material/TableBody"),m=require("@mui/material/TableCell"),p=require("@mui/material/TableContainer"),g=require("@mui/material/TableHead"),h=require("@mui/material/TableRow"),b=require("@mui/material/TablePagination"),x=require("@mui/material/TableSortLabel"),y=require("@mui/material/TableFooter");function v(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function E(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var w=v(t),k=E(t),z=v(o),C=v(n),T=v(a),S=v(l),O=v(i),M=v(c),F=v(d),P=v(u),B=v(f),R=v(s),j=v(m),L=v(p),q=v(g),I=v(h),W=v(b),H=v(x),A=v(y),D={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"}}},Z=function(){return Z=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},Z.apply(this,arguments)};function N(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r}var $={styleOverrides:{root:{fontSize:"12px",fontWeight:600,fontFamily:D.font.family.text,"& .MuiChip-icon":{width:"12px",height:"12px",marginLeft:D.size.spacing.scale8}},colorDefault:{backgroundColor:D.color.gray10,color:D.color.gray60},colorPrimary:{backgroundColor:D.color.indigo10,color:D.color.indigo80},colorSecondary:{backgroundColor:D.color.pink10,color:D.color.pink80},colorError:{backgroundColor:D.color.red10,color:D.color.error},colorInfo:{backgroundColor:D.color.indigo10,color:D.color.indigo80},colorSuccess:{backgroundColor:D.color.green10,color:D.color.green80}}},_={h1:{fontFamily:D.font.family.heading,fontSize:D.size.font.heading.default,fontWeight:D.font.weight.bold,lineHeight:D.font.lineHeight.xlarge},h2:{fontFamily:D.font.family.heading,fontSize:D.size.font.heading.small,fontWeight:D.font.weight.bold,lineHeight:D.font.lineHeight.xlarge},h3:{fontFamily:D.font.family.heading,fontSize:D.size.font.heading.xsmall,fontWeight:D.font.weight.bold,lineHeight:D.font.lineHeight.large},body1:{fontFamily:D.font.family.text,fontSize:D.size.font.body.default,fontWeight:D.font.weight.normal,lineHeight:D.font.lineHeight.large},body2:{fontFamily:D.font.family.text,fontSize:D.size.font.body.default,fontWeight:D.font.weight.bold,lineHeight:D.font.lineHeight.large},caption:{fontFamily:D.font.family.text,fontSize:D.size.font.caption.default,fontWeight:D.font.weight.normal,lineHeight:D.font.lineHeight.medium},overline:{fontFamily:D.font.family.heading,fontSize:D.size.font.overline.default,letterSpacing:"initial",fontWeight:D.font.weight.bold,color:D.color.gray60}},G={small:"".concat(D.size.spacing.scale4," ").concat(D.size.spacing.scale8),medium:"".concat(D.size.spacing.scale8," ").concat(D.size.spacing.scale16),large:"".concat(D.size.spacing.scale16," ").concat(D.size.spacing.scale32)},V={styleOverrides:{root:{textTransform:"none",lineHeight:D.size.spacing.scale16,fontWeight:D.font.weight.bold,fontFamily:D.font.family.text,boxShadow:"none"},contained:{padding:G.medium,color:D.color.gray0},outlinedSuccess:{color:D.color.green60},containedSuccess:{backgroundColor:D.color.green60},containedSizeSmall:{padding:G.small},containedSizeLarge:{padding:G.large},text:{padding:G.medium},textSizeSmall:{padding:G.small},textSizeLarge:{padding:G.large},outlined:{padding:"7px ".concat(D.size.spacing.scale16)},outlinedSizeSmall:{padding:G.small},outlinedSizeLarge:{padding:G.large},sizeSmall:{fontSize:D.size.font.label.default},sizeLarge:{fontSize:D.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"}}}},X={styleOverrides:{root:{color:D.color.gray60,backgroundColor:D.color.background.dark},sizeSmall:{padding:"3px"}}},U={styleOverrides:{root:{fontFamily:D.font.family.text,fontSize:D.size.font.label.default,fontWeight:D.font.weight.bold,width:D.size.spacing.scale24,height:D.size.spacing.scale24,"& .MuiSvgIcon-root":{width:D.size.spacing.scale16}},colorDefault:{backgroundColor:D.color.background.dark,"& .MuiSvgIcon-root":{color:D.color.gray60}}}},K={styleOverrides:{root:{paddingTop:4,paddingBottom:4,color:D.color.border.default,"& svg":{width:"16px",height:"16px"},"&&:hover":{backgroundColor:"transparent"}},colorPrimary:{"&$checked":{"&&:hover":{backgroundColor:"transparent"}}},colorSecondary:{"&$checked":{color:D.color.primary},"&$disabled":{opacity:.5}}}},J={styleOverrides:{root:{paddingTop:4,paddingBottom:4,color:D.color.border.default,"& svg":{width:"16px",height:"16px"},"&:hover":{background:"none"}}}},Q={styleOverrides:{root:{marginRight:16},colorSecondary:{color:D.color.gray0,"&$checked":{color:D.color.gray0,left:2,"&:hover":{backgroundColor:"transparent"}},"&$disabled":{color:D.color.gray0}},track:{position:"absolute",width:48,height:24,borderRadius:12,opacity:1,left:"calc(50% - 48px/2)",top:"calc(50% - 24px/2)",backgroundColor:D.color.background.light,border:"2px solid ".concat(D.color.border.default),boxSizing:"border-box","$checked$checked + &":{opacity:1,backgroundColor:D.color.primary,border:"2px solid ".concat(D.color.primary)},"$disabled$disabled + &":{opacity:.5,cursor:"not-allowed"}},thumb:{boxShadow:"none"}}},Y={styleOverrides:{root:{"& .MuiInputAdornment-root":{button:{padding:"0 ".concat(D.size.spacing.scale8," 0 0"),backgroundColor:"transparent"},svg:{width:D.size.spacing.scale16,height:D.size.spacing.scale16}}}}},ee={styleOverrides:{input:{"&.Mui-disabled":{backgroundColor:D.color.background.dark,color:D.color.text.light}}},defaultProps:{size:"small"}},te={styleOverrides:{outlined:{notchedOutline:{borderColor:D.color.border.default}},root:{underline:{"&:before":{borderBottom:"none"},"&:after":{borderBottom:"none"},"&:hover":{borderBottom:"none"},"&&:hover::before":{border:"none"}}}}},re={styleOverrides:{root:{width:"100%","& .MuiFormHelperText-root":{marginTop:D.size.spacing.scale8,marginLeft:0}}}},oe={styleOverrides:{root:{fontSize:D.size.font.base,color:D.color.text.base}}},ne={styleOverrides:{root:{borderBottom:"1px solid ".concat(D.color.gray20)},indicator:{backgroundColor:D.color.primary}}},ae={styleOverrides:{textColorPrimary:{textTransform:"none",minWidth:"auto",fontWeight:700,marginRight:"".concat(D.size.spacing.scale16),fontFamily:D.font.family.text,color:D.color.gray60,padding:"0 0 ".concat(D.size.spacing.scale16," 0"),"&:hover":{color:D.color.primary,opacity:1},"&$selected":{color:D.color.primary},"&:focus":{color:D.color.primary}}},defaultProps:{disableRipple:!0}},le={styleOverrides:{root:{fontWeight:D.font.weight.normal}}},ie={styleOverrides:{root:{fontWeight:D.font.weight.normal},head:{fontWeight:D.font.weight.bold}}},ce={styleOverrides:{root:{borderTop:"1px solid ".concat(D.color.border.default)}}},de={styleOverrides:{root:{borderBottom:"none","& .MuiIconButton-root":{backgroundColor:"transparent"}},selectLabel:{fontWeight:D.font.weight.normal,fontSize:D.size.font.caption.default},displayedRows:{fontWeight:D.font.weight.normal,fontSize:D.size.font.caption.default}}},ue=function(e){var t;return(t={})[{error:"&-standardError",success:"&-standardSuccess",info:"&-standardInfo"}[e]]={"& .MuiAlertTitle-root":{color:D.color["success"===e?"green60":e],fontFamily:D.font.family.text,lineHeight:D.font.lineHeight.medium,fontWeight:D.font.weight.bold,fontSize:D.size.font.caption.default}},t},fe={fontSize:D.size.font.caption.default,lineHeight:D.font.lineHeight.medium,fontWeight:D.font.weight.normal},se={styleOverrides:{root:Z(Z({width:328,borderRadius:6,backgroundColor:D.color.gray0,boxShadow:"0px 8px 16px rgba(18, 19, 21, 0.08)",color:D.color.text.light,padding:"".concat(D.size.spacing.scale8," ").concat(D.size.spacing.scale16)},fe),{"& p, & span":Z({},fe),"& .MuiAlert-action":{button:{width:D.size.spacing.scale16,height:D.size.spacing.scale16,backgroundColor:D.color.background.light},svg:{width:14,height:14,fill:D.color.gray60}},"&.MuiAlert":Z(Z(Z({},ue("error")),ue("success")),ue("info"))}),icon:{svg:{width:20,height:20}}}};D.size.font.body.default,D.font.family.text,D.color.gray100,D.size.font.caption.default;var me,pe,ge,he,be={styleOverrides:{root:{fontWeight:D.font.weight.bold,lineHeight:D.font.lineHeight.medium,fontFamily:D.font.family.text,fontSize:D.size.font.caption.default,color:D.color.text.base,marginBottom:D.size.spacing.scale8}}},xe=e.createTheme({typography:Z({},_),palette:{background:{default:"#ffffff"},primary:{main:D.color.primary},secondary:{main:D.color.secondary},error:{main:D.color.error},info:{main:D.color.info},success:{main:D.color.success}},components:{MuiButton:V,MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0}},MuiContainer:{styleOverrides:{maxWidthLg:{"@media (min-width: 1280px)":{maxWidth:"1185px"}}}},MuiIconButton:X,MuiChip:$,MuiInput:te,MuiInputBase:ee,MuiFormControl:re,MuiFormControlLabel:oe,MuiTextField:Y,MuiFormLabel:be,MuiTabs:ne,MuiTab:ae,MuiAvatar:U,MuiCheckbox:K,MuiRadio:J,MuiSwitch:Q,MuiLink:{styleOverrides:{root:{cursor:"pointer"}}},MuiTable:le,MuiTableCell:ie,MuiTableRow:{styleOverrides:{root:{"&:last-child td":{borderBottom:0}}}},MuiTableFooter:ce,MuiTablePagination:de,MuiAlert:se,MuiDivider:{styleOverrides:{root:{margin:"16px 0"}}}}}),ye=r.styled(e.CircularProgress)(ge||(me=["\n position: absolute;\n width: 100%;\n height: 100%;\n z-index: 2;\n display: flex;\n align-items: center;\n justify-content: center;\n"],pe=["\n position: absolute;\n width: 100%;\n height: 100%;\n z-index: 2;\n display: flex;\n align-items: center;\n justify-content: center;\n"],Object.defineProperty?Object.defineProperty(me,"raw",{value:pe}):me.raw=pe,ge=me)),ve=function(e){var t=e.color,r=void 0===t?"primary":t,o=e.variant,n=void 0===o?"contained":o,a=e.size,l=void 0===a?"medium":a,i=e.loading,c=e.children,d=e.innerRef,u=N(e,["color","variant","size","loading","children","innerRef"]);return w.default.createElement(z.default,Z({size:l,variant:n,color:r,disabled:i},u,{ref:d}),w.default.createElement("span",{style:{opacity:i?0:1}},c),i&&w.default.createElement(ye,{size:20,color:"inherit"}))},Ee=w.default.forwardRef((function(e,t){return w.default.createElement(ve,Z({},e,{innerRef:t}))})),we=function(e){var t=e.children,r=N(e,["children"]);return w.default.createElement(C.default,Z({},r),t)},ke=function(t){var r=t.icon,o=t.firstName,n=void 0===o?"":o,a=t.lastName,l=void 0===a?"":a,i=t.sx,c=t.innerRef,d=N(t,["icon","firstName","lastName","sx","innerRef"]),u="".concat(n.substring(0,1)).concat(l.substring(0,1)).toLocaleUpperCase(),f=u?D.color.secondary:D.color.background.dark;return w.default.createElement(e.Avatar,Z({sx:Z(Z({},i),{backgroundColor:f}),ref:c},d),u||r)},ze=w.default.forwardRef((function(e,t){return w.default.createElement(ke,Z({},e,{innerRef:t}))})),Ce={small:6,medium:8,large:12,fluid:12},Te=function(t){var r=t.children,o=t.ref,n=N(t,["children","ref"]);return w.default.createElement(e.Box,Z({},n,{ref:o}),r)},Se=w.default.forwardRef((function(e,t){return w.default.createElement(Te,Z({},e,{ref:t}))})),Oe=function(t){var r=N(t,[]);return w.default.createElement(e.Checkbox,Z({},r))},Me=function(t){var r=t.label,o=t.htmlFor,n=t.required,a=void 0===n||n;return w.default.createElement(e.FormLabel,{component:"label",htmlFor:o},r,!a&&w.default.createElement(e.Box,{ml:1,component:"span",sx:{fontWeight:D.font.weight.normal,color:D.color.text.light}},"(optional)"))},Fe=function(t){var r=t.id,o=t.label,n=t.required,a=t.component,l=void 0===a?"div":a,i=t.disabled,c=t.data,d=t.error,u=t.helperText,f=t.sx,s=N(t,["id","label","required","component","disabled","data","error","helperText","sx"]);return w.default.createElement(e.FormControl,{component:l,error:d,disabled:i,sx:f},w.default.createElement(Me,{label:o,required:n,htmlFor:r}),w.default.createElement(e.FormGroup,null,c.map((function(t,o){var n=t.value,a=t.label;return w.default.createElement(e.FormControlLabel,{key:o,value:n,label:a||"",control:w.default.createElement(Oe,Z({color:"primary",inputProps:{"data-testid":"".concat(r,"-").concat(o)}},s))})}))),d&&w.default.createElement(e.FormHelperText,{error:d},u))},Pe=w.default.forwardRef((function(e,t){return w.default.createElement(Fe,Z({inputRef:t},e))})),Be=function(t){return w.default.createElement(e.Radio,Z({},t))},Re=function(t){var r=t.id,o=t.required,n=t.component,a=void 0===n?"div":n,l=t.disabled,i=t.data,c=t.label,d=t.error,u=t.sx,f=t.helperText,s=t.inputRef,m=N(t,["id","required","component","disabled","data","label","error","sx","helperText","inputRef"]);return w.default.createElement(e.FormControl,{component:a,error:d,disabled:l,sx:u},w.default.createElement(Me,{label:c,required:o,htmlFor:r}),w.default.createElement(e.RadioGroup,Z({},m),i.map((function(t,o){var n=t.value,a=t.label,l=t.message;return w.default.createElement(w.default.Fragment,null,w.default.createElement(e.FormControlLabel,{value:n,key:n,label:a||"",control:w.default.createElement(Be,{color:"primary",inputProps:{"data-testid":"".concat(r,"-").concat(o)},inputRef:s})}),l&&w.default.createElement(we,{variant:"caption",marginLeft:D.size.spacing.scale24,color:D.color.text.light,mb:1},l))}))),d&&f&&w.default.createElement(e.FormHelperText,{error:d},f))},je=w.default.forwardRef((function(e,t){return w.default.createElement(Re,Z({inputRef:t},e))})),Le=function(t){return w.default.createElement(e.Switch,Z({},t))},qe=function(t){var r=t.component,o=void 0===r?"div":r,n=t.disabled,a=t.label,l=t.error,i=t.sx,c=N(t,["component","disabled","label","error","sx"]);return w.default.createElement(e.FormControl,{component:o,error:l,disabled:n,sx:Z({mb:2},i)},w.default.createElement(e.FormLabel,{component:"label"},a),w.default.createElement(Le,Z({},c)))},Ie=w.default.forwardRef((function(e,t){return w.default.createElement(qe,Z({inputRef:t},e))})),We=function(t){return w.default.createElement(e.Select,Z({variant:"outlined"},t))},He=function(t){var r=t.id,o=t.required,n=t.component,a=void 0===n?"div":n,l=t.disabled,i=t.label,c=t.error,d=t.helperText,u=t.sx,f=t.options,s=N(t,["id","required","component","disabled","label","error","helperText","sx","options"]);return w.default.createElement(e.FormControl,{component:a,error:c,disabled:l,sx:u},w.default.createElement(Me,{label:i,required:o,htmlFor:r}),w.default.createElement(We,Z({},s,{error:c,inputProps:{id:r,"data-testid":r}}),f.map((function(t){return w.default.createElement(e.MenuItem,{key:t.value,value:t.value},t.text)}))),c&&d&&w.default.createElement(e.FormHelperText,{error:c},d))},Ae=w.default.forwardRef((function(e,t){return w.default.createElement(He,Z({inputRef:t},e))})),De=function(r){var o=r.type,n=N(r,["type"]),a=t.useState(!1),l=a[0],i=a[1],c=Z(Z({},n.InputProps),"password"===o&&{endAdornment:w.default.createElement(T.default,{position:"end"},w.default.createElement(S.default,{"aria-label":"toggle password visibility",onClick:function(){return i(!l)},edge:"end"},l?w.default.createElement(O.default,null):w.default.createElement(M.default,null)))});return w.default.createElement(e.TextField,Z({},n,{type:l?"text":o,InputProps:c}))},Ze=function(t){var r=t.id,o=t.component,n=void 0===o?"div":o,a=t.required,l=t.disabled,i=t.label,c=t.error,d=t.helperText,u=t.sx,f=N(t,["id","component","required","disabled","label","error","helperText","sx"]);return w.default.createElement(e.FormControl,{component:n,error:c,disabled:l,sx:u},w.default.createElement(Me,{label:i,required:a,htmlFor:r}),w.default.createElement(De,Z({},f,{id:r,error:c,inputProps:{"data-testid":r},disabled:l,helperText:d})))},Ne=w.default.forwardRef((function(e,t){return w.default.createElement(Ze,Z({inputRef:t},e))}));function $e(){return $e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},$e.apply(this,arguments)}var _e,Ge,Ve=function(e){return k.createElement("svg",$e({viewBox:"0 0 24 24"},e),he||(he=k.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 Xe(){return Xe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Xe.apply(this,arguments)}var Ue,Ke,Je=function(e){return k.createElement("svg",Xe({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),_e||(_e=k.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"})),Ge||(Ge=k.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 Qe(){return Qe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Qe.apply(this,arguments)}var Ye,et,tt=function(e){return k.createElement("svg",Qe({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Ue||(Ue=k.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"})),Ke||(Ke=k.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 rt(){return rt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},rt.apply(this,arguments)}var ot=function(e){return k.createElement("svg",rt({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Ye||(Ye=k.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"})),et||(et=k.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"})))},nt=function(t){var r=t.children,o=N(t,["children"]);return w.default.createElement(e.Tabs,Z({},o),r)},at=function(t){var r=t.children,o=N(t,["children"]);return w.default.createElement(e.Tab,Z({},o),r)},lt=function(e){var t=e.children,r=e.value,o=void 0===r?0:r,n=e.index,a=e.id;return w.default.createElement(Se,{role:"tabpanel",hidden:o!==n,id:a},t)},it=function(t){var r=t.children,o=N(t,["children"]);return w.default.createElement(e.Alert,Z({},o,{iconMapping:{info:w.default.createElement(e.SvgIcon,{component:tt,sx:{color:D.color.primary}}),success:w.default.createElement(e.SvgIcon,{component:ot,sx:{color:D.color.green60}}),error:w.default.createElement(e.SvgIcon,{component:Je,sx:{color:D.color.error}})}}),r)},ct={background:{info:D.color.indigo10,success:D.color.green10,error:D.color.red10},font:{info:D.color.primary,success:D.color.green60,error:D.color.error}};exports.Alert=function(t){var r=t.type,o=void 0===r?"success":r,n=t.title,a=t.children,l=N(t,["type","title","children"]);return w.default.createElement(it,Z({severity:o},l),n&&w.default.createElement(e.AlertTitle,null,e.capitalize(n)),a)},exports.Avatar=ze,exports.Banner=function(t){var r=t.type,o=void 0===r?"info":r,n=t.variant,a=void 0===n?"stacked":n,l=t.title,i=t.onDismiss,c=t.children,d=t.actionLabel,u=t.actionProps,f=N(t,["type","variant","title","onDismiss","children","actionLabel","actionProps"]),s=function(e){return{get layout(){var t="stacked"===e;return{margin:{mb:t?2:0,mr:t?0:2},padding:{py:t?1:0},position:{display:t?"block":"flex",justifyContent:t?"initial":"center",alignItems:t?"initial":"center"}}}}}(a).layout;return w.default.createElement(it,Z({},f,{severity:o,sx:Z(Z({},f.sx),{backgroundColor:ct.background[o],boxShadow:"initial",width:"initial",py:s.padding.py,justifyContent:s.position.justifyContent,".MuiAlert-icon":Z(Z({},s.position),{mr:1,svg:{width:16,height:16}}),".MuiAlert-message":Z({},s.position),".MuiAlertTitle-root":Z({},s.margin),".banner-content":Z(Z({},s.position),{"&__message":Z({},s.margin)})})}),w.default.createElement(e.AlertTitle,null,e.capitalize(l)),w.default.createElement(e.Box,{display:"block",className:"banner-content"},w.default.createElement(e.Box,{sx:{color:ct.font[o]},className:"banner-content__message"},c),d&&w.default.createElement(e.Button,Z({},u,{size:"small",variant:"contained",color:o}),d),i&&w.default.createElement(e.Button,{onClick:i,size:"small",variant:"outlined",sx:{py:"3px",ml:2,backgroundColor:D.color.gray0,":hover":{backgroundColor:D.color.gray0}},color:o},"Dismiss")))},exports.Box=Se,exports.Button=Ee,exports.Checkbox=Oe,exports.Chip=function(t){var r=t.label,o=N(t,["label"]);return w.default.createElement(e.Chip,Z({size:"small",label:r},o))},exports.Container=function(t){var r=t.component,o=void 0===r?"div":r,n=t.size,a=void 0===n?"large":n,l=t.children,i=N(t,["component","size","children"]),c="fluid"===a;return w.default.createElement(e.Container,Z({component:o,disableGutters:c,maxWidth:!c&&"lg",sx:Z({display:"flex",justifyContent:"center"},i.sx)},i),w.default.createElement(e.Grid,{container:!0,justifyContent:"center"},w.default.createElement(e.Grid,{item:!0,md:Ce[a]},l)))},exports.EmptyState=function(t){var r=t.icon,o=t.title,n=t.subTitle,a=t.action,l=N(t,["icon","title","subTitle","action"]);return w.default.createElement(e.Box,Z({p:4,display:"flex",flexDirection:"column",alignItems:"center"},l),w.default.createElement(e.SvgIcon,{component:null!=r?r:F.default,sx:{marginBottom:D.size.spacing.scale24,fontSize:D.size.spacing.scale104,color:D.color.gray20}}),w.default.createElement(we,{variant:"h1",component:"span",mb:2},o),w.default.createElement(we,{variant:"body1",color:D.color.gray60,mb:3},n),a)},exports.FormCheckbox=Pe,exports.FormInput=Ne,exports.FormRadio=je,exports.FormSelect=Ae,exports.FormSwitch=Ie,exports.Input=De,exports.Link=function(t){var r,o=t.children,n=t.underline,a=void 0===n?"hover":n,l=t.toParentNavigation,i=N(t,["children","underline","toParentNavigation"]),c=null===(r=i.href)||void 0===r?void 0:r.startsWith("https"),d={underline:a};return l?w.default.createElement(e.Link,Z({},d,i,{onClick:function(){return e=l,void window.parent.postMessage({type:"NAVIGATION",content:e},"*");var e}}),o):w.default.createElement(e.Link,Z({},d,c&&{target:"_blank",rel:"noopener noreferrer"},i),o,c&&w.default.createElement(e.SvgIcon,{component:Ve,fontSize:"inherit",sx:{marginLeft:".25em"}}))},exports.Modal=function(t){var r=t.title,o=t.subtitle,n=t.children,a=t.actions,l=t.open,i=t.maxWidth,c=void 0===i?552:i,d=t.onClose,u=N(t,["title","subtitle","children","actions","open","maxWidth","onClose"]);return w.default.createElement(e.Modal,Z({open:l,onClose:d,closeAfterTransition:!0,BackdropProps:{timeout:500}},u),w.default.createElement(e.Fade,{in:l},w.default.createElement(e.Box,{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},w.default.createElement(e.Card,{sx:{maxWidth:c,outline:"none"}},w.default.createElement(e.CardContent,null,w.default.createElement(e.Box,{display:"flex",justifyContent:"space-between",alignItems:"center"},w.default.createElement(e.Typography,{variant:"h2"},r),d&&w.default.createElement(e.IconButton,{onClick:function(e){return d(e,"escapeKeyDown")},sx:{padding:"0"}},w.default.createElement(P.default,{sx:{fontSize:"16px"}}))),o&&w.default.createElement(e.Box,null,w.default.createElement(e.Typography,{variant:"body1",color:"textSecondary"},o)),w.default.createElement(e.Divider,null),n,a&&w.default.createElement(w.default.Fragment,null,w.default.createElement(e.Divider,null),w.default.createElement(e.Box,null,a)))))))},exports.Radio=Be,exports.Select=We,exports.Switch=Le,exports.Tab=at,exports.TabGroup=function(e){var r=e.tabs,o=e.nameSpace,n=e.tabContentProps,a=e.tabsProps,l=t.useState(0),i=l[0],c=l[1],d=o?"".concat(o,"-"):"";return w.default.createElement(w.default.Fragment,null,w.default.createElement(nt,Z({},a,{value:i,onChange:function(e,t){c(t)}}),r.map((function(e,t){return w.default.createElement(at,{key:"".concat(d,"tab-").concat(t),label:e.label,"aria-controls":"".concat(d,"panel-").concat(t)})}))),w.default.createElement(Se,Z({},n),r.map((function(e,t){var r="".concat(d,"panel-").concat(t);return w.default.createElement(lt,{key:r,value:i,index:t,id:r,"aria-labelledby":"".concat(d,"tab-").concat(t)},e.content)}))))},exports.Table=function(e){var t=e.children,r=N(e,["children"]);return w.default.createElement(B.default,Z({},r),t)},exports.TableBody=function(e){var t=e.children,r=N(e,["children"]);return w.default.createElement(R.default,Z({},r),t)},exports.TableCell=function(e){var t=e.children,r=N(e,["children"]);return w.default.createElement(j.default,Z({},r),t)},exports.TableContainer=function(e){var t=e.children,r=N(e,["children"]);return w.default.createElement(L.default,Z({},r),t)},exports.TableFooter=function(e){var t=e.children,r=N(e,["children"]);return w.default.createElement(A.default,Z({},r),t)},exports.TableHead=function(e){var t=e.children,r=N(e,["children"]);return w.default.createElement(q.default,Z({},r),t)},exports.TablePagination=function(e){var t=N(e,[]);return w.default.createElement(W.default,Z({},t))},exports.TableRow=function(e){var t=e.children,r=N(e,["children"]);return w.default.createElement(I.default,Z({},r),t)},exports.TableSortLabel=function(e){var t=e.children,r=N(e,["children"]);return w.default.createElement(H.default,Z({},r),t)},exports.Tabs=nt,exports.Tooltip=function(t){var r=t.children,o=N(t,["children"]);return w.default.createElement(e.Tooltip,Z({},o),r)},exports.Typography=we,exports.UpComponentsProvider=function(t){return w.default.createElement(w.default.Fragment,null,w.default.createElement(e.CssBaseline,null),w.default.createElement(r.ThemeProvider,{theme:xe},t.children))},exports.theme=xe,exports.tokens=D,Object.keys(e).forEach((function(t){"default"===t||exports.hasOwnProperty(t)||Object.defineProperty(exports,t,{enumerable:!0,get:function(){return e[t]}})}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AlertProps as MUIALertProps } from '@mui/material';
|
|
3
|
+
export declare type AlertColor = 'info' | 'error' | 'success';
|
|
4
|
+
export declare type AlertProps = Omit<MUIALertProps, 'color' | 'elevation' | 'iconMapping' | 'severity' | 'square' | 'variant' | 'action'> & {
|
|
5
|
+
type?: AlertColor;
|
|
6
|
+
};
|
|
7
|
+
export declare const AlertBase: ({ children, ...props }: MUIALertProps) => JSX.Element;
|
|
8
|
+
/**
|
|
9
|
+
* Documentation: https://up-components.up42.dev/?path=/docs/feedback-alert
|
|
10
|
+
*/
|
|
11
|
+
export declare const Alert: ({ type, title, children, ...props }: AlertProps) => JSX.Element;
|
|
@@ -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 {};
|
|
@@ -6,4 +6,11 @@ export declare type AvatarProps = MUIGlobalOmit<Omit<MUIAvatarProps, 'children'
|
|
|
6
6
|
lastName?: string;
|
|
7
7
|
icon?: React.ReactNode;
|
|
8
8
|
}>;
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Documentation: https://up-components.up42.dev/?path=/story/data-display-avatar
|
|
11
|
+
*/
|
|
12
|
+
export declare const Avatar: React.ForwardRefExoticComponent<Pick<{
|
|
13
|
+
firstName?: string | undefined;
|
|
14
|
+
lastName?: string | undefined;
|
|
15
|
+
icon?: React.ReactNode;
|
|
16
|
+
} & Omit<Omit<MUIAvatarProps<"div", {}>, "children" | "variant" | "src" | "alt" | "sizes" | "srcSet" | "imgProps">, "disableFocusRipple" | "disableRipple" | "classes" | "tabIndex" | "action" | "centerRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "disableElevation" | "touchRippleRef">, "color" | "translate" | "icon" | "className" | "style" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "sx" | "key" | "firstName" | "lastName"> & React.RefAttributes<unknown>>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ButtonProps } from '../Button/Button';
|
|
3
|
+
import { AlertProps } from '../Alert/Alert';
|
|
4
|
+
export declare type BannerProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Call To Action label
|
|
7
|
+
* */
|
|
8
|
+
actionLabel?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Call To Action button props
|
|
11
|
+
* */
|
|
12
|
+
actionProps?: ButtonProps;
|
|
13
|
+
/**
|
|
14
|
+
* ### Stacked
|
|
15
|
+
* Stacked banners are contextual and should be placed within the page content.
|
|
16
|
+
*
|
|
17
|
+
* ### Inline
|
|
18
|
+
* Inline banners can be displayed prominently at the top of the screen (below the navigation) or contextually within the page content. Inline banners can be global or page specific.
|
|
19
|
+
*/
|
|
20
|
+
variant?: 'stacked' | 'inline';
|
|
21
|
+
/**
|
|
22
|
+
* Callback fired when the Banner requests to be dismissed.
|
|
23
|
+
*/
|
|
24
|
+
onDismiss?: ButtonProps['onClick'];
|
|
25
|
+
title: string;
|
|
26
|
+
} & Omit<AlertProps, 'title' | 'closeText' | 'icon' | 'role' | 'onClose'>;
|
|
27
|
+
/**
|
|
28
|
+
* Documentation: https://up-components.up42.dev/?path=/docs/feedback-banner
|
|
29
|
+
*/
|
|
30
|
+
export declare const Banner: ({ type, variant, title, onDismiss, children, actionLabel, actionProps, ...props }: BannerProps) => JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story, Meta } from '@storybook/react';
|
|
3
|
+
import { BannerProps } from './Banner';
|
|
4
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Default: Story<BannerProps>;
|
|
7
|
+
export declare const Stacked: () => JSX.Element;
|
|
8
|
+
export declare const Dismissible: () => JSX.Element;
|
|
9
|
+
export declare const Inline: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { BoxProps as MUIBoxProps } from '@mui/material';
|
|
3
3
|
import { MUIGlobalOmit } from '@global/utils/types';
|
|
4
4
|
export declare type BoxProps = MUIGlobalOmit<MUIBoxProps>;
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Documentation: https://up-components.up42.dev/?path=/story/layout-box
|
|
7
|
+
*/
|
|
8
|
+
export declare const Box: React.ForwardRefExoticComponent<Pick<Omit<MUIBoxProps<"div", {}>, "disableFocusRipple" | "disableRipple" | "classes" | "tabIndex" | "action" | "centerRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "disableElevation" | "touchRippleRef">, "translate" | "className" | "style" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "sx" | "key" | ("alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "typography" | "p" | "displayPrint" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "marginX" | "marginY" | "paddingX" | "paddingY") | "component"> & React.RefAttributes<unknown>>;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ButtonProps as MUIButtonProps } from '@mui/material/Button';
|
|
3
3
|
import { MUIGlobalOmit } from '@global/utils/types';
|
|
4
4
|
export declare type ButtonProps = MUIGlobalOmit<MUIButtonProps, {
|
|
5
5
|
loading?: boolean;
|
|
6
6
|
}>;
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Documentation: https://up-components.up42.dev/?path=/story/data-entry-button
|
|
9
|
+
*/
|
|
10
|
+
export declare const Button: React.ForwardRefExoticComponent<Pick<{
|
|
11
|
+
loading?: boolean | undefined;
|
|
12
|
+
} & Omit<MUIButtonProps<"button", {}>, "disableFocusRipple" | "disableRipple" | "classes" | "tabIndex" | "action" | "centerRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "disableElevation" | "touchRippleRef">, "color" | "translate" | "startIcon" | "endIcon" | "size" | "fullWidth" | "className" | "style" | "form" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "disabled" | "onFocusVisible" | "sx" | "key" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "variant" | "href" | "loading"> & React.RefAttributes<unknown>>;
|
|
@@ -10,16 +10,16 @@ export declare type FormCheckboxProps<C extends React.ElementType = 'div'> = Che
|
|
|
10
10
|
/**
|
|
11
11
|
* Documentation: https://up-components.up42.dev/?path=/story/patterns-form
|
|
12
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, "
|
|
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
14
|
children?: React.ReactNode;
|
|
15
15
|
component?: React.ElementType<any> | undefined;
|
|
16
16
|
ref?: React.Ref<unknown> | undefined;
|
|
17
17
|
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
18
18
|
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
19
19
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
20
|
-
}, 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" | "
|
|
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
21
|
data: {
|
|
22
22
|
value: string | number;
|
|
23
23
|
label?: string;
|
|
24
24
|
}[];
|
|
25
|
-
}, "translate" | "size" | 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" | "
|
|
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>>;
|
|
@@ -5,11 +5,11 @@ export declare type FormInputProps<C extends React.ElementType = 'div'> = InputP
|
|
|
5
5
|
/**
|
|
6
6
|
* Documentation: https://up-components.up42.dev/?path=/story/patterns-form
|
|
7
7
|
*/
|
|
8
|
-
export declare const FormInput: React.ForwardRefExoticComponent<Pick<InputProps & Pick<import("@mui/material").TextFieldProps, "
|
|
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
9
|
children?: React.ReactNode;
|
|
10
10
|
component?: React.ElementType<any> | undefined;
|
|
11
11
|
ref?: React.Ref<unknown> | undefined;
|
|
12
12
|
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
13
13
|
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
14
14
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
15
|
-
}, 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" | "
|
|
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>>;
|
|
@@ -13,18 +13,18 @@ export declare type FormRadioProps<C extends React.ElementType = 'div'> = RadioG
|
|
|
13
13
|
/**
|
|
14
14
|
* Documentation: https://up-components.up42.dev/?path=/story/patterns-form
|
|
15
15
|
*/
|
|
16
|
-
export declare const FormRadio: React.ForwardRefExoticComponent<Pick<RadioGroupProps & Pick<import("@mui/material").TextFieldProps, "
|
|
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
17
|
children?: React.ReactNode;
|
|
18
18
|
component?: React.ElementType<any> | undefined;
|
|
19
19
|
ref?: React.Ref<unknown> | undefined;
|
|
20
20
|
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
21
21
|
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
22
22
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
23
|
-
}, 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" | "
|
|
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
24
|
inputRef?: RadioProps['inputRef'];
|
|
25
25
|
data: {
|
|
26
26
|
value: string | number;
|
|
27
27
|
label?: string;
|
|
28
28
|
message?: string;
|
|
29
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" | "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" | "
|
|
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>>;
|