@flytedan/flytebot-design-system 0.5.0 → 0.6.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 +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/styles/components.css +20 -0
package/dist/index.cjs
CHANGED
|
@@ -1113,12 +1113,13 @@ function hasModifier(e) {
|
|
|
1113
1113
|
|
|
1114
1114
|
// src/components/feedback/Tag.tsx
|
|
1115
1115
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1116
|
-
|
|
1116
|
+
var TONES2 = { info: "fd-tag-info", success: "fd-tag-success", warning: "fd-tag-warning", danger: "fd-tag-danger" };
|
|
1117
|
+
function Tag({ children, icon, selected = false, tone = "neutral", onRemove, onClick, className = "", ...rest }) {
|
|
1117
1118
|
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
1118
1119
|
"button",
|
|
1119
1120
|
{
|
|
1120
1121
|
type: "button",
|
|
1121
|
-
className: ["fd-tag", className].filter(Boolean).join(" "),
|
|
1122
|
+
className: ["fd-tag", selected ? TONES2[tone] : null, className].filter(Boolean).join(" "),
|
|
1122
1123
|
"aria-pressed": selected,
|
|
1123
1124
|
onClick,
|
|
1124
1125
|
...rest,
|