@brightlocal/ui-components 0.4.1 → 0.5.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/README.md +2 -1
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.js +2 -2
- package/dist/alert.cjs +1 -1
- package/dist/alert.js +64 -64
- package/dist/blocks/data-table.cjs +1 -1
- package/dist/blocks/data-table.js +38 -38
- package/dist/blocks/sidebar.cjs +1 -1
- package/dist/blocks/sidebar.d.ts.map +1 -1
- package/dist/blocks/sidebar.js +23 -23
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.js +34 -34
- package/dist/button.cjs +1 -1
- package/dist/button.d.ts.map +1 -1
- package/dist/button.js +58 -57
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.d.ts.map +1 -1
- package/dist/calendar.js +19 -40
- package/dist/centred-layout.cjs +1 -1
- package/dist/centred-layout.js +1 -1
- package/dist/chart.cjs +2 -2
- package/dist/chart.d.ts +3 -1
- package/dist/chart.d.ts.map +1 -1
- package/dist/chart.js +21 -21
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +3 -3
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.d.ts.map +1 -1
- package/dist/combobox.js +39 -42
- package/dist/command.cjs +1 -1
- package/dist/command.js +35 -35
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.js +2 -2
- package/dist/date-picker.cjs +1 -1
- package/dist/date-picker.js +7 -7
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +22 -22
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.d.ts.map +1 -1
- package/dist/dropdown-menu.js +40 -45
- package/dist/field.cjs +1 -1
- package/dist/field.d.ts.map +1 -1
- package/dist/field.js +38 -30
- package/dist/header.d.ts.map +1 -1
- package/dist/header.js +1 -4
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +334 -319
- package/dist/input-chip.d.ts.map +1 -1
- package/dist/input-chip.js +18 -25
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.js +10 -10
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.js +6 -6
- package/dist/input-password.cjs +1 -1
- package/dist/input-password.d.ts.map +1 -1
- package/dist/input-password.js +16 -16
- package/dist/input.cjs +1 -1
- package/dist/input.js +9 -9
- package/dist/label.cjs +1 -1
- package/dist/label.js +1 -1
- package/dist/link.cjs +1 -1
- package/dist/link.d.ts.map +1 -1
- package/dist/link.js +1 -8
- package/dist/logo.cjs +1 -1
- package/dist/logo.d.ts.map +1 -1
- package/dist/logo.js +23 -11
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.js +12 -12
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.d.ts.map +1 -1
- package/dist/pagination.js +15 -15
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.js +3 -3
- package/dist/resizable.d.ts +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.d.ts +1 -1
- package/dist/select.d.ts.map +1 -1
- package/dist/select.js +46 -50
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.d.ts.map +1 -1
- package/dist/sheet.js +19 -19
- package/dist/sonner.cjs +1 -1
- package/dist/sonner.d.ts.map +1 -1
- package/dist/sonner.js +7 -8
- package/dist/switch.cjs +1 -1
- package/dist/switch.js +28 -28
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.d.ts.map +1 -1
- package/dist/tabs.js +10 -12
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.js +9 -9
- package/dist/typography.cjs +1 -0
- package/dist/typography.d.ts +176 -0
- package/dist/typography.d.ts.map +1 -0
- package/dist/typography.js +331 -0
- package/package.json +2 -2
- package/src/blocks/data-table.tsx +10 -10
- package/src/blocks/sidebar.tsx +13 -13
- package/src/components/accordion.tsx +2 -2
- package/src/components/alert.tsx +10 -10
- package/src/components/breadcrumb.tsx +3 -3
- package/src/components/button.tsx +7 -7
- package/src/components/calendar.tsx +4 -22
- package/src/components/centred-layout.tsx +1 -1
- package/src/components/chart.tsx +5 -5
- package/src/components/checkbox.tsx +3 -3
- package/src/components/combobox.tsx +4 -8
- package/src/components/command.tsx +5 -5
- package/src/components/context-menu.tsx +2 -2
- package/src/components/date-picker.tsx +1 -1
- package/src/components/dialog.tsx +3 -3
- package/src/components/dropdown-menu.tsx +6 -11
- package/src/components/field.tsx +27 -19
- package/src/components/header.tsx +1 -4
- package/src/components/input-chip.tsx +1 -4
- package/src/components/input-group.tsx +1 -1
- package/src/components/input-otp.tsx +3 -3
- package/src/components/input-password.tsx +2 -10
- package/src/components/input.tsx +1 -1
- package/src/components/label.tsx +1 -1
- package/src/components/link.tsx +1 -5
- package/src/components/logo.tsx +11 -5
- package/src/components/menubar.tsx +2 -2
- package/src/components/pagination.tsx +4 -8
- package/src/components/radio-group.tsx +2 -2
- package/src/components/select.tsx +8 -12
- package/src/components/sheet.tsx +5 -5
- package/src/components/sonner.tsx +4 -5
- package/src/components/switch.tsx +1 -1
- package/src/components/tabs.tsx +0 -2
- package/src/components/toggle.tsx +1 -1
- package/src/components/typography.tsx +678 -0
- package/src/index.ts +1 -0
package/dist/tabs.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as d from "react";
|
|
3
|
+
import * as n from "@radix-ui/react-tabs";
|
|
4
4
|
import { cn as l } from "@brightlocal/ui-components/lib/utils";
|
|
5
|
-
const c =
|
|
6
|
-
|
|
5
|
+
const c = d.forwardRef(({ className: a, dataHook: t, trackingEl: e, trackingLabel: s, ...o }, i) => /* @__PURE__ */ r(
|
|
6
|
+
n.Root,
|
|
7
7
|
{
|
|
8
8
|
ref: i,
|
|
9
9
|
className: l("flex flex-col gap-2", a),
|
|
@@ -15,8 +15,8 @@ const c = n.forwardRef(({ className: a, dataHook: t, trackingEl: e, trackingLabe
|
|
|
15
15
|
}
|
|
16
16
|
));
|
|
17
17
|
c.displayName = "Tabs";
|
|
18
|
-
const b =
|
|
19
|
-
|
|
18
|
+
const b = d.forwardRef(({ className: a, dataHook: t, trackingEl: e, trackingLabel: s, ...o }, i) => /* @__PURE__ */ r(
|
|
19
|
+
n.List,
|
|
20
20
|
{
|
|
21
21
|
ref: i,
|
|
22
22
|
className: l(
|
|
@@ -36,8 +36,8 @@ const b = n.forwardRef(({ className: a, dataHook: t, trackingEl: e, trackingLabe
|
|
|
36
36
|
}
|
|
37
37
|
));
|
|
38
38
|
b.displayName = "TabsList";
|
|
39
|
-
const f =
|
|
40
|
-
|
|
39
|
+
const f = d.forwardRef(({ className: a, dataHook: t, trackingEl: e, trackingLabel: s, ...o }, i) => /* @__PURE__ */ r(
|
|
40
|
+
n.Trigger,
|
|
41
41
|
{
|
|
42
42
|
ref: i,
|
|
43
43
|
className: l(
|
|
@@ -63,8 +63,6 @@ const f = n.forwardRef(({ className: a, dataHook: t, trackingEl: e, trackingLabe
|
|
|
63
63
|
"dark:data-[state=active]:border-white/15 dark:data-[state=active]:bg-white/5",
|
|
64
64
|
// Disabled state
|
|
65
65
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
66
|
-
// Icon styling
|
|
67
|
-
"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
68
66
|
a
|
|
69
67
|
),
|
|
70
68
|
"data-hook": t,
|
|
@@ -75,8 +73,8 @@ const f = n.forwardRef(({ className: a, dataHook: t, trackingEl: e, trackingLabe
|
|
|
75
73
|
}
|
|
76
74
|
));
|
|
77
75
|
f.displayName = "TabsTrigger";
|
|
78
|
-
const g =
|
|
79
|
-
|
|
76
|
+
const g = d.forwardRef(({ className: a, dataHook: t, trackingEl: e, trackingLabel: s, ...o }, i) => /* @__PURE__ */ r(
|
|
77
|
+
n.Content,
|
|
80
78
|
{
|
|
81
79
|
ref: i,
|
|
82
80
|
className: l("flex-1 outline-none", a),
|
package/dist/toggle.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),f=require("react"),b=require("@radix-ui/react-toggle"),m=require("class-variance-authority"),p=require("@brightlocal/ui-components/lib/utils");function o(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const v=o(f),h=o(b),r=m.cva("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),f=require("react"),b=require("@radix-ui/react-toggle"),m=require("class-variance-authority"),p=require("@brightlocal/ui-components/lib/utils");function o(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const v=o(f),h=o(b),r=m.cva("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 focus-visible:border-ring focus-visible:shadow-default outline-none transition-[color,box-shadow] duration-150 ease-in-out whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),i=v.forwardRef(({className:e,variant:t,size:a,dataHook:n,trackingEl:s,trackingLabel:c,ariaLabel:l,...u},d)=>g.jsx(h.Root,{ref:d,"aria-label":l,className:p.cn(r({variant:t,size:a,className:e})),"data-hook":n,"data-slot":"toggle","data-tracking-el":s||`toggle-${t}`,"data-tracking-label":c,...u}));i.displayName="Toggle";exports.Toggle=i;exports.toggleVariants=r;
|
package/dist/toggle.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import * as g from "react";
|
|
3
|
-
import * as
|
|
4
|
-
import { cva as
|
|
3
|
+
import * as m from "@radix-ui/react-toggle";
|
|
4
|
+
import { cva as c } from "class-variance-authority";
|
|
5
5
|
import { cn as f } from "@brightlocal/ui-components/lib/utils";
|
|
6
|
-
const u =
|
|
7
|
-
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg
|
|
6
|
+
const u = c(
|
|
7
|
+
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 focus-visible:border-ring focus-visible:shadow-default outline-none transition-[color,box-shadow] duration-150 ease-in-out whitespace-nowrap",
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
|
@@ -28,20 +28,20 @@ const u = m(
|
|
|
28
28
|
variant: e,
|
|
29
29
|
size: a,
|
|
30
30
|
dataHook: o,
|
|
31
|
-
trackingEl:
|
|
32
|
-
trackingLabel:
|
|
31
|
+
trackingEl: r,
|
|
32
|
+
trackingLabel: n,
|
|
33
33
|
ariaLabel: i,
|
|
34
34
|
...s
|
|
35
35
|
}, d) => /* @__PURE__ */ l(
|
|
36
|
-
|
|
36
|
+
m.Root,
|
|
37
37
|
{
|
|
38
38
|
ref: d,
|
|
39
39
|
"aria-label": i,
|
|
40
40
|
className: f(u({ variant: e, size: a, className: t })),
|
|
41
41
|
"data-hook": o,
|
|
42
42
|
"data-slot": "toggle",
|
|
43
|
-
"data-tracking-el":
|
|
44
|
-
"data-tracking-label":
|
|
43
|
+
"data-tracking-el": r || `toggle-${e}`,
|
|
44
|
+
"data-tracking-label": n,
|
|
45
45
|
...s
|
|
46
46
|
}
|
|
47
47
|
)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),w=require("react"),p=require("@radix-ui/react-slot"),c=require("class-variance-authority"),y=require("@brightlocal/ui-components/lib/utils");function R(a){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const t in a)if(t!=="default"){const e=Object.getOwnPropertyDescriptor(a,t);Object.defineProperty(o,t,e.get?e:{enumerable:!0,get:()=>a[t]})}}return o.default=a,Object.freeze(o)}const g=R(w),V=c.cva("self-stretch text-foreground text-4xl font-extrabold font-sans leading-10 lg:text-5xl lg:font-medium lg:font-display lg:leading-12"),i=g.forwardRef(({className:a,asChild:o=!1,dataHook:t,trackingEl:e,trackingLabel:r,...n},s)=>{const l=o?p.Slot:"h1";return d.jsx(l,{ref:s,className:y.cn(V(),a),"data-hook":t,"data-slot":"typography-h1","data-tracking-el":e,"data-tracking-label":r,...n})});i.displayName="TypographyH1";const q=c.cva("text-foreground text-3xl font-semibold font-sans leading-9"),f=g.forwardRef(({className:a,asChild:o=!1,dataHook:t,trackingEl:e,trackingLabel:r,...n},s)=>{const l=o?p.Slot:"h2";return d.jsx(l,{ref:s,className:y.cn(q(),a),"data-hook":t,"data-slot":"typography-h2","data-tracking-el":e,"data-tracking-label":r,...n})});f.displayName="TypographyH2";const H=c.cva("text-foreground text-2xl font-semibold font-sans leading-8"),h=g.forwardRef(({className:a,asChild:o=!1,dataHook:t,trackingEl:e,trackingLabel:r,...n},s)=>{const l=o?p.Slot:"h3";return d.jsx(l,{ref:s,className:y.cn(H(),a),"data-hook":t,"data-slot":"typography-h3","data-tracking-el":e,"data-tracking-label":r,...n})});h.displayName="TypographyH3";const L=c.cva("text-foreground text-xl font-semibold font-sans leading-7"),m=g.forwardRef(({className:a,asChild:o=!1,dataHook:t,trackingEl:e,trackingLabel:r,...n},s)=>{const l=o?p.Slot:"h4";return d.jsx(l,{ref:s,className:y.cn(L(),a),"data-hook":t,"data-slot":"typography-h4","data-tracking-el":e,"data-tracking-label":r,...n})});m.displayName="TypographyH4";const O=c.cva("text-foreground text-base font-normal font-sans"),u=g.forwardRef(({className:a,asChild:o=!1,dataHook:t,trackingEl:e,trackingLabel:r,...n},s)=>{const l=o?p.Slot:"p";return d.jsx(l,{ref:s,className:y.cn(O(),a),"data-hook":t,"data-slot":"typography-p","data-tracking-el":e,"data-tracking-label":r,...n})});u.displayName="TypographyP";const x=c.cva("mt-6 border-l-2 pl-6 text-foreground text-base font-normal font-sans"),k=g.forwardRef(({className:a,asChild:o=!1,dataHook:t,trackingEl:e,trackingLabel:r,...n},s)=>{const l=o?p.Slot:"blockquote";return d.jsx(l,{ref:s,className:y.cn(x(),a),"data-hook":t,"data-slot":"typography-blockquote","data-tracking-el":e,"data-tracking-label":r,...n})});k.displayName="TypographyBlockquote";const P=c.cva("self-stretch ml-6 list-disc text-foreground text-base font-normal font-sans leading-6"),b=g.forwardRef(({className:a,asChild:o=!1,dataHook:t,trackingEl:e,trackingLabel:r,...n},s)=>{const l=o?p.Slot:"ul";return d.jsx(l,{ref:s,className:y.cn(P(),a),"data-hook":t,"data-slot":"typography-list","data-tracking-el":e,"data-tracking-label":r,...n})});b.displayName="TypographyList";const M=c.cva("inline-flex justify-center items-center gap-2 bg-muted rounded-md px-[4.80px] py-[3.20px] text-foreground text-sm font-normal font-mono leading-5"),T=g.forwardRef(({className:a,asChild:o=!1,dataHook:t,trackingEl:e,trackingLabel:r,...n},s)=>{const l=o?p.Slot:"code";return d.jsx(l,{ref:s,className:y.cn(M(),a),"data-hook":t,"data-slot":"typography-inline-code","data-tracking-el":e,"data-tracking-label":r,...n})});T.displayName="TypographyInlineCode";const B=c.cva("block w-full p-4 bg-zinc-900 rounded-lg border border-border text-white/50 text-base font-normal font-mono leading-6 overflow-x-auto"),N=g.forwardRef(({className:a,asChild:o=!1,dataHook:t,trackingEl:e,trackingLabel:r,...n},s)=>{const l=o?p.Slot:"pre";return d.jsx(l,{ref:s,className:y.cn(B(),a),"data-hook":t,"data-slot":"typography-code","data-tracking-el":e,"data-tracking-label":r,...n})});N.displayName="TypographyCode";const I=c.cva("text-muted-foreground text-xl font-normal font-sans leading-7"),S=g.forwardRef(({className:a,asChild:o=!1,dataHook:t,trackingEl:e,trackingLabel:r,...n},s)=>{const l=o?p.Slot:"p";return d.jsx(l,{ref:s,className:y.cn(I(),a),"data-hook":t,"data-slot":"typography-lead","data-tracking-el":e,"data-tracking-label":r,...n})});S.displayName="TypographyLead";const _=c.cva("text-foreground text-lg font-semibold font-sans leading-7"),j=g.forwardRef(({className:a,asChild:o=!1,dataHook:t,trackingEl:e,trackingLabel:r,...n},s)=>{const l=o?p.Slot:"div";return d.jsx(l,{ref:s,className:y.cn(_(),a),"data-hook":t,"data-slot":"typography-large","data-tracking-el":e,"data-tracking-label":r,...n})});j.displayName="TypographyLarge";const z=c.cva("text-foreground text-sm font-medium font-sans leading-5"),C=g.forwardRef(({className:a,asChild:o=!1,dataHook:t,trackingEl:e,trackingLabel:r,...n},s)=>{const l=o?p.Slot:"small";return d.jsx(l,{ref:s,className:y.cn(z(),a),"data-hook":t,"data-slot":"typography-small","data-tracking-el":e,"data-tracking-label":r,...n})});C.displayName="TypographySmall";const D=c.cva("text-muted-foreground text-sm font-medium font-sans leading-5"),v=g.forwardRef(({className:a,asChild:o=!1,dataHook:t,trackingEl:e,trackingLabel:r,...n},s)=>{const l=o?p.Slot:"p";return d.jsx(l,{ref:s,className:y.cn(D(),a),"data-hook":t,"data-slot":"typography-muted","data-tracking-el":e,"data-tracking-label":r,...n})});v.displayName="TypographyMuted";exports.TypographyBlockquote=k;exports.TypographyCode=N;exports.TypographyH1=i;exports.TypographyH2=f;exports.TypographyH3=h;exports.TypographyH4=m;exports.TypographyInlineCode=T;exports.TypographyLarge=j;exports.TypographyLead=S;exports.TypographyList=b;exports.TypographyMuted=v;exports.TypographyP=u;exports.TypographySmall=C;exports.blockquoteVariants=x;
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Common props shared by all typography components.
|
|
4
|
+
* Provides consistent testing, analytics, and composition patterns.
|
|
5
|
+
*/
|
|
6
|
+
interface TypographyBaseProps {
|
|
7
|
+
/**
|
|
8
|
+
* Render as a different element using Radix Slot pattern.
|
|
9
|
+
* When true, merges props onto the child element.
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
12
|
+
asChild?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Data hook for automated testing (REQUIRED).
|
|
15
|
+
* Used to identify component in tests and E2E automation.
|
|
16
|
+
* @example "page-title", "section-heading"
|
|
17
|
+
*/
|
|
18
|
+
dataHook: string;
|
|
19
|
+
/**
|
|
20
|
+
* Tracking element identifier for analytics.
|
|
21
|
+
* Defaults to component name if not provided.
|
|
22
|
+
*/
|
|
23
|
+
trackingEl?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Tracking label for analytics context.
|
|
26
|
+
* Additional context for tracking events.
|
|
27
|
+
*/
|
|
28
|
+
trackingLabel?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Props for the TypographyH1 component.
|
|
32
|
+
* Extends native h1 props with design system tracking attributes.
|
|
33
|
+
*/
|
|
34
|
+
interface TypographyH1Props extends React.ComponentProps<"h1">, TypographyBaseProps {
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Main page heading component (h1).
|
|
38
|
+
* Used for the primary title on a page. Responsive sizing with display font on larger screens.
|
|
39
|
+
*/
|
|
40
|
+
declare const TypographyH1: React.ForwardRefExoticComponent<Omit<TypographyH1Props, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
41
|
+
/**
|
|
42
|
+
* Props for the TypographyH2 component.
|
|
43
|
+
* Extends native h2 props with design system tracking attributes.
|
|
44
|
+
*/
|
|
45
|
+
interface TypographyH2Props extends React.ComponentProps<"h2">, TypographyBaseProps {
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Section heading component (h2).
|
|
49
|
+
* Used for major section titles within a page.
|
|
50
|
+
*/
|
|
51
|
+
declare const TypographyH2: React.ForwardRefExoticComponent<Omit<TypographyH2Props, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
52
|
+
/**
|
|
53
|
+
* Props for the TypographyH3 component.
|
|
54
|
+
* Extends native h3 props with design system tracking attributes.
|
|
55
|
+
*/
|
|
56
|
+
interface TypographyH3Props extends React.ComponentProps<"h3">, TypographyBaseProps {
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Subsection heading component (h3).
|
|
60
|
+
* Used for subsections within a major section.
|
|
61
|
+
*/
|
|
62
|
+
declare const TypographyH3: React.ForwardRefExoticComponent<Omit<TypographyH3Props, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
63
|
+
/**
|
|
64
|
+
* Props for the TypographyH4 component.
|
|
65
|
+
* Extends native h4 props with design system tracking attributes.
|
|
66
|
+
*/
|
|
67
|
+
interface TypographyH4Props extends React.ComponentProps<"h4">, TypographyBaseProps {
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Minor heading component (h4).
|
|
71
|
+
* Used for smaller section headings and card titles.
|
|
72
|
+
*/
|
|
73
|
+
declare const TypographyH4: React.ForwardRefExoticComponent<Omit<TypographyH4Props, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
74
|
+
/**
|
|
75
|
+
* Props for the TypographyP component.
|
|
76
|
+
* Extends native p props with design system tracking attributes.
|
|
77
|
+
*/
|
|
78
|
+
interface TypographyPProps extends React.ComponentProps<"p">, TypographyBaseProps {
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Paragraph text component (p).
|
|
82
|
+
* Used for body text and general content.
|
|
83
|
+
*/
|
|
84
|
+
declare const TypographyP: React.ForwardRefExoticComponent<Omit<TypographyPProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
85
|
+
declare const blockquoteVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
86
|
+
/**
|
|
87
|
+
* Props for the TypographyBlockquote component.
|
|
88
|
+
* Extends native blockquote props with design system tracking attributes.
|
|
89
|
+
*/
|
|
90
|
+
interface TypographyBlockquoteProps extends React.ComponentProps<"blockquote">, TypographyBaseProps {
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Blockquote component for quoted content.
|
|
94
|
+
* Displays with a left border accent for visual distinction.
|
|
95
|
+
*/
|
|
96
|
+
declare const TypographyBlockquote: React.ForwardRefExoticComponent<Omit<TypographyBlockquoteProps, "ref"> & React.RefAttributes<HTMLQuoteElement>>;
|
|
97
|
+
/**
|
|
98
|
+
* Props for the TypographyList component.
|
|
99
|
+
* Extends native ul props with design system tracking attributes.
|
|
100
|
+
*/
|
|
101
|
+
interface TypographyListProps extends React.ComponentProps<"ul">, TypographyBaseProps {
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Unordered list component (ul).
|
|
105
|
+
* Used for bullet-point lists with consistent styling.
|
|
106
|
+
*/
|
|
107
|
+
declare const TypographyList: React.ForwardRefExoticComponent<Omit<TypographyListProps, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
108
|
+
/**
|
|
109
|
+
* Props for the TypographyInlineCode component.
|
|
110
|
+
* Extends native code props with design system tracking attributes.
|
|
111
|
+
*/
|
|
112
|
+
interface TypographyInlineCodeProps extends React.ComponentProps<"code">, TypographyBaseProps {
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Inline code component for code snippets within text.
|
|
116
|
+
* Displays with monospace font and muted background.
|
|
117
|
+
*/
|
|
118
|
+
declare const TypographyInlineCode: React.ForwardRefExoticComponent<Omit<TypographyInlineCodeProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
119
|
+
/**
|
|
120
|
+
* Props for the TypographyCode component.
|
|
121
|
+
* Extends native pre props with design system tracking attributes.
|
|
122
|
+
*/
|
|
123
|
+
interface TypographyCodeProps extends React.ComponentProps<"pre">, TypographyBaseProps {
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Code block component for multi-line code snippets.
|
|
127
|
+
* Displays with dark background, monospace font, and horizontal scroll.
|
|
128
|
+
*/
|
|
129
|
+
declare const TypographyCode: React.ForwardRefExoticComponent<Omit<TypographyCodeProps, "ref"> & React.RefAttributes<HTMLPreElement>>;
|
|
130
|
+
/**
|
|
131
|
+
* Props for the TypographyLead component.
|
|
132
|
+
* Extends native p props with design system tracking attributes.
|
|
133
|
+
*/
|
|
134
|
+
interface TypographyLeadProps extends React.ComponentProps<"p">, TypographyBaseProps {
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Lead paragraph component for introductory text.
|
|
138
|
+
* Displays larger, muted text for page introductions and summaries.
|
|
139
|
+
*/
|
|
140
|
+
declare const TypographyLead: React.ForwardRefExoticComponent<Omit<TypographyLeadProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
141
|
+
/**
|
|
142
|
+
* Props for the TypographyLarge component.
|
|
143
|
+
* Extends native div props with design system tracking attributes.
|
|
144
|
+
*/
|
|
145
|
+
interface TypographyLargeProps extends React.ComponentProps<"div">, TypographyBaseProps {
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Large text component for emphasized content.
|
|
149
|
+
* Displays larger, semibold text for callouts and highlights.
|
|
150
|
+
*/
|
|
151
|
+
declare const TypographyLarge: React.ForwardRefExoticComponent<Omit<TypographyLargeProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
152
|
+
/**
|
|
153
|
+
* Props for the TypographySmall component.
|
|
154
|
+
* Extends native small props with design system tracking attributes.
|
|
155
|
+
*/
|
|
156
|
+
interface TypographySmallProps extends React.ComponentProps<"small">, TypographyBaseProps {
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Small text component for compact content.
|
|
160
|
+
* Used for captions, labels, and supplementary information.
|
|
161
|
+
*/
|
|
162
|
+
declare const TypographySmall: React.ForwardRefExoticComponent<Omit<TypographySmallProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
163
|
+
/**
|
|
164
|
+
* Props for the TypographyMuted component.
|
|
165
|
+
* Extends native p props with design system tracking attributes.
|
|
166
|
+
*/
|
|
167
|
+
interface TypographyMutedProps extends React.ComponentProps<"p">, TypographyBaseProps {
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Muted text component for de-emphasized content.
|
|
171
|
+
* Displays with reduced visual prominence for secondary information.
|
|
172
|
+
*/
|
|
173
|
+
declare const TypographyMuted: React.ForwardRefExoticComponent<Omit<TypographyMutedProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
174
|
+
export { TypographyH1, TypographyH2, TypographyH3, TypographyH4, TypographyP, TypographyBlockquote, blockquoteVariants, TypographyList, TypographyInlineCode, TypographyCode, TypographyLead, TypographyLarge, TypographySmall, TypographyMuted, };
|
|
175
|
+
export type { TypographyH1Props, TypographyH2Props, TypographyH3Props, TypographyH4Props, TypographyPProps, TypographyBlockquoteProps, TypographyListProps, TypographyInlineCodeProps, TypographyCodeProps, TypographyLeadProps, TypographyLargeProps, TypographySmallProps, TypographyMutedProps, };
|
|
176
|
+
//# sourceMappingURL=typography.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../src/components/typography.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import * as d from "react";
|
|
3
|
+
import { Slot as p } from "@radix-ui/react-slot";
|
|
4
|
+
import { cva as g } from "class-variance-authority";
|
|
5
|
+
import { cn as c } from "@brightlocal/ui-components/lib/utils";
|
|
6
|
+
const i = g(
|
|
7
|
+
"self-stretch text-foreground text-4xl font-extrabold font-sans leading-10 lg:text-5xl lg:font-medium lg:font-display lg:leading-12"
|
|
8
|
+
), y = d.forwardRef(
|
|
9
|
+
({
|
|
10
|
+
className: a,
|
|
11
|
+
asChild: t = !1,
|
|
12
|
+
dataHook: o,
|
|
13
|
+
trackingEl: e,
|
|
14
|
+
trackingLabel: r,
|
|
15
|
+
...n
|
|
16
|
+
}, s) => /* @__PURE__ */ l(
|
|
17
|
+
t ? p : "h1",
|
|
18
|
+
{
|
|
19
|
+
ref: s,
|
|
20
|
+
className: c(i(), a),
|
|
21
|
+
"data-hook": o,
|
|
22
|
+
"data-slot": "typography-h1",
|
|
23
|
+
"data-tracking-el": e,
|
|
24
|
+
"data-tracking-label": r,
|
|
25
|
+
...n
|
|
26
|
+
}
|
|
27
|
+
)
|
|
28
|
+
);
|
|
29
|
+
y.displayName = "TypographyH1";
|
|
30
|
+
const f = g(
|
|
31
|
+
"text-foreground text-3xl font-semibold font-sans leading-9"
|
|
32
|
+
), h = d.forwardRef(
|
|
33
|
+
({
|
|
34
|
+
className: a,
|
|
35
|
+
asChild: t = !1,
|
|
36
|
+
dataHook: o,
|
|
37
|
+
trackingEl: e,
|
|
38
|
+
trackingLabel: r,
|
|
39
|
+
...n
|
|
40
|
+
}, s) => /* @__PURE__ */ l(
|
|
41
|
+
t ? p : "h2",
|
|
42
|
+
{
|
|
43
|
+
ref: s,
|
|
44
|
+
className: c(f(), a),
|
|
45
|
+
"data-hook": o,
|
|
46
|
+
"data-slot": "typography-h2",
|
|
47
|
+
"data-tracking-el": e,
|
|
48
|
+
"data-tracking-label": r,
|
|
49
|
+
...n
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
);
|
|
53
|
+
h.displayName = "TypographyH2";
|
|
54
|
+
const u = g(
|
|
55
|
+
"text-foreground text-2xl font-semibold font-sans leading-8"
|
|
56
|
+
), k = d.forwardRef(
|
|
57
|
+
({
|
|
58
|
+
className: a,
|
|
59
|
+
asChild: t = !1,
|
|
60
|
+
dataHook: o,
|
|
61
|
+
trackingEl: e,
|
|
62
|
+
trackingLabel: r,
|
|
63
|
+
...n
|
|
64
|
+
}, s) => /* @__PURE__ */ l(
|
|
65
|
+
t ? p : "h3",
|
|
66
|
+
{
|
|
67
|
+
ref: s,
|
|
68
|
+
className: c(u(), a),
|
|
69
|
+
"data-hook": o,
|
|
70
|
+
"data-slot": "typography-h3",
|
|
71
|
+
"data-tracking-el": e,
|
|
72
|
+
"data-tracking-label": r,
|
|
73
|
+
...n
|
|
74
|
+
}
|
|
75
|
+
)
|
|
76
|
+
);
|
|
77
|
+
k.displayName = "TypographyH3";
|
|
78
|
+
const x = g(
|
|
79
|
+
"text-foreground text-xl font-semibold font-sans leading-7"
|
|
80
|
+
), b = d.forwardRef(
|
|
81
|
+
({
|
|
82
|
+
className: a,
|
|
83
|
+
asChild: t = !1,
|
|
84
|
+
dataHook: o,
|
|
85
|
+
trackingEl: e,
|
|
86
|
+
trackingLabel: r,
|
|
87
|
+
...n
|
|
88
|
+
}, s) => /* @__PURE__ */ l(
|
|
89
|
+
t ? p : "h4",
|
|
90
|
+
{
|
|
91
|
+
ref: s,
|
|
92
|
+
className: c(x(), a),
|
|
93
|
+
"data-hook": o,
|
|
94
|
+
"data-slot": "typography-h4",
|
|
95
|
+
"data-tracking-el": e,
|
|
96
|
+
"data-tracking-label": r,
|
|
97
|
+
...n
|
|
98
|
+
}
|
|
99
|
+
)
|
|
100
|
+
);
|
|
101
|
+
b.displayName = "TypographyH4";
|
|
102
|
+
const C = g("text-foreground text-base font-normal font-sans"), N = d.forwardRef(
|
|
103
|
+
({
|
|
104
|
+
className: a,
|
|
105
|
+
asChild: t = !1,
|
|
106
|
+
dataHook: o,
|
|
107
|
+
trackingEl: e,
|
|
108
|
+
trackingLabel: r,
|
|
109
|
+
...n
|
|
110
|
+
}, s) => /* @__PURE__ */ l(
|
|
111
|
+
t ? p : "p",
|
|
112
|
+
{
|
|
113
|
+
ref: s,
|
|
114
|
+
className: c(C(), a),
|
|
115
|
+
"data-hook": o,
|
|
116
|
+
"data-slot": "typography-p",
|
|
117
|
+
"data-tracking-el": e,
|
|
118
|
+
"data-tracking-label": r,
|
|
119
|
+
...n
|
|
120
|
+
}
|
|
121
|
+
)
|
|
122
|
+
);
|
|
123
|
+
N.displayName = "TypographyP";
|
|
124
|
+
const T = g(
|
|
125
|
+
"mt-6 border-l-2 pl-6 text-foreground text-base font-normal font-sans"
|
|
126
|
+
), w = d.forwardRef(
|
|
127
|
+
({
|
|
128
|
+
className: a,
|
|
129
|
+
asChild: t = !1,
|
|
130
|
+
dataHook: o,
|
|
131
|
+
trackingEl: e,
|
|
132
|
+
trackingLabel: r,
|
|
133
|
+
...n
|
|
134
|
+
}, s) => /* @__PURE__ */ l(
|
|
135
|
+
t ? p : "blockquote",
|
|
136
|
+
{
|
|
137
|
+
ref: s,
|
|
138
|
+
className: c(T(), a),
|
|
139
|
+
"data-hook": o,
|
|
140
|
+
"data-slot": "typography-blockquote",
|
|
141
|
+
"data-tracking-el": e,
|
|
142
|
+
"data-tracking-label": r,
|
|
143
|
+
...n
|
|
144
|
+
}
|
|
145
|
+
)
|
|
146
|
+
);
|
|
147
|
+
w.displayName = "TypographyBlockquote";
|
|
148
|
+
const R = g(
|
|
149
|
+
"self-stretch ml-6 list-disc text-foreground text-base font-normal font-sans leading-6"
|
|
150
|
+
), V = d.forwardRef(
|
|
151
|
+
({
|
|
152
|
+
className: a,
|
|
153
|
+
asChild: t = !1,
|
|
154
|
+
dataHook: o,
|
|
155
|
+
trackingEl: e,
|
|
156
|
+
trackingLabel: r,
|
|
157
|
+
...n
|
|
158
|
+
}, s) => /* @__PURE__ */ l(
|
|
159
|
+
t ? p : "ul",
|
|
160
|
+
{
|
|
161
|
+
ref: s,
|
|
162
|
+
className: c(R(), a),
|
|
163
|
+
"data-hook": o,
|
|
164
|
+
"data-slot": "typography-list",
|
|
165
|
+
"data-tracking-el": e,
|
|
166
|
+
"data-tracking-label": r,
|
|
167
|
+
...n
|
|
168
|
+
}
|
|
169
|
+
)
|
|
170
|
+
);
|
|
171
|
+
V.displayName = "TypographyList";
|
|
172
|
+
const H = g(
|
|
173
|
+
"inline-flex justify-center items-center gap-2 bg-muted rounded-md px-[4.80px] py-[3.20px] text-foreground text-sm font-normal font-mono leading-5"
|
|
174
|
+
), L = d.forwardRef(
|
|
175
|
+
({
|
|
176
|
+
className: a,
|
|
177
|
+
asChild: t = !1,
|
|
178
|
+
dataHook: o,
|
|
179
|
+
trackingEl: e,
|
|
180
|
+
trackingLabel: r,
|
|
181
|
+
...n
|
|
182
|
+
}, s) => /* @__PURE__ */ l(
|
|
183
|
+
t ? p : "code",
|
|
184
|
+
{
|
|
185
|
+
ref: s,
|
|
186
|
+
className: c(H(), a),
|
|
187
|
+
"data-hook": o,
|
|
188
|
+
"data-slot": "typography-inline-code",
|
|
189
|
+
"data-tracking-el": e,
|
|
190
|
+
"data-tracking-label": r,
|
|
191
|
+
...n
|
|
192
|
+
}
|
|
193
|
+
)
|
|
194
|
+
);
|
|
195
|
+
L.displayName = "TypographyInlineCode";
|
|
196
|
+
const q = g(
|
|
197
|
+
"block w-full p-4 bg-zinc-900 rounded-lg border border-border text-white/50 text-base font-normal font-mono leading-6 overflow-x-auto"
|
|
198
|
+
), v = d.forwardRef(
|
|
199
|
+
({
|
|
200
|
+
className: a,
|
|
201
|
+
asChild: t = !1,
|
|
202
|
+
dataHook: o,
|
|
203
|
+
trackingEl: e,
|
|
204
|
+
trackingLabel: r,
|
|
205
|
+
...n
|
|
206
|
+
}, s) => /* @__PURE__ */ l(
|
|
207
|
+
t ? p : "pre",
|
|
208
|
+
{
|
|
209
|
+
ref: s,
|
|
210
|
+
className: c(q(), a),
|
|
211
|
+
"data-hook": o,
|
|
212
|
+
"data-slot": "typography-code",
|
|
213
|
+
"data-tracking-el": e,
|
|
214
|
+
"data-tracking-label": r,
|
|
215
|
+
...n
|
|
216
|
+
}
|
|
217
|
+
)
|
|
218
|
+
);
|
|
219
|
+
v.displayName = "TypographyCode";
|
|
220
|
+
const S = g(
|
|
221
|
+
"text-muted-foreground text-xl font-normal font-sans leading-7"
|
|
222
|
+
), j = d.forwardRef(
|
|
223
|
+
({
|
|
224
|
+
className: a,
|
|
225
|
+
asChild: t = !1,
|
|
226
|
+
dataHook: o,
|
|
227
|
+
trackingEl: e,
|
|
228
|
+
trackingLabel: r,
|
|
229
|
+
...n
|
|
230
|
+
}, s) => /* @__PURE__ */ l(
|
|
231
|
+
t ? p : "p",
|
|
232
|
+
{
|
|
233
|
+
ref: s,
|
|
234
|
+
className: c(S(), a),
|
|
235
|
+
"data-hook": o,
|
|
236
|
+
"data-slot": "typography-lead",
|
|
237
|
+
"data-tracking-el": e,
|
|
238
|
+
"data-tracking-label": r,
|
|
239
|
+
...n
|
|
240
|
+
}
|
|
241
|
+
)
|
|
242
|
+
);
|
|
243
|
+
j.displayName = "TypographyLead";
|
|
244
|
+
const B = g(
|
|
245
|
+
"text-foreground text-lg font-semibold font-sans leading-7"
|
|
246
|
+
), I = d.forwardRef(
|
|
247
|
+
({
|
|
248
|
+
className: a,
|
|
249
|
+
asChild: t = !1,
|
|
250
|
+
dataHook: o,
|
|
251
|
+
trackingEl: e,
|
|
252
|
+
trackingLabel: r,
|
|
253
|
+
...n
|
|
254
|
+
}, s) => /* @__PURE__ */ l(
|
|
255
|
+
t ? p : "div",
|
|
256
|
+
{
|
|
257
|
+
ref: s,
|
|
258
|
+
className: c(B(), a),
|
|
259
|
+
"data-hook": o,
|
|
260
|
+
"data-slot": "typography-large",
|
|
261
|
+
"data-tracking-el": e,
|
|
262
|
+
"data-tracking-label": r,
|
|
263
|
+
...n
|
|
264
|
+
}
|
|
265
|
+
)
|
|
266
|
+
);
|
|
267
|
+
I.displayName = "TypographyLarge";
|
|
268
|
+
const M = g(
|
|
269
|
+
"text-foreground text-sm font-medium font-sans leading-5"
|
|
270
|
+
), P = d.forwardRef(
|
|
271
|
+
({
|
|
272
|
+
className: a,
|
|
273
|
+
asChild: t = !1,
|
|
274
|
+
dataHook: o,
|
|
275
|
+
trackingEl: e,
|
|
276
|
+
trackingLabel: r,
|
|
277
|
+
...n
|
|
278
|
+
}, s) => /* @__PURE__ */ l(
|
|
279
|
+
t ? p : "small",
|
|
280
|
+
{
|
|
281
|
+
ref: s,
|
|
282
|
+
className: c(M(), a),
|
|
283
|
+
"data-hook": o,
|
|
284
|
+
"data-slot": "typography-small",
|
|
285
|
+
"data-tracking-el": e,
|
|
286
|
+
"data-tracking-label": r,
|
|
287
|
+
...n
|
|
288
|
+
}
|
|
289
|
+
)
|
|
290
|
+
);
|
|
291
|
+
P.displayName = "TypographySmall";
|
|
292
|
+
const z = g(
|
|
293
|
+
"text-muted-foreground text-sm font-medium font-sans leading-5"
|
|
294
|
+
), A = d.forwardRef(
|
|
295
|
+
({
|
|
296
|
+
className: a,
|
|
297
|
+
asChild: t = !1,
|
|
298
|
+
dataHook: o,
|
|
299
|
+
trackingEl: e,
|
|
300
|
+
trackingLabel: r,
|
|
301
|
+
...n
|
|
302
|
+
}, s) => /* @__PURE__ */ l(
|
|
303
|
+
t ? p : "p",
|
|
304
|
+
{
|
|
305
|
+
ref: s,
|
|
306
|
+
className: c(z(), a),
|
|
307
|
+
"data-hook": o,
|
|
308
|
+
"data-slot": "typography-muted",
|
|
309
|
+
"data-tracking-el": e,
|
|
310
|
+
"data-tracking-label": r,
|
|
311
|
+
...n
|
|
312
|
+
}
|
|
313
|
+
)
|
|
314
|
+
);
|
|
315
|
+
A.displayName = "TypographyMuted";
|
|
316
|
+
export {
|
|
317
|
+
w as TypographyBlockquote,
|
|
318
|
+
v as TypographyCode,
|
|
319
|
+
y as TypographyH1,
|
|
320
|
+
h as TypographyH2,
|
|
321
|
+
k as TypographyH3,
|
|
322
|
+
b as TypographyH4,
|
|
323
|
+
L as TypographyInlineCode,
|
|
324
|
+
I as TypographyLarge,
|
|
325
|
+
j as TypographyLead,
|
|
326
|
+
V as TypographyList,
|
|
327
|
+
A as TypographyMuted,
|
|
328
|
+
N as TypographyP,
|
|
329
|
+
P as TypographySmall,
|
|
330
|
+
T as blockquoteVariants
|
|
331
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightlocal/ui-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "BrightLocal Design System UI Components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
"sonner": "^2.0.7",
|
|
153
153
|
"tailwind-merge": "^3.4.0",
|
|
154
154
|
"vaul": "^1.1.2",
|
|
155
|
-
"@brightlocal/icons": "0.
|
|
155
|
+
"@brightlocal/icons": "0.2.0"
|
|
156
156
|
},
|
|
157
157
|
"size-limit": [
|
|
158
158
|
{
|