@bolerish/ui 0.0.0-stage → 0.11.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/configuration_schema.json +105 -0
- package/dist/_tokens.js +395 -0
- package/dist/_tokens.js.map +7 -0
- package/dist/accordion.d.ts +17 -0
- package/dist/accordion.js +347 -0
- package/dist/accordion.js.map +7 -0
- package/dist/alert-dialog.d.ts +30 -0
- package/dist/alert-dialog.js +460 -0
- package/dist/alert-dialog.js.map +7 -0
- package/dist/aspect-ratio.d.ts +8 -0
- package/dist/aspect-ratio.js +45 -0
- package/dist/aspect-ratio.js.map +7 -0
- package/dist/attachment.d.ts +39 -0
- package/dist/attachment.js +600 -0
- package/dist/attachment.js.map +7 -0
- package/dist/avatar.d.ts +26 -0
- package/dist/avatar.js +393 -0
- package/dist/avatar.js.map +7 -0
- package/dist/badge.d.ts +10 -0
- package/dist/badge.js +82 -0
- package/dist/badge.js.map +7 -0
- package/dist/banner.d.ts +19 -0
- package/dist/banner.js +127 -0
- package/dist/banner.js.map +7 -0
- package/dist/breadcrumb.d.ts +27 -0
- package/dist/breadcrumb.js +426 -0
- package/dist/breadcrumb.js.map +7 -0
- package/dist/button-group.d.ts +15 -0
- package/dist/button-group.js +330 -0
- package/dist/button-group.js.map +7 -0
- package/dist/button.d.ts +17 -0
- package/dist/button.js +313 -0
- package/dist/button.js.map +7 -0
- package/dist/calendar.d.ts +10 -0
- package/dist/calendar.js +257 -0
- package/dist/calendar.js.map +7 -0
- package/dist/card.d.ts +16 -0
- package/dist/card.js +131 -0
- package/dist/card.js.map +7 -0
- package/dist/carousel.d.ts +34 -0
- package/dist/carousel.js +551 -0
- package/dist/carousel.js.map +7 -0
- package/dist/checkbox.d.ts +8 -0
- package/dist/checkbox.js +113 -0
- package/dist/checkbox.js.map +7 -0
- package/dist/cli.js +6 -0
- package/dist/cli.js.map +7 -0
- package/dist/collapsible.d.ts +17 -0
- package/dist/collapsible.js +337 -0
- package/dist/collapsible.js.map +7 -0
- package/dist/combobox.d.ts +37 -0
- package/dist/combobox.js +692 -0
- package/dist/combobox.js.map +7 -0
- package/dist/content-row.d.ts +32 -0
- package/dist/content-row.js +253 -0
- package/dist/content-row.js.map +7 -0
- package/dist/context-menu.d.ts +9 -0
- package/dist/context-menu.js +86 -0
- package/dist/context-menu.js.map +7 -0
- package/dist/date-picker.d.ts +11 -0
- package/dist/date-picker.js +140 -0
- package/dist/date-picker.js.map +7 -0
- package/dist/dialog.d.ts +33 -0
- package/dist/dialog.js +458 -0
- package/dist/dialog.js.map +7 -0
- package/dist/drawer.d.ts +37 -0
- package/dist/drawer.js +773 -0
- package/dist/drawer.js.map +7 -0
- package/dist/dropdown-menu.d.ts +52 -0
- package/dist/dropdown-menu.js +824 -0
- package/dist/dropdown-menu.js.map +7 -0
- package/dist/empty.d.ts +13 -0
- package/dist/empty.js +136 -0
- package/dist/empty.js.map +7 -0
- package/dist/field.d.ts +21 -0
- package/dist/field.js +578 -0
- package/dist/field.js.map +7 -0
- package/dist/global.css +19 -0
- package/dist/heading.d.ts +9 -0
- package/dist/heading.js +108 -0
- package/dist/heading.js.map +7 -0
- package/dist/hover-card.d.ts +16 -0
- package/dist/hover-card.js +202 -0
- package/dist/hover-card.js.map +7 -0
- package/dist/index.d.ts +96 -0
- package/dist/index.js +524 -0
- package/dist/index.js.map +7 -0
- package/dist/input-group.d.ts +22 -0
- package/dist/input-group.js +458 -0
- package/dist/input-group.js.map +7 -0
- package/dist/input-otp.d.ts +18 -0
- package/dist/input-otp.js +261 -0
- package/dist/input-otp.js.map +7 -0
- package/dist/input.d.ts +9 -0
- package/dist/input.js +141 -0
- package/dist/input.js.map +7 -0
- package/dist/kbd.d.ts +10 -0
- package/dist/kbd.js +66 -0
- package/dist/kbd.js.map +7 -0
- package/dist/label.d.ts +7 -0
- package/dist/label.js +101 -0
- package/dist/label.js.map +7 -0
- package/dist/link.d.ts +18 -0
- package/dist/link.js +194 -0
- package/dist/link.js.map +7 -0
- package/dist/marker.d.ts +15 -0
- package/dist/marker.js +99 -0
- package/dist/marker.js.map +7 -0
- package/dist/menubar.d.ts +26 -0
- package/dist/menubar.js +211 -0
- package/dist/menubar.js.map +7 -0
- package/dist/native-select.d.ts +15 -0
- package/dist/native-select.js +248 -0
- package/dist/native-select.js.map +7 -0
- package/dist/navigation-menu.d.ts +28 -0
- package/dist/navigation-menu.js +598 -0
- package/dist/navigation-menu.js.map +7 -0
- package/dist/p.d.ts +4 -0
- package/dist/p.js +7 -0
- package/dist/p.js.map +7 -0
- package/dist/pagination.d.ts +24 -0
- package/dist/pagination.js +425 -0
- package/dist/pagination.js.map +7 -0
- package/dist/paragraph.d.ts +8 -0
- package/dist/paragraph.js +106 -0
- package/dist/paragraph.js.map +7 -0
- package/dist/popover.d.ts +26 -0
- package/dist/popover.js +413 -0
- package/dist/popover.js.map +7 -0
- package/dist/primitives.d.ts +1 -0
- package/dist/primitives.js +5 -0
- package/dist/primitives.js.map +7 -0
- package/dist/progress.d.ts +8 -0
- package/dist/progress.js +88 -0
- package/dist/progress.js.map +7 -0
- package/dist/radio-group.d.ts +13 -0
- package/dist/radio-group.js +156 -0
- package/dist/radio-group.js.map +7 -0
- package/dist/reset.css +72 -0
- package/dist/scroll-area.d.ts +19 -0
- package/dist/scroll-area.js +302 -0
- package/dist/scroll-area.js.map +7 -0
- package/dist/select.d.ts +34 -0
- package/dist/select.js +649 -0
- package/dist/select.js.map +7 -0
- package/dist/separator.d.ts +9 -0
- package/dist/separator.js +107 -0
- package/dist/separator.js.map +7 -0
- package/dist/skeleton.d.ts +7 -0
- package/dist/skeleton.js +42 -0
- package/dist/skeleton.js.map +7 -0
- package/dist/slider.d.ts +10 -0
- package/dist/slider.js +145 -0
- package/dist/slider.js.map +7 -0
- package/dist/spinner.d.ts +8 -0
- package/dist/spinner.js +49 -0
- package/dist/spinner.js.map +7 -0
- package/dist/styles/control-layout.d.ts +9 -0
- package/dist/styles/merge-styles.d.ts +10 -0
- package/dist/stylex.css +2862 -0
- package/dist/switch.d.ts +9 -0
- package/dist/switch.js +153 -0
- package/dist/switch.js.map +7 -0
- package/dist/table.d.ts +31 -0
- package/dist/table.js +171 -0
- package/dist/table.js.map +7 -0
- package/dist/tabs.d.ts +20 -0
- package/dist/tabs.js +403 -0
- package/dist/tabs.js.map +7 -0
- package/dist/textarea.d.ts +7 -0
- package/dist/textarea.js +76 -0
- package/dist/textarea.js.map +7 -0
- package/dist/theme.d.ts +5 -0
- package/dist/theme.js +44 -0
- package/dist/theme.js.map +7 -0
- package/dist/timeline.d.ts +30 -0
- package/dist/timeline.js +182 -0
- package/dist/timeline.js.map +7 -0
- package/dist/toast.d.ts +14 -0
- package/dist/toast.js +463 -0
- package/dist/toast.js.map +7 -0
- package/dist/toast.stylex.d.ts +8 -0
- package/dist/toggle-group.d.ts +19 -0
- package/dist/toggle-group.js +324 -0
- package/dist/toggle-group.js.map +7 -0
- package/dist/toggle.d.ts +12 -0
- package/dist/toggle.js +192 -0
- package/dist/toggle.js.map +7 -0
- package/dist/tooltip.d.ts +14 -0
- package/dist/tooltip.js +214 -0
- package/dist/tooltip.js.map +7 -0
- package/dist/typography.d.ts +51 -0
- package/package.json +114 -3
- package/README.md +0 -3
package/dist/heading.js
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
// src/heading.tsx
|
|
2
|
+
import * as stylex from "@stylexjs/stylex";
|
|
3
|
+
|
|
4
|
+
// src/styles/merge-styles.ts
|
|
5
|
+
function mergeStyles(base, className, style) {
|
|
6
|
+
if (className === void 0 && style === void 0) return base;
|
|
7
|
+
return {
|
|
8
|
+
...base,
|
|
9
|
+
className: [base.className, className].filter(Boolean).join(" ") || void 0,
|
|
10
|
+
style: base.style || style ? {
|
|
11
|
+
...base.style,
|
|
12
|
+
...style
|
|
13
|
+
} : void 0
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// src/typography.ts
|
|
18
|
+
var typographyStyles = {
|
|
19
|
+
body: {
|
|
20
|
+
kMv6JI: "x1b1to7n",
|
|
21
|
+
kGuDYH: "x199wi4b",
|
|
22
|
+
k63SB2: "x6valzt",
|
|
23
|
+
kLWn49: "xipl0i2",
|
|
24
|
+
$$css: true
|
|
25
|
+
},
|
|
26
|
+
description: {
|
|
27
|
+
kMv6JI: "x1b1to7n",
|
|
28
|
+
kGuDYH: "x1lskvfa",
|
|
29
|
+
k63SB2: "x6valzt",
|
|
30
|
+
kLWn49: "xipl0i2",
|
|
31
|
+
$$css: true
|
|
32
|
+
},
|
|
33
|
+
caption: {
|
|
34
|
+
kMv6JI: "x1b1to7n",
|
|
35
|
+
kGuDYH: "x1gag4p9",
|
|
36
|
+
k63SB2: "x6valzt",
|
|
37
|
+
kLWn49: "xipl0i2",
|
|
38
|
+
$$css: true
|
|
39
|
+
},
|
|
40
|
+
label: {
|
|
41
|
+
kMv6JI: "x1b1to7n",
|
|
42
|
+
kGuDYH: "x1lskvfa",
|
|
43
|
+
k63SB2: "xoop9yj",
|
|
44
|
+
kLWn49: "xipl0i2",
|
|
45
|
+
$$css: true
|
|
46
|
+
},
|
|
47
|
+
title: {
|
|
48
|
+
kMv6JI: "x1b1to7n",
|
|
49
|
+
kGuDYH: "x1lskvfa",
|
|
50
|
+
k63SB2: "xoop9yj",
|
|
51
|
+
kLWn49: "x15rnifv",
|
|
52
|
+
$$css: true
|
|
53
|
+
},
|
|
54
|
+
page: {
|
|
55
|
+
kMv6JI: "x1yd4tj7",
|
|
56
|
+
kGuDYH: "xw8z6gz",
|
|
57
|
+
k63SB2: "x5cgamv",
|
|
58
|
+
kLWn49: "x15rnifv",
|
|
59
|
+
$$css: true
|
|
60
|
+
},
|
|
61
|
+
section: {
|
|
62
|
+
kMv6JI: "x1yd4tj7",
|
|
63
|
+
kGuDYH: "xr5nsds",
|
|
64
|
+
k63SB2: "x5cgamv",
|
|
65
|
+
kLWn49: "x15rnifv",
|
|
66
|
+
$$css: true
|
|
67
|
+
},
|
|
68
|
+
subsection: {
|
|
69
|
+
kMv6JI: "x1yd4tj7",
|
|
70
|
+
kGuDYH: "x199wi4b",
|
|
71
|
+
k63SB2: "x5cgamv",
|
|
72
|
+
kLWn49: "x15rnifv",
|
|
73
|
+
$$css: true
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
// src/heading.tsx
|
|
78
|
+
import { jsx } from "react/jsx-runtime";
|
|
79
|
+
var styles = {
|
|
80
|
+
root: {
|
|
81
|
+
kMwMTN: "x1t28c4i",
|
|
82
|
+
kogj98: "x1ghz6dp",
|
|
83
|
+
$$css: true
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
var elements = {
|
|
87
|
+
1: "h1",
|
|
88
|
+
2: "h2",
|
|
89
|
+
3: "h3",
|
|
90
|
+
4: "h4",
|
|
91
|
+
5: "h5",
|
|
92
|
+
6: "h6"
|
|
93
|
+
};
|
|
94
|
+
function Heading({
|
|
95
|
+
className,
|
|
96
|
+
style,
|
|
97
|
+
xstyle,
|
|
98
|
+
level,
|
|
99
|
+
size = "section",
|
|
100
|
+
...props2
|
|
101
|
+
}) {
|
|
102
|
+
const Element = elements[level];
|
|
103
|
+
return /* @__PURE__ */ jsx(Element, { ...props2, ...mergeStyles(stylex.props(styles.root, typographyStyles[size], xstyle), className, style) });
|
|
104
|
+
}
|
|
105
|
+
export {
|
|
106
|
+
Heading
|
|
107
|
+
};
|
|
108
|
+
//# sourceMappingURL=heading.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/heading.tsx", "../src/styles/merge-styles.ts", "../src/typography.ts"],
|
|
4
|
+
"sourcesContent": ["import { colorVars } from \"@bolerish/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport type { ComponentProps } from \"react\";\nimport type { ControlPlacementStyles } from \"./styles/control-layout\";\nimport { mergeStyles } from \"./styles/merge-styles\";\nimport type { StyledProps } from \"./styles/merge-styles\";\nimport { typographyStyles } from \"./typography\";\nconst styles = {\n root: {\n kMwMTN: \"x1t28c4i\",\n kogj98: \"x1ghz6dp\",\n $$css: true\n }\n};\nexport type HeadingProps = StyledProps<ComponentProps<\"h1\">> & {\n level: 1 | 2 | 3 | 4 | 5 | 6;\n size?: \"page\" | \"section\" | \"subsection\";\n xstyle?: ControlPlacementStyles;\n};\nconst elements = {\n 1: \"h1\",\n 2: \"h2\",\n 3: \"h3\",\n 4: \"h4\",\n 5: \"h5\",\n 6: \"h6\"\n} as const;\nexport function Heading({\n className,\n style,\n xstyle,\n level,\n size = \"section\",\n ...props\n}: HeadingProps) {\n const Element = elements[level];\n return <Element {...props} {...mergeStyles(stylex.props(styles.root, typographyStyles[size], xstyle), className, style)} />;\n}", "import type * as stylex from \"@stylexjs/stylex\";\nimport type { CSSProperties } from \"react\";\nexport type StyledProps<Props> = Props extends unknown ? Omit<Props, \"className\" | \"style\"> & {\n className?: string;\n style?: CSSProperties;\n} : never;\nexport function mergeStyles(base: ReturnType<typeof stylex.props>, className?: string, style?: CSSProperties): {\n className?: string;\n style?: CSSProperties;\n} {\n if (className === undefined && style === undefined) return base;\n return {\n ...base,\n className: [base.className, className].filter(Boolean).join(\" \") || undefined,\n style: base.style || style ? {\n ...base.style,\n ...style\n } : undefined\n };\n}", "import { typo } from \"@bolerish/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nexport const typographyStyles = {\n body: {\n kMv6JI: \"x1b1to7n\",\n kGuDYH: \"x199wi4b\",\n k63SB2: \"x6valzt\",\n kLWn49: \"xipl0i2\",\n $$css: true\n },\n description: {\n kMv6JI: \"x1b1to7n\",\n kGuDYH: \"x1lskvfa\",\n k63SB2: \"x6valzt\",\n kLWn49: \"xipl0i2\",\n $$css: true\n },\n caption: {\n kMv6JI: \"x1b1to7n\",\n kGuDYH: \"x1gag4p9\",\n k63SB2: \"x6valzt\",\n kLWn49: \"xipl0i2\",\n $$css: true\n },\n label: {\n kMv6JI: \"x1b1to7n\",\n kGuDYH: \"x1lskvfa\",\n k63SB2: \"xoop9yj\",\n kLWn49: \"xipl0i2\",\n $$css: true\n },\n title: {\n kMv6JI: \"x1b1to7n\",\n kGuDYH: \"x1lskvfa\",\n k63SB2: \"xoop9yj\",\n kLWn49: \"x15rnifv\",\n $$css: true\n },\n page: {\n kMv6JI: \"x1yd4tj7\",\n kGuDYH: \"xw8z6gz\",\n k63SB2: \"x5cgamv\",\n kLWn49: \"x15rnifv\",\n $$css: true\n },\n section: {\n kMv6JI: \"x1yd4tj7\",\n kGuDYH: \"xr5nsds\",\n k63SB2: \"x5cgamv\",\n kLWn49: \"x15rnifv\",\n $$css: true\n },\n subsection: {\n kMv6JI: \"x1yd4tj7\",\n kGuDYH: \"x199wi4b\",\n k63SB2: \"x5cgamv\",\n kLWn49: \"x15rnifv\",\n $$css: true\n }\n};"],
|
|
5
|
+
"mappings": ";AACA,YAAY,YAAY;;;ACKjB,SAAS,YAAY,MAAuC,WAAoB,OAGrF;AACA,MAAI,cAAc,UAAa,UAAU,OAAW,QAAO;AAC3D,SAAO;AAAA,IACL,GAAG;AAAA,IACH,WAAW,CAAC,KAAK,WAAW,SAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,KAAK;AAAA,IACpE,OAAO,KAAK,SAAS,QAAQ;AAAA,MAC3B,GAAG,KAAK;AAAA,MACR,GAAG;AAAA,IACL,IAAI;AAAA,EACN;AACF;;;ACjBO,IAAM,mBAAmB;AAAA,EAC9B,MAAM;AAAA,IACJ,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,aAAa;AAAA,IACX,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,SAAS;AAAA,IACP,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;A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"@base-ui/react/preview-card";
|
|
2
|
+
import * as stylex from "@stylexjs/stylex";
|
|
3
|
+
import type { ComponentProps } from "react";
|
|
4
|
+
import type { StyledProps } from "./styles/merge-styles";
|
|
5
|
+
export declare const HoverCard: <Payload>(props: PreviewCard.Root.Props<Payload>) => import("react").JSX.Element;
|
|
6
|
+
export type HoverCardTriggerProps = StyledProps<ComponentProps<typeof PreviewCard.Trigger>> & {
|
|
7
|
+
xstyle?: stylex.StyleXStyles;
|
|
8
|
+
};
|
|
9
|
+
export declare function HoverCardTrigger({ className, style, xstyle, ...props }: HoverCardTriggerProps): import("react").JSX.Element;
|
|
10
|
+
export type HoverCardContentProps = StyledProps<ComponentProps<typeof PreviewCard.Popup>> & {
|
|
11
|
+
align?: StyledProps<ComponentProps<typeof PreviewCard.Positioner>>["align"];
|
|
12
|
+
side?: StyledProps<ComponentProps<typeof PreviewCard.Positioner>>["side"];
|
|
13
|
+
sideOffset?: number;
|
|
14
|
+
xstyle?: stylex.StyleXStyles;
|
|
15
|
+
};
|
|
16
|
+
export declare function HoverCardContent({ className, style, align, side, sideOffset, xstyle, ...props }: HoverCardContentProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/hover-card.tsx
|
|
4
|
+
import { c as _c } from "react/compiler-runtime";
|
|
5
|
+
import { PreviewCard } from "@base-ui/react/preview-card";
|
|
6
|
+
import * as stylex from "@stylexjs/stylex";
|
|
7
|
+
|
|
8
|
+
// src/styles/merge-styles.ts
|
|
9
|
+
function mergeStyles(base, className, style) {
|
|
10
|
+
if (className === void 0 && style === void 0) return base;
|
|
11
|
+
return {
|
|
12
|
+
...base,
|
|
13
|
+
className: [base.className, className].filter(Boolean).join(" ") || void 0,
|
|
14
|
+
style: base.style || style ? {
|
|
15
|
+
...base.style,
|
|
16
|
+
...style
|
|
17
|
+
} : void 0
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// src/hover-card.tsx
|
|
22
|
+
import { jsx } from "react/jsx-runtime";
|
|
23
|
+
var styles = {
|
|
24
|
+
popup: {
|
|
25
|
+
kWkggS: "xssngo0",
|
|
26
|
+
kVAM5u: "x1kqtvf4",
|
|
27
|
+
kaIpWk: "x9up7g5",
|
|
28
|
+
ksu8eU: "x1y0btm7",
|
|
29
|
+
kMzoRj: "x1al7nqq",
|
|
30
|
+
kGVxlE: "xms81ks",
|
|
31
|
+
kMwMTN: "x1t28c4i",
|
|
32
|
+
kGuDYH: "x1lskvfa",
|
|
33
|
+
ks0D6T: "x9h9p8b",
|
|
34
|
+
kI3sdo: "x1a2a7pz",
|
|
35
|
+
kmVPX3: "xv3ig3d",
|
|
36
|
+
k3aq6I: "xvvkyix",
|
|
37
|
+
k3nNDw: "xctpfpq",
|
|
38
|
+
kIyJzY: "x1vrxc1k",
|
|
39
|
+
k1ekBW: "x6o7n8i",
|
|
40
|
+
kAMwcw: "x1oxff63",
|
|
41
|
+
kY2c9j: "x1cc015y",
|
|
42
|
+
kehFko: "xjilbjb",
|
|
43
|
+
kxero2: "xt8ron0",
|
|
44
|
+
$$css: true
|
|
45
|
+
},
|
|
46
|
+
transitioning: {
|
|
47
|
+
kSiTet: "xg01cxk",
|
|
48
|
+
k3aq6I: "xbeh1pe",
|
|
49
|
+
$$css: true
|
|
50
|
+
},
|
|
51
|
+
trigger: {
|
|
52
|
+
kMwMTN: "x1t28c4i",
|
|
53
|
+
kMnn75: "xkrqix3",
|
|
54
|
+
kNySMw: "x116fkhr",
|
|
55
|
+
kcSHmL: "x1jdncgf",
|
|
56
|
+
kIyJzY: "xznvecg",
|
|
57
|
+
k1ekBW: "xeirdtl",
|
|
58
|
+
kAMwcw: "xrkjf8i",
|
|
59
|
+
k2h249: "x1f2jko9",
|
|
60
|
+
kdSwXR: "x1sur9pj",
|
|
61
|
+
$$css: true
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
var HoverCard = PreviewCard.Root;
|
|
65
|
+
function HoverCardTrigger(t0) {
|
|
66
|
+
const $ = _c(12);
|
|
67
|
+
let className;
|
|
68
|
+
let props2;
|
|
69
|
+
let style;
|
|
70
|
+
let xstyle;
|
|
71
|
+
if ($[0] !== t0) {
|
|
72
|
+
({
|
|
73
|
+
className,
|
|
74
|
+
style,
|
|
75
|
+
xstyle,
|
|
76
|
+
...props2
|
|
77
|
+
} = t0);
|
|
78
|
+
$[0] = t0;
|
|
79
|
+
$[1] = className;
|
|
80
|
+
$[2] = props2;
|
|
81
|
+
$[3] = style;
|
|
82
|
+
$[4] = xstyle;
|
|
83
|
+
} else {
|
|
84
|
+
className = $[1];
|
|
85
|
+
props2 = $[2];
|
|
86
|
+
style = $[3];
|
|
87
|
+
xstyle = $[4];
|
|
88
|
+
}
|
|
89
|
+
let t1;
|
|
90
|
+
if ($[5] !== className || $[6] !== style || $[7] !== xstyle) {
|
|
91
|
+
t1 = mergeStyles(stylex.props(styles.trigger, xstyle), className, style);
|
|
92
|
+
$[5] = className;
|
|
93
|
+
$[6] = style;
|
|
94
|
+
$[7] = xstyle;
|
|
95
|
+
$[8] = t1;
|
|
96
|
+
} else {
|
|
97
|
+
t1 = $[8];
|
|
98
|
+
}
|
|
99
|
+
let t2;
|
|
100
|
+
if ($[9] !== props2 || $[10] !== t1) {
|
|
101
|
+
t2 = /* @__PURE__ */ jsx(PreviewCard.Trigger, { ...props2, ...t1 });
|
|
102
|
+
$[9] = props2;
|
|
103
|
+
$[10] = t1;
|
|
104
|
+
$[11] = t2;
|
|
105
|
+
} else {
|
|
106
|
+
t2 = $[11];
|
|
107
|
+
}
|
|
108
|
+
return t2;
|
|
109
|
+
}
|
|
110
|
+
function HoverCardContent(t0) {
|
|
111
|
+
const $ = _c(24);
|
|
112
|
+
let className;
|
|
113
|
+
let props2;
|
|
114
|
+
let style;
|
|
115
|
+
let t1;
|
|
116
|
+
let t2;
|
|
117
|
+
let t3;
|
|
118
|
+
let xstyle;
|
|
119
|
+
if ($[0] !== t0) {
|
|
120
|
+
({
|
|
121
|
+
className,
|
|
122
|
+
style,
|
|
123
|
+
align: t1,
|
|
124
|
+
side: t2,
|
|
125
|
+
sideOffset: t3,
|
|
126
|
+
xstyle,
|
|
127
|
+
...props2
|
|
128
|
+
} = t0);
|
|
129
|
+
$[0] = t0;
|
|
130
|
+
$[1] = className;
|
|
131
|
+
$[2] = props2;
|
|
132
|
+
$[3] = style;
|
|
133
|
+
$[4] = t1;
|
|
134
|
+
$[5] = t2;
|
|
135
|
+
$[6] = t3;
|
|
136
|
+
$[7] = xstyle;
|
|
137
|
+
} else {
|
|
138
|
+
className = $[1];
|
|
139
|
+
props2 = $[2];
|
|
140
|
+
style = $[3];
|
|
141
|
+
t1 = $[4];
|
|
142
|
+
t2 = $[5];
|
|
143
|
+
t3 = $[6];
|
|
144
|
+
xstyle = $[7];
|
|
145
|
+
}
|
|
146
|
+
const align = t1 === void 0 ? "center" : t1;
|
|
147
|
+
const side = t2 === void 0 ? "bottom" : t2;
|
|
148
|
+
const sideOffset = t3 === void 0 ? 6 : t3;
|
|
149
|
+
let t4;
|
|
150
|
+
if ($[8] !== className || $[9] !== style || $[10] !== xstyle) {
|
|
151
|
+
t4 = function getPopupStyles2(state) {
|
|
152
|
+
return mergeStyles(stylex.props(styles.popup, xstyle, (state.transitionStatus === "starting" || state.transitionStatus === "ending") && styles.transitioning), className, style);
|
|
153
|
+
};
|
|
154
|
+
$[8] = className;
|
|
155
|
+
$[9] = style;
|
|
156
|
+
$[10] = xstyle;
|
|
157
|
+
$[11] = t4;
|
|
158
|
+
} else {
|
|
159
|
+
t4 = $[11];
|
|
160
|
+
}
|
|
161
|
+
const getPopupStyles = t4;
|
|
162
|
+
let t5;
|
|
163
|
+
let t6;
|
|
164
|
+
if ($[12] !== getPopupStyles) {
|
|
165
|
+
t5 = (state_0) => getPopupStyles(state_0).className;
|
|
166
|
+
t6 = (state_1) => getPopupStyles(state_1).style;
|
|
167
|
+
$[12] = getPopupStyles;
|
|
168
|
+
$[13] = t5;
|
|
169
|
+
$[14] = t6;
|
|
170
|
+
} else {
|
|
171
|
+
t5 = $[13];
|
|
172
|
+
t6 = $[14];
|
|
173
|
+
}
|
|
174
|
+
let t7;
|
|
175
|
+
if ($[15] !== props2 || $[16] !== t5 || $[17] !== t6) {
|
|
176
|
+
t7 = /* @__PURE__ */ jsx(PreviewCard.Popup, { ...props2, className: t5, style: t6 });
|
|
177
|
+
$[15] = props2;
|
|
178
|
+
$[16] = t5;
|
|
179
|
+
$[17] = t6;
|
|
180
|
+
$[18] = t7;
|
|
181
|
+
} else {
|
|
182
|
+
t7 = $[18];
|
|
183
|
+
}
|
|
184
|
+
let t8;
|
|
185
|
+
if ($[19] !== align || $[20] !== side || $[21] !== sideOffset || $[22] !== t7) {
|
|
186
|
+
t8 = /* @__PURE__ */ jsx(PreviewCard.Portal, { children: /* @__PURE__ */ jsx(PreviewCard.Positioner, { align, side, sideOffset, children: t7 }) });
|
|
187
|
+
$[19] = align;
|
|
188
|
+
$[20] = side;
|
|
189
|
+
$[21] = sideOffset;
|
|
190
|
+
$[22] = t7;
|
|
191
|
+
$[23] = t8;
|
|
192
|
+
} else {
|
|
193
|
+
t8 = $[23];
|
|
194
|
+
}
|
|
195
|
+
return t8;
|
|
196
|
+
}
|
|
197
|
+
export {
|
|
198
|
+
HoverCard,
|
|
199
|
+
HoverCardContent,
|
|
200
|
+
HoverCardTrigger
|
|
201
|
+
};
|
|
202
|
+
//# sourceMappingURL=hover-card.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/hover-card.tsx", "../src/styles/merge-styles.ts"],
|
|
4
|
+
"sourcesContent": ["\"use client\";\n\nimport { c as _c } from \"react/compiler-runtime\";\nimport { PreviewCard } from \"@base-ui/react/preview-card\";\nimport { colorVars, layerVars, motionVars, radiusVars, shadowVars, sizeVars, spacingVars, typo } from \"@bolerish/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport type { ComponentProps } from \"react\";\nimport { mergeStyles } from \"./styles/merge-styles\";\nimport type { StyledProps } from \"./styles/merge-styles\";\nconst styles = {\n popup: {\n kWkggS: \"xssngo0\",\n kVAM5u: \"x1kqtvf4\",\n kaIpWk: \"x9up7g5\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"x1al7nqq\",\n kGVxlE: \"xms81ks\",\n kMwMTN: \"x1t28c4i\",\n kGuDYH: \"x1lskvfa\",\n ks0D6T: \"x9h9p8b\",\n kI3sdo: \"x1a2a7pz\",\n kmVPX3: \"xv3ig3d\",\n k3aq6I: \"xvvkyix\",\n k3nNDw: \"xctpfpq\",\n kIyJzY: \"x1vrxc1k\",\n k1ekBW: \"x6o7n8i\",\n kAMwcw: \"x1oxff63\",\n kY2c9j: \"x1cc015y\",\n kehFko: \"xjilbjb\",\n kxero2: \"xt8ron0\",\n $$css: true\n },\n transitioning: {\n kSiTet: \"xg01cxk\",\n k3aq6I: \"xbeh1pe\",\n $$css: true\n },\n trigger: {\n kMwMTN: \"x1t28c4i\",\n kMnn75: \"xkrqix3\",\n kNySMw: \"x116fkhr\",\n kcSHmL: \"x1jdncgf\",\n kIyJzY: \"xznvecg\",\n k1ekBW: \"xeirdtl\",\n kAMwcw: \"xrkjf8i\",\n k2h249: \"x1f2jko9\",\n kdSwXR: \"x1sur9pj\",\n $$css: true\n }\n};\nexport const HoverCard = PreviewCard.Root;\nexport type HoverCardTriggerProps = StyledProps<ComponentProps<typeof PreviewCard.Trigger>> & {\n xstyle?: stylex.StyleXStyles;\n};\nexport function HoverCardTrigger(t0) {\n const $ = _c(12);\n let className;\n let props;\n let style;\n let xstyle;\n if ($[0] !== t0) {\n ({\n className,\n style,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = className;\n $[2] = props;\n $[3] = style;\n $[4] = xstyle;\n } else {\n className = $[1];\n props = $[2];\n style = $[3];\n xstyle = $[4];\n }\n let t1;\n if ($[5] !== className || $[6] !== style || $[7] !== xstyle) {\n t1 = mergeStyles(stylex.props(styles.trigger, xstyle), className, style);\n $[5] = className;\n $[6] = style;\n $[7] = xstyle;\n $[8] = t1;\n } else {\n t1 = $[8];\n }\n let t2;\n if ($[9] !== props || $[10] !== t1) {\n t2 = <PreviewCard.Trigger {...props} {...t1} />;\n $[9] = props;\n $[10] = t1;\n $[11] = t2;\n } else {\n t2 = $[11];\n }\n return t2;\n}\nexport type HoverCardContentProps = StyledProps<ComponentProps<typeof PreviewCard.Popup>> & {\n align?: StyledProps<ComponentProps<typeof PreviewCard.Positioner>>[\"align\"];\n side?: StyledProps<ComponentProps<typeof PreviewCard.Positioner>>[\"side\"];\n sideOffset?: number;\n xstyle?: stylex.StyleXStyles;\n};\nexport function HoverCardContent(t0) {\n const $ = _c(24);\n let className;\n let props;\n let style;\n let t1;\n let t2;\n let t3;\n let xstyle;\n if ($[0] !== t0) {\n ({\n className,\n style,\n align: t1,\n side: t2,\n sideOffset: t3,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = className;\n $[2] = props;\n $[3] = style;\n $[4] = t1;\n $[5] = t2;\n $[6] = t3;\n $[7] = xstyle;\n } else {\n className = $[1];\n props = $[2];\n style = $[3];\n t1 = $[4];\n t2 = $[5];\n t3 = $[6];\n xstyle = $[7];\n }\n const align = t1 === undefined ? \"center\" : t1;\n const side = t2 === undefined ? \"bottom\" : t2;\n const sideOffset = t3 === undefined ? 6 : t3;\n let t4;\n if ($[8] !== className || $[9] !== style || $[10] !== xstyle) {\n t4 = function getPopupStyles(state) {\n return mergeStyles(stylex.props(styles.popup, xstyle, (state.transitionStatus === \"starting\" || state.transitionStatus === \"ending\") && styles.transitioning), className, style);\n };\n $[8] = className;\n $[9] = style;\n $[10] = xstyle;\n $[11] = t4;\n } else {\n t4 = $[11];\n }\n const getPopupStyles = t4;\n let t5;\n let t6;\n if ($[12] !== getPopupStyles) {\n t5 = state_0 => getPopupStyles(state_0).className;\n t6 = state_1 => getPopupStyles(state_1).style;\n $[12] = getPopupStyles;\n $[13] = t5;\n $[14] = t6;\n } else {\n t5 = $[13];\n t6 = $[14];\n }\n let t7;\n if ($[15] !== props || $[16] !== t5 || $[17] !== t6) {\n t7 = <PreviewCard.Popup {...props} className={t5} style={t6} />;\n $[15] = props;\n $[16] = t5;\n $[17] = t6;\n $[18] = t7;\n } else {\n t7 = $[18];\n }\n let t8;\n if ($[19] !== align || $[20] !== side || $[21] !== sideOffset || $[22] !== t7) {\n t8 = <PreviewCard.Portal><PreviewCard.Positioner align={align} side={side} sideOffset={sideOffset}>{t7}</PreviewCard.Positioner></PreviewCard.Portal>;\n $[19] = align;\n $[20] = side;\n $[21] = sideOffset;\n $[22] = t7;\n $[23] = t8;\n } else {\n t8 = $[23];\n }\n return t8;\n}", "import type * as stylex from \"@stylexjs/stylex\";\nimport type { CSSProperties } from \"react\";\nexport type StyledProps<Props> = Props extends unknown ? Omit<Props, \"className\" | \"style\"> & {\n className?: string;\n style?: CSSProperties;\n} : never;\nexport function mergeStyles(base: ReturnType<typeof stylex.props>, className?: string, style?: CSSProperties): {\n className?: string;\n style?: CSSProperties;\n} {\n if (className === undefined && style === undefined) return base;\n return {\n ...base,\n className: [base.className, className].filter(Boolean).join(\" \") || undefined,\n style: base.style || style ? {\n ...base.style,\n ...style\n } : undefined\n };\n}"],
|
|
5
|
+
"mappings": ";;;AAEA,SAAS,KAAK,UAAU;AACxB,SAAS,mBAAmB;AAE5B,YAAY,YAAY;;;ACCjB,SAAS,YAAY,MAAuC,WAAoB,OAGrF;AACA,MAAI,cAAc,UAAa,UAAU,OAAW,QAAO;AAC3D,SAAO;AAAA,IACL,GAAG;AAAA,IACH,WAAW,CAAC,KAAK,WAAW,SAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,KAAK;AAAA,IACpE,OAAO,KAAK,SAAS,QAAQ;AAAA,MAC3B,GAAG,KAAK;AAAA,MACR,GAAG;AAAA,IACL,IAAI;AAAA,EACN;AACF;;;ADuES;AAjF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AAI;AAC7E,SAAK,oBAAC,YAAY,QAAZ,EAAmB,8BAAC,YAAY,YAAZ,EAAuB,OAAc,MAAY,YAAyB,cAAG,GAAyB;AAChI,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AAAA,EACV,OAAO;AACL,SAAK,EAAE,EAAE;AAAA,EACX;AACA,SAAO;AACT;",
|
|
6
|
+
"names": ["props", "getPopupStyles"]
|
|
7
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/** An app end user's explicit runtime choice; installation defaults exclude on. */
|
|
2
|
+
export type MotionPreference = "system" | "on" | "off";
|
|
3
|
+
export { Button } from "./button";
|
|
4
|
+
export type { ButtonProps } from "./button";
|
|
5
|
+
export { Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, } from "./attachment";
|
|
6
|
+
export { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, } from "./avatar";
|
|
7
|
+
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, } from "./breadcrumb";
|
|
8
|
+
export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText } from "./button-group";
|
|
9
|
+
export type { ButtonGroupProps } from "./button-group";
|
|
10
|
+
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "./card";
|
|
11
|
+
export { Calendar } from "./calendar";
|
|
12
|
+
export type { CalendarProps } from "./calendar";
|
|
13
|
+
export { Carousel, CarouselViewport, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, } from "./carousel";
|
|
14
|
+
export type { CarouselApi, CarouselContentProps, CarouselItemProps, CarouselProps, } from "./carousel";
|
|
15
|
+
export { DatePicker } from "./date-picker";
|
|
16
|
+
export type { DatePickerProps } from "./date-picker";
|
|
17
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, } from "./dialog";
|
|
18
|
+
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, } from "./drawer";
|
|
19
|
+
export type { DrawerOverlayMode, DrawerProps, DrawerSwipeDirection } from "./drawer";
|
|
20
|
+
export { Checkbox } from "./checkbox";
|
|
21
|
+
export type { CheckboxProps } from "./checkbox";
|
|
22
|
+
export { Collapsible, CollapsiblePanel, CollapsibleContent, CollapsibleTrigger, } from "./collapsible";
|
|
23
|
+
export { Combobox, ComboboxCollection, ComboboxPopup, ComboboxList, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxSeparator, } from "./combobox";
|
|
24
|
+
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, } from "./context-menu";
|
|
25
|
+
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, } from "./dropdown-menu";
|
|
26
|
+
export { HoverCard, HoverCardContent, HoverCardTrigger } from "./hover-card";
|
|
27
|
+
export type { HoverCardContentProps } from "./hover-card";
|
|
28
|
+
export { Input } from "./input";
|
|
29
|
+
export type { InputProps } from "./input";
|
|
30
|
+
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, } from "./input-group";
|
|
31
|
+
export type { InputGroupProps } from "./input-group";
|
|
32
|
+
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot } from "./input-otp";
|
|
33
|
+
export type { InputOTPProps } from "./input-otp";
|
|
34
|
+
export { ContentRow, ContentRowActions, ContentRowContent, ContentRowDescription, ContentRowGroup, ContentRowMedia, ContentRowTitle, } from "./content-row";
|
|
35
|
+
export type { ContentRowMediaProps, ContentRowProps, ContentRowSize, ContentRowVariant, } from "./content-row";
|
|
36
|
+
export { Kbd, KbdGroup } from "./kbd";
|
|
37
|
+
export { Label } from "./label";
|
|
38
|
+
export type { LabelProps } from "./label";
|
|
39
|
+
export { Link } from "./link";
|
|
40
|
+
export type { LinkProps, LinkVariant } from "./link";
|
|
41
|
+
export { Marker, MarkerContent, MarkerIcon } from "./marker";
|
|
42
|
+
export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, } from "./menubar";
|
|
43
|
+
export { NativeSelect, NativeSelectOptGroup, NativeSelectOption } from "./native-select";
|
|
44
|
+
export type { NativeSelectProps } from "./native-select";
|
|
45
|
+
export { NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, } from "./navigation-menu";
|
|
46
|
+
export { Popover, PopoverClose, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, } from "./popover";
|
|
47
|
+
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, } from "./pagination";
|
|
48
|
+
export { Progress } from "./progress";
|
|
49
|
+
export type { ProgressProps } from "./progress";
|
|
50
|
+
export { RadioGroup, RadioGroupItem } from "./radio-group";
|
|
51
|
+
export type { RadioGroupItemProps, RadioGroupProps } from "./radio-group";
|
|
52
|
+
export { ScrollArea, ScrollAreaViewport, ScrollAreaContent, ScrollBar } from "./scroll-area";
|
|
53
|
+
export type { ScrollAreaProps } from "./scroll-area";
|
|
54
|
+
export { Separator } from "./separator";
|
|
55
|
+
export type { SeparatorProps } from "./separator";
|
|
56
|
+
export { Select, SelectPopup, SelectList, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, } from "./select";
|
|
57
|
+
export { Skeleton } from "./skeleton";
|
|
58
|
+
export type { SkeletonProps } from "./skeleton";
|
|
59
|
+
export { Slider } from "./slider";
|
|
60
|
+
export type { SliderProps } from "./slider";
|
|
61
|
+
export { Spinner } from "./spinner";
|
|
62
|
+
export type { SpinnerProps } from "./spinner";
|
|
63
|
+
export { Switch } from "./switch";
|
|
64
|
+
export type { SwitchProps } from "./switch";
|
|
65
|
+
export { Timeline, TimelineContent, TimelineDescription, TimelineIndicator, TimelineItem, TimelineTime, TimelineTitle, } from "./timeline";
|
|
66
|
+
export type { TimelineIndicatorProps, TimelineIndicatorVariant, TimelineItemProps, TimelineProps, } from "./timeline";
|
|
67
|
+
export { TableContainer, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, } from "./table";
|
|
68
|
+
export { Tabs, TabsContent, TabsList, TabsTrigger } from "./tabs";
|
|
69
|
+
export type { TabsProps, TabsVariant } from "./tabs";
|
|
70
|
+
export { Banner, BannerContent, BannerActions, BannerDescription, BannerTitle } from "./banner";
|
|
71
|
+
export type { BannerProps, BannerSize } from "./banner";
|
|
72
|
+
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from "./alert-dialog";
|
|
73
|
+
export { AspectRatio } from "./aspect-ratio";
|
|
74
|
+
export type { AspectRatioProps } from "./aspect-ratio";
|
|
75
|
+
export { Badge } from "./badge";
|
|
76
|
+
export type { BadgeProps } from "./badge";
|
|
77
|
+
export { Textarea } from "./textarea";
|
|
78
|
+
export type { TextareaProps } from "./textarea";
|
|
79
|
+
export { toast, Toaster } from "./toast";
|
|
80
|
+
export type { ToasterProps } from "./toast";
|
|
81
|
+
export { Toggle } from "./toggle";
|
|
82
|
+
export type { ToggleProps, ToggleSize, ToggleVariant } from "./toggle";
|
|
83
|
+
export { ToggleGroup, ToggleGroupItem } from "./toggle-group";
|
|
84
|
+
export type { ToggleGroupItemProps, ToggleGroupProps } from "./toggle-group";
|
|
85
|
+
export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSet, FieldTitle, } from "./field";
|
|
86
|
+
export type { FieldProps } from "./field";
|
|
87
|
+
export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, } from "./empty";
|
|
88
|
+
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./tooltip";
|
|
89
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "./accordion";
|
|
90
|
+
export { Heading } from "./heading";
|
|
91
|
+
export type { HeadingProps } from "./heading";
|
|
92
|
+
export { Paragraph } from "./paragraph";
|
|
93
|
+
export type { ParagraphProps } from "./paragraph";
|
|
94
|
+
export { P } from "./p";
|
|
95
|
+
export type { PProps } from "./p";
|
|
96
|
+
export { themeClassNames } from "./theme";
|