@brightlocal/ui-components 2.27.0 → 3.1.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 +7 -1
- package/component-meta.json +568 -143
- package/deprecations.json +298 -1
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.d.ts +36 -0
- package/dist/accordion.d.ts.map +1 -1
- package/dist/accordion.js +74 -61
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.js +18 -18
- package/dist/alert.cjs +1 -1
- package/dist/alert.d.ts +11 -1
- package/dist/alert.d.ts.map +1 -1
- package/dist/alert.js +31 -28
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.js +4 -4
- package/dist/badge.cjs +1 -1
- package/dist/badge.d.ts.map +1 -1
- package/dist/badge.js +15 -11
- package/dist/blocks/empty-state.cjs +1 -0
- package/dist/blocks/empty-state.d.ts +172 -0
- package/dist/blocks/empty-state.d.ts.map +1 -0
- package/dist/blocks/empty-state.js +147 -0
- package/dist/blocks/input-list.cjs +2 -2
- package/dist/blocks/input-list.d.ts.map +1 -1
- package/dist/blocks/input-list.js +124 -108
- package/dist/blocks/progress-state.cjs +1 -0
- package/dist/blocks/{progress-screen.d.ts → progress-state.d.ts} +30 -18
- package/dist/blocks/progress-state.d.ts.map +1 -0
- package/dist/blocks/{progress-screen.js → progress-state.js} +100 -71
- package/dist/blocks/sidebar.cjs +1 -1
- package/dist/blocks/sidebar.d.ts.map +1 -1
- package/dist/blocks/sidebar.js +160 -161
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.js +1 -1
- package/dist/button-group.cjs +1 -0
- package/dist/button-group.d.ts +36 -0
- package/dist/button-group.d.ts.map +1 -0
- package/dist/button-group.js +47 -0
- package/dist/button.cjs +1 -1
- package/dist/button.js +12 -12
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.d.ts.map +1 -1
- package/dist/calendar.js +37 -38
- package/dist/callout.cjs +1 -1
- package/dist/callout.d.ts +24 -2
- package/dist/callout.d.ts.map +1 -1
- package/dist/callout.js +57 -55
- package/dist/card.cjs +1 -1
- package/dist/card.d.ts +42 -3
- package/dist/card.d.ts.map +1 -1
- package/dist/card.js +102 -91
- package/dist/chart-empty.cjs +1 -0
- package/dist/chart-empty.d.ts +59 -0
- package/dist/chart-empty.d.ts.map +1 -0
- package/dist/chart-empty.js +29 -0
- package/dist/chart.cjs +6 -6
- package/dist/chart.d.ts +46 -13
- package/dist/chart.d.ts.map +1 -1
- package/dist/chart.js +172 -157
- package/dist/chip.cjs +1 -1
- package/dist/chip.d.ts +38 -4
- package/dist/chip.d.ts.map +1 -1
- package/dist/chip.js +100 -84
- package/dist/combobox.cjs +2 -2
- package/dist/combobox.d.ts.map +1 -1
- package/dist/combobox.js +81 -79
- package/dist/command.cjs +1 -1
- package/dist/command.d.ts +23 -1
- package/dist/command.d.ts.map +1 -1
- package/dist/command.js +248 -225
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.d.ts.map +1 -1
- package/dist/context-menu.js +26 -29
- package/dist/data-table.cjs +1 -1
- package/dist/data-table.d.ts +75 -10
- package/dist/data-table.d.ts.map +1 -1
- package/dist/data-table.js +346 -334
- package/dist/date-picker.cjs +1 -1
- package/dist/date-picker.d.ts +13 -5
- package/dist/date-picker.d.ts.map +1 -1
- package/dist/date-picker.js +54 -53
- package/dist/description.cjs +1 -1
- package/dist/description.js +5 -5
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +20 -20
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.d.ts.map +1 -1
- package/dist/drawer.js +8 -11
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.d.ts.map +1 -1
- package/dist/dropdown-menu.js +17 -20
- package/dist/field.cjs +1 -1
- package/dist/field.d.ts +8 -1
- package/dist/field.d.ts.map +1 -1
- package/dist/field.js +96 -65
- package/dist/global-layout.cjs +1 -1
- package/dist/global-layout.d.ts +130 -12
- package/dist/global-layout.d.ts.map +1 -1
- package/dist/global-layout.js +146 -127
- package/dist/grid.cjs +1 -0
- package/dist/grid.d.ts +56 -0
- package/dist/grid.d.ts.map +1 -0
- package/dist/grid.js +32 -0
- package/dist/header.d.ts +13 -0
- package/dist/header.d.ts.map +1 -1
- package/dist/hooks/use-delayed-pending.cjs +1 -0
- package/dist/hooks/use-delayed-pending.d.ts +34 -0
- package/dist/hooks/use-delayed-pending.d.ts.map +1 -0
- package/dist/hooks/use-delayed-pending.js +17 -0
- package/dist/hooks/use-mobile.cjs +1 -0
- package/dist/hooks/use-mobile.js +8 -0
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.js +13 -13
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +554 -527
- package/dist/input-chip.cjs +1 -1
- package/dist/input-chip.js +25 -25
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.js +9 -9
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.js +9 -9
- package/dist/input-password.cjs +1 -1
- package/dist/input-password.d.ts +17 -9
- package/dist/input-password.d.ts.map +1 -1
- package/dist/input-password.js +73 -72
- package/dist/input.cjs +1 -1
- package/dist/input.js +9 -9
- package/dist/label.cjs +1 -1
- package/dist/label.d.ts.map +1 -1
- package/dist/label.js +25 -28
- package/dist/lib/block-illustration.cjs +1 -0
- package/dist/lib/block-illustration.d.ts +28 -0
- package/dist/lib/block-illustration.d.ts.map +1 -0
- package/dist/lib/block-illustration.js +21 -0
- package/dist/lib/empty-canvas.cjs +1 -0
- package/dist/lib/empty-canvas.d.ts +27 -0
- package/dist/lib/empty-canvas.d.ts.map +1 -0
- package/dist/lib/empty-canvas.js +62 -0
- package/dist/lib/empty-chip.cjs +1 -0
- package/dist/lib/empty-chip.d.ts +4 -0
- package/dist/lib/empty-chip.d.ts.map +1 -0
- package/dist/lib/empty-chip.js +13 -0
- package/dist/lib/optical-center.cjs +1 -0
- package/dist/lib/optical-center.d.ts +12 -0
- package/dist/lib/optical-center.d.ts.map +1 -0
- package/dist/lib/optical-center.js +11 -0
- package/dist/lib/utils.cjs +1 -1
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +28 -5
- package/dist/list.cjs +1 -1
- package/dist/list.d.ts.map +1 -1
- package/dist/list.js +62 -58
- package/dist/map.cjs +1 -1
- package/dist/map.d.ts +60 -2
- package/dist/map.d.ts.map +1 -1
- package/dist/map.js +187 -164
- package/dist/media-empty.cjs +1 -0
- package/dist/media-empty.d.ts +72 -0
- package/dist/media-empty.d.ts.map +1 -0
- package/dist/media-empty.js +45 -0
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.d.ts.map +1 -1
- package/dist/menubar.js +17 -20
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.js +7 -7
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.d.ts +130 -1
- package/dist/pagination.d.ts.map +1 -1
- package/dist/pagination.js +193 -102
- package/dist/progress.cjs +1 -1
- package/dist/progress.d.ts +2 -26
- package/dist/progress.d.ts.map +1 -1
- package/dist/progress.js +79 -118
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.d.ts +15 -6
- package/dist/scroll-area.d.ts.map +1 -1
- package/dist/scroll-area.js +38 -36
- package/dist/select.cjs +2 -2
- package/dist/select.d.ts +13 -2
- package/dist/select.d.ts.map +1 -1
- package/dist/select.js +92 -87
- package/dist/separator.cjs +1 -1
- package/dist/separator.js +8 -8
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +2 -2
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.d.ts +38 -3
- package/dist/skeleton.d.ts.map +1 -1
- package/dist/skeleton.js +43 -20
- package/dist/sonner.cjs +1 -1
- package/dist/sonner.js +26 -26
- package/dist/stepper.cjs +1 -1
- package/dist/stepper.js +40 -40
- package/dist/table.cjs +1 -1
- package/dist/table.d.ts.map +1 -1
- package/dist/table.js +31 -28
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/text-reveal-motion.d.ts +10 -0
- package/dist/text-reveal-motion.d.ts.map +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +11 -11
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.js +8 -8
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.js +8 -8
- package/dist/typography-heading.cjs +1 -0
- package/dist/typography-heading.d.ts +129 -0
- package/dist/typography-heading.d.ts.map +1 -0
- package/dist/typography-heading.js +95 -0
- package/dist/typography-text.cjs +1 -0
- package/dist/typography-text.d.ts +127 -0
- package/dist/typography-text.d.ts.map +1 -0
- package/dist/typography-text.js +92 -0
- package/dist/typography.d.ts +13 -0
- package/dist/typography.d.ts.map +1 -1
- package/package.json +35 -7
- package/src/blocks/empty-state.tsx +412 -0
- package/src/blocks/input-list.tsx +66 -36
- package/src/blocks/{progress-screen.tsx → progress-state.tsx} +154 -93
- package/src/blocks/sidebar.tsx +25 -26
- package/src/components/accordion.tsx +82 -27
- package/src/components/alert-dialog.tsx +2 -2
- package/src/components/alert.tsx +27 -13
- package/src/components/avatar.tsx +1 -1
- package/src/components/badge.tsx +8 -4
- package/src/components/breadcrumb.tsx +1 -1
- package/src/components/button-group.tsx +112 -0
- package/src/components/button.tsx +4 -4
- package/src/components/calendar.tsx +5 -6
- package/src/components/callout.tsx +48 -15
- package/src/components/card.tsx +89 -19
- package/src/components/chart-empty.tsx +116 -0
- package/src/components/chart.tsx +103 -32
- package/src/components/chip.tsx +88 -13
- package/src/components/combobox.tsx +12 -10
- package/src/components/command.tsx +64 -13
- package/src/components/context-menu.tsx +6 -9
- package/src/components/data-table.tsx +135 -20
- package/src/components/date-picker.tsx +18 -7
- package/src/components/description.tsx +1 -1
- package/src/components/dialog.tsx +2 -2
- package/src/components/drawer.tsx +2 -5
- package/src/components/dropdown-menu.tsx +8 -11
- package/src/components/field.tsx +89 -16
- package/src/components/global-layout.tsx +210 -39
- package/src/components/grid.tsx +130 -0
- package/src/components/header.tsx +13 -0
- package/src/components/hover-card.tsx +1 -1
- package/src/components/input-chip.tsx +1 -1
- package/src/components/input-group.tsx +1 -1
- package/src/components/input-otp.tsx +1 -1
- package/src/components/input-password.tsx +24 -12
- package/src/components/input.tsx +1 -1
- package/src/components/label.tsx +10 -13
- package/src/components/list.tsx +13 -9
- package/src/components/map.tsx +101 -5
- package/src/components/media-empty.tsx +156 -0
- package/src/components/menubar.tsx +7 -10
- package/src/components/navigation-menu.tsx +1 -1
- package/src/components/pagination.tsx +286 -1
- package/src/components/progress.tsx +35 -113
- package/src/components/scroll-area.tsx +23 -10
- package/src/components/select.tsx +35 -10
- package/src/components/separator.tsx +1 -1
- package/src/components/sheet.tsx +2 -2
- package/src/components/skeleton.tsx +78 -7
- package/src/components/sonner.tsx +2 -2
- package/src/components/stepper.tsx +3 -3
- package/src/components/table.tsx +6 -3
- package/src/components/tabs.tsx +1 -1
- package/src/components/text-reveal-motion.tsx +10 -0
- package/src/components/textarea.tsx +1 -1
- package/src/components/toggle.tsx +1 -1
- package/src/components/tooltip.tsx +1 -1
- package/src/components/typography-heading.tsx +253 -0
- package/src/components/typography-text.tsx +250 -0
- package/src/components/typography.tsx +13 -0
- package/src/hooks/use-delayed-pending.ts +60 -0
- package/src/index.ts +11 -1
- package/src/lib/block-illustration.tsx +88 -0
- package/src/lib/empty-canvas.tsx +128 -0
- package/src/lib/empty-chip.ts +24 -0
- package/src/lib/optical-center.tsx +45 -0
- package/src/lib/utils.ts +26 -0
- package/dist/blocks/progress-screen.cjs +0 -1
- package/dist/blocks/progress-screen.d.ts.map +0 -1
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import * as u from "react";
|
|
3
|
+
import { Slot as x } from "@radix-ui/react-slot";
|
|
4
|
+
import { cva as f } from "class-variance-authority";
|
|
5
|
+
import { cn as b } from "@brightlocal/ui-components/lib/utils";
|
|
6
|
+
const g = f("", {
|
|
7
|
+
variants: {
|
|
8
|
+
variant: {
|
|
9
|
+
body: "text-body",
|
|
10
|
+
"body-sm": "text-body-sm",
|
|
11
|
+
"body-xs": "text-body-xs",
|
|
12
|
+
metric: "text-metric",
|
|
13
|
+
code: "text-code"
|
|
14
|
+
},
|
|
15
|
+
color: {
|
|
16
|
+
default: "text-foreground",
|
|
17
|
+
muted: "text-muted-foreground",
|
|
18
|
+
// destructive-foreground is the legible error-text color in both modes
|
|
19
|
+
// (text-destructive is the surface red used behind destructive fills)
|
|
20
|
+
destructive: "text-destructive-foreground"
|
|
21
|
+
},
|
|
22
|
+
// Tri-state on purpose: `undefined` (the default) emits no class so the
|
|
23
|
+
// text inherits its context — proportional everywhere except inside a
|
|
24
|
+
// Table root, which sets `tabular-nums` (DS-926). Explicit `false` must
|
|
25
|
+
// therefore emit `proportional-nums`, or opting out inside a Table would
|
|
26
|
+
// be a silent no-op.
|
|
27
|
+
tabular: {
|
|
28
|
+
true: "tabular-nums",
|
|
29
|
+
false: "proportional-nums"
|
|
30
|
+
},
|
|
31
|
+
align: {
|
|
32
|
+
left: "text-left",
|
|
33
|
+
center: "text-center",
|
|
34
|
+
right: "text-right"
|
|
35
|
+
},
|
|
36
|
+
// Boolean on purpose (no `false` class): unlike tabular there is no
|
|
37
|
+
// inherited context to undo — either the element clips or it doesn't.
|
|
38
|
+
// `block` is load-bearing: an inline box (the default `span` for metric,
|
|
39
|
+
// `code` for code, or an inline asChild child) cannot clip — overflow
|
|
40
|
+
// does not apply to non-replaced inlines — so the variant forces a block
|
|
41
|
+
// container. A no-op on the body variants (`p` is already block) and on
|
|
42
|
+
// flex/grid items (blockified by the layout).
|
|
43
|
+
truncate: {
|
|
44
|
+
true: "block truncate"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
defaultVariants: {
|
|
48
|
+
variant: "body",
|
|
49
|
+
color: "default"
|
|
50
|
+
}
|
|
51
|
+
}), h = {
|
|
52
|
+
body: "p",
|
|
53
|
+
"body-sm": "p",
|
|
54
|
+
"body-xs": "p",
|
|
55
|
+
metric: "span",
|
|
56
|
+
code: "code"
|
|
57
|
+
}, T = u.forwardRef(
|
|
58
|
+
({
|
|
59
|
+
className: e,
|
|
60
|
+
variant: t = "body",
|
|
61
|
+
color: o = "default",
|
|
62
|
+
tabular: r,
|
|
63
|
+
align: a,
|
|
64
|
+
truncate: d = !1,
|
|
65
|
+
asChild: s = !1,
|
|
66
|
+
dataHook: c,
|
|
67
|
+
trackingEl: l,
|
|
68
|
+
trackingLabel: n,
|
|
69
|
+
...m
|
|
70
|
+
}, p) => {
|
|
71
|
+
const y = s ? x : h[t];
|
|
72
|
+
return /* @__PURE__ */ i(
|
|
73
|
+
y,
|
|
74
|
+
{
|
|
75
|
+
ref: p,
|
|
76
|
+
className: b(
|
|
77
|
+
g({ variant: t, color: o, tabular: r, align: a, truncate: d }),
|
|
78
|
+
e
|
|
79
|
+
),
|
|
80
|
+
"data-hook": c,
|
|
81
|
+
"data-slot": "typography-text",
|
|
82
|
+
"data-tracking-el": l || `typography-text-${t}`,
|
|
83
|
+
"data-tracking-label": n,
|
|
84
|
+
...m
|
|
85
|
+
}
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
);
|
|
89
|
+
T.displayName = "TypographyText";
|
|
90
|
+
export {
|
|
91
|
+
T as TypographyText
|
|
92
|
+
};
|
package/dist/typography.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ interface TypographyH1Props extends React.ComponentProps<"h1">, TypographyBasePr
|
|
|
52
52
|
* Main page heading component (h1).
|
|
53
53
|
* Used for the primary title on a page. Uses the display font (Poppins) with
|
|
54
54
|
* responsive sizing — 36px on mobile, 48px from the `md` breakpoint.
|
|
55
|
+
* @deprecated Use `<TypographyHeading level={1} variant="page">` (semantic type scale, DS-714). Note the scale's page title is 24px — the 48px look is `variant="display"`, reserved for brand moments.
|
|
55
56
|
*/
|
|
56
57
|
declare const TypographyH1: React.ForwardRefExoticComponent<Omit<TypographyH1Props, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
57
58
|
/**
|
|
@@ -63,6 +64,7 @@ interface TypographyH2Props extends React.ComponentProps<"h2">, TypographyBasePr
|
|
|
63
64
|
/**
|
|
64
65
|
* Section heading component (h2).
|
|
65
66
|
* Used for major section titles within a page.
|
|
67
|
+
* @deprecated Use `<TypographyHeading level={2} variant="section">` (semantic type scale, DS-714).
|
|
66
68
|
*/
|
|
67
69
|
declare const TypographyH2: React.ForwardRefExoticComponent<Omit<TypographyH2Props, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
68
70
|
/**
|
|
@@ -74,6 +76,7 @@ interface TypographyH3Props extends React.ComponentProps<"h3">, TypographyBasePr
|
|
|
74
76
|
/**
|
|
75
77
|
* Subsection heading component (h3).
|
|
76
78
|
* Used for subsections within a major section.
|
|
79
|
+
* @deprecated Use `<TypographyHeading level={3} variant="subsection">` (semantic type scale, DS-714).
|
|
77
80
|
*/
|
|
78
81
|
declare const TypographyH3: React.ForwardRefExoticComponent<Omit<TypographyH3Props, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
79
82
|
/**
|
|
@@ -85,6 +88,7 @@ interface TypographyH4Props extends React.ComponentProps<"h4">, TypographyBasePr
|
|
|
85
88
|
/**
|
|
86
89
|
* Minor heading component (h4).
|
|
87
90
|
* Used for smaller section headings and card titles.
|
|
91
|
+
* @deprecated Use `<TypographyHeading level={4} variant="subsection">` (semantic type scale, DS-714).
|
|
88
92
|
*/
|
|
89
93
|
declare const TypographyH4: React.ForwardRefExoticComponent<Omit<TypographyH4Props, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
90
94
|
/**
|
|
@@ -96,6 +100,7 @@ interface TypographyPProps extends React.ComponentProps<"p">, TypographyBaseProp
|
|
|
96
100
|
/**
|
|
97
101
|
* Paragraph text component (p).
|
|
98
102
|
* Used for body text and general content.
|
|
103
|
+
* @deprecated Use `<TypographyText>` (variant "body", semantic type scale, DS-714).
|
|
99
104
|
*/
|
|
100
105
|
declare const TypographyP: React.ForwardRefExoticComponent<Omit<TypographyPProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
101
106
|
/**
|
|
@@ -107,6 +112,7 @@ interface TypographyBlockquoteProps extends React.ComponentProps<"blockquote">,
|
|
|
107
112
|
/**
|
|
108
113
|
* Blockquote component for quoted content.
|
|
109
114
|
* Displays with a left border accent for visual distinction.
|
|
115
|
+
* @deprecated Use `<TypographyText asChild>` with a `blockquote` child (semantic type scale, DS-714); the border/quote treatment is consumer layout.
|
|
110
116
|
*/
|
|
111
117
|
declare const TypographyBlockquote: React.ForwardRefExoticComponent<Omit<TypographyBlockquoteProps, "ref"> & React.RefAttributes<HTMLQuoteElement>>;
|
|
112
118
|
/**
|
|
@@ -118,6 +124,7 @@ interface TypographyListProps extends React.ComponentProps<"ul">, TypographyBase
|
|
|
118
124
|
/**
|
|
119
125
|
* Unordered list component (ul).
|
|
120
126
|
* Used for bullet-point lists with consistent styling.
|
|
127
|
+
* @deprecated Use `<TypographyText asChild>` with a `ul` child (semantic type scale, DS-714); list markers and spacing are consumer layout.
|
|
121
128
|
*/
|
|
122
129
|
declare const TypographyList: React.ForwardRefExoticComponent<Omit<TypographyListProps, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
123
130
|
/**
|
|
@@ -129,6 +136,7 @@ interface TypographyInlineCodeProps extends React.ComponentProps<"code">, Omit<T
|
|
|
129
136
|
/**
|
|
130
137
|
* Inline code component for code snippets within text.
|
|
131
138
|
* Displays with monospace font and muted background.
|
|
139
|
+
* @deprecated Use `<code className="text-code-inline">` inside a sentence (0.9em, inherits the line's height — semantic type scale, DS-714).
|
|
132
140
|
*/
|
|
133
141
|
declare const TypographyInlineCode: React.ForwardRefExoticComponent<Omit<TypographyInlineCodeProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
134
142
|
/**
|
|
@@ -140,6 +148,7 @@ interface TypographyCodeProps extends React.ComponentProps<"pre">, TypographyBas
|
|
|
140
148
|
/**
|
|
141
149
|
* Code block component for multi-line code snippets.
|
|
142
150
|
* Displays with dark background, monospace font, and horizontal scroll.
|
|
151
|
+
* @deprecated Use `<TypographyText variant="code">` for copyable identifiers, or a `pre` styled with `text-code` for multi-line snippets (semantic type scale, DS-714).
|
|
143
152
|
*/
|
|
144
153
|
declare const TypographyCode: React.ForwardRefExoticComponent<Omit<TypographyCodeProps, "ref"> & React.RefAttributes<HTMLPreElement>>;
|
|
145
154
|
/**
|
|
@@ -151,6 +160,7 @@ interface TypographyLeadProps extends React.ComponentProps<"p">, TypographyBaseP
|
|
|
151
160
|
/**
|
|
152
161
|
* Lead paragraph component for introductory text.
|
|
153
162
|
* Displays larger, muted text for page introductions and summaries.
|
|
163
|
+
* @deprecated Use `<TypographyText color="muted">` for an intro line (semantic type scale, DS-714).
|
|
154
164
|
*/
|
|
155
165
|
declare const TypographyLead: React.ForwardRefExoticComponent<Omit<TypographyLeadProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
156
166
|
/**
|
|
@@ -162,6 +172,7 @@ interface TypographyLargeProps extends React.ComponentProps<"div">, TypographyBa
|
|
|
162
172
|
/**
|
|
163
173
|
* Large text component for emphasized content.
|
|
164
174
|
* Displays larger, semibold text for callouts and highlights.
|
|
175
|
+
* @deprecated Use `<TypographyHeading level={n} variant="subsection">` for a small heading or `<TypographyText>` for emphasised copy (DS-714).
|
|
165
176
|
*/
|
|
166
177
|
declare const TypographyLarge: React.ForwardRefExoticComponent<Omit<TypographyLargeProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
167
178
|
/**
|
|
@@ -173,6 +184,7 @@ interface TypographySmallProps extends React.ComponentProps<"small">, Omit<Typog
|
|
|
173
184
|
/**
|
|
174
185
|
* Small text component for compact content.
|
|
175
186
|
* Used for captions, labels, and supplementary information.
|
|
187
|
+
* @deprecated Use `<TypographyText variant="body-sm">` (semantic type scale, DS-714).
|
|
176
188
|
*/
|
|
177
189
|
declare const TypographySmall: React.ForwardRefExoticComponent<Omit<TypographySmallProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
178
190
|
/**
|
|
@@ -184,6 +196,7 @@ interface TypographyMutedProps extends React.ComponentProps<"p">, TypographyBase
|
|
|
184
196
|
/**
|
|
185
197
|
* Muted text component for de-emphasized content.
|
|
186
198
|
* Displays with reduced visual prominence for secondary information.
|
|
199
|
+
* @deprecated Use `<TypographyText variant="body-sm" color="muted">` (semantic type scale, DS-714).
|
|
187
200
|
*/
|
|
188
201
|
declare const TypographyMuted: React.ForwardRefExoticComponent<Omit<TypographyMutedProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
189
202
|
export { TypographyH1, TypographyH2, TypographyH3, TypographyH4, TypographyP, TypographyBlockquote, TypographyList, TypographyInlineCode, TypographyCode, TypographyLead, TypographyLarge, TypographySmall, TypographyMuted, };
|
package/dist/typography.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../src/components/typography.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B;;GAEG;AACH,KAAK,eAAe,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AAYnD;;;GAGG;AACH,UAAU,mBAAmB;IAC3B;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAUD;;;GAGG;AACH,UAAU,iBACR,SAAQ,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,mBAAmB;CAAG;AAE5D
|
|
1
|
+
{"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../src/components/typography.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,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,YAAY,EACZ,WAAW,EACX,oBAAoB,EACpB,cAAc,EACd,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,eAAe,GAChB,CAAC;AAEF,YAAY,EACV,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,yBAAyB,EACzB,mBAAmB,EACnB,yBAAyB,EACzB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,GACrB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightlocal/ui-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "BrightLocal Design System UI Components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -61,14 +61,32 @@
|
|
|
61
61
|
"import": "./dist/lib/motion.js",
|
|
62
62
|
"require": "./dist/lib/motion.cjs"
|
|
63
63
|
},
|
|
64
|
+
"./empty-state": {
|
|
65
|
+
"source": {
|
|
66
|
+
"types": "./src/blocks/empty-state.tsx",
|
|
67
|
+
"import": "./src/blocks/empty-state.tsx"
|
|
68
|
+
},
|
|
69
|
+
"types": "./dist/blocks/empty-state.d.ts",
|
|
70
|
+
"import": "./dist/blocks/empty-state.js",
|
|
71
|
+
"require": "./dist/blocks/empty-state.cjs"
|
|
72
|
+
},
|
|
73
|
+
"./progress-state": {
|
|
74
|
+
"source": {
|
|
75
|
+
"types": "./src/blocks/progress-state.tsx",
|
|
76
|
+
"import": "./src/blocks/progress-state.tsx"
|
|
77
|
+
},
|
|
78
|
+
"types": "./dist/blocks/progress-state.d.ts",
|
|
79
|
+
"import": "./dist/blocks/progress-state.js",
|
|
80
|
+
"require": "./dist/blocks/progress-state.cjs"
|
|
81
|
+
},
|
|
64
82
|
"./progress-screen": {
|
|
65
83
|
"source": {
|
|
66
|
-
"types": "./src/blocks/progress-
|
|
67
|
-
"import": "./src/blocks/progress-
|
|
84
|
+
"types": "./src/blocks/progress-state.tsx",
|
|
85
|
+
"import": "./src/blocks/progress-state.tsx"
|
|
68
86
|
},
|
|
69
|
-
"types": "./dist/blocks/progress-
|
|
70
|
-
"import": "./dist/blocks/progress-
|
|
71
|
-
"require": "./dist/blocks/progress-
|
|
87
|
+
"types": "./dist/blocks/progress-state.d.ts",
|
|
88
|
+
"import": "./dist/blocks/progress-state.js",
|
|
89
|
+
"require": "./dist/blocks/progress-state.cjs"
|
|
72
90
|
},
|
|
73
91
|
"./input-list": {
|
|
74
92
|
"source": {
|
|
@@ -118,8 +136,14 @@
|
|
|
118
136
|
"lib/*": [
|
|
119
137
|
"dist/lib/*"
|
|
120
138
|
],
|
|
139
|
+
"empty-state": [
|
|
140
|
+
"dist/blocks/empty-state"
|
|
141
|
+
],
|
|
142
|
+
"progress-state": [
|
|
143
|
+
"dist/blocks/progress-state"
|
|
144
|
+
],
|
|
121
145
|
"progress-screen": [
|
|
122
|
-
"dist/blocks/progress-
|
|
146
|
+
"dist/blocks/progress-state"
|
|
123
147
|
],
|
|
124
148
|
"input-list": [
|
|
125
149
|
"dist/blocks/input-list"
|
|
@@ -240,6 +264,10 @@
|
|
|
240
264
|
"token-drift:check": "node scripts/token-drift.mjs --check",
|
|
241
265
|
"token-drift:update-baseline": "node scripts/token-drift.mjs --update-baseline",
|
|
242
266
|
"token-drift:report": "node scripts/token-report.mjs",
|
|
267
|
+
"test": "node --test \"scripts/test/*.test.mjs\"",
|
|
268
|
+
"typography-drift": "node scripts/token-drift.mjs --only typography",
|
|
269
|
+
"typography-drift:check": "node scripts/token-drift.mjs --check --only typography",
|
|
270
|
+
"typography-drift:update-baseline": "node scripts/token-drift.mjs --update-baseline --only typography",
|
|
243
271
|
"build:changelog": "node scripts/generate-changelog.js",
|
|
244
272
|
"rel:patch": "node scripts/changeset-create.mjs patch",
|
|
245
273
|
"rel:minor": "node scripts/changeset-create.mjs minor",
|