@useloops/design-system 1.4.632 → 1.4.633
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/esm/systems/WebCore/Tooltip/Tooltip.js +1 -1
- package/dist/systems/Platform/SliderGraph/_partials/StyledComponents.d.ts +9 -9
- package/dist/systems/WebCore/Tooltip/Tooltip.d.ts +2 -2
- package/dist/systems/WebCore/Tooltip/Tooltip.js +1 -1
- package/dist/theme/theme.hooks.d.ts +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as r}from"react/jsx-runtime";import{useTheme as e,Tooltip as o,Box as t}from"@mui/material";import{mergeSx as s}from"merge-sx";const
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{useTheme as e,Tooltip as o,Box as t}from"@mui/material";import{mergeSx as s}from"merge-sx";import{useMemo as a}from"react";const i=({variation:i="primary",message:p,sx:l,slotProps:m,children:c,...n})=>{const u=e(),{wrapper:d,...x}=m??{},f=a(()=>{const r=x.popper;return{...x,popper:{...r,sx:s({"& .MuiTooltip-tooltip":{backgroundColor:u.custom.palette.surface.overlay,borderRadius:u.spacing(u.custom.radius.md),filter:`drop-shadow(${u.custom.elevation.raised})`}},r?.sx)}}},[m,u]),y=a(()=>s({cursor:"pointer",display:"flex",alignItems:"center",color:u.custom.palette.text.primary},d?.sx),[m,u]);return r(o,{enterDelay:650,enterNextDelay:650,arrow:!0,title:p,slotProps:f,...n,children:r(t,{sx:y,children:c})})};export{i as default};
|
|
@@ -6,48 +6,48 @@ import * as _mui_material from '@mui/material';
|
|
|
6
6
|
import { SliderGraphBarProps, CommonComponentProps } from '../types.js';
|
|
7
7
|
|
|
8
8
|
declare const SliderGraphWrapper: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & {
|
|
9
|
-
component?: React.ElementType;
|
|
9
|
+
component?: React.ElementType | undefined;
|
|
10
10
|
} & {
|
|
11
11
|
maxHeight: number;
|
|
12
12
|
} & {
|
|
13
13
|
responsive?: boolean;
|
|
14
14
|
}, {}, {}>;
|
|
15
15
|
declare const VeticalBarWrapper: _emotion_styled.StyledComponent<_mui_material.ListItemButtonOwnProps & Omit<_mui_material.ButtonBaseOwnProps, "classes"> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "alignItems" | "className" | "style" | "classes" | "children" | "sx" | "autoFocus" | "tabIndex" | "disableGutters" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "dense" | "divider" | "selected"> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & {
|
|
16
|
-
component?: React.ElementType;
|
|
16
|
+
component?: React.ElementType | undefined;
|
|
17
17
|
} & {
|
|
18
18
|
maxHeight: number;
|
|
19
19
|
} & {
|
|
20
20
|
responsive?: boolean;
|
|
21
21
|
}, {}, {}>;
|
|
22
22
|
declare const SliderGraphBarWrapper: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & {
|
|
23
|
-
component?: React.ElementType;
|
|
23
|
+
component?: React.ElementType | undefined;
|
|
24
24
|
} & {
|
|
25
25
|
maxHeight: number;
|
|
26
26
|
} & {
|
|
27
27
|
responsive?: boolean;
|
|
28
28
|
}, {}, {}>;
|
|
29
29
|
declare const VerticalBarValue: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & {
|
|
30
|
-
component?: React.ElementType;
|
|
30
|
+
component?: React.ElementType | undefined;
|
|
31
31
|
}, {}, {}>;
|
|
32
32
|
declare const VerticalBar: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & {
|
|
33
|
-
component?: React.ElementType;
|
|
33
|
+
component?: React.ElementType | undefined;
|
|
34
34
|
} & CommonComponentProps & {
|
|
35
35
|
value: number;
|
|
36
36
|
checked: boolean;
|
|
37
37
|
}, {}, {}>;
|
|
38
38
|
declare const VerticalBarActions: _emotion_styled.StyledComponent<_mui_material.StackOwnProps & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_material.StackOwnProps> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & _mui_system.BoxOwnProps<_mui_material.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & {
|
|
39
|
-
component?: React.ElementType;
|
|
39
|
+
component?: React.ElementType | undefined;
|
|
40
40
|
}, {}, {}>;
|
|
41
41
|
declare const VerticalBarLabel: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & {
|
|
42
|
-
component?: React.ElementType;
|
|
42
|
+
component?: React.ElementType | undefined;
|
|
43
43
|
}, {}, {}>;
|
|
44
44
|
declare const AxisSegmentWrapper: _emotion_styled.StyledComponent<_mui_material.StackOwnProps & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_material.StackOwnProps> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & {
|
|
45
|
-
component?: React.ElementType;
|
|
45
|
+
component?: React.ElementType | undefined;
|
|
46
46
|
} & {
|
|
47
47
|
maxHeight: number;
|
|
48
48
|
} & Partial<SliderGraphBarProps>, {}, {}>;
|
|
49
49
|
declare const AxisSegment: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & {
|
|
50
|
-
component?: React.ElementType;
|
|
50
|
+
component?: React.ElementType | undefined;
|
|
51
51
|
} & {
|
|
52
52
|
showGraphLines?: boolean;
|
|
53
53
|
graphWidth?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TooltipProps as TooltipProps$1, BoxProps } from '@mui/material';
|
|
2
|
-
import {
|
|
2
|
+
import { FC } from 'react';
|
|
3
3
|
|
|
4
4
|
interface TooltipProps extends Omit<Partial<TooltipProps$1>, 'title' | 'slotProps'> {
|
|
5
5
|
message: TooltipProps$1['title'];
|
|
@@ -8,7 +8,7 @@ interface TooltipProps extends Omit<Partial<TooltipProps$1>, 'title' | 'slotProp
|
|
|
8
8
|
wrapper?: BoxProps;
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
|
-
declare const Tooltip:
|
|
11
|
+
declare const Tooltip: FC<TooltipProps>;
|
|
12
12
|
|
|
13
13
|
export { Tooltip as default };
|
|
14
14
|
export type { TooltipProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),r=require("@mui/material"),t=require("merge-sx");module.exports=({variation:
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),r=require("@mui/material"),t=require("merge-sx"),o=require("react");module.exports=({variation:s="primary",message:i,sx:a,slotProps:l,children:u,...p})=>{const m=r.useTheme(),{wrapper:c,...n}=l??{},x=o.useMemo(()=>{const e=n.popper;return{...n,popper:{...e,sx:t.mergeSx({"& .MuiTooltip-tooltip":{backgroundColor:m.custom.palette.surface.overlay,borderRadius:m.spacing(m.custom.radius.md),filter:`drop-shadow(${m.custom.elevation.raised})`}},e?.sx)}}},[l,m]),d=o.useMemo(()=>t.mergeSx({cursor:"pointer",display:"flex",alignItems:"center",color:m.custom.palette.text.primary},c?.sx),[l,m]);return e.jsx(r.Tooltip,{enterDelay:650,enterNextDelay:650,arrow:!0,title:i,slotProps:x,...p,children:e.jsx(r.Box,{sx:d,children:u})})};
|
|
@@ -4,7 +4,7 @@ import { PaletteMode, Direction } from '@mui/material';
|
|
|
4
4
|
import { ScreenSize, CustomTheme } from './types.js';
|
|
5
5
|
|
|
6
6
|
declare const useThemeBuilder: (initialMode?: PaletteMode, initialScreenSize?: ScreenSize, initialDirection?: Direction) => {
|
|
7
|
-
breakpoint: "" | "sm" | "
|
|
7
|
+
breakpoint: "" | "sm" | "md" | "lg" | "xl";
|
|
8
8
|
custom: CustomTheme;
|
|
9
9
|
gridOverlayVisible: boolean;
|
|
10
10
|
mode: PaletteMode;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useloops/design-system",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.633",
|
|
4
4
|
"description": "The official React based Loops design system",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -152,8 +152,8 @@
|
|
|
152
152
|
"@emotion/react": "^11.14.0",
|
|
153
153
|
"@emotion/styled": "^11.14.1",
|
|
154
154
|
"@faker-js/faker": "^9.4.0",
|
|
155
|
-
"@mui/icons-material": "^7.3.
|
|
156
|
-
"@mui/material": "^7.3.
|
|
155
|
+
"@mui/icons-material": "^7.3.9",
|
|
156
|
+
"@mui/material": "^7.3.9",
|
|
157
157
|
"@rollup/plugin-babel": "^6.0.4",
|
|
158
158
|
"@rollup/plugin-commonjs": "^26.0.1",
|
|
159
159
|
"@rollup/plugin-json": "^6.1.0",
|