@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,11 +1,11 @@
|
|
|
1
1
|
import { P as e } from "./index-CyAhC1RZ.js";
|
|
2
|
-
import { s as y } from "./styled-
|
|
2
|
+
import { s as y } from "./styled-BGhco0UA.js";
|
|
3
3
|
import * as T from "react";
|
|
4
4
|
import { c as v } from "./clsx-OuTLNxxd.js";
|
|
5
5
|
import { jsx as O } from "react/jsx-runtime";
|
|
6
|
-
import { s as k } from "./styled-
|
|
7
|
-
import { u as G } from "./useThemeProps-
|
|
8
|
-
import {
|
|
6
|
+
import { s as k } from "./styled-BKha85Jg.js";
|
|
7
|
+
import { u as G } from "./useThemeProps-Dz0XskTc.js";
|
|
8
|
+
import { h as u, m as R } from "./createTheme-DHUIafsh.js";
|
|
9
9
|
import { c as M } from "./composeClasses-2Ou-RZJr.js";
|
|
10
10
|
import { g as x } from "./generateUtilityClass-BhfUaMgk.js";
|
|
11
11
|
import { u as j } from "./DefaultPropsProvider-Hks9kyHW.js";
|
|
@@ -25,21 +25,21 @@ const P = R(), S = k("div", {
|
|
|
25
25
|
defaultTheme: P
|
|
26
26
|
}), U = (o, s) => {
|
|
27
27
|
const i = (n) => x(s, n), {
|
|
28
|
-
classes:
|
|
28
|
+
classes: c,
|
|
29
29
|
fixed: l,
|
|
30
30
|
disableGutters: d,
|
|
31
31
|
maxWidth: t
|
|
32
32
|
} = o, a = {
|
|
33
33
|
root: ["root", t && `maxWidth${u(String(t))}`, l && "fixed", d && "disableGutters"]
|
|
34
34
|
};
|
|
35
|
-
return M(a, i,
|
|
35
|
+
return M(a, i, c);
|
|
36
36
|
};
|
|
37
37
|
function D(o = {}) {
|
|
38
38
|
const {
|
|
39
39
|
// This will allow adding custom styled fn (for example for custom sx style function)
|
|
40
40
|
createStyledComponent: s = S,
|
|
41
41
|
useThemeProps: i = $,
|
|
42
|
-
componentName:
|
|
42
|
+
componentName: c = "MuiContainer"
|
|
43
43
|
} = o, l = s(({
|
|
44
44
|
theme: t,
|
|
45
45
|
ownerState: a
|
|
@@ -61,8 +61,8 @@ function D(o = {}) {
|
|
|
61
61
|
theme: t,
|
|
62
62
|
ownerState: a
|
|
63
63
|
}) => a.fixed && Object.keys(t.breakpoints.values).reduce((n, p) => {
|
|
64
|
-
const
|
|
65
|
-
return r !== 0 && (n[t.breakpoints.up(
|
|
64
|
+
const m = p, r = t.breakpoints.values[m];
|
|
65
|
+
return r !== 0 && (n[t.breakpoints.up(m)] = {
|
|
66
66
|
maxWidth: `${r}${t.breakpoints.unit}`
|
|
67
67
|
}), n;
|
|
68
68
|
}, {}), ({
|
|
@@ -87,28 +87,28 @@ function D(o = {}) {
|
|
|
87
87
|
}
|
|
88
88
|
})), d = /* @__PURE__ */ T.forwardRef(function(a, n) {
|
|
89
89
|
const p = i(a), {
|
|
90
|
-
className:
|
|
90
|
+
className: m,
|
|
91
91
|
component: r = "div",
|
|
92
92
|
disableGutters: b = !1,
|
|
93
93
|
fixed: g = !1,
|
|
94
|
-
maxWidth:
|
|
94
|
+
maxWidth: h = "lg",
|
|
95
95
|
classes: L,
|
|
96
|
-
...
|
|
96
|
+
...C
|
|
97
97
|
} = p, f = {
|
|
98
98
|
...p,
|
|
99
99
|
component: r,
|
|
100
100
|
disableGutters: b,
|
|
101
101
|
fixed: g,
|
|
102
|
-
maxWidth:
|
|
103
|
-
}, W = U(f,
|
|
102
|
+
maxWidth: h
|
|
103
|
+
}, W = U(f, c);
|
|
104
104
|
return (
|
|
105
105
|
// @ts-ignore theme is injected by the styled util
|
|
106
106
|
/* @__PURE__ */ O(l, {
|
|
107
107
|
as: r,
|
|
108
108
|
ownerState: f,
|
|
109
|
-
className: v(W.root,
|
|
109
|
+
className: v(W.root, m),
|
|
110
110
|
ref: n,
|
|
111
|
-
...
|
|
111
|
+
...C
|
|
112
112
|
})
|
|
113
113
|
);
|
|
114
114
|
});
|
|
@@ -2282,12 +2282,12 @@ function pn(e = {}, ...t) {
|
|
|
2282
2282
|
export {
|
|
2283
2283
|
dt as a,
|
|
2284
2284
|
De as b,
|
|
2285
|
-
|
|
2285
|
+
pn as c,
|
|
2286
2286
|
Ne as d,
|
|
2287
2287
|
Tr as e,
|
|
2288
|
-
|
|
2288
|
+
Oe as f,
|
|
2289
2289
|
qe as g,
|
|
2290
|
-
|
|
2290
|
+
lt as h,
|
|
2291
2291
|
K as i,
|
|
2292
2292
|
Gr as j,
|
|
2293
2293
|
Jr as k,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const g = [
|
|
2
2
|
// borders
|
|
3
3
|
"border",
|
|
4
4
|
"borderTop",
|
|
@@ -122,11 +122,11 @@ const b = [
|
|
|
122
122
|
"typography",
|
|
123
123
|
// other common system props
|
|
124
124
|
"spacing"
|
|
125
|
-
],
|
|
125
|
+
], d = ["Box", "Stack", "Typography", "Link"], u = {
|
|
126
126
|
Typography: ["color"],
|
|
127
127
|
// semantic colors only
|
|
128
128
|
Link: ["color"]
|
|
129
|
-
},
|
|
129
|
+
}, h = {
|
|
130
130
|
meta: {
|
|
131
131
|
type: "problem",
|
|
132
132
|
docs: {
|
|
@@ -134,73 +134,58 @@ const b = [
|
|
|
134
134
|
category: "Best Practices",
|
|
135
135
|
recommended: !0
|
|
136
136
|
},
|
|
137
|
-
fixable: "code",
|
|
138
137
|
messages: {
|
|
139
138
|
systemProp: 'System prop "{{prop}}" should be moved to the sx prop on {{component}} component'
|
|
140
139
|
},
|
|
141
140
|
schema: []
|
|
142
141
|
},
|
|
143
|
-
create(
|
|
144
|
-
const o = /* @__PURE__ */ new Set(),
|
|
142
|
+
create(n) {
|
|
143
|
+
const o = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set();
|
|
145
144
|
return {
|
|
146
|
-
ImportDeclaration(
|
|
147
|
-
const
|
|
148
|
-
|
|
149
|
-
|
|
145
|
+
ImportDeclaration(l) {
|
|
146
|
+
const r = l;
|
|
147
|
+
r.source.value === "@clearstory/drywall-react" && r.specifiers.forEach((e) => {
|
|
148
|
+
e.type === "ImportSpecifier" && e.imported && d.includes(e.imported.name) ? o.add(e.local.name) : e.type === "ImportNamespaceSpecifier" && s.add(e.local.name);
|
|
150
149
|
});
|
|
151
150
|
},
|
|
152
|
-
JSXOpeningElement(
|
|
153
|
-
const
|
|
154
|
-
let
|
|
155
|
-
if ("name" in
|
|
156
|
-
if (
|
|
151
|
+
JSXOpeningElement(l) {
|
|
152
|
+
const r = l;
|
|
153
|
+
let e;
|
|
154
|
+
if ("name" in r.name) {
|
|
155
|
+
if (e = r.name.name, !o.has(e))
|
|
157
156
|
return;
|
|
158
|
-
} else if (
|
|
159
|
-
const
|
|
160
|
-
if (
|
|
157
|
+
} else if (r.name.type === "JSXMemberExpression") {
|
|
158
|
+
const t = r.name.object.name;
|
|
159
|
+
if (e = r.name.property.name, !s.has(t) || !d.includes(e))
|
|
161
160
|
return;
|
|
162
161
|
} else
|
|
163
162
|
return;
|
|
164
|
-
const
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
if (e.type !== "JSXAttribute" || !e.name)
|
|
163
|
+
const p = [];
|
|
164
|
+
r.attributes.forEach((t) => {
|
|
165
|
+
const i = t;
|
|
166
|
+
if (i.type !== "JSXAttribute" || !i.name)
|
|
169
167
|
return;
|
|
170
|
-
const
|
|
171
|
-
if (
|
|
172
|
-
x = e;
|
|
168
|
+
const a = i.name.name;
|
|
169
|
+
if (a === "sx" || !g.includes(a))
|
|
173
170
|
return;
|
|
174
|
-
|
|
175
|
-
if (
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
if (d === "color" && e.value) {
|
|
180
|
-
const h = w(e.value);
|
|
181
|
-
if (C(h))
|
|
171
|
+
const m = u[e];
|
|
172
|
+
if (m && m.includes(a))
|
|
173
|
+
if (a === "color" && i.value) {
|
|
174
|
+
const c = f(i.value);
|
|
175
|
+
if (y(c))
|
|
182
176
|
return;
|
|
183
177
|
} else
|
|
184
178
|
return;
|
|
185
|
-
|
|
186
|
-
|
|
179
|
+
p.push(
|
|
180
|
+
i
|
|
187
181
|
);
|
|
188
|
-
}),
|
|
189
|
-
|
|
190
|
-
node:
|
|
182
|
+
}), p.forEach((t) => {
|
|
183
|
+
n.report({
|
|
184
|
+
node: t,
|
|
191
185
|
messageId: "systemProp",
|
|
192
186
|
data: {
|
|
193
|
-
prop:
|
|
194
|
-
component:
|
|
195
|
-
},
|
|
196
|
-
fix(e) {
|
|
197
|
-
return I(
|
|
198
|
-
e,
|
|
199
|
-
m,
|
|
200
|
-
a,
|
|
201
|
-
x,
|
|
202
|
-
g
|
|
203
|
-
);
|
|
187
|
+
prop: t.name.name,
|
|
188
|
+
component: e
|
|
204
189
|
}
|
|
205
190
|
});
|
|
206
191
|
});
|
|
@@ -208,9 +193,9 @@ const b = [
|
|
|
208
193
|
};
|
|
209
194
|
}
|
|
210
195
|
};
|
|
211
|
-
function
|
|
212
|
-
if (!
|
|
213
|
-
const o =
|
|
196
|
+
function f(n) {
|
|
197
|
+
if (!n) return null;
|
|
198
|
+
const o = n;
|
|
214
199
|
if (o.type === "Literal")
|
|
215
200
|
return String(o.value);
|
|
216
201
|
if (o.type === "JSXExpressionContainer" && o.expression) {
|
|
@@ -221,7 +206,7 @@ function w(p) {
|
|
|
221
206
|
}
|
|
222
207
|
return null;
|
|
223
208
|
}
|
|
224
|
-
function
|
|
209
|
+
function y(n) {
|
|
225
210
|
return [
|
|
226
211
|
"inherit",
|
|
227
212
|
"primary",
|
|
@@ -230,56 +215,8 @@ function C(p) {
|
|
|
230
215
|
"warning",
|
|
231
216
|
"info",
|
|
232
217
|
"success"
|
|
233
|
-
].includes(
|
|
234
|
-
}
|
|
235
|
-
function I(p, o, u, g, m) {
|
|
236
|
-
const t = o, r = "name" in t.name ? t.name.name : t.name.type === "JSXMemberExpression" ? `${t.name.object.name}.${t.name.property.name}` : "UnknownComponent", a = u.map((i) => {
|
|
237
|
-
const n = i.name.name, s = i.value;
|
|
238
|
-
if (!s)
|
|
239
|
-
return `${n}: true`;
|
|
240
|
-
const c = s;
|
|
241
|
-
if (c.type === "Literal")
|
|
242
|
-
return `${n}: ${JSON.stringify(c.value)}`;
|
|
243
|
-
if (c.type === "JSXExpressionContainer" && c.expression) {
|
|
244
|
-
const f = m.getText(c.expression);
|
|
245
|
-
return `${n}: ${f}`;
|
|
246
|
-
}
|
|
247
|
-
return `${n}: true`;
|
|
248
|
-
}), x = new Set(
|
|
249
|
-
u.map((i) => i.name.name)
|
|
250
|
-
), l = [];
|
|
251
|
-
t.attributes.forEach((i) => {
|
|
252
|
-
const n = i;
|
|
253
|
-
if (n.type !== "JSXAttribute" || !n.name) {
|
|
254
|
-
l.push(m.getText(i));
|
|
255
|
-
return;
|
|
256
|
-
}
|
|
257
|
-
const s = n.name.name;
|
|
258
|
-
x.has(s) || s === "sx" && g || l.push(m.getText(i));
|
|
259
|
-
});
|
|
260
|
-
let e;
|
|
261
|
-
if (g) {
|
|
262
|
-
const i = m.getText(g.value);
|
|
263
|
-
if (i.startsWith("{") && i.endsWith("}")) {
|
|
264
|
-
const n = i.slice(1, -1).trim();
|
|
265
|
-
if (n.startsWith("{") && n.endsWith("}")) {
|
|
266
|
-
const s = n.slice(1, -1).trim(), c = s.includes("...");
|
|
267
|
-
s ? c ? e = `sx={{ ${a.join(", ")}, ...${n} }}` : e = `sx={{ ${a.join(", ")}, ${s} }}` : e = `sx={{ ${a.join(", ")} }}`;
|
|
268
|
-
} else if (n.startsWith("[") && n.endsWith("]"))
|
|
269
|
-
e = `sx={[{ ${a.join(", ")} }, ...${n}]}`;
|
|
270
|
-
else {
|
|
271
|
-
const s = n.trimStart(), f = /^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(
|
|
272
|
-
s
|
|
273
|
-
) ? s : n;
|
|
274
|
-
e = `sx={[{ ${a.join(", ")} }, ...(Array.isArray(${f}) ? ${f} : [${f}])]}`;
|
|
275
|
-
}
|
|
276
|
-
} else
|
|
277
|
-
e = `sx={{ ${a.join(", ")} }}`;
|
|
278
|
-
} else
|
|
279
|
-
e = `sx={{ ${a.join(", ")} }}`;
|
|
280
|
-
const d = [...l, e], y = d.length > 0 ? " " + d.join(" ") : "", h = `<${r}${y}${t.selfClosing ? " />" : ">"}`;
|
|
281
|
-
return [p.replaceText(o, h)];
|
|
218
|
+
].includes(n || "");
|
|
282
219
|
}
|
|
283
220
|
export {
|
|
284
|
-
|
|
221
|
+
h as default
|
|
285
222
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { c as o } from "../createSvgIcon-
|
|
2
|
+
import { c as o } from "../createSvgIcon-BSvHnj9_.js";
|
|
3
3
|
const c = o(
|
|
4
4
|
/* @__PURE__ */ r("svg", { viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ r("path", { d: "M11.105 22.206H3.011L3 15.177l8.115-7.884-.01 14.913ZM21 22.207h-7.878V1.793L21 9.678v12.529Z" }) }),
|
|
5
5
|
"Clearstory"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as r, jsx as C } from "react/jsx-runtime";
|
|
2
|
-
import { c as l } from "../createSvgIcon-
|
|
2
|
+
import { c as l } from "../createSvgIcon-BSvHnj9_.js";
|
|
3
3
|
const t = l(
|
|
4
4
|
/* @__PURE__ */ r("svg", { viewBox: "0 0 24 24", fill: "currentColor", children: [
|
|
5
5
|
/* @__PURE__ */ C(
|
package/dist/icons/index.js
CHANGED
|
@@ -2,11 +2,11 @@ import { ClearstoryIcon as n } from "./ClearstoryIcon.js";
|
|
|
2
2
|
import { InternalOnlyIcon as c } from "./InternalOnlyIcon.js";
|
|
3
3
|
import { MoneyBucketIcon as I } from "./MoneyBucketIcon.js";
|
|
4
4
|
import { MoreCircleOutlineIcon as t } from "./MoreCircleOutlineIcon.js";
|
|
5
|
-
import { A as l, a as d, b as u, c as C, d as p, e as A, f as w, h as f, g as O, i as m, j as h, k as y, l as g, m as k, n as D, o as x, B as b, p as B, q as M, r as P, C as R, s as L, t as T, u as v, v as F, w as E, x as S, y as U, z as N, D as V, E as H, F as K, G as W, H as z, I as G, J as Z, K as j, L as q, M as J, N as Q, O as X, P as Y, Q as _, R as $, S as aa, T as oa, U as na, V as sa, W as ca, X as ea, Y as Ia, Z as ra, _ as ta, $ as ia, a0 as la, a1 as da, a2 as ua, a3 as Ca, a4 as pa, a5 as Aa, a6 as wa, a7 as fa, a8 as Oa, a9 as ma, aa as ha, ac as ya, ab as ga, ad as ka, ae as Da, af as xa, ag as ba, ah as Ba, ai as Ma, aj as Pa, ak as Ra, al as La, am as Ta, an as va, ao as Fa, ap as Ea, aq as Sa, ar as Ua, as as Na, at as Va, au as Ha, av as Ka, aw as Wa, ax as za, ay as Ga, az as Za, aA as ja, aB as qa, aC as Ja, aD as Qa, aE as Xa, aF as Ya, aG as _a, aJ as $a, aI as ao, aH as oo, aK as no, aL as so, aM as co, aN as eo, aO as Io, aP as ro, aQ as to, aR as io, aS as lo, aT as uo, aU as Co, aV as po, aW as Ao } from "../ZoomOut-
|
|
6
|
-
import { A as fo, C as Oo } from "../Clear-
|
|
7
|
-
import { C as ho, E as yo, I as go, W as ko } from "../WarningAmberOutlined-
|
|
8
|
-
import { C as xo } from "../Close-
|
|
9
|
-
import { I as Bo } from "../Info-
|
|
5
|
+
import { A as l, a as d, b as u, c as C, d as p, e as A, f as w, h as f, g as O, i as m, j as h, k as y, l as g, m as k, n as D, o as x, B as b, p as B, q as M, r as P, C as R, s as L, t as T, u as v, v as F, w as E, x as S, y as U, z as N, D as V, E as H, F as K, G as W, H as z, I as G, J as Z, K as j, L as q, M as J, N as Q, O as X, P as Y, Q as _, R as $, S as aa, T as oa, U as na, V as sa, W as ca, X as ea, Y as Ia, Z as ra, _ as ta, $ as ia, a0 as la, a1 as da, a2 as ua, a3 as Ca, a4 as pa, a5 as Aa, a6 as wa, a7 as fa, a8 as Oa, a9 as ma, aa as ha, ac as ya, ab as ga, ad as ka, ae as Da, af as xa, ag as ba, ah as Ba, ai as Ma, aj as Pa, ak as Ra, al as La, am as Ta, an as va, ao as Fa, ap as Ea, aq as Sa, ar as Ua, as as Na, at as Va, au as Ha, av as Ka, aw as Wa, ax as za, ay as Ga, az as Za, aA as ja, aB as qa, aC as Ja, aD as Qa, aE as Xa, aF as Ya, aG as _a, aJ as $a, aI as ao, aH as oo, aK as no, aL as so, aM as co, aN as eo, aO as Io, aP as ro, aQ as to, aR as io, aS as lo, aT as uo, aU as Co, aV as po, aW as Ao } from "../ZoomOut-D7iBSQjt.js";
|
|
6
|
+
import { A as fo, C as Oo } from "../Clear-C7q09Ww4.js";
|
|
7
|
+
import { C as ho, E as yo, I as go, W as ko } from "../WarningAmberOutlined-DA3_ce6m.js";
|
|
8
|
+
import { C as xo } from "../Close-28GNVfyf.js";
|
|
9
|
+
import { I as Bo } from "../Info-DYeQDm-h.js";
|
|
10
10
|
export {
|
|
11
11
|
l as AccessTimeIcon,
|
|
12
12
|
d as AccountCircleIcon,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { T as y } from "./emotion-element-f0de968e.browser.esm-CX7iy5u6.js";
|
|
2
2
|
import * as d from "react";
|
|
3
|
-
import { a as v } from "./useTheme-
|
|
3
|
+
import { a as v } from "./useTheme-DNEoTUfV.js";
|
|
4
4
|
import { g } from "./getThemeProps-EVOScHVn.js";
|
|
5
5
|
import { u as E } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
6
6
|
function M(n, s, t, o, c) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { P as o } from "./index-CyAhC1RZ.js";
|
|
3
|
-
import { d as a } from "./defaultTheme-
|
|
3
|
+
import { d as a } from "./defaultTheme-BvWB-Z-U.js";
|
|
4
4
|
import { T as s } from "./emotion-element-f0de968e.browser.esm-CX7iy5u6.js";
|
|
5
|
-
import { G as f } from "./GlobalStyles-
|
|
6
|
-
import { e as i } from "./extendSxProp-
|
|
5
|
+
import { G as f } from "./GlobalStyles-24Nh1HWp.js";
|
|
6
|
+
import { e as i } from "./extendSxProp-BK1wn2VP.js";
|
|
7
7
|
function t(r) {
|
|
8
8
|
return /* @__PURE__ */ e(f, {
|
|
9
9
|
...r,
|