@brightlocal/ui-components 2.9.0 → 2.9.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightlocal/ui-components",
3
- "version": "2.9.0",
3
+ "version": "2.9.1",
4
4
  "description": "Machine-readable registry of all components in the BrightLocal Design System",
5
5
  "components": [
6
6
  {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),g=require("react"),c=require("@brightlocal/ui-components/lib/utils"),h=require("./header.cjs"),G=require("./scroll-area.cjs");function L(a){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const t in a)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(a,t);Object.defineProperty(e,t,o.get?o:{enumerable:!0,get:()=>a[t]})}}return e.default=a,Object.freeze(e)}const d=L(g),u=d.forwardRef(({className:a,maxWidth:e="var(--ds-breakpoint-xl)",dataHook:t,trackingEl:o,trackingLabel:l,children:n,...r},i)=>{const m=typeof e=="number"?`${e}px`:e;return s.jsx(G.ScrollArea,{className:c.cn("h-dvh w-full",a),dataHook:`${t}-scroll`,scrollOrientation:"both",children:s.jsx("div",{ref:i,className:"py-section-sm pl-section-sm flex min-h-dvh w-full flex-col","data-hook":t,"data-slot":"global-layout","data-tracking-el":o,"data-tracking-label":l,...r,children:s.jsx("div",{className:"mx-auto flex w-full flex-1","data-slot":"global-container",style:{maxWidth:m},children:n})})})});u.displayName="GlobalLayout";const k="224px",b=d.forwardRef(({className:a,width:e=k,dataHook:t,children:o,...l},n)=>{const r=typeof e=="number"?`${e}px`:e;return s.jsx("aside",{ref:n,className:c.cn("sticky hidden shrink-0 self-start outline-none lg:block",a),"data-hook":t,"data-slot":"sidebar-container",style:{width:r,top:"var(--ds-section-padding-y-sm)"},...l,children:o})});b.displayName="GlobalLayoutSidebar";const y=d.forwardRef(({className:a,maxWidth:e="var(--ds-breakpoint-lg)",padding:t,dataHook:o,children:l,...n},r)=>{const i=typeof e=="number"?`${e}px`:e;return s.jsx("div",{ref:r,className:c.cn("pr-section-sm flex min-w-0 flex-1 flex-col",a),"data-hook":o,"data-slot":"content-wrapper",style:{"--content-max-width":i,padding:t},...n,children:l})});y.displayName="GlobalLayoutContent";const f=d.forwardRef(({className:a,dataHook:e,trackingEl:t,trackingLabel:o,children:l,...n},r)=>s.jsx(h.Header,{ref:r,className:c.cn("px-section-xs justify-between gap-6 pb-9",a),"data-slot":"content-header",dataHook:e,trackingEl:t,trackingLabel:o,...n,children:l}));f.displayName="GlobalLayoutContentHeader";const p=d.forwardRef(({className:a,dataHook:e,trackingEl:t,trackingLabel:o,children:l,...n},r)=>s.jsx("div",{ref:r,className:c.cn("px-section-xs mx-auto flex w-full flex-col gap-6",a),"data-hook":e,"data-slot":"content-body","data-tracking-el":t,"data-tracking-label":o,style:{maxWidth:"var(--content-max-width)"},...n,children:l}));p.displayName="GlobalLayoutContentBody";const x=d.forwardRef(({className:a,dataHook:e,trackingEl:t,trackingLabel:o,children:l,...n},r)=>s.jsx("div",{ref:r,"aria-label":"Mobile navigation",className:c.cn("px-section-xs flex w-full items-center justify-start gap-2.5 py-2 lg:hidden",a),"data-hook":e,"data-slot":"mobile-header","data-tracking-el":t,"data-tracking-label":o,role:"toolbar",...n,children:l}));x.displayName="GlobalLayoutMobileHeader";exports.GlobalLayout=u;exports.GlobalLayoutContent=y;exports.GlobalLayoutContentBody=p;exports.GlobalLayoutContentHeader=f;exports.GlobalLayoutMobileHeader=x;exports.GlobalLayoutSidebar=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),g=require("react"),d=require("@brightlocal/ui-components/lib/utils"),h=require("./header.cjs"),w=require("./scroll-area.cjs");function G(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const c=G(g),i=c.forwardRef(({className:e,maxWidth:a="var(--ds-breakpoint-xl)",dataHook:t,trackingEl:o,trackingLabel:l,children:n,...r},m)=>{const x=typeof a=="number"?`${a}px`:a;return s.jsx(w.ScrollArea,{className:d.cn("h-dvh w-full",e),dataHook:`${t}-scroll`,scrollOrientation:"both",children:s.jsx("div",{ref:m,className:"p-section-sm flex min-h-dvh w-full flex-col","data-hook":t,"data-slot":"global-layout","data-tracking-el":o,"data-tracking-label":l,...r,children:s.jsx("div",{className:"mx-auto flex w-full flex-1","data-slot":"global-container",style:{maxWidth:x},children:n})})})});i.displayName="GlobalLayout";const L="224px",u=c.forwardRef(({className:e,width:a=L,dataHook:t,children:o,...l},n)=>{const r=typeof a=="number"?`${a}px`:a;return s.jsx("aside",{ref:n,className:d.cn("sticky hidden shrink-0 self-start outline-none lg:block",e),"data-hook":t,"data-slot":"sidebar-container",style:{width:r,top:"var(--ds-section-padding-y-sm)"},...l,children:o})});u.displayName="GlobalLayoutSidebar";const b=c.forwardRef(({className:e,maxWidth:a="var(--ds-breakpoint-lg)",dataHook:t,children:o,...l},n)=>{const r=typeof a=="number"?`${a}px`:a;return s.jsx("div",{ref:n,className:d.cn("px-section-xs flex min-w-0 flex-1 flex-col gap-6",e),"data-hook":t,"data-slot":"content-wrapper",style:{"--content-max-width":r},...l,children:o})});b.displayName="GlobalLayoutContent";const y=c.forwardRef(({className:e,dataHook:a,trackingEl:t,trackingLabel:o,children:l,...n},r)=>s.jsx(h.Header,{ref:r,className:d.cn("w-full justify-between",e),"data-slot":"content-header",dataHook:a,trackingEl:t,trackingLabel:o,...n,children:l}));y.displayName="GlobalLayoutContentHeader";const f=c.forwardRef(({className:e,dataHook:a,trackingEl:t,trackingLabel:o,children:l,...n},r)=>s.jsx("div",{ref:r,className:d.cn("mx-auto flex w-full flex-1 flex-col gap-6",e),"data-hook":a,"data-slot":"content-body","data-tracking-el":t,"data-tracking-label":o,style:{maxWidth:"var(--content-max-width)"},...n,children:l}));f.displayName="GlobalLayoutContentBody";const p=c.forwardRef(({className:e,dataHook:a,trackingEl:t,trackingLabel:o,children:l,...n},r)=>s.jsx("div",{ref:r,"aria-label":"Mobile navigation",className:d.cn("flex w-full items-center justify-start gap-2.5 py-2 lg:hidden",e),"data-hook":a,"data-slot":"mobile-header","data-tracking-el":t,"data-tracking-label":o,role:"toolbar",...n,children:l}));p.displayName="GlobalLayoutMobileHeader";exports.GlobalLayout=i;exports.GlobalLayoutContent=b;exports.GlobalLayoutContentBody=f;exports.GlobalLayoutContentHeader=y;exports.GlobalLayoutMobileHeader=p;exports.GlobalLayoutSidebar=u;
@@ -40,10 +40,6 @@ interface GlobalLayoutContentProps extends React.ComponentProps<"div"> {
40
40
  * @default breakpoint.lg
41
41
  */
42
42
  maxWidth?: string | number;
43
- /**
44
- * Custom padding for the content wrapper
45
- */
46
- padding?: string;
47
43
  }
48
44
  declare const GlobalLayoutContent: React.ForwardRefExoticComponent<Omit<GlobalLayoutContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
49
45
  interface GlobalLayoutContentHeaderProps extends React.ComponentProps<"header"> {
@@ -1 +1 @@
1
- {"version":3,"file":"global-layout.d.ts","sourceRoot":"","sources":["../../src/components/global-layout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,UAAU,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;IAC7D;;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,GAAG,MAAM,CAAC;CAC5B;AAED,QAAA,MAAM,YAAY,uGA0CjB,CAAC;AAMF,UAAU,wBAAyB,SAAQ,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AAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,QAAA,MAAM,yBAAyB,iHAsB9B,CAAC;AAIF,UAAU,4BAA6B,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;IACxE;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,QAAA,MAAM,uBAAuB,kHAuB5B,CAAC;AAIF,UAAU,6BAA8B,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;IACzE;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,QAAA,MAAM,wBAAwB,mHA2B7B,CAAC;AAIF,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,mBAAmB,EACnB,yBAAyB,EACzB,uBAAuB,EACvB,wBAAwB,GACzB,CAAC;AAEF,YAAY,EACV,iBAAiB,EACjB,wBAAwB,EACxB,wBAAwB,EACxB,8BAA8B,EAC9B,4BAA4B,EAC5B,6BAA6B,GAC9B,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
2
  import * as d from "react";
3
3
  import { cn as i } from "@brightlocal/ui-components/lib/utils";
4
- import { Header as m } from "./header.js";
5
- import { ScrollArea as b } from "./scroll-area.js";
6
- const p = d.forwardRef(
4
+ import { Header as b } from "./header.js";
5
+ import { ScrollArea as m } from "./scroll-area.js";
6
+ const y = d.forwardRef(
7
7
  ({
8
8
  className: o,
9
9
  maxWidth: a = "var(--ds-breakpoint-xl)",
@@ -15,7 +15,7 @@ const p = d.forwardRef(
15
15
  }, c) => {
16
16
  const f = typeof a == "number" ? `${a}px` : a;
17
17
  return /* @__PURE__ */ s(
18
- b,
18
+ m,
19
19
  {
20
20
  className: i("h-dvh w-full", o),
21
21
  dataHook: `${t}-scroll`,
@@ -24,7 +24,7 @@ const p = d.forwardRef(
24
24
  "div",
25
25
  {
26
26
  ref: c,
27
- className: "py-section-sm pl-section-sm flex min-h-dvh w-full flex-col",
27
+ className: "p-section-sm flex min-h-dvh w-full flex-col",
28
28
  "data-hook": t,
29
29
  "data-slot": "global-layout",
30
30
  "data-tracking-el": e,
@@ -45,8 +45,8 @@ const p = d.forwardRef(
45
45
  );
46
46
  }
47
47
  );
48
- p.displayName = "GlobalLayout";
49
- const y = "224px", u = d.forwardRef(({ className: o, width: a = y, dataHook: t, children: e, ...l }, r) => {
48
+ y.displayName = "GlobalLayout";
49
+ const u = "224px", p = d.forwardRef(({ className: o, width: a = u, dataHook: t, children: e, ...l }, r) => {
50
50
  const n = typeof a == "number" ? `${a}px` : a;
51
51
  return /* @__PURE__ */ s(
52
52
  "aside",
@@ -67,30 +67,29 @@ const y = "224px", u = d.forwardRef(({ className: o, width: a = y, dataHook: t,
67
67
  }
68
68
  );
69
69
  });
70
- u.displayName = "GlobalLayoutSidebar";
70
+ p.displayName = "GlobalLayoutSidebar";
71
71
  const x = d.forwardRef(
72
72
  ({
73
73
  className: o,
74
74
  maxWidth: a = "var(--ds-breakpoint-lg)",
75
- padding: t,
76
- dataHook: e,
77
- children: l,
78
- ...r
79
- }, n) => {
80
- const c = typeof a == "number" ? `${a}px` : a;
75
+ dataHook: t,
76
+ children: e,
77
+ ...l
78
+ }, r) => {
79
+ const n = typeof a == "number" ? `${a}px` : a;
81
80
  return /* @__PURE__ */ s(
82
81
  "div",
83
82
  {
84
- ref: n,
85
- className: i("pr-section-sm flex min-w-0 flex-1 flex-col", o),
86
- "data-hook": e,
83
+ ref: r,
84
+ className: i(
85
+ "px-section-xs flex min-w-0 flex-1 flex-col gap-6",
86
+ o
87
+ ),
88
+ "data-hook": t,
87
89
  "data-slot": "content-wrapper",
88
- style: {
89
- "--content-max-width": c,
90
- padding: t
91
- },
92
- ...r,
93
- children: l
90
+ style: { "--content-max-width": n },
91
+ ...l,
92
+ children: e
94
93
  }
95
94
  );
96
95
  }
@@ -98,10 +97,10 @@ const x = d.forwardRef(
98
97
  x.displayName = "GlobalLayoutContent";
99
98
  const h = d.forwardRef(
100
99
  ({ className: o, dataHook: a, trackingEl: t, trackingLabel: e, children: l, ...r }, n) => /* @__PURE__ */ s(
101
- m,
100
+ b,
102
101
  {
103
102
  ref: n,
104
- className: i("px-section-xs justify-between gap-6 pb-9", o),
103
+ className: i("w-full justify-between", o),
105
104
  "data-slot": "content-header",
106
105
  dataHook: a,
107
106
  trackingEl: t,
@@ -112,15 +111,12 @@ const h = d.forwardRef(
112
111
  )
113
112
  );
114
113
  h.displayName = "GlobalLayoutContentHeader";
115
- const g = d.forwardRef(
114
+ const w = d.forwardRef(
116
115
  ({ className: o, dataHook: a, trackingEl: t, trackingLabel: e, children: l, ...r }, n) => /* @__PURE__ */ s(
117
116
  "div",
118
117
  {
119
118
  ref: n,
120
- className: i(
121
- "px-section-xs mx-auto flex w-full flex-col gap-6",
122
- o
123
- ),
119
+ className: i("mx-auto flex w-full flex-1 flex-col gap-6", o),
124
120
  "data-hook": a,
125
121
  "data-slot": "content-body",
126
122
  "data-tracking-el": t,
@@ -131,15 +127,15 @@ const g = d.forwardRef(
131
127
  }
132
128
  )
133
129
  );
134
- g.displayName = "GlobalLayoutContentBody";
135
- const k = d.forwardRef(
130
+ w.displayName = "GlobalLayoutContentBody";
131
+ const g = d.forwardRef(
136
132
  ({ className: o, dataHook: a, trackingEl: t, trackingLabel: e, children: l, ...r }, n) => /* @__PURE__ */ s(
137
133
  "div",
138
134
  {
139
135
  ref: n,
140
136
  "aria-label": "Mobile navigation",
141
137
  className: i(
142
- "px-section-xs flex w-full items-center justify-start gap-2.5 py-2 lg:hidden",
138
+ "flex w-full items-center justify-start gap-2.5 py-2 lg:hidden",
143
139
  o
144
140
  ),
145
141
  "data-hook": a,
@@ -152,12 +148,12 @@ const k = d.forwardRef(
152
148
  }
153
149
  )
154
150
  );
155
- k.displayName = "GlobalLayoutMobileHeader";
151
+ g.displayName = "GlobalLayoutMobileHeader";
156
152
  export {
157
- p as GlobalLayout,
153
+ y as GlobalLayout,
158
154
  x as GlobalLayoutContent,
159
- g as GlobalLayoutContentBody,
155
+ w as GlobalLayoutContentBody,
160
156
  h as GlobalLayoutContentHeader,
161
- k as GlobalLayoutMobileHeader,
162
- u as GlobalLayoutSidebar
157
+ g as GlobalLayoutMobileHeader,
158
+ p as GlobalLayoutSidebar
163
159
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightlocal/ui-components",
3
- "version": "2.9.0",
3
+ "version": "2.9.1",
4
4
  "description": "BrightLocal Design System UI Components",
5
5
  "type": "module",
6
6
  "private": false,
@@ -48,7 +48,7 @@ const GlobalLayout = React.forwardRef<HTMLDivElement, GlobalLayoutProps>(
48
48
  >
49
49
  <div
50
50
  ref={ref}
51
- className="py-section-sm pl-section-sm flex min-h-dvh w-full flex-col"
51
+ className="p-section-sm flex min-h-dvh w-full flex-col"
52
52
  data-hook={dataHook}
53
53
  data-slot="global-layout"
54
54
  data-tracking-el={trackingEl}
@@ -121,10 +121,6 @@ interface GlobalLayoutContentProps extends React.ComponentProps<"div"> {
121
121
  * @default breakpoint.lg
122
122
  */
123
123
  maxWidth?: string | number;
124
- /**
125
- * Custom padding for the content wrapper
126
- */
127
- padding?: string;
128
124
  }
129
125
 
130
126
  const GlobalLayoutContent = React.forwardRef<
@@ -135,7 +131,6 @@ const GlobalLayoutContent = React.forwardRef<
135
131
  {
136
132
  className,
137
133
  maxWidth = "var(--ds-breakpoint-lg)",
138
- padding,
139
134
  dataHook,
140
135
  children,
141
136
  ...props
@@ -148,14 +143,14 @@ const GlobalLayoutContent = React.forwardRef<
148
143
  return (
149
144
  <div
150
145
  ref={ref}
151
- className={cn("pr-section-sm flex min-w-0 flex-1 flex-col", className)}
146
+ className={cn(
147
+ "px-section-xs flex min-w-0 flex-1 flex-col gap-6",
148
+ className
149
+ )}
152
150
  data-hook={dataHook}
153
151
  data-slot="content-wrapper"
154
152
  style={
155
- {
156
- "--content-max-width": resolvedMaxWidth,
157
- padding,
158
- } as React.CSSProperties
153
+ { "--content-max-width": resolvedMaxWidth } as React.CSSProperties
159
154
  }
160
155
  {...props}
161
156
  >
@@ -193,7 +188,7 @@ const GlobalLayoutContentHeader = React.forwardRef<
193
188
  return (
194
189
  <Header
195
190
  ref={ref}
196
- className={cn("px-section-xs justify-between gap-6 pb-9", className)}
191
+ className={cn("w-full justify-between", className)}
197
192
  data-slot="content-header"
198
193
  dataHook={dataHook}
199
194
  trackingEl={trackingEl}
@@ -234,10 +229,7 @@ const GlobalLayoutContentBody = React.forwardRef<
234
229
  return (
235
230
  <div
236
231
  ref={ref}
237
- className={cn(
238
- "px-section-xs mx-auto flex w-full flex-col gap-6",
239
- className
240
- )}
232
+ className={cn("mx-auto flex w-full flex-1 flex-col gap-6", className)}
241
233
  data-hook={dataHook}
242
234
  data-slot="content-body"
243
235
  data-tracking-el={trackingEl}
@@ -281,7 +273,7 @@ const GlobalLayoutMobileHeader = React.forwardRef<
281
273
  ref={ref}
282
274
  aria-label="Mobile navigation"
283
275
  className={cn(
284
- "px-section-xs flex w-full items-center justify-start gap-2.5 py-2 lg:hidden",
276
+ "flex w-full items-center justify-start gap-2.5 py-2 lg:hidden",
285
277
  className
286
278
  )}
287
279
  data-hook={dataHook}