@ssa-ui-kit/core 2.21.2 → 2.22.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/dist/components/Charts/TreeMapChart/TreeMapChartTooltip.d.ts +4 -0
- package/dist/components/Charts/TreeMapChart/index.d.ts +1 -0
- package/dist/components/ProgressCircle/ProgressCircle.d.ts +1 -1
- package/dist/components/ProgressCircle/ProgressCircleBase.d.ts +1 -0
- package/dist/components/ProgressCircle/types.d.ts +8 -0
- package/dist/index.js +30 -6
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import { TooltipProps } from '@nivo/treemap';
|
|
2
|
+
export declare const TreeMapTooltipBase: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme;
|
|
4
|
+
as?: React.ElementType;
|
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
2
6
|
export declare const TreeMapChartTooltip: ({ node }: TooltipProps<object>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ProgressCircleProps } from './types';
|
|
2
|
-
declare const ProgressCircle: ({ max, currentValue, color, size, infoContent, }: ProgressCircleProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const ProgressCircle: ({ max, currentValue, color, size, infoContent, mode, classnames, }: ProgressCircleProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default ProgressCircle;
|
|
@@ -7,4 +7,5 @@ export declare const ProgressCircleBase: import("@emotion/styled").StyledCompone
|
|
|
7
7
|
svgOffset: number;
|
|
8
8
|
color: string;
|
|
9
9
|
size: number;
|
|
10
|
+
mode: "default" | "infinite";
|
|
10
11
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -4,4 +4,12 @@ export interface ProgressCircleProps {
|
|
|
4
4
|
size?: number;
|
|
5
5
|
color?: keyof MainColors;
|
|
6
6
|
infoContent?: React.ReactNode | string;
|
|
7
|
+
mode?: 'default' | 'infinite';
|
|
8
|
+
classnames?: {
|
|
9
|
+
root?: string;
|
|
10
|
+
outer?: string;
|
|
11
|
+
inner?: string;
|
|
12
|
+
svg?: string;
|
|
13
|
+
svgCircle?: string;
|
|
14
|
+
};
|
|
7
15
|
}
|
package/dist/index.js
CHANGED
|
@@ -215,6 +215,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
215
215
|
TranslationProvider: () => (/* reexport */ TranslationProvider),
|
|
216
216
|
TreeMapChart: () => (/* reexport */ TreeMapChart),
|
|
217
217
|
TreeMapChartComponent: () => (/* reexport */ TreeMapChartComponent),
|
|
218
|
+
TreeMapTooltipBase: () => (/* reexport */ TreeMapTooltipBase),
|
|
218
219
|
Typeahead: () => (/* reexport */ Typeahead),
|
|
219
220
|
TypeaheadItemIcon: () => (/* reexport */ TypeaheadItemIcon),
|
|
220
221
|
TypeaheadItemImage: () => (/* reexport */ TypeaheadItemImage),
|
|
@@ -6333,13 +6334,23 @@ const generateGradient = svgOffset => (0,react_namespaceObject.keyframes)`
|
|
|
6333
6334
|
stroke-dashoffset: ${svgOffset};
|
|
6334
6335
|
}
|
|
6335
6336
|
`;
|
|
6337
|
+
const generateInfinite = () => (0,react_namespaceObject.keyframes)`
|
|
6338
|
+
0% {
|
|
6339
|
+
transform: rotate(0deg);
|
|
6340
|
+
}
|
|
6341
|
+
100% {
|
|
6342
|
+
transform: rotate(360deg);
|
|
6343
|
+
}
|
|
6344
|
+
`;
|
|
6336
6345
|
const ProgressCircleBase = /*#__PURE__*/base_default()("div", true ? {
|
|
6337
6346
|
target: "eok4i9s0"
|
|
6338
6347
|
} : 0)("width:", ({
|
|
6339
6348
|
size
|
|
6340
6349
|
}) => size, "px;height:", ({
|
|
6341
6350
|
size
|
|
6342
|
-
}) => size, "px;position:relative;
|
|
6351
|
+
}) => size, "px;position:relative;animation:", () => generateInfinite(), " 2s linear infinite forwards;animation:", ({
|
|
6352
|
+
mode
|
|
6353
|
+
}) => mode === 'default' && 'none', ";svg{position:absolute;top:0;left:0;filter:", ({
|
|
6343
6354
|
theme,
|
|
6344
6355
|
color
|
|
6345
6356
|
}) => `drop-shadow(3px 5px 10px ${theme.colors[`${color}Lighter40`] || theme.colors[color]})`, ";}circle{fill:none;stroke:url(#", ({
|
|
@@ -6352,7 +6363,11 @@ const ProgressCircleBase = /*#__PURE__*/base_default()("div", true ? {
|
|
|
6352
6363
|
fullStroke
|
|
6353
6364
|
}) => fullStroke, ";animation:", ({
|
|
6354
6365
|
svgOffset
|
|
6355
|
-
}) => generateGradient(svgOffset), " 1s linear forwards;
|
|
6366
|
+
}) => generateGradient(svgOffset), " 1s linear forwards;animation-direction:", ({
|
|
6367
|
+
mode
|
|
6368
|
+
}) => mode === 'infinite' && 'reverse !important', ";animation-play-state:", ({
|
|
6369
|
+
mode
|
|
6370
|
+
}) => mode === 'infinite' && 'paused !important', ";}" + ( true ? "" : 0));
|
|
6356
6371
|
;// ./src/components/ProgressCircle/ProgressCircleOuter.tsx
|
|
6357
6372
|
|
|
6358
6373
|
const ProgressCircleOuter = /*#__PURE__*/base_default()("div", true ? {
|
|
@@ -6387,7 +6402,9 @@ const ProgressCircle = ({
|
|
|
6387
6402
|
currentValue,
|
|
6388
6403
|
color = 'green',
|
|
6389
6404
|
size = 160,
|
|
6390
|
-
infoContent
|
|
6405
|
+
infoContent,
|
|
6406
|
+
mode = 'default',
|
|
6407
|
+
classnames
|
|
6391
6408
|
}) => {
|
|
6392
6409
|
const theme = (0,react_namespaceObject.useTheme)();
|
|
6393
6410
|
const gradientId = (0,external_react_namespaceObject.useId)();
|
|
@@ -6404,10 +6421,14 @@ const ProgressCircle = ({
|
|
|
6404
6421
|
svgOffset: svgOffset,
|
|
6405
6422
|
color: color,
|
|
6406
6423
|
size: size,
|
|
6424
|
+
mode: mode,
|
|
6425
|
+
className: classnames?.root,
|
|
6407
6426
|
children: [(0,jsx_runtime_namespaceObject.jsx)(ProgressCircleOuter, {
|
|
6408
6427
|
size: size,
|
|
6428
|
+
className: classnames?.outer,
|
|
6409
6429
|
children: (0,jsx_runtime_namespaceObject.jsx)(ProgressCircleInner, {
|
|
6410
6430
|
size: size,
|
|
6431
|
+
className: classnames?.inner,
|
|
6411
6432
|
children: infoContent
|
|
6412
6433
|
})
|
|
6413
6434
|
}), (0,jsx_runtime_namespaceObject.jsxs)("svg", {
|
|
@@ -6417,6 +6438,7 @@ const ProgressCircle = ({
|
|
|
6417
6438
|
preserveAspectRatio: "xMinYMin slice",
|
|
6418
6439
|
width: "100%",
|
|
6419
6440
|
height: "100%",
|
|
6441
|
+
className: classnames?.svg,
|
|
6420
6442
|
children: [(0,jsx_runtime_namespaceObject.jsx)("defs", {
|
|
6421
6443
|
children: (0,jsx_runtime_namespaceObject.jsxs)("linearGradient", {
|
|
6422
6444
|
id: gradientId,
|
|
@@ -6431,7 +6453,8 @@ const ProgressCircle = ({
|
|
|
6431
6453
|
}), (0,jsx_runtime_namespaceObject.jsx)("circle", {
|
|
6432
6454
|
cx: size / 2,
|
|
6433
6455
|
cy: size / 2,
|
|
6434
|
-
r: size / 2 - barStroke
|
|
6456
|
+
r: size / 2 - barStroke,
|
|
6457
|
+
className: classnames?.svgCircle
|
|
6435
6458
|
})]
|
|
6436
6459
|
})]
|
|
6437
6460
|
});
|
|
@@ -9961,7 +9984,7 @@ const TreeMapChartHeader = ({
|
|
|
9961
9984
|
|
|
9962
9985
|
function TreeMapChartTooltip_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
9963
9986
|
|
|
9964
|
-
const
|
|
9987
|
+
const TreeMapTooltipBase = /*#__PURE__*/base_default()("div", true ? {
|
|
9965
9988
|
target: "eikatys0"
|
|
9966
9989
|
} : 0)("background-color:", ({
|
|
9967
9990
|
theme
|
|
@@ -9975,7 +9998,7 @@ var TreeMapChartTooltip_ref = true ? {
|
|
|
9975
9998
|
const TreeMapChartTooltip = ({
|
|
9976
9999
|
node
|
|
9977
10000
|
}) => {
|
|
9978
|
-
return (0,jsx_runtime_namespaceObject.jsxs)(
|
|
10001
|
+
return (0,jsx_runtime_namespaceObject.jsxs)(TreeMapTooltipBase, {
|
|
9979
10002
|
children: [(0,jsx_runtime_namespaceObject.jsx)("span", {
|
|
9980
10003
|
children: node.id
|
|
9981
10004
|
}), (0,jsx_runtime_namespaceObject.jsx)("span", {
|
|
@@ -10054,6 +10077,7 @@ const TreeMapChartComponent = ({
|
|
|
10054
10077
|
const TreeMapChart = WithFullscreenMode(TreeMapChartComponent);
|
|
10055
10078
|
;// ./src/components/Charts/TreeMapChart/index.ts
|
|
10056
10079
|
|
|
10080
|
+
|
|
10057
10081
|
;// ./src/components/Charts/common/index.ts
|
|
10058
10082
|
|
|
10059
10083
|
;// ./src/components/Charts/hooks/index.ts
|