@brightlocal/ui-components 0.4.0 → 0.4.1

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.
Files changed (87) hide show
  1. package/dist/accordion.cjs +1 -1
  2. package/dist/accordion.js +1 -1
  3. package/dist/blocks/data-table.cjs +1 -1
  4. package/dist/blocks/data-table.js +30 -30
  5. package/dist/blocks/sidebar.cjs +1 -1
  6. package/dist/blocks/sidebar.d.ts.map +1 -1
  7. package/dist/blocks/sidebar.js +4 -3
  8. package/dist/breadcrumb.cjs +1 -1
  9. package/dist/breadcrumb.js +10 -10
  10. package/dist/calendar.cjs +1 -1
  11. package/dist/calendar.d.ts.map +1 -1
  12. package/dist/calendar.js +6 -3
  13. package/dist/card.cjs +1 -1
  14. package/dist/card.d.ts +5 -0
  15. package/dist/card.d.ts.map +1 -1
  16. package/dist/card.js +49 -36
  17. package/dist/centred-layout.cjs +1 -1
  18. package/dist/centred-layout.d.ts +3 -8
  19. package/dist/centred-layout.d.ts.map +1 -1
  20. package/dist/centred-layout.js +33 -48
  21. package/dist/checkbox.cjs +1 -1
  22. package/dist/checkbox.js +7 -7
  23. package/dist/combobox.cjs +1 -1
  24. package/dist/combobox.d.ts +6 -1
  25. package/dist/combobox.d.ts.map +1 -1
  26. package/dist/combobox.js +116 -103
  27. package/dist/command.cjs +1 -1
  28. package/dist/command.js +3 -3
  29. package/dist/context-menu.cjs +1 -1
  30. package/dist/context-menu.js +3 -3
  31. package/dist/dropdown-menu.cjs +1 -1
  32. package/dist/dropdown-menu.js +10 -10
  33. package/dist/field.cjs +1 -1
  34. package/dist/field.d.ts.map +1 -1
  35. package/dist/field.js +12 -19
  36. package/dist/header.d.ts.map +1 -1
  37. package/dist/header.js +4 -1
  38. package/dist/input-password.cjs +1 -1
  39. package/dist/input-password.js +63 -63
  40. package/dist/link.cjs +1 -1
  41. package/dist/link.js +2 -2
  42. package/dist/logo.cjs +1 -1
  43. package/dist/logo.d.ts.map +1 -1
  44. package/dist/logo.js +17 -16
  45. package/dist/menubar.cjs +1 -1
  46. package/dist/menubar.js +3 -3
  47. package/dist/navigation-menu.cjs +1 -1
  48. package/dist/navigation-menu.d.ts.map +1 -1
  49. package/dist/navigation-menu.js +2 -1
  50. package/dist/pagination.cjs +1 -1
  51. package/dist/pagination.js +16 -16
  52. package/dist/rating.cjs +1 -1
  53. package/dist/rating.js +8 -8
  54. package/dist/resizable.cjs +1 -1
  55. package/dist/resizable.d.ts +1 -1
  56. package/dist/resizable.js +1 -1
  57. package/dist/select.cjs +1 -1
  58. package/dist/select.js +20 -20
  59. package/dist/sheet.d.ts +1 -1
  60. package/dist/sonner.cjs +1 -1
  61. package/dist/sonner.d.ts.map +1 -1
  62. package/dist/sonner.js +9 -8
  63. package/package.json +1 -1
  64. package/src/blocks/data-table.tsx +5 -5
  65. package/src/blocks/sidebar.tsx +3 -2
  66. package/src/components/accordion.tsx +1 -1
  67. package/src/components/breadcrumb.tsx +1 -1
  68. package/src/components/calendar.tsx +6 -3
  69. package/src/components/card.tsx +24 -1
  70. package/src/components/centred-layout.tsx +6 -29
  71. package/src/components/checkbox.tsx +1 -1
  72. package/src/components/combobox.tsx +21 -5
  73. package/src/components/command.tsx +3 -3
  74. package/src/components/context-menu.tsx +3 -3
  75. package/src/components/dropdown-menu.tsx +4 -4
  76. package/src/components/field.tsx +9 -14
  77. package/src/components/header.tsx +4 -1
  78. package/src/components/input-password.tsx +4 -4
  79. package/src/components/link.tsx +1 -1
  80. package/src/components/logo.tsx +10 -9
  81. package/src/components/menubar.tsx +3 -3
  82. package/src/components/navigation-menu.tsx +2 -1
  83. package/src/components/pagination.tsx +3 -3
  84. package/src/components/rating.tsx +2 -2
  85. package/src/components/resizable.tsx +1 -1
  86. package/src/components/select.tsx +4 -4
  87. package/src/components/sonner.tsx +6 -5
