@fiestaboard/ui 2.1.2 → 2.2.1
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.
|
@@ -4,7 +4,7 @@ import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
|
4
4
|
//#region src/components/chrome/page-toolbar.tsx
|
|
5
5
|
var i = { animationDelay: "50ms" }, a = t(function({ left: t, right: a, className: o }) {
|
|
6
6
|
return /* @__PURE__ */ r("div", {
|
|
7
|
-
className: e("mb-4 flex items-center animate-card-fade-in", t && a ? "justify-between" : a ? "justify-end" : "justify-start", o),
|
|
7
|
+
className: e("mb-4 flex flex-wrap items-center gap-3 animate-card-fade-in", t && a ? "justify-between" : a ? "justify-end" : "justify-start", o),
|
|
8
8
|
style: i,
|
|
9
9
|
children: [t && /* @__PURE__ */ n("div", {
|
|
10
10
|
className: "flex items-center gap-3",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-toolbar.js","names":[],"sources":["../../../src/components/chrome/page-toolbar.tsx"],"mappings":";;;;AAKA,IAAM,IAAqC,EAAE,gBAAgB,OAAO,GAQvD,IAAc,EAAK,SAAqB,EAAE,SAAM,UAAO,gBAA+B;CACjG,OACE,kBAAC,OAAD;EACE,WAAW,EACT,+
|
|
1
|
+
{"version":3,"file":"page-toolbar.js","names":[],"sources":["../../../src/components/chrome/page-toolbar.tsx"],"mappings":";;;;AAKA,IAAM,IAAqC,EAAE,gBAAgB,OAAO,GAQvD,IAAc,EAAK,SAAqB,EAAE,SAAM,UAAO,gBAA+B;CACjG,OACE,kBAAC,OAAD;EACE,WAAW,EACT,+DACA,KAAQ,IAAQ,oBAAoB,IAAQ,gBAAgB,iBAC5D,CACF;EACA,OAAO;EANT,UAAA,CAQG,KAAQ,kBAAC,OAAD;GAAK,WAAU;GAA2B,UAAA;EAAU,CAAA,GAC5D,KAAS,kBAAC,OAAD;GAAK,WAAU;GAA2B,UAAA;EAAW,CAAA,CAC5D;;AAET,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type VariantProps } from "class-variance-authority";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const headingVariants: (props?: ({
|
|
4
|
+
tone?: "default" | "destructive" | "muted" | null | undefined;
|
|
4
5
|
size?: "base" | "sm" | "lg" | "xl" | null | undefined;
|
|
5
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
7
|
interface HeadingProps extends React.HTMLAttributes<HTMLHeadingElement>, VariantProps<typeof headingVariants> {
|
|
@@ -13,6 +14,9 @@ interface HeadingProps extends React.HTMLAttributes<HTMLHeadingElement>, Variant
|
|
|
13
14
|
* Section heading primitive for h2–h4, carrying the unified title
|
|
14
15
|
* typography (semibold + tight leading/tracking). Semantic `level` and
|
|
15
16
|
* visual `size` are independent so document outline never fights layout.
|
|
17
|
+
*
|
|
18
|
+
* `tone` draws from the same status token set as `Text`, so a status section
|
|
19
|
+
* title stays on-token instead of reaching for a raw `text-destructive`.
|
|
16
20
|
*/
|
|
17
|
-
declare function Heading({ level, size, className, ...props }: HeadingProps): React.JSX.Element;
|
|
21
|
+
declare function Heading({ level, size, tone, className, ...props }: HeadingProps): React.JSX.Element;
|
|
18
22
|
export { Heading, headingVariants };
|
|
@@ -3,21 +3,34 @@ import "react";
|
|
|
3
3
|
import { jsx as t } from "react/jsx-runtime";
|
|
4
4
|
import { cva as n } from "class-variance-authority";
|
|
5
5
|
//#region src/components/ui/heading.tsx
|
|
6
|
-
var r = n("font-semibold
|
|
7
|
-
variants: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
var r = n("font-semibold tracking-tight", {
|
|
7
|
+
variants: {
|
|
8
|
+
tone: {
|
|
9
|
+
default: "text-foreground",
|
|
10
|
+
muted: "text-muted-foreground",
|
|
11
|
+
destructive: "text-destructive"
|
|
12
|
+
},
|
|
13
|
+
size: {
|
|
14
|
+
sm: "text-sm leading-tight",
|
|
15
|
+
base: "text-base leading-tight",
|
|
16
|
+
lg: "text-lg leading-tight",
|
|
17
|
+
xl: "text-xl leading-tight"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
defaultVariants: {
|
|
21
|
+
tone: "default",
|
|
22
|
+
size: "base"
|
|
23
|
+
}
|
|
14
24
|
});
|
|
15
|
-
function i({ level: n = 2, size: i,
|
|
16
|
-
let
|
|
17
|
-
return /* @__PURE__ */ t(
|
|
25
|
+
function i({ level: n = 2, size: i, tone: a, className: o, ...s }) {
|
|
26
|
+
let c = `h${n}`;
|
|
27
|
+
return /* @__PURE__ */ t(c, {
|
|
18
28
|
"data-slot": "heading",
|
|
19
|
-
className: e(r({
|
|
20
|
-
|
|
29
|
+
className: e(r({
|
|
30
|
+
size: i,
|
|
31
|
+
tone: a
|
|
32
|
+
}), o),
|
|
33
|
+
...s
|
|
21
34
|
});
|
|
22
35
|
}
|
|
23
36
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heading.js","names":[],"sources":["../../../src/components/ui/heading.tsx"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"heading.js","names":[],"sources":["../../../src/components/ui/heading.tsx"],"mappings":";;;;;AAmBA,IAAM,IAAkB,EAAI,gCAAgC;CAC1D,UAAU;EAcR,MAAM;GACJ,SAAS;GACT,OAAO;GACP,aAAa;EACf;EACA,MAAM;GACJ,IAAI;GACJ,MAAM;GACN,IAAI;GACJ,IAAI;EACN;CACF;CACA,iBAAiB;EACf,MAAM;EACN,MAAM;CACR;AACF,CAAC;AAiBD,SAAS,EAAQ,EAAE,WAAQ,GAAG,SAAM,SAAM,cAAW,GAAG,KAAuB;CAC7E,IAAM,IAAY,IAAI;CACtB,OAAO,kBAAC,GAAD;EAAW,aAAU;EAAU,WAAW,EAAG,EAAgB;GAAE;GAAM;EAAK,CAAC,GAAG,CAAS;EAAG,GAAI;CAAQ,CAAA;AAC/G"}
|