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.js
CHANGED
|
@@ -1412,8 +1412,8 @@ function requireReactIs_production () {
|
|
|
1412
1412
|
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
|
1413
1413
|
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
|
1414
1414
|
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
|
1415
|
-
REACT_PROFILER_TYPE = Symbol.for("react.profiler")
|
|
1416
|
-
|
|
1415
|
+
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
|
1416
|
+
REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
|
1417
1417
|
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
|
1418
1418
|
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
|
1419
1419
|
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
|
@@ -1583,8 +1583,8 @@ function requireReactIs_development () {
|
|
|
1583
1583
|
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
|
1584
1584
|
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
|
1585
1585
|
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
|
1586
|
-
REACT_PROFILER_TYPE = Symbol.for("react.profiler")
|
|
1587
|
-
|
|
1586
|
+
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
|
1587
|
+
REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
|
1588
1588
|
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
|
1589
1589
|
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
|
1590
1590
|
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
|
@@ -2780,7 +2780,7 @@ const styleFunctionSx = unstable_createStyleFunctionSx();
|
|
|
2780
2780
|
styleFunctionSx.filterProps = ['sx'];
|
|
2781
2781
|
|
|
2782
2782
|
/**
|
|
2783
|
-
* @mui/styled-engine v7.3.
|
|
2783
|
+
* @mui/styled-engine v7.3.3
|
|
2784
2784
|
*
|
|
2785
2785
|
* @license MIT
|
|
2786
2786
|
* This source code is licensed under the MIT license found in the
|
|
@@ -5079,7 +5079,7 @@ function createColorScheme(options) {
|
|
|
5079
5079
|
opacity,
|
|
5080
5080
|
overlays,
|
|
5081
5081
|
colorSpace,
|
|
5082
|
-
...
|
|
5082
|
+
...other
|
|
5083
5083
|
} = options;
|
|
5084
5084
|
// need to cast because `colorSpace` is considered internal at the moment.
|
|
5085
5085
|
const palette = createPalette({
|
|
@@ -5093,7 +5093,7 @@ function createColorScheme(options) {
|
|
|
5093
5093
|
...opacity
|
|
5094
5094
|
},
|
|
5095
5095
|
overlays: overlays || getOverlays(palette.mode),
|
|
5096
|
-
...
|
|
5096
|
+
...other
|
|
5097
5097
|
};
|
|
5098
5098
|
}
|
|
5099
5099
|
|
|
@@ -5603,7 +5603,7 @@ function createTheme(options = {},
|
|
|
5603
5603
|
light: true
|
|
5604
5604
|
} : undefined,
|
|
5605
5605
|
defaultColorScheme: initialDefaultColorScheme = palette?.mode,
|
|
5606
|
-
...
|
|
5606
|
+
...other
|
|
5607
5607
|
} = options;
|
|
5608
5608
|
const defaultColorSchemeInput = initialDefaultColorScheme || 'light';
|
|
5609
5609
|
const defaultScheme = initialColorSchemes?.[defaultColorSchemeInput];
|
|
@@ -5660,7 +5660,7 @@ function createTheme(options = {},
|
|
|
5660
5660
|
colorSchemesInput.light = true;
|
|
5661
5661
|
}
|
|
5662
5662
|
return createThemeWithVars({
|
|
5663
|
-
...
|
|
5663
|
+
...other,
|
|
5664
5664
|
colorSchemes: colorSchemesInput,
|
|
5665
5665
|
defaultColorScheme: defaultColorSchemeInput,
|
|
5666
5666
|
...(typeof cssVariables !== 'boolean' && cssVariables)
|
|
@@ -5749,7 +5749,7 @@ function createSimplePaletteValueFilter(additionalPropertiesToCheck = []) {
|
|
|
5749
5749
|
function getCircularProgressUtilityClass(slot) {
|
|
5750
5750
|
return generateUtilityClass('MuiCircularProgress', slot);
|
|
5751
5751
|
}
|
|
5752
|
-
generateUtilityClasses('MuiCircularProgress', ['root', 'determinate', 'indeterminate', 'colorPrimary', 'colorSecondary', 'svg', 'circle', 'circleDeterminate', 'circleIndeterminate', 'circleDisableShrink']);
|
|
5752
|
+
generateUtilityClasses('MuiCircularProgress', ['root', 'determinate', 'indeterminate', 'colorPrimary', 'colorSecondary', 'svg', 'track', 'circle', 'circleDeterminate', 'circleIndeterminate', 'circleDisableShrink']);
|
|
5753
5753
|
|
|
5754
5754
|
const SIZE = 44;
|
|
5755
5755
|
const circularRotateKeyframe = react.keyframes`
|
|
@@ -5797,6 +5797,7 @@ const useUtilityClasses = ownerState => {
|
|
|
5797
5797
|
const slots = {
|
|
5798
5798
|
root: ['root', variant, `color${capitalize(color)}`],
|
|
5799
5799
|
svg: ['svg'],
|
|
5800
|
+
track: ['track'],
|
|
5800
5801
|
circle: ['circle', `circle${capitalize(variant)}`, disableShrink && 'circleDisableShrink']
|
|
5801
5802
|
};
|
|
5802
5803
|
return composeClasses(slots, getCircularProgressUtilityClass, classes);
|
|
@@ -5882,6 +5883,15 @@ const CircularProgressCircle = styled('circle', {
|
|
|
5882
5883
|
}
|
|
5883
5884
|
}]
|
|
5884
5885
|
})));
|
|
5886
|
+
const CircularProgressTrack = styled('circle', {
|
|
5887
|
+
name: 'MuiCircularProgress',
|
|
5888
|
+
slot: 'Track'
|
|
5889
|
+
})(memoTheme(({
|
|
5890
|
+
theme
|
|
5891
|
+
}) => ({
|
|
5892
|
+
stroke: 'currentColor',
|
|
5893
|
+
opacity: (theme.vars || theme).palette.action.activatedOpacity
|
|
5894
|
+
})));
|
|
5885
5895
|
|
|
5886
5896
|
/**
|
|
5887
5897
|
* ## ARIA
|
|
@@ -5899,6 +5909,7 @@ const CircularProgress = /*#__PURE__*/React__namespace.forwardRef(function Circu
|
|
|
5899
5909
|
className,
|
|
5900
5910
|
color = 'primary',
|
|
5901
5911
|
disableShrink = false,
|
|
5912
|
+
enableTrackSlot = false,
|
|
5902
5913
|
size = 40,
|
|
5903
5914
|
style,
|
|
5904
5915
|
thickness = 3.6,
|
|
@@ -5913,7 +5924,8 @@ const CircularProgress = /*#__PURE__*/React__namespace.forwardRef(function Circu
|
|
|
5913
5924
|
size,
|
|
5914
5925
|
thickness,
|
|
5915
5926
|
value,
|
|
5916
|
-
variant
|
|
5927
|
+
variant,
|
|
5928
|
+
enableTrackSlot
|
|
5917
5929
|
};
|
|
5918
5930
|
const classes = useUtilityClasses(ownerState);
|
|
5919
5931
|
const circleStyle = {};
|
|
@@ -5939,11 +5951,20 @@ const CircularProgress = /*#__PURE__*/React__namespace.forwardRef(function Circu
|
|
|
5939
5951
|
role: "progressbar",
|
|
5940
5952
|
...rootProps,
|
|
5941
5953
|
...other,
|
|
5942
|
-
children: /*#__PURE__*/jsxRuntime.
|
|
5954
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(CircularProgressSVG, {
|
|
5943
5955
|
className: classes.svg,
|
|
5944
5956
|
ownerState: ownerState,
|
|
5945
5957
|
viewBox: `${SIZE / 2} ${SIZE / 2} ${SIZE} ${SIZE}`,
|
|
5946
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
5958
|
+
children: [enableTrackSlot ? /*#__PURE__*/jsxRuntime.jsx(CircularProgressTrack, {
|
|
5959
|
+
className: classes.track,
|
|
5960
|
+
ownerState: ownerState,
|
|
5961
|
+
cx: SIZE,
|
|
5962
|
+
cy: SIZE,
|
|
5963
|
+
r: (SIZE - thickness) / 2,
|
|
5964
|
+
fill: "none",
|
|
5965
|
+
strokeWidth: thickness,
|
|
5966
|
+
"aria-hidden": "true"
|
|
5967
|
+
}) : null, /*#__PURE__*/jsxRuntime.jsx(CircularProgressCircle, {
|
|
5947
5968
|
className: classes.circle,
|
|
5948
5969
|
style: circleStyle,
|
|
5949
5970
|
ownerState: ownerState,
|
|
@@ -5952,7 +5973,7 @@ const CircularProgress = /*#__PURE__*/React__namespace.forwardRef(function Circu
|
|
|
5952
5973
|
r: (SIZE - thickness) / 2,
|
|
5953
5974
|
fill: "none",
|
|
5954
5975
|
strokeWidth: thickness
|
|
5955
|
-
})
|
|
5976
|
+
})]
|
|
5956
5977
|
})
|
|
5957
5978
|
});
|
|
5958
5979
|
});
|
|
@@ -5987,6 +6008,12 @@ process.env.NODE_ENV !== "production" ? CircularProgress.propTypes /* remove-pro
|
|
|
5987
6008
|
}
|
|
5988
6009
|
return null;
|
|
5989
6010
|
}),
|
|
6011
|
+
/**
|
|
6012
|
+
* If `true`, a track circle slot is mounted to show a subtle background for the progress.
|
|
6013
|
+
* The `size` and `thickness` apply to the track slot to be consistent with the progress circle.
|
|
6014
|
+
* @default false
|
|
6015
|
+
*/
|
|
6016
|
+
enableTrackSlot: PropTypes.bool,
|
|
5990
6017
|
/**
|
|
5991
6018
|
* The size of the component.
|
|
5992
6019
|
* If using a number, the pixel unit is assumed.
|