@astral/ui 0.4.0 → 0.4.1-alpha.10
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/{types/src/Badge → Badge}/Badge.d.ts +0 -0
- package/{cjs/src/Badge → Badge}/Badge.js +0 -0
- package/{types/src/Badge → Badge}/index.d.ts +0 -0
- package/{cjs/src/Badge → Badge}/index.js +0 -0
- package/{types/src/Badge → Badge}/styled.d.ts +2 -3
- package/{cjs/src/Badge → Badge}/styled.js +0 -0
- package/{types/src/Badge → Badge}/types.d.ts +0 -0
- package/{cjs/src/Badge → Badge}/types.js +0 -0
- package/{types/src/Button → Button}/Button.d.ts +0 -0
- package/{cjs/src/Button → Button}/Button.js +0 -0
- package/{types/src/Button → Button}/index.d.ts +0 -0
- package/{cjs/src/Button → Button}/index.js +0 -0
- package/{types/src/Button → Button}/styled.d.ts +1 -2
- package/{cjs/src/Button → Button}/styled.js +0 -0
- package/{types/src/Button → Button}/types.d.ts +0 -0
- package/{cjs/src/Button → Button}/types.js +0 -0
- package/{types/src/ButtonBase → ButtonBase}/ButtonBase.d.ts +0 -0
- package/{cjs/src/ButtonBase → ButtonBase}/ButtonBase.js +0 -0
- package/{types/src/ButtonBase → ButtonBase}/constants.d.ts +0 -0
- package/{cjs/src/ButtonBase → ButtonBase}/constants.js +0 -0
- package/{types/src/ButtonBase → ButtonBase}/index.d.ts +0 -0
- package/{cjs/src/ButtonBase → ButtonBase}/index.js +0 -0
- package/{types/src/ButtonBase → ButtonBase}/styled.d.ts +1 -1
- package/{cjs/src/ButtonBase → ButtonBase}/styled.js +0 -0
- package/{types/src/ButtonBase → ButtonBase}/types.d.ts +0 -0
- package/{cjs/src/ButtonBase → ButtonBase}/types.js +0 -0
- package/{types/src/Checkbox → Checkbox}/Checkbox.d.ts +0 -0
- package/{cjs/src/Checkbox → Checkbox}/Checkbox.js +0 -0
- package/{types/src/Checkbox → Checkbox}/icons.d.ts +0 -0
- package/{cjs/src/Checkbox → Checkbox}/icons.js +0 -0
- package/{types/src/Checkbox → Checkbox}/index.d.ts +0 -0
- package/{cjs/src/Checkbox → Checkbox}/index.js +0 -0
- package/{types/src/Checkbox → Checkbox}/styled.d.ts +1 -1
- package/{cjs/src/Checkbox → Checkbox}/styled.js +0 -0
- package/{types/src/Checkbox → Checkbox}/types.d.ts +0 -0
- package/{cjs/src/Checkbox → Checkbox}/types.js +0 -0
- package/{types/src/CircularProgress → CircularProgress}/CircularProgress.d.ts +0 -0
- package/{cjs/src/CircularProgress → CircularProgress}/CircularProgress.js +0 -0
- package/{types/src/CircularProgress → CircularProgress}/constants.d.ts +0 -0
- package/{cjs/src/CircularProgress → CircularProgress}/constants.js +0 -0
- package/{types/src/CircularProgress → CircularProgress}/index.d.ts +0 -0
- package/{cjs/src/CircularProgress → CircularProgress}/index.js +0 -0
- package/{types/src/CircularProgress → CircularProgress}/styled.d.ts +1 -2
- package/{cjs/src/CircularProgress → CircularProgress}/styled.js +0 -0
- package/{types/src/CircularProgress → CircularProgress}/types.d.ts +0 -0
- package/{cjs/src/CircularProgress → CircularProgress}/types.js +0 -0
- package/DashboardLayout/DashboardLayout.d.ts +15 -0
- package/DashboardLayout/DashboardLayout.js +28 -0
- package/DashboardLayout/Header/Header.d.ts +4 -0
- package/DashboardLayout/Header/Header.js +22 -0
- package/DashboardLayout/Header/index.d.ts +2 -0
- package/DashboardLayout/Header/index.js +14 -0
- package/DashboardLayout/Header/styled.d.ts +23 -0
- package/DashboardLayout/Header/styled.js +32 -0
- package/DashboardLayout/Header/types.d.ts +10 -0
- package/{cjs/src/FormControlLabel → DashboardLayout/Header}/types.js +0 -0
- package/DashboardLayout/Main/Main.d.ts +6 -0
- package/DashboardLayout/Main/Main.js +22 -0
- package/DashboardLayout/Main/index.d.ts +1 -0
- package/{cjs → DashboardLayout/Main}/index.js +1 -1
- package/DashboardLayout/Main/styled.d.ts +5 -0
- package/DashboardLayout/Main/styled.js +10 -0
- package/DashboardLayout/SideBar/SideBar.d.ts +6 -0
- package/DashboardLayout/SideBar/SideBar.js +22 -0
- package/DashboardLayout/SideBar/index.d.ts +1 -0
- package/{cjs/src/styles/styled → DashboardLayout/SideBar}/index.js +1 -1
- package/DashboardLayout/SideBar/styled.d.ts +3 -0
- package/DashboardLayout/SideBar/styled.js +23 -0
- package/DashboardLayout/index.d.ts +1 -0
- package/DashboardLayout/index.js +13 -0
- package/DashboardLayout/styled.d.ts +6 -0
- package/DashboardLayout/styled.js +11 -0
- package/{types/src/FormControlLabel → FormControlLabel}/FormControlLabel.d.ts +0 -0
- package/{cjs/src/FormControlLabel → FormControlLabel}/FormControlLabel.js +0 -0
- package/{types/src/FormControlLabel → FormControlLabel}/index.d.ts +0 -0
- package/{cjs/src/FormControlLabel → FormControlLabel}/index.js +0 -0
- package/{types/src/FormControlLabel → FormControlLabel}/styled.d.ts +1 -1
- package/{cjs/src/FormControlLabel → FormControlLabel}/styled.js +0 -0
- package/{types/src/FormControlLabel → FormControlLabel}/types.d.ts +0 -0
- package/{cjs/src/FormHelperText → FormControlLabel}/types.js +0 -0
- package/{types/src/FormHelperText → FormHelperText}/FormHelperText.d.ts +0 -0
- package/{cjs/src/FormHelperText → FormHelperText}/FormHelperText.js +0 -0
- package/{types/src/FormHelperText → FormHelperText}/index.d.ts +0 -0
- package/{cjs/src/FormHelperText → FormHelperText}/index.js +0 -0
- package/FormHelperText/styled.d.ts +41 -0
- package/{cjs/src/FormHelperText → FormHelperText}/styled.js +0 -0
- package/{types/src/FormHelperText → FormHelperText}/types.d.ts +0 -0
- package/{cjs/src/Grid → FormHelperText}/types.js +0 -0
- package/{types/src/GlobalStyles → GlobalStyles}/GlobalStyles.d.ts +0 -0
- package/{cjs/src/GlobalStyles → GlobalStyles}/GlobalStyles.js +0 -0
- package/{types/src/GlobalStyles → GlobalStyles}/index.d.ts +0 -0
- package/{cjs/src/GlobalStyles → GlobalStyles}/index.js +0 -0
- package/{types/src/Grid → Grid}/Grid.d.ts +0 -0
- package/{cjs/src/Grid → Grid}/Grid.js +0 -0
- package/{types/src/Grid → Grid}/index.d.ts +0 -0
- package/{cjs/src/Grid → Grid}/index.js +0 -0
- package/Grid/styled.d.ts +13 -0
- package/{cjs/src/Grid → Grid}/styled.js +0 -0
- package/{types/src/Grid → Grid}/types.d.ts +0 -0
- package/{cjs/src/MenuList → Grid}/types.js +0 -0
- package/{types/src/IconButton → IconButton}/IconButton.d.ts +0 -0
- package/{cjs/src/IconButton → IconButton}/IconButton.js +0 -0
- package/{types/src/IconButton → IconButton}/index.d.ts +0 -0
- package/{cjs/src/IconButton → IconButton}/index.js +0 -0
- package/{types/src/IconButton → IconButton}/styled.d.ts +1 -1
- package/{cjs/src/IconButton → IconButton}/styled.js +0 -0
- package/{types/src/Menu → Menu}/Menu.d.ts +0 -0
- package/{cjs/src/Menu → Menu}/Menu.js +0 -0
- package/{types/src/Menu → Menu}/index.d.ts +0 -0
- package/{cjs/src/Menu → Menu}/index.js +0 -0
- package/{types/src/MenuItem → MenuItem}/MenuItem.d.ts +0 -0
- package/{cjs/src/MenuItem → MenuItem}/MenuItem.js +0 -0
- package/{types/src/MenuItem → MenuItem}/index.d.ts +0 -0
- package/{cjs/src/MenuItem → MenuItem}/index.js +0 -0
- package/{types/src/MenuList → MenuList}/MenuList.d.ts +0 -0
- package/{cjs/src/MenuList → MenuList}/MenuList.js +0 -0
- package/{types/src/MenuList → MenuList}/index.d.ts +0 -0
- package/{cjs/src/MenuList → MenuList}/index.js +0 -0
- package/{types/src/MenuList → MenuList}/styled.d.ts +1 -1
- package/{cjs/src/MenuList → MenuList}/styled.js +0 -0
- package/{types/src/MenuList → MenuList}/types.d.ts +0 -0
- package/{cjs/src/Radio → MenuList}/types.js +0 -0
- package/{types/src/Radio → Radio}/Icon.d.ts +0 -0
- package/{cjs/src/Radio → Radio}/Icon.js +0 -0
- package/{types/src/Radio → Radio}/Radio.d.ts +0 -0
- package/{cjs/src/Radio → Radio}/Radio.js +0 -0
- package/{types/src/Radio → Radio}/index.d.ts +0 -0
- package/{cjs/src/Radio → Radio}/index.js +0 -0
- package/{types/src/Radio → Radio}/styled.d.ts +1 -1
- package/{cjs/src/Radio → Radio}/styled.js +0 -0
- package/{types/src/Radio → Radio}/types.d.ts +0 -0
- package/{cjs/src/Tag → Radio}/types.js +0 -0
- package/{types/src/RadioGroup → RadioGroup}/RadioGroup.d.ts +0 -0
- package/{cjs/src/RadioGroup → RadioGroup}/RadioGroup.js +0 -0
- package/{types/src/StylesCacheProvider → StylesCacheProvider}/index.d.ts +0 -0
- package/{cjs/src/StylesCacheProvider → StylesCacheProvider}/index.js +0 -0
- package/{types/src/Tag → Tag}/Tag.d.ts +0 -0
- package/{cjs/src/Tag → Tag}/Tag.js +0 -0
- package/{types/src/Tag → Tag}/constants.d.ts +0 -0
- package/{cjs/src/Tag → Tag}/constants.js +0 -0
- package/{types/src/Tag → Tag}/index.d.ts +0 -0
- package/{cjs/src/Tag → Tag}/index.js +0 -0
- package/{types/src/Tag → Tag}/styled.d.ts +1 -2
- package/{cjs/src/Tag → Tag}/styled.js +0 -0
- package/{types/src/Tag → Tag}/types.d.ts +0 -0
- package/{cjs/src/TextArea → Tag}/types.js +0 -0
- package/{types/src/TextArea → TextArea}/TextArea.d.ts +0 -0
- package/{cjs/src/TextArea → TextArea}/TextArea.js +0 -0
- package/{types/src/TextArea → TextArea}/index.d.ts +0 -0
- package/{cjs/src/TextArea → TextArea}/index.js +0 -0
- package/{types/src/TextArea → TextArea}/types.d.ts +0 -0
- package/{cjs/src/TextField → TextArea}/types.js +0 -0
- package/{types/src/TextField → TextField}/TextField.d.ts +0 -0
- package/{cjs/src/TextField → TextField}/TextField.js +0 -0
- package/{types/src/TextField → TextField}/index.d.ts +0 -0
- package/{cjs/src/TextField → TextField}/index.js +0 -0
- package/{types/src/TextField → TextField}/types.d.ts +0 -0
- package/{cjs/src/styles/styled → TextField}/types.js +0 -0
- package/{types/src/ThemeProvider → ThemeProvider}/ThemeProvider.d.ts +0 -0
- package/{cjs/src/ThemeProvider → ThemeProvider}/ThemeProvider.js +0 -0
- package/{types/src/ThemeProvider → ThemeProvider}/index.d.ts +0 -0
- package/{cjs/src/ThemeProvider → ThemeProvider}/index.js +0 -0
- package/Tooltip/Tooltip.d.ts +3 -0
- package/Tooltip/Tooltip.js +33 -0
- package/Tooltip/constants.d.ts +4 -0
- package/Tooltip/constants.js +8 -0
- package/Tooltip/index.d.ts +2 -0
- package/Tooltip/index.js +14 -0
- package/Tooltip/styled.d.ts +5 -0
- package/Tooltip/styled.js +72 -0
- package/Tooltip/types.d.ts +6 -0
- package/Tooltip/types.js +2 -0
- package/{types/src/Typography → Typography}/Typography.d.ts +0 -0
- package/{cjs/src/Typography → Typography}/Typography.js +0 -0
- package/{types/src/Typography → Typography}/index.d.ts +0 -0
- package/{cjs/src/Typography → Typography}/index.js +0 -0
- package/declaration/emotion.d.ts +6 -0
- package/declaration/mui-material.d.ts +14 -0
- package/esm/Badge/Badge.d.ts +4 -0
- package/esm/{src/Badge → Badge}/Badge.js +0 -0
- package/esm/{src/Badge/index.js → Badge/index.d.ts} +0 -0
- package/esm/Badge/index.js +2 -0
- package/esm/Badge/styled.d.ts +49 -0
- package/esm/{src/Badge → Badge}/styled.js +0 -0
- package/esm/Badge/types.d.ts +5 -0
- package/esm/{src/Badge → Badge}/types.js +0 -0
- package/esm/Button/Button.d.ts +3 -0
- package/esm/{src/Button → Button}/Button.js +0 -0
- package/esm/{src/Button/index.js → Button/index.d.ts} +0 -0
- package/esm/Button/index.js +2 -0
- package/esm/Button/styled.d.ts +12 -0
- package/esm/{src/Button → Button}/styled.js +0 -0
- package/esm/Button/types.d.ts +7 -0
- package/esm/{src/Button → Button}/types.js +0 -0
- package/esm/ButtonBase/ButtonBase.d.ts +3 -0
- package/esm/{src/ButtonBase → ButtonBase}/ButtonBase.js +0 -0
- package/esm/ButtonBase/constants.d.ts +22 -0
- package/esm/{src/ButtonBase → ButtonBase}/constants.js +0 -0
- package/esm/{src/ButtonBase/index.js → ButtonBase/index.d.ts} +0 -0
- package/esm/ButtonBase/index.js +3 -0
- package/esm/ButtonBase/styled.d.ts +27 -0
- package/esm/{src/ButtonBase → ButtonBase}/styled.js +0 -0
- package/esm/ButtonBase/types.d.ts +11 -0
- package/esm/{src/ButtonBase → ButtonBase}/types.js +0 -0
- package/esm/Checkbox/Checkbox.d.ts +3 -0
- package/esm/{src/Checkbox → Checkbox}/Checkbox.js +0 -0
- package/esm/Checkbox/icons.d.ts +5 -0
- package/esm/{src/Checkbox → Checkbox}/icons.js +0 -0
- package/esm/{src/Checkbox/index.js → Checkbox/index.d.ts} +0 -0
- package/esm/Checkbox/index.js +2 -0
- package/esm/Checkbox/styled.d.ts +4 -0
- package/esm/{src/Checkbox → Checkbox}/styled.js +0 -0
- package/esm/Checkbox/types.d.ts +2 -0
- package/esm/{src/Checkbox → Checkbox}/types.js +0 -0
- package/esm/CircularProgress/CircularProgress.d.ts +4 -0
- package/esm/{src/CircularProgress → CircularProgress}/CircularProgress.js +0 -0
- package/esm/CircularProgress/constants.d.ts +8 -0
- package/esm/{src/CircularProgress → CircularProgress}/constants.js +0 -0
- package/esm/{src/CircularProgress/index.js → CircularProgress/index.d.ts} +0 -0
- package/esm/CircularProgress/index.js +2 -0
- package/esm/CircularProgress/styled.d.ts +6 -0
- package/esm/{src/CircularProgress → CircularProgress}/styled.js +0 -0
- package/esm/CircularProgress/types.d.ts +8 -0
- package/esm/{src/CircularProgress → CircularProgress}/types.js +0 -0
- package/esm/DashboardLayout/DashboardLayout.d.ts +15 -0
- package/esm/DashboardLayout/DashboardLayout.js +24 -0
- package/esm/DashboardLayout/Header/Header.d.ts +4 -0
- package/esm/DashboardLayout/Header/Header.js +19 -0
- package/esm/DashboardLayout/Header/index.d.ts +2 -0
- package/esm/DashboardLayout/Header/index.js +2 -0
- package/esm/DashboardLayout/Header/styled.d.ts +23 -0
- package/esm/DashboardLayout/Header/styled.js +29 -0
- package/esm/DashboardLayout/Header/types.d.ts +10 -0
- package/esm/{src/FormControlLabel → DashboardLayout/Header}/types.js +0 -0
- package/esm/DashboardLayout/Main/Main.d.ts +6 -0
- package/esm/DashboardLayout/Main/Main.js +19 -0
- package/esm/DashboardLayout/Main/index.d.ts +1 -0
- package/esm/DashboardLayout/Main/index.js +1 -0
- package/esm/DashboardLayout/Main/styled.d.ts +5 -0
- package/esm/DashboardLayout/Main/styled.js +7 -0
- package/esm/DashboardLayout/SideBar/SideBar.d.ts +6 -0
- package/esm/DashboardLayout/SideBar/SideBar.js +19 -0
- package/esm/DashboardLayout/SideBar/index.d.ts +1 -0
- package/esm/DashboardLayout/SideBar/index.js +1 -0
- package/esm/DashboardLayout/SideBar/styled.d.ts +3 -0
- package/esm/DashboardLayout/SideBar/styled.js +20 -0
- package/esm/DashboardLayout/index.d.ts +1 -0
- package/esm/DashboardLayout/index.js +1 -0
- package/esm/DashboardLayout/styled.d.ts +6 -0
- package/esm/DashboardLayout/styled.js +8 -0
- package/esm/FormControlLabel/FormControlLabel.d.ts +3 -0
- package/esm/{src/FormControlLabel → FormControlLabel}/FormControlLabel.js +0 -0
- package/esm/{src/FormControlLabel/index.js → FormControlLabel/index.d.ts} +0 -0
- package/esm/FormControlLabel/index.js +2 -0
- package/esm/FormControlLabel/styled.d.ts +3 -0
- package/esm/{src/FormControlLabel → FormControlLabel}/styled.js +0 -0
- package/esm/FormControlLabel/types.d.ts +2 -0
- package/esm/{src/FormHelperText → FormControlLabel}/types.js +0 -0
- package/esm/FormHelperText/FormHelperText.d.ts +4 -0
- package/esm/{src/FormHelperText → FormHelperText}/FormHelperText.js +0 -0
- package/esm/{src/FormHelperText/index.js → FormHelperText/index.d.ts} +0 -0
- package/esm/FormHelperText/index.js +1 -0
- package/esm/FormHelperText/styled.d.ts +41 -0
- package/esm/{src/FormHelperText → FormHelperText}/styled.js +0 -0
- package/esm/FormHelperText/types.d.ts +6 -0
- package/esm/{src/Grid → FormHelperText}/types.js +0 -0
- package/esm/GlobalStyles/GlobalStyles.d.ts +3 -0
- package/esm/{src/GlobalStyles → GlobalStyles}/GlobalStyles.js +0 -0
- package/esm/{src/GlobalStyles/index.js → GlobalStyles/index.d.ts} +0 -0
- package/esm/GlobalStyles/index.js +1 -0
- package/esm/Grid/Grid.d.ts +3 -0
- package/esm/{src/Grid → Grid}/Grid.js +0 -0
- package/esm/{src/Grid/index.js → Grid/index.d.ts} +0 -0
- package/esm/Grid/index.js +2 -0
- package/esm/Grid/styled.d.ts +13 -0
- package/esm/{src/Grid → Grid}/styled.js +0 -0
- package/esm/Grid/types.d.ts +30 -0
- package/esm/{src/MenuList → Grid}/types.js +0 -0
- package/esm/IconButton/IconButton.d.ts +3 -0
- package/esm/{src/IconButton → IconButton}/IconButton.js +0 -0
- package/esm/{src/IconButton/index.js → IconButton/index.d.ts} +0 -0
- package/esm/IconButton/index.js +1 -0
- package/esm/IconButton/styled.d.ts +19 -0
- package/esm/{src/IconButton → IconButton}/styled.js +0 -0
- package/esm/Menu/Menu.d.ts +3 -0
- package/esm/{src/Menu → Menu}/Menu.js +0 -0
- package/esm/{src/Menu/index.js → Menu/index.d.ts} +0 -0
- package/esm/Menu/index.js +1 -0
- package/esm/MenuItem/MenuItem.d.ts +3 -0
- package/esm/{src/MenuItem → MenuItem}/MenuItem.js +0 -0
- package/esm/{src/MenuItem/index.js → MenuItem/index.d.ts} +0 -0
- package/esm/MenuItem/index.js +1 -0
- package/esm/MenuList/MenuList.d.ts +3 -0
- package/esm/{src/MenuList → MenuList}/MenuList.js +0 -0
- package/esm/{src/MenuList/index.js → MenuList/index.d.ts} +0 -0
- package/esm/MenuList/index.js +2 -0
- package/esm/MenuList/styled.d.ts +20 -0
- package/esm/{src/MenuList → MenuList}/styled.js +0 -0
- package/esm/MenuList/types.d.ts +2 -0
- package/esm/{src/Radio → MenuList}/types.js +0 -0
- package/esm/Radio/Icon.d.ts +3 -0
- package/esm/{src/Radio → Radio}/Icon.js +0 -0
- package/esm/Radio/Radio.d.ts +4 -0
- package/esm/{src/Radio → Radio}/Radio.js +0 -0
- package/esm/{src/Radio/index.js → Radio/index.d.ts} +0 -0
- package/esm/Radio/index.js +2 -0
- package/esm/Radio/styled.d.ts +4 -0
- package/esm/{src/Radio → Radio}/styled.js +0 -0
- package/esm/Radio/types.d.ts +2 -0
- package/esm/{src/Tag → Radio}/types.js +0 -0
- package/esm/{src/RadioGroup/RadioGroup.js → RadioGroup/RadioGroup.d.ts} +0 -0
- package/esm/RadioGroup/RadioGroup.js +2 -0
- package/esm/{src/StylesCacheProvider/index.js → StylesCacheProvider/index.d.ts} +0 -0
- package/esm/StylesCacheProvider/index.js +1 -0
- package/esm/Tag/Tag.d.ts +3 -0
- package/esm/{src/Tag → Tag}/Tag.js +0 -0
- package/esm/Tag/constants.d.ts +21 -0
- package/esm/{src/Tag → Tag}/constants.js +0 -0
- package/esm/{src/Tag/index.js → Tag/index.d.ts} +0 -0
- package/esm/Tag/index.js +2 -0
- package/esm/Tag/styled.d.ts +25 -0
- package/esm/{src/Tag → Tag}/styled.js +0 -0
- package/esm/Tag/types.d.ts +12 -0
- package/esm/{src/TextArea → Tag}/types.js +0 -0
- package/esm/TextArea/TextArea.d.ts +3 -0
- package/esm/{src/TextArea → TextArea}/TextArea.js +0 -0
- package/esm/{src/TextArea/index.js → TextArea/index.d.ts} +0 -0
- package/esm/TextArea/index.js +2 -0
- package/esm/TextArea/types.d.ts +2 -0
- package/esm/{src/TextField → TextArea}/types.js +0 -0
- package/esm/TextField/TextField.d.ts +4 -0
- package/esm/{src/TextField → TextField}/TextField.js +0 -0
- package/esm/{src/TextField/index.js → TextField/index.d.ts} +0 -0
- package/esm/TextField/index.js +2 -0
- package/esm/TextField/types.d.ts +6 -0
- package/esm/{src/styles/styled → TextField}/types.js +0 -0
- package/esm/ThemeProvider/ThemeProvider.d.ts +7 -0
- package/esm/{src/ThemeProvider → ThemeProvider}/ThemeProvider.js +0 -0
- package/esm/{src/ThemeProvider/index.js → ThemeProvider/index.d.ts} +0 -0
- package/esm/ThemeProvider/index.js +1 -0
- package/esm/Tooltip/Tooltip.d.ts +3 -0
- package/esm/Tooltip/Tooltip.js +30 -0
- package/esm/Tooltip/constants.d.ts +4 -0
- package/esm/Tooltip/constants.js +5 -0
- package/esm/Tooltip/index.d.ts +2 -0
- package/esm/Tooltip/index.js +2 -0
- package/esm/Tooltip/styled.d.ts +5 -0
- package/esm/Tooltip/styled.js +69 -0
- package/esm/Tooltip/types.d.ts +6 -0
- package/{types/src/theme/__tests__/BaseTheme.test.d.ts → esm/Tooltip/types.js} +0 -0
- package/esm/Typography/Typography.d.ts +8 -0
- package/esm/{src/Typography → Typography}/Typography.js +0 -0
- package/esm/{src/Typography/index.js → Typography/index.d.ts} +0 -0
- package/esm/Typography/index.js +1 -0
- package/{types/src → esm}/index.d.ts +1 -2
- package/esm/index.js +21 -1
- package/{types/src → esm/server}/createStylesCache/index.d.ts +0 -0
- package/esm/{src → server}/createStylesCache/index.js +0 -0
- package/{types/src → esm/server}/createStylesServer/index.d.ts +0 -0
- package/esm/{src → server}/createStylesServer/index.js +0 -0
- package/esm/server/index.d.ts +2 -0
- package/esm/server/index.js +2 -0
- package/esm/styles/index.d.ts +1 -0
- package/esm/styles/index.js +1 -0
- package/esm/theme/__tests__/BaseTheme.test.d.ts +1 -0
- package/esm/{src/theme → theme}/__tests__/BaseTheme.test.js +0 -0
- package/{types/src → esm}/theme/baseTheme.d.ts +2 -10
- package/esm/{src/theme → theme}/baseTheme.js +2 -2
- package/{types/src → esm}/theme/components/MuiFormHelperText.d.ts +0 -0
- package/esm/{src/theme → theme}/components/MuiFormHelperText.js +0 -0
- package/{types/src → esm}/theme/components/MuiFormLabel.d.ts +0 -0
- package/esm/{src/theme → theme}/components/MuiFormLabel.js +0 -0
- package/{types/src → esm}/theme/components/MuiInputBase.d.ts +0 -0
- package/esm/{src/theme → theme}/components/MuiInputBase.js +0 -0
- package/{types/src → esm}/theme/components/MuiInputLabel.d.ts +0 -0
- package/esm/{src/theme → theme}/components/MuiInputLabel.js +0 -0
- package/{types/src → esm}/theme/components/MuiOutlinedInput.d.ts +0 -0
- package/esm/{src/theme → theme}/components/MuiOutlinedInput.js +0 -0
- package/{types/src → esm}/theme/components/MuiTypography.d.ts +0 -0
- package/esm/{src/theme → theme}/components/MuiTypography.js +0 -0
- package/{types/src → esm}/theme/components/components.d.ts +0 -0
- package/esm/{src/theme → theme}/components/components.js +0 -0
- package/{types/src → esm}/theme/components/index.d.ts +0 -0
- package/esm/{src/theme → theme}/components/index.js +0 -0
- package/{types/src → esm}/theme/constants.d.ts +0 -0
- package/esm/{src/theme → theme}/constants.js +0 -0
- package/{types/src → esm}/theme/elevation.d.ts +0 -0
- package/esm/{src/theme → theme}/elevation.js +0 -0
- package/{types/src → esm}/theme/hooks/index.d.ts +0 -0
- package/esm/{src/theme → theme}/hooks/index.js +0 -0
- package/{types/src → esm}/theme/hooks/useTheme/index.d.ts +0 -0
- package/esm/{src/theme → theme}/hooks/useTheme/index.js +0 -0
- package/{types/src → esm}/theme/index.d.ts +0 -0
- package/esm/{src/theme → theme}/index.js +0 -0
- package/{types/src → esm}/theme/palette/brandPalette.d.ts +0 -0
- package/esm/{src/theme → theme}/palette/brandPalette.js +0 -0
- package/{types/src → esm}/theme/palette/index.d.ts +0 -0
- package/esm/{src/theme → theme}/palette/index.js +0 -0
- package/{types/src → esm}/theme/palette/palette.d.ts +0 -0
- package/esm/{src/theme → theme}/palette/palette.js +0 -0
- package/{types/src → esm}/theme/shape.d.ts +0 -0
- package/esm/{src/theme → theme}/shape.js +0 -0
- package/{types/src → esm}/theme/typography.d.ts +1 -0
- package/esm/{src/theme → theme}/typography.js +15 -0
- package/{esm/src/index.js → index.d.ts} +1 -2
- package/{cjs/src/index.js → index.js} +1 -2
- package/package.json +5 -14
- package/server/createStylesCache/index.d.ts +2 -0
- package/{cjs/src → server}/createStylesCache/index.js +0 -0
- package/server/createStylesServer/index.d.ts +1 -0
- package/{cjs/src → server}/createStylesServer/index.js +0 -0
- package/server/index.d.ts +2 -0
- package/server/index.js +14 -0
- package/styles/index.d.ts +1 -0
- package/{cjs/src/styles/styled/styled.js → styles/index.js} +2 -2
- package/theme/__tests__/BaseTheme.test.d.ts +1 -0
- package/{cjs/src/theme → theme}/__tests__/BaseTheme.test.js +0 -0
- package/theme/baseTheme.d.ts +20 -0
- package/{cjs/src/theme → theme}/baseTheme.js +1 -1
- package/theme/components/MuiFormHelperText.d.ts +4 -0
- package/{cjs/src/theme → theme}/components/MuiFormHelperText.js +0 -0
- package/theme/components/MuiFormLabel.d.ts +4 -0
- package/{cjs/src/theme → theme}/components/MuiFormLabel.js +0 -0
- package/theme/components/MuiInputBase.d.ts +4 -0
- package/{cjs/src/theme → theme}/components/MuiInputBase.js +0 -0
- package/theme/components/MuiInputLabel.d.ts +4 -0
- package/{cjs/src/theme → theme}/components/MuiInputLabel.js +0 -0
- package/theme/components/MuiOutlinedInput.d.ts +4 -0
- package/{cjs/src/theme → theme}/components/MuiOutlinedInput.js +0 -0
- package/theme/components/MuiTypography.d.ts +21 -0
- package/{cjs/src/theme → theme}/components/MuiTypography.js +0 -0
- package/theme/components/components.d.ts +21 -0
- package/{cjs/src/theme → theme}/components/components.js +0 -0
- package/theme/components/index.d.ts +1 -0
- package/{cjs/src/theme → theme}/components/index.js +0 -0
- package/theme/constants.d.ts +9 -0
- package/{cjs/src/theme → theme}/constants.js +0 -0
- package/theme/elevation.d.ts +8 -0
- package/{cjs/src/theme → theme}/elevation.js +0 -0
- package/theme/hooks/index.d.ts +1 -0
- package/{cjs/src/theme → theme}/hooks/index.js +0 -0
- package/theme/hooks/useTheme/index.d.ts +2 -0
- package/{cjs/src/theme → theme}/hooks/useTheme/index.js +0 -0
- package/theme/index.d.ts +6 -0
- package/{cjs/src/theme → theme}/index.js +0 -0
- package/theme/palette/brandPalette.d.ts +15 -0
- package/{cjs/src/theme → theme}/palette/brandPalette.js +0 -0
- package/theme/palette/index.d.ts +2 -0
- package/{cjs/src/theme → theme}/palette/index.js +0 -0
- package/theme/palette/palette.d.ts +29 -0
- package/{cjs/src/theme → theme}/palette/palette.js +0 -0
- package/theme/shape.d.ts +6 -0
- package/{cjs/src/theme → theme}/shape.js +0 -0
- package/theme/typography.d.ts +20 -0
- package/{cjs/src/theme → theme}/typography.js +15 -0
- package/cjs/src/styles/index.js +0 -13
- package/esm/src/styles/index.js +0 -1
- package/esm/src/styles/styled/index.js +0 -1
- package/esm/src/styles/styled/styled.js +0 -2
- package/types/index.d.ts +0 -1
- package/types/src/FormHelperText/styled.d.ts +0 -41
- package/types/src/Grid/styled.d.ts +0 -13
- package/types/src/styles/index.d.ts +0 -1
- package/types/src/styles/styled/index.d.ts +0 -1
- package/types/src/styles/styled/styled.d.ts +0 -2
- package/types/src/styles/styled/types.d.ts +0 -48
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
+
import { forwardRef } from 'react';
|
|
25
|
+
import { StyledTooltip } from './styled';
|
|
26
|
+
import { TooltipSizes } from './constants';
|
|
27
|
+
export var Tooltip = forwardRef(function (_a, ref) {
|
|
28
|
+
var children = _a.children, _b = _a.placement, placement = _b === void 0 ? 'top' : _b, _c = _a.size, size = _c === void 0 ? TooltipSizes.MEDIUM : _c, props = __rest(_a, ["children", "placement", "size"]);
|
|
29
|
+
return (_jsx(StyledTooltip, __assign({ ref: ref, size: size, placement: placement }, props, { children: children }), void 0));
|
|
30
|
+
});
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
+
return cooked;
|
|
4
|
+
};
|
|
5
|
+
var __assign = (this && this.__assign) || function () {
|
|
6
|
+
__assign = Object.assign || function(t) {
|
|
7
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
+
s = arguments[i];
|
|
9
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
+
t[p] = s[p];
|
|
11
|
+
}
|
|
12
|
+
return t;
|
|
13
|
+
};
|
|
14
|
+
return __assign.apply(this, arguments);
|
|
15
|
+
};
|
|
16
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
17
|
+
var t = {};
|
|
18
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
19
|
+
t[p] = s[p];
|
|
20
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
21
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
22
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
23
|
+
t[p[i]] = s[p[i]];
|
|
24
|
+
}
|
|
25
|
+
return t;
|
|
26
|
+
};
|
|
27
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
28
|
+
import { Tooltip } from '@mui/material';
|
|
29
|
+
import { styled } from '../styles';
|
|
30
|
+
import { TooltipSizes } from './constants';
|
|
31
|
+
export var StyledTooltip = styled(function (_a) {
|
|
32
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
33
|
+
return (_jsx(Tooltip, __assign({}, props, { classes: { popper: className } }), void 0));
|
|
34
|
+
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n & .MuiTooltip-tooltip {\n margin: 0;\n background-color: ", ";\n border-radius: ", ";\n font-size: ", ";\n line-height: ", ";\n font-weight: ", ";\n }\n\n & .MuiTooltip-arrow {\n color: ", ";\n }\n\n &&[data-popper-placement*='top'] .MuiTooltip-tooltip {\n margin-bottom: ", ";\n }\n\n &&[data-popper-placement*='bottom'] .MuiTooltip-tooltip {\n margin-top: ", ";\n }\n\n &&[data-popper-placement*='left'] .MuiTooltip-tooltip {\n margin-right: ", ";\n }\n\n &&[data-popper-placement*='right'] .MuiTooltip-tooltip {\n margin-left: ", ";\n }\n"], ["\n & .MuiTooltip-tooltip {\n margin: 0;\n background-color: ", ";\n border-radius: ", ";\n font-size: ", ";\n line-height: ", ";\n font-weight: ", ";\n }\n\n & .MuiTooltip-arrow {\n color: ", ";\n }\n\n &&[data-popper-placement*='top'] .MuiTooltip-tooltip {\n margin-bottom: ", ";\n }\n\n &&[data-popper-placement*='bottom'] .MuiTooltip-tooltip {\n margin-top: ", ";\n }\n\n &&[data-popper-placement*='left'] .MuiTooltip-tooltip {\n margin-right: ", ";\n }\n\n &&[data-popper-placement*='right'] .MuiTooltip-tooltip {\n margin-left: ", ";\n }\n"])), function (_a) {
|
|
35
|
+
var theme = _a.theme;
|
|
36
|
+
return theme.palette.grey[900];
|
|
37
|
+
}, function (_a) {
|
|
38
|
+
var theme = _a.theme;
|
|
39
|
+
return theme.shape.small;
|
|
40
|
+
}, function (_a) {
|
|
41
|
+
var size = _a.size, theme = _a.theme;
|
|
42
|
+
return size === TooltipSizes.SMALL
|
|
43
|
+
? theme.typography.small.fontSize
|
|
44
|
+
: theme.typography.ui.fontSize;
|
|
45
|
+
}, function (_a) {
|
|
46
|
+
var size = _a.size, theme = _a.theme;
|
|
47
|
+
return size === TooltipSizes.SMALL
|
|
48
|
+
? theme.typography.small.lineHeight
|
|
49
|
+
: theme.typography.ui.lineHeight;
|
|
50
|
+
}, function (_a) {
|
|
51
|
+
var theme = _a.theme;
|
|
52
|
+
return theme.typography.fontWeightRegular;
|
|
53
|
+
}, function (_a) {
|
|
54
|
+
var theme = _a.theme;
|
|
55
|
+
return theme.palette.grey[900];
|
|
56
|
+
}, function (_a) {
|
|
57
|
+
var theme = _a.theme;
|
|
58
|
+
return theme.spacing(3);
|
|
59
|
+
}, function (_a) {
|
|
60
|
+
var theme = _a.theme;
|
|
61
|
+
return theme.spacing(3);
|
|
62
|
+
}, function (_a) {
|
|
63
|
+
var theme = _a.theme;
|
|
64
|
+
return theme.spacing(2);
|
|
65
|
+
}, function (_a) {
|
|
66
|
+
var theme = _a.theme;
|
|
67
|
+
return theme.spacing(2);
|
|
68
|
+
});
|
|
69
|
+
var templateObject_1;
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TypographyProps as MuiTypographyProps } from '@mui/material/Typography';
|
|
3
|
+
import { Variant } from '@mui/material/styles/createTypography';
|
|
4
|
+
export declare type TypographyProps = Omit<MuiTypographyProps, 'variant'> & {
|
|
5
|
+
variant?: Variant | 'h7' | 'h8' | 'h9' | 'ui' | 'link' | 'pointer' | 'small' | 'code';
|
|
6
|
+
};
|
|
7
|
+
export declare const Typography: ({ variant, children, ...props }: TypographyProps) => JSX.Element;
|
|
8
|
+
export default Typography;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Typography';
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export * from './createStylesCache';
|
|
2
|
-
export * from './createStylesServer';
|
|
3
1
|
export * from './StylesCacheProvider';
|
|
4
2
|
export * from './Button';
|
|
5
3
|
export * from './ButtonBase';
|
|
@@ -19,4 +17,5 @@ export * from './TextField';
|
|
|
19
17
|
export * from './FormHelperText';
|
|
20
18
|
export * from './Grid';
|
|
21
19
|
export * from './Tag';
|
|
20
|
+
export * from './Tooltip';
|
|
22
21
|
export * from './TextArea';
|
package/esm/index.js
CHANGED
|
@@ -1 +1,21 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './StylesCacheProvider';
|
|
2
|
+
export * from './Button';
|
|
3
|
+
export * from './ButtonBase';
|
|
4
|
+
export * from './IconButton';
|
|
5
|
+
export * from './Badge';
|
|
6
|
+
export * from './Checkbox';
|
|
7
|
+
export * from './FormControlLabel';
|
|
8
|
+
export * from './Typography';
|
|
9
|
+
export * from './Menu';
|
|
10
|
+
export * from './MenuItem';
|
|
11
|
+
export * from './MenuList';
|
|
12
|
+
export * from './theme';
|
|
13
|
+
export * from './styles';
|
|
14
|
+
export * from './ThemeProvider';
|
|
15
|
+
export * from './GlobalStyles';
|
|
16
|
+
export * from './TextField';
|
|
17
|
+
export * from './FormHelperText';
|
|
18
|
+
export * from './Grid';
|
|
19
|
+
export * from './Tag';
|
|
20
|
+
export * from './Tooltip';
|
|
21
|
+
export * from './TextArea';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as styled } from '@emotion/styled';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as styled } from '@emotion/styled';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { Palette as MuiPalette, Theme as MuiTheme, PaletteColor, ThemeOptions } from '@mui/material/styles';
|
|
2
|
-
import { TypographyThemeOptions } from './typography';
|
|
3
2
|
import { Background, Color } from './palette';
|
|
4
3
|
import { FontsUrls } from './components';
|
|
5
4
|
import { Brand } from './constants';
|
|
6
|
-
import { Elevation } from './elevation';
|
|
7
|
-
import { Shape } from './shape';
|
|
8
5
|
export declare type Palette = Omit<MuiPalette, 'grey' | 'background'> & {
|
|
9
6
|
red: Color;
|
|
10
7
|
green: Color;
|
|
@@ -13,16 +10,11 @@ export declare type Palette = Omit<MuiPalette, 'grey' | 'background'> & {
|
|
|
13
10
|
primary: PaletteColor & Color;
|
|
14
11
|
background: Background;
|
|
15
12
|
};
|
|
16
|
-
export declare type Theme =
|
|
17
|
-
elevation: Elevation;
|
|
18
|
-
palette: Palette;
|
|
19
|
-
shape: Shape;
|
|
20
|
-
typography: TypographyThemeOptions;
|
|
21
|
-
};
|
|
13
|
+
export declare type Theme = MuiTheme;
|
|
22
14
|
declare type CreateThemeParams = {
|
|
23
15
|
brand: Brand;
|
|
24
16
|
options?: ThemeOptions;
|
|
25
17
|
fontsUrls: FontsUrls;
|
|
26
18
|
};
|
|
27
|
-
export declare const createTheme: (params: CreateThemeParams) =>
|
|
19
|
+
export declare const createTheme: (params: CreateThemeParams) => MuiTheme;
|
|
28
20
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createTheme as createMuiTheme,
|
|
1
|
+
import { createTheme as createMuiTheme, } from '@mui/material/styles';
|
|
2
2
|
import { merge } from 'lodash-es';
|
|
3
3
|
import { typography } from './typography';
|
|
4
4
|
import { getPalette } from './palette';
|
|
@@ -14,6 +14,6 @@ export var createTheme = function (params) {
|
|
|
14
14
|
palette: getPalette(brand),
|
|
15
15
|
components: getComponents(fontsUrls),
|
|
16
16
|
};
|
|
17
|
-
var muiTheme =
|
|
17
|
+
var muiTheme = createMuiTheme(merge({}, themeOptions, options));
|
|
18
18
|
return merge(muiTheme, { elevation: elevation, shape: shape });
|
|
19
19
|
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -3,6 +3,7 @@ import { CSSProperties } from 'react';
|
|
|
3
3
|
declare type CustomTypographyVariantStyle = {
|
|
4
4
|
fontSize: CSSProperties['fontSize'];
|
|
5
5
|
fontWeight: CSSProperties['fontWeight'];
|
|
6
|
+
lineHeight: CSSProperties['lineHeight'];
|
|
6
7
|
};
|
|
7
8
|
export declare type TypographyThemeOptions = Typography & {
|
|
8
9
|
h7: CustomTypographyVariantStyle;
|
|
@@ -16,90 +16,105 @@ export var typography = {
|
|
|
16
16
|
return {
|
|
17
17
|
fontSize: pxToRem(35, this.htmlFontSize),
|
|
18
18
|
fontWeight: this.fontWeightMedium,
|
|
19
|
+
lineHeight: pxToRem(40, this.htmlFontSize),
|
|
19
20
|
};
|
|
20
21
|
},
|
|
21
22
|
get h2() {
|
|
22
23
|
return {
|
|
23
24
|
fontSize: pxToRem(29, this.htmlFontSize),
|
|
24
25
|
fontWeight: this.fontWeightMedium,
|
|
26
|
+
lineHeight: pxToRem(32, this.htmlFontSize),
|
|
25
27
|
};
|
|
26
28
|
},
|
|
27
29
|
get h3() {
|
|
28
30
|
return {
|
|
29
31
|
fontSize: pxToRem(24, this.htmlFontSize),
|
|
30
32
|
fontWeight: this.fontWeightMedium,
|
|
33
|
+
lineHeight: pxToRem(28, this.htmlFontSize),
|
|
31
34
|
};
|
|
32
35
|
},
|
|
33
36
|
get h4() {
|
|
34
37
|
return {
|
|
35
38
|
fontSize: pxToRem(20, this.htmlFontSize),
|
|
36
39
|
fontWeight: this.fontWeightMedium,
|
|
40
|
+
lineHeight: pxToRem(24, this.htmlFontSize),
|
|
37
41
|
};
|
|
38
42
|
},
|
|
39
43
|
get h5() {
|
|
40
44
|
return {
|
|
41
45
|
fontSize: pxToRem(16, this.htmlFontSize),
|
|
42
46
|
fontWeight: this.fontWeightMedium,
|
|
47
|
+
lineHeight: pxToRem(24, this.htmlFontSize),
|
|
43
48
|
};
|
|
44
49
|
},
|
|
45
50
|
get h6() {
|
|
46
51
|
return {
|
|
47
52
|
fontSize: pxToRem(14, this.htmlFontSize),
|
|
48
53
|
fontWeight: this.fontWeightMedium,
|
|
54
|
+
lineHeight: pxToRem(16, this.htmlFontSize),
|
|
49
55
|
};
|
|
50
56
|
},
|
|
51
57
|
get h7() {
|
|
52
58
|
return {
|
|
53
59
|
fontSize: pxToRem(12, this.htmlFontSize),
|
|
54
60
|
fontWeight: this.fontWeightMedium,
|
|
61
|
+
lineHeight: pxToRem(20, this.htmlFontSize),
|
|
55
62
|
};
|
|
56
63
|
},
|
|
57
64
|
get h8() {
|
|
58
65
|
return {
|
|
59
66
|
fontSize: pxToRem(12, this.htmlFontSize),
|
|
60
67
|
fontWeight: this.fontWeightMedium,
|
|
68
|
+
lineHeight: pxToRem(16, this.htmlFontSize),
|
|
61
69
|
};
|
|
62
70
|
},
|
|
63
71
|
get h9() {
|
|
64
72
|
return {
|
|
65
73
|
fontSize: pxToRem(11, this.htmlFontSize),
|
|
66
74
|
fontWeight: this.fontWeightBold,
|
|
75
|
+
lineHeight: pxToRem(16, this.htmlFontSize),
|
|
67
76
|
};
|
|
68
77
|
},
|
|
69
78
|
get button() {
|
|
70
79
|
return {
|
|
71
80
|
fontSize: pxToRem(14, this.htmlFontSize),
|
|
72
81
|
fontWeight: this.fontWeightMedium,
|
|
82
|
+
lineHeight: pxToRem(24, this.htmlFontSize),
|
|
73
83
|
};
|
|
74
84
|
},
|
|
75
85
|
get ui() {
|
|
76
86
|
return {
|
|
77
87
|
fontSize: pxToRem(14, this.htmlFontSize),
|
|
78
88
|
fontWeight: this.fontWeightRegular,
|
|
89
|
+
lineHeight: pxToRem(20, this.htmlFontSize),
|
|
79
90
|
};
|
|
80
91
|
},
|
|
81
92
|
get link() {
|
|
82
93
|
return {
|
|
83
94
|
fontSize: pxToRem(14, this.htmlFontSize),
|
|
84
95
|
fontWeight: this.fontWeightRegular,
|
|
96
|
+
lineHeight: pxToRem(20, this.htmlFontSize),
|
|
85
97
|
};
|
|
86
98
|
},
|
|
87
99
|
get pointer() {
|
|
88
100
|
return {
|
|
89
101
|
fontSize: pxToRem(12, this.htmlFontSize),
|
|
90
102
|
fontWeight: this.fontWeightMedium,
|
|
103
|
+
lineHeight: pxToRem(16, this.htmlFontSize),
|
|
91
104
|
};
|
|
92
105
|
},
|
|
93
106
|
get small() {
|
|
94
107
|
return {
|
|
95
108
|
fontSize: pxToRem(12, this.htmlFontSize),
|
|
96
109
|
fontWeight: this.fontWeightRegular,
|
|
110
|
+
lineHeight: pxToRem(16, this.htmlFontSize),
|
|
97
111
|
};
|
|
98
112
|
},
|
|
99
113
|
get code() {
|
|
100
114
|
return {
|
|
101
115
|
fontSize: pxToRem(12, this.htmlFontSize),
|
|
102
116
|
fontWeight: this.fontWeightLight,
|
|
117
|
+
lineHeight: pxToRem(20, this.htmlFontSize),
|
|
103
118
|
};
|
|
104
119
|
},
|
|
105
120
|
body1: {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export * from './createStylesCache';
|
|
2
|
-
export * from './createStylesServer';
|
|
3
1
|
export * from './StylesCacheProvider';
|
|
4
2
|
export * from './Button';
|
|
5
3
|
export * from './ButtonBase';
|
|
@@ -19,4 +17,5 @@ export * from './TextField';
|
|
|
19
17
|
export * from './FormHelperText';
|
|
20
18
|
export * from './Grid';
|
|
21
19
|
export * from './Tag';
|
|
20
|
+
export * from './Tooltip';
|
|
22
21
|
export * from './TextArea';
|
|
@@ -10,8 +10,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./createStylesCache"), exports);
|
|
14
|
-
__exportStar(require("./createStylesServer"), exports);
|
|
15
13
|
__exportStar(require("./StylesCacheProvider"), exports);
|
|
16
14
|
__exportStar(require("./Button"), exports);
|
|
17
15
|
__exportStar(require("./ButtonBase"), exports);
|
|
@@ -31,4 +29,5 @@ __exportStar(require("./TextField"), exports);
|
|
|
31
29
|
__exportStar(require("./FormHelperText"), exports);
|
|
32
30
|
__exportStar(require("./Grid"), exports);
|
|
33
31
|
__exportStar(require("./Tag"), exports);
|
|
32
|
+
__exportStar(require("./Tooltip"), exports);
|
|
34
33
|
__exportStar(require("./TextArea"), exports);
|
package/package.json
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astral/ui",
|
|
3
|
-
"version": "0.4.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"source": "./src/index.ts",
|
|
3
|
+
"version": "0.4.1-alpha.10",
|
|
6
4
|
"jest": {
|
|
7
5
|
"moduleNameMapper": {
|
|
8
6
|
"^lodash-es$": "lodash"
|
|
@@ -33,14 +31,7 @@
|
|
|
33
31
|
},
|
|
34
32
|
"keywords": [],
|
|
35
33
|
"sideEffects": false,
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"module": "./esm/index.js"
|
|
39
|
-
|
|
40
|
-
".": {
|
|
41
|
-
"import": "./esm/index.js",
|
|
42
|
-
"require": "./cjs/index.js",
|
|
43
|
-
"types": "./types/index.d.ts"
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
34
|
+
"types": "./esm/index.d.ts",
|
|
35
|
+
"main": "./index.js",
|
|
36
|
+
"module": "./esm/index.js"
|
|
37
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as createStylesServer } from '@emotion/server/create-instance';
|
|
File without changes
|
package/server/index.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./createStylesCache"), exports);
|
|
14
|
+
__exportStar(require("./createStylesServer"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as styled } from '@emotion/styled';
|
|
@@ -4,5 +4,5 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.styled = void 0;
|
|
7
|
-
var styled_1 =
|
|
8
|
-
exports
|
|
7
|
+
var styled_1 = require("@emotion/styled");
|
|
8
|
+
Object.defineProperty(exports, "styled", { enumerable: true, get: function () { return __importDefault(styled_1).default; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Palette as MuiPalette, Theme as MuiTheme, PaletteColor, ThemeOptions } from '@mui/material/styles';
|
|
2
|
+
import { Background, Color } from './palette';
|
|
3
|
+
import { FontsUrls } from './components';
|
|
4
|
+
import { Brand } from './constants';
|
|
5
|
+
export declare type Palette = Omit<MuiPalette, 'grey' | 'background'> & {
|
|
6
|
+
red: Color;
|
|
7
|
+
green: Color;
|
|
8
|
+
yellow: Color;
|
|
9
|
+
grey: Color;
|
|
10
|
+
primary: PaletteColor & Color;
|
|
11
|
+
background: Background;
|
|
12
|
+
};
|
|
13
|
+
export declare type Theme = MuiTheme;
|
|
14
|
+
declare type CreateThemeParams = {
|
|
15
|
+
brand: Brand;
|
|
16
|
+
options?: ThemeOptions;
|
|
17
|
+
fontsUrls: FontsUrls;
|
|
18
|
+
};
|
|
19
|
+
export declare const createTheme: (params: CreateThemeParams) => MuiTheme;
|
|
20
|
+
export {};
|
|
@@ -17,7 +17,7 @@ var createTheme = function (params) {
|
|
|
17
17
|
palette: (0, palette_1.getPalette)(brand),
|
|
18
18
|
components: (0, components_1.getComponents)(fontsUrls),
|
|
19
19
|
};
|
|
20
|
-
var muiTheme = (0, styles_1.
|
|
20
|
+
var muiTheme = (0, styles_1.createTheme)((0, lodash_es_1.merge)({}, themeOptions, options));
|
|
21
21
|
return (0, lodash_es_1.merge)(muiTheme, { elevation: elevation_1.elevation, shape: shape_1.shape });
|
|
22
22
|
};
|
|
23
23
|
exports.createTheme = createTheme;
|
|
File without changes
|
|
File without changes
|