@bergetai/ui 0.16.2 → 0.17.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/dist/components/alert/Alert.d.cts +1 -1
- package/dist/components/alert/Alert.d.mts +1 -1
- package/dist/components/badge/Badge.d.cts +1 -1
- package/dist/components/badge/Badge.d.mts +1 -1
- package/dist/components/box/Box.d.cts +2 -2
- package/dist/components/box/Box.d.mts +2 -2
- package/dist/components/button/Button.cjs +21 -4
- package/dist/components/button/Button.cjs.map +1 -1
- package/dist/components/button/Button.d.cts +2 -1
- package/dist/components/button/Button.d.cts.map +1 -1
- package/dist/components/button/Button.d.mts +2 -1
- package/dist/components/button/Button.d.mts.map +1 -1
- package/dist/components/button/Button.mjs +19 -5
- package/dist/components/button/Button.mjs.map +1 -1
- package/dist/components/button/anchorVariants.cjs +56 -0
- package/dist/components/button/anchorVariants.cjs.map +1 -0
- package/dist/components/button/anchorVariants.d.cts +45 -0
- package/dist/components/button/anchorVariants.d.cts.map +1 -0
- package/dist/components/button/anchorVariants.d.mts +45 -0
- package/dist/components/button/anchorVariants.d.mts.map +1 -0
- package/dist/components/button/anchorVariants.mjs +55 -0
- package/dist/components/button/anchorVariants.mjs.map +1 -0
- package/dist/components/button/index.d.cts +2 -1
- package/dist/components/button/index.d.mts +2 -1
- package/dist/components/combobox/index.d.cts +2 -0
- package/dist/components/combobox/index.d.mts +2 -0
- package/dist/components/container/Container.d.cts +2 -2
- package/dist/components/container/Container.d.mts +2 -2
- package/dist/components/country-select/CountrySelect.cjs +1 -1
- package/dist/components/country-select/CountrySelect.mjs +1 -1
- package/dist/components/grid/Grid.d.cts +2 -2
- package/dist/components/grid/Grid.d.mts +2 -2
- package/dist/components/popover/index.d.cts +2 -0
- package/dist/components/popover/index.d.mts +2 -0
- package/dist/components/radio-group/index.d.cts +2 -0
- package/dist/components/radio-group/index.d.mts +2 -0
- package/dist/components/tabs/Tabs.cjs +109 -0
- package/dist/components/tabs/Tabs.cjs.map +1 -0
- package/dist/components/tabs/Tabs.d.cts +29 -0
- package/dist/components/tabs/Tabs.d.cts.map +1 -0
- package/dist/components/tabs/Tabs.d.mts +29 -0
- package/dist/components/tabs/Tabs.d.mts.map +1 -0
- package/dist/components/tabs/Tabs.mjs +103 -0
- package/dist/components/tabs/Tabs.mjs.map +1 -0
- package/dist/components/tabs/index.d.cts +2 -0
- package/dist/components/tabs/index.d.mts +2 -0
- package/dist/index.cjs +34 -0
- package/dist/index.d.cts +10 -1
- package/dist/index.d.mts +10 -1
- package/dist/index.mjs +6 -1
- package/dist/primitives/button.d.cts +1 -1
- package/dist/primitives/button.d.mts +1 -1
- package/dist/primitives/combobox.cjs +123 -0
- package/dist/primitives/combobox.cjs.map +1 -0
- package/dist/primitives/combobox.d.cts +25 -0
- package/dist/primitives/combobox.d.cts.map +1 -0
- package/dist/primitives/combobox.d.mts +25 -0
- package/dist/primitives/combobox.d.mts.map +1 -0
- package/dist/primitives/combobox.mjs +111 -0
- package/dist/primitives/combobox.mjs.map +1 -0
- package/dist/primitives/message-scroller.cjs +1 -1
- package/dist/primitives/message-scroller.mjs +1 -1
- package/dist/primitives/popover.cjs +24 -0
- package/dist/primitives/popover.cjs.map +1 -1
- package/dist/primitives/popover.d.cts +12 -0
- package/dist/primitives/popover.d.cts.map +1 -0
- package/dist/primitives/popover.d.mts +12 -0
- package/dist/primitives/popover.d.mts.map +1 -0
- package/dist/primitives/popover.mjs +22 -1
- package/dist/primitives/popover.mjs.map +1 -1
- package/dist/primitives/radio-group.cjs +23 -0
- package/dist/primitives/radio-group.cjs.map +1 -0
- package/dist/primitives/radio-group.d.cts +8 -0
- package/dist/primitives/radio-group.d.cts.map +1 -0
- package/dist/primitives/radio-group.d.mts +8 -0
- package/dist/primitives/radio-group.d.mts.map +1 -0
- package/dist/primitives/radio-group.mjs +22 -0
- package/dist/primitives/radio-group.mjs.map +1 -0
- package/dist/primitives/sidebar.cjs +1 -1
- package/dist/primitives/sidebar.mjs +1 -1
- package/dist/primitives/tabs.cjs +51 -0
- package/dist/primitives/tabs.cjs.map +1 -0
- package/dist/primitives/tabs.d.cts +11 -0
- package/dist/primitives/tabs.d.cts.map +1 -0
- package/dist/primitives/tabs.d.mts +11 -0
- package/dist/primitives/tabs.d.mts.map +1 -0
- package/dist/primitives/tabs.mjs +47 -0
- package/dist/primitives/tabs.mjs.map +1 -0
- package/dist/styles/index.css +29 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anchorVariants.mjs","names":[],"sources":["../../../src/components/button/anchorVariants.tsx"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { cn } from '../../lib/utils';\nimport { buttonVariants } from '../../primitives/button';\nimport type { VariantProps } from 'class-variance-authority';\nimport {\n brandVariantClasses,\n interactionClasses,\n primitiveVariant,\n type CustomVariant,\n} from './Button';\n\n/** Props for {@link anchorVariants}. Consumes like `buttonVariants` with the\n * same variant union as the `Button` wrapper. */\nexport interface AnchorVariantsProps {\n /** Visual style variant — same union as `Button`'s `variant` prop. */\n variant?: CustomVariant;\n /** Full width or auto width. */\n width?: 'default' | 'full';\n /** Button size ladder — maps to the same text scale as `Button`. */\n size?: VariantProps<typeof buttonVariants>['size'];\n /** Extra classes, merged last (same override position as `Button`). */\n className?: string;\n}\n\n/**\n * Class variants for real `<a>` elements styled like `Button` chrome.\n *\n * Base UI's Button enforces button semantics and its docs forbid rendering\n * links through the `render` prop, and the package's `asChild` leaves\n * `nativeButton={true}` — anchors through it keep `role=\"button\"` and log a\n * dev-console error. This helper bakes in exactly the wrapper chrome the\n * `Button` component applies, so consumers can style a plain anchor instead\n * of replicating package internals:\n *\n * ```tsx\n * <a className={anchorVariants({ variant: 'primary', width: 'full' })} href=\"…\">\n * Open dashboard\n * </a>\n * ```\n *\n * Class output is equivalent to `Button variant=… width=…` (ignoring\n * `disabled:*`, which does not apply to anchors), with anchor-safe focus\n * treatment: `:focus-visible` works natively on `<a>` elements, and the\n * shared outline-based focus ring lands the same way.\n */\nexport function anchorVariants({\n variant = 'default',\n width = 'default',\n size,\n className,\n}: AnchorVariantsProps = {}): string {\n const isIcon = typeof size === 'string' && size.startsWith('icon');\n\n return cn(\n buttonVariants({ variant: primitiveVariant(variant), size }),\n // Full-width anchors use the square radius; otherwise pill (same rule\n // as the Button wrapper).\n width === 'full' ? 'rounded-berget-xs' : 'rounded-full',\n // Em-based padding, inline = 2× block, matching the Button wrapper.\n !isIcon && 'h-auto px-[0.8em] py-[0.4em]',\n // Text ladder: default renders at text-base like the wrapper Button.\n !isIcon &&\n (size === 'lg' ? 'text-lg' : size === 'sm' ? 'text-sm' : size === 'xs' ? '' : `text-base`),\n !isIcon && 'font-normal',\n brandVariantClasses(variant),\n interactionClasses,\n width === 'full' && 'w-full',\n className,\n );\n}\n\nexport type AnchorProps = React.ComponentProps<'a'> & AnchorVariantsProps;\n\n/** Ready-to-use anchor styled through {@link anchorVariants}. For cases\n * where a component (rather than a class string) is easier to consume. */\nexport function Anchor({ variant, width, size, className, children, ...props }: AnchorProps) {\n return (\n <a className={anchorVariants({ variant, width, size, className })} {...props}>\n <span className=\"inline-flex items-center gap-2\">{children}</span>\n </a>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CA,SAAgB,eAAe,EAC7B,UAAU,WACV,QAAQ,WACR,MACA,cACuB,CAAC,GAAW;CACnC,MAAM,SAAS,OAAO,SAAS,YAAY,KAAK,WAAW,MAAM;CAEjE,OAAO,GACL,eAAe;EAAE,SAAS,iBAAiB,OAAO;EAAG;CAAK,CAAC,GAG3D,UAAU,SAAS,sBAAsB,gBAEzC,CAAC,UAAU,gCAEX,CAAC,WACE,SAAS,OAAO,YAAY,SAAS,OAAO,YAAY,SAAS,OAAO,KAAK,cAChF,CAAC,UAAU,eACX,oBAAoB,OAAO,GAC3B,oBACA,UAAU,UAAU,UACpB,SACF;AACF;;;AAMA,SAAgB,OAAO,EAAE,SAAS,OAAO,MAAM,WAAW,UAAU,GAAG,SAAsB;CAC3F,OACE,oBAAC,KAAD;EAAG,WAAW,eAAe;GAAE;GAAS;GAAO;GAAM;EAAU,CAAC;EAAG,GAAI;EACrE,UAAA,oBAAC,QAAD;GAAM,WAAU;GAAkC;EAAe,CAAA;CAChE,CAAA;AAEP"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { buttonVariants } from "../../primitives/button.cjs";
|
|
2
2
|
import { Button, ButtonProps } from "./Button.cjs";
|
|
3
|
-
|
|
3
|
+
import { Anchor, AnchorProps, AnchorVariantsProps, anchorVariants } from "./anchorVariants.cjs";
|
|
4
|
+
export { Anchor, type AnchorProps, type AnchorVariantsProps, Button, type ButtonProps, anchorVariants, buttonVariants };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { buttonVariants } from "../../primitives/button.mjs";
|
|
2
2
|
import { Button, ButtonProps } from "./Button.mjs";
|
|
3
|
-
|
|
3
|
+
import { Anchor, AnchorProps, AnchorVariantsProps, anchorVariants } from "./anchorVariants.mjs";
|
|
4
|
+
export { Anchor, type AnchorProps, type AnchorVariantsProps, Button, type ButtonProps, anchorVariants, buttonVariants };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Combobox, ComboboxClear, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxItem, ComboboxList, ComboboxSeparator, ComboboxStatus, ComboboxTrigger, ComboboxValue } from "../../primitives/combobox.cjs";
|
|
2
|
+
export { Combobox, ComboboxClear, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxItem, ComboboxList, ComboboxSeparator, ComboboxStatus, ComboboxTrigger, ComboboxValue };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Combobox, ComboboxClear, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxItem, ComboboxList, ComboboxSeparator, ComboboxStatus, ComboboxTrigger, ComboboxValue } from "../../primitives/combobox.mjs";
|
|
2
|
+
export { Combobox, ComboboxClear, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxItem, ComboboxList, ComboboxSeparator, ComboboxStatus, ComboboxTrigger, ComboboxValue };
|
|
@@ -3,8 +3,8 @@ import { VariantProps } from "class-variance-authority";
|
|
|
3
3
|
import { useRender } from "@base-ui/react/use-render";
|
|
4
4
|
//#region src/components/container/Container.d.ts
|
|
5
5
|
declare const containerVariants: (props?: ({
|
|
6
|
-
size?: "sm" | "
|
|
7
|
-
padding?: "none" | "sm" | "
|
|
6
|
+
size?: "sm" | "lg" | "md" | "xl" | "full" | null | undefined;
|
|
7
|
+
padding?: "none" | "sm" | "lg" | "md" | null | undefined;
|
|
8
8
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
9
|
export interface ContainerProps extends useRender.ComponentProps<'div'>, VariantProps<typeof containerVariants> {
|
|
10
10
|
children?: React.ReactNode;
|
|
@@ -3,8 +3,8 @@ import { VariantProps } from "class-variance-authority";
|
|
|
3
3
|
import { useRender } from "@base-ui/react/use-render";
|
|
4
4
|
//#region src/components/container/Container.d.ts
|
|
5
5
|
declare const containerVariants: (props?: ({
|
|
6
|
-
size?: "sm" | "
|
|
7
|
-
padding?: "none" | "sm" | "
|
|
6
|
+
size?: "sm" | "lg" | "md" | "xl" | "full" | null | undefined;
|
|
7
|
+
padding?: "none" | "sm" | "lg" | "md" | null | undefined;
|
|
8
8
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
9
|
export interface ContainerProps extends useRender.ComponentProps<'div'>, VariantProps<typeof containerVariants> {
|
|
10
10
|
children?: React.ReactNode;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
3
|
const require_utils = require("../../lib/utils.cjs");
|
|
4
|
-
const require_Icon = require("../icon/Icon.cjs");
|
|
5
4
|
const require_popover = require("../../primitives/popover.cjs");
|
|
5
|
+
const require_Icon = require("../icon/Icon.cjs");
|
|
6
6
|
const require_command = require("../../primitives/command.cjs");
|
|
7
7
|
const require_countries = require("./countries.cjs");
|
|
8
8
|
let react = require("react");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "../../lib/utils.mjs";
|
|
3
|
-
import { Icon } from "../icon/Icon.mjs";
|
|
4
3
|
import { Popover, PopoverContent, PopoverTrigger } from "../../primitives/popover.mjs";
|
|
4
|
+
import { Icon } from "../icon/Icon.mjs";
|
|
5
5
|
import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from "../../primitives/command.mjs";
|
|
6
6
|
import { COUNTRIES } from "./countries.mjs";
|
|
7
7
|
import * as React from "react";
|
|
@@ -3,8 +3,8 @@ import { VariantProps } from "class-variance-authority";
|
|
|
3
3
|
import { useRender } from "@base-ui/react/use-render";
|
|
4
4
|
//#region src/components/grid/Grid.d.ts
|
|
5
5
|
declare const gridVariants: (props?: ({
|
|
6
|
-
align?: "center" | "
|
|
7
|
-
justify?: "center" | "
|
|
6
|
+
align?: "center" | "end" | "start" | "stretch" | null | undefined;
|
|
7
|
+
justify?: "center" | "end" | "start" | "between" | "around" | "evenly" | null | undefined;
|
|
8
8
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
9
|
export type SpacingScale = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 10 | 12 | 16 | 20 | 24 | 32 | 40 | 48 | 56 | 64 | 72 | 80 | 96;
|
|
10
10
|
export type GridColsScale = 1 | 2 | 3 | 4 | 6 | 12;
|
|
@@ -3,8 +3,8 @@ import { VariantProps } from "class-variance-authority";
|
|
|
3
3
|
import { useRender } from "@base-ui/react/use-render";
|
|
4
4
|
//#region src/components/grid/Grid.d.ts
|
|
5
5
|
declare const gridVariants: (props?: ({
|
|
6
|
-
align?: "center" | "
|
|
7
|
-
justify?: "center" | "
|
|
6
|
+
align?: "center" | "end" | "start" | "stretch" | null | undefined;
|
|
7
|
+
justify?: "center" | "end" | "start" | "between" | "around" | "evenly" | null | undefined;
|
|
8
8
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
9
|
export type SpacingScale = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 10 | 12 | 16 | 20 | 24 | 32 | 40 | 48 | 56 | 64 | 72 | 80 | 96;
|
|
10
10
|
export type GridColsScale = 1 | 2 | 3 | 4 | 6 | 12;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_utils = require("../../lib/utils.cjs");
|
|
4
|
+
const require_tabs = require("../../primitives/tabs.cjs");
|
|
5
|
+
let react = require("react");
|
|
6
|
+
react = require_runtime.__toESM(react, 1);
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
let class_variance_authority = require("class-variance-authority");
|
|
9
|
+
//#region src/components/tabs/Tabs.tsx
|
|
10
|
+
const TabsIndicatorPrimitive = require("@base-ui/react/tabs").Tabs.Indicator;
|
|
11
|
+
const Tabs = react.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabs.Tabs, {
|
|
12
|
+
ref,
|
|
13
|
+
className,
|
|
14
|
+
...props
|
|
15
|
+
}));
|
|
16
|
+
Tabs.displayName = "Tabs";
|
|
17
|
+
const tabsListVariants = (0, class_variance_authority.cva)(require_utils.cn(`
|
|
18
|
+
group/tabs-list inline-flex w-fit items-center justify-center
|
|
19
|
+
rounded-berget-xs p-[3px] text-berget-muted-foreground
|
|
20
|
+
`, `
|
|
21
|
+
group-data-[orientation=horizontal]/tabs:h-9
|
|
22
|
+
group-data-[orientation=vertical]/tabs:h-fit
|
|
23
|
+
group-data-[orientation=vertical]/tabs:flex-col
|
|
24
|
+
`), {
|
|
25
|
+
variants: { variant: {
|
|
26
|
+
default: "bg-berget-tabs-list-bg",
|
|
27
|
+
line: "relative gap-2 rounded-berget-none bg-transparent"
|
|
28
|
+
} },
|
|
29
|
+
defaultVariants: { variant: "default" }
|
|
30
|
+
});
|
|
31
|
+
const TabsList = react.forwardRef(({ className, variant = "default", children, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_tabs.TabsList, {
|
|
32
|
+
ref,
|
|
33
|
+
"data-variant": variant,
|
|
34
|
+
className: require_utils.cn(tabsListVariants({ variant }), className),
|
|
35
|
+
...props,
|
|
36
|
+
children: [children, variant === "line" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TabsIndicatorPrimitive, { className: require_utils.cn(`
|
|
37
|
+
pointer-events-none absolute z-10 block rounded-berget-full
|
|
38
|
+
bg-berget-tabs-line-indicator transition-[left,top,width,height]
|
|
39
|
+
duration-200 ease-out
|
|
40
|
+
`, `
|
|
41
|
+
group-data-[orientation=horizontal]/tabs:bottom-0
|
|
42
|
+
group-data-[orientation=horizontal]/tabs:left-(--active-tab-left)
|
|
43
|
+
group-data-[orientation=horizontal]/tabs:h-0.5
|
|
44
|
+
group-data-[orientation=horizontal]/tabs:w-(--active-tab-width)
|
|
45
|
+
`, `
|
|
46
|
+
group-data-[orientation=vertical]/tabs:top-(--active-tab-top)
|
|
47
|
+
group-data-[orientation=vertical]/tabs:left-0
|
|
48
|
+
group-data-[orientation=vertical]/tabs:h-(--active-tab-height)
|
|
49
|
+
group-data-[orientation=vertical]/tabs:w-0.5
|
|
50
|
+
`) })]
|
|
51
|
+
}));
|
|
52
|
+
TabsList.displayName = "TabsList";
|
|
53
|
+
const tabsTriggerVariants = (0, class_variance_authority.cva)(require_utils.cn(`
|
|
54
|
+
relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center
|
|
55
|
+
gap-1.5 rounded-berget-xs border border-transparent px-3 py-1.5 text-sm
|
|
56
|
+
font-medium whitespace-nowrap transition-all
|
|
57
|
+
`, `
|
|
58
|
+
group-data-[orientation=vertical]/tabs:w-full
|
|
59
|
+
group-data-[orientation=vertical]/tabs:justify-start
|
|
60
|
+
`, `
|
|
61
|
+
text-berget-foreground-alt
|
|
62
|
+
hover:text-berget-foreground
|
|
63
|
+
`, `
|
|
64
|
+
focus-visible:ring-berget-focus-ring focus-visible:ring-2
|
|
65
|
+
focus-visible:ring-offset-2 focus-visible:ring-offset-berget-tabs-list-bg
|
|
66
|
+
focus-visible:outline-none
|
|
67
|
+
`, `
|
|
68
|
+
disabled:pointer-events-none disabled:opacity-50
|
|
69
|
+
aria-disabled:pointer-events-none aria-disabled:opacity-50
|
|
70
|
+
`, `
|
|
71
|
+
[&_svg]:pointer-events-none [&_svg]:shrink-0
|
|
72
|
+
[&_svg:not([class*=size-])]:size-4
|
|
73
|
+
`, "after:hidden"), {
|
|
74
|
+
variants: { variant: {
|
|
75
|
+
default: require_utils.cn(`
|
|
76
|
+
group-data-[variant=default]/tabs-list:data-active:bg-berget-tabs-trigger-active-bg
|
|
77
|
+
group-data-[variant=default]/tabs-list:data-active:text-berget-tabs-trigger-active-fg
|
|
78
|
+
group-data-[variant=default]/tabs-list:data-active:shadow-berget-sm
|
|
79
|
+
`),
|
|
80
|
+
line: require_utils.cn(`
|
|
81
|
+
group-data-[variant=line]/tabs-list:bg-transparent
|
|
82
|
+
group-data-[variant=line]/tabs-list:hover:bg-berget-surface-hover
|
|
83
|
+
group-data-[variant=line]/tabs-list:data-active:bg-transparent
|
|
84
|
+
group-data-[variant=line]/tabs-list:data-active:text-berget-foreground
|
|
85
|
+
`)
|
|
86
|
+
} },
|
|
87
|
+
defaultVariants: { variant: "default" }
|
|
88
|
+
});
|
|
89
|
+
const TabsTrigger = react.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabs.TabsTrigger, {
|
|
90
|
+
ref,
|
|
91
|
+
className: require_utils.cn(tabsTriggerVariants({ variant }), className),
|
|
92
|
+
...props
|
|
93
|
+
}));
|
|
94
|
+
TabsTrigger.displayName = "TabsTrigger";
|
|
95
|
+
const TabsContent = react.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabs.TabsContent, {
|
|
96
|
+
ref,
|
|
97
|
+
className: require_utils.cn("flex-1 text-sm text-berget-foreground outline-none", className),
|
|
98
|
+
...props
|
|
99
|
+
}));
|
|
100
|
+
TabsContent.displayName = "TabsContent";
|
|
101
|
+
//#endregion
|
|
102
|
+
exports.Tabs = Tabs;
|
|
103
|
+
exports.TabsContent = TabsContent;
|
|
104
|
+
exports.TabsList = TabsList;
|
|
105
|
+
exports.TabsTrigger = TabsTrigger;
|
|
106
|
+
exports.tabsListVariants = tabsListVariants;
|
|
107
|
+
exports.tabsTriggerVariants = tabsTriggerVariants;
|
|
108
|
+
|
|
109
|
+
//# sourceMappingURL=Tabs.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tabs.cjs","names":["TabsBaseUI","React","TabsPrimitive","cva","cn","TabsListPrimitive","TabsTriggerPrimitive","TabsContentPrimitive"],"sources":["../../../src/components/tabs/Tabs.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { Tabs as TabsBaseUI } from '@base-ui/react/tabs';\n\nimport { cn } from '../../lib/utils';\nimport {\n Tabs as TabsPrimitive,\n TabsList as TabsListPrimitive,\n TabsTrigger as TabsTriggerPrimitive,\n TabsContent as TabsContentPrimitive,\n} from '../../primitives/tabs';\n\nconst TabsIndicatorPrimitive = TabsBaseUI.Indicator;\ntype TabsRootProps = React.ComponentProps<typeof TabsPrimitive>;\ntype TabsListPrimitiveProps = React.ComponentProps<typeof TabsListPrimitive>;\ntype TabsTabProps = React.ComponentProps<typeof TabsTriggerPrimitive>;\ntype TabsPanelProps = React.ComponentProps<typeof TabsContentPrimitive>;\n\n/* ------------------------------------------------------------------ */\n/* Root — thin pass-through, Berget gap only */\n/* ------------------------------------------------------------------ */\n\nconst Tabs = React.forwardRef<\n HTMLDivElement,\n Omit<TabsRootProps, 'className'> & {\n className?: string;\n }\n>(({ className, ...props }, ref) => <TabsPrimitive ref={ref} className={className} {...props} />);\nTabs.displayName = 'Tabs';\n\n/* ------------------------------------------------------------------ */\n/* List — Berget tokens + the sliding Indicator for the line variant */\n/* ------------------------------------------------------------------ */\n\nconst tabsListVariants = cva(\n cn(\n `\n group/tabs-list inline-flex w-fit items-center justify-center\n rounded-berget-xs p-[3px] text-berget-muted-foreground\n `,\n `\n group-data-[orientation=horizontal]/tabs:h-9\n group-data-[orientation=vertical]/tabs:h-fit\n group-data-[orientation=vertical]/tabs:flex-col\n `,\n ),\n {\n variants: {\n variant: {\n // Pill / segmented control: recessed track.\n default: 'bg-berget-tabs-list-bg',\n // Underline: transparent track; the Indicator is the underline.\n line: 'relative gap-2 rounded-berget-none bg-transparent',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n },\n);\n\ntype TabsListProps = Omit<TabsListPrimitiveProps, 'className'> &\n VariantProps<typeof tabsListVariants> & {\n className?: string;\n };\n\nconst TabsList = React.forwardRef<HTMLDivElement, TabsListProps>(\n ({ className, variant = 'default', children, ...props }, ref) => (\n <TabsListPrimitive\n ref={ref}\n data-variant={variant}\n className={cn(tabsListVariants({ variant }), className)}\n {...props}\n >\n {children}\n {/* Animated sliding underline — rendered only for the line variant. */}\n {variant === 'line' && (\n <TabsIndicatorPrimitive\n className={cn(\n `\n pointer-events-none absolute z-10 block rounded-berget-full\n bg-berget-tabs-line-indicator transition-[left,top,width,height]\n duration-200 ease-out\n `,\n `\n group-data-[orientation=horizontal]/tabs:bottom-0\n group-data-[orientation=horizontal]/tabs:left-(--active-tab-left)\n group-data-[orientation=horizontal]/tabs:h-0.5\n group-data-[orientation=horizontal]/tabs:w-(--active-tab-width)\n `,\n `\n group-data-[orientation=vertical]/tabs:top-(--active-tab-top)\n group-data-[orientation=vertical]/tabs:left-0\n group-data-[orientation=vertical]/tabs:h-(--active-tab-height)\n group-data-[orientation=vertical]/tabs:w-0.5\n `,\n )}\n />\n )}\n </TabsListPrimitive>\n ),\n);\nTabsList.displayName = 'TabsList';\n\n/* ------------------------------------------------------------------ */\n/* Trigger — Berget-brand active/hover states */\n/* ------------------------------------------------------------------ */\n\nconst tabsTriggerVariants = cva(\n cn(\n `\n relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center\n gap-1.5 rounded-berget-xs border border-transparent px-3 py-1.5 text-sm\n font-medium whitespace-nowrap transition-all\n `,\n `\n group-data-[orientation=vertical]/tabs:w-full\n group-data-[orientation=vertical]/tabs:justify-start\n `,\n // Inactive: dimmed foreground.\n `\n text-berget-foreground-alt\n hover:text-berget-foreground\n `,\n // Focus.\n `\n focus-visible:ring-berget-focus-ring focus-visible:ring-2\n focus-visible:ring-offset-2 focus-visible:ring-offset-berget-tabs-list-bg\n focus-visible:outline-none\n `,\n // Disabled.\n `\n disabled:pointer-events-none disabled:opacity-50\n aria-disabled:pointer-events-none aria-disabled:opacity-50\n `,\n // Icons sized by the component, no manual sizing classes.\n `\n [&_svg]:pointer-events-none [&_svg]:shrink-0\n [&_svg:not([class*=size-])]:size-4\n `,\n // Hide the primitive's line-variant underline — Berget uses the sliding Indicator.\n 'after:hidden',\n ),\n {\n variants: {\n variant: {\n // Pill: active trigger lifts to the background surface.\n default: cn(\n `\n group-data-[variant=default]/tabs-list:data-active:bg-berget-tabs-trigger-active-bg\n group-data-[variant=default]/tabs-list:data-active:text-berget-tabs-trigger-active-fg\n group-data-[variant=default]/tabs-list:data-active:shadow-berget-sm\n `,\n ),\n // Underline: transparent trigger; the list's Indicator is the cue.\n line: cn(\n `\n group-data-[variant=line]/tabs-list:bg-transparent\n group-data-[variant=line]/tabs-list:hover:bg-berget-surface-hover\n group-data-[variant=line]/tabs-list:data-active:bg-transparent\n group-data-[variant=line]/tabs-list:data-active:text-berget-foreground\n `,\n ),\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n },\n);\n\ntype TabsTriggerProps = Omit<TabsTabProps, 'className'> &\n VariantProps<typeof tabsTriggerVariants> & {\n className?: string;\n };\n\nconst TabsTrigger = React.forwardRef<HTMLButtonElement, TabsTriggerProps>(\n ({ className, variant, ...props }, ref) => (\n <TabsTriggerPrimitive\n ref={ref}\n className={cn(tabsTriggerVariants({ variant }), className)}\n {...props}\n />\n ),\n);\nTabsTrigger.displayName = 'TabsTrigger';\n\n/* ------------------------------------------------------------------ */\n/* Content */\n/* ------------------------------------------------------------------ */\n\nconst TabsContent = React.forwardRef<\n HTMLDivElement,\n Omit<TabsPanelProps, 'className'> & { className?: string }\n>(({ className, ...props }, ref) => (\n <TabsContentPrimitive\n ref={ref}\n className={cn('flex-1 text-sm text-berget-foreground outline-none', className)}\n {...props}\n />\n));\nTabsContent.displayName = 'TabsContent';\n\n/* ------------------------------------------------------------------ */\n/* Exports */\n/* ------------------------------------------------------------------ */\n\nexport { Tabs, TabsList, TabsTrigger, TabsContent, tabsListVariants, tabsTriggerVariants };\n"],"mappings":";;;;;;;;;AAeA,MAAM,yB,6BAAyBA,CAAAA,CAAAA,KAAW;AAU1C,MAAM,OAAOC,MAAM,YAKhB,EAAE,WAAW,GAAG,SAAS,QAAQ,iBAAA,GAAA,kBAAA,IAAA,CAACC,aAAAA,MAAD;CAAoB;CAAgB;CAAW,GAAI;AAAQ,CAAA,CAAC;AAChG,KAAK,cAAc;AAMnB,MAAM,oBAAA,GAAmBC,yBAAAA,IAAAA,CACvBC,cAAAA,GACE;;;OAIA;;;;KAKF,GACA;CACE,UAAU,EACR,SAAS;EAEP,SAAS;EAET,MAAM;CACR,EACF;CACA,iBAAiB,EACf,SAAS,UACX;AACF,CACF;AAOA,MAAM,WAAWH,MAAM,YACpB,EAAE,WAAW,UAAU,WAAW,UAAU,GAAG,SAAS,QACvD,iBAAA,GAAA,kBAAA,KAAA,CAACI,aAAAA,UAAD;CACO;CACL,gBAAc;CACd,WAAWD,cAAAA,GAAG,iBAAiB,EAAE,QAAQ,CAAC,GAAG,SAAS;CACtD,GAAI;CAJN,UAAA,CAMG,UAEA,YAAY,UACX,iBAAA,GAAA,kBAAA,IAAA,CAAC,wBAAD,EACE,WAAWA,cAAAA,GACT;;;;eAKA;;;;;eAMA;;;;;aAMF,EACD,CAAA,CAEc;AAEvB,CAAA,CAAA;AACA,SAAS,cAAc;AAMvB,MAAM,uBAAA,GAAsBD,yBAAAA,IAAAA,CAC1BC,cAAAA,GACE;;;;OAKA;;;OAKA;;;OAKA;;;;OAMA;;;OAKA;;;OAKA,cACF,GACA;CACE,UAAU,EACR,SAAS;EAEP,SAASA,cAAAA,GACP;;;;WAKF;EAEA,MAAMA,cAAAA,GACJ;;;;;WAMF;CACF,EACF;CACA,iBAAiB,EACf,SAAS,UACX;AACF,CACF;AAOA,MAAM,cAAcH,MAAM,YACvB,EAAE,WAAW,SAAS,GAAG,SAAS,QACjC,iBAAA,GAAA,kBAAA,IAAA,CAACK,aAAAA,aAAD;CACO;CACL,WAAWF,cAAAA,GAAG,oBAAoB,EAAE,QAAQ,CAAC,GAAG,SAAS;CACzD,GAAI;AACL,CAAA,CAEL;AACA,YAAY,cAAc;AAM1B,MAAM,cAAcH,MAAM,YAGvB,EAAE,WAAW,GAAG,SAAS,QAC1B,iBAAA,GAAA,kBAAA,IAAA,CAACM,aAAAA,aAAD;CACO;CACL,WAAWH,cAAAA,GAAG,sDAAsD,SAAS;CAC7E,GAAI;AACL,CAAA,CACF;AACD,YAAY,cAAc"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { TabsList as TabsList$1, TabsTrigger as TabsTrigger$1 } from "../../primitives/tabs.cjs";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { VariantProps } from "class-variance-authority";
|
|
4
|
+
//#region src/components/tabs/Tabs.d.ts
|
|
5
|
+
type TabsListPrimitiveProps = React.ComponentProps<typeof TabsList$1>;
|
|
6
|
+
type TabsTabProps = React.ComponentProps<typeof TabsTrigger$1>;
|
|
7
|
+
declare const Tabs: React.ForwardRefExoticComponent<Omit<Omit<import("@base-ui/react").TabsRootProps, "className"> & {
|
|
8
|
+
className?: string;
|
|
9
|
+
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
declare const tabsListVariants: (props?: ({
|
|
11
|
+
variant?: "line" | "default" | null | undefined;
|
|
12
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
13
|
+
type TabsListProps = Omit<TabsListPrimitiveProps, 'className'> & VariantProps<typeof tabsListVariants> & {
|
|
14
|
+
className?: string;
|
|
15
|
+
};
|
|
16
|
+
declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsListProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
declare const tabsTriggerVariants: (props?: ({
|
|
18
|
+
variant?: "line" | "default" | null | undefined;
|
|
19
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
20
|
+
type TabsTriggerProps = Omit<TabsTabProps, 'className'> & VariantProps<typeof tabsTriggerVariants> & {
|
|
21
|
+
className?: string;
|
|
22
|
+
};
|
|
23
|
+
declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
24
|
+
declare const TabsContent: React.ForwardRefExoticComponent<Omit<Omit<import("@base-ui/react").TabsPanelProps, "className"> & {
|
|
25
|
+
className?: string;
|
|
26
|
+
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { Tabs, TabsContent, TabsList, TabsTrigger, tabsListVariants, tabsTriggerVariants };
|
|
29
|
+
//# sourceMappingURL=Tabs.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tabs.d.cts","names":["TabsListPrimitive","TabsTriggerPrimitive"],"sources":["../../../src/components/tabs/Tabs.tsx"],"mappings":";;;;KAiBK,yBAAyB,MAAM,sBAAsBA;KACrD,eAAe,MAAM,sBAAsBC;cAO1C,MAAI,MAAA,0BAAA,KAAA,8BAAA;EAGM;YAEiF,MAAA,cAAA;cAO3F,mBAAgB;;6CAyBrB;KAEI,gBAAgB,KAAK,uCACxB,oBAAoB;EAClB;;cAGE,UAAQ,MAAA,0BAAA,KAAA,wBAAA,MAAA,cAAA;cA0CR,sBAAmB;;6CA6DxB;KAEI,mBAAmB,KAAK,6BAC3B,oBAAoB;EAClB;;cAGE,aAAW,MAAA,0BAAA,KAAA,2BAAA,MAAA,cAAA;cAeX,aAAW,MAAA,0BAAA,KAAA,8BAAA;EAEmC;YAOlD,MAAA,cAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { TabsList as TabsList$1, TabsTrigger as TabsTrigger$1 } from "../../primitives/tabs.mjs";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { VariantProps } from "class-variance-authority";
|
|
4
|
+
//#region src/components/tabs/Tabs.d.ts
|
|
5
|
+
type TabsListPrimitiveProps = React.ComponentProps<typeof TabsList$1>;
|
|
6
|
+
type TabsTabProps = React.ComponentProps<typeof TabsTrigger$1>;
|
|
7
|
+
declare const Tabs: React.ForwardRefExoticComponent<Omit<Omit<import("@base-ui/react").TabsRootProps, "className"> & {
|
|
8
|
+
className?: string;
|
|
9
|
+
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
declare const tabsListVariants: (props?: ({
|
|
11
|
+
variant?: "line" | "default" | null | undefined;
|
|
12
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
13
|
+
type TabsListProps = Omit<TabsListPrimitiveProps, 'className'> & VariantProps<typeof tabsListVariants> & {
|
|
14
|
+
className?: string;
|
|
15
|
+
};
|
|
16
|
+
declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsListProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
declare const tabsTriggerVariants: (props?: ({
|
|
18
|
+
variant?: "line" | "default" | null | undefined;
|
|
19
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
20
|
+
type TabsTriggerProps = Omit<TabsTabProps, 'className'> & VariantProps<typeof tabsTriggerVariants> & {
|
|
21
|
+
className?: string;
|
|
22
|
+
};
|
|
23
|
+
declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
24
|
+
declare const TabsContent: React.ForwardRefExoticComponent<Omit<Omit<import("@base-ui/react").TabsPanelProps, "className"> & {
|
|
25
|
+
className?: string;
|
|
26
|
+
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { Tabs, TabsContent, TabsList, TabsTrigger, tabsListVariants, tabsTriggerVariants };
|
|
29
|
+
//# sourceMappingURL=Tabs.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tabs.d.mts","names":["TabsListPrimitive","TabsTriggerPrimitive"],"sources":["../../../src/components/tabs/Tabs.tsx"],"mappings":";;;;KAiBK,yBAAyB,MAAM,sBAAsBA;KACrD,eAAe,MAAM,sBAAsBC;cAO1C,MAAI,MAAA,0BAAA,KAAA,8BAAA;EAGM;YAEiF,MAAA,cAAA;cAO3F,mBAAgB;;6CAyBrB;KAEI,gBAAgB,KAAK,uCACxB,oBAAoB;EAClB;;cAGE,UAAQ,MAAA,0BAAA,KAAA,wBAAA,MAAA,cAAA;cA0CR,sBAAmB;;6CA6DxB;KAEI,mBAAmB,KAAK,6BAC3B,oBAAoB;EAClB;;cAGE,aAAW,MAAA,0BAAA,KAAA,2BAAA,MAAA,cAAA;cAeX,aAAW,MAAA,0BAAA,KAAA,8BAAA;EAEmC;YAOlD,MAAA,cAAA"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn } from "../../lib/utils.mjs";
|
|
3
|
+
import { Tabs as Tabs$2, TabsContent as TabsContent$1, TabsList as TabsList$1, TabsTrigger as TabsTrigger$1 } from "../../primitives/tabs.mjs";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { cva } from "class-variance-authority";
|
|
7
|
+
import { Tabs } from "@base-ui/react/tabs";
|
|
8
|
+
//#region src/components/tabs/Tabs.tsx
|
|
9
|
+
const TabsIndicatorPrimitive = Tabs.Indicator;
|
|
10
|
+
const Tabs$1 = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(Tabs$2, {
|
|
11
|
+
ref,
|
|
12
|
+
className,
|
|
13
|
+
...props
|
|
14
|
+
}));
|
|
15
|
+
Tabs$1.displayName = "Tabs";
|
|
16
|
+
const tabsListVariants = cva(cn(`
|
|
17
|
+
group/tabs-list inline-flex w-fit items-center justify-center
|
|
18
|
+
rounded-berget-xs p-[3px] text-berget-muted-foreground
|
|
19
|
+
`, `
|
|
20
|
+
group-data-[orientation=horizontal]/tabs:h-9
|
|
21
|
+
group-data-[orientation=vertical]/tabs:h-fit
|
|
22
|
+
group-data-[orientation=vertical]/tabs:flex-col
|
|
23
|
+
`), {
|
|
24
|
+
variants: { variant: {
|
|
25
|
+
default: "bg-berget-tabs-list-bg",
|
|
26
|
+
line: "relative gap-2 rounded-berget-none bg-transparent"
|
|
27
|
+
} },
|
|
28
|
+
defaultVariants: { variant: "default" }
|
|
29
|
+
});
|
|
30
|
+
const TabsList = React.forwardRef(({ className, variant = "default", children, ...props }, ref) => /* @__PURE__ */ jsxs(TabsList$1, {
|
|
31
|
+
ref,
|
|
32
|
+
"data-variant": variant,
|
|
33
|
+
className: cn(tabsListVariants({ variant }), className),
|
|
34
|
+
...props,
|
|
35
|
+
children: [children, variant === "line" && /* @__PURE__ */ jsx(TabsIndicatorPrimitive, { className: cn(`
|
|
36
|
+
pointer-events-none absolute z-10 block rounded-berget-full
|
|
37
|
+
bg-berget-tabs-line-indicator transition-[left,top,width,height]
|
|
38
|
+
duration-200 ease-out
|
|
39
|
+
`, `
|
|
40
|
+
group-data-[orientation=horizontal]/tabs:bottom-0
|
|
41
|
+
group-data-[orientation=horizontal]/tabs:left-(--active-tab-left)
|
|
42
|
+
group-data-[orientation=horizontal]/tabs:h-0.5
|
|
43
|
+
group-data-[orientation=horizontal]/tabs:w-(--active-tab-width)
|
|
44
|
+
`, `
|
|
45
|
+
group-data-[orientation=vertical]/tabs:top-(--active-tab-top)
|
|
46
|
+
group-data-[orientation=vertical]/tabs:left-0
|
|
47
|
+
group-data-[orientation=vertical]/tabs:h-(--active-tab-height)
|
|
48
|
+
group-data-[orientation=vertical]/tabs:w-0.5
|
|
49
|
+
`) })]
|
|
50
|
+
}));
|
|
51
|
+
TabsList.displayName = "TabsList";
|
|
52
|
+
const tabsTriggerVariants = cva(cn(`
|
|
53
|
+
relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center
|
|
54
|
+
gap-1.5 rounded-berget-xs border border-transparent px-3 py-1.5 text-sm
|
|
55
|
+
font-medium whitespace-nowrap transition-all
|
|
56
|
+
`, `
|
|
57
|
+
group-data-[orientation=vertical]/tabs:w-full
|
|
58
|
+
group-data-[orientation=vertical]/tabs:justify-start
|
|
59
|
+
`, `
|
|
60
|
+
text-berget-foreground-alt
|
|
61
|
+
hover:text-berget-foreground
|
|
62
|
+
`, `
|
|
63
|
+
focus-visible:ring-berget-focus-ring focus-visible:ring-2
|
|
64
|
+
focus-visible:ring-offset-2 focus-visible:ring-offset-berget-tabs-list-bg
|
|
65
|
+
focus-visible:outline-none
|
|
66
|
+
`, `
|
|
67
|
+
disabled:pointer-events-none disabled:opacity-50
|
|
68
|
+
aria-disabled:pointer-events-none aria-disabled:opacity-50
|
|
69
|
+
`, `
|
|
70
|
+
[&_svg]:pointer-events-none [&_svg]:shrink-0
|
|
71
|
+
[&_svg:not([class*=size-])]:size-4
|
|
72
|
+
`, "after:hidden"), {
|
|
73
|
+
variants: { variant: {
|
|
74
|
+
default: cn(`
|
|
75
|
+
group-data-[variant=default]/tabs-list:data-active:bg-berget-tabs-trigger-active-bg
|
|
76
|
+
group-data-[variant=default]/tabs-list:data-active:text-berget-tabs-trigger-active-fg
|
|
77
|
+
group-data-[variant=default]/tabs-list:data-active:shadow-berget-sm
|
|
78
|
+
`),
|
|
79
|
+
line: cn(`
|
|
80
|
+
group-data-[variant=line]/tabs-list:bg-transparent
|
|
81
|
+
group-data-[variant=line]/tabs-list:hover:bg-berget-surface-hover
|
|
82
|
+
group-data-[variant=line]/tabs-list:data-active:bg-transparent
|
|
83
|
+
group-data-[variant=line]/tabs-list:data-active:text-berget-foreground
|
|
84
|
+
`)
|
|
85
|
+
} },
|
|
86
|
+
defaultVariants: { variant: "default" }
|
|
87
|
+
});
|
|
88
|
+
const TabsTrigger = React.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx(TabsTrigger$1, {
|
|
89
|
+
ref,
|
|
90
|
+
className: cn(tabsTriggerVariants({ variant }), className),
|
|
91
|
+
...props
|
|
92
|
+
}));
|
|
93
|
+
TabsTrigger.displayName = "TabsTrigger";
|
|
94
|
+
const TabsContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(TabsContent$1, {
|
|
95
|
+
ref,
|
|
96
|
+
className: cn("flex-1 text-sm text-berget-foreground outline-none", className),
|
|
97
|
+
...props
|
|
98
|
+
}));
|
|
99
|
+
TabsContent.displayName = "TabsContent";
|
|
100
|
+
//#endregion
|
|
101
|
+
export { Tabs$1 as Tabs, TabsContent, TabsList, TabsTrigger, tabsListVariants, tabsTriggerVariants };
|
|
102
|
+
|
|
103
|
+
//# sourceMappingURL=Tabs.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tabs.mjs","names":["TabsBaseUI","Tabs","TabsPrimitive","TabsListPrimitive","TabsTriggerPrimitive","TabsContentPrimitive"],"sources":["../../../src/components/tabs/Tabs.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { Tabs as TabsBaseUI } from '@base-ui/react/tabs';\n\nimport { cn } from '../../lib/utils';\nimport {\n Tabs as TabsPrimitive,\n TabsList as TabsListPrimitive,\n TabsTrigger as TabsTriggerPrimitive,\n TabsContent as TabsContentPrimitive,\n} from '../../primitives/tabs';\n\nconst TabsIndicatorPrimitive = TabsBaseUI.Indicator;\ntype TabsRootProps = React.ComponentProps<typeof TabsPrimitive>;\ntype TabsListPrimitiveProps = React.ComponentProps<typeof TabsListPrimitive>;\ntype TabsTabProps = React.ComponentProps<typeof TabsTriggerPrimitive>;\ntype TabsPanelProps = React.ComponentProps<typeof TabsContentPrimitive>;\n\n/* ------------------------------------------------------------------ */\n/* Root — thin pass-through, Berget gap only */\n/* ------------------------------------------------------------------ */\n\nconst Tabs = React.forwardRef<\n HTMLDivElement,\n Omit<TabsRootProps, 'className'> & {\n className?: string;\n }\n>(({ className, ...props }, ref) => <TabsPrimitive ref={ref} className={className} {...props} />);\nTabs.displayName = 'Tabs';\n\n/* ------------------------------------------------------------------ */\n/* List — Berget tokens + the sliding Indicator for the line variant */\n/* ------------------------------------------------------------------ */\n\nconst tabsListVariants = cva(\n cn(\n `\n group/tabs-list inline-flex w-fit items-center justify-center\n rounded-berget-xs p-[3px] text-berget-muted-foreground\n `,\n `\n group-data-[orientation=horizontal]/tabs:h-9\n group-data-[orientation=vertical]/tabs:h-fit\n group-data-[orientation=vertical]/tabs:flex-col\n `,\n ),\n {\n variants: {\n variant: {\n // Pill / segmented control: recessed track.\n default: 'bg-berget-tabs-list-bg',\n // Underline: transparent track; the Indicator is the underline.\n line: 'relative gap-2 rounded-berget-none bg-transparent',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n },\n);\n\ntype TabsListProps = Omit<TabsListPrimitiveProps, 'className'> &\n VariantProps<typeof tabsListVariants> & {\n className?: string;\n };\n\nconst TabsList = React.forwardRef<HTMLDivElement, TabsListProps>(\n ({ className, variant = 'default', children, ...props }, ref) => (\n <TabsListPrimitive\n ref={ref}\n data-variant={variant}\n className={cn(tabsListVariants({ variant }), className)}\n {...props}\n >\n {children}\n {/* Animated sliding underline — rendered only for the line variant. */}\n {variant === 'line' && (\n <TabsIndicatorPrimitive\n className={cn(\n `\n pointer-events-none absolute z-10 block rounded-berget-full\n bg-berget-tabs-line-indicator transition-[left,top,width,height]\n duration-200 ease-out\n `,\n `\n group-data-[orientation=horizontal]/tabs:bottom-0\n group-data-[orientation=horizontal]/tabs:left-(--active-tab-left)\n group-data-[orientation=horizontal]/tabs:h-0.5\n group-data-[orientation=horizontal]/tabs:w-(--active-tab-width)\n `,\n `\n group-data-[orientation=vertical]/tabs:top-(--active-tab-top)\n group-data-[orientation=vertical]/tabs:left-0\n group-data-[orientation=vertical]/tabs:h-(--active-tab-height)\n group-data-[orientation=vertical]/tabs:w-0.5\n `,\n )}\n />\n )}\n </TabsListPrimitive>\n ),\n);\nTabsList.displayName = 'TabsList';\n\n/* ------------------------------------------------------------------ */\n/* Trigger — Berget-brand active/hover states */\n/* ------------------------------------------------------------------ */\n\nconst tabsTriggerVariants = cva(\n cn(\n `\n relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center\n gap-1.5 rounded-berget-xs border border-transparent px-3 py-1.5 text-sm\n font-medium whitespace-nowrap transition-all\n `,\n `\n group-data-[orientation=vertical]/tabs:w-full\n group-data-[orientation=vertical]/tabs:justify-start\n `,\n // Inactive: dimmed foreground.\n `\n text-berget-foreground-alt\n hover:text-berget-foreground\n `,\n // Focus.\n `\n focus-visible:ring-berget-focus-ring focus-visible:ring-2\n focus-visible:ring-offset-2 focus-visible:ring-offset-berget-tabs-list-bg\n focus-visible:outline-none\n `,\n // Disabled.\n `\n disabled:pointer-events-none disabled:opacity-50\n aria-disabled:pointer-events-none aria-disabled:opacity-50\n `,\n // Icons sized by the component, no manual sizing classes.\n `\n [&_svg]:pointer-events-none [&_svg]:shrink-0\n [&_svg:not([class*=size-])]:size-4\n `,\n // Hide the primitive's line-variant underline — Berget uses the sliding Indicator.\n 'after:hidden',\n ),\n {\n variants: {\n variant: {\n // Pill: active trigger lifts to the background surface.\n default: cn(\n `\n group-data-[variant=default]/tabs-list:data-active:bg-berget-tabs-trigger-active-bg\n group-data-[variant=default]/tabs-list:data-active:text-berget-tabs-trigger-active-fg\n group-data-[variant=default]/tabs-list:data-active:shadow-berget-sm\n `,\n ),\n // Underline: transparent trigger; the list's Indicator is the cue.\n line: cn(\n `\n group-data-[variant=line]/tabs-list:bg-transparent\n group-data-[variant=line]/tabs-list:hover:bg-berget-surface-hover\n group-data-[variant=line]/tabs-list:data-active:bg-transparent\n group-data-[variant=line]/tabs-list:data-active:text-berget-foreground\n `,\n ),\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n },\n);\n\ntype TabsTriggerProps = Omit<TabsTabProps, 'className'> &\n VariantProps<typeof tabsTriggerVariants> & {\n className?: string;\n };\n\nconst TabsTrigger = React.forwardRef<HTMLButtonElement, TabsTriggerProps>(\n ({ className, variant, ...props }, ref) => (\n <TabsTriggerPrimitive\n ref={ref}\n className={cn(tabsTriggerVariants({ variant }), className)}\n {...props}\n />\n ),\n);\nTabsTrigger.displayName = 'TabsTrigger';\n\n/* ------------------------------------------------------------------ */\n/* Content */\n/* ------------------------------------------------------------------ */\n\nconst TabsContent = React.forwardRef<\n HTMLDivElement,\n Omit<TabsPanelProps, 'className'> & { className?: string }\n>(({ className, ...props }, ref) => (\n <TabsContentPrimitive\n ref={ref}\n className={cn('flex-1 text-sm text-berget-foreground outline-none', className)}\n {...props}\n />\n));\nTabsContent.displayName = 'TabsContent';\n\n/* ------------------------------------------------------------------ */\n/* Exports */\n/* ------------------------------------------------------------------ */\n\nexport { Tabs, TabsList, TabsTrigger, TabsContent, tabsListVariants, tabsTriggerVariants };\n"],"mappings":";;;;;;;;AAeA,MAAM,yBAAyBA,KAAW;AAU1C,MAAMC,SAAO,MAAM,YAKhB,EAAE,WAAW,GAAG,SAAS,QAAQ,oBAACC,QAAD;CAAoB;CAAgB;CAAW,GAAI;AAAQ,CAAA,CAAC;AAChG,OAAK,cAAc;AAMnB,MAAM,mBAAmB,IACvB,GACE;;;OAIA;;;;KAKF,GACA;CACE,UAAU,EACR,SAAS;EAEP,SAAS;EAET,MAAM;CACR,EACF;CACA,iBAAiB,EACf,SAAS,UACX;AACF,CACF;AAOA,MAAM,WAAW,MAAM,YACpB,EAAE,WAAW,UAAU,WAAW,UAAU,GAAG,SAAS,QACvD,qBAACC,YAAD;CACO;CACL,gBAAc;CACd,WAAW,GAAG,iBAAiB,EAAE,QAAQ,CAAC,GAAG,SAAS;CACtD,GAAI;CAJN,UAAA,CAMG,UAEA,YAAY,UACX,oBAAC,wBAAD,EACE,WAAW,GACT;;;;eAKA;;;;;eAMA;;;;;aAMF,EACD,CAAA,CAEc;AAEvB,CAAA,CAAA;AACA,SAAS,cAAc;AAMvB,MAAM,sBAAsB,IAC1B,GACE;;;;OAKA;;;OAKA;;;OAKA;;;;OAMA;;;OAKA;;;OAKA,cACF,GACA;CACE,UAAU,EACR,SAAS;EAEP,SAAS,GACP;;;;WAKF;EAEA,MAAM,GACJ;;;;;WAMF;CACF,EACF;CACA,iBAAiB,EACf,SAAS,UACX;AACF,CACF;AAOA,MAAM,cAAc,MAAM,YACvB,EAAE,WAAW,SAAS,GAAG,SAAS,QACjC,oBAACC,eAAD;CACO;CACL,WAAW,GAAG,oBAAoB,EAAE,QAAQ,CAAC,GAAG,SAAS;CACzD,GAAI;AACL,CAAA,CAEL;AACA,YAAY,cAAc;AAM1B,MAAM,cAAc,MAAM,YAGvB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAACC,eAAD;CACO;CACL,WAAW,GAAG,sDAAsD,SAAS;CAC7E,GAAI;AACL,CAAA,CACF;AACD,YAAY,cAAc"}
|
package/dist/index.cjs
CHANGED
|
@@ -3,6 +3,11 @@ const require_ThemeProvider = require("./components/theme-provider/ThemeProvider
|
|
|
3
3
|
const require_ThemeToggle = require("./components/theme-provider/ThemeToggle.cjs");
|
|
4
4
|
const require_button = require("./primitives/button.cjs");
|
|
5
5
|
const require_Button = require("./components/button/Button.cjs");
|
|
6
|
+
const require_anchorVariants = require("./components/button/anchorVariants.cjs");
|
|
7
|
+
const require_popover = require("./primitives/popover.cjs");
|
|
8
|
+
const require_combobox = require("./primitives/combobox.cjs");
|
|
9
|
+
const require_radio_group = require("./primitives/radio-group.cjs");
|
|
10
|
+
const require_Tabs = require("./components/tabs/Tabs.cjs");
|
|
6
11
|
const require_bubble = require("./primitives/bubble.cjs");
|
|
7
12
|
const require_message = require("./primitives/message.cjs");
|
|
8
13
|
const require_message_scroller = require("./primitives/message-scroller.cjs");
|
|
@@ -71,6 +76,7 @@ exports.AlertDialogPortal = require_AlertDialog.AlertDialogPortal;
|
|
|
71
76
|
exports.AlertDialogTitle = require_AlertDialog.AlertDialogTitle;
|
|
72
77
|
exports.AlertDialogTrigger = require_AlertDialog.AlertDialogTrigger;
|
|
73
78
|
exports.AlertTitle = require_alert.AlertTitle;
|
|
79
|
+
exports.Anchor = require_anchorVariants.Anchor;
|
|
74
80
|
exports.Badge = require_Badge.Badge;
|
|
75
81
|
exports.BergetLogo = require_BergetLogo.BergetLogo;
|
|
76
82
|
exports.Box = require_Box.Box;
|
|
@@ -89,6 +95,19 @@ exports.CardHeader = require_card.CardHeader;
|
|
|
89
95
|
exports.CardTitle = require_card.CardTitle;
|
|
90
96
|
exports.Checkbox = require_Checkbox.Checkbox;
|
|
91
97
|
exports.CodeBlock = require_CodeBlock.CodeBlock;
|
|
98
|
+
exports.Combobox = require_combobox.Combobox;
|
|
99
|
+
exports.ComboboxClear = require_combobox.ComboboxClear;
|
|
100
|
+
exports.ComboboxContent = require_combobox.ComboboxContent;
|
|
101
|
+
exports.ComboboxEmpty = require_combobox.ComboboxEmpty;
|
|
102
|
+
exports.ComboboxGroup = require_combobox.ComboboxGroup;
|
|
103
|
+
exports.ComboboxGroupLabel = require_combobox.ComboboxGroupLabel;
|
|
104
|
+
exports.ComboboxInput = require_combobox.ComboboxInput;
|
|
105
|
+
exports.ComboboxItem = require_combobox.ComboboxItem;
|
|
106
|
+
exports.ComboboxList = require_combobox.ComboboxList;
|
|
107
|
+
exports.ComboboxSeparator = require_combobox.ComboboxSeparator;
|
|
108
|
+
exports.ComboboxStatus = require_combobox.ComboboxStatus;
|
|
109
|
+
exports.ComboboxTrigger = require_combobox.ComboboxTrigger;
|
|
110
|
+
exports.ComboboxValue = require_combobox.ComboboxValue;
|
|
92
111
|
exports.Container = require_Container.Container;
|
|
93
112
|
exports.CountrySelect = require_CountrySelect.CountrySelect;
|
|
94
113
|
exports.Dialog = require_Dialog.Dialog;
|
|
@@ -183,11 +202,19 @@ exports.NavigationMenuLink = require_NavigationMenu.NavigationMenuLink;
|
|
|
183
202
|
exports.NavigationMenuList = require_navigation_menu.NavigationMenuList;
|
|
184
203
|
exports.NavigationMenuPositioner = require_NavigationMenu.NavigationMenuPositioner;
|
|
185
204
|
exports.NavigationMenuTrigger = require_NavigationMenu.NavigationMenuTrigger;
|
|
205
|
+
exports.Popover = require_popover.Popover;
|
|
206
|
+
exports.PopoverContent = require_popover.PopoverContent;
|
|
207
|
+
exports.PopoverDescription = require_popover.PopoverDescription;
|
|
208
|
+
exports.PopoverHeader = require_popover.PopoverHeader;
|
|
209
|
+
exports.PopoverTitle = require_popover.PopoverTitle;
|
|
210
|
+
exports.PopoverTrigger = require_popover.PopoverTrigger;
|
|
186
211
|
exports.Progress = require_Progress.Progress;
|
|
187
212
|
exports.ProgressIndicator = require_progress.ProgressIndicator;
|
|
188
213
|
exports.ProgressLabel = require_progress.ProgressLabel;
|
|
189
214
|
exports.ProgressTrack = require_progress.ProgressTrack;
|
|
190
215
|
exports.ProgressValue = require_progress.ProgressValue;
|
|
216
|
+
exports.RadioGroup = require_radio_group.RadioGroup;
|
|
217
|
+
exports.RadioGroupItem = require_radio_group.RadioGroupItem;
|
|
191
218
|
exports.SearchInput = require_SearchInput.SearchInput;
|
|
192
219
|
exports.Select = require_select.Select;
|
|
193
220
|
exports.SelectContent = require_select.SelectContent;
|
|
@@ -235,6 +262,10 @@ exports.TableFooter = require_Table.TableFooter;
|
|
|
235
262
|
exports.TableHead = require_Table.TableHead;
|
|
236
263
|
exports.TableHeader = require_Table.TableHeader;
|
|
237
264
|
exports.TableRow = require_Table.TableRow;
|
|
265
|
+
exports.Tabs = require_Tabs.Tabs;
|
|
266
|
+
exports.TabsContent = require_Tabs.TabsContent;
|
|
267
|
+
exports.TabsList = require_Tabs.TabsList;
|
|
268
|
+
exports.TabsTrigger = require_Tabs.TabsTrigger;
|
|
238
269
|
exports.Textarea = require_textarea.Textarea;
|
|
239
270
|
exports.ThemeProvider = require_ThemeProvider.ThemeProvider;
|
|
240
271
|
exports.ThemeToggle = require_ThemeToggle.ThemeToggle;
|
|
@@ -245,6 +276,7 @@ exports.TooltipTrigger = require_Tooltip.TooltipTrigger;
|
|
|
245
276
|
exports.Typography = require_Typography.Typography;
|
|
246
277
|
exports.WindowFrame = require_WindowFrame.WindowFrame;
|
|
247
278
|
exports.alertVariants = require_Alert.alertVariants;
|
|
279
|
+
exports.anchorVariants = require_anchorVariants.anchorVariants;
|
|
248
280
|
exports.badgeVariants = require_Badge.badgeVariants;
|
|
249
281
|
exports.boxVariants = require_Box.boxVariants;
|
|
250
282
|
exports.buttonVariants = require_button.buttonVariants;
|
|
@@ -260,6 +292,8 @@ exports.linkVariants = require_Link.linkVariants;
|
|
|
260
292
|
exports.navigationMenuTriggerStyle = require_NavigationMenu.navigationMenuTriggerStyle;
|
|
261
293
|
exports.switchRootVariants = require_Switch.switchRootVariants;
|
|
262
294
|
exports.switchThumbVariants = require_Switch.switchThumbVariants;
|
|
295
|
+
exports.tabsListVariants = require_Tabs.tabsListVariants;
|
|
296
|
+
exports.tabsTriggerVariants = require_Tabs.tabsTriggerVariants;
|
|
263
297
|
exports.typographyVariants = require_Typography.typographyVariants;
|
|
264
298
|
Object.defineProperty(exports, "useMessageScroller", {
|
|
265
299
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -3,7 +3,16 @@ import { ThemeToggle, ThemeToggleProps } from "./components/theme-provider/Theme
|
|
|
3
3
|
import "./components/theme-provider/index.cjs";
|
|
4
4
|
import { buttonVariants } from "./primitives/button.cjs";
|
|
5
5
|
import { Button, ButtonProps } from "./components/button/Button.cjs";
|
|
6
|
+
import { Anchor, AnchorProps, AnchorVariantsProps, anchorVariants } from "./components/button/anchorVariants.cjs";
|
|
6
7
|
import "./components/button/index.cjs";
|
|
8
|
+
import { Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger } from "./primitives/popover.cjs";
|
|
9
|
+
import "./components/popover/index.cjs";
|
|
10
|
+
import { Combobox, ComboboxClear, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxItem, ComboboxList, ComboboxSeparator, ComboboxStatus, ComboboxTrigger, ComboboxValue } from "./primitives/combobox.cjs";
|
|
11
|
+
import "./components/combobox/index.cjs";
|
|
12
|
+
import { RadioGroup, RadioGroupItem } from "./primitives/radio-group.cjs";
|
|
13
|
+
import "./components/radio-group/index.cjs";
|
|
14
|
+
import { Tabs, TabsContent, TabsList, TabsTrigger, tabsListVariants, tabsTriggerVariants } from "./components/tabs/Tabs.cjs";
|
|
15
|
+
import "./components/tabs/index.cjs";
|
|
7
16
|
import { Bubble, BubbleContent, BubbleGroup, BubbleReactions } from "./primitives/bubble.cjs";
|
|
8
17
|
import "./components/bubble/index.cjs";
|
|
9
18
|
import { Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader } from "./primitives/message.cjs";
|
|
@@ -98,4 +107,4 @@ import { TerminalExample } from "./lib/terminal.cjs";
|
|
|
98
107
|
import { WindowFrame, WindowFrameProps, WindowTab } from "./components/window-frame/WindowFrame.cjs";
|
|
99
108
|
import "./components/window-frame/index.cjs";
|
|
100
109
|
import { FOG_BRAND_PALETTE, FogIllustration, FogIllustrationProps, FogPalette } from "./components/fog-illustration/FogIllustration.cjs";
|
|
101
|
-
export { Alert, AlertDescription, type AlertDescriptionProps, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, type AlertTitleProps, Badge, type BadgeProps, BergetLogo, type BergetLogoProps, Box, type BoxProps, type SpacingScale as BoxSpacingScale, Bubble, BubbleContent, BubbleGroup, BubbleReactions, Button, type ButtonProps, COUNTRIES, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Checkbox, type CheckboxProps, CodeBlock, type CodeBlockProps, Container, type ContainerProps, type Country, CountrySelect, type CountrySelectProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EU_COUNTRY_CODES, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, type EmptyProps, EmptyTitle, FOG_BRAND_PALETTE, FeatureList, type FeatureListProps, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FogIllustration, type FogIllustrationProps, type FogPalette, Grid, type GridColsScale, type GridProps, type GridRowsScale, type SpacingScale$1 as GridSpacingScale, Icon, type IconProps, Input, InputGroup, InputGroupAddon, type InputGroupAddonProps, InputGroupButton, InputGroupInput, type InputGroupProps, InputGroupText, InputGroupTextarea, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, type ItemProps, ItemSeparator, ItemTitle, Label, LanguageSelect, type LanguageSelectOption, type LanguageSelectProps, Link, type LinkProps, List, ListHeader, type ListHeaderProps, ListItem, type ListItemProps, type ListProps, Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, ModelCard, type ModelCardProps, type ModelCategory, type ModelLifecycle, ModelLogo, type ModelLogoProps, type ModelLogoProvider, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuPositioner, NavigationMenuTrigger, Progress, ProgressIndicator, ProgressLabel, type ProgressProps, ProgressTrack, ProgressValue, SearchInput, type SearchInputProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLogo, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarPageHeader, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SkeletonProps, Slider, type SliderProps, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, type TerminalExample, Textarea, type Theme, ThemeProvider, type ThemeProviderProps, ThemeToggle, type ThemeToggleProps, Tooltip, TooltipContent, type TooltipContentProps, TooltipProvider, TooltipTrigger, type TooltipTriggerProps, Typography, type TypographyProps, WindowFrame, type WindowFrameProps, type WindowTab, alertVariants, badgeVariants, boxVariants, buttonVariants, cardVariants, categoryLabels, checkboxVariants, containerVariants, getCountryByCode, getCountryByName, gridVariants, isEUCountry, linkVariants, navigationMenuTriggerStyle, switchRootVariants, switchThumbVariants, typographyVariants, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility, useSidebar, useTheme };
|
|
110
|
+
export { Alert, AlertDescription, type AlertDescriptionProps, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, type AlertTitleProps, Anchor, type AnchorProps, type AnchorVariantsProps, Badge, type BadgeProps, BergetLogo, type BergetLogoProps, Box, type BoxProps, type SpacingScale as BoxSpacingScale, Bubble, BubbleContent, BubbleGroup, BubbleReactions, Button, type ButtonProps, COUNTRIES, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Checkbox, type CheckboxProps, CodeBlock, type CodeBlockProps, Combobox, ComboboxClear, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxItem, ComboboxList, ComboboxSeparator, ComboboxStatus, ComboboxTrigger, ComboboxValue, Container, type ContainerProps, type Country, CountrySelect, type CountrySelectProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EU_COUNTRY_CODES, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, type EmptyProps, EmptyTitle, FOG_BRAND_PALETTE, FeatureList, type FeatureListProps, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FogIllustration, type FogIllustrationProps, type FogPalette, Grid, type GridColsScale, type GridProps, type GridRowsScale, type SpacingScale$1 as GridSpacingScale, Icon, type IconProps, Input, InputGroup, InputGroupAddon, type InputGroupAddonProps, InputGroupButton, InputGroupInput, type InputGroupProps, InputGroupText, InputGroupTextarea, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, type ItemProps, ItemSeparator, ItemTitle, Label, LanguageSelect, type LanguageSelectOption, type LanguageSelectProps, Link, type LinkProps, List, ListHeader, type ListHeaderProps, ListItem, type ListItemProps, type ListProps, Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, ModelCard, type ModelCardProps, type ModelCategory, type ModelLifecycle, ModelLogo, type ModelLogoProps, type ModelLogoProvider, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuPositioner, NavigationMenuTrigger, Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, ProgressIndicator, ProgressLabel, type ProgressProps, ProgressTrack, ProgressValue, RadioGroup, RadioGroupItem, SearchInput, type SearchInputProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLogo, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarPageHeader, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SkeletonProps, Slider, type SliderProps, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, type TerminalExample, Textarea, type Theme, ThemeProvider, type ThemeProviderProps, ThemeToggle, type ThemeToggleProps, Tooltip, TooltipContent, type TooltipContentProps, TooltipProvider, TooltipTrigger, type TooltipTriggerProps, Typography, type TypographyProps, WindowFrame, type WindowFrameProps, type WindowTab, alertVariants, anchorVariants, badgeVariants, boxVariants, buttonVariants, cardVariants, categoryLabels, checkboxVariants, containerVariants, getCountryByCode, getCountryByName, gridVariants, isEUCountry, linkVariants, navigationMenuTriggerStyle, switchRootVariants, switchThumbVariants, tabsListVariants, tabsTriggerVariants, typographyVariants, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility, useSidebar, useTheme };
|