@brightlocal/ui-components 2.26.0 → 3.0.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 +9 -2
- package/component-meta.json +4010 -255
- package/deprecations.json +189 -2
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.js +2 -2
- 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 +155 -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-state.d.ts +121 -0
- package/dist/blocks/progress-state.d.ts.map +1 -0
- package/dist/blocks/progress-state.js +368 -0
- package/dist/blocks/sidebar.cjs +1 -1
- package/dist/blocks/sidebar.d.ts.map +1 -1
- package/dist/blocks/sidebar.js +297 -296
- package/dist/brand-illustration-motif.d.ts +1 -1
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.d.ts.map +1 -1
- package/dist/breadcrumb.js +44 -40
- package/dist/button.cjs +1 -1
- package/dist/button.d.ts.map +1 -1
- package/dist/button.js +23 -23
- 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 +23 -2
- package/dist/card.d.ts.map +1 -1
- package/dist/card.js +94 -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 +6 -1
- package/dist/chart.d.ts.map +1 -1
- package/dist/chart.js +183 -183
- package/dist/chip.cjs +1 -1
- package/dist/chip.d.ts +1 -1
- package/dist/chip.d.ts.map +1 -1
- package/dist/chip.js +47 -44
- package/dist/combobox.cjs +3 -3
- package/dist/combobox.d.ts +4 -2
- package/dist/combobox.d.ts.map +1 -1
- package/dist/combobox.js +143 -141
- package/dist/command.cjs +1 -1
- package/dist/command.d.ts.map +1 -1
- package/dist/command.js +74 -77
- 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 +182 -13
- package/dist/data-table.d.ts.map +1 -1
- package/dist/data-table.js +462 -314
- 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.map +1 -1
- package/dist/field.js +29 -25
- package/dist/global-layout.cjs +1 -1
- package/dist/global-layout.d.ts +58 -6
- package/dist/global-layout.d.ts.map +1 -1
- package/dist/global-layout.js +278 -194
- 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/hover-card.cjs +1 -1
- package/dist/hover-card.js +13 -13
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +523 -494
- 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.js +51 -51
- 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/motion.cjs +1 -1
- package/dist/lib/motion.js +10 -8
- 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/link.cjs +1 -1
- package/dist/link.d.ts +8 -6
- package/dist/link.d.ts.map +1 -1
- package/dist/link.js +52 -20
- package/dist/list.cjs +1 -1
- package/dist/list.d.ts.map +1 -1
- package/dist/list.js +87 -81
- 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 +127 -1
- package/dist/pagination.d.ts.map +1 -1
- package/dist/pagination.js +189 -98
- package/dist/progress.cjs +1 -1
- package/dist/progress.d.ts +37 -3
- package/dist/progress.d.ts.map +1 -1
- package/dist/progress.js +102 -64
- package/dist/route-progress.cjs +1 -0
- package/dist/route-progress.d.ts +103 -0
- package/dist/route-progress.d.ts.map +1 -0
- package/dist/route-progress.js +106 -0
- package/dist/select.cjs +2 -2
- package/dist/select.d.ts.map +1 -1
- package/dist/select.js +19 -18
- package/dist/separator.cjs +1 -1
- package/dist/separator.js +8 -8
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.d.ts +35 -2
- package/dist/sheet.d.ts.map +1 -1
- package/dist/sheet.js +103 -66
- 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.d.ts.map +1 -1
- package/dist/sonner.js +32 -36
- package/dist/spinner.cjs +1 -0
- package/dist/spinner.d.ts +57 -0
- package/dist/spinner.d.ts.map +1 -0
- package/dist/spinner.js +35 -0
- package/dist/stepper.cjs +1 -1
- package/dist/stepper.d.ts.map +1 -1
- package/dist/stepper.js +23 -22
- package/dist/table.cjs +1 -1
- package/dist/table.d.ts +1 -1
- package/dist/table.d.ts.map +1 -1
- package/dist/table.js +36 -29
- 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 +116 -0
- package/dist/typography-heading.d.ts.map +1 -0
- package/dist/typography-heading.js +84 -0
- package/dist/typography-text.cjs +1 -0
- package/dist/typography-text.d.ts +113 -0
- package/dist/typography-text.d.ts.map +1 -0
- package/dist/typography-text.js +81 -0
- package/dist/typography.d.ts +13 -0
- package/dist/typography.d.ts.map +1 -1
- package/package.json +42 -2
- package/src/blocks/empty-state.tsx +424 -0
- package/src/blocks/input-list.tsx +66 -36
- package/src/blocks/progress-state.tsx +542 -0
- package/src/blocks/sidebar.tsx +46 -40
- package/src/components/accordion.tsx +2 -2
- 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 +9 -4
- package/src/components/button.tsx +5 -8
- package/src/components/calendar.tsx +5 -6
- package/src/components/callout.tsx +48 -15
- package/src/components/card.tsx +52 -17
- package/src/components/chart-empty.tsx +116 -0
- package/src/components/chart.tsx +43 -17
- package/src/components/chip.tsx +9 -6
- package/src/components/combobox.tsx +21 -12
- package/src/components/command.tsx +9 -10
- package/src/components/context-menu.tsx +6 -9
- package/src/components/data-table.tsx +405 -31
- 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 +8 -4
- package/src/components/global-layout.tsx +264 -65
- 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 +1 -1
- package/src/components/input.tsx +1 -1
- package/src/components/label.tsx +10 -13
- package/src/components/link.tsx +39 -5
- package/src/components/list.tsx +18 -14
- 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 +279 -1
- package/src/components/progress.tsx +120 -11
- package/src/components/route-progress.tsx +354 -0
- package/src/components/select.tsx +5 -4
- package/src/components/separator.tsx +1 -1
- package/src/components/sheet.tsx +89 -7
- package/src/components/skeleton.tsx +78 -7
- package/src/components/sonner.tsx +5 -14
- package/src/components/spinner.tsx +94 -0
- package/src/components/stepper.tsx +6 -7
- package/src/components/table.tsx +11 -4
- 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 +229 -0
- package/src/components/typography-text.tsx +225 -0
- package/src/components/typography.tsx +13 -0
- package/src/hooks/use-delayed-pending.ts +60 -0
- package/src/index.ts +12 -0
- package/src/lib/block-illustration.tsx +88 -0
- package/src/lib/empty-canvas.tsx +128 -0
- package/src/lib/optical-center.tsx +45 -0
- package/src/lib/utils.ts +26 -0
package/dist/badge.js
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import { jsx as b } from "react/jsx-runtime";
|
|
2
2
|
import * as g from "react";
|
|
3
3
|
import { Slot as p } from "@radix-ui/react-slot";
|
|
4
|
-
import { cva as
|
|
5
|
-
import { cn as
|
|
6
|
-
const _ =
|
|
4
|
+
import { cva as l } from "class-variance-authority";
|
|
5
|
+
import { cn as f } from "@brightlocal/ui-components/lib/utils";
|
|
6
|
+
const _ = l(
|
|
7
7
|
[
|
|
8
8
|
// Layout
|
|
9
9
|
"inline-flex items-center justify-center gap-1 w-fit shrink-0 overflow-hidden",
|
|
10
|
-
// Spacing & shape
|
|
11
|
-
|
|
12
|
-
//
|
|
13
|
-
|
|
10
|
+
// Spacing & shape — 2px vertical padding around the 16px line box keeps the
|
|
11
|
+
// content box 20px, matching the Figma frame (its stroke sits inside); the
|
|
12
|
+
// 1px border makes the rendered box 22px, unchanged from the pre-scale
|
|
13
|
+
// `leading-none` + py-1 stack (DS-925)
|
|
14
|
+
"rounded-full border px-2 py-0.5",
|
|
15
|
+
// Typography — type-scale role for badges (12/16 Figma 500; the weight
|
|
16
|
+
// drop from the old semibold is intentional, DS-925)
|
|
17
|
+
"text-label-sm whitespace-nowrap",
|
|
14
18
|
// Icons
|
|
15
19
|
"[&>svg]:size-3 [&>svg]:pointer-events-none",
|
|
16
20
|
// Transition
|
|
@@ -38,20 +42,20 @@ const _ = f(
|
|
|
38
42
|
), m = g.forwardRef(
|
|
39
43
|
({
|
|
40
44
|
className: e,
|
|
41
|
-
variant:
|
|
42
|
-
asChild:
|
|
45
|
+
variant: a,
|
|
46
|
+
asChild: o = !1,
|
|
43
47
|
dataHook: t,
|
|
44
48
|
trackingEl: s,
|
|
45
49
|
trackingLabel: n,
|
|
46
50
|
children: r,
|
|
47
51
|
...i
|
|
48
52
|
}, d) => {
|
|
49
|
-
const c =
|
|
53
|
+
const c = o ? p : "span", u = typeof r == "string" && /^[0-9]$/.test(r);
|
|
50
54
|
return /* @__PURE__ */ b(
|
|
51
55
|
c,
|
|
52
56
|
{
|
|
53
57
|
ref: d,
|
|
54
|
-
className:
|
|
58
|
+
className: f(_({ variant: a }), e),
|
|
55
59
|
"data-hook": t,
|
|
56
60
|
"data-number": u,
|
|
57
61
|
"data-slot": "badge",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),S=require("react"),T=require("class-variance-authority"),i=require("@brightlocal/ui-components/lib/utils"),I=require("../typography-heading.cjs"),_=require("../typography-text.cjs"),j=require("../lib/block-illustration.cjs");function A(t){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const e=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(s,n,e.get?e:{enumerable:!0,get:()=>t[n]})}}return s.default=t,Object.freeze(s)}const o=A(S),L={md:"section",lg:"page"},O={lg:2,md:3},q=T.cva("bg-muted text-muted-foreground flex size-10 items-center justify-center rounded-full",{variants:{align:{center:"",left:"shrink-0"}},defaultVariants:{align:"center"}}),k=o.forwardRef((t,s)=>{const{className:n,dataHook:e,title:b,description:m,children:u,titleLevel:v,trackingEl:g,trackingLabel:p,size:r="md",...E}=t,y=t.icon,f=t.illustration,l=r==="lg"?"center":t.align??"center",c=E;delete c.icon,delete c.illustration,delete c.align;const N=o.Children.toArray(u).flatMap(d=>o.isValidElement(d)&&d.type===o.Fragment?o.Children.toArray(d.props.children):[d]).length>0,x=r==="lg"&&f?a.jsx(j.BlockIllustration,{size:j.BLOCK_ILLUSTRATION_SIZE,slot:"empty-state-illustration",children:f}):y?a.jsx("span",{"aria-hidden":"true",className:i.cn(q({align:l}),r==="md"&&l==="center"&&"mb-1"),"data-hook":`${e}-icon`,"data-slot":"empty-state-icon",children:y}):null,h=a.jsxs("div",{className:i.cn("flex flex-col gap-2",l==="center"&&"w-full items-center"),"data-slot":"empty-state-content",children:[a.jsx(I.TypographyHeading,{align:l==="center"?"center":"left","data-slot":"empty-state-title",dataHook:`${e}-title`,level:v??O[r],variant:L[r],children:b}),m?a.jsx(_.TypographyText,{align:l==="center"?"center":"left",className:"max-w-md",color:"muted","data-slot":"empty-state-description",dataHook:`${e}-message`,variant:"body-sm",children:m}):null,N?a.jsx("div",{className:i.cn("mt-2 flex items-center gap-4",l==="center"&&"justify-center"),"data-slot":"empty-state-actions",children:u}):null]});return r==="lg"?a.jsxs("div",{ref:s,className:i.cn("flex w-full flex-col items-center gap-6",n),"data-hook":e,"data-size":"lg","data-slot":"empty-state","data-tracking-el":g??"empty-state","data-tracking-label":p,...c,children:[x,h]}):a.jsxs("div",{ref:s,className:i.cn(l==="left"?"flex items-start gap-4 text-left":"flex flex-col items-center gap-2 text-center",n),"data-hook":e,"data-size":"md","data-slot":"empty-state","data-tracking-el":g??"empty-state","data-tracking-label":p,...c,children:[x,h]})});k.displayName="EmptyState";exports.EmptyState=k;
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { TypographyHeadingLevel } from '../typography-heading';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
/**
|
|
4
|
+
* Visual prominence of the block. It sets the title's role, the kind of
|
|
5
|
+
* visual, and the rhythm — never the layout, which stays the consumer's.
|
|
6
|
+
*/
|
|
7
|
+
type EmptyStateSize = "md" | "lg";
|
|
8
|
+
/**
|
|
9
|
+
* Where an md block's content sits relative to its visual.
|
|
10
|
+
* - `center` — the column centres under the chip. For a standalone area the
|
|
11
|
+
* block fills: a zero-row table, a chart well, a panel.
|
|
12
|
+
* - `left` — the chip sits beside a left-aligned column, so the text joins the
|
|
13
|
+
* reading flow of the card it lives in rather than interrupting it.
|
|
14
|
+
*
|
|
15
|
+
* lg has no alignment: a page message is centred, full stop.
|
|
16
|
+
*/
|
|
17
|
+
type EmptyStateAlign = "center" | "left";
|
|
18
|
+
/**
|
|
19
|
+
* The parts every empty state has, at either size.
|
|
20
|
+
*/
|
|
21
|
+
interface EmptyStateBaseProps extends Omit<React.ComponentPropsWithoutRef<"div">, "title"> {
|
|
22
|
+
/**
|
|
23
|
+
* Required data-hook attribute for automated testing. The parts derive
|
|
24
|
+
* theirs from it: `-icon`, `-title`, `-message`.
|
|
25
|
+
* @example "locations-empty"
|
|
26
|
+
*/
|
|
27
|
+
dataHook: string;
|
|
28
|
+
/**
|
|
29
|
+
* What is missing, as a real heading. Name the thing, not the condition:
|
|
30
|
+
* "No locations yet", never "Empty".
|
|
31
|
+
*/
|
|
32
|
+
title: React.ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* One line under the title: what would put something here, or why there is
|
|
35
|
+
* nothing. May carry an inline link that reads as part of the sentence.
|
|
36
|
+
*/
|
|
37
|
+
description?: React.ReactNode;
|
|
38
|
+
/**
|
|
39
|
+
* The actions row. Source order is the rendered order and the primary action
|
|
40
|
+
* goes last, so the CTA lands rightmost; a quiet
|
|
41
|
+
* `<Link variant="ghost" external>` comes before it. Never a second bordered
|
|
42
|
+
* button — two buttons of equal weight ask the reader to choose twice.
|
|
43
|
+
*
|
|
44
|
+
* Omit it entirely on a gated screen: the reader cannot act, and a button
|
|
45
|
+
* they are not allowed to press is worse than no button.
|
|
46
|
+
*/
|
|
47
|
+
children?: React.ReactNode;
|
|
48
|
+
/**
|
|
49
|
+
* Document outline level for the title. Pick it as if CSS did not exist —
|
|
50
|
+
* the text's size comes from `size`, never from this.
|
|
51
|
+
* @default 3 at size md, 2 at size lg
|
|
52
|
+
*/
|
|
53
|
+
titleLevel?: TypographyHeadingLevel;
|
|
54
|
+
/**
|
|
55
|
+
* Tracking element identifier for analytics.
|
|
56
|
+
*/
|
|
57
|
+
trackingEl?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Tracking label for analytics context.
|
|
60
|
+
*/
|
|
61
|
+
trackingLabel?: string;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* The block at md: filling one region of a working page.
|
|
65
|
+
*/
|
|
66
|
+
interface EmptyStateMdProps extends EmptyStateBaseProps {
|
|
67
|
+
/**
|
|
68
|
+
* @default "md"
|
|
69
|
+
*/
|
|
70
|
+
size?: "md";
|
|
71
|
+
/**
|
|
72
|
+
* Content alignment relative to the chip.
|
|
73
|
+
* @default "center"
|
|
74
|
+
*/
|
|
75
|
+
align?: EmptyStateAlign;
|
|
76
|
+
/**
|
|
77
|
+
* The glyph in the muted chip, at its default 16px. Decorative: the wrapper
|
|
78
|
+
* is `aria-hidden`, so pass the glyph and nothing else.
|
|
79
|
+
* @example <MapPin />
|
|
80
|
+
*/
|
|
81
|
+
icon?: React.ReactNode;
|
|
82
|
+
/**
|
|
83
|
+
* Not available at md — a 130px drawing inside a card outweighs the page
|
|
84
|
+
* around it. Use `size="lg"`, or pass an `icon`.
|
|
85
|
+
*/
|
|
86
|
+
illustration?: never;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* The block at lg: the whole page has nothing to show.
|
|
90
|
+
*/
|
|
91
|
+
interface EmptyStateLgProps extends EmptyStateBaseProps {
|
|
92
|
+
size: "lg";
|
|
93
|
+
/**
|
|
94
|
+
* The screen's illustration. Decorative — mark it `aria-hidden`; the title
|
|
95
|
+
* and description carry the state on their own.
|
|
96
|
+
*
|
|
97
|
+
* Pass the illustration itself and do NOT set a size: the block renders it at
|
|
98
|
+
* the size the design specifies, whatever the element carries, so there is no
|
|
99
|
+
* number to get wrong per call site.
|
|
100
|
+
* @example <BusinessLocation aria-hidden />
|
|
101
|
+
*/
|
|
102
|
+
illustration?: React.ReactNode;
|
|
103
|
+
/**
|
|
104
|
+
* A glyph in the muted chip, for a page with no illustration of its own.
|
|
105
|
+
* Ignored when `illustration` is set — a screen gets one visual, not two.
|
|
106
|
+
*/
|
|
107
|
+
icon?: React.ReactNode;
|
|
108
|
+
/**
|
|
109
|
+
* Not available at lg: a page message is centred, full stop.
|
|
110
|
+
*/
|
|
111
|
+
align?: never;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Props for the EmptyState block. `size` discriminates the two shapes.
|
|
115
|
+
*/
|
|
116
|
+
export type EmptyStateProps = EmptyStateMdProps | EmptyStateLgProps;
|
|
117
|
+
/**
|
|
118
|
+
* The empty block: a visual, a title, one supporting line, and up to two
|
|
119
|
+
* actions. Pure content — compose the position around it: `size="lg"` inside
|
|
120
|
+
* `<Grid variant="centered">` for an empty page, `size="md"` inside the card, panel or
|
|
121
|
+
* table frame it speaks for.
|
|
122
|
+
*
|
|
123
|
+
* @example
|
|
124
|
+
* ```tsx
|
|
125
|
+
* // A zero-row collection, inside the table's own frame.
|
|
126
|
+
* <EmptyState
|
|
127
|
+
* dataHook="locations-empty"
|
|
128
|
+
* description="Add a location to start tracking visibility."
|
|
129
|
+
* icon={<MapPin />}
|
|
130
|
+
* title={t("locations.empty.title")}
|
|
131
|
+
* >
|
|
132
|
+
* <Button dataHook="locations-add" variant="secondary">
|
|
133
|
+
* <Plus aria-hidden="true" />
|
|
134
|
+
* Add location
|
|
135
|
+
* </Button>
|
|
136
|
+
* </EmptyState>
|
|
137
|
+
*
|
|
138
|
+
* // In a card's reading flow, with a quiet secondary action before the CTA.
|
|
139
|
+
* <EmptyState
|
|
140
|
+
* align="left"
|
|
141
|
+
* dataHook="reviews-empty"
|
|
142
|
+
* description={t("reviews.empty.description")}
|
|
143
|
+
* icon={<MessageSquareText />}
|
|
144
|
+
* title="No reviews yet"
|
|
145
|
+
* >
|
|
146
|
+
* <Link dataHook="reviews-docs" external href="/help/reviews" variant="ghost">
|
|
147
|
+
* How review sync works
|
|
148
|
+
* </Link>
|
|
149
|
+
* <Button dataHook="reviews-connect" variant="secondary">Connect profile</Button>
|
|
150
|
+
* </EmptyState>
|
|
151
|
+
*
|
|
152
|
+
* // The whole page is empty: lg, held at the page body's optical centre.
|
|
153
|
+
* <Grid dataHook="locations-empty-center" variant="centered">
|
|
154
|
+
* <EmptyState
|
|
155
|
+
* dataHook="locations-empty-page"
|
|
156
|
+
* description={t("locations.empty.description")}
|
|
157
|
+
* illustration={<BusinessLocation aria-hidden />}
|
|
158
|
+
* size="lg"
|
|
159
|
+
* title={t("locations.empty.title")}
|
|
160
|
+
* >
|
|
161
|
+
* <Button dataHook="locations-add">
|
|
162
|
+
* <Plus aria-hidden="true" />
|
|
163
|
+
* Add location
|
|
164
|
+
* </Button>
|
|
165
|
+
* </EmptyState>
|
|
166
|
+
* </Grid>
|
|
167
|
+
* ```
|
|
168
|
+
*/
|
|
169
|
+
declare const EmptyState: React.ForwardRefExoticComponent<EmptyStateProps & React.RefAttributes<HTMLDivElement>>;
|
|
170
|
+
export { EmptyState };
|
|
171
|
+
export type { EmptyStateAlign, EmptyStateSize };
|
|
172
|
+
//# sourceMappingURL=empty-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
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ACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,iBAAiB,GAAG,iBAAiB,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,QAAA,MAAM,UAAU,wFAiKf,CAAC;AAIF,OAAO,EAAE,UAAU,EAAE,CAAC;AAEtB,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { jsx as n, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import * as i from "react";
|
|
3
|
+
import { cva as L } from "class-variance-authority";
|
|
4
|
+
import { cn as s } from "@brightlocal/ui-components/lib/utils";
|
|
5
|
+
import { TypographyHeading as T } from "../typography-heading.js";
|
|
6
|
+
import { TypographyText as A } from "../typography-text.js";
|
|
7
|
+
import { BlockIllustration as S, BLOCK_ILLUSTRATION_SIZE as b } from "../lib/block-illustration.js";
|
|
8
|
+
const _ = {
|
|
9
|
+
md: "section",
|
|
10
|
+
lg: "page"
|
|
11
|
+
}, z = {
|
|
12
|
+
// An lg block is the page's message, under the layout's own page header,
|
|
13
|
+
// which owns h1.
|
|
14
|
+
lg: 2,
|
|
15
|
+
md: 3
|
|
16
|
+
}, H = L(
|
|
17
|
+
"bg-muted text-muted-foreground flex size-10 items-center justify-center rounded-full",
|
|
18
|
+
{
|
|
19
|
+
variants: {
|
|
20
|
+
align: { center: "", left: "shrink-0" }
|
|
21
|
+
},
|
|
22
|
+
defaultVariants: { align: "center" }
|
|
23
|
+
}
|
|
24
|
+
), j = i.forwardRef(
|
|
25
|
+
(r, d) => {
|
|
26
|
+
const {
|
|
27
|
+
className: m,
|
|
28
|
+
dataHook: a,
|
|
29
|
+
title: v,
|
|
30
|
+
description: p,
|
|
31
|
+
children: g,
|
|
32
|
+
titleLevel: E,
|
|
33
|
+
trackingEl: f,
|
|
34
|
+
trackingLabel: y,
|
|
35
|
+
size: e = "md",
|
|
36
|
+
...N
|
|
37
|
+
} = r, u = r.icon, h = r.illustration, t = e === "lg" ? "center" : r.align ?? "center", l = N;
|
|
38
|
+
delete l.icon, delete l.illustration, delete l.align;
|
|
39
|
+
const I = i.Children.toArray(g).flatMap(
|
|
40
|
+
(o) => i.isValidElement(o) && o.type === i.Fragment ? i.Children.toArray(
|
|
41
|
+
o.props.children
|
|
42
|
+
) : [o]
|
|
43
|
+
).length > 0, x = e === "lg" && h ? /* @__PURE__ */ n(
|
|
44
|
+
S,
|
|
45
|
+
{
|
|
46
|
+
size: b,
|
|
47
|
+
slot: "empty-state-illustration",
|
|
48
|
+
children: h
|
|
49
|
+
}
|
|
50
|
+
) : u ? /* @__PURE__ */ n(
|
|
51
|
+
"span",
|
|
52
|
+
{
|
|
53
|
+
"aria-hidden": "true",
|
|
54
|
+
className: s(
|
|
55
|
+
H({ align: t }),
|
|
56
|
+
/* The chip's 4px of extra breathing room belongs to the title
|
|
57
|
+
under it — the lg column sets its own 16px rhythm instead. */
|
|
58
|
+
e === "md" && t === "center" && "mb-1"
|
|
59
|
+
),
|
|
60
|
+
"data-hook": `${a}-icon`,
|
|
61
|
+
"data-slot": "empty-state-icon",
|
|
62
|
+
children: u
|
|
63
|
+
}
|
|
64
|
+
) : null, k = /* @__PURE__ */ c(
|
|
65
|
+
"div",
|
|
66
|
+
{
|
|
67
|
+
className: s(
|
|
68
|
+
"flex flex-col gap-2",
|
|
69
|
+
t === "center" && "w-full items-center"
|
|
70
|
+
),
|
|
71
|
+
"data-slot": "empty-state-content",
|
|
72
|
+
children: [
|
|
73
|
+
/* @__PURE__ */ n(
|
|
74
|
+
T,
|
|
75
|
+
{
|
|
76
|
+
align: t === "center" ? "center" : "left",
|
|
77
|
+
"data-slot": "empty-state-title",
|
|
78
|
+
dataHook: `${a}-title`,
|
|
79
|
+
level: E ?? z[e],
|
|
80
|
+
variant: _[e],
|
|
81
|
+
children: v
|
|
82
|
+
}
|
|
83
|
+
),
|
|
84
|
+
p ? (
|
|
85
|
+
/* Capped at 28rem: a single line of support reads as one thought
|
|
86
|
+
only while it stays a couple of lines long. */
|
|
87
|
+
/* @__PURE__ */ n(
|
|
88
|
+
A,
|
|
89
|
+
{
|
|
90
|
+
align: t === "center" ? "center" : "left",
|
|
91
|
+
className: "max-w-md",
|
|
92
|
+
color: "muted",
|
|
93
|
+
"data-slot": "empty-state-description",
|
|
94
|
+
dataHook: `${a}-message`,
|
|
95
|
+
variant: "body-sm",
|
|
96
|
+
children: p
|
|
97
|
+
}
|
|
98
|
+
)
|
|
99
|
+
) : null,
|
|
100
|
+
I ? /* @__PURE__ */ n(
|
|
101
|
+
"div",
|
|
102
|
+
{
|
|
103
|
+
className: s(
|
|
104
|
+
"mt-2 flex items-center gap-4",
|
|
105
|
+
t === "center" && "justify-center"
|
|
106
|
+
),
|
|
107
|
+
"data-slot": "empty-state-actions",
|
|
108
|
+
children: g
|
|
109
|
+
}
|
|
110
|
+
) : null
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
);
|
|
114
|
+
return e === "lg" ? /* @__PURE__ */ c(
|
|
115
|
+
"div",
|
|
116
|
+
{
|
|
117
|
+
ref: d,
|
|
118
|
+
className: s("flex w-full flex-col items-center gap-6", m),
|
|
119
|
+
"data-hook": a,
|
|
120
|
+
"data-size": "lg",
|
|
121
|
+
"data-slot": "empty-state",
|
|
122
|
+
"data-tracking-el": f ?? "empty-state",
|
|
123
|
+
"data-tracking-label": y,
|
|
124
|
+
...l,
|
|
125
|
+
children: [
|
|
126
|
+
x,
|
|
127
|
+
k
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
) : /* @__PURE__ */ c(
|
|
131
|
+
"div",
|
|
132
|
+
{
|
|
133
|
+
ref: d,
|
|
134
|
+
className: s(
|
|
135
|
+
t === "left" ? "flex items-start gap-4 text-left" : "flex flex-col items-center gap-2 text-center",
|
|
136
|
+
m
|
|
137
|
+
),
|
|
138
|
+
"data-hook": a,
|
|
139
|
+
"data-size": "md",
|
|
140
|
+
"data-slot": "empty-state",
|
|
141
|
+
"data-tracking-el": f ?? "empty-state",
|
|
142
|
+
"data-tracking-label": y,
|
|
143
|
+
...l,
|
|
144
|
+
children: [
|
|
145
|
+
x,
|
|
146
|
+
k
|
|
147
|
+
]
|
|
148
|
+
}
|
|
149
|
+
);
|
|
150
|
+
}
|
|
151
|
+
);
|
|
152
|
+
j.displayName = "EmptyState";
|
|
153
|
+
export {
|
|
154
|
+
j as EmptyState
|
|
155
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),
|
|
2
|
-
`);
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),C=require("react"),L=require("framer-motion"),S=require("@brightlocal/icons"),y=require("@brightlocal/ui-components/lib/utils"),D=require("@brightlocal/ui-components/hooks/use-prefers-reduced-motion"),_=require("../lib/motion.cjs"),A=require("../button.cjs"),M=require("../input.cjs"),x=require("../list.cjs");function K(t){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const l in t)if(l!=="default"){const i=Object.getOwnPropertyDescriptor(t,l);Object.defineProperty(s,l,i.get?i:{enumerable:!0,get:()=>t[l]})}}return s.default=t,Object.freeze(s)}const r=K(C),k=r.createContext(null);function j(){const t=r.useContext(k);if(!t)throw new Error("InputList components must be used within an <InputList>");return t}function P({value:t,onValueChange:s,children:l,className:i,dataHook:p,trackingEl:c,trackingLabel:h}){const[f,g]=r.useState(""),I=r.useRef(t.length),[e,a]=r.useState(()=>({keys:t.map((u,d)=>d),nextId:t.length,pendingRemoval:null}));let o=e.keys;if(o.length!==t.length){const u=t.length>o.length?{keys:[...o,...Array.from({length:t.length-o.length},(d,m)=>e.nextId+m)],nextId:e.nextId+(t.length-o.length),pendingRemoval:null}:{keys:e.pendingRemoval!==null&&o.length-t.length===1?o.filter((d,m)=>m!==e.pendingRemoval):o.slice(0,t.length),nextId:e.nextId,pendingRemoval:null};o=u.keys,a(u)}else e.pendingRemoval!==null&&a({...e,pendingRemoval:null});r.useEffect(()=>{const u=I.current;I.current=t.length,t.length>u&&g("")},[t]);const b=r.useCallback(u=>{const d=u.map(m=>m.trim()).filter(Boolean);d.length&&s([...t,...d])},[t,s]),R=r.useCallback(u=>{a(d=>({...d,pendingRemoval:u})),s(t.filter((d,m)=>m!==u))},[t,s]),w=r.useMemo(()=>({value:t,inputValue:f,setInputValue:g,addItems:b,removeItem:R,stableKeys:o}),[t,f,b,R,o]);return n.jsx(k.Provider,{value:w,children:n.jsx("div",{className:y.cn("flex flex-col gap-4",i),"data-hook":p,"data-slot":"input-list","data-tracking-el":c,"data-tracking-label":h,children:l})})}P.displayName="InputList";function v({dataHook:t="input-list",loading:s=!1,skeletonCount:l=5,disabled:i=!1,removeAriaLabel:p,className:c}){const{value:h,removeItem:f,stableKeys:g}=j(),I=D.usePrefersReducedMotion();return s?n.jsx("ul",{className:y.cn("flex flex-col gap-2",c),"data-slot":"input-list-skeleton",children:Array.from({length:l}).map((e,a)=>n.jsx(x.Item,{variant:"loading"},a))}):n.jsx("ul",{className:y.cn("flex flex-col gap-2",c),"data-hook":`${t}-list`,"data-slot":"list",children:n.jsx(L.AnimatePresence,{initial:!1,mode:"popLayout",children:h.map((e,a)=>n.jsx(L.motion.li,{layout:!0,animate:{opacity:1,scale:1},"data-hook":`${t}-item-${a}`,exit:{opacity:0,scale:.8,transition:{opacity:{duration:.15},scale:{duration:.12}}},initial:I?!1:{opacity:0,scale:.8},transition:{opacity:{duration:.15},scale:{duration:.15},layout:_.SPRING_SNAPPY},children:n.jsx(x.Item,{asChild:!0,variant:"filled",children:n.jsxs("div",{children:[n.jsx(x.ItemContent,{children:n.jsx(x.ItemTitle,{children:e})}),n.jsx(x.ItemActions,{children:n.jsx("button",{"aria-label":p?p.replace("{item}",e):`Remove ${e}`,className:y.cn("inline-flex size-9 cursor-pointer items-center justify-center rounded-full","text-muted-foreground","focus-visible:shadow-default outline-none","duration-fast transition-colors ease-out","disabled:pointer-events-none disabled:opacity-50"),"data-hook":`${t}-remove-${a}`,disabled:i,type:"button",onClick:()=>f(a),children:n.jsx(S.X,{})})})]})})},g[a]))})})}v.displayName="InputListItems";const N=r.forwardRef(({dataHook:t,error:s=!1,className:l,...i},p)=>{const{inputValue:c,setInputValue:h,addItems:f}=j(),g=e=>{e.key==="Enter"&&(e.preventDefault(),f([c])),i.onKeyDown?.(e)},I=e=>{const o=e.clipboardData.getData("text").split(`
|
|
2
|
+
`);o.length>1&&(e.preventDefault(),f(o)),i.onPaste?.(e)};return n.jsx(M.Input,{ref:p,...i,className:y.cn("flex-1",l),dataHook:t,error:s,value:c,onChange:e=>{h(e.target.value),i.onChange?.(e)},onKeyDown:g,onPaste:I})});N.displayName="InputListInput";const q=r.forwardRef(({dataHook:t,children:s,...l},i)=>{const{inputValue:p,addItems:c}=j();return n.jsx(A.Button,{ref:i,...l,dataHook:t,onClick:()=>c([p]),children:s})});q.displayName="InputListAddButton";exports.InputList=P;exports.InputListAddButton=q;exports.InputListInput=N;exports.InputListItems=v;exports.useInputListContext=j;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-list.d.ts","sourceRoot":"","sources":["../../src/blocks/input-list.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAQhE,UAAU,qBAAqB;IAC7B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAA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