@homebound/beam 3.95.0 → 3.96.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/index.cjs +23 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +23 -3
- package/dist/index.js.map +1 -1
- package/dist/truss.css +6 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -25070,15 +25070,27 @@ function Tag(props) {
|
|
|
25070
25070
|
}
|
|
25071
25071
|
function getVariantStyles(variant, type) {
|
|
25072
25072
|
if (variant === "secondary") {
|
|
25073
|
+
const isAi = type === "ai";
|
|
25073
25074
|
return {
|
|
25074
|
-
background: {
|
|
25075
|
+
background: isAi ? {
|
|
25076
|
+
backgroundColor: "bgWhite",
|
|
25077
|
+
borderColor: "bcPurple600",
|
|
25078
|
+
borderWidth: "bw1",
|
|
25079
|
+
borderStyle: "bss",
|
|
25080
|
+
color: "purple800"
|
|
25081
|
+
} : {
|
|
25075
25082
|
backgroundColor: "bgWhite",
|
|
25076
25083
|
borderColor: "bcGray300",
|
|
25077
25084
|
borderWidth: "bw1",
|
|
25078
25085
|
borderStyle: "bss"
|
|
25079
25086
|
},
|
|
25080
|
-
|
|
25081
|
-
|
|
25087
|
+
// Note: Ai tags shouldn't be using any icon, the purple outline/text is enough
|
|
25088
|
+
iconColor: isAi ? "rgba(124, 58, 237, 1)" /* Purple600 */ : "rgba(100, 100, 100, 1)" /* Gray700 */,
|
|
25089
|
+
typography: isAi ? {
|
|
25090
|
+
fontWeight: "fw6",
|
|
25091
|
+
fontSize: "fz_12px",
|
|
25092
|
+
lineHeight: "lh_16px"
|
|
25093
|
+
} : {
|
|
25082
25094
|
fontWeight: "fw4",
|
|
25083
25095
|
fontSize: "fz_12px",
|
|
25084
25096
|
lineHeight: "lh_16px"
|
|
@@ -25140,6 +25152,14 @@ function getPrimaryStyles(type) {
|
|
|
25140
25152
|
},
|
|
25141
25153
|
iconColor: "rgba(5, 150, 105, 1)" /* Green600 */
|
|
25142
25154
|
};
|
|
25155
|
+
// Note: Ai tags shouldn't be using any icon, the purple background is enough
|
|
25156
|
+
case "ai":
|
|
25157
|
+
return {
|
|
25158
|
+
background: {
|
|
25159
|
+
backgroundColor: "bgPurple200"
|
|
25160
|
+
},
|
|
25161
|
+
iconColor: "rgba(124, 58, 237, 1)" /* Purple600 */
|
|
25162
|
+
};
|
|
25143
25163
|
default:
|
|
25144
25164
|
return {
|
|
25145
25165
|
background: {
|