td-plots 1.5.0 → 1.5.1
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/index.esm.js +42 -15
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +41 -14
- package/dist/index.js.map +1 -1
- package/package.json +7 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __spreadArray, __assign } from 'tslib';
|
|
2
|
-
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { lazy, useRef, useState, useEffect, useMemo, Suspense } from 'react';
|
|
5
5
|
import emStyled from '@emotion/styled';
|
|
@@ -1392,8 +1392,8 @@ function requireReactIs_production () {
|
|
|
1392
1392
|
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
|
1393
1393
|
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
|
1394
1394
|
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
|
1395
|
-
REACT_PROFILER_TYPE = Symbol.for("react.profiler")
|
|
1396
|
-
|
|
1395
|
+
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
|
1396
|
+
REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
|
1397
1397
|
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
|
1398
1398
|
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
|
1399
1399
|
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
|
@@ -1563,8 +1563,8 @@ function requireReactIs_development () {
|
|
|
1563
1563
|
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
|
1564
1564
|
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
|
1565
1565
|
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
|
1566
|
-
REACT_PROFILER_TYPE = Symbol.for("react.profiler")
|
|
1567
|
-
|
|
1566
|
+
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
|
1567
|
+
REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
|
1568
1568
|
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
|
1569
1569
|
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
|
1570
1570
|
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
|
@@ -2760,7 +2760,7 @@ const styleFunctionSx = unstable_createStyleFunctionSx();
|
|
|
2760
2760
|
styleFunctionSx.filterProps = ['sx'];
|
|
2761
2761
|
|
|
2762
2762
|
/**
|
|
2763
|
-
* @mui/styled-engine v7.3.
|
|
2763
|
+
* @mui/styled-engine v7.3.3
|
|
2764
2764
|
*
|
|
2765
2765
|
* @license MIT
|
|
2766
2766
|
* This source code is licensed under the MIT license found in the
|
|
@@ -5059,7 +5059,7 @@ function createColorScheme(options) {
|
|
|
5059
5059
|
opacity,
|
|
5060
5060
|
overlays,
|
|
5061
5061
|
colorSpace,
|
|
5062
|
-
...
|
|
5062
|
+
...other
|
|
5063
5063
|
} = options;
|
|
5064
5064
|
// need to cast because `colorSpace` is considered internal at the moment.
|
|
5065
5065
|
const palette = createPalette({
|
|
@@ -5073,7 +5073,7 @@ function createColorScheme(options) {
|
|
|
5073
5073
|
...opacity
|
|
5074
5074
|
},
|
|
5075
5075
|
overlays: overlays || getOverlays(palette.mode),
|
|
5076
|
-
...
|
|
5076
|
+
...other
|
|
5077
5077
|
};
|
|
5078
5078
|
}
|
|
5079
5079
|
|
|
@@ -5583,7 +5583,7 @@ function createTheme(options = {},
|
|
|
5583
5583
|
light: true
|
|
5584
5584
|
} : undefined,
|
|
5585
5585
|
defaultColorScheme: initialDefaultColorScheme = palette?.mode,
|
|
5586
|
-
...
|
|
5586
|
+
...other
|
|
5587
5587
|
} = options;
|
|
5588
5588
|
const defaultColorSchemeInput = initialDefaultColorScheme || 'light';
|
|
5589
5589
|
const defaultScheme = initialColorSchemes?.[defaultColorSchemeInput];
|
|
@@ -5640,7 +5640,7 @@ function createTheme(options = {},
|
|
|
5640
5640
|
colorSchemesInput.light = true;
|
|
5641
5641
|
}
|
|
5642
5642
|
return createThemeWithVars({
|
|
5643
|
-
...
|
|
5643
|
+
...other,
|
|
5644
5644
|
colorSchemes: colorSchemesInput,
|
|
5645
5645
|
defaultColorScheme: defaultColorSchemeInput,
|
|
5646
5646
|
...(typeof cssVariables !== 'boolean' && cssVariables)
|
|
@@ -5729,7 +5729,7 @@ function createSimplePaletteValueFilter(additionalPropertiesToCheck = []) {
|
|
|
5729
5729
|
function getCircularProgressUtilityClass(slot) {
|
|
5730
5730
|
return generateUtilityClass('MuiCircularProgress', slot);
|
|
5731
5731
|
}
|
|
5732
|
-
generateUtilityClasses('MuiCircularProgress', ['root', 'determinate', 'indeterminate', 'colorPrimary', 'colorSecondary', 'svg', 'circle', 'circleDeterminate', 'circleIndeterminate', 'circleDisableShrink']);
|
|
5732
|
+
generateUtilityClasses('MuiCircularProgress', ['root', 'determinate', 'indeterminate', 'colorPrimary', 'colorSecondary', 'svg', 'track', 'circle', 'circleDeterminate', 'circleIndeterminate', 'circleDisableShrink']);
|
|
5733
5733
|
|
|
5734
5734
|
const SIZE = 44;
|
|
5735
5735
|
const circularRotateKeyframe = keyframes`
|
|
@@ -5777,6 +5777,7 @@ const useUtilityClasses = ownerState => {
|
|
|
5777
5777
|
const slots = {
|
|
5778
5778
|
root: ['root', variant, `color${capitalize(color)}`],
|
|
5779
5779
|
svg: ['svg'],
|
|
5780
|
+
track: ['track'],
|
|
5780
5781
|
circle: ['circle', `circle${capitalize(variant)}`, disableShrink && 'circleDisableShrink']
|
|
5781
5782
|
};
|
|
5782
5783
|
return composeClasses(slots, getCircularProgressUtilityClass, classes);
|
|
@@ -5862,6 +5863,15 @@ const CircularProgressCircle = styled('circle', {
|
|
|
5862
5863
|
}
|
|
5863
5864
|
}]
|
|
5864
5865
|
})));
|
|
5866
|
+
const CircularProgressTrack = styled('circle', {
|
|
5867
|
+
name: 'MuiCircularProgress',
|
|
5868
|
+
slot: 'Track'
|
|
5869
|
+
})(memoTheme(({
|
|
5870
|
+
theme
|
|
5871
|
+
}) => ({
|
|
5872
|
+
stroke: 'currentColor',
|
|
5873
|
+
opacity: (theme.vars || theme).palette.action.activatedOpacity
|
|
5874
|
+
})));
|
|
5865
5875
|
|
|
5866
5876
|
/**
|
|
5867
5877
|
* ## ARIA
|
|
@@ -5879,6 +5889,7 @@ const CircularProgress = /*#__PURE__*/React.forwardRef(function CircularProgress
|
|
|
5879
5889
|
className,
|
|
5880
5890
|
color = 'primary',
|
|
5881
5891
|
disableShrink = false,
|
|
5892
|
+
enableTrackSlot = false,
|
|
5882
5893
|
size = 40,
|
|
5883
5894
|
style,
|
|
5884
5895
|
thickness = 3.6,
|
|
@@ -5893,7 +5904,8 @@ const CircularProgress = /*#__PURE__*/React.forwardRef(function CircularProgress
|
|
|
5893
5904
|
size,
|
|
5894
5905
|
thickness,
|
|
5895
5906
|
value,
|
|
5896
|
-
variant
|
|
5907
|
+
variant,
|
|
5908
|
+
enableTrackSlot
|
|
5897
5909
|
};
|
|
5898
5910
|
const classes = useUtilityClasses(ownerState);
|
|
5899
5911
|
const circleStyle = {};
|
|
@@ -5919,11 +5931,20 @@ const CircularProgress = /*#__PURE__*/React.forwardRef(function CircularProgress
|
|
|
5919
5931
|
role: "progressbar",
|
|
5920
5932
|
...rootProps,
|
|
5921
5933
|
...other,
|
|
5922
|
-
children: /*#__PURE__*/
|
|
5934
|
+
children: /*#__PURE__*/jsxs(CircularProgressSVG, {
|
|
5923
5935
|
className: classes.svg,
|
|
5924
5936
|
ownerState: ownerState,
|
|
5925
5937
|
viewBox: `${SIZE / 2} ${SIZE / 2} ${SIZE} ${SIZE}`,
|
|
5926
|
-
children: /*#__PURE__*/jsx(
|
|
5938
|
+
children: [enableTrackSlot ? /*#__PURE__*/jsx(CircularProgressTrack, {
|
|
5939
|
+
className: classes.track,
|
|
5940
|
+
ownerState: ownerState,
|
|
5941
|
+
cx: SIZE,
|
|
5942
|
+
cy: SIZE,
|
|
5943
|
+
r: (SIZE - thickness) / 2,
|
|
5944
|
+
fill: "none",
|
|
5945
|
+
strokeWidth: thickness,
|
|
5946
|
+
"aria-hidden": "true"
|
|
5947
|
+
}) : null, /*#__PURE__*/jsx(CircularProgressCircle, {
|
|
5927
5948
|
className: classes.circle,
|
|
5928
5949
|
style: circleStyle,
|
|
5929
5950
|
ownerState: ownerState,
|
|
@@ -5932,7 +5953,7 @@ const CircularProgress = /*#__PURE__*/React.forwardRef(function CircularProgress
|
|
|
5932
5953
|
r: (SIZE - thickness) / 2,
|
|
5933
5954
|
fill: "none",
|
|
5934
5955
|
strokeWidth: thickness
|
|
5935
|
-
})
|
|
5956
|
+
})]
|
|
5936
5957
|
})
|
|
5937
5958
|
});
|
|
5938
5959
|
});
|
|
@@ -5967,6 +5988,12 @@ process.env.NODE_ENV !== "production" ? CircularProgress.propTypes /* remove-pro
|
|
|
5967
5988
|
}
|
|
5968
5989
|
return null;
|
|
5969
5990
|
}),
|
|
5991
|
+
/**
|
|
5992
|
+
* If `true`, a track circle slot is mounted to show a subtle background for the progress.
|
|
5993
|
+
* The `size` and `thickness` apply to the track slot to be consistent with the progress circle.
|
|
5994
|
+
* @default false
|
|
5995
|
+
*/
|
|
5996
|
+
enableTrackSlot: PropTypes.bool,
|
|
5970
5997
|
/**
|
|
5971
5998
|
* The size of the component.
|
|
5972
5999
|
* If using a number, the pixel unit is assumed.
|