achery-ui 0.9.0 → 0.9.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.
- package/dist/index.cjs +9 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +4 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3121,7 +3121,8 @@ function EntityPill({
|
|
|
3121
3121
|
size = "md",
|
|
3122
3122
|
onClick,
|
|
3123
3123
|
href,
|
|
3124
|
-
className
|
|
3124
|
+
className,
|
|
3125
|
+
style
|
|
3125
3126
|
}) {
|
|
3126
3127
|
const stampSize = size === "sm" ? 20 : 28;
|
|
3127
3128
|
const isInteractive = Boolean(onClick || href);
|
|
@@ -3129,6 +3130,10 @@ function EntityPill({
|
|
|
3129
3130
|
pill({ tone, size, interactive: isInteractive }),
|
|
3130
3131
|
className
|
|
3131
3132
|
].filter(Boolean).join(" ");
|
|
3133
|
+
const pillStyle = {
|
|
3134
|
+
...colour ? { borderColor: colour } : {},
|
|
3135
|
+
...style
|
|
3136
|
+
};
|
|
3132
3137
|
const labelClass = size === "sm" ? labelSm : labelMd;
|
|
3133
3138
|
const content3 = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3134
3139
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3144,12 +3149,12 @@ function EntityPill({
|
|
|
3144
3149
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: labelClass, children: label4 })
|
|
3145
3150
|
] });
|
|
3146
3151
|
if (href) {
|
|
3147
|
-
return /* @__PURE__ */ jsxRuntime.jsx("a", { href, className: pillClass, children: content3 });
|
|
3152
|
+
return /* @__PURE__ */ jsxRuntime.jsx("a", { href, className: pillClass, style: pillStyle, children: content3 });
|
|
3148
3153
|
}
|
|
3149
3154
|
if (onClick) {
|
|
3150
|
-
return /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", onClick, className: pillClass, children: content3 });
|
|
3155
|
+
return /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", onClick, className: pillClass, style: pillStyle, children: content3 });
|
|
3151
3156
|
}
|
|
3152
|
-
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: pillClass, children: content3 });
|
|
3157
|
+
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: pillClass, style: pillStyle, children: content3 });
|
|
3153
3158
|
}
|
|
3154
3159
|
|
|
3155
3160
|
// src/components/Sparkline/Sparkline.css.ts
|