@brightlocal/ui-components 0.1.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/LICENSE +21 -0
- package/README.md +349 -0
- package/dist/accordion.cjs +1 -0
- package/dist/accordion.d.ts +32 -0
- package/dist/accordion.d.ts.map +1 -0
- package/dist/accordion.js +107 -0
- package/dist/alert-dialog.cjs +1 -0
- package/dist/alert-dialog.d.ts +15 -0
- package/dist/alert-dialog.d.ts.map +1 -0
- package/dist/alert-dialog.js +146 -0
- package/dist/alert.cjs +1 -0
- package/dist/alert.d.ts +16 -0
- package/dist/alert.d.ts.map +1 -0
- package/dist/alert.js +174 -0
- package/dist/aspect-ratio.cjs +1 -0
- package/dist/aspect-ratio.d.ts +10 -0
- package/dist/aspect-ratio.d.ts.map +1 -0
- package/dist/aspect-ratio.js +22 -0
- package/dist/avatar.cjs +1 -0
- package/dist/avatar.d.ts +11 -0
- package/dist/avatar.d.ts.map +1 -0
- package/dist/avatar.js +46 -0
- package/dist/badge.cjs +1 -0
- package/dist/badge.d.ts +19 -0
- package/dist/badge.d.ts.map +1 -0
- package/dist/badge.js +50 -0
- package/dist/blocks/data-table.cjs +1 -0
- package/dist/blocks/data-table.d.ts +303 -0
- package/dist/blocks/data-table.d.ts.map +1 -0
- package/dist/blocks/data-table.js +555 -0
- package/dist/blocks/sidebar.cjs +1 -0
- package/dist/blocks/sidebar.d.ts +744 -0
- package/dist/blocks/sidebar.d.ts.map +1 -0
- package/dist/blocks/sidebar.js +839 -0
- package/dist/breadcrumb.cjs +1 -0
- package/dist/breadcrumb.d.ts +12 -0
- package/dist/breadcrumb.d.ts.map +1 -0
- package/dist/breadcrumb.js +102 -0
- package/dist/button.cjs +1 -0
- package/dist/button.d.ts +73 -0
- package/dist/button.d.ts.map +1 -0
- package/dist/button.js +195 -0
- package/dist/calendar.cjs +1 -0
- package/dist/calendar.d.ts +28 -0
- package/dist/calendar.d.ts.map +1 -0
- package/dist/calendar.js +191 -0
- package/dist/card.cjs +1 -0
- package/dist/card.d.ts +28 -0
- package/dist/card.d.ts.map +1 -0
- package/dist/card.js +131 -0
- package/dist/carousel.cjs +1 -0
- package/dist/carousel.d.ts +21 -0
- package/dist/carousel.d.ts.map +1 -0
- package/dist/carousel.js +185 -0
- package/dist/centred-layout.cjs +1 -0
- package/dist/centred-layout.d.ts +49 -0
- package/dist/centred-layout.d.ts.map +1 -0
- package/dist/centred-layout.js +35 -0
- package/dist/chart.cjs +10 -0
- package/dist/chart.d.ts +83 -0
- package/dist/chart.d.ts.map +1 -0
- package/dist/chart.js +254 -0
- package/dist/checkbox.cjs +1 -0
- package/dist/checkbox.d.ts +15 -0
- package/dist/checkbox.d.ts.map +1 -0
- package/dist/checkbox.js +96 -0
- package/dist/collapsible.cjs +1 -0
- package/dist/collapsible.d.ts +18 -0
- package/dist/collapsible.d.ts.map +1 -0
- package/dist/collapsible.js +58 -0
- package/dist/combobox.cjs +1 -0
- package/dist/combobox.d.ts +65 -0
- package/dist/combobox.d.ts.map +1 -0
- package/dist/combobox.js +203 -0
- package/dist/command.cjs +1 -0
- package/dist/command.d.ts +44 -0
- package/dist/command.d.ts.map +1 -0
- package/dist/command.js +166 -0
- package/dist/context-menu.cjs +1 -0
- package/dist/context-menu.d.ts +42 -0
- package/dist/context-menu.d.ts.map +1 -0
- package/dist/context-menu.js +226 -0
- package/dist/date-picker.cjs +1 -0
- package/dist/date-picker.d.ts +54 -0
- package/dist/date-picker.d.ts.map +1 -0
- package/dist/date-picker.js +95 -0
- package/dist/dialog.cjs +1 -0
- package/dist/dialog.d.ts +20 -0
- package/dist/dialog.d.ts.map +1 -0
- package/dist/dialog.js +130 -0
- package/dist/drawer.cjs +1 -0
- package/dist/drawer.d.ts +22 -0
- package/dist/drawer.d.ts.map +1 -0
- package/dist/drawer.js +149 -0
- package/dist/dropdown-menu.cjs +1 -0
- package/dist/dropdown-menu.d.ts +253 -0
- package/dist/dropdown-menu.d.ts.map +1 -0
- package/dist/dropdown-menu.js +325 -0
- package/dist/field.cjs +1 -0
- package/dist/field.d.ts +21 -0
- package/dist/field.d.ts.map +1 -0
- package/dist/field.js +148 -0
- package/dist/global-layout.cjs +1 -0
- package/dist/global-layout.d.ts +60 -0
- package/dist/global-layout.d.ts.map +1 -0
- package/dist/global-layout.js +87 -0
- package/dist/hooks/use-mobile.cjs +1 -0
- package/dist/hooks/use-mobile.d.ts +2 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -0
- package/dist/hooks/use-mobile.js +16 -0
- package/dist/hover-card.cjs +1 -0
- package/dist/hover-card.d.ts +43 -0
- package/dist/hover-card.d.ts.map +1 -0
- package/dist/hover-card.js +71 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +61 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +412 -0
- package/dist/input-base.cjs +1 -0
- package/dist/input-base.d.ts +28 -0
- package/dist/input-base.d.ts.map +1 -0
- package/dist/input-base.js +56 -0
- package/dist/input-group.cjs +1 -0
- package/dist/input-group.d.ts +26 -0
- package/dist/input-group.d.ts.map +1 -0
- package/dist/input-group.js +116 -0
- package/dist/input-otp.cjs +1 -0
- package/dist/input-otp.d.ts +45 -0
- package/dist/input-otp.d.ts.map +1 -0
- package/dist/input-otp.js +186 -0
- package/dist/input-password.cjs +1 -0
- package/dist/input-password.d.ts +38 -0
- package/dist/input-password.d.ts.map +1 -0
- package/dist/input-password.js +101 -0
- package/dist/input.cjs +1 -0
- package/dist/input.d.ts +32 -0
- package/dist/input.d.ts.map +1 -0
- package/dist/input.js +146 -0
- package/dist/label.cjs +1 -0
- package/dist/label.d.ts +12 -0
- package/dist/label.d.ts.map +1 -0
- package/dist/label.js +34 -0
- package/dist/lib/utils.cjs +1 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +8 -0
- package/dist/link.cjs +1 -0
- package/dist/link.d.ts +29 -0
- package/dist/link.d.ts.map +1 -0
- package/dist/link.figma.d.ts +2 -0
- package/dist/link.figma.d.ts.map +1 -0
- package/dist/link.js +71 -0
- package/dist/logo.cjs +1 -0
- package/dist/logo.d.ts +25 -0
- package/dist/logo.d.ts.map +1 -0
- package/dist/logo.js +71 -0
- package/dist/menubar.cjs +1 -0
- package/dist/menubar.d.ts +106 -0
- package/dist/menubar.d.ts.map +1 -0
- package/dist/menubar.js +270 -0
- package/dist/navigation-menu.cjs +1 -0
- package/dist/navigation-menu.d.ts +108 -0
- package/dist/navigation-menu.d.ts.map +1 -0
- package/dist/navigation-menu.js +175 -0
- package/dist/pagination.cjs +1 -0
- package/dist/pagination.d.ts +81 -0
- package/dist/pagination.d.ts.map +1 -0
- package/dist/pagination.js +216 -0
- package/dist/popover.cjs +1 -0
- package/dist/popover.d.ts +8 -0
- package/dist/popover.d.ts.map +1 -0
- package/dist/popover.js +44 -0
- package/dist/progress.cjs +1 -0
- package/dist/progress.d.ts +29 -0
- package/dist/progress.d.ts.map +1 -0
- package/dist/progress.js +64 -0
- package/dist/radio-group.cjs +1 -0
- package/dist/radio-group.d.ts +33 -0
- package/dist/radio-group.d.ts.map +1 -0
- package/dist/radio-group.js +193 -0
- package/dist/rating.cjs +1 -0
- package/dist/rating.d.ts +22 -0
- package/dist/rating.d.ts.map +1 -0
- package/dist/rating.js +51 -0
- package/dist/resizable.cjs +1 -0
- package/dist/resizable.d.ts +14 -0
- package/dist/resizable.d.ts.map +1 -0
- package/dist/resizable.js +46 -0
- package/dist/scroll-area.cjs +1 -0
- package/dist/scroll-area.d.ts +12 -0
- package/dist/scroll-area.d.ts.map +1 -0
- package/dist/scroll-area.js +67 -0
- package/dist/select.cjs +1 -0
- package/dist/select.d.ts +77 -0
- package/dist/select.d.ts.map +1 -0
- package/dist/select.js +259 -0
- package/dist/separator.cjs +1 -0
- package/dist/separator.d.ts +14 -0
- package/dist/separator.d.ts.map +1 -0
- package/dist/separator.js +43 -0
- package/dist/sheet.cjs +1 -0
- package/dist/sheet.d.ts +38 -0
- package/dist/sheet.d.ts.map +1 -0
- package/dist/sheet.js +190 -0
- package/dist/skeleton.cjs +1 -0
- package/dist/skeleton.d.ts +5 -0
- package/dist/skeleton.d.ts.map +1 -0
- package/dist/skeleton.js +15 -0
- package/dist/slider.cjs +1 -0
- package/dist/slider.d.ts +19 -0
- package/dist/slider.d.ts.map +1 -0
- package/dist/slider.js +69 -0
- package/dist/sonner.cjs +1 -0
- package/dist/sonner.d.ts +188 -0
- package/dist/sonner.d.ts.map +1 -0
- package/dist/sonner.js +150 -0
- package/dist/split-layout.cjs +1 -0
- package/dist/split-layout.d.ts +42 -0
- package/dist/split-layout.d.ts.map +1 -0
- package/dist/split-layout.js +108 -0
- package/dist/switch.cjs +1 -0
- package/dist/switch.d.ts +43 -0
- package/dist/switch.d.ts.map +1 -0
- package/dist/switch.figma.d.ts +2 -0
- package/dist/switch.figma.d.ts.map +1 -0
- package/dist/switch.js +110 -0
- package/dist/table.cjs +1 -0
- package/dist/table.d.ts +95 -0
- package/dist/table.d.ts.map +1 -0
- package/dist/table.js +164 -0
- package/dist/tabs.cjs +1 -0
- package/dist/tabs.d.ts +29 -0
- package/dist/tabs.d.ts.map +1 -0
- package/dist/tabs.js +96 -0
- package/dist/textarea.cjs +1 -0
- package/dist/textarea.d.ts +23 -0
- package/dist/textarea.d.ts.map +1 -0
- package/dist/textarea.js +47 -0
- package/dist/toggle-group.cjs +1 -0
- package/dist/toggle-group.d.ts +25 -0
- package/dist/toggle-group.d.ts.map +1 -0
- package/dist/toggle-group.js +74 -0
- package/dist/toggle.cjs +1 -0
- package/dist/toggle.d.ts +44 -0
- package/dist/toggle.d.ts.map +1 -0
- package/dist/toggle.figma.d.ts +2 -0
- package/dist/toggle.figma.d.ts.map +1 -0
- package/dist/toggle.js +57 -0
- package/dist/tooltip.cjs +1 -0
- package/dist/tooltip.d.ts +66 -0
- package/dist/tooltip.d.ts.map +1 -0
- package/dist/tooltip.js +78 -0
- package/package.json +184 -0
- package/src/blocks/data-table.tsx +1166 -0
- package/src/blocks/sidebar.tsx +1830 -0
- package/src/components/.gitkeep +0 -0
- package/src/components/accordion.tsx +142 -0
- package/src/components/alert-dialog.tsx +157 -0
- package/src/components/alert.tsx +199 -0
- package/src/components/aspect-ratio.tsx +30 -0
- package/src/components/avatar.tsx +56 -0
- package/src/components/badge.tsx +72 -0
- package/src/components/breadcrumb.tsx +109 -0
- package/src/components/button.tsx +296 -0
- package/src/components/calendar.tsx +234 -0
- package/src/components/card.tsx +158 -0
- package/src/components/carousel.tsx +256 -0
- package/src/components/centred-layout.tsx +91 -0
- package/src/components/chart.tsx +456 -0
- package/src/components/checkbox.tsx +132 -0
- package/src/components/collapsible.tsx +68 -0
- package/src/components/combobox.tsx +321 -0
- package/src/components/command.tsx +220 -0
- package/src/components/context-menu.tsx +305 -0
- package/src/components/date-picker.tsx +155 -0
- package/src/components/dialog.tsx +152 -0
- package/src/components/drawer.tsx +168 -0
- package/src/components/dropdown-menu.tsx +575 -0
- package/src/components/field.tsx +155 -0
- package/src/components/global-layout.tsx +153 -0
- package/src/components/hover-card.tsx +121 -0
- package/src/components/input-base.tsx +86 -0
- package/src/components/input-group.tsx +158 -0
- package/src/components/input-otp.tsx +327 -0
- package/src/components/input-password.tsx +191 -0
- package/src/components/input.tsx +220 -0
- package/src/components/label.tsx +42 -0
- package/src/components/link.figma.tsx +71 -0
- package/src/components/link.tsx +105 -0
- package/src/components/logo.tsx +97 -0
- package/src/components/menubar.tsx +379 -0
- package/src/components/navigation-menu.tsx +324 -0
- package/src/components/pagination.tsx +368 -0
- package/src/components/popover.tsx +46 -0
- package/src/components/progress.tsx +100 -0
- package/src/components/radio-group.tsx +281 -0
- package/src/components/rating.tsx +87 -0
- package/src/components/resizable.tsx +66 -0
- package/src/components/scroll-area.tsx +72 -0
- package/src/components/select.tsx +442 -0
- package/src/components/separator.tsx +53 -0
- package/src/components/sheet.tsx +220 -0
- package/src/components/skeleton.tsx +17 -0
- package/src/components/slider.tsx +86 -0
- package/src/components/sonner.tsx +396 -0
- package/src/components/split-layout.tsx +155 -0
- package/src/components/switch.figma.tsx +115 -0
- package/src/components/switch.tsx +173 -0
- package/src/components/table.tsx +277 -0
- package/src/components/tabs.tsx +142 -0
- package/src/components/textarea.tsx +77 -0
- package/src/components/toggle-group.tsx +109 -0
- package/src/components/toggle.figma.tsx +81 -0
- package/src/components/toggle.tsx +103 -0
- package/src/components/tooltip.tsx +156 -0
- package/src/hooks/.gitkeep +0 -0
- package/src/hooks/use-mobile.ts +21 -0
- package/src/index.ts +67 -0
- package/src/lib/utils.ts +6 -0
- package/src/types/external-modules.d.ts +16 -0
package/dist/card.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Available card visual variants
|
|
4
|
+
*/
|
|
5
|
+
export declare enum CardVariant {
|
|
6
|
+
/** Default card with background, border */
|
|
7
|
+
DEFAULT = "default",
|
|
8
|
+
/** Transparent card with no background or border */
|
|
9
|
+
TRANSPARENT = "transparent",
|
|
10
|
+
/** Card with border only, no background or shadow */
|
|
11
|
+
BORDER = "border"
|
|
12
|
+
}
|
|
13
|
+
type CardProps = React.ComponentProps<"div"> & {
|
|
14
|
+
variant?: CardVariant;
|
|
15
|
+
dataHook: string;
|
|
16
|
+
trackingEl?: string;
|
|
17
|
+
trackingLabel?: string;
|
|
18
|
+
};
|
|
19
|
+
declare const Card: React.ForwardRefExoticComponent<Omit<CardProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
declare function CardAction({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
declare function CardContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
|
|
27
|
+
export type { CardProps };
|
|
28
|
+
//# sourceMappingURL=card.d.ts.map
|
|
@@ -0,0 +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,oBAAY,WAAW;IACrB,2CAA2C;IAC3C,OAAO,YAAY;IACnB,oDAAoD;IACpD,WAAW,gBAAgB;IAC3B,qDAAqD;IACrD,MAAM,WAAW;CAClB;AA4BD,KAAK,SAAS,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAC7C,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,QAAA,MAAM,IAAI,+FAwBT,CAAC;AAIF,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWvE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQtE;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAW5E;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWvE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQxE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQvE;AAED,OAAO,EACL,IAAI,EACJ,UAAU,EACV,UAAU,EACV,SAAS,EACT,UAAU,EACV,eAAe,EACf,WAAW,GACZ,CAAC;AAEF,YAAY,EAAE,SAAS,EAAE,CAAC"}
|
package/dist/card.js
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import * as i from "react";
|
|
3
|
+
import { cva as l } from "class-variance-authority";
|
|
4
|
+
import { cn as e } from "@brightlocal/ui-components/lib/utils";
|
|
5
|
+
var f = /* @__PURE__ */ ((r) => (r.DEFAULT = "default", r.TRANSPARENT = "transparent", r.BORDER = "border", r))(f || {});
|
|
6
|
+
const u = l(
|
|
7
|
+
["flex", "flex-col", "gap-8", "rounded-[14px]", "py-8", "transition-colors"],
|
|
8
|
+
{
|
|
9
|
+
variants: {
|
|
10
|
+
variant: {
|
|
11
|
+
default: [
|
|
12
|
+
"bg-card",
|
|
13
|
+
"text-card-foreground",
|
|
14
|
+
"border",
|
|
15
|
+
"border-card-border"
|
|
16
|
+
],
|
|
17
|
+
transparent: ["bg-transparent", "text-foreground"],
|
|
18
|
+
border: [
|
|
19
|
+
"bg-transparent",
|
|
20
|
+
"text-foreground",
|
|
21
|
+
"border",
|
|
22
|
+
"border-border"
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
defaultVariants: {
|
|
27
|
+
variant: "default"
|
|
28
|
+
/* DEFAULT */
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
), m = i.forwardRef(
|
|
32
|
+
({
|
|
33
|
+
className: r,
|
|
34
|
+
variant: a = "default",
|
|
35
|
+
dataHook: o,
|
|
36
|
+
trackingEl: d,
|
|
37
|
+
trackingLabel: n,
|
|
38
|
+
...s
|
|
39
|
+
}, c) => /* @__PURE__ */ t(
|
|
40
|
+
"div",
|
|
41
|
+
{
|
|
42
|
+
ref: c,
|
|
43
|
+
className: e(u({ variant: a }), r),
|
|
44
|
+
"data-hook": o,
|
|
45
|
+
"data-slot": "card",
|
|
46
|
+
"data-tracking-el": d || `card-${a}`,
|
|
47
|
+
"data-tracking-label": n,
|
|
48
|
+
...s
|
|
49
|
+
}
|
|
50
|
+
)
|
|
51
|
+
);
|
|
52
|
+
m.displayName = "Card";
|
|
53
|
+
function b({ className: r, ...a }) {
|
|
54
|
+
return /* @__PURE__ */ t(
|
|
55
|
+
"div",
|
|
56
|
+
{
|
|
57
|
+
className: e(
|
|
58
|
+
"@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-8 has-data-[slot=card-action]:grid-cols-[1fr_auto]",
|
|
59
|
+
r
|
|
60
|
+
),
|
|
61
|
+
"data-slot": "card-header",
|
|
62
|
+
...a
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
function v({ className: r, ...a }) {
|
|
67
|
+
return /* @__PURE__ */ t(
|
|
68
|
+
"div",
|
|
69
|
+
{
|
|
70
|
+
className: e("heading-sm", r),
|
|
71
|
+
"data-slot": "card-title",
|
|
72
|
+
...a
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
function N({ className: r, ...a }) {
|
|
77
|
+
return /* @__PURE__ */ t(
|
|
78
|
+
"div",
|
|
79
|
+
{
|
|
80
|
+
className: e(
|
|
81
|
+
"text-muted-foreground text-sm leading-normal font-normal",
|
|
82
|
+
r
|
|
83
|
+
),
|
|
84
|
+
"data-slot": "card-description",
|
|
85
|
+
...a
|
|
86
|
+
}
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
function C({ className: r, ...a }) {
|
|
90
|
+
return /* @__PURE__ */ t(
|
|
91
|
+
"div",
|
|
92
|
+
{
|
|
93
|
+
className: e(
|
|
94
|
+
"col-start-2 row-span-2 row-start-1 self-start justify-self-end",
|
|
95
|
+
r
|
|
96
|
+
),
|
|
97
|
+
"data-slot": "card-action",
|
|
98
|
+
...a
|
|
99
|
+
}
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
function R({ className: r, ...a }) {
|
|
103
|
+
return /* @__PURE__ */ t(
|
|
104
|
+
"div",
|
|
105
|
+
{
|
|
106
|
+
className: e("px-8", r),
|
|
107
|
+
"data-slot": "card-content",
|
|
108
|
+
...a
|
|
109
|
+
}
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
function h({ className: r, ...a }) {
|
|
113
|
+
return /* @__PURE__ */ t(
|
|
114
|
+
"div",
|
|
115
|
+
{
|
|
116
|
+
className: e("flex items-center px-8", r),
|
|
117
|
+
"data-slot": "card-footer",
|
|
118
|
+
...a
|
|
119
|
+
}
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
export {
|
|
123
|
+
m as Card,
|
|
124
|
+
C as CardAction,
|
|
125
|
+
R as CardContent,
|
|
126
|
+
N as CardDescription,
|
|
127
|
+
h as CardFooter,
|
|
128
|
+
b as CardHeader,
|
|
129
|
+
v as CardTitle,
|
|
130
|
+
f as CardVariant
|
|
131
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),P=require("react"),k=require("embla-carousel-react"),m=require("lucide-react"),i=require("@brightlocal/ui-components/lib/utils"),u=require("@brightlocal/ui-components/button");function O(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const l=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,l.get?l:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const s=O(P),p=s.createContext(null);function h(){const e=s.useContext(p);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}function R({orientation:e="horizontal",opts:r,setApi:t,plugins:l,className:f,children:d,...x}){const[C,o]=k({...r,axis:e==="horizontal"?"x":"y"},l),[N,S]=s.useState(!1),[j,y]=s.useState(!1),c=s.useCallback(a=>{a&&(S(a.canScrollPrev()),y(a.canScrollNext()))},[]),v=s.useCallback(()=>{o?.scrollPrev()},[o]),b=s.useCallback(()=>{o?.scrollNext()},[o]),w=s.useCallback(a=>{const g=e==="horizontal"?"ArrowLeft":"ArrowUp",z=e==="horizontal"?"ArrowRight":"ArrowDown";a.key===g?(a.preventDefault(),v()):a.key===z&&(a.preventDefault(),b())},[e,v,b]);return s.useEffect(()=>{!o||!t||t(o)},[o,t]),s.useEffect(()=>{if(o)return c(o),o.on("reInit",c),o.on("select",c),()=>{o?.off("reInit",c),o?.off("select",c)}},[o,c]),n.jsx(p.Provider,{value:{carouselRef:C,api:o,opts:r,orientation:e||(r?.axis==="y"?"vertical":"horizontal"),scrollPrev:v,scrollNext:b,canScrollPrev:N,canScrollNext:j},children:n.jsx("div",{"aria-roledescription":"carousel",className:i.cn("relative",f),"data-slot":"carousel",role:"region",onKeyDownCapture:w,...x,children:d})})}function D({className:e,...r}){const{carouselRef:t,orientation:l}=h();return n.jsx("div",{ref:t,className:i.cn("overflow-hidden",l==="vertical"&&"h-[400px]"),"data-slot":"carousel-content",children:n.jsx("div",{className:i.cn("flex gap-4",l==="horizontal"?"":"h-full flex-col",e),...r})})}function q({className:e,...r}){const{orientation:t}=h();return n.jsx("div",{"aria-roledescription":"slide",className:i.cn("min-w-0 shrink-0 grow-0 basis-full",t==="horizontal"?"pl-1":"pt-1",e),"data-slot":"carousel-item",role:"group",...r})}function B({className:e,variant:r=u.ButtonVariant.OUTLINE,size:t=u.ButtonSize.SM,dataHook:l="carousel-previous",...f}){const{orientation:d,scrollPrev:x,canScrollPrev:C}=h();return n.jsxs(u.Button,{className:i.cn("absolute size-8 rounded-full",d==="horizontal"?"top-1/2 -left-12 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),"data-slot":"carousel-previous",dataHook:l,disabled:!C,size:t,variant:r,onClick:x,...f,children:[n.jsx(m.ArrowLeft,{}),n.jsx("span",{className:"sr-only",children:"Previous slide"})]})}function E({className:e,variant:r=u.ButtonVariant.OUTLINE,size:t=u.ButtonSize.SM,dataHook:l="carousel-next",...f}){const{orientation:d,scrollNext:x,canScrollNext:C}=h();return n.jsxs(u.Button,{className:i.cn("absolute size-8 rounded-full",d==="horizontal"?"top-1/2 -right-12 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),"data-slot":"carousel-next",dataHook:l,disabled:!C,size:t,variant:r,onClick:x,...f,children:[n.jsx(m.ArrowRight,{}),n.jsx("span",{className:"sr-only",children:"Next slide"})]})}exports.Carousel=R;exports.CarouselContent=D;exports.CarouselItem=q;exports.CarouselNext=E;exports.CarouselPrevious=B;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { default as useEmblaCarousel, UseEmblaCarouselType } from 'embla-carousel-react';
|
|
2
|
+
import { Button } from '../button';
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
type CarouselApi = UseEmblaCarouselType[1];
|
|
5
|
+
type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
|
|
6
|
+
type CarouselOptions = UseCarouselParameters[0];
|
|
7
|
+
type CarouselPlugin = UseCarouselParameters[1];
|
|
8
|
+
type CarouselProps = {
|
|
9
|
+
opts?: CarouselOptions;
|
|
10
|
+
plugins?: CarouselPlugin;
|
|
11
|
+
orientation?: "horizontal" | "vertical";
|
|
12
|
+
setApi?: (api: CarouselApi) => void;
|
|
13
|
+
};
|
|
14
|
+
declare function Carousel({ orientation, opts, setApi, plugins, className, children, ...props }: React.ComponentProps<"div"> & CarouselProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function CarouselContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare function CarouselItem({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare function CarouselPrevious({ className, variant, size, dataHook, ...props }: React.ComponentProps<typeof Button>): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare function CarouselNext({ className, variant, size, dataHook, ...props }: React.ComponentProps<typeof Button>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export { type CarouselApi, Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, };
|
|
20
|
+
export type { CarouselProps };
|
|
21
|
+
//# sourceMappingURL=carousel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"carousel.d.ts","sourceRoot":"","sources":["../../src/components/carousel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,gBAAgB,EAAE,EACvB,KAAK,oBAAoB,EAC1B,MAAM,sBAAsB,CAAC;AAI9B,OAAO,EACL,MAAM,EAGP,MAAM,mCAAmC,CAAC;AAE3C,KAAK,WAAW,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC;AAC3C,KAAK,qBAAqB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AACjE,KAAK,eAAe,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAC;AAChD,KAAK,cAAc,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAC;AAE/C,KAAK,aAAa,GAAG;IACnB,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,IAAI,CAAC;CACrC,CAAC;AAuBF,iBAAS,QAAQ,CAAC,EAChB,WAA0B,EAC1B,IAAI,EACJ,MAAM,EACN,OAAO,EACP,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,aAAa,2CAoF7C;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAsB5E;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAgBzE;AAED,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,OAA+B,EAC/B,IAAoB,EACpB,QAA8B,EAC9B,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,2CAwBrC;AAED,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,OAA+B,EAC/B,IAAoB,EACpB,QAA0B,EAC1B,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,2CAwBrC;AAED,OAAO,EACL,KAAK,WAAW,EAChB,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,YAAY,GACb,CAAC;AAEF,YAAY,EAAE,aAAa,EAAE,CAAC"}
|
package/dist/carousel.js
ADDED
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { jsx as a, jsxs as p } from "react/jsx-runtime";
|
|
2
|
+
import * as l from "react";
|
|
3
|
+
import D from "embla-carousel-react";
|
|
4
|
+
import { ArrowLeft as I, ArrowRight as R } from "lucide-react";
|
|
5
|
+
import { cn as i } from "@brightlocal/ui-components/lib/utils";
|
|
6
|
+
import { Button as v, ButtonVariant as N, ButtonSize as w } from "@brightlocal/ui-components/button";
|
|
7
|
+
const S = l.createContext(null);
|
|
8
|
+
function m() {
|
|
9
|
+
const e = l.useContext(S);
|
|
10
|
+
if (!e)
|
|
11
|
+
throw new Error("useCarousel must be used within a <Carousel />");
|
|
12
|
+
return e;
|
|
13
|
+
}
|
|
14
|
+
function j({
|
|
15
|
+
orientation: e = "horizontal",
|
|
16
|
+
opts: r,
|
|
17
|
+
setApi: t,
|
|
18
|
+
plugins: s,
|
|
19
|
+
className: u,
|
|
20
|
+
children: f,
|
|
21
|
+
...d
|
|
22
|
+
}) {
|
|
23
|
+
const [x, o] = D(
|
|
24
|
+
{
|
|
25
|
+
...r,
|
|
26
|
+
axis: e === "horizontal" ? "x" : "y"
|
|
27
|
+
},
|
|
28
|
+
s
|
|
29
|
+
), [b, y] = l.useState(!1), [z, P] = l.useState(!1), c = l.useCallback((n) => {
|
|
30
|
+
n && (y(n.canScrollPrev()), P(n.canScrollNext()));
|
|
31
|
+
}, []), h = l.useCallback(() => {
|
|
32
|
+
o?.scrollPrev();
|
|
33
|
+
}, [o]), C = l.useCallback(() => {
|
|
34
|
+
o?.scrollNext();
|
|
35
|
+
}, [o]), k = l.useCallback(
|
|
36
|
+
(n) => {
|
|
37
|
+
const g = e === "horizontal" ? "ArrowLeft" : "ArrowUp", E = e === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
38
|
+
n.key === g ? (n.preventDefault(), h()) : n.key === E && (n.preventDefault(), C());
|
|
39
|
+
},
|
|
40
|
+
[e, h, C]
|
|
41
|
+
);
|
|
42
|
+
return l.useEffect(() => {
|
|
43
|
+
!o || !t || t(o);
|
|
44
|
+
}, [o, t]), l.useEffect(() => {
|
|
45
|
+
if (o)
|
|
46
|
+
return c(o), o.on("reInit", c), o.on("select", c), () => {
|
|
47
|
+
o?.off("reInit", c), o?.off("select", c);
|
|
48
|
+
};
|
|
49
|
+
}, [o, c]), /* @__PURE__ */ a(
|
|
50
|
+
S.Provider,
|
|
51
|
+
{
|
|
52
|
+
value: {
|
|
53
|
+
carouselRef: x,
|
|
54
|
+
api: o,
|
|
55
|
+
opts: r,
|
|
56
|
+
orientation: e || (r?.axis === "y" ? "vertical" : "horizontal"),
|
|
57
|
+
scrollPrev: h,
|
|
58
|
+
scrollNext: C,
|
|
59
|
+
canScrollPrev: b,
|
|
60
|
+
canScrollNext: z
|
|
61
|
+
},
|
|
62
|
+
children: /* @__PURE__ */ a(
|
|
63
|
+
"div",
|
|
64
|
+
{
|
|
65
|
+
"aria-roledescription": "carousel",
|
|
66
|
+
className: i("relative", u),
|
|
67
|
+
"data-slot": "carousel",
|
|
68
|
+
role: "region",
|
|
69
|
+
onKeyDownCapture: k,
|
|
70
|
+
...d,
|
|
71
|
+
children: f
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
function M({ className: e, ...r }) {
|
|
78
|
+
const { carouselRef: t, orientation: s } = m();
|
|
79
|
+
return /* @__PURE__ */ a(
|
|
80
|
+
"div",
|
|
81
|
+
{
|
|
82
|
+
ref: t,
|
|
83
|
+
className: i(
|
|
84
|
+
"overflow-hidden",
|
|
85
|
+
s === "vertical" && "h-[400px]"
|
|
86
|
+
),
|
|
87
|
+
"data-slot": "carousel-content",
|
|
88
|
+
children: /* @__PURE__ */ a(
|
|
89
|
+
"div",
|
|
90
|
+
{
|
|
91
|
+
className: i(
|
|
92
|
+
"flex gap-4",
|
|
93
|
+
s === "horizontal" ? "" : "h-full flex-col",
|
|
94
|
+
e
|
|
95
|
+
),
|
|
96
|
+
...r
|
|
97
|
+
}
|
|
98
|
+
)
|
|
99
|
+
}
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
function O({ className: e, ...r }) {
|
|
103
|
+
const { orientation: t } = m();
|
|
104
|
+
return /* @__PURE__ */ a(
|
|
105
|
+
"div",
|
|
106
|
+
{
|
|
107
|
+
"aria-roledescription": "slide",
|
|
108
|
+
className: i(
|
|
109
|
+
"min-w-0 shrink-0 grow-0 basis-full",
|
|
110
|
+
t === "horizontal" ? "pl-1" : "pt-1",
|
|
111
|
+
e
|
|
112
|
+
),
|
|
113
|
+
"data-slot": "carousel-item",
|
|
114
|
+
role: "group",
|
|
115
|
+
...r
|
|
116
|
+
}
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
function T({
|
|
120
|
+
className: e,
|
|
121
|
+
variant: r = N.OUTLINE,
|
|
122
|
+
size: t = w.SM,
|
|
123
|
+
dataHook: s = "carousel-previous",
|
|
124
|
+
...u
|
|
125
|
+
}) {
|
|
126
|
+
const { orientation: f, scrollPrev: d, canScrollPrev: x } = m();
|
|
127
|
+
return /* @__PURE__ */ p(
|
|
128
|
+
v,
|
|
129
|
+
{
|
|
130
|
+
className: i(
|
|
131
|
+
"absolute size-8 rounded-full",
|
|
132
|
+
f === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
133
|
+
e
|
|
134
|
+
),
|
|
135
|
+
"data-slot": "carousel-previous",
|
|
136
|
+
dataHook: s,
|
|
137
|
+
disabled: !x,
|
|
138
|
+
size: t,
|
|
139
|
+
variant: r,
|
|
140
|
+
onClick: d,
|
|
141
|
+
...u,
|
|
142
|
+
children: [
|
|
143
|
+
/* @__PURE__ */ a(I, {}),
|
|
144
|
+
/* @__PURE__ */ a("span", { className: "sr-only", children: "Previous slide" })
|
|
145
|
+
]
|
|
146
|
+
}
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
function V({
|
|
150
|
+
className: e,
|
|
151
|
+
variant: r = N.OUTLINE,
|
|
152
|
+
size: t = w.SM,
|
|
153
|
+
dataHook: s = "carousel-next",
|
|
154
|
+
...u
|
|
155
|
+
}) {
|
|
156
|
+
const { orientation: f, scrollNext: d, canScrollNext: x } = m();
|
|
157
|
+
return /* @__PURE__ */ p(
|
|
158
|
+
v,
|
|
159
|
+
{
|
|
160
|
+
className: i(
|
|
161
|
+
"absolute size-8 rounded-full",
|
|
162
|
+
f === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
163
|
+
e
|
|
164
|
+
),
|
|
165
|
+
"data-slot": "carousel-next",
|
|
166
|
+
dataHook: s,
|
|
167
|
+
disabled: !x,
|
|
168
|
+
size: t,
|
|
169
|
+
variant: r,
|
|
170
|
+
onClick: d,
|
|
171
|
+
...u,
|
|
172
|
+
children: [
|
|
173
|
+
/* @__PURE__ */ a(R, {}),
|
|
174
|
+
/* @__PURE__ */ a("span", { className: "sr-only", children: "Next slide" })
|
|
175
|
+
]
|
|
176
|
+
}
|
|
177
|
+
);
|
|
178
|
+
}
|
|
179
|
+
export {
|
|
180
|
+
j as Carousel,
|
|
181
|
+
M as CarouselContent,
|
|
182
|
+
O as CarouselItem,
|
|
183
|
+
V as CarouselNext,
|
|
184
|
+
T as CarouselPrevious
|
|
185
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),x=require("@brightlocal/ui-components/lib/utils");var l=(e=>(e.XL="xl",e.LG="lg",e.MD="md",e.SM="sm",e))(l||{});function a({className:e,breakpoint:s="xl",maxWidth:t,children:n,...r}){const c={xl:"max-w-7xl",lg:"max-w-5xl",md:"max-w-3xl",sm:"max-w-2xl"},o=t!==void 0?{maxWidth:typeof t=="number"?`${t}px`:t}:void 0;return u.jsx("div",{className:x.cn("bg-background flex min-h-screen items-center justify-center p-6",!t&&c[s],e),"data-slot":"centred-layout",style:o,...r,children:n})}exports.CentredLayout=a;exports.CentredLayoutBreakpoint=l;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* CentredLayout provides a responsive centered container with max-width constraints
|
|
4
|
+
* based on different breakpoint sizes.
|
|
5
|
+
*
|
|
6
|
+
* Breakpoints align with Tailwind's default breakpoints:
|
|
7
|
+
* - XL: 1280px (max-w-7xl)
|
|
8
|
+
* - LG: 1024px (max-w-5xl)
|
|
9
|
+
* - MD: 768px (max-w-3xl)
|
|
10
|
+
* - SM: 640px (max-w-2xl)
|
|
11
|
+
*
|
|
12
|
+
* The component centers content horizontally and applies consistent padding
|
|
13
|
+
* across all breakpoints.
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* Breakpoint variants for CentredLayout
|
|
17
|
+
*/
|
|
18
|
+
export declare enum CentredLayoutBreakpoint {
|
|
19
|
+
/**
|
|
20
|
+
* Extra large breakpoint (1280px max-width)
|
|
21
|
+
*/
|
|
22
|
+
XL = "xl",
|
|
23
|
+
/**
|
|
24
|
+
* Large breakpoint (1024px max-width)
|
|
25
|
+
*/
|
|
26
|
+
LG = "lg",
|
|
27
|
+
/**
|
|
28
|
+
* Medium breakpoint (768px max-width)
|
|
29
|
+
*/
|
|
30
|
+
MD = "md",
|
|
31
|
+
/**
|
|
32
|
+
* Small breakpoint (640px max-width)
|
|
33
|
+
*/
|
|
34
|
+
SM = "sm"
|
|
35
|
+
}
|
|
36
|
+
interface CentredLayoutProps extends React.ComponentProps<"div"> {
|
|
37
|
+
/**
|
|
38
|
+
* Breakpoint size variant (default: xl)
|
|
39
|
+
*/
|
|
40
|
+
breakpoint?: CentredLayoutBreakpoint;
|
|
41
|
+
/**
|
|
42
|
+
* Custom max-width value (overrides breakpoint)
|
|
43
|
+
*/
|
|
44
|
+
maxWidth?: string | number;
|
|
45
|
+
}
|
|
46
|
+
declare function CentredLayout({ className, breakpoint, maxWidth, children, ...props }: CentredLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
export { CentredLayout };
|
|
48
|
+
export type { CentredLayoutProps };
|
|
49
|
+
//# sourceMappingURL=centred-layout.d.ts.map
|
|
@@ -0,0 +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;AAI/B;;;;;;;;;;;;GAYG;AAEH;;GAEG;AACH,oBAAY,uBAAuB;IACjC;;OAEG;IACH,EAAE,OAAO;IACT;;OAEG;IACH,EAAE,OAAO;IACT;;OAEG;IACH,EAAE,OAAO;IACT;;OAEG;IACH,EAAE,OAAO;CACV;AAED,UAAU,kBAAmB,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;IAC9D;;OAEG;IACH,UAAU,CAAC,EAAE,uBAAuB,CAAC;IACrC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B;AAED,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,UAAuC,EACvC,QAAQ,EACR,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,kBAAkB,2CA6BpB;AAED,OAAO,EAAE,aAAa,EAAE,CAAC;AAEzB,YAAY,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { cn as n } from "@brightlocal/ui-components/lib/utils";
|
|
3
|
+
var o = /* @__PURE__ */ ((l) => (l.XL = "xl", l.LG = "lg", l.MD = "md", l.SM = "sm", l))(o || {});
|
|
4
|
+
function i({
|
|
5
|
+
className: l,
|
|
6
|
+
breakpoint: s = "xl",
|
|
7
|
+
maxWidth: m,
|
|
8
|
+
children: x,
|
|
9
|
+
...e
|
|
10
|
+
}) {
|
|
11
|
+
const r = {
|
|
12
|
+
xl: "max-w-7xl",
|
|
13
|
+
lg: "max-w-5xl",
|
|
14
|
+
md: "max-w-3xl",
|
|
15
|
+
sm: "max-w-2xl"
|
|
16
|
+
}, t = m !== void 0 ? { maxWidth: typeof m == "number" ? `${m}px` : m } : void 0;
|
|
17
|
+
return /* @__PURE__ */ c(
|
|
18
|
+
"div",
|
|
19
|
+
{
|
|
20
|
+
className: n(
|
|
21
|
+
"bg-background flex min-h-screen items-center justify-center p-6",
|
|
22
|
+
!m && r[s],
|
|
23
|
+
l
|
|
24
|
+
),
|
|
25
|
+
"data-slot": "centred-layout",
|
|
26
|
+
style: t,
|
|
27
|
+
...e,
|
|
28
|
+
children: x
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
i as CentredLayout,
|
|
34
|
+
o as CentredLayoutBreakpoint
|
|
35
|
+
};
|
package/dist/chart.cjs
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),T=require("react"),e=require("recharts"),g=require("@brightlocal/ui-components/lib/utils");function O(r){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const s in r)if(s!=="default"){const n=Object.getOwnPropertyDescriptor(r,s);Object.defineProperty(o,s,n.get?n:{enumerable:!0,get:()=>r[s]})}}return o.default=r,Object.freeze(o)}const j=O(T),y=O(e),_=j.createContext(null);function k(){const r=j.useContext(_);if(!r)throw new Error("useChart must be used within a <ChartContainer />");return r}function L({id:r,className:o,children:s,config:n,dataHook:l,trackingEl:i,trackingLabel:c,...u}){const d=j.useId(),f=`chart-${r||d.replace(/:/g,"")}`;return t.jsx(_.Provider,{value:{config:n},children:t.jsxs("div",{className:g.cn("[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-pie-sector]:stroke-background flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-pie-sector]:stroke-2 [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none [&_svg_g]:outline-none [&_svg_g]:focus:outline-none",o),"data-chart":f,"data-hook":l,"data-slot":"chart-container","data-tracking-el":i,"data-tracking-label":c,...u,children:[t.jsx(R,{config:n,id:f}),t.jsx(y.ResponsiveContainer,{children:s})]})})}L.displayName="ChartContainer";function R({id:r,config:o}){const s=Object.entries(o).filter(([,n])=>n.theme||n.color);return s.length?t.jsx("style",{dangerouslySetInnerHTML:{__html:s.map(([n,l])=>{const i=typeof l.color=="string"?l.color.replace(/^hsl\((.*)\)$/,"$1"):null;return i?`
|
|
2
|
+
[data-chart=${r}] {
|
|
3
|
+
--color-${n}: ${i};
|
|
4
|
+
}
|
|
5
|
+
`:l.theme?Object.entries(l.theme).map(([c,u])=>`
|
|
6
|
+
.${c} [data-chart=${r}] {
|
|
7
|
+
--color-${n}: ${u.replace(/^hsl\((.*)\)$/,"$1")};
|
|
8
|
+
}
|
|
9
|
+
`).join(""):""}).join(`
|
|
10
|
+
`)}}):null}function S({...r}){return t.jsx(y.Tooltip,{...r})}function N({active:r,payload:o,className:s,indicator:n="dot",hideLabel:l=!1,hideIndicator:i=!1,label:c,labelFormatter:u,labelClassName:d,formatter:f,color:w,nameKey:A,labelKey:C}){const{config:b}=k(),v=j.useMemo(()=>{if(l||!o?.length)return null;const[a]=o;if(!a)return null;const x=`${C||a.dataKey||a.name||"value"}`,m=b[x],h=!C&&typeof c=="string"?b[c]?.label||c:m?.label;return u?t.jsx("div",{className:g.cn("font-medium",d),children:u(h,o)}):h?t.jsx("div",{className:g.cn("font-medium",d),children:h}):null},[c,u,o,l,d,b,C]);if(!r||!o?.length)return null;const p=o.length===1&&n!=="dot";return t.jsxs("div",{className:g.cn("border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl",s),"data-slot":"chart-tooltip-content",children:[p?null:v,t.jsx("div",{className:"grid gap-1.5",children:o.map((a,x)=>{const m=`${A||a.name||a.dataKey||"value"}`,h=b[m],P=w||a.color||a.payload.fill||`var(--color-${m})`;return t.jsx("div",{className:g.cn("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",n==="dot"&&"items-center"),children:f&&a?.value!==void 0&&a.name?f(a.value,a.name,a,x,o):t.jsxs(t.Fragment,{children:[h?.icon&&!i?t.jsx(h.icon,{}):!i&&t.jsx("div",{className:g.cn("shrink-0 rounded-[2px]",{"h-2.5 w-2.5":n==="dot","w-1":n==="line","w-0 border-[1.5px] border-dashed bg-transparent":n==="dashed","my-0.5":p&&n==="dashed"}),style:{backgroundColor:n==="dashed"?"transparent":P,borderColor:P}}),t.jsxs("div",{className:g.cn("flex flex-1 justify-between leading-none",p?"items-end":"items-center"),children:[t.jsxs("div",{className:"grid gap-1.5",children:[p?v:null,t.jsx("span",{className:"text-muted-foreground",children:h?.label||a.name})]}),a.value&&t.jsx("span",{className:"text-foreground font-mono font-medium tabular-nums",children:typeof a.value=="number"?a.value.toLocaleString():a.value})]})]})},a.dataKey)})})]})}N.displayName="ChartTooltipContent";function B({...r}){return t.jsx(y.Legend,{...r})}function $({className:r,hideIcon:o=!1,payload:s,verticalAlign:n="bottom",nameKey:l}){const{config:i}=k();return s?.length?t.jsx("div",{className:g.cn("flex items-center justify-center gap-4",n==="top"?"pb-4":"pt-4",r),"data-slot":"chart-legend-content",children:s.map(c=>{const u=`${l||c.dataKey||"value"}`,d=i[u];return t.jsxs("div",{className:g.cn("[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"),children:[d?.icon&&!o?t.jsx(d.icon,{}):t.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:c.color}}),d?.label||c.value]},c.value)})}):null}$.displayName="ChartLegendContent";Object.defineProperty(exports,"Area",{enumerable:!0,get:()=>e.Area});Object.defineProperty(exports,"AreaChart",{enumerable:!0,get:()=>e.AreaChart});Object.defineProperty(exports,"Bar",{enumerable:!0,get:()=>e.Bar});Object.defineProperty(exports,"BarChart",{enumerable:!0,get:()=>e.BarChart});Object.defineProperty(exports,"CartesianGrid",{enumerable:!0,get:()=>e.CartesianGrid});Object.defineProperty(exports,"Cell",{enumerable:!0,get:()=>e.Cell});Object.defineProperty(exports,"ChartLabel",{enumerable:!0,get:()=>e.Label});Object.defineProperty(exports,"ChartsLegend",{enumerable:!0,get:()=>e.Legend});Object.defineProperty(exports,"ChartsTooltip",{enumerable:!0,get:()=>e.Tooltip});Object.defineProperty(exports,"Customized",{enumerable:!0,get:()=>e.Customized});Object.defineProperty(exports,"LabelList",{enumerable:!0,get:()=>e.LabelList});Object.defineProperty(exports,"Line",{enumerable:!0,get:()=>e.Line});Object.defineProperty(exports,"LineChart",{enumerable:!0,get:()=>e.LineChart});Object.defineProperty(exports,"Pie",{enumerable:!0,get:()=>e.Pie});Object.defineProperty(exports,"PieChart",{enumerable:!0,get:()=>e.PieChart});Object.defineProperty(exports,"PolarAngleAxis",{enumerable:!0,get:()=>e.PolarAngleAxis});Object.defineProperty(exports,"PolarGrid",{enumerable:!0,get:()=>e.PolarGrid});Object.defineProperty(exports,"PolarRadiusAxis",{enumerable:!0,get:()=>e.PolarRadiusAxis});Object.defineProperty(exports,"Radar",{enumerable:!0,get:()=>e.Radar});Object.defineProperty(exports,"RadarChart",{enumerable:!0,get:()=>e.RadarChart});Object.defineProperty(exports,"RadialBar",{enumerable:!0,get:()=>e.RadialBar});Object.defineProperty(exports,"RadialBarChart",{enumerable:!0,get:()=>e.RadialBarChart});Object.defineProperty(exports,"Rectangle",{enumerable:!0,get:()=>e.Rectangle});Object.defineProperty(exports,"ReferenceLine",{enumerable:!0,get:()=>e.ReferenceLine});Object.defineProperty(exports,"ResponsiveContainer",{enumerable:!0,get:()=>e.ResponsiveContainer});Object.defineProperty(exports,"Sector",{enumerable:!0,get:()=>e.Sector});Object.defineProperty(exports,"XAxis",{enumerable:!0,get:()=>e.XAxis});Object.defineProperty(exports,"YAxis",{enumerable:!0,get:()=>e.YAxis});exports.ChartContainer=L;exports.ChartLegend=B;exports.ChartLegendContent=$;exports.ChartStyle=R;exports.ChartTooltip=S;exports.ChartTooltipContent=N;
|
package/dist/chart.d.ts
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as RechartsPrimitive from "recharts";
|
|
3
|
+
export interface ChartConfig {
|
|
4
|
+
[key: string]: {
|
|
5
|
+
label?: React.ReactNode;
|
|
6
|
+
icon?: React.ComponentType;
|
|
7
|
+
} & ({
|
|
8
|
+
color?: string;
|
|
9
|
+
theme?: never;
|
|
10
|
+
} | {
|
|
11
|
+
color?: never;
|
|
12
|
+
theme: Record<string, string>;
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
type ChartContextProps = {
|
|
16
|
+
config: ChartConfig;
|
|
17
|
+
};
|
|
18
|
+
interface ChartContainerProps extends React.ComponentProps<"div">, ChartContextProps {
|
|
19
|
+
children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
|
|
20
|
+
config: ChartConfig;
|
|
21
|
+
dataHook: string;
|
|
22
|
+
trackingEl?: string;
|
|
23
|
+
trackingLabel?: string;
|
|
24
|
+
}
|
|
25
|
+
declare function ChartContainer({ id, className, children, config, dataHook, trackingEl, trackingLabel, ...props }: ChartContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
declare namespace ChartContainer {
|
|
27
|
+
var displayName: string;
|
|
28
|
+
}
|
|
29
|
+
declare function ChartStyle({ id, config }: {
|
|
30
|
+
id: string;
|
|
31
|
+
config: ChartConfig;
|
|
32
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
33
|
+
interface ChartTooltipProps extends React.ComponentProps<typeof RechartsPrimitive.Tooltip> {
|
|
34
|
+
hideLabel?: boolean;
|
|
35
|
+
hideIndicator?: boolean;
|
|
36
|
+
indicator?: "line" | "dot" | "dashed";
|
|
37
|
+
nameKey?: string;
|
|
38
|
+
labelKey?: string;
|
|
39
|
+
}
|
|
40
|
+
declare function ChartTooltip({ ...props }: ChartTooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
interface ChartTooltipContentProps extends React.ComponentProps<"div">, Pick<ChartTooltipProps, "hideLabel" | "hideIndicator" | "indicator" | "nameKey" | "labelKey"> {
|
|
42
|
+
labelFormatter?: (value: unknown, payload: unknown[]) => React.ReactNode;
|
|
43
|
+
labelClassName?: string;
|
|
44
|
+
formatter?: (value: unknown, name: string, item: unknown, index: number, payload: unknown[]) => React.ReactNode;
|
|
45
|
+
}
|
|
46
|
+
declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: ChartTooltipContentProps & {
|
|
47
|
+
active?: boolean;
|
|
48
|
+
payload?: Array<{
|
|
49
|
+
dataKey: string;
|
|
50
|
+
value: number | string;
|
|
51
|
+
name?: string;
|
|
52
|
+
color?: string;
|
|
53
|
+
payload: Record<string, unknown>;
|
|
54
|
+
}>;
|
|
55
|
+
label?: string;
|
|
56
|
+
color?: string;
|
|
57
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
58
|
+
declare namespace ChartTooltipContent {
|
|
59
|
+
var displayName: string;
|
|
60
|
+
}
|
|
61
|
+
interface ChartLegendProps extends React.ComponentProps<typeof RechartsPrimitive.Legend> {
|
|
62
|
+
nameKey?: string;
|
|
63
|
+
}
|
|
64
|
+
declare function ChartLegend({ ...props }: ChartLegendProps): import("react/jsx-runtime").JSX.Element;
|
|
65
|
+
interface ChartLegendContentProps extends React.ComponentProps<"div">, Pick<ChartLegendProps, "nameKey"> {
|
|
66
|
+
hideIcon?: boolean;
|
|
67
|
+
payload?: Array<{
|
|
68
|
+
value: string;
|
|
69
|
+
dataKey: string;
|
|
70
|
+
color?: string;
|
|
71
|
+
payload: Record<string, unknown>;
|
|
72
|
+
}>;
|
|
73
|
+
}
|
|
74
|
+
declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: ChartLegendContentProps & {
|
|
75
|
+
verticalAlign?: "top" | "bottom";
|
|
76
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
77
|
+
declare namespace ChartLegendContent {
|
|
78
|
+
var displayName: string;
|
|
79
|
+
}
|
|
80
|
+
export { ChartContainer, ChartTooltip, ChartTooltipContent, ChartLegend, ChartLegendContent, ChartStyle, };
|
|
81
|
+
export type { ChartContainerProps, ChartTooltipProps, ChartTooltipContentProps, ChartLegendProps, ChartLegendContentProps, };
|
|
82
|
+
export { Area, AreaChart, Bar, BarChart, CartesianGrid, Cell, Customized, Label as ChartLabel, LabelList, Legend as ChartsLegend, Line, LineChart, Pie, PieChart, PolarAngleAxis, PolarGrid, PolarRadiusAxis, Radar, RadarChart, RadialBar, RadialBarChart, Rectangle, ReferenceLine, ResponsiveContainer, Sector, Tooltip as ChartsTooltip, XAxis, YAxis, } from 'recharts';
|
|
83
|
+
//# sourceMappingURL=chart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chart.d.ts","sourceRoot":"","sources":["../../src/components/chart.tsx"],"names":[],"mappings":"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"}
|