@clearstory/drywall-react 4.2.4 → 5.0.0
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/{Accordion-x2-hHKwH.js → Accordion-C_yI4NIT.js} +5 -5
- package/dist/{AccordionActions-iSi8MMm_.js → AccordionActions-Wf3AwoVV.js} +1 -1
- package/dist/{AccordionDetails-C717_t1Z.js → AccordionDetails-CGg8oTXq.js} +2 -2
- package/dist/{AccordionSummary-BRXA9lGJ.js → AccordionSummary-s_e0_jOV.js} +3 -3
- package/dist/{AdapterDayjs-B-aQ7t7H.js → AdapterDayjs-CIhTqrWH.js} +2 -2
- package/dist/{Alert-CuHm3vf9.js → Alert-DQykJi33.js} +7 -7
- package/dist/{AlertTitle-DmFGN0zD.js → AlertTitle-6hrZBrCc.js} +3 -3
- package/dist/{ArrowDropDown-CGLljubQ.js → ArrowDropDown-DyZudwyd.js} +2 -2
- package/dist/{Autocomplete-FWamSgvx.js → Autocomplete-C33OrHHX.js} +372 -370
- package/dist/{Avatar-By-aMv28.js → Avatar-CyKty5CU.js} +3 -3
- package/dist/{AvatarGroup-B9R2KeDi.js → AvatarGroup-BInG92qO.js} +4 -4
- package/dist/{Backdrop-CNKXfinV.js → Backdrop-ChSlSuYH.js} +2 -2
- package/dist/{Badge-I9F5BedB.js → Badge-B7ezRJwv.js} +3 -3
- package/dist/{Box-CRpDZJO_.js → Box-D994ipAZ.js} +4 -4
- package/dist/{Breadcrumbs-Bgf4ieo2.js → Breadcrumbs-C7XE9TUb.js} +6 -6
- package/dist/{Button-BlRsbuwB.js → Button-Dk2VBOh0.js} +5 -5
- package/dist/{ButtonBase-Cs4TbfAo.js → ButtonBase-BpCn2e9l.js} +60 -52
- package/dist/{ButtonGroup-BSlLdpN8.js → ButtonGroup-BanvjPsF.js} +93 -87
- package/dist/{Card-C1uxdRhW.js → Card-CTOkU3AU.js} +2 -2
- package/dist/{CardActionArea-BjhV8BbB.js → CardActionArea-D5hvpGji.js} +3 -3
- package/dist/{CardActions-CzziOWZT.js → CardActions-yPKmWv-H.js} +1 -1
- package/dist/{CardContent-D8YnorHr.js → CardContent-ZRIy7F6z.js} +1 -1
- package/dist/{CardHeader-BkWz6cub.js → CardHeader-BCOnxMHd.js} +2 -2
- package/dist/{CardMedia-BZV-hoLx.js → CardMedia-WNfpA2zA.js} +1 -1
- package/dist/{Checkbox-CPm8wVXm.js → Checkbox-BTL6zZV3.js} +5 -5
- package/dist/{Chip-teUQj1Br.js → Chip-CeH0opSw.js} +85 -78
- package/dist/{CircularProgress-CK8Z6nsP.js → CircularProgress-Qy7A2NPV.js} +3 -3
- package/dist/{Clear-Bnp01YyW.js → Clear-C7q09Ww4.js} +1 -1
- package/dist/{Close-DeDd1tSW.js → Close-28GNVfyf.js} +1 -1
- package/dist/{Close-DBCdaBsC.js → Close-iIk04qB2.js} +1 -1
- package/dist/{Collapse-DSDublNm.js → Collapse-B21Un8fT.js} +4 -4
- package/dist/{CssBaseline-CqWMIWyO.js → CssBaseline-6HfZG-O9.js} +2 -2
- package/dist/{Datepicker-BvCR9LUk.js → Datepicker-DD9e0ctT.js} +1889 -1845
- package/dist/{Dialog-DlE5bGiD.js → Dialog-BMkdvBHA.js} +8 -8
- package/dist/{DialogActions-B0ukhUln.js → DialogActions-DwqbdYeY.js} +1 -1
- package/dist/{DialogContent-DW5dE1Vi.js → DialogContent-DbeYeFlD.js} +2 -2
- package/dist/{DialogContentText-CYMmddWD.js → DialogContentText-Cu3XFvLA.js} +2 -2
- package/dist/{DialogTitle-DPNf3_DS.js → DialogTitle-Caqzbzj_.js} +2 -2
- package/dist/{Divider-BrLu1ruy.js → Divider-B9H6iIxz.js} +2 -2
- package/dist/{Drawer-DKwUGu3u.js → Drawer-CAv9o3tm.js} +7 -7
- package/dist/{Fade-BkDpgBI1.js → Fade-A_UchBOH.js} +1 -1
- package/dist/{FormControl-SJ7nmkLi.js → FormControl-BDhAmhH5.js} +11 -11
- package/dist/{FormControlLabel-DT4oY6Jb.js → FormControlLabel-ByTbrCD5.js} +4 -4
- package/dist/{FormGroup-liXpqRx1.js → FormGroup-C9hwav--.js} +1 -1
- package/dist/{FormHelperText-Dh36nlW5.js → FormHelperText-DkPKXA6k.js} +10 -10
- package/dist/{FormLabel-Cq6v8zn0.js → FormLabel-IN8pc15T.js} +3 -3
- package/dist/{GlobalStyles-BdRA9CMx.js → GlobalStyles-24Nh1HWp.js} +2 -2
- package/dist/{Grow-CsltKHld.js → Grow-BMsXTwJH.js} +1 -1
- package/dist/{IconButton-RfVV5QBc.js → IconButton-BAxK7-IJ.js} +9 -9
- package/dist/{Info-Cykl51qM.js → Info-DYeQDm-h.js} +1 -1
- package/dist/{InputAdornment-BZDlmn1r.js → InputAdornment-C0-tBzhV.js} +4 -4
- package/dist/{InputBase-C3EkH03W.js → InputBase-CK6qEkFU.js} +4 -4
- package/dist/{KeyboardArrowRight-BeJOYZQI.js → KeyboardArrowRight-CZwVvPwH.js} +1 -1
- package/dist/{LinearProgress-DEF8RpGt.js → LinearProgress-BW1D3S4o.js} +3 -3
- package/dist/{Link-BuN8Z9Km.js → Link-Dj1oW_B_.js} +5 -5
- package/dist/{List-CHaEYTNC.js → List-BQBC5UAt.js} +1 -1
- package/dist/{ListItem-7eb43107.js → ListItem-BHstsn6H.js} +156 -143
- package/dist/{ListItemAvatar-rfKjhSyA.js → ListItemAvatar-DsPxxokd.js} +1 -1
- package/dist/{ListItemButton-C0Q-hiwk.js → ListItemButton-DhvvOROc.js} +3 -3
- package/dist/{ListItemIcon-j7UyIrVT.js → ListItemIcon-COLCfa5I.js} +2 -2
- package/dist/{ListItemText-BGJkY3NK.js → ListItemText-CVpaCuRU.js} +2 -2
- package/dist/{ListSubheader-CrHcPoc5.js → ListSubheader-ZfVZwpBt.js} +3 -3
- package/dist/{Menu-D1SO5erH.js → Menu-QIR9I0fi.js} +4 -4
- package/dist/{MenuItem-a1ebEYtF.js → MenuItem-zOWqJfh9.js} +3 -3
- package/dist/{MenuList-Di43Or7f.js → MenuList-Bp48Ab5F.js} +16 -15
- package/dist/{Modal-9MD4qkqe.js → Modal-D5YqsCJC.js} +249 -246
- package/dist/{Paper-CillS6ZD.js → Paper-DWrmqOg9.js} +4 -4
- package/dist/{Popover-CeKBDf1E.js → Popover-CJMphrzS.js} +4 -4
- package/dist/{Popper-C6wdLC8n.js → Popper-BG-Fmxvb.js} +1 -1
- package/dist/{Radio-BZYnjZGa.js → Radio-CyNfzA7F.js} +10 -10
- package/dist/{RadioGroup-B_oZGEe4.js → RadioGroup-BXRupvlk.js} +1 -1
- package/dist/{Select-B6vD2SgN.js → Select-CsGlMf66.js} +354 -350
- package/dist/{Skeleton-dB0amZ86.js → Skeleton-Agk933wV.js} +2 -2
- package/dist/{Slide-DH1MNrW5.js → Slide-BSx4P5wi.js} +1 -1
- package/dist/{Snackbar-CStc3hrX.js → Snackbar-DPLaR_J7.js} +7 -9
- package/dist/{Step-CV3A4LpO.js → Step-9yR9vvnx.js} +1 -1
- package/dist/{StepButton-BBi5-y1-.js → StepButton-BoSDmtoO.js} +3 -3
- package/dist/{StepConnector-BuYXen1O.js → StepConnector-CWFluIpg.js} +3 -3
- package/dist/{StepContent-DuLdAkaj.js → StepContent-DOxvgy_S.js} +3 -3
- package/dist/{StepIcon-BGJV3ex5.js → StepIcon-DC4TprJy.js} +4 -4
- package/dist/{StepLabel-CzlfRONI.js → StepLabel-B-VRsD45.js} +3 -3
- package/dist/{Stepper-CidMCT4v.js → Stepper-CjJxTXt3.js} +2 -2
- package/dist/{SvgIcon-BH0vQ_GU.js → SvgIcon-BY0YatF5.js} +3 -3
- package/dist/{Switch-DEHarJQv.js → Switch-DBjsfSeC.js} +4 -4
- package/dist/{SwitchBase-CI3CocUb.js → SwitchBase-MpRavUOy.js} +13 -13
- package/dist/{Tab-Bli-yyJs.js → Tab-jZ25NKxn.js} +10 -10
- package/dist/{Table-BBCGDmoE.js → Table-EzIrcbFo.js} +2 -2
- package/dist/{TableBody-UFw650kZ.js → TableBody-CAryi1qZ.js} +1 -1
- package/dist/{TableCell-BCcCX1o0.js → TableCell-COWq5POr.js} +3 -3
- package/dist/{TableContainer-B8VlqYma.js → TableContainer-Bp7fIsJs.js} +1 -1
- package/dist/{TableFooter-BaTiFVSU.js → TableFooter-zHqRu_3G.js} +1 -1
- package/dist/{TableHead-CIA-5L7E.js → TableHead-D-RsRaXy.js} +1 -1
- package/dist/{TablePagination-DyQMglQB.js → TablePagination-BsU2V4Tr.js} +10 -10
- package/dist/{TableRow-kwIao0PS.js → TableRow-BxD13v9r.js} +2 -2
- package/dist/{Tabs-C0clNfdI.js → Tabs-BgwHyeLe.js} +43 -42
- package/dist/{ThemeProviderWithVars-5x9PPela.js → ThemeProviderWithVars-BLXq3E3r.js} +4 -5
- package/dist/{ToggleButton-Bxt1wAl-.js → ToggleButton-D_OHozvx.js} +4 -4
- package/dist/{ToggleButtonGroup-BU7q7tWs.js → ToggleButtonGroup-BEM6-tyO.js} +62 -56
- package/dist/{Toolbar-CdyTRFTH.js → Toolbar-RfOCT9pS.js} +2 -2
- package/dist/{Tooltip-D_k6EcdK.js → Tooltip-CZJgBQSd.js} +6 -6
- package/dist/{Typography-CmmKlAgs.js → Typography-7XxDpBjP.js} +4 -4
- package/dist/{WarningAmberOutlined-GOlm4GU9.js → WarningAmberOutlined-DA3_ce6m.js} +1 -1
- package/dist/{Zoom-DjCniHY2.js → Zoom-DaoDggO-.js} +1 -1
- package/dist/{ZoomOut-Ci4YyGNB.js → ZoomOut-D7iBSQjt.js} +1 -1
- package/dist/components/Accordion/index.js +1 -1
- package/dist/components/AccordionActions/index.js +1 -1
- package/dist/components/AccordionDetails/index.js +1 -1
- package/dist/components/AccordionSummary/index.js +1 -1
- package/dist/components/Alert/index.js +1 -1
- package/dist/components/AlertTitle/index.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +5 -4
- package/dist/components/Autocomplete/index.js +1 -1
- package/dist/components/AutocompleteControl/AutocompleteControl.d.ts +5 -4
- package/dist/components/AutocompleteControl/AutocompleteControl.js +27 -26
- package/dist/components/Avatar/index.js +1 -1
- package/dist/components/AvatarGroup/index.js +1 -1
- package/dist/components/Backdrop/index.js +1 -1
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/Box/index.js +1 -1
- package/dist/components/Breadcrumbs/index.js +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonBase/index.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.theme.js +10 -6
- package/dist/components/ButtonGroup/index.js +6 -7
- package/dist/components/Card/index.js +1 -1
- package/dist/components/CardActionArea/index.js +1 -1
- package/dist/components/CardActions/index.js +1 -1
- package/dist/components/CardContent/index.js +1 -1
- package/dist/components/CardHeader/index.js +1 -1
- package/dist/components/CardMedia/index.js +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/Chip/Chip.theme.js +19 -10
- package/dist/components/Chip/index.js +3 -4
- package/dist/components/CircularProgress/index.js +1 -1
- package/dist/components/Collapse/index.js +1 -1
- package/dist/components/Container/index.js +1 -1
- package/dist/components/CssBaseline/index.js +1 -1
- package/dist/components/Datepicker/Datepicker.js +4 -4
- package/dist/components/Datepicker/index.js +2 -2
- package/dist/components/DatepickerControl/DatepickerControl.d.ts +7 -25
- package/dist/components/DatepickerControl/DatepickerControl.js +32 -62
- package/dist/components/DescriptionDetails/DescriptionDetails.js +1 -1
- package/dist/components/DescriptionList/DescriptionList.js +1 -1
- package/dist/components/DescriptionTerm/DescriptionTerm.js +1 -1
- package/dist/components/Dialog/index.js +1 -1
- package/dist/components/DialogActions/index.js +1 -1
- package/dist/components/DialogClose/DialogClose.js +2 -2
- package/dist/components/DialogContent/index.js +1 -1
- package/dist/components/DialogContentText/index.js +1 -1
- package/dist/components/DialogTitle/index.js +1 -1
- package/dist/components/Divider/index.js +1 -1
- package/dist/components/Drawer/index.js +1 -1
- package/dist/components/Fade/index.js +1 -1
- package/dist/components/FormControl/index.js +1 -1
- package/dist/components/FormControlLabel/index.js +1 -1
- package/dist/components/FormGroup/index.js +1 -1
- package/dist/components/FormHelperText/index.js +1 -1
- package/dist/components/FormLabel/index.js +1 -1
- package/dist/components/FormSublabel/FormSublabel.js +2 -2
- package/dist/components/Grow/index.js +1 -1
- package/dist/components/IconButton/index.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/InputAdornment/index.js +1 -1
- package/dist/components/InputControl/InputControl.d.ts +5 -4
- package/dist/components/InputControl/InputControl.js +28 -26
- package/dist/components/LinearProgress/index.js +1 -1
- package/dist/components/Link/index.js +1 -1
- package/dist/components/List/index.js +1 -1
- package/dist/components/ListItem/index.js +1 -1
- package/dist/components/ListItemAvatar/index.js +1 -1
- package/dist/components/ListItemButton/index.js +1 -1
- package/dist/components/ListItemIcon/index.js +1 -1
- package/dist/components/ListItemText/index.js +1 -1
- package/dist/components/ListSubheader/index.js +1 -1
- package/dist/components/Menu/index.js +1 -1
- package/dist/components/MenuItem/index.js +1 -1
- package/dist/components/MenuList/index.js +1 -1
- package/dist/components/NumberInput/NumberInput.d.ts +2 -0
- package/dist/components/NumberInput/NumberInput.js +26 -24
- package/dist/components/NumberInputControl/NumberInputControl.d.ts +4 -3
- package/dist/components/NumberInputControl/NumberInputControl.js +28 -26
- package/dist/components/Paper/index.js +1 -1
- package/dist/components/Popover/index.js +1 -1
- package/dist/components/Popper/index.js +1 -1
- package/dist/components/Radio/index.js +1 -1
- package/dist/components/RadioGroup/index.js +1 -1
- package/dist/components/Select/Select.js +1 -1
- package/dist/components/Select/index.js +1 -1
- package/dist/components/SelectControl/SelectControl.d.ts +5 -4
- package/dist/components/SelectControl/SelectControl.js +28 -26
- package/dist/components/Skeleton/index.js +1 -1
- package/dist/components/Slide/index.js +1 -1
- package/dist/components/Snackbar/index.js +1 -1
- package/dist/components/Stack/index.js +1 -1
- package/dist/components/Step/index.js +1 -1
- package/dist/components/StepButton/index.js +1 -1
- package/dist/components/StepConnector/index.js +1 -1
- package/dist/components/StepContent/index.js +1 -1
- package/dist/components/StepIcon/index.js +1 -1
- package/dist/components/StepLabel/index.js +1 -1
- package/dist/components/Stepper/index.js +1 -1
- package/dist/components/SvgIcon/index.js +1 -1
- package/dist/components/Switch/index.js +1 -1
- package/dist/components/Tab/index.js +1 -1
- package/dist/components/Table/index.js +1 -1
- package/dist/components/TableBody/index.js +1 -1
- package/dist/components/TableCell/index.js +1 -1
- package/dist/components/TableContainer/index.js +1 -1
- package/dist/components/TableFooter/index.js +1 -1
- package/dist/components/TableHead/index.js +1 -1
- package/dist/components/TablePagination/index.js +1 -1
- package/dist/components/TableRow/index.js +1 -1
- package/dist/components/Tabs/index.js +1 -1
- package/dist/components/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/components/ToastContainer/ToastContainer.js +1 -1
- package/dist/components/ToastContainer/useToast.js +5 -5
- package/dist/components/ToggleButton/index.js +1 -1
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.theme.js +9 -3
- package/dist/components/ToggleButtonGroup/index.js +3 -4
- package/dist/components/Toolbar/index.js +1 -1
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/components/Typography/index.js +1 -1
- package/dist/components/Zoom/index.js +1 -1
- package/dist/{containerClasses-D9GgrugO.js → containerClasses-BOpxBboC.js} +16 -16
- package/dist/{createSvgIcon-CE5_EBKI.js → createSvgIcon-BSvHnj9_.js} +1 -1
- package/dist/{createTheme-C8al1H6l.js → createTheme-DHUIafsh.js} +3 -3
- package/dist/defaultTheme-BvWB-Z-U.js +5 -0
- package/dist/eslint-config/no-system-props.js +41 -104
- package/dist/{extendSxProp-DPJMnqJC.js → extendSxProp-BK1wn2VP.js} +1 -1
- package/dist/getActiveElement-DQsgVmYn.js +9 -0
- package/dist/icons/ClearstoryIcon.js +1 -1
- package/dist/icons/InternalOnlyIcon.js +1 -1
- package/dist/icons/MoneyBucketIcon.js +1 -1
- package/dist/icons/MoreCircleOutlineIcon.js +1 -1
- package/dist/icons/index.js +5 -5
- package/dist/{index-CFunVsti.js → index-B0sssNPS.js} +1 -1
- package/dist/{index-DKMUcCLE.js → index-BCBnk-9Z.js} +1 -1
- package/dist/{index-CSb2qOUI.js → index-C-86S9Tq.js} +3 -3
- package/dist/main.js +411 -410
- package/dist/{memoTheme-D_KVIx9Z.js → memoTheme-BWS_82XE.js} +1 -1
- package/dist/{stackClasses-Byw0GYkA.js → stackClasses-Bd9a0jxO.js} +5 -5
- package/dist/{styled-SBTDGe0C.js → styled-BGhco0UA.js} +3 -3
- package/dist/styled-BKha85Jg.js +5 -0
- package/dist/theme/index.d.ts +1 -1
- package/dist/theme/index.js +23 -19
- package/dist/theme/internal.js +1 -1
- package/dist/{useTheme-Ixs7c498.js → useTheme-DNEoTUfV.js} +1 -1
- package/dist/{useTheme-BRcg8wFh.js → useTheme-rxhFY1gT.js} +2 -2
- package/dist/{useThemeProps-BXLYmQ1k.js → useThemeProps-Dz0XskTc.js} +1 -1
- package/package.json +9 -9
- package/dist/buttonGroupClasses-Df0-l-eH.js +0 -10
- package/dist/chipClasses-C45yHx_l.js +0 -10
- package/dist/defaultTheme-DDzCZLdJ.js +0 -5
- package/dist/eslint-config/no-system-props.test.d.ts +0 -1
- package/dist/styled-BH7aTmBf.js +0 -5
- package/dist/toggleButtonGroupClasses-BomKNKPA.js +0 -10
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as s } from "react";
|
|
3
3
|
import { useDescriptionListContext as a } from "../DescriptionList/DescriptionListContext.js";
|
|
4
|
-
import { T as e } from "../../Typography-
|
|
4
|
+
import { T as e } from "../../Typography-7XxDpBjP.js";
|
|
5
5
|
const c = s(({ variant: t = "body2", sx: o, ...i }, n) => {
|
|
6
6
|
const r = a()?.spacing;
|
|
7
7
|
return /* @__PURE__ */ p(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as m } from "react";
|
|
3
3
|
import { DescriptionListContext as p } from "./DescriptionListContext.js";
|
|
4
|
-
import { B as s } from "../../Box-
|
|
4
|
+
import { B as s } from "../../Box-D994ipAZ.js";
|
|
5
5
|
const n = m(({ spacing: r, children: i, ...t }, e) => /* @__PURE__ */ o(p.Provider, { value: { spacing: r }, children: /* @__PURE__ */ o(s, { component: "dl", ref: e, ...t, children: i }) }));
|
|
6
6
|
n.displayName = "DescriptionList";
|
|
7
7
|
export {
|
|
@@ -3,8 +3,8 @@ import "../../icons/ClearstoryIcon.js";
|
|
|
3
3
|
import "../../icons/InternalOnlyIcon.js";
|
|
4
4
|
import "../../icons/MoneyBucketIcon.js";
|
|
5
5
|
import "../../icons/MoreCircleOutlineIcon.js";
|
|
6
|
-
import { C as i } from "../../Close-
|
|
7
|
-
import { I as m } from "../../IconButton-
|
|
6
|
+
import { C as i } from "../../Close-28GNVfyf.js";
|
|
7
|
+
import { I as m } from "../../IconButton-BAxK7-IJ.js";
|
|
8
8
|
const f = ({ sx: o, ...t }) => /* @__PURE__ */ r(
|
|
9
9
|
m,
|
|
10
10
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as r } from "../../styled-
|
|
2
|
-
import { F as o } from "../../FormHelperText-
|
|
1
|
+
import { s as r } from "../../styled-BGhco0UA.js";
|
|
2
|
+
import { F as o } from "../../FormHelperText-DkPKXA6k.js";
|
|
3
3
|
const a = r(o)(() => ({
|
|
4
4
|
marginBlockStart: 0,
|
|
5
5
|
marginBlockEnd: "3px",
|
|
@@ -5,17 +5,18 @@ import { FormLabelProps } from '../FormLabel';
|
|
|
5
5
|
import { FormSublabelProps } from '../FormSublabel';
|
|
6
6
|
import { InputProps } from '../Input';
|
|
7
7
|
type DOMEventHandlers = keyof DOMAttributes<HTMLElement>;
|
|
8
|
-
export interface InputControlProps extends Omit<InputProps, "ref" | "slotProps"> {
|
|
8
|
+
export interface InputControlProps extends Omit<InputProps, "ref" | "slotProps" | "sx"> {
|
|
9
9
|
helperText?: ReactNode;
|
|
10
10
|
label: ReactNode;
|
|
11
11
|
slotProps?: {
|
|
12
|
-
root?: Partial<Omit<FormControlProps, DOMEventHandlers>>;
|
|
13
|
-
label?: Partial<Omit<FormLabelProps, "children" | DOMEventHandlers>>;
|
|
14
|
-
sublabel?: Partial<Omit<FormSublabelProps, "children" | DOMEventHandlers>>;
|
|
15
12
|
helperText?: Partial<Omit<FormHelperTextProps, "children" | DOMEventHandlers>>;
|
|
16
13
|
input?: InputProps["slotProps"];
|
|
14
|
+
label?: Partial<Omit<FormLabelProps, "children" | DOMEventHandlers>>;
|
|
15
|
+
root?: Partial<Omit<FormControlProps, DOMEventHandlers>>;
|
|
16
|
+
sublabel?: Partial<Omit<FormSublabelProps, "children" | DOMEventHandlers>>;
|
|
17
17
|
};
|
|
18
18
|
sublabel?: ReactNode;
|
|
19
|
+
sx?: FormControlProps["sx"];
|
|
19
20
|
tooltip?: ReactNode;
|
|
20
21
|
}
|
|
21
22
|
export declare const InputControl: ForwardRefExoticComponent<InputControlProps & RefAttributes<HTMLInputElement>>;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsxs as c, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { FormSublabel as
|
|
4
|
-
import { Input as
|
|
5
|
-
import { useId as
|
|
2
|
+
import { forwardRef as F } from "react";
|
|
3
|
+
import { FormSublabel as y } from "../FormSublabel/FormSublabel.js";
|
|
4
|
+
import { Input as g } from "../Input/Input.js";
|
|
5
|
+
import { useId as w } from "../../hooks/useId.js";
|
|
6
6
|
import "../../icons/ClearstoryIcon.js";
|
|
7
7
|
import "../../icons/InternalOnlyIcon.js";
|
|
8
8
|
import "../../icons/MoneyBucketIcon.js";
|
|
9
9
|
import "../../icons/MoreCircleOutlineIcon.js";
|
|
10
|
-
import { I as
|
|
11
|
-
import { F as
|
|
12
|
-
import { B as
|
|
13
|
-
import { F as
|
|
14
|
-
import { T
|
|
15
|
-
import { F as
|
|
16
|
-
const
|
|
10
|
+
import { I as B } from "../../Info-DYeQDm-h.js";
|
|
11
|
+
import { F as C } from "../../FormControl-BDhAmhH5.js";
|
|
12
|
+
import { B as $ } from "../../Box-D994ipAZ.js";
|
|
13
|
+
import { F as j } from "../../FormLabel-IN8pc15T.js";
|
|
14
|
+
import { T } from "../../Tooltip-CZJgBQSd.js";
|
|
15
|
+
import { F as k } from "../../FormHelperText-DkPKXA6k.js";
|
|
16
|
+
const v = F(
|
|
17
17
|
({
|
|
18
18
|
disabled: a,
|
|
19
19
|
error: n,
|
|
@@ -24,20 +24,22 @@ const k = u(
|
|
|
24
24
|
required: b,
|
|
25
25
|
slotProps: o,
|
|
26
26
|
sublabel: p,
|
|
27
|
+
sx: I,
|
|
27
28
|
tooltip: l,
|
|
28
29
|
...i
|
|
29
|
-
},
|
|
30
|
-
const
|
|
30
|
+
}, h) => {
|
|
31
|
+
const x = w("input"), t = f || x, e = m ? `${t}-helper` : void 0;
|
|
31
32
|
return /* @__PURE__ */ c(
|
|
32
|
-
|
|
33
|
+
C,
|
|
33
34
|
{
|
|
34
35
|
disabled: a,
|
|
35
36
|
error: n,
|
|
36
37
|
fullWidth: d,
|
|
38
|
+
sx: I,
|
|
37
39
|
...o?.root,
|
|
38
40
|
children: [
|
|
39
41
|
/* @__PURE__ */ c(
|
|
40
|
-
|
|
42
|
+
$,
|
|
41
43
|
{
|
|
42
44
|
sx: {
|
|
43
45
|
alignItems: "center",
|
|
@@ -46,7 +48,7 @@ const k = u(
|
|
|
46
48
|
},
|
|
47
49
|
children: [
|
|
48
50
|
/* @__PURE__ */ r(
|
|
49
|
-
|
|
51
|
+
j,
|
|
50
52
|
{
|
|
51
53
|
htmlFor: t,
|
|
52
54
|
required: b,
|
|
@@ -54,11 +56,11 @@ const k = u(
|
|
|
54
56
|
children: s
|
|
55
57
|
}
|
|
56
58
|
),
|
|
57
|
-
l && /* @__PURE__ */ r(
|
|
58
|
-
|
|
59
|
+
l && /* @__PURE__ */ r(T, { title: l, arrow: !0, children: /* @__PURE__ */ r(
|
|
60
|
+
B,
|
|
59
61
|
{
|
|
60
|
-
sx: ({ vars:
|
|
61
|
-
color:
|
|
62
|
+
sx: ({ vars: u }) => ({
|
|
63
|
+
color: u?.palette.text.secondary,
|
|
62
64
|
marginBlockEnd: "3px",
|
|
63
65
|
height: "1rem",
|
|
64
66
|
width: "1rem"
|
|
@@ -68,11 +70,11 @@ const k = u(
|
|
|
68
70
|
]
|
|
69
71
|
}
|
|
70
72
|
),
|
|
71
|
-
p && /* @__PURE__ */ r(
|
|
73
|
+
p && /* @__PURE__ */ r(y, { ...o?.sublabel, children: p }),
|
|
72
74
|
/* @__PURE__ */ r(
|
|
73
|
-
|
|
75
|
+
g,
|
|
74
76
|
{
|
|
75
|
-
ref:
|
|
77
|
+
ref: h,
|
|
76
78
|
disabled: a,
|
|
77
79
|
error: n,
|
|
78
80
|
fullWidth: d,
|
|
@@ -82,13 +84,13 @@ const k = u(
|
|
|
82
84
|
...i
|
|
83
85
|
}
|
|
84
86
|
),
|
|
85
|
-
m && /* @__PURE__ */ r(
|
|
87
|
+
m && /* @__PURE__ */ r(k, { id: e, ...o?.helperText, children: m })
|
|
86
88
|
]
|
|
87
89
|
}
|
|
88
90
|
);
|
|
89
91
|
}
|
|
90
92
|
);
|
|
91
|
-
|
|
93
|
+
v.displayName = "InputControl";
|
|
92
94
|
export {
|
|
93
|
-
|
|
95
|
+
v as InputControl
|
|
94
96
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { NumberFormatValues, SourceInfo } from 'react-number-format';
|
|
2
|
+
import { SxProps, Theme } from '@mui/material';
|
|
2
3
|
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
4
|
export interface NumberInputProps {
|
|
4
5
|
defaultValue?: string | number | null;
|
|
@@ -18,6 +19,7 @@ export interface NumberInputProps {
|
|
|
18
19
|
error?: boolean;
|
|
19
20
|
fullWidth?: boolean;
|
|
20
21
|
size?: "small" | "medium";
|
|
22
|
+
sx?: SxProps<Theme>;
|
|
21
23
|
onBlur?: React.FocusEventHandler<HTMLInputElement>;
|
|
22
24
|
onFocus?: React.FocusEventHandler<HTMLInputElement>;
|
|
23
25
|
onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;
|
|
@@ -261,7 +261,7 @@ function Ye(e) {
|
|
|
261
261
|
O === void 0 && (O = Je);
|
|
262
262
|
var R = e.isValidInputCharacter;
|
|
263
263
|
R === void 0 && (R = ae);
|
|
264
|
-
var M = e.isCharacterSame, _ = xe(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]),
|
|
264
|
+
var M = e.isCharacterSame, _ = xe(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), P = De(d, x, !!V, f, m, S), L = P[0], b = L.formattedValue, j = L.numAsString, U = P[1], k = X(), W = X({ formattedValue: b, numAsString: j }), $ = function(o, u) {
|
|
265
265
|
W.current = { formattedValue: o.formattedValue, numAsString: o.value }, U(o, u);
|
|
266
266
|
}, H = pe(!1), ee = H[0], s = H[1], v = X(null), D = X({
|
|
267
267
|
setCaretTimeout: null,
|
|
@@ -314,7 +314,7 @@ function Ye(e) {
|
|
|
314
314
|
}
|
|
315
315
|
}, [b]);
|
|
316
316
|
var ue = function(o, u, c) {
|
|
317
|
-
var I = u.target, F =
|
|
317
|
+
var I = u.target, F = k.current ? $e(k.current, I.selectionEnd) : we(b, o), C = Object.assign(Object.assign({}, F), { lastValue: b }), y = m(o, C), K = E(y);
|
|
318
318
|
if (y = m(K, void 0), g && !g(B(K, y))) {
|
|
319
319
|
var G = u.target, Z = ce(G), le = J(o, b, Z);
|
|
320
320
|
return G.value = b, A(G, le, b), !1;
|
|
@@ -330,10 +330,10 @@ function Ye(e) {
|
|
|
330
330
|
}, fe = function(o, u) {
|
|
331
331
|
u === void 0 && (u = 0);
|
|
332
332
|
var c = o.selectionStart, I = o.selectionEnd;
|
|
333
|
-
|
|
333
|
+
k.current = { selectionStart: c, selectionEnd: I + u };
|
|
334
334
|
}, Ie = function(o) {
|
|
335
335
|
var u = o.target, c = u.value, I = ue(c, o, te.event);
|
|
336
|
-
I && h(o),
|
|
336
|
+
I && h(o), k.current = void 0;
|
|
337
337
|
}, Ce = function(o) {
|
|
338
338
|
var u = o.target, c = o.key, I = u.selectionStart, F = u.selectionEnd, C = u.value;
|
|
339
339
|
C === void 0 && (C = "");
|
|
@@ -444,12 +444,12 @@ function ar(e, r, t) {
|
|
|
444
444
|
return A && (T = 2), T && (v = v.substring(T), D -= T, E -= T), { value: v, start: D, end: E, hasNegation: B };
|
|
445
445
|
}, O = d(e, S, g), R = O.hasNegation;
|
|
446
446
|
n = O, e = n.value, S = n.start, g = n.end;
|
|
447
|
-
var M = d(r.lastValue, x.start, x.end), _ = M.start,
|
|
448
|
-
e.length &&
|
|
447
|
+
var M = d(r.lastValue, x.start, x.end), _ = M.start, P = M.end, L = M.value, b = e.substring(S, g);
|
|
448
|
+
e.length && L.length && (_ > L.length - f.length || P < i.length) && !(b && f.startsWith(b)) && (e = L);
|
|
449
449
|
var j = 0;
|
|
450
450
|
e.startsWith(i) ? j += i.length : S < i.length && (j = S), e = e.substring(j), g -= j;
|
|
451
|
-
var U = e.length,
|
|
452
|
-
e.endsWith(f) ? U =
|
|
451
|
+
var U = e.length, k = e.length - f.length;
|
|
452
|
+
e.endsWith(f) ? U = k : (g > k || g > e.length - f.length) && (U = g), e = e.substring(0, U), e = er(R ? "-" + e : e, a), e = (e.match(rr(l)) || []).join("");
|
|
453
453
|
var W = e.indexOf(l);
|
|
454
454
|
e = e.replace(new RegExp(ye(l), "g"), function(v, D) {
|
|
455
455
|
return D === W ? "." : "";
|
|
@@ -499,9 +499,9 @@ function or(e) {
|
|
|
499
499
|
return ar(s, v, e);
|
|
500
500
|
}, M = Y(g) ? S : g, _ = h ?? tr(M, V, r);
|
|
501
501
|
Y(g) ? Y(S) || (_ = _ || typeof S == "number") : _ = _ || typeof g == "number";
|
|
502
|
-
var
|
|
502
|
+
var P = function(s) {
|
|
503
503
|
return Ve(s) ? s : (typeof s == "number" && (s = Ne(s)), _ && typeof m == "number" ? me(s, m, !!x) : s);
|
|
504
|
-
},
|
|
504
|
+
}, L = De(P(g), P(S), !!_, O, R, p), b = L[0], j = b.numAsString, U = b.formattedValue, k = L[1], W = function(s) {
|
|
505
505
|
var v = s.target, D = s.key, E = v.selectionStart, B = v.selectionEnd, A = v.value;
|
|
506
506
|
if (A === void 0 && (A = ""), (D === "Backspace" || D === "Delete") && B < V.length) {
|
|
507
507
|
s.preventDefault();
|
|
@@ -518,7 +518,7 @@ function or(e) {
|
|
|
518
518
|
var v = j;
|
|
519
519
|
if (v.match(/\d/g) || (v = ""), n || (v = We(v)), x && m && (v = me(v, m, x)), v !== j) {
|
|
520
520
|
var D = Se(v, e);
|
|
521
|
-
|
|
521
|
+
k({
|
|
522
522
|
formattedValue: D,
|
|
523
523
|
value: v,
|
|
524
524
|
floatValue: parseFloat(v)
|
|
@@ -541,7 +541,7 @@ function or(e) {
|
|
|
541
541
|
valueIsNumericString: !1,
|
|
542
542
|
isValidInputCharacter: H,
|
|
543
543
|
isCharacterSame: ee,
|
|
544
|
-
onValueChange:
|
|
544
|
+
onValueChange: k,
|
|
545
545
|
format: O,
|
|
546
546
|
removeFormatting: R,
|
|
547
547
|
getCaretBoundary: function(s) {
|
|
@@ -574,16 +574,17 @@ const fr = je(
|
|
|
574
574
|
error: l,
|
|
575
575
|
fullWidth: N = !0,
|
|
576
576
|
size: w = "small",
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
577
|
+
sx: d,
|
|
578
|
+
onBlur: O,
|
|
579
|
+
onFocus: R,
|
|
580
|
+
onKeyDown: M,
|
|
581
|
+
valueIsNumericString: _,
|
|
582
|
+
...P
|
|
583
|
+
}, L) => /* @__PURE__ */ Te(
|
|
583
584
|
ur,
|
|
584
585
|
{
|
|
585
586
|
customInput: Me,
|
|
586
|
-
getInputRef:
|
|
587
|
+
getInputRef: L,
|
|
587
588
|
allowNegative: e,
|
|
588
589
|
decimalScale: r,
|
|
589
590
|
fixedDecimalScale: t,
|
|
@@ -594,7 +595,7 @@ const fr = je(
|
|
|
594
595
|
onValueChange: m,
|
|
595
596
|
defaultValue: x,
|
|
596
597
|
value: V,
|
|
597
|
-
valueIsNumericString:
|
|
598
|
+
valueIsNumericString: _,
|
|
598
599
|
id: S,
|
|
599
600
|
name: g,
|
|
600
601
|
placeholder: h,
|
|
@@ -602,10 +603,11 @@ const fr = je(
|
|
|
602
603
|
error: l,
|
|
603
604
|
fullWidth: N,
|
|
604
605
|
size: w,
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
606
|
+
sx: d,
|
|
607
|
+
onBlur: O,
|
|
608
|
+
onFocus: R,
|
|
609
|
+
onKeyDown: M,
|
|
610
|
+
...P
|
|
609
611
|
}
|
|
610
612
|
)
|
|
611
613
|
);
|
|
@@ -5,17 +5,18 @@ import { FormLabelProps } from '../FormLabel';
|
|
|
5
5
|
import { FormSublabelProps } from '../FormSublabel';
|
|
6
6
|
import { NumberInputProps } from '../NumberInput';
|
|
7
7
|
type DOMEventHandlers = keyof DOMAttributes<HTMLElement>;
|
|
8
|
-
export interface NumberInputControlProps extends Omit<NumberInputProps, "ref"> {
|
|
8
|
+
export interface NumberInputControlProps extends Omit<NumberInputProps, "ref" | "sx"> {
|
|
9
9
|
helperText?: ReactNode;
|
|
10
10
|
label: ReactNode;
|
|
11
11
|
required?: boolean;
|
|
12
12
|
slotProps?: {
|
|
13
|
-
|
|
13
|
+
helperText?: Partial<Omit<FormHelperTextProps, "children" | DOMEventHandlers>>;
|
|
14
14
|
label?: Partial<Omit<FormLabelProps, "children" | DOMEventHandlers>>;
|
|
15
|
+
root?: Partial<Omit<FormControlProps, DOMEventHandlers>>;
|
|
15
16
|
sublabel?: Partial<Omit<FormSublabelProps, "children" | DOMEventHandlers>>;
|
|
16
|
-
helperText?: Partial<Omit<FormHelperTextProps, "children" | DOMEventHandlers>>;
|
|
17
17
|
};
|
|
18
18
|
sublabel?: ReactNode;
|
|
19
|
+
sx?: FormControlProps["sx"];
|
|
19
20
|
tooltip?: ReactNode;
|
|
20
21
|
}
|
|
21
22
|
export declare const NumberInputControl: ForwardRefExoticComponent<NumberInputControlProps & RefAttributes<HTMLInputElement>>;
|