@brightlocal/ui-components 0.1.3 → 0.1.4
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/dist/accordion.cjs +1 -1
- package/dist/accordion.js +1 -1
- package/dist/alert.cjs +1 -1
- package/dist/alert.js +1 -1
- package/dist/blocks/data-table.cjs +1 -1
- package/dist/blocks/data-table.js +1 -1
- package/dist/blocks/sidebar.cjs +1 -1
- package/dist/blocks/sidebar.d.ts +37 -306
- package/dist/blocks/sidebar.d.ts.map +1 -1
- package/dist/blocks/sidebar.js +392 -489
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.js +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.d.ts +4 -1
- package/dist/calendar.d.ts.map +1 -1
- package/dist/calendar.js +33 -33
- package/dist/centred-layout.cjs +1 -1
- package/dist/centred-layout.d.ts +5 -18
- package/dist/centred-layout.d.ts.map +1 -1
- package/dist/centred-layout.js +21 -23
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.d.ts +9 -17
- package/dist/combobox.d.ts.map +1 -1
- package/dist/combobox.js +104 -107
- package/dist/command.cjs +1 -1
- package/dist/command.js +1 -1
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.js +1 -1
- package/dist/date-picker.cjs +1 -1
- package/dist/date-picker.js +1 -1
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +1 -1
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.js +1 -1
- package/dist/field.cjs +1 -1
- package/dist/field.d.ts +3 -0
- package/dist/field.d.ts.map +1 -1
- package/dist/field.js +5 -4
- package/dist/index.cjs +1 -1
- package/dist/index.js +348 -363
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.js +1 -1
- package/dist/input-password.cjs +1 -1
- package/dist/input-password.js +1 -1
- package/dist/link.cjs +1 -1
- package/dist/link.js +1 -1
- package/dist/logo.cjs +1 -1
- package/dist/logo.d.ts +6 -4
- package/dist/logo.d.ts.map +1 -1
- package/dist/logo.js +18 -21
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.d.ts +3 -0
- package/dist/menubar.d.ts.map +1 -1
- package/dist/menubar.js +31 -30
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.d.ts +6 -54
- package/dist/navigation-menu.d.ts.map +1 -1
- package/dist/navigation-menu.js +73 -84
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.d.ts +8 -10
- package/dist/pagination.d.ts.map +1 -1
- package/dist/pagination.js +78 -86
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.d.ts +6 -23
- package/dist/radio-group.d.ts.map +1 -1
- package/dist/radio-group.js +56 -66
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.d.ts +19 -28
- package/dist/resizable.d.ts.map +1 -1
- package/dist/resizable.js +24 -40
- package/dist/select.cjs +1 -1
- package/dist/select.js +1 -1
- package/dist/separator.cjs +1 -1
- package/dist/separator.d.ts +4 -4
- package/dist/separator.d.ts.map +1 -1
- package/dist/separator.js +19 -21
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.d.ts +5 -10
- package/dist/sheet.d.ts.map +1 -1
- package/dist/sheet.js +24 -26
- package/dist/sonner.cjs +1 -1
- package/dist/sonner.d.ts +17 -20
- package/dist/sonner.d.ts.map +1 -1
- package/dist/sonner.js +42 -45
- package/dist/switch.cjs +1 -1
- package/dist/switch.d.ts +2 -12
- package/dist/switch.d.ts.map +1 -1
- package/dist/switch.js +37 -41
- package/dist/table.cjs +1 -1
- package/dist/table.d.ts +16 -12
- package/dist/table.d.ts.map +1 -1
- package/dist/table.js +56 -58
- package/dist/tabs.d.ts +27 -3
- package/dist/tabs.d.ts.map +1 -1
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.d.ts +57 -7
- package/dist/toggle-group.d.ts.map +1 -1
- package/dist/toggle-group.js +60 -67
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.d.ts +12 -26
- package/dist/toggle.d.ts.map +1 -1
- package/dist/toggle.js +16 -20
- package/package.json +2 -2
- package/src/blocks/data-table.tsx +1 -1
- package/src/blocks/sidebar.tsx +157 -532
- package/src/components/accordion.tsx +1 -1
- package/src/components/alert.tsx +1 -1
- package/src/components/breadcrumb.tsx +1 -1
- package/src/components/button.tsx +1 -1
- package/src/components/calendar.tsx +6 -4
- package/src/components/centred-layout.tsx +11 -24
- package/src/components/checkbox.tsx +1 -1
- package/src/components/combobox.tsx +18 -26
- package/src/components/command.tsx +1 -1
- package/src/components/context-menu.tsx +1 -1
- package/src/components/date-picker.tsx +1 -1
- package/src/components/dialog.tsx +1 -1
- package/src/components/dropdown-menu.tsx +1 -1
- package/src/components/field.tsx +2 -0
- package/src/components/input-otp.tsx +1 -1
- package/src/components/input-password.tsx +1 -1
- package/src/components/link.tsx +1 -1
- package/src/components/logo.tsx +9 -7
- package/src/components/menubar.tsx +3 -1
- package/src/components/navigation-menu.tsx +37 -99
- package/src/components/pagination.tsx +13 -19
- package/src/components/radio-group.tsx +17 -38
- package/src/components/resizable.tsx +5 -43
- package/src/components/select.tsx +1 -1
- package/src/components/separator.tsx +5 -5
- package/src/components/sheet.tsx +6 -11
- package/src/components/sonner.tsx +24 -27
- package/src/components/switch.figma.tsx +7 -11
- package/src/components/switch.tsx +9 -19
- package/src/components/table.tsx +23 -18
- package/src/components/tabs.tsx +27 -3
- package/src/components/toggle-group.tsx +115 -86
- package/src/components/toggle.figma.tsx +13 -19
- package/src/components/toggle.tsx +20 -34
package/dist/navigation-menu.js
CHANGED
|
@@ -1,91 +1,86 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as d, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import * as n from "react";
|
|
3
3
|
import * as r from "@radix-ui/react-navigation-menu";
|
|
4
|
-
import { ChevronDown as
|
|
4
|
+
import { ChevronDown as c } from "@brightlocal/icons";
|
|
5
5
|
import { cn as i } from "@brightlocal/ui-components/lib/utils";
|
|
6
|
-
const
|
|
6
|
+
const u = n.forwardRef(({ className: t, children: e, dataHook: a, ...s }, m) => /* @__PURE__ */ d(
|
|
7
7
|
r.Root,
|
|
8
8
|
{
|
|
9
|
-
ref:
|
|
9
|
+
ref: m,
|
|
10
10
|
className: i(
|
|
11
11
|
"relative z-10 flex max-w-max flex-1 items-center justify-center",
|
|
12
12
|
t
|
|
13
13
|
),
|
|
14
|
-
"data-hook":
|
|
14
|
+
"data-hook": a,
|
|
15
15
|
"data-slot": "navigation-menu",
|
|
16
16
|
...s,
|
|
17
17
|
children: [
|
|
18
|
-
|
|
19
|
-
/* @__PURE__ */ o(
|
|
18
|
+
e,
|
|
19
|
+
/* @__PURE__ */ o(l, {})
|
|
20
20
|
]
|
|
21
21
|
}
|
|
22
22
|
));
|
|
23
|
-
|
|
24
|
-
const
|
|
23
|
+
u.displayName = "NavigationMenu";
|
|
24
|
+
const f = n.forwardRef(({ className: t, ...e }, a) => /* @__PURE__ */ o(
|
|
25
25
|
r.List,
|
|
26
26
|
{
|
|
27
|
-
ref:
|
|
27
|
+
ref: a,
|
|
28
28
|
className: i(
|
|
29
29
|
"group flex flex-1 list-none items-center justify-center gap-1",
|
|
30
30
|
t
|
|
31
31
|
),
|
|
32
32
|
"data-slot": "navigation-menu-list",
|
|
33
|
-
...
|
|
33
|
+
...e
|
|
34
34
|
}
|
|
35
35
|
));
|
|
36
|
-
|
|
37
|
-
const
|
|
36
|
+
f.displayName = "NavigationMenuList";
|
|
37
|
+
const g = n.forwardRef((t, e) => /* @__PURE__ */ o(
|
|
38
38
|
r.Item,
|
|
39
39
|
{
|
|
40
|
-
ref:
|
|
40
|
+
ref: e,
|
|
41
41
|
"data-slot": "navigation-menu-item",
|
|
42
42
|
...t
|
|
43
43
|
}
|
|
44
44
|
));
|
|
45
|
-
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
82
|
-
)
|
|
83
|
-
);
|
|
84
|
-
N.displayName = "NavigationMenuTrigger";
|
|
85
|
-
const b = n.forwardRef(({ className: t, dataHook: a, trackingEl: e, trackingLabel: s, ...d }, l) => /* @__PURE__ */ o(
|
|
45
|
+
g.displayName = "NavigationMenuItem";
|
|
46
|
+
const v = n.forwardRef(({ className: t, children: e, ...a }, s) => /* @__PURE__ */ d(
|
|
47
|
+
r.Trigger,
|
|
48
|
+
{
|
|
49
|
+
ref: s,
|
|
50
|
+
className: i(
|
|
51
|
+
[
|
|
52
|
+
"group inline-flex h-9 w-max items-center justify-center gap-1",
|
|
53
|
+
"rounded-md px-4 py-2",
|
|
54
|
+
"text-sm font-medium",
|
|
55
|
+
"text-foreground",
|
|
56
|
+
"transition-colors",
|
|
57
|
+
"hover:bg-accent hover:text-accent-foreground",
|
|
58
|
+
"focus:bg-accent focus:text-accent-foreground",
|
|
59
|
+
"focus-visible:bg-accent focus-visible:ring-ring focus-visible:shadow-[0_0_0_4px_rgba(163,163,163,0.1)] focus-visible:ring-1 focus-visible:outline-none",
|
|
60
|
+
"disabled:pointer-events-none disabled:opacity-50",
|
|
61
|
+
"data-[state=open]:bg-accent/50"
|
|
62
|
+
],
|
|
63
|
+
t
|
|
64
|
+
),
|
|
65
|
+
"data-slot": "navigation-menu-trigger",
|
|
66
|
+
...a,
|
|
67
|
+
children: [
|
|
68
|
+
e,
|
|
69
|
+
/* @__PURE__ */ o(
|
|
70
|
+
c,
|
|
71
|
+
{
|
|
72
|
+
"aria-hidden": "true",
|
|
73
|
+
className: "relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180"
|
|
74
|
+
}
|
|
75
|
+
)
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
));
|
|
79
|
+
v.displayName = "NavigationMenuTrigger";
|
|
80
|
+
const p = n.forwardRef(({ className: t, ...e }, a) => /* @__PURE__ */ o(
|
|
86
81
|
r.Content,
|
|
87
82
|
{
|
|
88
|
-
ref:
|
|
83
|
+
ref: a,
|
|
89
84
|
className: i(
|
|
90
85
|
[
|
|
91
86
|
"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out top-0 left-0 w-full",
|
|
@@ -96,18 +91,15 @@ const b = n.forwardRef(({ className: t, dataHook: a, trackingEl: e, trackingLabe
|
|
|
96
91
|
],
|
|
97
92
|
t
|
|
98
93
|
),
|
|
99
|
-
"data-hook": a,
|
|
100
94
|
"data-slot": "navigation-menu-content",
|
|
101
|
-
|
|
102
|
-
"data-tracking-label": s,
|
|
103
|
-
...d
|
|
95
|
+
...e
|
|
104
96
|
}
|
|
105
97
|
));
|
|
106
|
-
|
|
107
|
-
const
|
|
98
|
+
p.displayName = "NavigationMenuContent";
|
|
99
|
+
const N = n.forwardRef(({ className: t, ...e }, a) => /* @__PURE__ */ o(
|
|
108
100
|
r.Link,
|
|
109
101
|
{
|
|
110
|
-
ref:
|
|
102
|
+
ref: a,
|
|
111
103
|
className: i(
|
|
112
104
|
[
|
|
113
105
|
"block rounded-md p-3 leading-none no-underline select-none",
|
|
@@ -118,18 +110,15 @@ const h = n.forwardRef(({ className: t, dataHook: a, trackingEl: e, trackingLabe
|
|
|
118
110
|
],
|
|
119
111
|
t
|
|
120
112
|
),
|
|
121
|
-
"data-hook": a,
|
|
122
113
|
"data-slot": "navigation-menu-link",
|
|
123
|
-
|
|
124
|
-
"data-tracking-label": s,
|
|
125
|
-
...d
|
|
114
|
+
...e
|
|
126
115
|
}
|
|
127
116
|
));
|
|
128
|
-
|
|
129
|
-
const
|
|
117
|
+
N.displayName = "NavigationMenuLink";
|
|
118
|
+
const l = n.forwardRef(({ className: t, ...e }, a) => /* @__PURE__ */ o("div", { className: i("absolute top-full left-0 z-50 flex justify-center"), children: /* @__PURE__ */ o(
|
|
130
119
|
r.Viewport,
|
|
131
120
|
{
|
|
132
|
-
ref:
|
|
121
|
+
ref: a,
|
|
133
122
|
className: i(
|
|
134
123
|
[
|
|
135
124
|
"origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)]",
|
|
@@ -141,14 +130,14 @@ const c = n.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ o("div", {
|
|
|
141
130
|
t
|
|
142
131
|
),
|
|
143
132
|
"data-slot": "navigation-menu-viewport",
|
|
144
|
-
...
|
|
133
|
+
...e
|
|
145
134
|
}
|
|
146
135
|
) }));
|
|
147
|
-
|
|
148
|
-
const
|
|
136
|
+
l.displayName = "NavigationMenuViewport";
|
|
137
|
+
const b = n.forwardRef(({ className: t, ...e }, a) => /* @__PURE__ */ o(
|
|
149
138
|
r.Indicator,
|
|
150
139
|
{
|
|
151
|
-
ref:
|
|
140
|
+
ref: a,
|
|
152
141
|
className: i(
|
|
153
142
|
[
|
|
154
143
|
"top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",
|
|
@@ -158,18 +147,18 @@ const w = n.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ o(
|
|
|
158
147
|
t
|
|
159
148
|
),
|
|
160
149
|
"data-slot": "navigation-menu-indicator",
|
|
161
|
-
...
|
|
150
|
+
...e,
|
|
162
151
|
children: /* @__PURE__ */ o("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" })
|
|
163
152
|
}
|
|
164
153
|
));
|
|
165
|
-
|
|
154
|
+
b.displayName = "NavigationMenuIndicator";
|
|
166
155
|
export {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
156
|
+
u as NavigationMenu,
|
|
157
|
+
p as NavigationMenuContent,
|
|
158
|
+
b as NavigationMenuIndicator,
|
|
159
|
+
g as NavigationMenuItem,
|
|
160
|
+
N as NavigationMenuLink,
|
|
161
|
+
f as NavigationMenuList,
|
|
162
|
+
v as NavigationMenuTrigger,
|
|
163
|
+
l as NavigationMenuViewport
|
|
175
164
|
};
|
package/dist/pagination.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),j=require("react"),d=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),j=require("react"),d=require("@brightlocal/icons"),N=require("class-variance-authority"),f=require("@brightlocal/ui-components/lib/utils");function k(a){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const n in a)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(a,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>a[n]})}}return e.default=a,Object.freeze(e)}const l=k(j);function w({page:a,totalPages:e,siblingCount:n=1,boundaryCount:i=1}){return l.useMemo(()=>{const r=[];r.push("previous");const u=Math.max(a-n,i+1),p=Math.min(a+n,e-i),b=u>i+2,P=p<e-i-1;for(let t=1;t<=Math.min(i,e);t++)r.push(t);if(b)r.push("ellipsis");else if(i+1<u)for(let t=i+1;t<u;t++)r.push(t);for(let t=u;t<=p;t++)t>i&&t<=e-i&&r.push(t);if(P)r.push("ellipsis");else if(p<e-i)for(let t=p+1;t<e-i+1;t++)r.push(t);for(let t=Math.max(e-i+1,i+1);t<=e;t++)t>i&&r.push(t);return r.push("next"),r},[a,e,n,i])}const g=N.cva(["inline-flex items-center justify-center","h-9 w-9","rounded-full","text-sm font-medium","transition-colors","focus-visible:outline-none focus-visible:shadow-default"],{variants:{variant:{previous:["text-foreground","hover:bg-accent","aria-disabled:opacity-50 aria-disabled:cursor-default aria-disabled:pointer-events-none"],next:["text-foreground","hover:bg-accent","aria-disabled:opacity-50 aria-disabled:cursor-default aria-disabled:pointer-events-none"],link:["text-foreground","hover:bg-accent hover:text-accent-foreground","aria-[current=page]:bg-background aria-[current=page]:border aria-[current=page]:border-input","dark:aria-[current=page]:bg-input/30","aria-[current=page]:hover:bg-accent","aria-[current=page]:focus-visible:border-ring","aria-disabled:opacity-50 aria-disabled:cursor-default aria-disabled:pointer-events-none"],ellipsis:["cursor-default","text-foreground","pointer-events-none"]}},defaultVariants:{variant:"link"}});function m({className:a,dataHook:e,trackingEl:n,trackingLabel:i,ariaLabel:o="Pagination",...r}){return s.jsx("nav",{"aria-label":o,className:f.cn("mx-auto flex w-full justify-center",a),"data-hook":e,"data-slot":"pagination","data-tracking-el":n||"pagination","data-tracking-label":i,role:"navigation",...r})}m.displayName="Pagination";function M({className:a,...e}){return s.jsx("ul",{className:f.cn("flex flex-row items-center gap-2",a),"data-slot":"pagination-content",...e})}function R(a){return s.jsx("li",{"data-slot":"pagination-item",...a})}const c=l.forwardRef(({className:a,variant:e,isActive:n,children:i,...o},r)=>s.jsx("button",{ref:r,"aria-current":n?"page":void 0,className:f.cn(g({variant:e}),a),"data-active":n,"data-slot":"pagination-button",type:"button",...o,children:i}));c.displayName="PaginationButton";const h=l.forwardRef(({className:a,disabled:e,...n},i)=>s.jsx(c,{ref:i,"aria-disabled":e,"aria-label":"Go to previous page",className:a,disabled:e,variant:"previous",...n,children:s.jsx(d.ChevronLeftIcon,{className:"size-4"})}));h.displayName="PaginationPrevious";const x=l.forwardRef(({className:a,disabled:e,...n},i)=>s.jsx(c,{ref:i,"aria-disabled":e,"aria-label":"Go to next page",className:a,disabled:e,variant:"next",...n,children:s.jsx(d.ChevronRightIcon,{className:"size-4"})}));x.displayName="PaginationNext";const v=l.forwardRef(({className:a,page:e,isActive:n,...i},o)=>s.jsx(c,{ref:o,"aria-label":`Go to page ${e}`,className:a,isActive:n,variant:"link",...i,children:e}));v.displayName="PaginationLink";function I({className:a,...e}){return s.jsxs("span",{"aria-hidden":"true",className:f.cn(g({variant:"ellipsis"}),a),"data-slot":"pagination-ellipsis",...e,children:[s.jsx(d.MoreHorizontalIcon,{className:"size-4"}),s.jsx("span",{className:"sr-only",children:"More pages"})]})}exports.Pagination=m;exports.PaginationButton=c;exports.PaginationContent=M;exports.PaginationEllipsis=I;exports.PaginationItem=R;exports.PaginationLink=v;exports.PaginationNext=x;exports.PaginationPrevious=h;exports.usePagination=w;
|
package/dist/pagination.d.ts
CHANGED
|
@@ -2,17 +2,12 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
/**
|
|
4
4
|
* Pagination item variants
|
|
5
|
+
* - `previous`: Previous navigation button
|
|
6
|
+
* - `next`: Next navigation button
|
|
7
|
+
* - `link`: Page number link
|
|
8
|
+
* - `ellipsis`: Ellipsis indicator for skipped pages
|
|
5
9
|
*/
|
|
6
|
-
export
|
|
7
|
-
/** Previous navigation button */
|
|
8
|
-
PREVIOUS = "previous",
|
|
9
|
-
/** Next navigation button */
|
|
10
|
-
NEXT = "next",
|
|
11
|
-
/** Page number link */
|
|
12
|
-
LINK = "link",
|
|
13
|
-
/** Ellipsis indicator for skipped pages */
|
|
14
|
-
ELLIPSIS = "ellipsis"
|
|
15
|
-
}
|
|
10
|
+
export type PaginationVariant = "previous" | "next" | "link" | "ellipsis";
|
|
16
11
|
/**
|
|
17
12
|
* Pagination hook parameters
|
|
18
13
|
*/
|
|
@@ -53,6 +48,9 @@ interface PaginationProps extends React.ComponentProps<"nav"> {
|
|
|
53
48
|
ariaLabel?: string;
|
|
54
49
|
}
|
|
55
50
|
declare function Pagination({ className, dataHook, trackingEl, trackingLabel, ariaLabel, ...props }: PaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
declare namespace Pagination {
|
|
52
|
+
var displayName: string;
|
|
53
|
+
}
|
|
56
54
|
declare function PaginationContent({ className, ...props }: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
|
|
57
55
|
declare function PaginationItem(props: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
|
|
58
56
|
interface PaginationButtonProps extends Omit<React.ComponentProps<"button">, "variant">, VariantProps<typeof paginationItemVariants> {
|
package/dist/pagination.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../src/components/pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../src/components/pagination.tsx"],"names":[],"mappings":"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"}
|
package/dist/pagination.js
CHANGED
|
@@ -1,40 +1,39 @@
|
|
|
1
1
|
import { jsx as s, jsxs as h } from "react/jsx-runtime";
|
|
2
2
|
import * as l from "react";
|
|
3
|
-
import { ChevronLeftIcon as v, ChevronRightIcon as x, MoreHorizontalIcon as b } from "
|
|
3
|
+
import { ChevronLeftIcon as v, ChevronRightIcon as x, MoreHorizontalIcon as b } from "@brightlocal/icons";
|
|
4
4
|
import { cva as N } from "class-variance-authority";
|
|
5
5
|
import { cn as f } from "@brightlocal/ui-components/lib/utils";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
siblingCount: r = 1,
|
|
6
|
+
function L({
|
|
7
|
+
page: t,
|
|
8
|
+
totalPages: i,
|
|
9
|
+
siblingCount: n = 1,
|
|
11
10
|
boundaryCount: a = 1
|
|
12
11
|
}) {
|
|
13
12
|
return l.useMemo(() => {
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
const c = Math.max(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
), g = c > a + 2, m = p <
|
|
20
|
-
for (let
|
|
21
|
-
|
|
13
|
+
const r = [];
|
|
14
|
+
r.push("previous");
|
|
15
|
+
const c = Math.max(t - n, a + 1), p = Math.min(
|
|
16
|
+
t + n,
|
|
17
|
+
i - a
|
|
18
|
+
), g = c > a + 2, m = p < i - a - 1;
|
|
19
|
+
for (let e = 1; e <= Math.min(a, i); e++)
|
|
20
|
+
r.push(e);
|
|
22
21
|
if (g)
|
|
23
|
-
|
|
22
|
+
r.push("ellipsis");
|
|
24
23
|
else if (a + 1 < c)
|
|
25
|
-
for (let
|
|
26
|
-
|
|
27
|
-
for (let
|
|
28
|
-
|
|
24
|
+
for (let e = a + 1; e < c; e++)
|
|
25
|
+
r.push(e);
|
|
26
|
+
for (let e = c; e <= p; e++)
|
|
27
|
+
e > a && e <= i - a && r.push(e);
|
|
29
28
|
if (m)
|
|
30
|
-
|
|
31
|
-
else if (p <
|
|
32
|
-
for (let
|
|
33
|
-
|
|
34
|
-
for (let
|
|
35
|
-
|
|
36
|
-
return
|
|
37
|
-
}, [
|
|
29
|
+
r.push("ellipsis");
|
|
30
|
+
else if (p < i - a)
|
|
31
|
+
for (let e = p + 1; e < i - a + 1; e++)
|
|
32
|
+
r.push(e);
|
|
33
|
+
for (let e = Math.max(i - a + 1, a + 1); e <= i; e++)
|
|
34
|
+
e > a && r.push(e);
|
|
35
|
+
return r.push("next"), r;
|
|
36
|
+
}, [t, i, n, a]);
|
|
38
37
|
}
|
|
39
38
|
const u = N(
|
|
40
39
|
[
|
|
@@ -77,55 +76,55 @@ const u = N(
|
|
|
77
76
|
},
|
|
78
77
|
defaultVariants: {
|
|
79
78
|
variant: "link"
|
|
80
|
-
/* LINK */
|
|
81
79
|
}
|
|
82
80
|
}
|
|
83
81
|
);
|
|
84
|
-
function
|
|
85
|
-
className:
|
|
86
|
-
dataHook:
|
|
87
|
-
trackingEl:
|
|
82
|
+
function k({
|
|
83
|
+
className: t,
|
|
84
|
+
dataHook: i,
|
|
85
|
+
trackingEl: n,
|
|
88
86
|
trackingLabel: a,
|
|
89
87
|
ariaLabel: o = "Pagination",
|
|
90
|
-
...
|
|
88
|
+
...r
|
|
91
89
|
}) {
|
|
92
90
|
return /* @__PURE__ */ s(
|
|
93
91
|
"nav",
|
|
94
92
|
{
|
|
95
93
|
"aria-label": o,
|
|
96
|
-
className: f("mx-auto flex w-full justify-center",
|
|
97
|
-
"data-hook":
|
|
94
|
+
className: f("mx-auto flex w-full justify-center", t),
|
|
95
|
+
"data-hook": i,
|
|
98
96
|
"data-slot": "pagination",
|
|
99
|
-
"data-tracking-el":
|
|
97
|
+
"data-tracking-el": n || "pagination",
|
|
100
98
|
"data-tracking-label": a,
|
|
101
99
|
role: "navigation",
|
|
102
|
-
...
|
|
100
|
+
...r
|
|
103
101
|
}
|
|
104
102
|
);
|
|
105
103
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
104
|
+
k.displayName = "Pagination";
|
|
105
|
+
function E({
|
|
106
|
+
className: t,
|
|
107
|
+
...i
|
|
109
108
|
}) {
|
|
110
109
|
return /* @__PURE__ */ s(
|
|
111
110
|
"ul",
|
|
112
111
|
{
|
|
113
|
-
className: f("flex flex-row items-center gap-2",
|
|
112
|
+
className: f("flex flex-row items-center gap-2", t),
|
|
114
113
|
"data-slot": "pagination-content",
|
|
115
|
-
...
|
|
114
|
+
...i
|
|
116
115
|
}
|
|
117
116
|
);
|
|
118
117
|
}
|
|
119
|
-
function G(
|
|
120
|
-
return /* @__PURE__ */ s("li", { "data-slot": "pagination-item", ...
|
|
118
|
+
function G(t) {
|
|
119
|
+
return /* @__PURE__ */ s("li", { "data-slot": "pagination-item", ...t });
|
|
121
120
|
}
|
|
122
|
-
const d = l.forwardRef(({ className:
|
|
121
|
+
const d = l.forwardRef(({ className: t, variant: i, isActive: n, children: a, ...o }, r) => /* @__PURE__ */ s(
|
|
123
122
|
"button",
|
|
124
123
|
{
|
|
125
|
-
ref:
|
|
126
|
-
"aria-current":
|
|
127
|
-
className: f(u({ variant:
|
|
128
|
-
"data-active":
|
|
124
|
+
ref: r,
|
|
125
|
+
"aria-current": n ? "page" : void 0,
|
|
126
|
+
className: f(u({ variant: i }), t),
|
|
127
|
+
"data-active": n,
|
|
129
128
|
"data-slot": "pagination-button",
|
|
130
129
|
type: "button",
|
|
131
130
|
...o,
|
|
@@ -133,68 +132,62 @@ const d = l.forwardRef(({ className: i, variant: e, isActive: r, children: a, ..
|
|
|
133
132
|
}
|
|
134
133
|
));
|
|
135
134
|
d.displayName = "PaginationButton";
|
|
136
|
-
const
|
|
135
|
+
const w = l.forwardRef(({ className: t, disabled: i, ...n }, a) => /* @__PURE__ */ s(
|
|
137
136
|
d,
|
|
138
137
|
{
|
|
139
138
|
ref: a,
|
|
140
|
-
"aria-disabled":
|
|
139
|
+
"aria-disabled": i,
|
|
141
140
|
"aria-label": "Go to previous page",
|
|
142
|
-
className:
|
|
143
|
-
disabled:
|
|
141
|
+
className: t,
|
|
142
|
+
disabled: i,
|
|
144
143
|
variant: "previous",
|
|
145
|
-
...
|
|
144
|
+
...n,
|
|
146
145
|
children: /* @__PURE__ */ s(v, { className: "size-4" })
|
|
147
146
|
}
|
|
148
147
|
));
|
|
149
|
-
|
|
150
|
-
const
|
|
151
|
-
({ className:
|
|
148
|
+
w.displayName = "PaginationPrevious";
|
|
149
|
+
const P = l.forwardRef(
|
|
150
|
+
({ className: t, disabled: i, ...n }, a) => /* @__PURE__ */ s(
|
|
152
151
|
d,
|
|
153
152
|
{
|
|
154
153
|
ref: a,
|
|
155
|
-
"aria-disabled":
|
|
154
|
+
"aria-disabled": i,
|
|
156
155
|
"aria-label": "Go to next page",
|
|
157
|
-
className:
|
|
158
|
-
disabled:
|
|
156
|
+
className: t,
|
|
157
|
+
disabled: i,
|
|
159
158
|
variant: "next",
|
|
160
|
-
...
|
|
159
|
+
...n,
|
|
161
160
|
children: /* @__PURE__ */ s(x, { className: "size-4" })
|
|
162
161
|
}
|
|
163
162
|
)
|
|
164
163
|
);
|
|
165
|
-
|
|
166
|
-
const
|
|
167
|
-
({ className:
|
|
164
|
+
P.displayName = "PaginationNext";
|
|
165
|
+
const I = l.forwardRef(
|
|
166
|
+
({ className: t, page: i, isActive: n, ...a }, o) => /* @__PURE__ */ s(
|
|
168
167
|
d,
|
|
169
168
|
{
|
|
170
169
|
ref: o,
|
|
171
|
-
"aria-label": `Go to page ${
|
|
172
|
-
className:
|
|
173
|
-
isActive:
|
|
170
|
+
"aria-label": `Go to page ${i}`,
|
|
171
|
+
className: t,
|
|
172
|
+
isActive: n,
|
|
174
173
|
variant: "link",
|
|
175
174
|
...a,
|
|
176
|
-
children:
|
|
175
|
+
children: i
|
|
177
176
|
}
|
|
178
177
|
)
|
|
179
178
|
);
|
|
180
|
-
|
|
179
|
+
I.displayName = "PaginationLink";
|
|
181
180
|
function B({
|
|
182
|
-
className:
|
|
183
|
-
...
|
|
181
|
+
className: t,
|
|
182
|
+
...i
|
|
184
183
|
}) {
|
|
185
184
|
return /* @__PURE__ */ h(
|
|
186
185
|
"span",
|
|
187
186
|
{
|
|
188
187
|
"aria-hidden": "true",
|
|
189
|
-
className: f(
|
|
190
|
-
u({
|
|
191
|
-
variant: "ellipsis"
|
|
192
|
-
/* ELLIPSIS */
|
|
193
|
-
}),
|
|
194
|
-
i
|
|
195
|
-
),
|
|
188
|
+
className: f(u({ variant: "ellipsis" }), t),
|
|
196
189
|
"data-slot": "pagination-ellipsis",
|
|
197
|
-
...
|
|
190
|
+
...i,
|
|
198
191
|
children: [
|
|
199
192
|
/* @__PURE__ */ s(b, { className: "size-4" }),
|
|
200
193
|
/* @__PURE__ */ s("span", { className: "sr-only", children: "More pages" })
|
|
@@ -203,14 +196,13 @@ function B({
|
|
|
203
196
|
);
|
|
204
197
|
}
|
|
205
198
|
export {
|
|
206
|
-
|
|
199
|
+
k as Pagination,
|
|
207
200
|
d as PaginationButton,
|
|
208
|
-
|
|
201
|
+
E as PaginationContent,
|
|
209
202
|
B as PaginationEllipsis,
|
|
210
203
|
G as PaginationItem,
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
S as usePagination
|
|
204
|
+
I as PaginationLink,
|
|
205
|
+
P as PaginationNext,
|
|
206
|
+
w as PaginationPrevious,
|
|
207
|
+
L as usePagination
|
|
216
208
|
};
|
package/dist/radio-group.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),k=require("react"),y=require("@radix-ui/react-radio-group"),w=require("@brightlocal/icons"),l=require("class-variance-authority"),g=require("@brightlocal/ui-components/lib/utils"),j=require("@brightlocal/ui-components/label");function f(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const o=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(r,a,o.get?o:{enumerable:!0,get:()=>t[a]})}}return r.default=t,Object.freeze(r)}const c=f(k),d=f(y),I=l.cva("grid",{variants:{variant:{default:["gap-3"],box:["gap-2"],boxIconVertical:["grid-flow-col auto-cols-fr gap-3"],boxIconHorizontal:["gap-2"]}},defaultVariants:{variant:"default"}}),V=l.cva("group relative flex cursor-pointer outline-none disabled:cursor-not-allowed disabled:opacity-50",{variants:{variant:{default:["items-start gap-3"],box:["items-start gap-3 rounded-lg border border-border bg-background p-3","transition-colors","data-[state=checked]:border-primary data-[state=checked]:bg-primary/10","dark:data-[state=checked]:bg-alpha-10","focus-visible:outline-none"],boxIconVertical:["flex-col items-center gap-3 rounded-lg border border-border bg-background p-3","transition-colors","data-[state=checked]:border-primary data-[state=checked]:bg-primary/10","dark:data-[state=checked]:bg-alpha-10","focus-visible:outline-none focus-visible:shadow-default"],boxIconHorizontal:["flex-row items-start gap-3 rounded-lg border border-border bg-background p-3","transition-colors","data-[state=checked]:border-primary data-[state=checked]:bg-primary/10","dark:data-[state=checked]:bg-alpha-10","focus-visible:outline-none focus-visible:shadow-default"]}},defaultVariants:{variant:"default"}}),N=l.cva("relative aspect-square size-4 shrink-0 rounded-full border transition-all",{variants:{variant:{default:["border-ring bg-background shadow-xs","group-focus-visible:outline-none group-focus-visible:border-ring group-focus-visible:shadow-default","group-data-[disabled]:opacity-50","dark:bg-white/5"],box:["border-ring bg-background shadow-xs","group-data-[state=checked]:border-4 group-data-[state=checked]:border-primary group-data-[state=checked]:bg-primary","group-focus-visible:outline-none group-focus-visible:shadow-default","group-data-[disabled]:opacity-50","dark:bg-white/5 dark:group-data-[state=checked]:border-primary"],boxIconVertical:["border-ring bg-background shadow-xs","group-data-[state=checked]:border-primary group-data-[state=checked]:bg-primary","group-focus-visible:outline-none group-focus-visible:shadow-default","group-data-[disabled]:opacity-50","dark:bg-white/5"],boxIconHorizontal:["border-ring bg-background shadow-xs","group-data-[state=checked]:border-primary group-data-[state=checked]:bg-primary","group-focus-visible:outline-none group-focus-visible:shadow-default","group-data-[disabled]:opacity-50","dark:bg-white/5"]}},defaultVariants:{variant:"default"}}),R=l.cva("text-foreground flex flex-col gap-1.5 leading-none",{variants:{variant:{default:[],box:["text-left"],boxIconVertical:["items-center"],boxIconHorizontal:["text-left justify-center"]}},defaultVariants:{variant:"default"}}),m=c.createContext({variant:"default"}),x=c.forwardRef(({className:t,variant:r="default",dataHook:a,trackingEl:o,trackingLabel:s,...n},u)=>{const b=r||"default";return e.jsx(m.Provider,{value:{variant:b},children:e.jsx(d.Root,{ref:u,className:g.cn(I({variant:r}),t),"data-hook":a,"data-slot":"radio-group","data-tracking-el":o,"data-tracking-label":s,...n})})});x.displayName=d.Root.displayName;const v=c.forwardRef(({className:t,variant:r,label:a,description:o,icon:s,children:n,...u},b)=>{const h=c.useContext(m),i=r??h.variant??"default",p=i==="boxIconVertical"||i==="boxIconHorizontal";return e.jsxs(d.Item,{ref:b,className:g.cn(V({variant:i}),t),"data-slot":"radio-group-item",...u,children:[p&&s&&e.jsx("div",{className:"relative flex shrink-0 items-center justify-center",children:s}),!p&&e.jsx("div",{className:N({variant:i}),children:e.jsx(d.Indicator,{className:"absolute inset-0 flex items-center justify-center","data-slot":"radio-group-indicator",children:e.jsx(w.Circle,{className:g.cn("size-2",i==="default"?"fill-primary text-primary":"fill-background text-background")})})}),(a||o||n)&&e.jsxs("div",{className:R({variant:i}),children:[a&&e.jsx(j.Label,{className:"my-[1px] cursor-pointer",children:a}),o&&e.jsx("p",{className:"text-muted-foreground text-sm",children:o}),n]})]})});v.displayName=d.Item.displayName;exports.RadioGroup=x;exports.RadioGroupItem=v;
|
package/dist/radio-group.d.ts
CHANGED
|
@@ -9,17 +9,12 @@ declare const radioGroupItemVariants: (props?: ({
|
|
|
9
9
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
10
|
/**
|
|
11
11
|
* Visual style variants for the radio group component.
|
|
12
|
+
* - `default`: Standard radio group with minimal styling
|
|
13
|
+
* - `box`: Radio items wrapped in styled card containers
|
|
14
|
+
* - `boxIconVertical`: Radio items with icons displayed vertically above the label
|
|
15
|
+
* - `boxIconHorizontal`: Radio items with icons displayed horizontally to the left
|
|
12
16
|
*/
|
|
13
|
-
|
|
14
|
-
/** Standard radio group with minimal styling */
|
|
15
|
-
DEFAULT = "default",
|
|
16
|
-
/** Radio items wrapped in styled card containers */
|
|
17
|
-
BOX = "box",
|
|
18
|
-
/** Radio items with icons displayed vertically above the label */
|
|
19
|
-
BOX_ICON_VERTICAL = "boxIconVertical",
|
|
20
|
-
/** Radio items with icons displayed horizontally to the left */
|
|
21
|
-
BOX_ICON_HORIZONTAL = "boxIconHorizontal"
|
|
22
|
-
}
|
|
17
|
+
type RadioGroupVariant = "default" | "box" | "boxIconVertical" | "boxIconHorizontal";
|
|
23
18
|
/**
|
|
24
19
|
* Props for the RadioGroup component.
|
|
25
20
|
*/
|
|
@@ -53,21 +48,9 @@ interface RadioGroupItemProps extends React.ComponentPropsWithoutRef<typeof Radi
|
|
|
53
48
|
* Icon displayed for box icon variants
|
|
54
49
|
*/
|
|
55
50
|
icon?: React.ReactNode;
|
|
56
|
-
/**
|
|
57
|
-
* Data hook for automated testing (required)
|
|
58
|
-
*/
|
|
59
|
-
dataHook: string;
|
|
60
|
-
/**
|
|
61
|
-
* Tracking element identifier for analytics
|
|
62
|
-
*/
|
|
63
|
-
trackingEl?: string;
|
|
64
|
-
/**
|
|
65
|
-
* Tracking label for analytics context
|
|
66
|
-
*/
|
|
67
|
-
trackingLabel?: string;
|
|
68
51
|
}
|
|
69
52
|
declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
70
53
|
declare const RadioGroupItem: React.ForwardRefExoticComponent<RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
71
|
-
export { RadioGroup, RadioGroupItem, RadioGroupVariant };
|
|
54
|
+
export { RadioGroup, RadioGroupItem, type RadioGroupVariant };
|
|
72
55
|
export type { RadioGroupProps, RadioGroupItemProps };
|
|
73
56
|
//# sourceMappingURL=radio-group.d.ts.map
|