@brightlocal/ui-components 2.26.0 → 2.27.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 +4 -2
- package/component-meta.json +3761 -360
- package/dist/blocks/progress-screen.cjs +1 -0
- package/dist/blocks/progress-screen.d.ts +109 -0
- package/dist/blocks/progress-screen.d.ts.map +1 -0
- package/dist/blocks/progress-screen.js +339 -0
- package/dist/blocks/sidebar.cjs +1 -1
- package/dist/blocks/sidebar.d.ts.map +1 -1
- package/dist/blocks/sidebar.js +155 -153
- 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 +28 -28
- 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 +42 -41
- 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 +161 -161
- package/dist/data-table.cjs +1 -1
- package/dist/data-table.d.ts +138 -3
- package/dist/data-table.d.ts.map +1 -1
- package/dist/data-table.js +455 -309
- package/dist/global-layout.cjs +1 -1
- package/dist/global-layout.d.ts +31 -5
- package/dist/global-layout.d.ts.map +1 -1
- package/dist/global-layout.js +276 -194
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +462 -451
- package/dist/lib/motion.cjs +1 -1
- package/dist/lib/motion.js +10 -8
- 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.js +65 -63
- package/dist/progress.cjs +1 -1
- package/dist/progress.d.ts +61 -3
- package/dist/progress.d.ts.map +1 -1
- package/dist/progress.js +142 -65
- 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/sheet.cjs +1 -1
- package/dist/sheet.d.ts +35 -2
- package/dist/sheet.d.ts.map +1 -1
- package/dist/sheet.js +102 -65
- package/dist/sonner.cjs +1 -1
- package/dist/sonner.d.ts.map +1 -1
- package/dist/sonner.js +11 -15
- 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 +26 -25
- 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 +6 -2
- package/package.json +14 -2
- package/src/blocks/progress-screen.tsx +481 -0
- package/src/blocks/sidebar.tsx +22 -15
- package/src/components/breadcrumb.tsx +9 -4
- package/src/components/button.tsx +2 -5
- package/src/components/chip.tsx +4 -3
- package/src/components/combobox.tsx +15 -8
- package/src/components/data-table.tsx +333 -14
- package/src/components/global-layout.tsx +228 -62
- package/src/components/link.tsx +39 -5
- package/src/components/list.tsx +5 -5
- package/src/components/progress.tsx +217 -30
- package/src/components/route-progress.tsx +354 -0
- package/src/components/sheet.tsx +87 -5
- package/src/components/sonner.tsx +3 -12
- package/src/components/spinner.tsx +94 -0
- package/src/components/stepper.tsx +3 -4
- package/src/components/table.tsx +6 -2
- package/src/index.ts +3 -0
package/dist/stepper.js
CHANGED
|
@@ -2,8 +2,9 @@ import { jsx as r, jsxs as S, Fragment as z } from "react/jsx-runtime";
|
|
|
2
2
|
import * as o from "react";
|
|
3
3
|
import { Slot as D } from "@radix-ui/react-slot";
|
|
4
4
|
import { cva as P } from "class-variance-authority";
|
|
5
|
-
import { Check as T, X as j
|
|
5
|
+
import { Check as T, X as j } from "@brightlocal/icons";
|
|
6
6
|
import { cn as d } from "@brightlocal/ui-components/lib/utils";
|
|
7
|
+
import { Spinner as A } from "@brightlocal/ui-components/spinner";
|
|
7
8
|
const C = o.createContext(null);
|
|
8
9
|
function R() {
|
|
9
10
|
const t = o.useContext(C);
|
|
@@ -27,17 +28,17 @@ function M({
|
|
|
27
28
|
dataHook: a,
|
|
28
29
|
steps: e,
|
|
29
30
|
value: p,
|
|
30
|
-
defaultValue:
|
|
31
|
+
defaultValue: n,
|
|
31
32
|
onValueChange: c,
|
|
32
|
-
orientation:
|
|
33
|
+
orientation: i = "horizontal",
|
|
33
34
|
labelPlacement: g = "below",
|
|
34
35
|
ariaLabel: f,
|
|
35
36
|
trackingEl: l,
|
|
36
37
|
trackingLabel: u,
|
|
37
38
|
...s
|
|
38
39
|
}, m) {
|
|
39
|
-
const h =
|
|
40
|
-
|
|
40
|
+
const h = i === "vertical" ? "vertical" : g === "inline" ? "horizontal-inline" : "horizontal-below", y = p !== void 0, [b, v] = o.useState(
|
|
41
|
+
n ?? e[0]?.id ?? ""
|
|
41
42
|
), w = y ? p : b, I = e.findIndex((x) => x.id === w), k = o.useCallback(
|
|
42
43
|
(x) => {
|
|
43
44
|
y || v(x), c?.(x);
|
|
@@ -49,9 +50,9 @@ function M({
|
|
|
49
50
|
activeIndex: I,
|
|
50
51
|
setActiveStep: k,
|
|
51
52
|
steps: e,
|
|
52
|
-
orientation:
|
|
53
|
+
orientation: i
|
|
53
54
|
}),
|
|
54
|
-
[w, I, k, e,
|
|
55
|
+
[w, I, k, e, i]
|
|
55
56
|
);
|
|
56
57
|
return /* @__PURE__ */ r(C.Provider, { value: E, children: /* @__PURE__ */ r(
|
|
57
58
|
"div",
|
|
@@ -64,7 +65,7 @@ function M({
|
|
|
64
65
|
),
|
|
65
66
|
"data-hook": a,
|
|
66
67
|
"data-layout": h,
|
|
67
|
-
"data-orientation":
|
|
68
|
+
"data-orientation": i,
|
|
68
69
|
"data-slot": "stepper",
|
|
69
70
|
"data-tracking-el": l,
|
|
70
71
|
"data-tracking-label": u,
|
|
@@ -101,9 +102,9 @@ const X = o.forwardRef(
|
|
|
101
102
|
stepId: a,
|
|
102
103
|
completed: e = !1,
|
|
103
104
|
error: p = !1,
|
|
104
|
-
disabled:
|
|
105
|
+
disabled: n = !1,
|
|
105
106
|
loading: c = !1,
|
|
106
|
-
dataHook:
|
|
107
|
+
dataHook: i,
|
|
107
108
|
...g
|
|
108
109
|
}, f) => {
|
|
109
110
|
const { activeIndex: l, steps: u } = R(), s = u.findIndex((v) => v.id === a);
|
|
@@ -117,10 +118,10 @@ const X = o.forwardRef(
|
|
|
117
118
|
index: s,
|
|
118
119
|
state: y,
|
|
119
120
|
isLast: m,
|
|
120
|
-
isDisabled:
|
|
121
|
+
isDisabled: n,
|
|
121
122
|
isLoading: h
|
|
122
123
|
}),
|
|
123
|
-
[a, s, y, m,
|
|
124
|
+
[a, s, y, m, n, h]
|
|
124
125
|
);
|
|
125
126
|
return /* @__PURE__ */ r(L.Provider, { value: b, children: /* @__PURE__ */ r(
|
|
126
127
|
"li",
|
|
@@ -141,8 +142,8 @@ const X = o.forwardRef(
|
|
|
141
142
|
"group-data-[layout=vertical]/stepper:flex group-data-[layout=vertical]/stepper:flex-col group-data-[layout=vertical]/stepper:items-start",
|
|
142
143
|
t
|
|
143
144
|
),
|
|
144
|
-
"data-disabled":
|
|
145
|
-
"data-hook":
|
|
145
|
+
"data-disabled": n ? "true" : void 0,
|
|
146
|
+
"data-hook": i,
|
|
146
147
|
"data-loading": h ? "true" : void 0,
|
|
147
148
|
"data-slot": "stepper-item",
|
|
148
149
|
"data-state": y,
|
|
@@ -153,12 +154,12 @@ const X = o.forwardRef(
|
|
|
153
154
|
);
|
|
154
155
|
X.displayName = "StepperItem";
|
|
155
156
|
const $ = o.forwardRef(
|
|
156
|
-
({ asChild: t = !1, className: a, dataHook: e, ...p },
|
|
157
|
-
const { setActiveStep: c } = R(), { stepId:
|
|
157
|
+
({ asChild: t = !1, className: a, dataHook: e, ...p }, n) => {
|
|
158
|
+
const { setActiveStep: c } = R(), { stepId: i, state: g, isDisabled: f } = N();
|
|
158
159
|
return /* @__PURE__ */ r(
|
|
159
160
|
t ? D : "button",
|
|
160
161
|
{
|
|
161
|
-
ref:
|
|
162
|
+
ref: n,
|
|
162
163
|
"aria-current": g === "active" ? "step" : void 0,
|
|
163
164
|
className: d(
|
|
164
165
|
// Focus is shown as a ring on the indicator (see StepperIndicator),
|
|
@@ -181,7 +182,7 @@ const $ = o.forwardRef(
|
|
|
181
182
|
type: "button",
|
|
182
183
|
disabled: f || p.disabled,
|
|
183
184
|
onClick: (u) => {
|
|
184
|
-
p.onClick?.(u), u.defaultPrevented || c(
|
|
185
|
+
p.onClick?.(u), u.defaultPrevented || c(i);
|
|
185
186
|
}
|
|
186
187
|
}
|
|
187
188
|
}
|
|
@@ -223,14 +224,14 @@ const q = P(
|
|
|
223
224
|
className: a,
|
|
224
225
|
children: e,
|
|
225
226
|
completedLabel: p = "Completed",
|
|
226
|
-
errorLabel:
|
|
227
|
+
errorLabel: n = "Error",
|
|
227
228
|
loadingLabel: c = "Loading",
|
|
228
|
-
dataHook:
|
|
229
|
+
dataHook: i,
|
|
229
230
|
...g
|
|
230
231
|
}, f) => {
|
|
231
232
|
const { state: l, index: u, isLoading: s } = N(), m = /* @__PURE__ */ S(z, { children: [
|
|
232
233
|
l === "completed" && /* @__PURE__ */ r("span", { className: "sr-only", children: p }),
|
|
233
|
-
l === "error" && /* @__PURE__ */ r("span", { className: "sr-only", children:
|
|
234
|
+
l === "error" && /* @__PURE__ */ r("span", { className: "sr-only", children: n }),
|
|
234
235
|
s && /* @__PURE__ */ r("span", { className: "sr-only", children: c })
|
|
235
236
|
] });
|
|
236
237
|
return /* @__PURE__ */ r(
|
|
@@ -238,7 +239,7 @@ const q = P(
|
|
|
238
239
|
{
|
|
239
240
|
ref: f,
|
|
240
241
|
className: d(q({ state: l }), a),
|
|
241
|
-
"data-hook":
|
|
242
|
+
"data-hook": i,
|
|
242
243
|
"data-slot": "stepper-indicator",
|
|
243
244
|
"data-state": l,
|
|
244
245
|
...g,
|
|
@@ -258,7 +259,7 @@ const q = P(
|
|
|
258
259
|
),
|
|
259
260
|
l === "completed" && !s && /* @__PURE__ */ r(T, { className: "absolute", size: 16 }),
|
|
260
261
|
l === "error" && !s && /* @__PURE__ */ r(j, { className: "absolute", size: 16 }),
|
|
261
|
-
s && /* @__PURE__ */ r(A, { className: "absolute
|
|
262
|
+
s && /* @__PURE__ */ r(A, { className: "absolute", size: "md" }),
|
|
262
263
|
m
|
|
263
264
|
] })
|
|
264
265
|
}
|
|
@@ -267,8 +268,8 @@ const q = P(
|
|
|
267
268
|
);
|
|
268
269
|
B.displayName = "StepperIndicator";
|
|
269
270
|
const G = o.forwardRef(({ className: t, dataHook: a, ...e }, p) => {
|
|
270
|
-
const { isLast:
|
|
271
|
-
return
|
|
271
|
+
const { isLast: n } = N();
|
|
272
|
+
return n ? null : /* @__PURE__ */ r(
|
|
272
273
|
"div",
|
|
273
274
|
{
|
|
274
275
|
ref: p,
|
package/dist/table.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),N=require("react"),f=require("class-variance-authority"),s=require("@brightlocal/ui-components/lib/utils");function j(a){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const e in a)if(e!=="default"){const l=Object.getOwnPropertyDescriptor(a,e);Object.defineProperty(t,e,l.get?l:{enumerable:!0,get:()=>a[e]})}}return t.default=a,Object.freeze(t)}const r=j(N),k=f.cva("align-middle bg-transparent text-foreground text-sm font-normal leading-normal break-words",{variants:{size:{default:"h-12 p-2",md:"h-16 p-2",lg:"h-24 p-2"},align:{left:"text-left",right:"text-right",center:"text-center"}},defaultVariants:{size:"default",align:"left"}}),R=f.cva("h-12 p-2 align-middle text-muted-foreground text-sm font-medium leading-normal break-words outline-none focus-visible:shadow-default transition-[background-color,box-shadow] duration-fast ease-out",{variants:{align:{left:"text-left",right:"text-right",center:"text-center"}},defaultVariants:{align:"left"}}),u=r.forwardRef(({className:a,dataHook:t,trackingEl:e,trackingLabel:l,layout:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),N=require("react"),f=require("class-variance-authority"),s=require("@brightlocal/ui-components/lib/utils");function j(a){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const e in a)if(e!=="default"){const l=Object.getOwnPropertyDescriptor(a,e);Object.defineProperty(t,e,l.get?l:{enumerable:!0,get:()=>a[e]})}}return t.default=a,Object.freeze(t)}const r=j(N),k=f.cva("align-middle bg-transparent text-foreground text-sm font-normal leading-normal break-words",{variants:{size:{default:"h-12 p-2",md:"h-16 p-2",lg:"h-24 p-2"},align:{left:"text-left",right:"text-right",center:"text-center"}},defaultVariants:{size:"default",align:"left"}}),R=f.cva("[thead_&]:bg-muted h-12 p-2 align-middle text-muted-foreground text-sm font-medium leading-normal break-words outline-none focus-visible:shadow-default transition-[background-color,box-shadow] duration-fast ease-out",{variants:{align:{left:"text-left",right:"text-right",center:"text-center"}},defaultVariants:{align:"left"}}),u=r.forwardRef(({className:a,dataHook:t,trackingEl:e,trackingLabel:l,layout:n="auto",minWidth:d,scrollRegionLabel:i,style:c,...b},w)=>o.jsx("div",{className:s.cn("relative w-full overflow-x-auto",d&&"focus-visible:shadow-default rounded-md outline-none"),"data-slot":"table-container",...d?{role:"region","aria-label":i??"Scrollable table",tabIndex:0}:void 0,children:o.jsx("table",{ref:w,className:s.cn("w-full caption-bottom text-sm",n==="fixed"&&"table-fixed",a),"data-hook":t,"data-slot":"table","data-tracking-el":e,"data-tracking-label":l,style:{minWidth:d,...c},...b})}));u.displayName="Table";const m=r.forwardRef(({className:a,dataHook:t,...e},l)=>o.jsx("thead",{ref:l,className:s.cn("bg-muted",a),"data-hook":t,"data-slot":"table-header",...e}));m.displayName="TableHeader";const g=r.forwardRef(({className:a,dataHook:t,...e},l)=>o.jsx("tbody",{ref:l,className:s.cn(a),"data-hook":t,"data-slot":"table-body",...e}));g.displayName="TableBody";const p=r.forwardRef(({className:a,dataHook:t,...e},l)=>o.jsx("tfoot",{ref:l,className:s.cn("bg-muted/50",a),"data-hook":t,"data-slot":"table-footer",...e}));p.displayName="TableFooter";const x=r.forwardRef(({className:a,dataHook:t,...e},l)=>o.jsx("tr",{ref:l,className:s.cn("data-[state=selected]:bg-muted","duration-fast transition-colors ease-out",a),"data-hook":t,"data-slot":"table-row",...e}));x.displayName="TableRow";const T=r.forwardRef(({className:a,dataHook:t,align:e,width:l,minWidth:n,style:d,scope:i="col",...c},b)=>o.jsx("th",{ref:b,className:s.cn(R({align:e}),a),"data-hook":t,"data-slot":"table-head",scope:i,style:{width:l,minWidth:n,...d},...c}));T.displayName="TableHead";const h=r.forwardRef(({className:a,dataHook:t,size:e,align:l,width:n,minWidth:d,style:i,...c},b)=>o.jsx("td",{ref:b,className:s.cn(k({size:e,align:l}),a),"data-hook":t,"data-slot":"table-cell",style:{width:n,minWidth:d,...i},...c}));h.displayName="TableCell";const y=r.forwardRef(({className:a,dataHook:t,...e},l)=>o.jsx("caption",{ref:l,className:s.cn("caption-bottom py-4",a),"data-hook":t,"data-slot":"table-caption",...e}));y.displayName="TableCaption";exports.Table=u;exports.TableBody=g;exports.TableCaption=y;exports.TableCell=h;exports.TableFooter=p;exports.TableHead=T;exports.TableHeader=m;exports.TableRow=x;
|
package/dist/table.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const tableCellVariants: (props?: ({
|
|
4
|
-
size?: "default" | "
|
|
4
|
+
size?: "default" | "md" | "lg" | null | undefined;
|
|
5
5
|
align?: "center" | "left" | "right" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
declare const tableHeadVariants: (props?: ({
|
package/dist/table.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../src/components/table.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAQlE,QAAA,MAAM,iBAAiB;;;8EAoBtB,CAAC;AAEF,QAAA,MAAM,iBAAiB;;
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../src/components/table.tsx"],"names":[],"mappings":"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"}
|
package/dist/table.js
CHANGED
|
@@ -23,7 +23,9 @@ const u = c(
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
), p = c(
|
|
26
|
-
|
|
26
|
+
// bg-muted only for column headers inside <thead> — a <TableHead
|
|
27
|
+
// scope="row"> in the body must not paint over its row's state tint.
|
|
28
|
+
"[thead_&]:bg-muted h-12 p-2 align-middle text-muted-foreground text-sm font-medium leading-normal break-words outline-none focus-visible:shadow-default transition-[background-color,box-shadow] duration-fast ease-out",
|
|
27
29
|
{
|
|
28
30
|
variants: {
|
|
29
31
|
align: {
|
|
@@ -126,7 +128,9 @@ const N = r.forwardRef(
|
|
|
126
128
|
{
|
|
127
129
|
ref: o,
|
|
128
130
|
className: d(
|
|
129
|
-
|
|
131
|
+
// Selected rows share the table head's surface (bg-muted).
|
|
132
|
+
"data-[state=selected]:bg-muted",
|
|
133
|
+
"duration-fast transition-colors ease-out",
|
|
130
134
|
a
|
|
131
135
|
),
|
|
132
136
|
"data-hook": t,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightlocal/ui-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.27.0",
|
|
4
4
|
"description": "BrightLocal Design System UI Components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -61,6 +61,15 @@
|
|
|
61
61
|
"import": "./dist/lib/motion.js",
|
|
62
62
|
"require": "./dist/lib/motion.cjs"
|
|
63
63
|
},
|
|
64
|
+
"./progress-screen": {
|
|
65
|
+
"source": {
|
|
66
|
+
"types": "./src/blocks/progress-screen.tsx",
|
|
67
|
+
"import": "./src/blocks/progress-screen.tsx"
|
|
68
|
+
},
|
|
69
|
+
"types": "./dist/blocks/progress-screen.d.ts",
|
|
70
|
+
"import": "./dist/blocks/progress-screen.js",
|
|
71
|
+
"require": "./dist/blocks/progress-screen.cjs"
|
|
72
|
+
},
|
|
64
73
|
"./input-list": {
|
|
65
74
|
"source": {
|
|
66
75
|
"types": "./src/blocks/input-list.tsx",
|
|
@@ -109,6 +118,9 @@
|
|
|
109
118
|
"lib/*": [
|
|
110
119
|
"dist/lib/*"
|
|
111
120
|
],
|
|
121
|
+
"progress-screen": [
|
|
122
|
+
"dist/blocks/progress-screen"
|
|
123
|
+
],
|
|
112
124
|
"input-list": [
|
|
113
125
|
"dist/blocks/input-list"
|
|
114
126
|
],
|
|
@@ -192,7 +204,7 @@
|
|
|
192
204
|
"sonner": "^2.0.7",
|
|
193
205
|
"tailwind-merge": "^3.4.0",
|
|
194
206
|
"vaul": "^1.1.2",
|
|
195
|
-
"@brightlocal/icons": "2.
|
|
207
|
+
"@brightlocal/icons": "2.4.0",
|
|
196
208
|
"@brightlocal/illustrations": "0.6.0"
|
|
197
209
|
},
|
|
198
210
|
"size-limit": [
|