@redis-ui/components 51.1.0 → 51.1.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.
|
@@ -4,7 +4,6 @@ let styled_components = require("styled-components");
|
|
|
4
4
|
styled_components = require_runtime.__toESM(styled_components, 1);
|
|
5
5
|
let _redislabsdev_redis_ui_styles = require("@redis-ui/styles");
|
|
6
6
|
//#region src/Gauge/Gauge.style.ts
|
|
7
|
-
var RING_CENTERLINE_INSET_PERCENTAGE = 10;
|
|
8
7
|
var Gauge = styled_components.default.div.withConfig({
|
|
9
8
|
displayName: "Gaugestyle__Gauge",
|
|
10
9
|
componentId: "RedisUI__sc-165b3be-0"
|
|
@@ -45,8 +44,8 @@ var Label = (0, styled_components.default)(require_Typography.default.Body).with
|
|
|
45
44
|
"position:absolute;inset:0 ",
|
|
46
45
|
"%;display:flex;align-items:center;justify-content:center;overflow:hidden;color:",
|
|
47
46
|
";font-size:",
|
|
48
|
-
";"
|
|
49
|
-
], ({ $size }) =>
|
|
47
|
+
";text-align:center;line-height:1;"
|
|
48
|
+
], ({ $size }) => 14 + Number((0, _redislabsdev_redis_ui_styles.useTheme)().components.gauge.size[$size].strokeWidth) / 2, ({ $variant }) => (0, _redislabsdev_redis_ui_styles.useTheme)().components.gauge.variant[$variant].textColor, ({ $size }) => (0, _redislabsdev_redis_ui_styles.useTheme)().components.gauge.size[$size].fontSize);
|
|
50
49
|
//#endregion
|
|
51
50
|
exports.Arc = Arc;
|
|
52
51
|
exports.Gauge = Gauge;
|
|
@@ -2,7 +2,6 @@ import Typography from "../Typography/Typography.js";
|
|
|
2
2
|
import _styled, { css } from "styled-components";
|
|
3
3
|
import { useTheme } from "@redis-ui/styles";
|
|
4
4
|
//#region src/Gauge/Gauge.style.ts
|
|
5
|
-
var RING_CENTERLINE_INSET_PERCENTAGE = 10;
|
|
6
5
|
var Gauge = _styled.div.withConfig({
|
|
7
6
|
displayName: "Gaugestyle__Gauge",
|
|
8
7
|
componentId: "RedisUI__sc-165b3be-0"
|
|
@@ -43,7 +42,7 @@ var Label = _styled(Typography.Body).withConfig({
|
|
|
43
42
|
"position:absolute;inset:0 ",
|
|
44
43
|
"%;display:flex;align-items:center;justify-content:center;overflow:hidden;color:",
|
|
45
44
|
";font-size:",
|
|
46
|
-
";"
|
|
47
|
-
], ({ $size }) =>
|
|
45
|
+
";text-align:center;line-height:1;"
|
|
46
|
+
], ({ $size }) => 14 + Number(useTheme().components.gauge.size[$size].strokeWidth) / 2, ({ $variant }) => useTheme().components.gauge.variant[$variant].textColor, ({ $size }) => useTheme().components.gauge.size[$size].fontSize);
|
|
48
47
|
//#endregion
|
|
49
48
|
export { Arc, Gauge, Label, Svg, Track };
|