analytica-frontend-lib 1.0.40 → 1.0.41
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/ProgressBar/index.js +9 -12
- package/dist/ProgressBar/index.js.map +1 -1
- package/dist/ProgressBar/index.mjs +9 -12
- package/dist/ProgressBar/index.mjs.map +1 -1
- package/dist/Radio/index.js +8 -34
- package/dist/Radio/index.js.map +1 -1
- package/dist/Radio/index.mjs +8 -34
- package/dist/Radio/index.mjs.map +1 -1
- package/dist/index.css +37 -9
- package/dist/index.css.map +1 -1
- package/dist/index.js +17 -46
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -46
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +37 -9
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -831,48 +831,34 @@ var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
|
831
831
|
var SIZE_CLASSES4 = {
|
|
832
832
|
small: {
|
|
833
833
|
radio: "w-5 h-5",
|
|
834
|
-
// 20px x 20px
|
|
835
834
|
textSize: "sm",
|
|
836
835
|
spacing: "gap-1.5",
|
|
837
|
-
// 6px
|
|
838
836
|
borderWidth: "border-2",
|
|
839
|
-
dotSize: "w-
|
|
840
|
-
// 6px inner dot
|
|
837
|
+
dotSize: "w-2 h-2",
|
|
841
838
|
labelHeight: "h-5"
|
|
842
839
|
},
|
|
843
840
|
medium: {
|
|
844
841
|
radio: "w-6 h-6",
|
|
845
|
-
// 24px x 24px
|
|
846
842
|
textSize: "md",
|
|
847
843
|
spacing: "gap-2",
|
|
848
|
-
// 8px
|
|
849
844
|
borderWidth: "border-2",
|
|
850
|
-
dotSize: "w-2 h-2",
|
|
851
|
-
// 8px inner dot
|
|
845
|
+
dotSize: "w-2.5 h-2.5",
|
|
852
846
|
labelHeight: "h-6"
|
|
853
847
|
},
|
|
854
848
|
large: {
|
|
855
849
|
radio: "w-7 h-7",
|
|
856
|
-
// 28px x 28px
|
|
857
850
|
textSize: "lg",
|
|
858
851
|
spacing: "gap-2",
|
|
859
|
-
// 8px
|
|
860
852
|
borderWidth: "border-2",
|
|
861
|
-
|
|
862
|
-
dotSize: "w-2.5 h-2.5",
|
|
863
|
-
// 10px inner dot
|
|
853
|
+
dotSize: "w-3 h-3",
|
|
864
854
|
labelHeight: "h-7"
|
|
865
855
|
},
|
|
866
856
|
extraLarge: {
|
|
867
857
|
radio: "w-8 h-8",
|
|
868
|
-
// 32px x 32px (larger than large)
|
|
869
858
|
textSize: "xl",
|
|
870
859
|
spacing: "gap-3",
|
|
871
|
-
// 12px
|
|
872
860
|
borderWidth: "border-2",
|
|
873
|
-
|
|
874
|
-
dotSize: "w-3 h-3",
|
|
875
|
-
// 12px inner dot
|
|
861
|
+
dotSize: "w-3.5 h-3.5",
|
|
876
862
|
labelHeight: "h-8"
|
|
877
863
|
}
|
|
878
864
|
};
|
|
@@ -884,39 +870,27 @@ var STATE_CLASSES2 = {
|
|
|
884
870
|
},
|
|
885
871
|
hovered: {
|
|
886
872
|
unchecked: "border-border-500 bg-background",
|
|
887
|
-
// #8C8D8D hover state for unchecked
|
|
888
873
|
checked: "border-info-700 bg-background"
|
|
889
|
-
// Adjust checked border for hover
|
|
890
874
|
},
|
|
891
875
|
focused: {
|
|
892
876
|
unchecked: "border-border-400 bg-background",
|
|
893
|
-
// #A5A3A3 for unchecked radio
|
|
894
877
|
checked: "border-primary-950 bg-background"
|
|
895
|
-
// #124393 for checked radio
|
|
896
878
|
},
|
|
897
879
|
invalid: {
|
|
898
880
|
unchecked: "border-border-400 bg-background",
|
|
899
|
-
// #A5A3A3 for unchecked radio
|
|
900
881
|
checked: "border-primary-950 bg-background"
|
|
901
|
-
// #124393 for checked radio
|
|
902
882
|
},
|
|
903
883
|
disabled: {
|
|
904
884
|
unchecked: "border-border-400 bg-background cursor-not-allowed",
|
|
905
|
-
// #A5A3A3 for unchecked radio
|
|
906
885
|
checked: "border-primary-950 bg-background cursor-not-allowed"
|
|
907
|
-
// #124393 for checked radio
|
|
908
886
|
}
|
|
909
887
|
};
|
|
910
888
|
var DOT_CLASSES = {
|
|
911
889
|
default: "bg-primary-950",
|
|
912
890
|
hovered: "bg-info-700",
|
|
913
|
-
// #1C61B2 hover state for checked dot
|
|
914
891
|
focused: "bg-primary-950",
|
|
915
|
-
// #124393 for focused checked dot
|
|
916
892
|
invalid: "bg-primary-950",
|
|
917
|
-
// #124393 for invalid checked dot
|
|
918
893
|
disabled: "bg-primary-950"
|
|
919
|
-
// #124393 for disabled checked dot
|
|
920
894
|
};
|
|
921
895
|
var Radio = (0, import_react6.forwardRef)(
|
|
922
896
|
({
|
|
@@ -1002,7 +976,7 @@ var Radio = (0, import_react6.forwardRef)(
|
|
|
1002
976
|
label && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1003
977
|
"div",
|
|
1004
978
|
{
|
|
1005
|
-
className: `flex flex-row items-center ${sizeClasses.labelHeight}`,
|
|
979
|
+
className: `flex flex-row items-center ${sizeClasses.labelHeight} flex-1 min-w-0`,
|
|
1006
980
|
children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1007
981
|
Text_default,
|
|
1008
982
|
{
|
|
@@ -1010,7 +984,7 @@ var Radio = (0, import_react6.forwardRef)(
|
|
|
1010
984
|
htmlFor: inputId,
|
|
1011
985
|
size: sizeClasses.textSize,
|
|
1012
986
|
weight: "normal",
|
|
1013
|
-
className: `${getCursorClass()} select-none leading-normal flex items-center font-roboto ${labelClassName}`,
|
|
987
|
+
className: `${getCursorClass()} select-none leading-normal flex items-center font-roboto truncate ${labelClassName}`,
|
|
1014
988
|
color: getTextColor(),
|
|
1015
989
|
children: label
|
|
1016
990
|
}
|
|
@@ -1025,7 +999,7 @@ var Radio = (0, import_react6.forwardRef)(
|
|
|
1025
999
|
{
|
|
1026
1000
|
size: "sm",
|
|
1027
1001
|
weight: "normal",
|
|
1028
|
-
className: "mt-1.5",
|
|
1002
|
+
className: "mt-1.5 truncate",
|
|
1029
1003
|
color: "text-error-600",
|
|
1030
1004
|
children: errorMessage
|
|
1031
1005
|
}
|
|
@@ -1035,7 +1009,7 @@ var Radio = (0, import_react6.forwardRef)(
|
|
|
1035
1009
|
{
|
|
1036
1010
|
size: "sm",
|
|
1037
1011
|
weight: "normal",
|
|
1038
|
-
className: "mt-1.5",
|
|
1012
|
+
className: "mt-1.5 truncate",
|
|
1039
1013
|
color: "text-text-500",
|
|
1040
1014
|
children: helperText
|
|
1041
1015
|
}
|
|
@@ -1513,7 +1487,6 @@ var SIZE_CLASSES7 = {
|
|
|
1513
1487
|
// 4px height (h-1 = 4px in Tailwind)
|
|
1514
1488
|
bar: "h-1",
|
|
1515
1489
|
// 4px height for the fill bar
|
|
1516
|
-
labelSize: "xs",
|
|
1517
1490
|
spacing: "gap-2",
|
|
1518
1491
|
// 8px gap between label and progress bar
|
|
1519
1492
|
layout: "flex-col",
|
|
@@ -1526,8 +1499,6 @@ var SIZE_CLASSES7 = {
|
|
|
1526
1499
|
// 8px height (h-2 = 8px in Tailwind)
|
|
1527
1500
|
bar: "h-2",
|
|
1528
1501
|
// 8px height for the fill bar
|
|
1529
|
-
labelSize: "xs",
|
|
1530
|
-
// 12px font size (xs in Tailwind)
|
|
1531
1502
|
spacing: "gap-2",
|
|
1532
1503
|
// 8px gap between progress bar and label
|
|
1533
1504
|
layout: "flex-row items-center",
|
|
@@ -1569,25 +1540,25 @@ var ProgressBar = ({
|
|
|
1569
1540
|
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
1570
1541
|
"div",
|
|
1571
1542
|
{
|
|
1572
|
-
className: `flex ${sizeClasses.layout} ${sizeClasses.spacing} ${className}`,
|
|
1543
|
+
className: `flex ${sizeClasses.layout} ${size === "medium" ? "gap-2" : sizeClasses.spacing} ${className}`,
|
|
1573
1544
|
children: [
|
|
1574
1545
|
size === "small" && (label || showPercentage) && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex flex-row items-center justify-between w-full", children: [
|
|
1575
1546
|
label && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1576
1547
|
Text_default,
|
|
1577
1548
|
{
|
|
1578
1549
|
as: "div",
|
|
1579
|
-
size:
|
|
1550
|
+
size: "xs",
|
|
1580
1551
|
weight: "medium",
|
|
1581
|
-
className: `text-text-950 ${labelClassName}`,
|
|
1552
|
+
className: `text-text-950 leading-none tracking-normal text-center ${labelClassName}`,
|
|
1582
1553
|
children: label
|
|
1583
1554
|
}
|
|
1584
1555
|
),
|
|
1585
1556
|
showPercentage && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
1586
1557
|
Text_default,
|
|
1587
1558
|
{
|
|
1588
|
-
size:
|
|
1559
|
+
size: "xs",
|
|
1589
1560
|
weight: "medium",
|
|
1590
|
-
className: `text-text-
|
|
1561
|
+
className: `text-text-950 leading-none tracking-normal text-center ${percentageClassName}`,
|
|
1591
1562
|
children: [
|
|
1592
1563
|
Math.round(percentage),
|
|
1593
1564
|
"%"
|
|
@@ -1622,9 +1593,9 @@ var ProgressBar = ({
|
|
|
1622
1593
|
size === "medium" && showPercentage && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
1623
1594
|
Text_default,
|
|
1624
1595
|
{
|
|
1625
|
-
size:
|
|
1596
|
+
size: "xs",
|
|
1626
1597
|
weight: "medium",
|
|
1627
|
-
className: `text-text-950 text-center flex-none
|
|
1598
|
+
className: `text-text-950 leading-none tracking-normal text-center flex-none ${percentageClassName}`,
|
|
1628
1599
|
children: [
|
|
1629
1600
|
Math.round(percentage),
|
|
1630
1601
|
"%"
|
|
@@ -1635,9 +1606,9 @@ var ProgressBar = ({
|
|
|
1635
1606
|
Text_default,
|
|
1636
1607
|
{
|
|
1637
1608
|
as: "div",
|
|
1638
|
-
size:
|
|
1609
|
+
size: "xs",
|
|
1639
1610
|
weight: "medium",
|
|
1640
|
-
className: `text-text-950 flex-none ${labelClassName}`,
|
|
1611
|
+
className: `text-text-950 leading-none tracking-normal text-center flex-none ${labelClassName}`,
|
|
1641
1612
|
children: label
|
|
1642
1613
|
}
|
|
1643
1614
|
)
|