@brightlocal/ui-components 0.4.0 → 0.5.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/accordion.cjs +1 -1
- package/dist/accordion.js +2 -2
- package/dist/alert.cjs +1 -1
- package/dist/alert.js +64 -64
- package/dist/blocks/data-table.cjs +1 -1
- package/dist/blocks/data-table.js +47 -47
- package/dist/blocks/sidebar.cjs +1 -1
- package/dist/blocks/sidebar.d.ts.map +1 -1
- package/dist/blocks/sidebar.js +27 -26
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.js +34 -34
- package/dist/button.cjs +1 -1
- package/dist/button.d.ts.map +1 -1
- package/dist/button.js +58 -57
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.d.ts.map +1 -1
- package/dist/calendar.js +19 -37
- package/dist/card.cjs +1 -1
- package/dist/card.d.ts +5 -0
- package/dist/card.d.ts.map +1 -1
- package/dist/card.js +49 -36
- package/dist/centred-layout.cjs +1 -1
- package/dist/centred-layout.d.ts +3 -8
- package/dist/centred-layout.d.ts.map +1 -1
- package/dist/centred-layout.js +33 -48
- package/dist/chart.cjs +2 -2
- package/dist/chart.d.ts +3 -1
- package/dist/chart.d.ts.map +1 -1
- package/dist/chart.js +21 -21
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +9 -9
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.d.ts +6 -1
- package/dist/combobox.d.ts.map +1 -1
- package/dist/combobox.js +126 -116
- package/dist/command.cjs +1 -1
- package/dist/command.js +35 -35
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.js +3 -3
- package/dist/date-picker.cjs +1 -1
- package/dist/date-picker.js +7 -7
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +22 -22
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.d.ts.map +1 -1
- package/dist/dropdown-menu.js +47 -52
- package/dist/field.cjs +1 -1
- package/dist/field.d.ts.map +1 -1
- package/dist/field.js +50 -49
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +334 -319
- package/dist/input-chip.d.ts.map +1 -1
- package/dist/input-chip.js +18 -25
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.js +10 -10
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.js +6 -6
- package/dist/input-password.cjs +1 -1
- package/dist/input-password.d.ts.map +1 -1
- package/dist/input-password.js +56 -56
- package/dist/input.cjs +1 -1
- package/dist/input.js +9 -9
- package/dist/label.cjs +1 -1
- package/dist/label.js +1 -1
- package/dist/link.cjs +1 -1
- package/dist/link.d.ts.map +1 -1
- package/dist/link.js +1 -8
- package/dist/logo.cjs +1 -1
- package/dist/logo.d.ts.map +1 -1
- package/dist/logo.js +30 -17
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.js +13 -13
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.d.ts.map +1 -1
- package/dist/navigation-menu.js +2 -1
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.d.ts.map +1 -1
- package/dist/pagination.js +28 -28
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.js +3 -3
- package/dist/rating.cjs +1 -1
- package/dist/rating.js +8 -8
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.d.ts +1 -1
- package/dist/resizable.js +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.d.ts +1 -1
- package/dist/select.d.ts.map +1 -1
- package/dist/select.js +40 -44
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.d.ts +1 -1
- package/dist/sheet.d.ts.map +1 -1
- package/dist/sheet.js +19 -19
- package/dist/sonner.cjs +1 -1
- package/dist/sonner.js +1 -1
- package/dist/switch.cjs +1 -1
- package/dist/switch.js +28 -28
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.d.ts.map +1 -1
- package/dist/tabs.js +10 -12
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.js +9 -9
- package/dist/typography.cjs +1 -0
- package/dist/typography.d.ts +176 -0
- package/dist/typography.d.ts.map +1 -0
- package/dist/typography.js +331 -0
- package/package.json +2 -2
- package/src/blocks/data-table.tsx +10 -10
- package/src/blocks/sidebar.tsx +16 -15
- package/src/components/accordion.tsx +2 -2
- package/src/components/alert.tsx +10 -10
- package/src/components/breadcrumb.tsx +3 -3
- package/src/components/button.tsx +7 -7
- package/src/components/calendar.tsx +4 -19
- package/src/components/card.tsx +24 -1
- package/src/components/centred-layout.tsx +6 -29
- package/src/components/chart.tsx +5 -5
- package/src/components/checkbox.tsx +3 -3
- package/src/components/combobox.tsx +20 -8
- package/src/components/command.tsx +5 -5
- package/src/components/context-menu.tsx +3 -3
- package/src/components/date-picker.tsx +1 -1
- package/src/components/dialog.tsx +3 -3
- package/src/components/dropdown-menu.tsx +7 -12
- package/src/components/field.tsx +36 -33
- package/src/components/input-chip.tsx +1 -4
- package/src/components/input-group.tsx +1 -1
- package/src/components/input-otp.tsx +3 -3
- package/src/components/input-password.tsx +2 -10
- package/src/components/input.tsx +1 -1
- package/src/components/label.tsx +1 -1
- package/src/components/link.tsx +1 -5
- package/src/components/logo.tsx +16 -9
- package/src/components/menubar.tsx +3 -3
- package/src/components/navigation-menu.tsx +2 -1
- package/src/components/pagination.tsx +4 -8
- package/src/components/radio-group.tsx +2 -2
- package/src/components/rating.tsx +2 -2
- package/src/components/resizable.tsx +1 -1
- package/src/components/select.tsx +8 -12
- package/src/components/sheet.tsx +5 -5
- package/src/components/sonner.tsx +1 -1
- package/src/components/switch.tsx +1 -1
- package/src/components/tabs.tsx +0 -2
- package/src/components/toggle.tsx +1 -1
- package/src/components/typography.tsx +678 -0
- package/src/index.ts +1 -0
package/dist/button.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import { Slot as
|
|
4
|
-
import { cva as
|
|
5
|
-
import { Loader2 as
|
|
6
|
-
import { cn as
|
|
7
|
-
const I = 16,
|
|
1
|
+
import { jsx as n, jsxs as S } from "react/jsx-runtime";
|
|
2
|
+
import * as d from "react";
|
|
3
|
+
import { Slot as _ } from "@radix-ui/react-slot";
|
|
4
|
+
import { cva as j } from "class-variance-authority";
|
|
5
|
+
import { Loader2 as B } from "@brightlocal/icons";
|
|
6
|
+
import { cn as y } from "@brightlocal/ui-components/lib/utils";
|
|
7
|
+
const I = 16, x = j(
|
|
8
8
|
[
|
|
9
9
|
"rounded-full",
|
|
10
10
|
"inline-flex",
|
|
@@ -13,7 +13,7 @@ const I = 16, w = B(
|
|
|
13
13
|
"justify-center",
|
|
14
14
|
"gap-2",
|
|
15
15
|
"whitespace-nowrap",
|
|
16
|
-
"transition-[color,background-color,border-color,box-shadow]",
|
|
16
|
+
"transition-[color,background-color,border-color,box-shadow,opacity]",
|
|
17
17
|
"duration-150",
|
|
18
18
|
"ease-in-out",
|
|
19
19
|
"cursor-pointer",
|
|
@@ -22,6 +22,7 @@ const I = 16, w = B(
|
|
|
22
22
|
"disabled:opacity-50",
|
|
23
23
|
"aria-disabled:opacity-50",
|
|
24
24
|
"[&_svg]:pointer-events-none",
|
|
25
|
+
"[&_svg]:shrink-0",
|
|
25
26
|
"shrink-0",
|
|
26
27
|
"outline-none",
|
|
27
28
|
"aria-invalid:ring-destructive/20",
|
|
@@ -82,8 +83,8 @@ const I = 16, w = B(
|
|
|
82
83
|
]
|
|
83
84
|
},
|
|
84
85
|
size: {
|
|
85
|
-
default: "px-4 py-2 h-9 text-sm
|
|
86
|
-
sm: "py-2 px-3 h-8 text-xs
|
|
86
|
+
default: "px-4 py-2 h-9 text-sm",
|
|
87
|
+
sm: "py-2 px-3 h-8 text-xs",
|
|
87
88
|
lg: "py-2 px-8 h-10 text-sm [&_svg:not([class*='size-'])]:size-5"
|
|
88
89
|
},
|
|
89
90
|
state: {
|
|
@@ -103,85 +104,85 @@ const I = 16, w = B(
|
|
|
103
104
|
fullWidth: !1
|
|
104
105
|
}
|
|
105
106
|
}
|
|
106
|
-
), L =
|
|
107
|
+
), L = d.forwardRef(
|
|
107
108
|
({
|
|
108
|
-
className:
|
|
109
|
+
className: l,
|
|
109
110
|
variant: a = "default",
|
|
110
|
-
size:
|
|
111
|
-
fullWidth:
|
|
111
|
+
size: u = "default",
|
|
112
|
+
fullWidth: c = !1,
|
|
112
113
|
asChild: i = !1,
|
|
113
114
|
dataHook: b,
|
|
114
|
-
trackingEl:
|
|
115
|
-
trackingLabel:
|
|
116
|
-
iconOnly:
|
|
117
|
-
loading:
|
|
118
|
-
ariaLabel:
|
|
119
|
-
disabled:
|
|
120
|
-
children:
|
|
115
|
+
trackingEl: f,
|
|
116
|
+
trackingLabel: g,
|
|
117
|
+
iconOnly: w = !1,
|
|
118
|
+
loading: t = !1,
|
|
119
|
+
ariaLabel: k,
|
|
120
|
+
disabled: v = !1,
|
|
121
|
+
children: e,
|
|
121
122
|
...s
|
|
122
|
-
},
|
|
123
|
-
const
|
|
124
|
-
let o =
|
|
125
|
-
!o &&
|
|
126
|
-
const N =
|
|
123
|
+
}, p) => {
|
|
124
|
+
const h = i ? _ : "button", m = v || t;
|
|
125
|
+
let o = w;
|
|
126
|
+
!o && d.Children.count(e) === 1 && d.isValidElement(e) && (o = e.props?.children == null);
|
|
127
|
+
const N = t && !i;
|
|
127
128
|
let r = "default";
|
|
128
|
-
|
|
129
|
-
const
|
|
130
|
-
return i ? /* @__PURE__ */
|
|
131
|
-
|
|
129
|
+
t ? r = "loading" : v && (r = "disabled");
|
|
130
|
+
const z = k ?? (t ? `Loading: ${e || "Please wait"}` : void 0);
|
|
131
|
+
return i ? /* @__PURE__ */ n(
|
|
132
|
+
h,
|
|
132
133
|
{
|
|
133
|
-
ref:
|
|
134
|
-
className:
|
|
135
|
-
|
|
134
|
+
ref: p,
|
|
135
|
+
className: y(
|
|
136
|
+
x({
|
|
136
137
|
variant: a,
|
|
137
|
-
size:
|
|
138
|
+
size: u,
|
|
138
139
|
state: r,
|
|
139
|
-
fullWidth:
|
|
140
|
+
fullWidth: c
|
|
140
141
|
}),
|
|
141
142
|
o && "size-9 p-0",
|
|
142
|
-
|
|
143
|
+
l
|
|
143
144
|
),
|
|
144
145
|
"data-hook": b,
|
|
145
146
|
"data-slot": "button",
|
|
146
|
-
"data-tracking-el":
|
|
147
|
-
"data-tracking-label":
|
|
147
|
+
"data-tracking-el": f || `button-${a}`,
|
|
148
|
+
"data-tracking-label": g,
|
|
148
149
|
...s,
|
|
149
|
-
children:
|
|
150
|
+
children: e
|
|
150
151
|
}
|
|
151
|
-
) : /* @__PURE__ */
|
|
152
|
-
|
|
152
|
+
) : /* @__PURE__ */ S(
|
|
153
|
+
h,
|
|
153
154
|
{
|
|
154
|
-
ref:
|
|
155
|
-
"aria-busy":
|
|
156
|
-
"aria-disabled":
|
|
157
|
-
"aria-label":
|
|
158
|
-
className:
|
|
159
|
-
|
|
155
|
+
ref: p,
|
|
156
|
+
"aria-busy": t ? "true" : void 0,
|
|
157
|
+
"aria-disabled": m ? "true" : void 0,
|
|
158
|
+
"aria-label": z,
|
|
159
|
+
className: y(
|
|
160
|
+
x({
|
|
160
161
|
variant: a,
|
|
161
|
-
size:
|
|
162
|
+
size: u,
|
|
162
163
|
state: r,
|
|
163
|
-
fullWidth:
|
|
164
|
+
fullWidth: c
|
|
164
165
|
}),
|
|
165
166
|
o && "size-9 p-0",
|
|
166
|
-
|
|
167
|
+
l
|
|
167
168
|
),
|
|
168
169
|
"data-hook": b,
|
|
169
170
|
"data-slot": "button",
|
|
170
|
-
"data-tracking-el":
|
|
171
|
-
"data-tracking-label":
|
|
172
|
-
disabled:
|
|
171
|
+
"data-tracking-el": f || `button-${a}`,
|
|
172
|
+
"data-tracking-label": g,
|
|
173
|
+
disabled: m,
|
|
173
174
|
type: s.type ?? "button",
|
|
174
175
|
...s,
|
|
175
176
|
children: [
|
|
176
|
-
N && /* @__PURE__ */
|
|
177
|
+
N && /* @__PURE__ */ n(
|
|
177
178
|
"div",
|
|
178
179
|
{
|
|
179
180
|
className: "pointer-events-none flex items-center justify-center",
|
|
180
181
|
"data-slot": "button-loading-icon",
|
|
181
|
-
children: /* @__PURE__ */
|
|
182
|
+
children: /* @__PURE__ */ n(B, { className: "animate-spin", size: I })
|
|
182
183
|
}
|
|
183
184
|
),
|
|
184
|
-
|
|
185
|
+
e
|
|
185
186
|
]
|
|
186
187
|
}
|
|
187
188
|
);
|
|
@@ -190,5 +191,5 @@ const I = 16, w = B(
|
|
|
190
191
|
L.displayName = "Button";
|
|
191
192
|
export {
|
|
192
193
|
L as Button,
|
|
193
|
-
|
|
194
|
+
x as ButtonVariants
|
|
194
195
|
};
|
package/dist/calendar.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),k=require("react"),g=require("@brightlocal/icons"),f=require("react-day-picker"),e=require("@brightlocal/ui-components/lib/utils");function D(r){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const n in r)if(n!=="default"){const d=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(a,n,d.get?d:{enumerable:!0,get:()=>r[n]})}}return a.default=r,Object.freeze(a)}const p=D(k),x=e.cn("inline-flex items-center justify-center rounded-md","text-muted-foreground hover:text-foreground","hover:bg-accent hover:text-accent-foreground","focus-visible:outline-none focus-visible:shadow-default","h-8 w-8 p-0"),m=({className:r,day:a,modifiers:n,...d})=>{const s=f.getDefaultClassNames(),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),k=require("react"),g=require("@brightlocal/icons"),f=require("react-day-picker"),e=require("@brightlocal/ui-components/lib/utils");function D(r){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const n in r)if(n!=="default"){const d=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(a,n,d.get?d:{enumerable:!0,get:()=>r[n]})}}return a.default=r,Object.freeze(a)}const p=D(k),x=e.cn("inline-flex items-center justify-center rounded-md","text-muted-foreground hover:text-foreground","hover:bg-accent hover:text-accent-foreground","focus-visible:outline-none focus-visible:shadow-default","h-8 w-8 p-0"),m=({className:r,day:a,modifiers:n,...d})=>{const s=f.getDefaultClassNames(),u=p.useRef(null);return p.useEffect(()=>{n.focused&&u.current?.focus()},[n.focused]),o.jsx("button",{ref:u,className:e.cn("text-foreground h-8 w-8 rounded-md p-0 font-sans text-sm leading-5 font-normal","hover:bg-accent hover:text-accent-foreground","focus-visible:ring-ring/50 focus-visible:ring-[3px] focus-visible:outline-none","group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10","data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[selected-single=true]:rounded-md","data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-start=true]:rounded-md","data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-end=true]:rounded-md","data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground",s.day,r),"data-day":a.date.toLocaleDateString(),"data-range-end":n.range_end,"data-range-middle":n.range_middle,"data-range-start":n.range_start,"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,type:"button",...d})};m.displayName="CalendarDayButton";function b({className:r,classNames:a,showOutsideDays:n=!0,numberOfMonths:d=1,captionLayout:s,fixedWeeks:u=!0,dataHook:y,trackingEl:h,trackingLabel:w,components:_,formatters:v,...j}){const t=f.getDefaultClassNames();return o.jsx(f.DayPicker,{captionLayout:s,className:e.cn("bg-background border-border group/calendar relative rounded-lg border p-3 shadow-sm",r),classNames:{months:e.cn("flex flex-col sm:flex-row gap-4",t.months),month:e.cn("flex flex-col gap-4",t.month),month_caption:e.cn("flex justify-center relative items-center w-full h-8",t.month_caption),caption_label:e.cn("text-sm font-sans leading-5 text-foreground select-none",s==="dropdown"?"font-normal":"font-medium","[&>svg]:text-muted-foreground","flex h-[34px] items-center gap-1 rounded-md pl-2 pr-1",t.caption_label),dropdowns:e.cn("flex w-full items-center justify-center gap-1.5 text-sm font-normal",t.dropdowns),dropdown_root:e.cn("relative rounded-md border border-input shadow-xs h-[34px]","has-focus:shadow-default",t.dropdown_root),dropdown:e.cn("absolute inset-0 z-10 opacity-0 cursor-pointer",t.dropdown),months_dropdown:e.cn("w-[58px]",t.months_dropdown),years_dropdown:e.cn("w-[69px]",t.years_dropdown),nav:e.cn("absolute top-3 left-3 right-3 flex items-center justify-between z-10",t.nav),button_previous:e.cn(x,t.button_previous),button_next:e.cn(x,t.button_next),month_grid:e.cn("w-full border-collapse flex flex-col",t.month_grid),weekdays:e.cn("flex",t.weekdays),weekday:e.cn("text-muted-foreground rounded-md w-8 h-5 flex items-center justify-center font-normal font-sans text-xs leading-4",t.weekday),week:e.cn(t.week,"flex w-full mt-2"),day:e.cn("relative w-full h-full p-0 text-center text-sm focus-within:relative focus-within:z-20 group/day select-none","[&:first-child[data-selected=true]_button]:!rounded-l-md","[&:last-child[data-selected=true]_button]:!rounded-r-md",t.day),range_start:e.cn("rounded-l-md bg-accent",t.range_start),range_middle:e.cn("rounded-none bg-accent","first:rounded-l-md last:rounded-r-md",t.range_middle),range_end:e.cn("rounded-r-md bg-accent",t.range_end),today:e.cn("bg-accent text-accent-foreground rounded-md",t.today),outside:e.cn("text-muted-foreground opacity-50 aria-selected:text-muted-foreground aria-selected:opacity-50",t.outside),disabled:e.cn("text-foreground opacity-50 cursor-not-allowed",t.disabled),hidden:e.cn(t.hidden),...a},components:{Chevron:({orientation:c,className:l,...i})=>c==="left"?o.jsx(g.ChevronLeft,{className:l,...i}):c==="right"?o.jsx(g.ChevronRight,{className:l,...i}):o.jsx(g.ChevronDown,{className:l,...i}),DayButton:m,..._},"data-hook":y,"data-slot":"calendar","data-tracking-el":h,"data-tracking-label":w,fixedWeeks:u,formatters:{formatMonthDropdown:c=>c.toLocaleString("default",{month:"short"}),...v},numberOfMonths:d,showOutsideDays:n,...j})}b.displayName="Calendar";exports.Calendar=b;exports.CalendarDayButton=m;
|
package/dist/calendar.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../src/components/calendar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EACL,SAAS,EAGT,KAAK,cAAc,EACpB,MAAM,kBAAkB,CAAC;AAI1B;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG;IAC3C;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC3B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAUF;;;GAGG;AACH,QAAA,MAAM,iBAAiB;8CAKpB,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC;;CAqCxC,CAAC;AAIF;;;;GAIG;AACH,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,UAAU,EACV,eAAsB,EACtB,cAAkB,EAClB,aAAa,EACb,UAAiB,EACjB,QAAQ,EACR,UAAU,EACV,aAAa,EACb,UAAU,EACV,UAAU,EACV,GAAG,KAAK,EACT,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../src/components/calendar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EACL,SAAS,EAGT,KAAK,cAAc,EACpB,MAAM,kBAAkB,CAAC;AAI1B;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG;IAC3C;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC3B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAUF;;;GAGG;AACH,QAAA,MAAM,iBAAiB;8CAKpB,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC;;CAqCxC,CAAC;AAIF;;;;GAIG;AACH,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,UAAU,EACV,eAAsB,EACtB,cAAkB,EAClB,aAAa,EACb,UAAiB,EACjB,QAAQ,EACR,UAAU,EACV,aAAa,EACb,UAAU,EACV,UAAU,EACV,GAAG,KAAK,EACT,EAAE,aAAa,2CAsHf;kBAnIQ,QAAQ;;;AAuIjB,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,CAAC"}
|
package/dist/calendar.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
2
|
+
import * as f from "react";
|
|
3
3
|
import { ChevronLeft as v, ChevronRight as k, ChevronDown as N } from "@brightlocal/icons";
|
|
4
4
|
import { getDefaultClassNames as m, DayPicker as C } from "react-day-picker";
|
|
5
5
|
import { cn as e } from "@brightlocal/ui-components/lib/utils";
|
|
6
|
-
const
|
|
6
|
+
const g = e(
|
|
7
7
|
"inline-flex items-center justify-center rounded-md",
|
|
8
8
|
"text-muted-foreground hover:text-foreground",
|
|
9
9
|
"hover:bg-accent hover:text-accent-foreground",
|
|
10
10
|
"focus-visible:outline-none focus-visible:shadow-default",
|
|
11
11
|
"h-8 w-8 p-0"
|
|
12
12
|
), p = ({
|
|
13
|
-
className:
|
|
14
|
-
day:
|
|
13
|
+
className: l,
|
|
14
|
+
day: s,
|
|
15
15
|
modifiers: r,
|
|
16
16
|
...u
|
|
17
17
|
}) => {
|
|
18
|
-
const n = m(), d =
|
|
19
|
-
return
|
|
18
|
+
const n = m(), d = f.useRef(null);
|
|
19
|
+
return f.useEffect(() => {
|
|
20
20
|
r.focused && d.current?.focus();
|
|
21
21
|
}, [r.focused]), /* @__PURE__ */ a(
|
|
22
22
|
"button",
|
|
@@ -32,9 +32,9 @@ const f = e(
|
|
|
32
32
|
"data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-end=true]:rounded-md",
|
|
33
33
|
"data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground",
|
|
34
34
|
n.day,
|
|
35
|
-
|
|
35
|
+
l
|
|
36
36
|
),
|
|
37
|
-
"data-day":
|
|
37
|
+
"data-day": s.date.toLocaleDateString(),
|
|
38
38
|
"data-range-end": r.range_end,
|
|
39
39
|
"data-range-middle": r.range_middle,
|
|
40
40
|
"data-range-start": r.range_start,
|
|
@@ -45,9 +45,9 @@ const f = e(
|
|
|
45
45
|
);
|
|
46
46
|
};
|
|
47
47
|
p.displayName = "CalendarDayButton";
|
|
48
|
-
function
|
|
49
|
-
className:
|
|
50
|
-
classNames:
|
|
48
|
+
function D({
|
|
49
|
+
className: l,
|
|
50
|
+
classNames: s,
|
|
51
51
|
showOutsideDays: r = !0,
|
|
52
52
|
numberOfMonths: u = 1,
|
|
53
53
|
captionLayout: n,
|
|
@@ -66,7 +66,7 @@ function z({
|
|
|
66
66
|
captionLayout: n,
|
|
67
67
|
className: e(
|
|
68
68
|
"bg-background border-border group/calendar relative rounded-lg border p-3 shadow-sm",
|
|
69
|
-
|
|
69
|
+
l
|
|
70
70
|
),
|
|
71
71
|
classNames: {
|
|
72
72
|
months: e("flex flex-col sm:flex-row gap-4", t.months),
|
|
@@ -78,7 +78,7 @@ function z({
|
|
|
78
78
|
caption_label: e(
|
|
79
79
|
"text-sm font-sans leading-5 text-foreground select-none",
|
|
80
80
|
n === "dropdown" ? "font-normal" : "font-medium",
|
|
81
|
-
"[&>svg]:text-muted-foreground
|
|
81
|
+
"[&>svg]:text-muted-foreground",
|
|
82
82
|
"flex h-[34px] items-center gap-1 rounded-md pl-2 pr-1",
|
|
83
83
|
t.caption_label
|
|
84
84
|
),
|
|
@@ -101,8 +101,8 @@ function z({
|
|
|
101
101
|
"absolute top-3 left-3 right-3 flex items-center justify-between z-10",
|
|
102
102
|
t.nav
|
|
103
103
|
),
|
|
104
|
-
button_previous: e(
|
|
105
|
-
button_next: e(
|
|
104
|
+
button_previous: e(g, t.button_previous),
|
|
105
|
+
button_next: e(g, t.button_next),
|
|
106
106
|
month_grid: e(
|
|
107
107
|
"w-full border-collapse flex flex-col",
|
|
108
108
|
t.month_grid
|
|
@@ -142,32 +142,14 @@ function z({
|
|
|
142
142
|
t.disabled
|
|
143
143
|
),
|
|
144
144
|
hidden: e(t.hidden),
|
|
145
|
-
...
|
|
145
|
+
...s
|
|
146
146
|
},
|
|
147
147
|
components: {
|
|
148
148
|
Chevron: ({
|
|
149
149
|
orientation: o,
|
|
150
150
|
className: c,
|
|
151
151
|
...i
|
|
152
|
-
}) => o === "left" ? /* @__PURE__ */ a(
|
|
153
|
-
v,
|
|
154
|
-
{
|
|
155
|
-
className: e("size-4", c),
|
|
156
|
-
...i
|
|
157
|
-
}
|
|
158
|
-
) : o === "right" ? /* @__PURE__ */ a(
|
|
159
|
-
k,
|
|
160
|
-
{
|
|
161
|
-
className: e("size-4", c),
|
|
162
|
-
...i
|
|
163
|
-
}
|
|
164
|
-
) : /* @__PURE__ */ a(
|
|
165
|
-
N,
|
|
166
|
-
{
|
|
167
|
-
className: e("size-4", c),
|
|
168
|
-
...i
|
|
169
|
-
}
|
|
170
|
-
),
|
|
152
|
+
}) => o === "left" ? /* @__PURE__ */ a(v, { className: c, ...i }) : o === "right" ? /* @__PURE__ */ a(k, { className: c, ...i }) : /* @__PURE__ */ a(N, { className: c, ...i }),
|
|
171
153
|
DayButton: p,
|
|
172
154
|
...w
|
|
173
155
|
},
|
|
@@ -186,8 +168,8 @@ function z({
|
|
|
186
168
|
}
|
|
187
169
|
);
|
|
188
170
|
}
|
|
189
|
-
|
|
171
|
+
D.displayName = "Calendar";
|
|
190
172
|
export {
|
|
191
|
-
|
|
173
|
+
D as Calendar,
|
|
192
174
|
p as CalendarDayButton
|
|
193
175
|
};
|
package/dist/card.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),h=require("react"),w=require("class-variance-authority"),d=require("@brightlocal/ui-components/lib/utils");function R(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 e=R(h),c=e.createContext({flush:!1}),O=w.cva(["flex","flex-col","gap-8","rounded-xl","py-8","transition-colors","w-full"],{variants:{variant:{default:["bg-card","text-card-foreground","border","border-card-border"],transparent:["bg-transparent","text-foreground"],border:["bg-transparent","text-foreground","border","border-border"],"transparent-flush":["bg-transparent","text-foreground"]}},defaultVariants:{variant:"default"}}),l=e.forwardRef(({className:t,variant:r="default",dataHook:a,trackingEl:o,trackingLabel:x,maxWidth:n="400px",children:g,style:b,...y},j)=>{const v=r==="transparent-flush",N=n!==void 0?{maxWidth:typeof n=="number"?`${n}px`:n}:void 0;return s.jsx(c.Provider,{value:{flush:v},children:s.jsx("div",{ref:j,className:d.cn(O({variant:r}),t),"data-hook":a,"data-slot":"card","data-tracking-el":o||`card-${r}`,"data-tracking-label":x,style:{...N,...b},...y,children:g})})});l.displayName="Card";const i=e.forwardRef(({className:t,...r},a)=>{const{flush:o}=e.useContext(c);return s.jsx("div",{ref:a,className:d.cn("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 has-data-[slot=card-action]:grid-cols-[1fr_auto]",!o&&"px-8",t),"data-slot":"card-header",...r})});i.displayName="CardHeader";const u=e.forwardRef(({className:t,...r},a)=>s.jsx("div",{ref:a,className:d.cn("heading-sm",t),"data-slot":"card-title",...r}));u.displayName="CardTitle";const f=e.forwardRef(({className:t,...r},a)=>s.jsx("div",{ref:a,className:d.cn("text-muted-foreground text-sm leading-normal font-normal",t),"data-slot":"card-description",...r}));f.displayName="CardDescription";const p=e.forwardRef(({className:t,...r},a)=>s.jsx("div",{ref:a,className:d.cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end",t),"data-slot":"card-action",...r}));p.displayName="CardAction";const C=e.forwardRef(({className:t,...r},a)=>{const{flush:o}=e.useContext(c);return s.jsx("div",{ref:a,className:d.cn(!o&&"px-8",t),"data-slot":"card-content",...r})});C.displayName="CardContent";const m=e.forwardRef(({className:t,...r},a)=>{const{flush:o}=e.useContext(c);return s.jsx("div",{ref:a,className:d.cn("flex items-center",!o&&"px-8",t),"data-slot":"card-footer",...r})});m.displayName="CardFooter";exports.Card=l;exports.CardAction=p;exports.CardContent=C;exports.CardDescription=f;exports.CardFooter=m;exports.CardHeader=i;exports.CardTitle=u;
|
package/dist/card.d.ts
CHANGED
|
@@ -24,6 +24,11 @@ type CardProps = React.ComponentProps<"div"> & {
|
|
|
24
24
|
* Tracking label for analytics context
|
|
25
25
|
*/
|
|
26
26
|
trackingLabel?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Maximum width of the card (e.g., "420px", "600px", "100%")
|
|
29
|
+
* @default "400px"
|
|
30
|
+
*/
|
|
31
|
+
maxWidth?: string | number;
|
|
27
32
|
};
|
|
28
33
|
/**
|
|
29
34
|
* Container component for grouping related content with visual separation.
|
package/dist/card.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../src/components/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B;;GAEG;AACH,KAAK,WAAW,GAAG,SAAS,GAAG,aAAa,GAAG,QAAQ,GAAG,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../src/components/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B;;GAEG;AACH,KAAK,WAAW,GAAG,SAAS,GAAG,aAAa,GAAG,QAAQ,GAAG,mBAAmB,CAAC;AA0C9E;;GAEG;AACH,KAAK,SAAS,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAC7C;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;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,CAAC;AAEF;;;GAGG;AACH,QAAA,MAAM,IAAI,+FAyCT,CAAC;AAIF;;GAEG;AACH,KAAK,qBAAqB,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IACzD;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,UAAU,2GAgBf,CAAC;AAGF;;GAEG;AACH,QAAA,MAAM,SAAS,2GASd,CAAC;AAGF;;GAEG;AACH,QAAA,MAAM,eAAe,2GAYpB,CAAC;AAGF;;GAEG;AACH,QAAA,MAAM,UAAU,2GAYf,CAAC;AAGF;;GAEG;AACH,QAAA,MAAM,WAAW,2GAYhB,CAAC;AAGF;;GAEG;AACH,QAAA,MAAM,UAAU,2GAYf,CAAC;AAGF,OAAO,EACL,IAAI,EACJ,UAAU,EACV,UAAU,EACV,SAAS,EACT,UAAU,EACV,eAAe,EACf,WAAW,GACZ,CAAC;AAEF,YAAY,EAAE,SAAS,EAAE,qBAAqB,EAAE,WAAW,EAAE,CAAC"}
|
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
|
|
3
|
+
import { cva as x } from "class-variance-authority";
|
|
4
4
|
import { cn as s } from "@brightlocal/ui-components/lib/utils";
|
|
5
|
-
const
|
|
6
|
-
[
|
|
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
|
-
),
|
|
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
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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:
|
|
45
|
-
className: s(
|
|
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
|
-
...
|
|
51
|
-
|
|
62
|
+
style: { ...C, ...f },
|
|
63
|
+
...u,
|
|
64
|
+
children: i
|
|
52
65
|
}
|
|
53
66
|
) });
|
|
54
67
|
}
|
|
55
68
|
);
|
|
56
|
-
|
|
57
|
-
const
|
|
69
|
+
N.displayName = "Card";
|
|
70
|
+
const b = e.forwardRef(
|
|
58
71
|
({ className: r, ...a }, t) => {
|
|
59
|
-
const { flush: d } = e.useContext(
|
|
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
|
-
|
|
76
|
-
const
|
|
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
|
-
|
|
88
|
-
const
|
|
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
|
-
|
|
103
|
-
const
|
|
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
|
-
|
|
118
|
-
const
|
|
130
|
+
w.displayName = "CardAction";
|
|
131
|
+
const y = e.forwardRef(
|
|
119
132
|
({ className: r, ...a }, t) => {
|
|
120
|
-
const { flush: d } = e.useContext(
|
|
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
|
-
|
|
133
|
-
const
|
|
145
|
+
y.displayName = "CardContent";
|
|
146
|
+
const R = e.forwardRef(
|
|
134
147
|
({ className: r, ...a }, t) => {
|
|
135
|
-
const { flush: d } = e.useContext(
|
|
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
|
-
|
|
160
|
+
R.displayName = "CardFooter";
|
|
148
161
|
export {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
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
|
};
|
package/dist/centred-layout.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 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 p-section flex min-h-screen w-full flex-col items-center justify-center gap-4",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;
|
package/dist/centred-layout.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
/**
|
|
3
|
-
* CentredLayout provides a
|
|
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
|
|
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
|
|
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"}
|