@orianatech/pire 0.19.0 → 0.20.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/components/core/Tag.d.cts +16 -1
- package/dist/components/core/Tag.d.ts +16 -1
- package/dist/components/core/Tag.d.ts.map +1 -1
- package/dist/components.css +12 -0
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -479,8 +479,9 @@ function Badge({ children, status = "neutral", showIcon = true, className, ...re
|
|
|
479
479
|
// src/components/core/Tag.tsx
|
|
480
480
|
import { Button as AriaButton3 } from "react-aria-components";
|
|
481
481
|
import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
482
|
-
function Tag({ children, onRemove, isDisabled, className, ...rest }) {
|
|
482
|
+
function Tag({ children, onRemove, isDisabled, category, className, ...rest }) {
|
|
483
483
|
return /* @__PURE__ */ jsxs5("span", { className: cx("pire-tag", className), "data-disabled": isDisabled ? "true" : void 0, ...rest, children: [
|
|
484
|
+
category ? /* @__PURE__ */ jsx6("span", { className: "pire-tag-swatch", "data-category": category, "aria-hidden": "true" }) : null,
|
|
484
485
|
children,
|
|
485
486
|
onRemove ? /* @__PURE__ */ jsx6(
|
|
486
487
|
AriaButton3,
|