@brightlocal/ui-components 0.1.4 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/alert.cjs +1 -1
- package/dist/alert.d.ts +10 -1
- package/dist/alert.d.ts.map +1 -1
- package/dist/alert.js +6 -2
- package/dist/card.cjs +1 -1
- package/dist/card.d.ts +6 -2
- package/dist/card.d.ts.map +1 -1
- package/dist/card.js +89 -73
- package/dist/centred-layout.cjs +1 -1
- package/dist/centred-layout.d.ts +49 -25
- package/dist/centred-layout.d.ts.map +1 -1
- package/dist/centred-layout.js +57 -32
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.d.ts.map +1 -1
- package/dist/checkbox.js +19 -19
- package/dist/chip.cjs +1 -0
- package/dist/chip.d.ts +61 -0
- package/dist/chip.d.ts.map +1 -0
- package/dist/chip.js +165 -0
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.d.ts +75 -59
- package/dist/combobox.d.ts.map +1 -1
- package/dist/combobox.js +244 -191
- package/dist/date-picker.cjs +1 -1
- package/dist/date-picker.d.ts +89 -52
- package/dist/date-picker.d.ts.map +1 -1
- package/dist/date-picker.js +228 -210
- package/dist/dropdown-menu.d.ts.map +1 -1
- package/dist/header.cjs +1 -0
- package/dist/header.d.ts +42 -0
- package/dist/header.d.ts.map +1 -0
- package/dist/header.js +22 -0
- 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 +428 -388
- package/dist/input-chip.cjs +1 -0
- package/dist/input-chip.d.ts +117 -0
- package/dist/input-chip.d.ts.map +1 -0
- package/dist/input-chip.js +284 -0
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.d.ts +5 -0
- package/dist/input-group.d.ts.map +1 -1
- package/dist/input-group.js +47 -39
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.d.ts +45 -32
- package/dist/input-otp.d.ts.map +1 -1
- package/dist/input-otp.js +138 -114
- package/dist/input-password.cjs +1 -1
- package/dist/input-password.d.ts +151 -19
- package/dist/input-password.d.ts.map +1 -1
- package/dist/input-password.js +197 -91
- package/dist/input.cjs +1 -1
- package/dist/input.d.ts +4 -0
- package/dist/input.d.ts.map +1 -1
- package/dist/input.js +26 -24
- package/dist/logo.cjs +1 -1
- package/dist/logo.js +13 -13
- package/dist/progress.cjs +1 -1
- package/dist/progress.d.ts +10 -0
- package/dist/progress.d.ts.map +1 -1
- package/dist/progress.js +45 -36
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.d.ts +4 -0
- package/dist/radio-group.d.ts.map +1 -1
- package/dist/radio-group.js +49 -47
- package/dist/select.cjs +1 -1
- package/dist/select.d.ts +3 -1
- package/dist/select.d.ts.map +1 -1
- package/dist/select.js +57 -56
- package/dist/slider.cjs +1 -1
- package/dist/slider.d.ts +31 -3
- package/dist/slider.d.ts.map +1 -1
- package/dist/slider.js +53 -43
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.d.ts +4 -0
- package/dist/textarea.d.ts.map +1 -1
- package/dist/textarea.js +19 -18
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.d.ts.map +1 -1
- package/dist/toggle.js +17 -17
- package/package.json +1 -1
- package/src/components/alert.tsx +10 -1
- package/src/components/card.tsx +66 -38
- package/src/components/centred-layout.tsx +115 -38
- package/src/components/checkbox.tsx +2 -3
- package/src/components/chip.tsx +249 -0
- package/src/components/combobox.tsx +490 -298
- package/src/components/date-picker.tsx +410 -266
- package/src/components/dropdown-menu.tsx +6 -1
- package/src/components/header.tsx +69 -0
- package/src/components/input-chip.tsx +548 -0
- package/src/components/input-group.tsx +17 -2
- package/src/components/input-otp.tsx +161 -78
- package/src/components/input-password.tsx +473 -128
- package/src/components/input.tsx +11 -3
- package/src/components/logo.tsx +1 -1
- package/src/components/progress.tsx +21 -2
- package/src/components/radio-group.tsx +11 -0
- package/src/components/select.tsx +5 -2
- package/src/components/slider.tsx +85 -15
- package/src/components/textarea.tsx +15 -5
- package/src/components/toggle.tsx +13 -15
- package/src/index.ts +3 -0
package/dist/checkbox.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import { CheckIcon as
|
|
5
|
-
import { cva as
|
|
2
|
+
import * as a from "react";
|
|
3
|
+
import * as t from "@radix-ui/react-checkbox";
|
|
4
|
+
import { CheckIcon as k } from "@brightlocal/icons";
|
|
5
|
+
import { cva as u } from "class-variance-authority";
|
|
6
6
|
import { cn as h } from "@brightlocal/ui-components/lib/utils";
|
|
7
|
-
const p =
|
|
7
|
+
const p = u(
|
|
8
8
|
[
|
|
9
9
|
// Layout & Size
|
|
10
10
|
"size-4 shrink-0 self-start",
|
|
@@ -21,8 +21,8 @@ const p = k(
|
|
|
21
21
|
variants: {
|
|
22
22
|
error: {
|
|
23
23
|
true: [
|
|
24
|
-
// Error state - red border with 40% opacity
|
|
25
|
-
"border-
|
|
24
|
+
// Error state - red-600 border with 40% opacity (light) / red-400 with 60% opacity (dark)
|
|
25
|
+
"border-red-600/40 dark:border-red-400/60",
|
|
26
26
|
// Error focus state - solid red border with destructive shadow
|
|
27
27
|
"focus-visible:border-destructive focus-visible:shadow-destructive"
|
|
28
28
|
]
|
|
@@ -32,44 +32,44 @@ const p = k(
|
|
|
32
32
|
error: !1
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
),
|
|
35
|
+
), x = a.forwardRef(
|
|
36
36
|
({
|
|
37
37
|
className: o,
|
|
38
38
|
disabled: i = !1,
|
|
39
39
|
error: r,
|
|
40
|
-
dataHook:
|
|
41
|
-
trackingEl:
|
|
40
|
+
dataHook: d,
|
|
41
|
+
trackingEl: s,
|
|
42
42
|
trackingLabel: c,
|
|
43
43
|
id: n,
|
|
44
44
|
...l
|
|
45
45
|
}, b) => {
|
|
46
|
-
const m =
|
|
46
|
+
const m = a.useId(), f = n || m;
|
|
47
47
|
return /* @__PURE__ */ e(
|
|
48
|
-
|
|
48
|
+
t.Root,
|
|
49
49
|
{
|
|
50
50
|
ref: b,
|
|
51
51
|
"aria-invalid": r ? "true" : void 0,
|
|
52
52
|
className: h(p({ error: r }), o),
|
|
53
|
-
"data-hook":
|
|
53
|
+
"data-hook": d,
|
|
54
54
|
"data-slot": "checkbox",
|
|
55
|
-
"data-tracking-el":
|
|
55
|
+
"data-tracking-el": s,
|
|
56
56
|
"data-tracking-label": c,
|
|
57
57
|
disabled: i,
|
|
58
|
-
id:
|
|
58
|
+
id: f,
|
|
59
59
|
...l,
|
|
60
60
|
children: /* @__PURE__ */ e(
|
|
61
|
-
|
|
61
|
+
t.Indicator,
|
|
62
62
|
{
|
|
63
63
|
className: "flex items-center justify-center text-current transition-none",
|
|
64
64
|
"data-slot": "checkbox-indicator",
|
|
65
|
-
children: /* @__PURE__ */ e(
|
|
65
|
+
children: /* @__PURE__ */ e(k, { className: "size-3.5" })
|
|
66
66
|
}
|
|
67
67
|
)
|
|
68
68
|
}
|
|
69
69
|
);
|
|
70
70
|
}
|
|
71
71
|
);
|
|
72
|
-
|
|
72
|
+
x.displayName = "Checkbox";
|
|
73
73
|
export {
|
|
74
|
-
|
|
74
|
+
x as Checkbox
|
|
75
75
|
};
|
package/dist/chip.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),O=require("react"),g=require("class-variance-authority"),h=require("@brightlocal/icons"),d=require("@brightlocal/ui-components/lib/utils"),o=require("@brightlocal/ui-components/tooltip");function R(a){const t=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(t,n,i.get?i:{enumerable:!0,get:()=>a[n]})}}return t.default=a,Object.freeze(t)}const r=R(O),x=g.cva(["inline-flex","items-center","justify-center","gap-0.5","rounded-full","font-medium","whitespace-nowrap","shrink-0","select-none","bg-secondary","text-foreground","transition-[color,background-color,box-shadow]","duration-150","ease-in-out","hover:bg-secondary/80","focus:outline-none","focus-visible:shadow-default","disabled:pointer-events-none","disabled:opacity-50","aria-disabled:pointer-events-none","aria-disabled:opacity-50"],{variants:{size:{md:["h-7","pl-2.5","pr-1","text-xs"],lg:["h-8","pl-4","pr-2","text-base"]}},defaultVariants:{size:"md"}}),m=g.cva(["inline-flex","items-center","justify-center","rounded-full","cursor-pointer","text-muted-foreground","hover:text-foreground","outline-none","focus-visible:text-foreground","disabled:pointer-events-none","disabled:opacity-50"],{variants:{size:{md:["size-6"],lg:["size-6"]}},defaultVariants:{size:"md"}}),v=r.forwardRef(({className:a,children:t,size:n="md",loading:i=!1,disabled:j=!1,onRemove:y,dataHook:u,trackingEl:l,trackingLabel:w,maxWidth:T=200,...z},C)=>{const p=j||i,f=16,s=r.useRef(null),[k,N]=r.useState(!1);r.useEffect(()=>{const c=()=>{s.current&&N(s.current.scrollWidth>s.current.clientWidth)};return c(),window.addEventListener("resize",c),()=>window.removeEventListener("resize",c)},[t]);const b=e.jsx("span",{ref:s,className:"truncate","data-slot":"chip-label",style:{maxWidth:T},children:t});return e.jsxs("div",{ref:C,"aria-disabled":p?"true":void 0,className:d.cn(x({size:n}),a),"data-hook":u,"data-slot":"chip","data-tracking-el":l,"data-tracking-label":w,...z,children:[k?e.jsx(o.TooltipProvider,{children:e.jsxs(o.Tooltip,{children:[e.jsx(o.TooltipTrigger,{asChild:!0,children:b}),e.jsx(o.TooltipContent,{dataHook:`${u}-tooltip`,sideOffset:8,children:t})]})}):b,i?e.jsx("span",{"aria-label":"Loading",className:d.cn(m({size:n})),"data-slot":"chip-loading",role:"status",children:e.jsx(h.LoaderCircle,{className:"animate-spin motion-reduce:animate-none",size:f})}):e.jsx("button",{"aria-label":`Remove ${typeof t=="string"?t:"chip"}`,className:d.cn(m({size:n})),"data-slot":"chip-delete","data-tracking-el":l?`${l}-delete`:void 0,disabled:p,tabIndex:-1,type:"button",onClick:y,children:e.jsx(h.X,{size:f})})]})});v.displayName="Chip";exports.Chip=v;exports.chipVariants=x;
|
package/dist/chip.d.ts
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Chip size options
|
|
4
|
+
*/
|
|
5
|
+
type ChipSize = "md" | "lg";
|
|
6
|
+
declare const chipVariants: (props?: ({
|
|
7
|
+
size?: "lg" | "md" | null | undefined;
|
|
8
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
|
+
/**
|
|
10
|
+
* Props for the Chip component
|
|
11
|
+
*/
|
|
12
|
+
interface ChipProps extends Omit<React.ComponentProps<"div">, "children"> {
|
|
13
|
+
/**
|
|
14
|
+
* Chip content (text label)
|
|
15
|
+
*/
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* Size variant of the chip
|
|
19
|
+
* @default "md"
|
|
20
|
+
*/
|
|
21
|
+
size?: ChipSize;
|
|
22
|
+
/**
|
|
23
|
+
* Show loading spinner instead of delete button
|
|
24
|
+
* @default false
|
|
25
|
+
*/
|
|
26
|
+
loading?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Disable the chip and its delete button
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Callback when delete button is clicked
|
|
34
|
+
*/
|
|
35
|
+
onRemove?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
36
|
+
/**
|
|
37
|
+
* Data hook for automated testing (required)
|
|
38
|
+
*/
|
|
39
|
+
dataHook: string;
|
|
40
|
+
/**
|
|
41
|
+
* Tracking element identifier for analytics
|
|
42
|
+
*/
|
|
43
|
+
trackingEl?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Tracking label for analytics context
|
|
46
|
+
*/
|
|
47
|
+
trackingLabel?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Maximum width of the chip label before truncation
|
|
50
|
+
* @default 200
|
|
51
|
+
*/
|
|
52
|
+
maxWidth?: number;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Chip component for displaying removable tags or selections.
|
|
56
|
+
* Used for filter selections, tag lists, and multi-select values.
|
|
57
|
+
*/
|
|
58
|
+
declare const Chip: React.ForwardRefExoticComponent<Omit<ChipProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
59
|
+
export { Chip, chipVariants };
|
|
60
|
+
export type { ChipProps, ChipSize };
|
|
61
|
+
//# sourceMappingURL=chip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chip.d.ts","sourceRoot":"","sources":["../../src/components/chip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B;;GAEG;AACH,KAAK,QAAQ,GAAG,IAAI,GAAG,IAAI,CAAC;AAE5B,QAAA,MAAM,YAAY;;8EAyCjB,CAAC;AAkCF;;GAEG;AACH,UAAU,SAAU,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;IACvE;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;OAGG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAChE;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,QAAA,MAAM,IAAI,+FAmGT,CAAC;AAIF,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC"}
|
package/dist/chip.js
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { jsxs as f, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import * as i from "react";
|
|
3
|
+
import { cva as b } from "class-variance-authority";
|
|
4
|
+
import { LoaderCircle as k, X as N } from "@brightlocal/icons";
|
|
5
|
+
import { cn as r } from "@brightlocal/ui-components/lib/utils";
|
|
6
|
+
import { TooltipProvider as R, Tooltip as j, TooltipTrigger as L, TooltipContent as V } from "@brightlocal/ui-components/tooltip";
|
|
7
|
+
const $ = b(
|
|
8
|
+
[
|
|
9
|
+
// Base styles
|
|
10
|
+
"inline-flex",
|
|
11
|
+
"items-center",
|
|
12
|
+
"justify-center",
|
|
13
|
+
"gap-0.5",
|
|
14
|
+
"rounded-full",
|
|
15
|
+
"font-medium",
|
|
16
|
+
"whitespace-nowrap",
|
|
17
|
+
"shrink-0",
|
|
18
|
+
"select-none",
|
|
19
|
+
// Background and text colors
|
|
20
|
+
"bg-secondary",
|
|
21
|
+
"text-foreground",
|
|
22
|
+
// Transitions
|
|
23
|
+
"transition-[color,background-color,box-shadow]",
|
|
24
|
+
"duration-150",
|
|
25
|
+
"ease-in-out",
|
|
26
|
+
// Hover state
|
|
27
|
+
"hover:bg-secondary/80",
|
|
28
|
+
// Focus state - direct focus on chip (for keyboard navigation)
|
|
29
|
+
"focus:outline-none",
|
|
30
|
+
"focus-visible:shadow-default",
|
|
31
|
+
// Disabled state
|
|
32
|
+
"disabled:pointer-events-none",
|
|
33
|
+
"disabled:opacity-50",
|
|
34
|
+
"aria-disabled:pointer-events-none",
|
|
35
|
+
"aria-disabled:opacity-50"
|
|
36
|
+
],
|
|
37
|
+
{
|
|
38
|
+
variants: {
|
|
39
|
+
size: {
|
|
40
|
+
md: ["h-7", "pl-2.5", "pr-1", "text-xs"],
|
|
41
|
+
lg: ["h-8", "pl-4", "pr-2", "text-base"]
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
defaultVariants: {
|
|
45
|
+
size: "md"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
), m = b(
|
|
49
|
+
[
|
|
50
|
+
// Base styles
|
|
51
|
+
"inline-flex",
|
|
52
|
+
"items-center",
|
|
53
|
+
"justify-center",
|
|
54
|
+
"rounded-full",
|
|
55
|
+
"cursor-pointer",
|
|
56
|
+
// Colors
|
|
57
|
+
"text-muted-foreground",
|
|
58
|
+
// Hover
|
|
59
|
+
"hover:text-foreground",
|
|
60
|
+
// Focus
|
|
61
|
+
"outline-none",
|
|
62
|
+
"focus-visible:text-foreground",
|
|
63
|
+
// Disabled
|
|
64
|
+
"disabled:pointer-events-none",
|
|
65
|
+
"disabled:opacity-50"
|
|
66
|
+
],
|
|
67
|
+
{
|
|
68
|
+
variants: {
|
|
69
|
+
size: {
|
|
70
|
+
md: ["size-6"],
|
|
71
|
+
lg: ["size-6"]
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
defaultVariants: {
|
|
75
|
+
size: "md"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
), D = i.forwardRef(
|
|
79
|
+
({
|
|
80
|
+
className: h,
|
|
81
|
+
children: t,
|
|
82
|
+
size: a = "md",
|
|
83
|
+
loading: l = !1,
|
|
84
|
+
disabled: v = !1,
|
|
85
|
+
onRemove: g,
|
|
86
|
+
dataHook: d,
|
|
87
|
+
trackingEl: n,
|
|
88
|
+
trackingLabel: x,
|
|
89
|
+
maxWidth: y = 200,
|
|
90
|
+
...w
|
|
91
|
+
}, z) => {
|
|
92
|
+
const c = v || l, u = 16, o = i.useRef(null), [T, C] = i.useState(!1);
|
|
93
|
+
i.useEffect(() => {
|
|
94
|
+
const s = () => {
|
|
95
|
+
o.current && C(
|
|
96
|
+
o.current.scrollWidth > o.current.clientWidth
|
|
97
|
+
);
|
|
98
|
+
};
|
|
99
|
+
return s(), window.addEventListener("resize", s), () => window.removeEventListener("resize", s);
|
|
100
|
+
}, [t]);
|
|
101
|
+
const p = /* @__PURE__ */ e(
|
|
102
|
+
"span",
|
|
103
|
+
{
|
|
104
|
+
ref: o,
|
|
105
|
+
className: "truncate",
|
|
106
|
+
"data-slot": "chip-label",
|
|
107
|
+
style: { maxWidth: y },
|
|
108
|
+
children: t
|
|
109
|
+
}
|
|
110
|
+
);
|
|
111
|
+
return /* @__PURE__ */ f(
|
|
112
|
+
"div",
|
|
113
|
+
{
|
|
114
|
+
ref: z,
|
|
115
|
+
"aria-disabled": c ? "true" : void 0,
|
|
116
|
+
className: r($({ size: a }), h),
|
|
117
|
+
"data-hook": d,
|
|
118
|
+
"data-slot": "chip",
|
|
119
|
+
"data-tracking-el": n,
|
|
120
|
+
"data-tracking-label": x,
|
|
121
|
+
...w,
|
|
122
|
+
children: [
|
|
123
|
+
T ? /* @__PURE__ */ e(R, { children: /* @__PURE__ */ f(j, { children: [
|
|
124
|
+
/* @__PURE__ */ e(L, { asChild: !0, children: p }),
|
|
125
|
+
/* @__PURE__ */ e(V, { dataHook: `${d}-tooltip`, sideOffset: 8, children: t })
|
|
126
|
+
] }) }) : p,
|
|
127
|
+
l ? /* @__PURE__ */ e(
|
|
128
|
+
"span",
|
|
129
|
+
{
|
|
130
|
+
"aria-label": "Loading",
|
|
131
|
+
className: r(m({ size: a })),
|
|
132
|
+
"data-slot": "chip-loading",
|
|
133
|
+
role: "status",
|
|
134
|
+
children: /* @__PURE__ */ e(
|
|
135
|
+
k,
|
|
136
|
+
{
|
|
137
|
+
className: "animate-spin motion-reduce:animate-none",
|
|
138
|
+
size: u
|
|
139
|
+
}
|
|
140
|
+
)
|
|
141
|
+
}
|
|
142
|
+
) : /* @__PURE__ */ e(
|
|
143
|
+
"button",
|
|
144
|
+
{
|
|
145
|
+
"aria-label": `Remove ${typeof t == "string" ? t : "chip"}`,
|
|
146
|
+
className: r(m({ size: a })),
|
|
147
|
+
"data-slot": "chip-delete",
|
|
148
|
+
"data-tracking-el": n ? `${n}-delete` : void 0,
|
|
149
|
+
disabled: c,
|
|
150
|
+
tabIndex: -1,
|
|
151
|
+
type: "button",
|
|
152
|
+
onClick: g,
|
|
153
|
+
children: /* @__PURE__ */ e(N, { size: u })
|
|
154
|
+
}
|
|
155
|
+
)
|
|
156
|
+
]
|
|
157
|
+
}
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
);
|
|
161
|
+
D.displayName = "Chip";
|
|
162
|
+
export {
|
|
163
|
+
D as Chip,
|
|
164
|
+
$ as chipVariants
|
|
165
|
+
};
|
package/dist/combobox.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 r=require("react/jsx-runtime"),U=require("react"),I=require("@brightlocal/icons"),V=require("class-variance-authority"),w=require("@brightlocal/ui-components/lib/utils"),S=require("@brightlocal/ui-components/popover"),l=require("@brightlocal/ui-components/command");function $(o){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const a in o)if(a!=="default"){const t=Object.getOwnPropertyDescriptor(o,a);Object.defineProperty(e,a,t.get?t:{enumerable:!0,get:()=>o[a]})}}return e.default=o,Object.freeze(e)}const n=$(U),E=n.createContext(null);function y(){const o=n.useContext(E);if(!o)throw new Error("Combobox components must be used within a <Combobox>");return o}function F({value:o,onValueChange:e,open:a,onOpenChange:t,shouldFilter:s=!0,disabled:c=!1,children:i}){const[f,d]=n.useState(""),[m,g]=n.useState(!1),[x,u]=n.useState(()=>new Map),C=o!==void 0,p=a!==void 0,v=C?o:f,h=p?a:m,j=n.useCallback(b=>{p||g(b),t?.(b)},[p,t]),N=n.useCallback(b=>{C||d(b),e?.(b)},[C,e]),R=n.useCallback((b,L)=>{u(k=>{if(k.get(b)===L)return k;const T=new Map(k);return T.set(b,L),T})},[]),D=n.useMemo(()=>({open:h,setOpen:j,value:v,onValueChange:N,shouldFilter:s,disabled:c,itemLabels:x,registerItem:R}),[h,j,v,N,s,c,x,R]);return r.jsx(E.Provider,{value:D,children:r.jsx(S.Popover,{open:h,onOpenChange:j,children:i})})}const A=V.cva(["relative flex w-full items-center justify-between gap-2","px-4 py-2 h-9","border border-input rounded-md outline-none","bg-neutral-50 shadow-xs","dark:bg-white/5 dark:border-white/15","text-sm font-normal font-sans text-foreground","data-[placeholder=true]:text-muted-foreground","hover:bg-accent","focus-visible:outline-none focus-visible:border-ring dark:focus-visible:border-neutral-500 focus-visible:bg-background","focus-visible:shadow-default","data-[state=open]:border-ring","disabled:cursor-not-allowed disabled:opacity-50","disabled:hover:bg-neutral-50","transition-[background-color,border-color,box-shadow] duration-200 ease-out","[&_svg]:pointer-events-none [&_svg]:shrink-0","[&_svg:not([class*='size-'])]:size-4"],{variants:{variant:{default:[]}},defaultVariants:{variant:"default"}}),O=n.forwardRef(({className:o,variant:e,dataHook:a,trackingEl:t,trackingLabel:s,children:c,...i},f)=>{const{open:d,disabled:m,value:g}=y(),x=n.useId(),u=!g;return r.jsx(S.PopoverTrigger,{asChild:!0,children:r.jsxs("button",{ref:f,"aria-controls":d?x:void 0,"aria-expanded":d,"aria-haspopup":"listbox",className:w.cn(A({variant:e}),o),"data-hook":a,"data-placeholder":u,"data-slot":"combobox-trigger","data-state":d?"open":"closed","data-tracking-el":t||"combobox-trigger","data-tracking-label":s,disabled:m||i.disabled,role:"combobox",type:"button",...i,children:[c,r.jsx(I.ChevronsUpDownIcon,{"aria-hidden":"true",className:"text-muted-foreground ml-auto size-4 shrink-0"})]})})});O.displayName="ComboboxTrigger";function H({placeholder:o,className:e}){const{value:a,itemLabels:t}=y(),s=a?t.get(a)||a:o;return r.jsx("span",{className:w.cn("text-foreground overflow-hidden text-sm leading-normal font-medium text-ellipsis whitespace-nowrap",e),"data-slot":"combobox-value",children:s})}function B({dataHook:o,className:e,children:a,align:t="start"}){const{shouldFilter:s}=y();return r.jsx(S.PopoverContent,{align:t,className:w.cn("w-[var(--radix-popover-trigger-width)] p-0",e),"data-slot":"combobox-popover",children:r.jsx(l.Command,{className:"border-0 shadow-none","data-slot":"combobox-command",dataHook:o||"combobox-command",shouldFilter:s,children:a})})}const P=n.forwardRef((o,e)=>r.jsx(l.CommandInput,{ref:e,"data-slot":"combobox-input",...o}));P.displayName="ComboboxInput";const q=n.forwardRef((o,e)=>r.jsx(l.CommandList,{ref:e,"data-slot":"combobox-list",...o}));q.displayName="ComboboxList";const z=n.forwardRef((o,e)=>r.jsx(l.CommandEmpty,{ref:e,"data-slot":"combobox-empty",...o}));z.displayName="ComboboxEmpty";const M=n.forwardRef((o,e)=>r.jsx(l.CommandGroup,{ref:e,"data-slot":"combobox-group",...o}));M.displayName="ComboboxGroup";function J(o,e,a){if(!e||!e.trim())return o;const t=new RegExp(`(${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")})`,"gi"),s=o.split(t);return r.jsx("span",{children:s.map((c,i)=>i%2===1?r.jsx("span",{className:a,children:c},i):r.jsx(n.Fragment,{children:c},i))})}const _=n.forwardRef(({value:o,label:e,dataHook:a,children:t,className:s,highlight:c,highlightClassName:i,...f},d)=>{const{value:m,onValueChange:g,setOpen:x,registerItem:u}=y(),C=m===o,p=n.useMemo(()=>e||(typeof t=="string"?t:typeof t=="number"?String(t):o),[e,t,o]),v=n.useRef(u);n.useEffect(()=>{v.current=u},[u]),n.useEffect(()=>{v.current(o,p)},[o,p]);const h=()=>{g(o===m?"":o),x(!1)},j=()=>c&&typeof t=="string"?J(t,c,i||"text-sm leading-normal font-semibold"):t;return r.jsxs(l.CommandItem,{ref:d,className:w.cn("justify-between",s),"data-slot":"combobox-item",dataHook:a,value:o,onSelect:h,...f,children:[j(),C&&r.jsx(I.CheckIcon,{"aria-hidden":"true",className:"text-muted-foreground size-4 shrink-0"})]})});_.displayName="ComboboxItem";const G=n.forwardRef((o,e)=>r.jsx(l.CommandSeparator,{ref:e,"data-slot":"combobox-separator",...o}));G.displayName="ComboboxSeparator";function K({className:o,children:e}){return r.jsx("div",{className:w.cn("text-muted-foreground flex items-center justify-center gap-2 py-6 text-sm",o),"data-slot":"combobox-loading",children:e||r.jsxs(r.Fragment,{children:[r.jsx(I.LoaderIcon,{"aria-hidden":"true",className:"size-4 animate-spin"}),"Loading..."]})})}exports.Combobox=F;exports.ComboboxContent=B;exports.ComboboxEmpty=z;exports.ComboboxGroup=M;exports.ComboboxInput=P;exports.ComboboxItem=_;exports.ComboboxList=q;exports.ComboboxLoading=K;exports.ComboboxSeparator=G;exports.ComboboxTrigger=O;exports.ComboboxValue=H;
|
package/dist/combobox.d.ts
CHANGED
|
@@ -1,75 +1,91 @@
|
|
|
1
|
-
import { LucideIcon } from '@brightlocal/icons';
|
|
2
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator } from '../command';
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
/** Unique value for the item */
|
|
20
|
-
value: string;
|
|
21
|
-
/** Display label for the item */
|
|
22
|
-
label: string;
|
|
23
|
-
/** Optional group/category for the item */
|
|
24
|
-
group?: string;
|
|
25
|
-
/** Icon component for icon menu item type */
|
|
26
|
-
icon?: LucideIcon;
|
|
27
|
-
/** Avatar image source URL for avatar menu item type */
|
|
28
|
-
avatarSrc?: string;
|
|
29
|
-
/** Avatar fallback text/initials for avatar menu item type */
|
|
30
|
-
avatarFallback?: string;
|
|
4
|
+
export interface ComboboxProps {
|
|
5
|
+
/** Controlled selected value */
|
|
6
|
+
value?: string;
|
|
7
|
+
/** Callback when value changes */
|
|
8
|
+
onValueChange?: (value: string) => void;
|
|
9
|
+
/** Controlled open state */
|
|
10
|
+
open?: boolean;
|
|
11
|
+
/** Callback when open state changes */
|
|
12
|
+
onOpenChange?: (open: boolean) => void;
|
|
13
|
+
/** Whether to use cmdk's built-in filtering. Set to false for async search. */
|
|
14
|
+
shouldFilter?: boolean;
|
|
15
|
+
/** Disabled state */
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/** Children */
|
|
18
|
+
children: React.ReactNode;
|
|
31
19
|
}
|
|
20
|
+
declare function Combobox({ value: controlledValue, onValueChange: controlledOnValueChange, open: controlledOpen, onOpenChange: controlledOnOpenChange, shouldFilter, disabled, children, }: ComboboxProps): import("react/jsx-runtime").JSX.Element;
|
|
32
21
|
declare const comboboxTriggerVariants: (props?: ({
|
|
33
|
-
variant?: "default" |
|
|
22
|
+
variant?: "default" | null | undefined;
|
|
34
23
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
35
|
-
interface
|
|
36
|
-
/** Optional id for the combobox trigger, used with FieldLabel htmlFor */
|
|
37
|
-
id?: string;
|
|
24
|
+
export interface ComboboxTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof comboboxTriggerVariants> {
|
|
38
25
|
/** Data hook for automated testing (REQUIRED) */
|
|
39
26
|
dataHook: string;
|
|
27
|
+
/** Accessible label for the combobox trigger. Use either aria-label or aria-labelledby for accessibility. */
|
|
28
|
+
"aria-label"?: string;
|
|
29
|
+
/** ID reference to a label element that provides the accessible name */
|
|
30
|
+
"aria-labelledby"?: string;
|
|
40
31
|
/** Tracking element identifier for analytics */
|
|
41
32
|
trackingEl?: string;
|
|
42
33
|
/** Tracking label for analytics context */
|
|
43
34
|
trackingLabel?: string;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
value?: string;
|
|
48
|
-
/** Callback when selection changes */
|
|
49
|
-
onValueChange?: (value: string) => void;
|
|
35
|
+
}
|
|
36
|
+
declare const ComboboxTrigger: React.ForwardRefExoticComponent<ComboboxTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
37
|
+
export interface ComboboxValueProps {
|
|
50
38
|
/** Placeholder text when no value is selected */
|
|
51
39
|
placeholder?: string;
|
|
52
|
-
/**
|
|
53
|
-
groupLabel?: string;
|
|
54
|
-
/** Disabled state */
|
|
55
|
-
disabled?: boolean;
|
|
56
|
-
/** Empty state message when no results found */
|
|
57
|
-
emptyMessage?: string;
|
|
58
|
-
/** Search placeholder text */
|
|
59
|
-
searchPlaceholder?: string;
|
|
60
|
-
/** Whether to show the avatar */
|
|
61
|
-
showAvatar?: boolean;
|
|
62
|
-
/** Avatar image source URL */
|
|
63
|
-
avatarSrc?: string;
|
|
64
|
-
/** Avatar fallback text/initials */
|
|
65
|
-
avatarFallback?: string;
|
|
66
|
-
/** Custom className for the trigger button */
|
|
40
|
+
/** Custom className */
|
|
67
41
|
className?: string;
|
|
68
|
-
/** Menu item type for dropdown items */
|
|
69
|
-
menuItemType?: ComboboxMenuItemType;
|
|
70
|
-
/** Accessible label for the combobox (used when no visible label is provided) */
|
|
71
|
-
"aria-label"?: string;
|
|
72
42
|
}
|
|
73
|
-
declare
|
|
74
|
-
export
|
|
43
|
+
declare function ComboboxValue({ placeholder, className }: ComboboxValueProps): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export interface ComboboxContentProps {
|
|
45
|
+
/** Data hook for automated testing */
|
|
46
|
+
dataHook?: string;
|
|
47
|
+
/** Custom className */
|
|
48
|
+
className?: string;
|
|
49
|
+
/** Children */
|
|
50
|
+
children: React.ReactNode;
|
|
51
|
+
/** Alignment of the popover relative to trigger */
|
|
52
|
+
align?: "start" | "center" | "end";
|
|
53
|
+
}
|
|
54
|
+
declare function ComboboxContent({ dataHook, className, children, align, }: ComboboxContentProps): import("react/jsx-runtime").JSX.Element;
|
|
55
|
+
export interface ComboboxInputProps extends React.ComponentProps<typeof CommandInput> {
|
|
56
|
+
/** Current input value. Use for controlled/async search. */
|
|
57
|
+
value?: string;
|
|
58
|
+
/** Called when input value changes. Use to trigger async search requests. */
|
|
59
|
+
onValueChange?: (value: string) => void;
|
|
60
|
+
}
|
|
61
|
+
declare const ComboboxInput: React.ForwardRefExoticComponent<ComboboxInputProps & React.RefAttributes<any>>;
|
|
62
|
+
export type ComboboxListProps = React.ComponentProps<typeof CommandList>;
|
|
63
|
+
declare const ComboboxList: React.ForwardRefExoticComponent<any>;
|
|
64
|
+
export type ComboboxEmptyProps = React.ComponentProps<typeof CommandEmpty>;
|
|
65
|
+
declare const ComboboxEmpty: React.ForwardRefExoticComponent<any>;
|
|
66
|
+
export type ComboboxGroupProps = React.ComponentProps<typeof CommandGroup>;
|
|
67
|
+
declare const ComboboxGroup: React.ForwardRefExoticComponent<any>;
|
|
68
|
+
export interface ComboboxItemProps extends Omit<React.ComponentProps<typeof CommandItem>, "onSelect"> {
|
|
69
|
+
/** The value of the item (required) */
|
|
70
|
+
value: string;
|
|
71
|
+
/** Display label - if not provided, uses children text content */
|
|
72
|
+
label?: string;
|
|
73
|
+
/** Data hook for automated testing */
|
|
74
|
+
dataHook?: string;
|
|
75
|
+
/** Text to highlight in the item (typically the search query) */
|
|
76
|
+
highlight?: string;
|
|
77
|
+
/** Class name for highlighted text */
|
|
78
|
+
highlightClassName?: string;
|
|
79
|
+
}
|
|
80
|
+
declare const ComboboxItem: React.ForwardRefExoticComponent<Omit<ComboboxItemProps, "ref"> & React.RefAttributes<any>>;
|
|
81
|
+
export type ComboboxSeparatorProps = React.ComponentProps<typeof CommandSeparator>;
|
|
82
|
+
declare const ComboboxSeparator: React.ForwardRefExoticComponent<any>;
|
|
83
|
+
export interface ComboboxLoadingProps {
|
|
84
|
+
/** Custom className */
|
|
85
|
+
className?: string;
|
|
86
|
+
/** Children - custom loading content */
|
|
87
|
+
children?: React.ReactNode;
|
|
88
|
+
}
|
|
89
|
+
declare function ComboboxLoading({ className, children }: ComboboxLoadingProps): import("react/jsx-runtime").JSX.Element;
|
|
90
|
+
export { Combobox, ComboboxTrigger, ComboboxValue, ComboboxContent, ComboboxInput, ComboboxList, ComboboxEmpty, ComboboxGroup, ComboboxItem, ComboboxSeparator, ComboboxLoading, };
|
|
75
91
|
//# sourceMappingURL=combobox.d.ts.map
|
package/dist/combobox.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["../../src/components/combobox.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["../../src/components/combobox.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAQlE,OAAO,EAEL,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,WAAW,EACX,gBAAgB,EACjB,MAAM,oCAAoC,CAAC;AAgC5C,MAAM,WAAW,aAAa;IAC5B,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,4BAA4B;IAC5B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,uCAAuC;IACvC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,+EAA+E;IAC/E,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe;IACf,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,iBAAS,QAAQ,CAAC,EAChB,KAAK,EAAE,eAAe,EACtB,aAAa,EAAE,uBAAuB,EACtC,IAAI,EAAE,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