rbro-tat-uds 2.1.1 → 2.1.2

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.
@@ -39,7 +39,7 @@ const Bar = ({
39
39
  children: items.length > 0 && items.map((item, index) => {
40
40
  const thisColor = utils.colors[item.color] || utils.colors.gray_950;
41
41
  const percentage = item.value / max * 100;
42
- const clampedPercentage = Math.min(Math.max(percentage, 0), 100);
42
+ const clampedPercentage = Math.min(Math.max(percentage, 0.3), 100);
43
43
  return /* @__PURE__ */ jsxRuntime.jsx(
44
44
  "div",
45
45
  {
@@ -41,8 +41,8 @@ const LabeledTextInLine = ({
41
41
  iconSize = 18,
42
42
  leftGap = 8,
43
43
  rightGap = 8,
44
- label = "Label",
45
- text = "Text",
44
+ label = "-",
45
+ text = "-",
46
46
  labelFontSize = 16,
47
47
  labelFontWeight = 400,
48
48
  labelColor = "gray_950",
@@ -2792,7 +2792,7 @@ const Bar = ({
2792
2792
  children: items.length > 0 && items.map((item, index) => {
2793
2793
  const thisColor = utils.colors[item.color] || utils.colors.gray_950;
2794
2794
  const percentage = item.value / max * 100;
2795
- const clampedPercentage = Math.min(Math.max(percentage, 0), 100);
2795
+ const clampedPercentage = Math.min(Math.max(percentage, 0.3), 100);
2796
2796
  return /* @__PURE__ */ jsxRuntime.jsx(
2797
2797
  "div",
2798
2798
  {
@@ -18467,8 +18467,8 @@ const LabeledTextInLine = ({
18467
18467
  iconSize = 18,
18468
18468
  leftGap = 8,
18469
18469
  rightGap = 8,
18470
- label = "Label",
18471
- text = "Text",
18470
+ label = "-",
18471
+ text = "-",
18472
18472
  labelFontSize = 16,
18473
18473
  labelFontWeight = 400,
18474
18474
  labelColor = "gray_950",
@@ -35,7 +35,7 @@ const Bar = ({
35
35
  children: items.length > 0 && items.map((item, index) => {
36
36
  const thisColor = colors[item.color] || colors.gray_950;
37
37
  const percentage = item.value / max * 100;
38
- const clampedPercentage = Math.min(Math.max(percentage, 0), 100);
38
+ const clampedPercentage = Math.min(Math.max(percentage, 0.3), 100);
39
39
  return /* @__PURE__ */ jsx(
40
40
  "div",
41
41
  {
@@ -37,8 +37,8 @@ const LabeledTextInLine = ({
37
37
  iconSize = 18,
38
38
  leftGap = 8,
39
39
  rightGap = 8,
40
- label = "Label",
41
- text = "Text",
40
+ label = "-",
41
+ text = "-",
42
42
  labelFontSize = 16,
43
43
  labelFontWeight = 400,
44
44
  labelColor = "gray_950",
@@ -2769,7 +2769,7 @@ const Bar = ({
2769
2769
  children: items.length > 0 && items.map((item, index) => {
2770
2770
  const thisColor = colors[item.color] || colors.gray_950;
2771
2771
  const percentage = item.value / max * 100;
2772
- const clampedPercentage = Math.min(Math.max(percentage, 0), 100);
2772
+ const clampedPercentage = Math.min(Math.max(percentage, 0.3), 100);
2773
2773
  return /* @__PURE__ */ jsx(
2774
2774
  "div",
2775
2775
  {
@@ -18444,8 +18444,8 @@ const LabeledTextInLine = ({
18444
18444
  iconSize = 18,
18445
18445
  leftGap = 8,
18446
18446
  rightGap = 8,
18447
- label = "Label",
18448
- text = "Text",
18447
+ label = "-",
18448
+ text = "-",
18449
18449
  labelFontSize = 16,
18450
18450
  labelFontWeight = 400,
18451
18451
  labelColor = "gray_950",
@@ -8,8 +8,8 @@ interface LabeledTextInLineProps extends HTMLAttributes<HTMLDivElement> {
8
8
  iconSize?: 8 | 12 | 16 | 18 | 20 | 24 | 32 | 40;
9
9
  leftGap?: 0 | 4 | 8 | 12 | 16;
10
10
  rightGap?: 0 | 4 | 8 | 12 | 16;
11
- label?: string;
12
- text?: string;
11
+ label?: string | undefined;
12
+ text?: string | undefined;
13
13
  labelFontSize?: 12 | 14 | 16 | 18 | 20 | 24;
14
14
  labelFontWeight?: 200 | 300 | 400 | 500 | 700 | 800;
15
15
  labelColor?: keyof typeof colors;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rbro-tat-uds",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "type": "module",
5
5
  "main": "build/cjs/index.cjs",
6
6
  "module": "build/esm/index.js",