@linagora/twake-mui 10.4.0 → 10.5.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/CHANGELOG.md +15 -0
- package/dist/components/BottomSheet/BottomSheet.stories.d.ts +23 -0
- package/dist/components/BottomSheet/BottomSheet.stories.js +139 -0
- package/dist/components/BottomSheet/BottomSheetHeader.d.ts +9 -0
- package/dist/components/BottomSheet/BottomSheetHeader.js +14 -0
- package/dist/components/BottomSheet/BottomSheetItem.d.ts +10 -0
- package/dist/components/BottomSheet/BottomSheetItem.js +18 -0
- package/dist/components/BottomSheet/BottomSheetTitle.d.ts +10 -0
- package/dist/components/BottomSheet/BottomSheetTitle.js +20 -0
- package/dist/components/BottomSheet/core/BottomSheetCore.d.ts +28 -0
- package/dist/components/BottomSheet/core/BottomSheetCore.js +118 -0
- package/dist/components/BottomSheet/core/helpers.d.ts +8 -0
- package/dist/components/BottomSheet/core/helpers.js +29 -0
- package/dist/components/BottomSheet/helpers.d.ts +14 -0
- package/dist/components/BottomSheet/helpers.js +95 -0
- package/dist/components/BottomSheet/index.d.ts +8 -0
- package/dist/components/BottomSheet/index.js +158 -0
- package/dist/components/BottomSheet/safeArea.d.ts +3 -0
- package/dist/components/BottomSheet/safeArea.js +10 -0
- package/dist/components/BottomSheet/styles.d.ts +25 -0
- package/dist/components/BottomSheet/styles.js +100 -0
- package/dist/components/BottomSheet/types.d.ts +77 -0
- package/dist/components/BottomSheet/types.js +1 -0
- package/dist/components/ContactPopover/AttendeeInfo.js +3 -3
- package/dist/components/ContactPopover/ContactPopoverCalendarAction.js +2 -2
- package/dist/components/ContactPopover/ContactPopoverChatAction.js +2 -2
- package/dist/components/ContactPopover/ContactPopoverEmailAction.js +2 -2
- package/dist/components/ContactPopover/ContactPopoverVideoAction.js +2 -2
- package/dist/components/SearchBar/DisableHighlight.js +1 -1
- package/dist/components/SearchBar/FocusHighlight.js +1 -1
- package/dist/components/SearchBar/SearchBarIconWrapper.js +1 -1
- package/dist/components/SearchBar/SearchBarRoot.js +4 -4
- package/dist/components/SpaceOverlay/OverlayFrame.js +17 -21
- package/dist/components/SpaceOverlay/SpaceOverlay.js +2 -2
- package/dist/index.d.ts +16 -1
- package/dist/index.js +8 -1
- package/dist/lib/overrides.js +21 -19
- package/package.json +4 -1
- package/dist/components/SpaceOverlay/index.d.ts +0 -8
- package/dist/components/SpaceOverlay/index.js +0 -4
package/dist/lib/overrides.js
CHANGED
|
@@ -16,7 +16,7 @@ import { selectClasses } from '@mui/material/Select';
|
|
|
16
16
|
import { switchClasses } from '@mui/material/Switch';
|
|
17
17
|
import { tabClasses } from '@mui/material/Tab';
|
|
18
18
|
import { tabsClasses } from '@mui/material/Tabs';
|
|
19
|
-
import { alpha
|
|
19
|
+
import { alpha } from '@mui/material/styles';
|
|
20
20
|
import React from 'react';
|
|
21
21
|
import { radius } from './radius';
|
|
22
22
|
import AccordionExpandIcon from '../components/AccordionExpandIcon';
|
|
@@ -520,7 +520,7 @@ export const overrides = {
|
|
|
520
520
|
height: 14,
|
|
521
521
|
minWidth: 14,
|
|
522
522
|
padding: 0,
|
|
523
|
-
border: `2px solid ${theme.palette.background.paper}`,
|
|
523
|
+
border: `2px solid ${theme.vars.palette.background.paper}`,
|
|
524
524
|
borderRadius: '100%',
|
|
525
525
|
fontSize: theme.typography.pxToRem(10)
|
|
526
526
|
}),
|
|
@@ -587,12 +587,12 @@ export const overrides = {
|
|
|
587
587
|
MuiToggleButtonGroup: {
|
|
588
588
|
styleOverrides: {
|
|
589
589
|
root: ({ theme }) => ({
|
|
590
|
-
borderColor: theme.palette.secondary.dark,
|
|
590
|
+
borderColor: theme.vars.palette.secondary.dark,
|
|
591
591
|
'& .MuiToggleButton-root:not(.Mui-selected)': {
|
|
592
|
-
color: theme.palette.text.secondary,
|
|
593
|
-
backgroundColor: alpha(theme.palette.text.secondary, 0.08),
|
|
592
|
+
color: theme.vars.palette.text.secondary,
|
|
593
|
+
backgroundColor: theme.alpha(theme.vars.palette.text.secondary, 0.08),
|
|
594
594
|
'& svg, & .MuiSvgIcon-root': {
|
|
595
|
-
color: theme.palette.text.secondary
|
|
595
|
+
color: theme.vars.palette.text.secondary
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
598
|
})
|
|
@@ -601,15 +601,15 @@ export const overrides = {
|
|
|
601
601
|
MuiToggleButton: {
|
|
602
602
|
styleOverrides: {
|
|
603
603
|
root: ({ theme }) => ({
|
|
604
|
-
color: theme.palette.text.primary,
|
|
604
|
+
color: theme.vars.palette.text.primary,
|
|
605
605
|
'&.Mui-selected': {
|
|
606
|
-
color: theme.palette.text.primary,
|
|
606
|
+
color: theme.vars.palette.text.primary,
|
|
607
607
|
backgroundColor: 'transparent',
|
|
608
608
|
'&:hover': {
|
|
609
609
|
backgroundColor: 'transparent'
|
|
610
610
|
},
|
|
611
611
|
'& svg, & .MuiSvgIcon-root': {
|
|
612
|
-
color: theme.palette.primary.main
|
|
612
|
+
color: theme.vars.palette.primary.main
|
|
613
613
|
}
|
|
614
614
|
},
|
|
615
615
|
variants: [
|
|
@@ -631,7 +631,7 @@ export const overrides = {
|
|
|
631
631
|
{
|
|
632
632
|
props: { color: 'default' },
|
|
633
633
|
style: {
|
|
634
|
-
color: theme.palette.text.secondary
|
|
634
|
+
color: theme.vars.palette.text.secondary
|
|
635
635
|
}
|
|
636
636
|
},
|
|
637
637
|
{
|
|
@@ -955,7 +955,9 @@ export const overrides = {
|
|
|
955
955
|
marginLeft: 5,
|
|
956
956
|
marginRight: -12,
|
|
957
957
|
transform: 'rotate(-90deg)',
|
|
958
|
-
[`&.${accordionSummaryClasses.expanded}`]: {
|
|
958
|
+
[`&.${accordionSummaryClasses.expanded}`]: {
|
|
959
|
+
transform: 'rotate(0deg)'
|
|
960
|
+
}
|
|
959
961
|
}),
|
|
960
962
|
content: {
|
|
961
963
|
paddingLeft: 8,
|
|
@@ -981,23 +983,23 @@ export const overrides = {
|
|
|
981
983
|
borderRadius: 28,
|
|
982
984
|
width: 96,
|
|
983
985
|
height: 96,
|
|
984
|
-
color: theme.palette.text.primary,
|
|
985
|
-
backgroundColor: theme.palette.background.paper,
|
|
986
|
+
color: theme.vars.palette.text.primary,
|
|
987
|
+
backgroundColor: theme.vars.palette.background.paper,
|
|
986
988
|
'&:hover': {
|
|
987
|
-
backgroundColor:
|
|
989
|
+
backgroundColor: `color-mix(in srgb, ${theme.vars.palette.background.paper}, #000 5%)`
|
|
988
990
|
},
|
|
989
991
|
'@media (hover: none)': {
|
|
990
|
-
backgroundColor: theme.palette.background.paper
|
|
992
|
+
backgroundColor: theme.vars.palette.background.paper
|
|
991
993
|
}
|
|
992
994
|
}),
|
|
993
995
|
primary: ({ theme }) => ({
|
|
994
|
-
color: theme.palette.primary.dark,
|
|
995
|
-
backgroundColor: theme.palette.primary.light,
|
|
996
|
+
color: theme.vars.palette.primary.dark,
|
|
997
|
+
backgroundColor: theme.vars.palette.primary.light,
|
|
996
998
|
'&:hover': {
|
|
997
|
-
backgroundColor:
|
|
999
|
+
backgroundColor: `color-mix(in srgb, ${theme.vars.palette.primary.light}, #000 5%)`
|
|
998
1000
|
},
|
|
999
1001
|
'@media (hover: none)': {
|
|
1000
|
-
backgroundColor: theme.palette.primary.light
|
|
1002
|
+
backgroundColor: theme.vars.palette.primary.light
|
|
1001
1003
|
}
|
|
1002
1004
|
}),
|
|
1003
1005
|
extended: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linagora/twake-mui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "10.
|
|
4
|
+
"version": "10.5.0",
|
|
5
5
|
"description": "MUI v9 theme system for Twake applications",
|
|
6
6
|
"author": "Twake",
|
|
7
7
|
"license": "MIT",
|
|
@@ -60,7 +60,10 @@
|
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@linagora/twake-css": "^1.0.0",
|
|
62
62
|
"@mui/utils": "^9.2.0",
|
|
63
|
+
"@react-spring/web": "10.1.2",
|
|
64
|
+
"@use-gesture/react": "10.3.1",
|
|
63
65
|
"classnames": "^2.5.1",
|
|
66
|
+
"react-use-measure": "2.1.7",
|
|
64
67
|
"react-virtuoso": "4.13.0",
|
|
65
68
|
"rooks": "8.4.0"
|
|
66
69
|
},
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { connectSpaceOverlay, computeOverlayRegion } from './spaceOverlay';
|
|
2
|
-
export type { SpaceOverlay, SpaceOverlayStatus } from './spaceOverlay';
|
|
3
|
-
export { OverlayPortal, SpaceOverlayProvider, overlayThemeOptions, useOverlayWindow } from './SpaceOverlay';
|
|
4
|
-
export type { SpaceOverlayProviderProps } from './SpaceOverlay';
|
|
5
|
-
export { overlayClipPath, overlayRegionMessage, parseOverlayRegion, parseOverlayRegionMessage } from './region';
|
|
6
|
-
export type { OverlayBox, OverlayRegion } from './region';
|
|
7
|
-
export { OverlayFrame } from './OverlayFrame';
|
|
8
|
-
export type { OverlayFrameProps } from './OverlayFrame';
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { connectSpaceOverlay, computeOverlayRegion } from './spaceOverlay';
|
|
2
|
-
export { OverlayPortal, SpaceOverlayProvider, overlayThemeOptions, useOverlayWindow } from './SpaceOverlay';
|
|
3
|
-
export { overlayClipPath, overlayRegionMessage, parseOverlayRegion, parseOverlayRegionMessage } from './region';
|
|
4
|
-
export { OverlayFrame } from './OverlayFrame';
|