@arcfusionz/arc-primitive-ui 0.3.4 → 0.3.6
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.
|
@@ -31,7 +31,11 @@ interface BreadcrumbItemProps extends Omit<ComponentPropsWithoutRef<"li">, "clas
|
|
|
31
31
|
/** Additional classes merged after the item recipe. */
|
|
32
32
|
className?: string;
|
|
33
33
|
}
|
|
34
|
-
/**
|
|
34
|
+
/**
|
|
35
|
+
* One entry in the trail: wraps a link, the current page, or a composed
|
|
36
|
+
* control. Supporting metadata such as a `Badge` belongs beside that primary
|
|
37
|
+
* crumb content in the same item, keeping it outside the link's click target.
|
|
38
|
+
*/
|
|
35
39
|
declare const BreadcrumbItem: import("react").ForwardRefExoticComponent<BreadcrumbItemProps & import("react").RefAttributes<HTMLLIElement>>;
|
|
36
40
|
interface BreadcrumbLinkVariantsOptions {
|
|
37
41
|
className?: string;
|
|
@@ -81,7 +81,11 @@ const BreadcrumbList = forwardRef(({ render, className, ...rest }, ref) => useRe
|
|
|
81
81
|
}
|
|
82
82
|
}));
|
|
83
83
|
BreadcrumbList.displayName = "BreadcrumbList";
|
|
84
|
-
/**
|
|
84
|
+
/**
|
|
85
|
+
* One entry in the trail: wraps a link, the current page, or a composed
|
|
86
|
+
* control. Supporting metadata such as a `Badge` belongs beside that primary
|
|
87
|
+
* crumb content in the same item, keeping it outside the link's click target.
|
|
88
|
+
*/
|
|
85
89
|
const BreadcrumbItem = forwardRef(({ render, className, ...rest }, ref) => useRender({
|
|
86
90
|
defaultTagName: "li",
|
|
87
91
|
render,
|
|
@@ -276,7 +276,7 @@ const ComboboxPopup = forwardRef(({ align = "center", sideOffset = 4, alignOffse
|
|
|
276
276
|
})
|
|
277
277
|
}));
|
|
278
278
|
ComboboxPopup.displayName = "ComboboxPopup";
|
|
279
|
-
const itemClasses = "relative flex cursor-
|
|
279
|
+
const itemClasses = "relative flex cursor-pointer items-center gap-2 rounded-md py-1.5 pr-8 pl-2 font-sans text-sm text-foreground outline-none select-none scroll-my-1 data-highlighted:bg-primary-50 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";
|
|
280
280
|
/**
|
|
281
281
|
* One option in the popup. Children render as the option's label; a check
|
|
282
282
|
* mark appears at the item's right edge while selected. Filtering matches
|
|
@@ -114,7 +114,7 @@ const MenuPopup = forwardRef(({ side, align, sideOffset = side === void 0 ? adap
|
|
|
114
114
|
})
|
|
115
115
|
}));
|
|
116
116
|
MenuPopup.displayName = "MenuPopup";
|
|
117
|
-
const itemBaseClasses = "relative flex cursor-
|
|
117
|
+
const itemBaseClasses = "relative flex cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 font-sans text-sm outline-none select-none scroll-my-1 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";
|
|
118
118
|
const itemVariantClasses = {
|
|
119
119
|
default: "text-foreground data-highlighted:bg-primary-50 [&_svg:not([class*='text-'])]:text-muted-foreground",
|
|
120
120
|
destructive: "text-error-700 data-highlighted:bg-error-50"
|
|
@@ -183,7 +183,7 @@ const SelectPopup = forwardRef(({ align = "center", sideOffset = 4, alignOffset
|
|
|
183
183
|
})
|
|
184
184
|
}));
|
|
185
185
|
SelectPopup.displayName = "SelectPopup";
|
|
186
|
-
const itemClasses = "relative flex cursor-
|
|
186
|
+
const itemClasses = "relative flex cursor-pointer items-center gap-2 rounded-md py-1.5 pr-8 pl-2 font-sans text-sm text-foreground outline-none select-none scroll-my-1 data-highlighted:bg-primary-50 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";
|
|
187
187
|
/**
|
|
188
188
|
* One option in the popup. Children render as the option's label (wrapped in
|
|
189
189
|
* Base UI's `ItemText`); a check mark appears at the item's right edge while
|