@matteoaliano/forest-ui 0.2.7 → 0.2.8
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/bin/sync.mjs +44 -0
- package/dist/{chunk-3FSKMCSC.mjs → chunk-3FZJFTY7.mjs} +75 -67
- package/dist/chunk-3FZJFTY7.mjs.map +1 -0
- package/dist/{index-DoEC7Q1q.d.mts → index-C7JP9vAZ.d.mts} +7 -7
- package/dist/{index-DoEC7Q1q.d.ts → index-C7JP9vAZ.d.ts} +7 -7
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +76 -68
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/dist/theme.d.mts +1 -1
- package/dist/theme.d.ts +1 -1
- package/dist/theme.js +73 -65
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +1 -1
- package/guidelines/FOREST_AI_GUIDELINES.md +8 -1
- package/guidelines/FOREST_DEV_GUIDELINES.md +1 -1
- package/guidelines/themes/FOREST_THEME_ALKEMY_PLUS.md +1 -1
- package/guidelines/themes/FOREST_THEME_DEFAULT.md +1 -1
- package/package.json +1 -1
- package/dist/chunk-3FSKMCSC.mjs.map +0 -1
package/dist/index.js
CHANGED
|
@@ -716,7 +716,7 @@ var typography = buildTypography({
|
|
|
716
716
|
function buildComponents(tokens) {
|
|
717
717
|
const {
|
|
718
718
|
colors: colors3,
|
|
719
|
-
radius:
|
|
719
|
+
radius: radius3,
|
|
720
720
|
focusRings: focusRings3,
|
|
721
721
|
shadows: tokenShadows,
|
|
722
722
|
text: text3,
|
|
@@ -733,7 +733,7 @@ function buildComponents(tokens) {
|
|
|
733
733
|
},
|
|
734
734
|
styleOverrides: {
|
|
735
735
|
root: {
|
|
736
|
-
borderRadius:
|
|
736
|
+
borderRadius: radius3.md,
|
|
737
737
|
fontWeight: 600,
|
|
738
738
|
boxShadow: tokenShadows.xs,
|
|
739
739
|
height: 32,
|
|
@@ -782,7 +782,7 @@ function buildComponents(tokens) {
|
|
|
782
782
|
},
|
|
783
783
|
styleOverrides: {
|
|
784
784
|
root: {
|
|
785
|
-
borderRadius:
|
|
785
|
+
borderRadius: radius3.md
|
|
786
786
|
},
|
|
787
787
|
grouped: {
|
|
788
788
|
"&:not(:last-of-type)": {
|
|
@@ -814,8 +814,7 @@ function buildComponents(tokens) {
|
|
|
814
814
|
// ─── TextField / Input ──────────────────────────────────────────
|
|
815
815
|
MuiTextField: {
|
|
816
816
|
defaultProps: {
|
|
817
|
-
variant: "outlined"
|
|
818
|
-
size: "small"
|
|
817
|
+
variant: "outlined"
|
|
819
818
|
}
|
|
820
819
|
},
|
|
821
820
|
MuiInputBase: {
|
|
@@ -833,7 +832,7 @@ function buildComponents(tokens) {
|
|
|
833
832
|
MuiOutlinedInput: {
|
|
834
833
|
styleOverrides: {
|
|
835
834
|
root: {
|
|
836
|
-
borderRadius:
|
|
835
|
+
borderRadius: radius3.md,
|
|
837
836
|
boxShadow: tokenShadows.xs,
|
|
838
837
|
"&:hover .MuiOutlinedInput-notchedOutline": {
|
|
839
838
|
borderColor: border3.brand
|
|
@@ -855,12 +854,7 @@ function buildComponents(tokens) {
|
|
|
855
854
|
borderColor: border3.primary
|
|
856
855
|
},
|
|
857
856
|
input: {
|
|
858
|
-
padding: "
|
|
859
|
-
fontSize: 16,
|
|
860
|
-
lineHeight: "24px"
|
|
861
|
-
},
|
|
862
|
-
inputSizeSmall: {
|
|
863
|
-
padding: "8px 12px",
|
|
857
|
+
padding: "6px 12px",
|
|
864
858
|
fontSize: 14,
|
|
865
859
|
lineHeight: "20px"
|
|
866
860
|
}
|
|
@@ -893,12 +887,7 @@ function buildComponents(tokens) {
|
|
|
893
887
|
}
|
|
894
888
|
},
|
|
895
889
|
outlined: {
|
|
896
|
-
|
|
897
|
-
transform: "translate(14px, 10px) scale(1)",
|
|
898
|
-
"&.MuiInputLabel-sizeSmall": {
|
|
899
|
-
// Align label with custom inputSizeSmall padding (8px 12px)
|
|
900
|
-
transform: "translate(12px, 8px) scale(1)"
|
|
901
|
-
},
|
|
890
|
+
transform: "translate(12px, 6px) scale(1)",
|
|
902
891
|
"&.MuiInputLabel-shrink": {
|
|
903
892
|
transform: "translate(14px, -9px) scale(0.75)"
|
|
904
893
|
}
|
|
@@ -921,20 +910,22 @@ function buildComponents(tokens) {
|
|
|
921
910
|
// ─── Select ─────────────────────────────────────────────────────
|
|
922
911
|
MuiSelect: {
|
|
923
912
|
defaultProps: {
|
|
924
|
-
size: "small",
|
|
925
913
|
MenuProps: {
|
|
926
|
-
autoFocus: false
|
|
914
|
+
autoFocus: false,
|
|
915
|
+
slotProps: {
|
|
916
|
+
backdrop: {
|
|
917
|
+
sx: { backgroundColor: "transparent" }
|
|
918
|
+
}
|
|
919
|
+
}
|
|
927
920
|
}
|
|
928
921
|
},
|
|
929
922
|
styleOverrides: {
|
|
930
923
|
select: {
|
|
931
|
-
display: "flex",
|
|
932
|
-
alignItems: "center",
|
|
933
924
|
"&.MuiSelect-select": {
|
|
934
|
-
minHeight: "
|
|
935
|
-
"
|
|
936
|
-
|
|
937
|
-
|
|
925
|
+
minHeight: "auto",
|
|
926
|
+
padding: "6px 12px",
|
|
927
|
+
fontSize: 14,
|
|
928
|
+
lineHeight: "20px"
|
|
938
929
|
}
|
|
939
930
|
},
|
|
940
931
|
icon: {
|
|
@@ -945,7 +936,7 @@ function buildComponents(tokens) {
|
|
|
945
936
|
MuiMenuItem: {
|
|
946
937
|
styleOverrides: {
|
|
947
938
|
root: {
|
|
948
|
-
borderRadius:
|
|
939
|
+
borderRadius: radius3.md,
|
|
949
940
|
padding: "6px 8px",
|
|
950
941
|
gap: 4,
|
|
951
942
|
"&:hover": {
|
|
@@ -958,15 +949,24 @@ function buildComponents(tokens) {
|
|
|
958
949
|
MuiAutocomplete: {
|
|
959
950
|
styleOverrides: {
|
|
960
951
|
paper: {
|
|
961
|
-
borderRadius:
|
|
952
|
+
borderRadius: radius3.md,
|
|
962
953
|
boxShadow: tokenShadows.lg,
|
|
963
954
|
border: `1px solid ${border3.secondary}`,
|
|
964
955
|
marginTop: 4
|
|
965
956
|
},
|
|
957
|
+
inputRoot: {
|
|
958
|
+
// Override Autocomplete's default padding so the input height stays 32px
|
|
959
|
+
padding: "0 12px",
|
|
960
|
+
"&.MuiOutlinedInput-root .MuiAutocomplete-input": {
|
|
961
|
+
padding: "6px 0",
|
|
962
|
+
fontSize: 14,
|
|
963
|
+
lineHeight: "20px"
|
|
964
|
+
}
|
|
965
|
+
},
|
|
966
966
|
option: {
|
|
967
|
-
fontSize:
|
|
968
|
-
lineHeight: "
|
|
969
|
-
padding: "
|
|
967
|
+
fontSize: 14,
|
|
968
|
+
lineHeight: "20px",
|
|
969
|
+
padding: "6px 12px",
|
|
970
970
|
"&.Mui-focused": {
|
|
971
971
|
backgroundColor: bg3.primaryHover
|
|
972
972
|
},
|
|
@@ -987,7 +987,7 @@ function buildComponents(tokens) {
|
|
|
987
987
|
styleOverrides: {
|
|
988
988
|
root: {
|
|
989
989
|
color: border3.primary,
|
|
990
|
-
borderRadius:
|
|
990
|
+
borderRadius: radius3.xs,
|
|
991
991
|
padding: 0,
|
|
992
992
|
width: 20,
|
|
993
993
|
height: 20,
|
|
@@ -1004,7 +1004,7 @@ function buildComponents(tokens) {
|
|
|
1004
1004
|
"&.Mui-focusVisible": {
|
|
1005
1005
|
outline: "none",
|
|
1006
1006
|
boxShadow: focusRings3.brand,
|
|
1007
|
-
borderRadius:
|
|
1007
|
+
borderRadius: radius3.xs
|
|
1008
1008
|
},
|
|
1009
1009
|
"&.Mui-disabled": {
|
|
1010
1010
|
color: border3.primary
|
|
@@ -1034,7 +1034,7 @@ function buildComponents(tokens) {
|
|
|
1034
1034
|
"&.Mui-focusVisible": {
|
|
1035
1035
|
outline: "none",
|
|
1036
1036
|
boxShadow: focusRings3.brand,
|
|
1037
|
-
borderRadius:
|
|
1037
|
+
borderRadius: radius3.full
|
|
1038
1038
|
},
|
|
1039
1039
|
"&.Mui-disabled": {
|
|
1040
1040
|
color: border3.primary
|
|
@@ -1082,7 +1082,7 @@ function buildComponents(tokens) {
|
|
|
1082
1082
|
boxShadow: "0px 1px 2px 0px #1018280d"
|
|
1083
1083
|
},
|
|
1084
1084
|
track: {
|
|
1085
|
-
borderRadius:
|
|
1085
|
+
borderRadius: radius3.full,
|
|
1086
1086
|
backgroundColor: border3.secondary,
|
|
1087
1087
|
opacity: 1
|
|
1088
1088
|
}
|
|
@@ -1107,8 +1107,7 @@ function buildComponents(tokens) {
|
|
|
1107
1107
|
"&.Mui-selected": {
|
|
1108
1108
|
backgroundColor: bg3.brandPrimary,
|
|
1109
1109
|
color: buttonColors3.secondaryColor.fg,
|
|
1110
|
-
borderColor: border3.
|
|
1111
|
-
boxShadow: `inset 0 0 0 1px ${border3.brandSolid}`,
|
|
1110
|
+
borderColor: border3.brandSolid,
|
|
1112
1111
|
"&:hover": {
|
|
1113
1112
|
backgroundColor: bg3.brandSecondary
|
|
1114
1113
|
}
|
|
@@ -1122,7 +1121,7 @@ function buildComponents(tokens) {
|
|
|
1122
1121
|
MuiToggleButtonGroup: {
|
|
1123
1122
|
styleOverrides: {
|
|
1124
1123
|
root: {
|
|
1125
|
-
borderRadius:
|
|
1124
|
+
borderRadius: radius3.md,
|
|
1126
1125
|
overflow: "hidden"
|
|
1127
1126
|
},
|
|
1128
1127
|
grouped: {
|
|
@@ -1130,16 +1129,13 @@ function buildComponents(tokens) {
|
|
|
1130
1129
|
"&:not(:first-of-type)": {
|
|
1131
1130
|
marginLeft: -1
|
|
1132
1131
|
},
|
|
1133
|
-
"&.Mui-selected + &.Mui-selected": {
|
|
1134
|
-
boxShadow: `inset -1px 0 0 0 ${border3.brandSolid}, inset 0 1px 0 0 ${border3.brandSolid}, inset 0 -1px 0 0 ${border3.brandSolid}`
|
|
1135
|
-
},
|
|
1136
1132
|
"&:first-of-type": {
|
|
1137
|
-
borderTopLeftRadius:
|
|
1138
|
-
borderBottomLeftRadius:
|
|
1133
|
+
borderTopLeftRadius: radius3.md,
|
|
1134
|
+
borderBottomLeftRadius: radius3.md
|
|
1139
1135
|
},
|
|
1140
1136
|
"&:last-of-type": {
|
|
1141
|
-
borderTopRightRadius:
|
|
1142
|
-
borderBottomRightRadius:
|
|
1137
|
+
borderTopRightRadius: radius3.md,
|
|
1138
|
+
borderBottomRightRadius: radius3.md
|
|
1143
1139
|
}
|
|
1144
1140
|
}
|
|
1145
1141
|
}
|
|
@@ -1151,7 +1147,7 @@ function buildComponents(tokens) {
|
|
|
1151
1147
|
},
|
|
1152
1148
|
styleOverrides: {
|
|
1153
1149
|
root: {
|
|
1154
|
-
borderRadius:
|
|
1150
|
+
borderRadius: radius3.xl,
|
|
1155
1151
|
border: `1px solid ${border3.secondary}`,
|
|
1156
1152
|
backgroundColor: bg3.primary,
|
|
1157
1153
|
boxShadow: tokenShadows.xs,
|
|
@@ -1200,7 +1196,7 @@ function buildComponents(tokens) {
|
|
|
1200
1196
|
backgroundImage: "none"
|
|
1201
1197
|
},
|
|
1202
1198
|
rounded: {
|
|
1203
|
-
borderRadius:
|
|
1199
|
+
borderRadius: radius3.lg
|
|
1204
1200
|
},
|
|
1205
1201
|
elevation1: {
|
|
1206
1202
|
boxShadow: tokenShadows.xs,
|
|
@@ -1241,7 +1237,7 @@ function buildComponents(tokens) {
|
|
|
1241
1237
|
styleOverrides: {
|
|
1242
1238
|
root: {
|
|
1243
1239
|
border: `1px solid ${border3.secondary}`,
|
|
1244
|
-
borderRadius:
|
|
1240
|
+
borderRadius: radius3.lg,
|
|
1245
1241
|
"&:not(:last-child)": {
|
|
1246
1242
|
marginBottom: 8
|
|
1247
1243
|
},
|
|
@@ -1251,7 +1247,7 @@ function buildComponents(tokens) {
|
|
|
1251
1247
|
"&.Mui-expanded": {
|
|
1252
1248
|
margin: 0,
|
|
1253
1249
|
marginBottom: 8,
|
|
1254
|
-
borderRadius:
|
|
1250
|
+
borderRadius: radius3.lg
|
|
1255
1251
|
}
|
|
1256
1252
|
}
|
|
1257
1253
|
}
|
|
@@ -1314,7 +1310,7 @@ function buildComponents(tokens) {
|
|
|
1314
1310
|
MuiChip: {
|
|
1315
1311
|
styleOverrides: {
|
|
1316
1312
|
root: {
|
|
1317
|
-
borderRadius:
|
|
1313
|
+
borderRadius: radius3.md
|
|
1318
1314
|
},
|
|
1319
1315
|
label: {
|
|
1320
1316
|
fontWeight: 500
|
|
@@ -1453,7 +1449,7 @@ function buildComponents(tokens) {
|
|
|
1453
1449
|
MuiTableContainer: {
|
|
1454
1450
|
styleOverrides: {
|
|
1455
1451
|
root: {
|
|
1456
|
-
borderRadius:
|
|
1452
|
+
borderRadius: radius3.xl,
|
|
1457
1453
|
border: `1px solid ${border3.secondary}`,
|
|
1458
1454
|
boxShadow: "none"
|
|
1459
1455
|
}
|
|
@@ -1468,7 +1464,7 @@ function buildComponents(tokens) {
|
|
|
1468
1464
|
lineHeight: "18px",
|
|
1469
1465
|
minWidth: 20,
|
|
1470
1466
|
height: 20,
|
|
1471
|
-
borderRadius:
|
|
1467
|
+
borderRadius: radius3.full
|
|
1472
1468
|
},
|
|
1473
1469
|
colorPrimary: {
|
|
1474
1470
|
backgroundColor: bg3.brandSolid
|
|
@@ -1485,7 +1481,7 @@ function buildComponents(tokens) {
|
|
|
1485
1481
|
dot: {
|
|
1486
1482
|
minWidth: 8,
|
|
1487
1483
|
height: 8,
|
|
1488
|
-
borderRadius:
|
|
1484
|
+
borderRadius: radius3.full
|
|
1489
1485
|
}
|
|
1490
1486
|
}
|
|
1491
1487
|
},
|
|
@@ -1508,7 +1504,7 @@ function buildComponents(tokens) {
|
|
|
1508
1504
|
MuiListItemButton: {
|
|
1509
1505
|
styleOverrides: {
|
|
1510
1506
|
root: {
|
|
1511
|
-
borderRadius:
|
|
1507
|
+
borderRadius: radius3.sm,
|
|
1512
1508
|
padding: "8px 12px",
|
|
1513
1509
|
"&:hover": {
|
|
1514
1510
|
backgroundColor: bg3.primaryHover
|
|
@@ -1556,7 +1552,7 @@ function buildComponents(tokens) {
|
|
|
1556
1552
|
lineHeight: "18px",
|
|
1557
1553
|
fontWeight: 600,
|
|
1558
1554
|
padding: "8px 12px",
|
|
1559
|
-
borderRadius:
|
|
1555
|
+
borderRadius: radius3.md,
|
|
1560
1556
|
boxShadow: tokenShadows.lg
|
|
1561
1557
|
},
|
|
1562
1558
|
arrow: {
|
|
@@ -1571,7 +1567,7 @@ function buildComponents(tokens) {
|
|
|
1571
1567
|
},
|
|
1572
1568
|
styleOverrides: {
|
|
1573
1569
|
root: {
|
|
1574
|
-
borderRadius:
|
|
1570
|
+
borderRadius: radius3.xl,
|
|
1575
1571
|
fontSize: 14,
|
|
1576
1572
|
lineHeight: "20px",
|
|
1577
1573
|
padding: "12px 16px",
|
|
@@ -1637,7 +1633,7 @@ function buildComponents(tokens) {
|
|
|
1637
1633
|
MuiDialog: {
|
|
1638
1634
|
styleOverrides: {
|
|
1639
1635
|
paper: {
|
|
1640
|
-
borderRadius:
|
|
1636
|
+
borderRadius: radius3.xl,
|
|
1641
1637
|
boxShadow: tokenShadows.xl,
|
|
1642
1638
|
padding: 0
|
|
1643
1639
|
}
|
|
@@ -1676,17 +1672,17 @@ function buildComponents(tokens) {
|
|
|
1676
1672
|
MuiLinearProgress: {
|
|
1677
1673
|
styleOverrides: {
|
|
1678
1674
|
root: {
|
|
1679
|
-
borderRadius:
|
|
1675
|
+
borderRadius: radius3.full,
|
|
1680
1676
|
height: 8,
|
|
1681
1677
|
backgroundColor: border3.secondary
|
|
1682
1678
|
},
|
|
1683
1679
|
barColorPrimary: {
|
|
1684
1680
|
backgroundColor: fg3.brandPrimary,
|
|
1685
|
-
borderRadius:
|
|
1681
|
+
borderRadius: radius3.full
|
|
1686
1682
|
},
|
|
1687
1683
|
barColorSecondary: {
|
|
1688
1684
|
backgroundColor: bg3.secondarySolid,
|
|
1689
|
-
borderRadius:
|
|
1685
|
+
borderRadius: radius3.full
|
|
1690
1686
|
}
|
|
1691
1687
|
}
|
|
1692
1688
|
},
|
|
@@ -1710,10 +1706,10 @@ function buildComponents(tokens) {
|
|
|
1710
1706
|
backgroundColor: bg3.tertiary
|
|
1711
1707
|
},
|
|
1712
1708
|
rounded: {
|
|
1713
|
-
borderRadius:
|
|
1709
|
+
borderRadius: radius3.md
|
|
1714
1710
|
},
|
|
1715
1711
|
circular: {
|
|
1716
|
-
borderRadius:
|
|
1712
|
+
borderRadius: radius3.full
|
|
1717
1713
|
}
|
|
1718
1714
|
}
|
|
1719
1715
|
},
|
|
@@ -1723,7 +1719,7 @@ function buildComponents(tokens) {
|
|
|
1723
1719
|
root: {
|
|
1724
1720
|
backgroundColor: bg3.primarySolid,
|
|
1725
1721
|
color: text3.white,
|
|
1726
|
-
borderRadius:
|
|
1722
|
+
borderRadius: radius3.xl,
|
|
1727
1723
|
boxShadow: tokenShadows.lg,
|
|
1728
1724
|
fontSize: 14,
|
|
1729
1725
|
lineHeight: "20px",
|
|
@@ -1758,7 +1754,7 @@ function buildComponents(tokens) {
|
|
|
1758
1754
|
styleOverrides: {
|
|
1759
1755
|
root: {
|
|
1760
1756
|
border: `1px solid ${border3.secondary}`,
|
|
1761
|
-
borderRadius:
|
|
1757
|
+
borderRadius: radius3.xl,
|
|
1762
1758
|
fontFamily: "inherit",
|
|
1763
1759
|
"& .MuiDataGrid-withBorderColor": {
|
|
1764
1760
|
borderColor: border3.secondary
|
|
@@ -1998,6 +1994,18 @@ var colors2 = {
|
|
|
1998
1994
|
/** Blue (info) — forest defaults (standard UX) */
|
|
1999
1995
|
blue: colors.blue
|
|
2000
1996
|
};
|
|
1997
|
+
var radius2 = {
|
|
1998
|
+
...radius,
|
|
1999
|
+
xxs: 1,
|
|
2000
|
+
xs: 2,
|
|
2001
|
+
sm: 3,
|
|
2002
|
+
md: 4,
|
|
2003
|
+
lg: 5,
|
|
2004
|
+
xl: 6,
|
|
2005
|
+
"2xl": 8,
|
|
2006
|
+
"3xl": 10,
|
|
2007
|
+
"4xl": 12
|
|
2008
|
+
};
|
|
2001
2009
|
var text2 = {
|
|
2002
2010
|
primary: colors2.gray[900],
|
|
2003
2011
|
secondary: colors2.gray[700],
|
|
@@ -2232,7 +2240,7 @@ var alkemyPlusPreset = {
|
|
|
2232
2240
|
tokens: {
|
|
2233
2241
|
colors: colors2,
|
|
2234
2242
|
spacing,
|
|
2235
|
-
radius,
|
|
2243
|
+
radius: radius2,
|
|
2236
2244
|
shadows,
|
|
2237
2245
|
focusRings: focusRings2,
|
|
2238
2246
|
fontFamily: '"Aeonik", sans-serif',
|
|
@@ -2357,14 +2365,14 @@ function ToggleButtonGroup(props) {
|
|
|
2357
2365
|
function Badge(props) {
|
|
2358
2366
|
return /* @__PURE__ */ jsxRuntime.jsx(MuiBadge__default.default, { ...props });
|
|
2359
2367
|
}
|
|
2360
|
-
var
|
|
2368
|
+
var CloseOutlined_default = utils.createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
2361
2369
|
d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
2362
|
-
}), "
|
|
2370
|
+
}), "CloseOutlined");
|
|
2363
2371
|
function Chip(props) {
|
|
2364
2372
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2365
2373
|
MuiChip__default.default,
|
|
2366
2374
|
{
|
|
2367
|
-
deleteIcon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2375
|
+
deleteIcon: /* @__PURE__ */ jsxRuntime.jsx(CloseOutlined_default, {}),
|
|
2368
2376
|
...props
|
|
2369
2377
|
}
|
|
2370
2378
|
);
|