package/dist/card.js CHANGED
@@ -1,9 +1,17 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import * as e from "react";
3
- import { cva as m } from "class-variance-authority";
3
+ import { cva as x } from "class-variance-authority";
4
4
  import { cn as s } from "@brightlocal/ui-components/lib/utils";
5
- const n = e.createContext({ flush: !1 }), p = m(
6
- ["flex", "flex-col", "gap-8", "rounded-[14px]", "py-8", "transition-colors"],
5
+ const l = e.createContext({ flush: !1 }), g = x(
6
+ [
7
+ "flex",
8
+ "flex-col",
9
+ "gap-8",
10
+ "rounded-xl",
11
+ "py-8",
12
+ "transition-colors",
13
+ "w-full"
14
+ ],
7
15
  {
8
16
  variants: {
9
17
  variant: {
@@ -27,36 +35,41 @@ const n = e.createContext({ flush: !1 }), p = m(
27
35
  variant: "default"
28
36
  }
29
37
  }
30
- ), C = e.forwardRef(
38
+ ), N = e.forwardRef(
31
39
  ({
32
40
  className: r,
33
41
  variant: a = "default",
34
42
  dataHook: t,
35
43
  trackingEl: d,
36
44
  trackingLabel: c,
37
- children: l,
38
- ...i
39
- }, f) => {
40
- const u = a === "transparent-flush";
41
- return /* @__PURE__ */ o(n.Provider, { value: { flush: u }, children: /* @__PURE__ */ o(
45
+ maxWidth: n = "400px",
46
+ children: i,
47
+ style: f,
48
+ ...u
49
+ }, p) => {
50
+ const m = a === "transparent-flush", C = n !== void 0 ? {
51
+ maxWidth: typeof n == "number" ? `${n}px` : n
52
+ } : void 0;
53
+ return /* @__PURE__ */ o(l.Provider, { value: { flush: m }, children: /* @__PURE__ */ o(
42
54
  "div",
43
55
  {
44
- ref: f,
45
- className: s(p({ variant: a }), r),
56
+ ref: p,
57
+ className: s(g({ variant: a }), r),
46
58
  "data-hook": t,
47
59
  "data-slot": "card",
48
60
  "data-tracking-el": d || `card-${a}`,
49
61
  "data-tracking-label": c,
50
- ...i,
51
- children: l
62
+ style: { ...C, ...f },
63
+ ...u,
64
+ children: i
52
65
  }
53
66
  ) });
54
67
  }
55
68
  );
56
- C.displayName = "Card";
57
- const x = e.forwardRef(
69
+ N.displayName = "Card";
70
+ const b = e.forwardRef(
58
71
  ({ className: r, ...a }, t) => {
59
- const { flush: d } = e.useContext(n);
72
+ const { flush: d } = e.useContext(l);
60
73
  return /* @__PURE__ */ o(
61
74
  "div",
62
75
  {
@@ -72,8 +85,8 @@ const x = e.forwardRef(
72
85
  );
73
86
  }
74
87
  );
75
- x.displayName = "CardHeader";
76
- const g = e.forwardRef(
88
+ b.displayName = "CardHeader";
89
+ const v = e.forwardRef(
77
90
  ({ className: r, ...a }, t) => /* @__PURE__ */ o(
78
91
  "div",
79
92
  {
@@ -84,8 +97,8 @@ const g = e.forwardRef(
84
97
  }
85
98
  )
86
99
  );
87
- g.displayName = "CardTitle";
88
- const N = e.forwardRef(
100
+ v.displayName = "CardTitle";
101
+ const h = e.forwardRef(
89
102
  ({ className: r, ...a }, t) => /* @__PURE__ */ o(
90
103
  "div",
91
104
  {
@@ -99,8 +112,8 @@ const N = e.forwardRef(
99
112
  }
100
113
  )
101
114
  );
102
- N.displayName = "CardDescription";
103
- const h = e.forwardRef(
115
+ h.displayName = "CardDescription";
116
+ const w = e.forwardRef(
104
117
  ({ className: r, ...a }, t) => /* @__PURE__ */ o(
105
118
  "div",
106
119
  {
@@ -114,10 +127,10 @@ const h = e.forwardRef(
114
127
  }
115
128
  )
116
129
  );
117
- h.displayName = "CardAction";
118
- const b = e.forwardRef(
130
+ w.displayName = "CardAction";
131
+ const y = e.forwardRef(
119
132
  ({ className: r, ...a }, t) => {
120
- const { flush: d } = e.useContext(n);
133
+ const { flush: d } = e.useContext(l);
121
134
  return /* @__PURE__ */ o(
122
135
  "div",
123
136
  {
@@ -129,10 +142,10 @@ const b = e.forwardRef(
129
142
  );
130
143
  }
131
144
  );
132
- b.displayName = "CardContent";
133
- const v = e.forwardRef(
145
+ y.displayName = "CardContent";
146
+ const R = e.forwardRef(
134
147
  ({ className: r, ...a }, t) => {
135
- const { flush: d } = e.useContext(n);
148
+ const { flush: d } = e.useContext(l);
136
149
  return /* @__PURE__ */ o(
137
150
  "div",
138
151
  {
@@ -144,13 +157,13 @@ const v = e.forwardRef(
144
157
  );
145
158
  }
146
159
  );
147
- v.displayName = "CardFooter";
160
+ R.displayName = "CardFooter";
148
161
  export {
149
- C as Card,
150
- h as CardAction,
151
- b as CardContent,
152
- N as CardDescription,
153
- v as CardFooter,
154
- x as CardHeader,
155
- g as CardTitle
162
+ N as Card,
163
+ w as CardAction,
164
+ y as CardContent,
165
+ h as CardDescription,
166
+ R as CardFooter,
167
+ b as CardHeader,
168
+ v as CardTitle
156
169
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),p=require("react"),o=require("@brightlocal/ui-components/lib/utils");function g(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const c=g(p),s=c.forwardRef(({className:t,maxWidth:e,children:n,dataHook:r,trackingEl:d,trackingLabel:i,...f},y)=>{const m=e!==void 0?{maxWidth:typeof e=="number"?`${e}px`:e}:void 0;return a.jsx("div",{ref:y,className:o.cn("bg-background flex min-h-screen flex-col items-center justify-center gap-4 p-section",!e&&"max-w-7xl",t),"data-hook":r,"data-slot":"centred-layout","data-tracking-el":d,"data-tracking-label":i,style:m,...f,children:n})});s.displayName="CentredLayout";const l=c.forwardRef(({className:t,children:e,...n},r)=>a.jsx("div",{ref:r,className:o.cn("flex w-full items-center justify-center lg:justify-start",t),"data-slot":"centred-layout-header",...n,children:e}));l.displayName="CentredLayoutHeader";const u=c.forwardRef(({className:t,children:e,...n},r)=>a.jsx("div",{ref:r,className:o.cn("flex flex-1 flex-col items-center justify-center",t),"data-slot":"centred-layout-content",...n,children:e}));u.displayName="CentredLayoutContent";exports.CentredLayout=s;exports.CentredLayoutContent=u;exports.CentredLayoutHeader=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),y=require("react"),o=require("@brightlocal/ui-components/lib/utils");function m(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const c=m(y),l=c.forwardRef(({className:e,children:a,dataHook:t,trackingEl:r,trackingLabel:d,...i},f)=>n.jsx("div",{ref:f,className:o.cn("bg-background flex min-h-screen w-full flex-col items-center justify-center gap-4 p-section",e),"data-hook":t,"data-slot":"centred-layout","data-tracking-el":r,"data-tracking-label":d,...i,children:a}));l.displayName="CentredLayout";const s=c.forwardRef(({className:e,children:a,...t},r)=>n.jsx("div",{ref:r,className:o.cn("flex w-full items-center justify-center lg:justify-start",e),"data-slot":"centred-layout-header",...t,children:a}));s.displayName="CentredLayoutHeader";const u=c.forwardRef(({className:e,children:a,...t},r)=>n.jsx("div",{ref:r,className:o.cn("flex w-full flex-1 flex-col items-center justify-center",e),"data-slot":"centred-layout-content",...t,children:a}));u.displayName="CentredLayoutContent";exports.CentredLayout=l;exports.CentredLayoutContent=u;exports.CentredLayoutHeader=s;
@@ -1,13 +1,12 @@
1
1
  import * as React from "react";
2
2
  /**
3
- * CentredLayout provides a responsive centered container with max-width constraint.
3
+ * CentredLayout provides a full-page centered container.
4
4
  *
5
5
  * Spacing tokens used:
6
6
  * - Padding: section-padding-x/y tokens (responsive: 16px mobile, 24px desktop)
7
7
  * - Header to content gap: gap-4 (spacing.4 = 16px)
8
- * - Max width: max-w-7xl (1280px) by default
9
8
  *
10
- * The component centers content horizontally and vertically.
9
+ * The component takes full page width/height and centers content horizontally and vertically.
11
10
  *
12
11
  * @example
13
12
  * // Basic usage
@@ -41,13 +40,9 @@ interface CentredLayoutProps extends React.ComponentProps<"div"> {
41
40
  * Tracking label for analytics context
42
41
  */
43
42
  trackingLabel?: string;
44
- /**
45
- * Custom max-width value (overrides default 1280px)
46
- */
47
- maxWidth?: string | number;
48
43
  }
49
44
  /**
50
- * CentredLayout component for centering content with responsive max-width constraints.
45
+ * CentredLayout component for centering content with full page width/height.
51
46
  */
52
47
  declare const CentredLayout: React.ForwardRefExoticComponent<Omit<CentredLayoutProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
53
48
  interface CentredLayoutHeaderProps extends React.ComponentProps<"div"> {
@@ -1 +1 @@
1
- {"version":3,"file":"centred-layout.d.ts","sourceRoot":"","sources":["../../src/components/centred-layout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,UAAU,kBAAmB,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;IAC9D;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,QAAA,MAAM,aAAa,wGAyClB,CAAC;AAQF,UAAU,wBAAyB,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;IACpE;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;GAGG;AACH,QAAA,MAAM,mBAAmB,8GAiBvB,CAAC;AAQH,UAAU,yBAA0B,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;IACrE;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;GAEG;AACH,QAAA,MAAM,oBAAoB,+GAiBxB,CAAC;AAQH,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,CAAC;AAEpE,YAAY,EACV,kBAAkB,EAClB,wBAAwB,EACxB,yBAAyB,GAC1B,CAAC"}
1
+ {"version":3,"file":"centred-layout.d.ts","sourceRoot":"","sources":["../../src/components/centred-layout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,UAAU,kBAAmB,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;IAC9D;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,QAAA,MAAM,aAAa,wGAuBlB,CAAC;AAQF,UAAU,wBAAyB,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;IACpE;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;GAGG;AACH,QAAA,MAAM,mBAAmB,8GAiBvB,CAAC;AAQH,UAAU,yBAA0B,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;IACrE;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;GAEG;AACH,QAAA,MAAM,oBAAoB,+GAiBxB,CAAC;AAQH,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,CAAC;AAEpE,YAAY,EACV,kBAAkB,EAClB,wBAAwB,EACxB,yBAAyB,GAC1B,CAAC"}
@@ -1,71 +1,56 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import * as n from "react";
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import * as o from "react";
3
3
  import { cn as l } from "@brightlocal/ui-components/lib/utils";
4
- const u = n.forwardRef(
5
- ({
6
- className: t,
7
- maxWidth: e,
8
- children: a,
9
- dataHook: r,
10
- trackingEl: s,
11
- trackingLabel: d,
12
- ...c
13
- }, f) => {
14
- const i = e !== void 0 ? {
15
- maxWidth: typeof e == "number" ? `${e}px` : e
16
- } : void 0;
17
- return /* @__PURE__ */ o(
18
- "div",
19
- {
20
- ref: f,
21
- className: l(
22
- // Base styles with section-padding tokens (responsive: 16px mobile, 24px desktop) and gap-4 for header/content spacing
23
- "bg-background flex min-h-screen flex-col items-center justify-center gap-4 p-section",
24
- !e && "max-w-7xl",
25
- t
26
- ),
27
- "data-hook": r,
28
- "data-slot": "centred-layout",
29
- "data-tracking-el": s,
30
- "data-tracking-label": d,
31
- style: i,
32
- ...c,
33
- children: a
34
- }
35
- );
36
- }
4
+ const f = o.forwardRef(
5
+ ({ className: e, children: t, dataHook: a, trackingEl: r, trackingLabel: d, ...s }, c) => /* @__PURE__ */ n(
6
+ "div",
7
+ {
8
+ ref: c,
9
+ className: l(
10
+ // Base styles with section-padding tokens (responsive: 16px mobile, 24px desktop) and gap-4 for header/content spacing
11
+ "bg-background flex min-h-screen w-full flex-col items-center justify-center gap-4 p-section",
12
+ e
13
+ ),
14
+ "data-hook": a,
15
+ "data-slot": "centred-layout",
16
+ "data-tracking-el": r,
17
+ "data-tracking-label": d,
18
+ ...s,
19
+ children: t
20
+ }
21
+ )
37
22
  );
38
- u.displayName = "CentredLayout";
39
- const y = n.forwardRef(({ className: t, children: e, ...a }, r) => /* @__PURE__ */ o(
23
+ f.displayName = "CentredLayout";
24
+ const i = o.forwardRef(({ className: e, children: t, ...a }, r) => /* @__PURE__ */ n(
40
25
  "div",
41
26
  {
42
27
  ref: r,
43
28
  className: l(
44
29
  "flex w-full items-center justify-center lg:justify-start",
45
- t
30
+ e
46
31
  ),
47
32
  "data-slot": "centred-layout-header",
48
33
  ...a,
49
- children: e
34
+ children: t
50
35
  }
51
36
  ));
52
- y.displayName = "CentredLayoutHeader";
53
- const m = n.forwardRef(({ className: t, children: e, ...a }, r) => /* @__PURE__ */ o(
37
+ i.displayName = "CentredLayoutHeader";
38
+ const u = o.forwardRef(({ className: e, children: t, ...a }, r) => /* @__PURE__ */ n(
54
39
  "div",
55
40
  {
56
41
  ref: r,
57
42
  className: l(
58
- "flex flex-1 flex-col items-center justify-center",
59
- t
43
+ "flex w-full flex-1 flex-col items-center justify-center",
44
+ e
60
45
  ),
61
46
  "data-slot": "centred-layout-content",
62
47
  ...a,
63
- children: e
48
+ children: t
64
49
  }
65
50
  ));
66
- m.displayName = "CentredLayoutContent";
51
+ u.displayName = "CentredLayoutContent";
67
52
  export {
68
- u as CentredLayout,
69
- m as CentredLayoutContent,
70
- y as CentredLayoutHeader
53
+ f as CentredLayout,
54
+ u as CentredLayoutContent,
55
+ i as CentredLayoutHeader
71
56
  };
package/dist/checkbox.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),m=require("react"),g=require("@radix-ui/react-checkbox"),x=require("@brightlocal/icons"),p=require("class-variance-authority"),v=require("@brightlocal/ui-components/lib/utils");function s(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const o=s(m),i=s(g),y=p.cva(["size-4 shrink-0 self-start mt-0.5","bg-background peer border border-ring dark:bg-input/30 rounded-xs transition-colors outline-none","data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary","focus-visible:border-ring focus-visible:shadow-default","disabled:cursor-not-allowed disabled:opacity-50"],{variants:{error:{true:["border-red-600/40 dark:border-red-400/60","focus-visible:border-destructive focus-visible:shadow-destructive"]}},defaultVariants:{error:!1}}),n=o.forwardRef(({className:e,disabled:r=!1,error:t,dataHook:a,trackingEl:d,trackingLabel:l,id:u,...b},f)=>{const k=o.useId(),h=u||k;return c.jsx(i.Root,{ref:f,"aria-invalid":t?"true":void 0,className:v.cn(y({error:t}),e),"data-hook":a,"data-slot":"checkbox","data-tracking-el":d,"data-tracking-label":l,disabled:r,id:h,...b,children:c.jsx(i.Indicator,{className:"flex items-center justify-center text-current transition-none","data-slot":"checkbox-indicator",children:c.jsx(x.CheckIcon,{className:"size-3.5"})})})});n.displayName="Checkbox";exports.Checkbox=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),g=require("react"),m=require("@radix-ui/react-checkbox"),x=require("@brightlocal/icons"),p=require("class-variance-authority"),v=require("@brightlocal/ui-components/lib/utils");function s(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const c=s(g),i=s(m),y=p.cva(["size-4 shrink-0 self-start mt-0.5","bg-background peer border border-ring dark:bg-input/30 rounded-xs transition-colors outline-none","data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary","focus-visible:border-ring focus-visible:shadow-default","disabled:cursor-not-allowed disabled:opacity-50"],{variants:{error:{true:["border-red-600/40 dark:border-red-400/60","focus-visible:border-destructive focus-visible:shadow-destructive"]}},defaultVariants:{error:!1}}),n=c.forwardRef(({className:e,disabled:r=!1,error:t,dataHook:a,trackingEl:d,trackingLabel:u,id:l,...b},f)=>{const k=c.useId(),h=l||k;return o.jsx(i.Root,{ref:f,"aria-invalid":t?"true":void 0,className:v.cn(y({error:t}),e),"data-hook":a,"data-slot":"checkbox","data-tracking-el":d,"data-tracking-label":u,disabled:r,id:h,...b,children:o.jsx(i.Indicator,{className:"flex items-center justify-center text-current transition-none","data-slot":"checkbox-indicator",children:o.jsx(x.CheckIcon,{size:14})})})});n.displayName="Checkbox";exports.Checkbox=n;
package/dist/checkbox.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import * as a from "react";
3
- import * as t from "@radix-ui/react-checkbox";
2
+ import * as t from "react";
3
+ import * as a from "@radix-ui/react-checkbox";
4
4
  import { CheckIcon as k } from "@brightlocal/icons";
5
5
  import { cva as u } from "class-variance-authority";
6
6
  import { cn as h } from "@brightlocal/ui-components/lib/utils";
@@ -32,7 +32,7 @@ const p = u(
32
32
  error: !1
33
33
  }
34
34
  }
35
- ), x = a.forwardRef(
35
+ ), x = t.forwardRef(
36
36
  ({
37
37
  className: o,
38
38
  disabled: i = !1,
@@ -43,9 +43,9 @@ const p = u(
43
43
  id: n,
44
44
  ...l
45
45
  }, b) => {
46
- const m = a.useId(), f = n || m;
46
+ const m = t.useId(), f = n || m;
47
47
  return /* @__PURE__ */ e(
48
- t.Root,
48
+ a.Root,
49
49
  {
50
50
  ref: b,
51
51
  "aria-invalid": r ? "true" : void 0,
@@ -58,11 +58,11 @@ const p = u(
58
58
  id: f,
59
59
  ...l,
60
60
  children: /* @__PURE__ */ e(
61
- t.Indicator,
61
+ a.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(k, { className: "size-3.5" })
65
+ children: /* @__PURE__ */ e(k, { size: 14 })
66
66
  }
67
67
  )
68
68
  }
package/dist/combobox.cjs CHANGED
@@ -1 +1 @@
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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),U=require("react"),T=require("@brightlocal/icons"),V=require("class-variance-authority"),f=require("@brightlocal/ui-components/lib/utils"),I=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:i=!1,children:c}){const[g,d]=n.useState(""),[m,C]=n.useState(!1),[x,u]=n.useState(()=>new Map),v=o!==void 0,p=a!==void 0,h=v?o:g,w=p?a:m,j=n.useCallback(b=>{p||C(b),t?.(b)},[p,t]),N=n.useCallback(b=>{v||d(b),e?.(b)},[v,e]),S=n.useCallback((b,R)=>{u(k=>{if(k.get(b)===R)return k;const L=new Map(k);return L.set(b,R),L})},[]),D=n.useMemo(()=>({open:w,setOpen:j,value:h,onValueChange:N,shouldFilter:s,disabled:i,itemLabels:x,registerItem:S}),[w,j,h,N,s,i,x,S]);return r.jsx(E.Provider,{value:D,children:r.jsx(I.Popover,{open:w,onOpenChange:j,children:c})})}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:i,...c},g)=>{const{open:d,disabled:m,value:C}=y(),x=n.useId(),u=!C;return r.jsx(I.PopoverTrigger,{asChild:!0,children:r.jsxs("button",{ref:g,"aria-controls":d?x:void 0,"aria-expanded":d,"aria-haspopup":"listbox",className:f.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||c.disabled,role:"combobox",type:"button",...c,children:[i,r.jsx(T.ChevronsUpDownIcon,{"aria-hidden":"true",className:"text-muted-foreground ml-auto shrink-0",size:16})]})})});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:f.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",hideList:s=!1}){const{shouldFilter:i}=y();return r.jsx(I.PopoverContent,{align:t,className:f.cn("w-[var(--radix-popover-trigger-width)] p-0",e),"data-slot":"combobox-popover",side:"bottom",children:r.jsx(l.Command,{className:f.cn("border-0 shadow-none",s&&"[&_[data-slot='command-input-wrapper']]:border-b-0"),"data-slot":"combobox-command",dataHook:o||"combobox-command",shouldFilter:i,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 _=n.forwardRef((o,e)=>r.jsx(l.CommandEmpty,{ref:e,"data-slot":"combobox-empty",...o}));_.displayName="ComboboxEmpty";const z=n.forwardRef((o,e)=>r.jsx(l.CommandGroup,{ref:e,"data-slot":"combobox-group",...o}));z.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((i,c)=>c%2===1?r.jsx("span",{className:a,children:i},c):r.jsx(n.Fragment,{children:i},c))})}const M=n.forwardRef(({value:o,label:e,dataHook:a,children:t,className:s,highlight:i,highlightClassName:c,...g},d)=>{const{value:m,onValueChange:C,setOpen:x,registerItem:u}=y(),v=m===o,p=n.useMemo(()=>e||(typeof t=="string"?t:typeof t=="number"?String(t):o),[e,t,o]),h=n.useRef(u);n.useEffect(()=>{h.current=u},[u]),n.useEffect(()=>{h.current(o,p)},[o,p]);const w=()=>{C(o===m?"":o),x(!1)},j=()=>i&&typeof t=="string"?J(t,i,c||"text-sm leading-normal font-semibold"):t;return r.jsxs(l.CommandItem,{ref:d,className:f.cn("justify-between",s),"data-slot":"combobox-item",dataHook:a,value:o,onSelect:w,...g,children:[j(),v&&r.jsx(T.CheckIcon,{"aria-hidden":"true",className:"text-muted-foreground shrink-0",size:16})]})});M.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:f.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("div",{"aria-hidden":"true",className:"size-4 animate-spin rounded-full border-2 border-current border-t-transparent [animation-duration:0.6s]"}),"Loading..."]})})}exports.Combobox=F;exports.ComboboxContent=B;exports.ComboboxEmpty=_;exports.ComboboxGroup=z;exports.ComboboxInput=P;exports.ComboboxItem=M;exports.ComboboxList=q;exports.ComboboxLoading=K;exports.ComboboxSeparator=G;exports.ComboboxTrigger=O;exports.ComboboxValue=H;
@@ -50,8 +50,13 @@ export interface ComboboxContentProps {
50
50
  children: React.ReactNode;
51
51
  /** Alignment of the popover relative to trigger */
52
52
  align?: "start" | "center" | "end";
53
+ /**
54
+ * Hide the list area (and the input border). Useful for async search
55
+ * where you want to hide results until a minimum character count.
56
+ */
57
+ hideList?: boolean;
53
58
  }
54
- declare function ComboboxContent({ dataHook, className, children, align, }: ComboboxContentProps): import("react/jsx-runtime").JSX.Element;
59
+ declare function ComboboxContent({ dataHook, className, children, align, hideList, }: ComboboxContentProps): import("react/jsx-runtime").JSX.Element;
55
60
  export interface ComboboxInputProps extends React.ComponentProps<typeof CommandInput> {
56
61
  /** Current input value. Use for controlled/async search. */
57
62
  value?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["../../src/components/combobox.tsx"],"names":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