@burdenoff/fe-libs 2026.803.6 → 2026.803.7
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.
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export interface AddTagTriggerProps extends ComponentPropsWithoutRef<"button"> {
|
|
2
3
|
hasTags: boolean;
|
|
3
4
|
}
|
|
4
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Trigger for the tag search popover.
|
|
7
|
+
*
|
|
8
|
+
* Must forward props AND ref: it is rendered inside `<PopoverTrigger asChild>`,
|
|
9
|
+
* and Radix clones its trigger props (onClick, aria-expanded, data-state, ref)
|
|
10
|
+
* onto the child. Dropping them leaves the button inert — no aria-expanded, no
|
|
11
|
+
* click handler, popover never opens. This regressed when the trigger was
|
|
12
|
+
* extracted from an inline <button> into its own component; keep the spread.
|
|
13
|
+
*/
|
|
14
|
+
export declare const AddTagTrigger: import('react').ForwardRefExoticComponent<AddTagTriggerProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
5
15
|
//# sourceMappingURL=AddTagTrigger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddTagTrigger.d.ts","sourceRoot":"","sources":["../../../src/tag/tagsWidget/AddTagTrigger.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AddTagTrigger.d.ts","sourceRoot":"","sources":["../../../src/tag/tagsWidget/AddTagTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAIlE,MAAM,WAAW,kBAAmB,SAAQ,wBAAwB,CAAC,QAAQ,CAAC;IAC5E,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa,kHAmBzB,CAAC"}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { cn as e } from "../../shared-utils.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { forwardRef as t } from "react";
|
|
3
|
+
import { Tag as n } from "lucide-react";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
5
|
//#region src/tag/tagsWidget/AddTagTrigger.tsx
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
})
|
|
12
|
-
}
|
|
6
|
+
var a = t(({ hasTags: t, className: a, ...o }, s) => /* @__PURE__ */ i("button", {
|
|
7
|
+
ref: s,
|
|
8
|
+
type: "button",
|
|
9
|
+
"aria-label": "Add tag",
|
|
10
|
+
...o,
|
|
11
|
+
className: e("inline-flex items-center gap-1 px-2 py-0.5 rounded-full border border-dashed", "border-border text-muted-foreground text-xs", "hover:border-foreground hover:text-foreground transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", a),
|
|
12
|
+
children: [/* @__PURE__ */ r(n, { className: "size-3" }), /* @__PURE__ */ r("span", { children: t ? "Add" : "Add tags" })]
|
|
13
|
+
}));
|
|
14
|
+
a.displayName = "AddTagTrigger";
|
|
13
15
|
//#endregion
|
|
14
|
-
export {
|
|
16
|
+
export { a as AddTagTrigger };
|