@foundrykit/primitives 2.0.9 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-HS46TIMU.js → chunk-2UG6OCGA.js} +1 -1
- package/dist/chunk-3NQR7JZR.js +128 -0
- package/dist/{chunk-XCPGTXEJ.js → chunk-5RFGKG4K.js} +1 -1
- package/dist/chunk-B5YCE3UP.js +57 -0
- package/dist/chunk-F2TEA6ER.js +138 -0
- package/dist/{chunk-46UI3AUE.js → chunk-SEDTBIZW.js} +3 -3
- package/dist/chunk-SIQHWNPH.js +45 -0
- package/dist/chunk-STRBREHN.js +17 -0
- package/dist/components/button/index.cjs +3 -3
- package/dist/components/button/index.js +1 -1
- package/dist/components/card/index.cjs +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/dialog/index.cjs +182 -0
- package/dist/components/dialog/index.d.cts +38 -0
- package/dist/components/dialog/index.d.ts +38 -0
- package/dist/components/dialog/index.js +25 -0
- package/dist/components/input/index.cjs +1 -1
- package/dist/components/input/index.js +1 -1
- package/dist/components/input-group/index.cjs +270 -0
- package/dist/components/input-group/index.d.cts +44 -0
- package/dist/components/input-group/index.d.ts +44 -0
- package/dist/components/input-group/index.js +153 -0
- package/dist/components/section/index.cjs +41 -0
- package/dist/components/section/index.d.cts +27 -0
- package/dist/components/section/index.d.ts +27 -0
- package/dist/components/section/index.js +6 -0
- package/dist/components/sheet/index.cjs +170 -0
- package/dist/components/sheet/index.d.cts +31 -0
- package/dist/components/sheet/index.d.ts +31 -0
- package/dist/components/sheet/index.js +21 -0
- package/dist/components/toggle/index.cjs +81 -0
- package/dist/components/toggle/index.d.cts +26 -0
- package/dist/components/toggle/index.d.ts +26 -0
- package/dist/components/toggle/index.js +9 -0
- package/dist/components/tooltip/index.cjs +95 -0
- package/dist/components/tooltip/index.d.cts +25 -0
- package/dist/components/tooltip/index.d.ts +25 -0
- package/dist/components/tooltip/index.js +13 -0
- package/dist/index.cjs +112 -96
- package/dist/index.d.cts +12 -105
- package/dist/index.d.ts +12 -105
- package/dist/index.js +104 -406
- package/package.json +206 -10
- package/CHANGELOG.md +0 -230
- package/postcss.config.mjs +0 -6
- package/registry.json +0 -64
- package/src/components/accordion/config.ts +0 -28
- package/src/components/accordion/index.tsx +0 -80
- package/src/components/alert/config.ts +0 -40
- package/src/components/alert/index.tsx +0 -80
- package/src/components/alert-dialog/config.ts +0 -28
- package/src/components/alert-dialog/index.tsx +0 -188
- package/src/components/aspect-ratio/config.ts +0 -27
- package/src/components/aspect-ratio/index.tsx +0 -24
- package/src/components/avatar/config.ts +0 -46
- package/src/components/avatar/index.tsx +0 -67
- package/src/components/badge/config.ts +0 -56
- package/src/components/badge/index.tsx +0 -56
- package/src/components/breadcrumb/config.ts +0 -121
- package/src/components/breadcrumb/index.tsx +0 -127
- package/src/components/button/config.ts +0 -97
- package/src/components/button/index.tsx +0 -86
- package/src/components/button-group/config.ts +0 -39
- package/src/components/button-group/index.tsx +0 -99
- package/src/components/card/config.ts +0 -89
- package/src/components/card/index.tsx +0 -90
- package/src/components/checkbox/config.ts +0 -46
- package/src/components/checkbox/index.tsx +0 -41
- package/src/components/collapsible/config.ts +0 -27
- package/src/components/collapsible/index.tsx +0 -47
- package/src/components/context-menu/config.ts +0 -28
- package/src/components/context-menu/index.tsx +0 -271
- package/src/components/dialog/config.ts +0 -582
- package/src/components/dialog/index.tsx +0 -162
- package/src/components/direction/config.ts +0 -28
- package/src/components/direction/index.tsx +0 -27
- package/src/components/drawer/config.ts +0 -28
- package/src/components/drawer/index.tsx +0 -153
- package/src/components/dropdown/config.ts +0 -262
- package/src/components/dropdown/index.tsx +0 -280
- package/src/components/empty/config.ts +0 -38
- package/src/components/empty/index.tsx +0 -127
- package/src/components/field/config.ts +0 -40
- package/src/components/field/index.tsx +0 -252
- package/src/components/hover-card/config.ts +0 -27
- package/src/components/hover-card/index.tsx +0 -56
- package/src/components/input/config.ts +0 -64
- package/src/components/input/index.tsx +0 -32
- package/src/components/input-group/config.ts +0 -209
- package/src/components/input-group/index.tsx +0 -177
- package/src/components/item/config.ts +0 -52
- package/src/components/item/index.tsx +0 -215
- package/src/components/kbd/config.ts +0 -38
- package/src/components/kbd/index.tsx +0 -40
- package/src/components/label/config.ts +0 -72
- package/src/components/label/index.tsx +0 -32
- package/src/components/menubar/config.ts +0 -28
- package/src/components/menubar/index.tsx +0 -295
- package/src/components/native-select/config.ts +0 -40
- package/src/components/native-select/index.tsx +0 -40
- package/src/components/navigation-menu/config.ts +0 -32
- package/src/components/navigation-menu/index.tsx +0 -188
- package/src/components/popover/config.ts +0 -222
- package/src/components/popover/index.tsx +0 -60
- package/src/components/progress/config.ts +0 -42
- package/src/components/progress/index.tsx +0 -39
- package/src/components/radio-group/config.ts +0 -303
- package/src/components/radio-group/index.tsx +0 -58
- package/src/components/resizable/config.ts +0 -28
- package/src/components/resizable/index.tsx +0 -67
- package/src/components/scroll-area/config.ts +0 -17
- package/src/components/scroll-area/index.tsx +0 -70
- package/src/components/select/config.ts +0 -277
- package/src/components/select/index.tsx +0 -202
- package/src/components/separator/config.ts +0 -63
- package/src/components/separator/index.tsx +0 -38
- package/src/components/sheet/config.ts +0 -16
- package/src/components/sheet/index.tsx +0 -153
- package/src/components/skeleton/config.ts +0 -77
- package/src/components/skeleton/index.tsx +0 -22
- package/src/components/slider/config.ts +0 -46
- package/src/components/slider/index.tsx +0 -76
- package/src/components/sonner/config.ts +0 -27
- package/src/components/sonner/index.tsx +0 -37
- package/src/components/spinner/config.ts +0 -40
- package/src/components/spinner/index.tsx +0 -30
- package/src/components/switch/config.ts +0 -171
- package/src/components/switch/index.tsx +0 -40
- package/src/components/table/config.ts +0 -38
- package/src/components/table/index.tsx +0 -135
- package/src/components/tabs/config.ts +0 -335
- package/src/components/tabs/index.tsx +0 -82
- package/src/components/textarea/config.ts +0 -117
- package/src/components/textarea/index.tsx +0 -26
- package/src/components/toggle/config.ts +0 -67
- package/src/components/toggle/index.tsx +0 -59
- package/src/components/toggle-group/config.ts +0 -46
- package/src/components/toggle-group/index.tsx +0 -106
- package/src/components/tooltip/config.ts +0 -16
- package/src/components/tooltip/index.tsx +0 -75
- package/src/components/typography/config.ts +0 -38
- package/src/components/typography/index.tsx +0 -172
- package/src/index.ts +0 -291
- package/tsconfig.json +0 -9
- package/tsconfig.lint.json +0 -8
- package/tsup.config.ts +0 -55
package/dist/index.cjs
CHANGED
|
@@ -194,6 +194,7 @@ __export(index_exports, {
|
|
|
194
194
|
ResizablePanelGroup: () => ResizablePanelGroup,
|
|
195
195
|
ScrollArea: () => ScrollArea,
|
|
196
196
|
ScrollBar: () => ScrollBar,
|
|
197
|
+
Section: () => Section,
|
|
197
198
|
Select: () => Select,
|
|
198
199
|
SelectContent: () => SelectContent,
|
|
199
200
|
SelectGroup: () => SelectGroup,
|
|
@@ -731,7 +732,7 @@ var import_react_slot3 = require("@radix-ui/react-slot");
|
|
|
731
732
|
var import_class_variance_authority3 = require("class-variance-authority");
|
|
732
733
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
733
734
|
var buttonVariants = (0, import_class_variance_authority3.cva)(
|
|
734
|
-
"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex shrink-0 items-center justify-center gap-2 rounded-
|
|
735
|
+
"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex shrink-0 items-center justify-center gap-2 rounded-[var(--button-radius,calc(var(--radius)-2px))] font-[var(--button-weight,500)] text-sm whitespace-nowrap [text-transform:var(--button-case,none)] transition-all outline-none focus-visible:ring-[3px] active:not-disabled:scale-[var(--motion-press-scale,0.97)] disabled:pointer-events-none disabled:opacity-50 motion-reduce:active:not-disabled:scale-100 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
735
736
|
{
|
|
736
737
|
variants: {
|
|
737
738
|
variant: {
|
|
@@ -746,8 +747,8 @@ var buttonVariants = (0, import_class_variance_authority3.cva)(
|
|
|
746
747
|
},
|
|
747
748
|
size: {
|
|
748
749
|
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
749
|
-
sm: "h-8 gap-1.5
|
|
750
|
-
lg: "h-10
|
|
750
|
+
sm: "h-8 gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
751
|
+
lg: "h-10 px-6 has-[>svg]:px-4",
|
|
751
752
|
icon: "size-9"
|
|
752
753
|
}
|
|
753
754
|
},
|
|
@@ -891,7 +892,7 @@ function Card({ className, ...props }) {
|
|
|
891
892
|
{
|
|
892
893
|
"data-slot": "card",
|
|
893
894
|
className: (0, import_utils10.cn)(
|
|
894
|
-
"bg-card text-card-foreground rounded-
|
|
895
|
+
"bg-card text-card-foreground rounded-[var(--card-radius,calc(var(--radius)+4px))] border shadow",
|
|
895
896
|
className
|
|
896
897
|
),
|
|
897
898
|
...props
|
|
@@ -2039,7 +2040,7 @@ function Input({ className, type, ...props }) {
|
|
|
2039
2040
|
type,
|
|
2040
2041
|
"data-slot": "input",
|
|
2041
2042
|
className: (0, import_utils19.cn)(
|
|
2042
|
-
"border-input file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 flex h-
|
|
2043
|
+
"border-input file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 flex h-[var(--input-height,2.25rem)] w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
2043
2044
|
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
2044
2045
|
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
2045
2046
|
className
|
|
@@ -2910,25 +2911,39 @@ function ScrollBar({
|
|
|
2910
2911
|
);
|
|
2911
2912
|
}
|
|
2912
2913
|
|
|
2914
|
+
// src/components/section/index.tsx
|
|
2915
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
2916
|
+
function Section({ theme, className, ...props }) {
|
|
2917
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2918
|
+
"section",
|
|
2919
|
+
{
|
|
2920
|
+
"data-slot": "section",
|
|
2921
|
+
"data-section-theme": theme && theme !== "default" ? theme : void 0,
|
|
2922
|
+
className: ["py-12 md:py-20", className].filter(Boolean).join(" "),
|
|
2923
|
+
...props
|
|
2924
|
+
}
|
|
2925
|
+
);
|
|
2926
|
+
}
|
|
2927
|
+
|
|
2913
2928
|
// src/components/select/index.tsx
|
|
2914
2929
|
var import_utils31 = require("@foundrykit/utils");
|
|
2915
2930
|
var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
|
|
2916
2931
|
var import_lucide_react12 = require("lucide-react");
|
|
2917
|
-
var
|
|
2932
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
2918
2933
|
function Select({
|
|
2919
2934
|
...props
|
|
2920
2935
|
}) {
|
|
2921
|
-
return /* @__PURE__ */ (0,
|
|
2936
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SelectPrimitive.Root, { "data-slot": "select", ...props });
|
|
2922
2937
|
}
|
|
2923
2938
|
function SelectGroup({
|
|
2924
2939
|
...props
|
|
2925
2940
|
}) {
|
|
2926
|
-
return /* @__PURE__ */ (0,
|
|
2941
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SelectPrimitive.Group, { "data-slot": "select-group", ...props });
|
|
2927
2942
|
}
|
|
2928
2943
|
function SelectValue({
|
|
2929
2944
|
...props
|
|
2930
2945
|
}) {
|
|
2931
|
-
return /* @__PURE__ */ (0,
|
|
2946
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
|
|
2932
2947
|
}
|
|
2933
2948
|
function SelectTrigger({
|
|
2934
2949
|
className,
|
|
@@ -2936,7 +2951,7 @@ function SelectTrigger({
|
|
|
2936
2951
|
children,
|
|
2937
2952
|
...props
|
|
2938
2953
|
}) {
|
|
2939
|
-
return /* @__PURE__ */ (0,
|
|
2954
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
2940
2955
|
SelectPrimitive.Trigger,
|
|
2941
2956
|
{
|
|
2942
2957
|
"data-slot": "select-trigger",
|
|
@@ -2948,7 +2963,7 @@ function SelectTrigger({
|
|
|
2948
2963
|
...props,
|
|
2949
2964
|
children: [
|
|
2950
2965
|
children,
|
|
2951
|
-
/* @__PURE__ */ (0,
|
|
2966
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_lucide_react12.ChevronDownIcon, { className: "size-4 opacity-50" }) })
|
|
2952
2967
|
]
|
|
2953
2968
|
}
|
|
2954
2969
|
);
|
|
@@ -2959,7 +2974,7 @@ function SelectContent({
|
|
|
2959
2974
|
position = "popper",
|
|
2960
2975
|
...props
|
|
2961
2976
|
}) {
|
|
2962
|
-
return /* @__PURE__ */ (0,
|
|
2977
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
2963
2978
|
SelectPrimitive.Content,
|
|
2964
2979
|
{
|
|
2965
2980
|
"data-slot": "select-content",
|
|
@@ -2971,8 +2986,8 @@ function SelectContent({
|
|
|
2971
2986
|
position,
|
|
2972
2987
|
...props,
|
|
2973
2988
|
children: [
|
|
2974
|
-
/* @__PURE__ */ (0,
|
|
2975
|
-
/* @__PURE__ */ (0,
|
|
2989
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SelectScrollUpButton, {}),
|
|
2990
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2976
2991
|
SelectPrimitive.Viewport,
|
|
2977
2992
|
{
|
|
2978
2993
|
className: (0, import_utils31.cn)(
|
|
@@ -2982,7 +2997,7 @@ function SelectContent({
|
|
|
2982
2997
|
children
|
|
2983
2998
|
}
|
|
2984
2999
|
),
|
|
2985
|
-
/* @__PURE__ */ (0,
|
|
3000
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SelectScrollDownButton, {})
|
|
2986
3001
|
]
|
|
2987
3002
|
}
|
|
2988
3003
|
) });
|
|
@@ -2991,7 +3006,7 @@ function SelectLabel({
|
|
|
2991
3006
|
className,
|
|
2992
3007
|
...props
|
|
2993
3008
|
}) {
|
|
2994
|
-
return /* @__PURE__ */ (0,
|
|
3009
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2995
3010
|
SelectPrimitive.Label,
|
|
2996
3011
|
{
|
|
2997
3012
|
"data-slot": "select-label",
|
|
@@ -3005,7 +3020,7 @@ function SelectItem({
|
|
|
3005
3020
|
children,
|
|
3006
3021
|
...props
|
|
3007
3022
|
}) {
|
|
3008
|
-
return /* @__PURE__ */ (0,
|
|
3023
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
3009
3024
|
SelectPrimitive.Item,
|
|
3010
3025
|
{
|
|
3011
3026
|
"data-slot": "select-item",
|
|
@@ -3015,8 +3030,8 @@ function SelectItem({
|
|
|
3015
3030
|
),
|
|
3016
3031
|
...props,
|
|
3017
3032
|
children: [
|
|
3018
|
-
/* @__PURE__ */ (0,
|
|
3019
|
-
/* @__PURE__ */ (0,
|
|
3033
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_lucide_react12.CheckIcon, { className: "size-4" }) }) }),
|
|
3034
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SelectPrimitive.ItemText, { children })
|
|
3020
3035
|
]
|
|
3021
3036
|
}
|
|
3022
3037
|
);
|
|
@@ -3025,7 +3040,7 @@ function SelectSeparator({
|
|
|
3025
3040
|
className,
|
|
3026
3041
|
...props
|
|
3027
3042
|
}) {
|
|
3028
|
-
return /* @__PURE__ */ (0,
|
|
3043
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3029
3044
|
SelectPrimitive.Separator,
|
|
3030
3045
|
{
|
|
3031
3046
|
"data-slot": "select-separator",
|
|
@@ -3038,7 +3053,7 @@ function SelectScrollUpButton({
|
|
|
3038
3053
|
className,
|
|
3039
3054
|
...props
|
|
3040
3055
|
}) {
|
|
3041
|
-
return /* @__PURE__ */ (0,
|
|
3056
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3042
3057
|
SelectPrimitive.ScrollUpButton,
|
|
3043
3058
|
{
|
|
3044
3059
|
"data-slot": "select-scroll-up-button",
|
|
@@ -3047,7 +3062,7 @@ function SelectScrollUpButton({
|
|
|
3047
3062
|
className
|
|
3048
3063
|
),
|
|
3049
3064
|
...props,
|
|
3050
|
-
children: /* @__PURE__ */ (0,
|
|
3065
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_lucide_react12.ChevronUpIcon, { className: "size-4" })
|
|
3051
3066
|
}
|
|
3052
3067
|
);
|
|
3053
3068
|
}
|
|
@@ -3055,7 +3070,7 @@ function SelectScrollDownButton({
|
|
|
3055
3070
|
className,
|
|
3056
3071
|
...props
|
|
3057
3072
|
}) {
|
|
3058
|
-
return /* @__PURE__ */ (0,
|
|
3073
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3059
3074
|
SelectPrimitive.ScrollDownButton,
|
|
3060
3075
|
{
|
|
3061
3076
|
"data-slot": "select-scroll-down-button",
|
|
@@ -3064,7 +3079,7 @@ function SelectScrollDownButton({
|
|
|
3064
3079
|
className
|
|
3065
3080
|
),
|
|
3066
3081
|
...props,
|
|
3067
|
-
children: /* @__PURE__ */ (0,
|
|
3082
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_lucide_react12.ChevronDownIcon, { className: "size-4" })
|
|
3068
3083
|
}
|
|
3069
3084
|
);
|
|
3070
3085
|
}
|
|
@@ -3073,30 +3088,30 @@ function SelectScrollDownButton({
|
|
|
3073
3088
|
var import_utils32 = require("@foundrykit/utils");
|
|
3074
3089
|
var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
3075
3090
|
var import_lucide_react13 = require("lucide-react");
|
|
3076
|
-
var
|
|
3091
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
3077
3092
|
function Sheet({ ...props }) {
|
|
3078
|
-
return /* @__PURE__ */ (0,
|
|
3093
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
|
|
3079
3094
|
}
|
|
3080
3095
|
function SheetTrigger({
|
|
3081
3096
|
...props
|
|
3082
3097
|
}) {
|
|
3083
|
-
return /* @__PURE__ */ (0,
|
|
3098
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(SheetPrimitive.Trigger, { "data-slot": "sheet-trigger", ...props });
|
|
3084
3099
|
}
|
|
3085
3100
|
function SheetClose({
|
|
3086
3101
|
...props
|
|
3087
3102
|
}) {
|
|
3088
|
-
return /* @__PURE__ */ (0,
|
|
3103
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(SheetPrimitive.Close, { "data-slot": "sheet-close", ...props });
|
|
3089
3104
|
}
|
|
3090
3105
|
function SheetPortal({
|
|
3091
3106
|
...props
|
|
3092
3107
|
}) {
|
|
3093
|
-
return /* @__PURE__ */ (0,
|
|
3108
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(SheetPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
|
|
3094
3109
|
}
|
|
3095
3110
|
function SheetOverlay({
|
|
3096
3111
|
className,
|
|
3097
3112
|
...props
|
|
3098
3113
|
}) {
|
|
3099
|
-
return /* @__PURE__ */ (0,
|
|
3114
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3100
3115
|
SheetPrimitive.Overlay,
|
|
3101
3116
|
{
|
|
3102
3117
|
"data-slot": "sheet-overlay",
|
|
@@ -3114,9 +3129,9 @@ function SheetContent({
|
|
|
3114
3129
|
side = "right",
|
|
3115
3130
|
...props
|
|
3116
3131
|
}) {
|
|
3117
|
-
return /* @__PURE__ */ (0,
|
|
3118
|
-
/* @__PURE__ */ (0,
|
|
3119
|
-
/* @__PURE__ */ (0,
|
|
3132
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(SheetPortal, { children: [
|
|
3133
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(SheetOverlay, {}),
|
|
3134
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
3120
3135
|
SheetPrimitive.Content,
|
|
3121
3136
|
{
|
|
3122
3137
|
"data-slot": "sheet-content",
|
|
@@ -3131,9 +3146,9 @@ function SheetContent({
|
|
|
3131
3146
|
...props,
|
|
3132
3147
|
children: [
|
|
3133
3148
|
children,
|
|
3134
|
-
/* @__PURE__ */ (0,
|
|
3135
|
-
/* @__PURE__ */ (0,
|
|
3136
|
-
/* @__PURE__ */ (0,
|
|
3149
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(SheetPrimitive.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
|
|
3150
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_lucide_react13.XIcon, { className: "size-4" }),
|
|
3151
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "sr-only", children: "Close" })
|
|
3137
3152
|
] })
|
|
3138
3153
|
]
|
|
3139
3154
|
}
|
|
@@ -3141,7 +3156,7 @@ function SheetContent({
|
|
|
3141
3156
|
] });
|
|
3142
3157
|
}
|
|
3143
3158
|
function SheetHeader({ className, ...props }) {
|
|
3144
|
-
return /* @__PURE__ */ (0,
|
|
3159
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3145
3160
|
"div",
|
|
3146
3161
|
{
|
|
3147
3162
|
"data-slot": "sheet-header",
|
|
@@ -3151,7 +3166,7 @@ function SheetHeader({ className, ...props }) {
|
|
|
3151
3166
|
);
|
|
3152
3167
|
}
|
|
3153
3168
|
function SheetFooter({ className, ...props }) {
|
|
3154
|
-
return /* @__PURE__ */ (0,
|
|
3169
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3155
3170
|
"div",
|
|
3156
3171
|
{
|
|
3157
3172
|
"data-slot": "sheet-footer",
|
|
@@ -3164,7 +3179,7 @@ function SheetTitle({
|
|
|
3164
3179
|
className,
|
|
3165
3180
|
...props
|
|
3166
3181
|
}) {
|
|
3167
|
-
return /* @__PURE__ */ (0,
|
|
3182
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3168
3183
|
SheetPrimitive.Title,
|
|
3169
3184
|
{
|
|
3170
3185
|
"data-slot": "sheet-title",
|
|
@@ -3177,7 +3192,7 @@ function SheetDescription({
|
|
|
3177
3192
|
className,
|
|
3178
3193
|
...props
|
|
3179
3194
|
}) {
|
|
3180
|
-
return /* @__PURE__ */ (0,
|
|
3195
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3181
3196
|
SheetPrimitive.Description,
|
|
3182
3197
|
{
|
|
3183
3198
|
"data-slot": "sheet-description",
|
|
@@ -3189,9 +3204,9 @@ function SheetDescription({
|
|
|
3189
3204
|
|
|
3190
3205
|
// src/components/skeleton/index.tsx
|
|
3191
3206
|
var import_utils33 = require("@foundrykit/utils");
|
|
3192
|
-
var
|
|
3207
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
3193
3208
|
function Skeleton({ className, ...props }) {
|
|
3194
|
-
return /* @__PURE__ */ (0,
|
|
3209
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3195
3210
|
"div",
|
|
3196
3211
|
{
|
|
3197
3212
|
"data-slot": "skeleton",
|
|
@@ -3205,7 +3220,7 @@ function Skeleton({ className, ...props }) {
|
|
|
3205
3220
|
var import_utils34 = require("@foundrykit/utils");
|
|
3206
3221
|
var SliderPrimitive = __toESM(require("@radix-ui/react-slider"), 1);
|
|
3207
3222
|
var React2 = __toESM(require("react"), 1);
|
|
3208
|
-
var
|
|
3223
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
3209
3224
|
function Slider({
|
|
3210
3225
|
className,
|
|
3211
3226
|
defaultValue,
|
|
@@ -3219,7 +3234,7 @@ function Slider({
|
|
|
3219
3234
|
() => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max],
|
|
3220
3235
|
[value, defaultValue, min, max]
|
|
3221
3236
|
);
|
|
3222
|
-
return /* @__PURE__ */ (0,
|
|
3237
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
|
|
3223
3238
|
SliderPrimitive.Root,
|
|
3224
3239
|
{
|
|
3225
3240
|
"data-slot": "slider",
|
|
@@ -3233,14 +3248,14 @@ function Slider({
|
|
|
3233
3248
|
),
|
|
3234
3249
|
...props,
|
|
3235
3250
|
children: [
|
|
3236
|
-
/* @__PURE__ */ (0,
|
|
3251
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3237
3252
|
SliderPrimitive.Track,
|
|
3238
3253
|
{
|
|
3239
3254
|
"data-slot": "slider-track",
|
|
3240
3255
|
className: (0, import_utils34.cn)(
|
|
3241
3256
|
"bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"
|
|
3242
3257
|
),
|
|
3243
|
-
children: /* @__PURE__ */ (0,
|
|
3258
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3244
3259
|
SliderPrimitive.Range,
|
|
3245
3260
|
{
|
|
3246
3261
|
"data-slot": "slider-range",
|
|
@@ -3251,7 +3266,7 @@ function Slider({
|
|
|
3251
3266
|
)
|
|
3252
3267
|
}
|
|
3253
3268
|
),
|
|
3254
|
-
Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ (0,
|
|
3269
|
+
Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3255
3270
|
SliderPrimitive.Thumb,
|
|
3256
3271
|
{
|
|
3257
3272
|
"data-slot": "slider-thumb",
|
|
@@ -3268,10 +3283,10 @@ function Slider({
|
|
|
3268
3283
|
// src/components/sonner/index.tsx
|
|
3269
3284
|
var import_next_themes = require("next-themes");
|
|
3270
3285
|
var import_sonner = require("sonner");
|
|
3271
|
-
var
|
|
3286
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
3272
3287
|
function Toaster({ ...props }) {
|
|
3273
3288
|
const { theme = "system" } = (0, import_next_themes.useTheme)();
|
|
3274
|
-
return /* @__PURE__ */ (0,
|
|
3289
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3275
3290
|
import_sonner.Toaster,
|
|
3276
3291
|
{
|
|
3277
3292
|
theme,
|
|
@@ -3289,12 +3304,12 @@ function Toaster({ ...props }) {
|
|
|
3289
3304
|
// src/components/spinner/index.tsx
|
|
3290
3305
|
var import_utils35 = require("@foundrykit/utils");
|
|
3291
3306
|
var import_lucide_react14 = require("lucide-react");
|
|
3292
|
-
var
|
|
3307
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
3293
3308
|
function Spinner({
|
|
3294
3309
|
className,
|
|
3295
3310
|
...props
|
|
3296
3311
|
}) {
|
|
3297
|
-
return /* @__PURE__ */ (0,
|
|
3312
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3298
3313
|
import_lucide_react14.Loader2Icon,
|
|
3299
3314
|
{
|
|
3300
3315
|
role: "status",
|
|
@@ -3309,12 +3324,12 @@ function Spinner({
|
|
|
3309
3324
|
// src/components/switch/index.tsx
|
|
3310
3325
|
var import_utils36 = require("@foundrykit/utils");
|
|
3311
3326
|
var SwitchPrimitive = __toESM(require("@radix-ui/react-switch"), 1);
|
|
3312
|
-
var
|
|
3327
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
3313
3328
|
function Switch({
|
|
3314
3329
|
className,
|
|
3315
3330
|
...props
|
|
3316
3331
|
}) {
|
|
3317
|
-
return /* @__PURE__ */ (0,
|
|
3332
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
3318
3333
|
SwitchPrimitive.Root,
|
|
3319
3334
|
{
|
|
3320
3335
|
"data-slot": "switch",
|
|
@@ -3323,7 +3338,7 @@ function Switch({
|
|
|
3323
3338
|
className
|
|
3324
3339
|
),
|
|
3325
3340
|
...props,
|
|
3326
|
-
children: /* @__PURE__ */ (0,
|
|
3341
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
3327
3342
|
SwitchPrimitive.Thumb,
|
|
3328
3343
|
{
|
|
3329
3344
|
"data-slot": "switch-thumb",
|
|
@@ -3338,14 +3353,14 @@ function Switch({
|
|
|
3338
3353
|
|
|
3339
3354
|
// src/components/table/index.tsx
|
|
3340
3355
|
var import_utils37 = require("@foundrykit/utils");
|
|
3341
|
-
var
|
|
3356
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
3342
3357
|
function Table({ className, ...props }) {
|
|
3343
|
-
return /* @__PURE__ */ (0,
|
|
3358
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3344
3359
|
"div",
|
|
3345
3360
|
{
|
|
3346
3361
|
"data-slot": "table-container",
|
|
3347
3362
|
className: "relative w-full overflow-x-auto",
|
|
3348
|
-
children: /* @__PURE__ */ (0,
|
|
3363
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3349
3364
|
"table",
|
|
3350
3365
|
{
|
|
3351
3366
|
"data-slot": "table",
|
|
@@ -3357,7 +3372,7 @@ function Table({ className, ...props }) {
|
|
|
3357
3372
|
);
|
|
3358
3373
|
}
|
|
3359
3374
|
function TableHeader({ className, ...props }) {
|
|
3360
|
-
return /* @__PURE__ */ (0,
|
|
3375
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3361
3376
|
"thead",
|
|
3362
3377
|
{
|
|
3363
3378
|
"data-slot": "table-header",
|
|
@@ -3367,7 +3382,7 @@ function TableHeader({ className, ...props }) {
|
|
|
3367
3382
|
);
|
|
3368
3383
|
}
|
|
3369
3384
|
function TableBody({ className, ...props }) {
|
|
3370
|
-
return /* @__PURE__ */ (0,
|
|
3385
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3371
3386
|
"tbody",
|
|
3372
3387
|
{
|
|
3373
3388
|
"data-slot": "table-body",
|
|
@@ -3377,7 +3392,7 @@ function TableBody({ className, ...props }) {
|
|
|
3377
3392
|
);
|
|
3378
3393
|
}
|
|
3379
3394
|
function TableFooter({ className, ...props }) {
|
|
3380
|
-
return /* @__PURE__ */ (0,
|
|
3395
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3381
3396
|
"tfoot",
|
|
3382
3397
|
{
|
|
3383
3398
|
"data-slot": "table-footer",
|
|
@@ -3390,7 +3405,7 @@ function TableFooter({ className, ...props }) {
|
|
|
3390
3405
|
);
|
|
3391
3406
|
}
|
|
3392
3407
|
function TableRow({ className, ...props }) {
|
|
3393
|
-
return /* @__PURE__ */ (0,
|
|
3408
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3394
3409
|
"tr",
|
|
3395
3410
|
{
|
|
3396
3411
|
"data-slot": "table-row",
|
|
@@ -3403,7 +3418,7 @@ function TableRow({ className, ...props }) {
|
|
|
3403
3418
|
);
|
|
3404
3419
|
}
|
|
3405
3420
|
function TableHead({ className, ...props }) {
|
|
3406
|
-
return /* @__PURE__ */ (0,
|
|
3421
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3407
3422
|
"th",
|
|
3408
3423
|
{
|
|
3409
3424
|
"data-slot": "table-head",
|
|
@@ -3416,7 +3431,7 @@ function TableHead({ className, ...props }) {
|
|
|
3416
3431
|
);
|
|
3417
3432
|
}
|
|
3418
3433
|
function TableCell({ className, ...props }) {
|
|
3419
|
-
return /* @__PURE__ */ (0,
|
|
3434
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3420
3435
|
"td",
|
|
3421
3436
|
{
|
|
3422
3437
|
"data-slot": "table-cell",
|
|
@@ -3432,7 +3447,7 @@ function TableCaption({
|
|
|
3432
3447
|
className,
|
|
3433
3448
|
...props
|
|
3434
3449
|
}) {
|
|
3435
|
-
return /* @__PURE__ */ (0,
|
|
3450
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3436
3451
|
"caption",
|
|
3437
3452
|
{
|
|
3438
3453
|
"data-slot": "table-caption",
|
|
@@ -3445,12 +3460,12 @@ function TableCaption({
|
|
|
3445
3460
|
// src/components/tabs/index.tsx
|
|
3446
3461
|
var import_utils38 = require("@foundrykit/utils");
|
|
3447
3462
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"), 1);
|
|
3448
|
-
var
|
|
3463
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
3449
3464
|
function Tabs({
|
|
3450
3465
|
className,
|
|
3451
3466
|
...props
|
|
3452
3467
|
}) {
|
|
3453
|
-
return /* @__PURE__ */ (0,
|
|
3468
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3454
3469
|
TabsPrimitive.Root,
|
|
3455
3470
|
{
|
|
3456
3471
|
"data-slot": "tabs",
|
|
@@ -3463,7 +3478,7 @@ function TabsList({
|
|
|
3463
3478
|
className,
|
|
3464
3479
|
...props
|
|
3465
3480
|
}) {
|
|
3466
|
-
return /* @__PURE__ */ (0,
|
|
3481
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3467
3482
|
TabsPrimitive.List,
|
|
3468
3483
|
{
|
|
3469
3484
|
"data-slot": "tabs-list",
|
|
@@ -3479,7 +3494,7 @@ function TabsTrigger({
|
|
|
3479
3494
|
className,
|
|
3480
3495
|
...props
|
|
3481
3496
|
}) {
|
|
3482
|
-
return /* @__PURE__ */ (0,
|
|
3497
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3483
3498
|
TabsPrimitive.Trigger,
|
|
3484
3499
|
{
|
|
3485
3500
|
"data-slot": "tabs-trigger",
|
|
@@ -3495,7 +3510,7 @@ function TabsContent({
|
|
|
3495
3510
|
className,
|
|
3496
3511
|
...props
|
|
3497
3512
|
}) {
|
|
3498
|
-
return /* @__PURE__ */ (0,
|
|
3513
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3499
3514
|
TabsPrimitive.Content,
|
|
3500
3515
|
{
|
|
3501
3516
|
"data-slot": "tabs-content",
|
|
@@ -3507,9 +3522,9 @@ function TabsContent({
|
|
|
3507
3522
|
|
|
3508
3523
|
// src/components/textarea/index.tsx
|
|
3509
3524
|
var import_utils39 = require("@foundrykit/utils");
|
|
3510
|
-
var
|
|
3525
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
3511
3526
|
function Textarea({ className, ...props }) {
|
|
3512
|
-
return /* @__PURE__ */ (0,
|
|
3527
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3513
3528
|
"textarea",
|
|
3514
3529
|
{
|
|
3515
3530
|
"data-slot": "textarea",
|
|
@@ -3526,7 +3541,7 @@ function Textarea({ className, ...props }) {
|
|
|
3526
3541
|
var import_utils40 = require("@foundrykit/utils");
|
|
3527
3542
|
var TogglePrimitive = __toESM(require("@radix-ui/react-toggle"), 1);
|
|
3528
3543
|
var import_class_variance_authority9 = require("class-variance-authority");
|
|
3529
|
-
var
|
|
3544
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
3530
3545
|
var toggleVariants = (0, import_class_variance_authority9.cva)(
|
|
3531
3546
|
"hover:bg-muted hover:text-muted-foreground data-[state=on]:bg-accent data-[state=on]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
3532
3547
|
{
|
|
@@ -3553,7 +3568,7 @@ function Toggle({
|
|
|
3553
3568
|
size,
|
|
3554
3569
|
...props
|
|
3555
3570
|
}) {
|
|
3556
|
-
return /* @__PURE__ */ (0,
|
|
3571
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
3557
3572
|
TogglePrimitive.Root,
|
|
3558
3573
|
{
|
|
3559
3574
|
"data-slot": "toggle",
|
|
@@ -3568,7 +3583,7 @@ var import_utils41 = require("@foundrykit/utils");
|
|
|
3568
3583
|
var ToggleGroupPrimitive = __toESM(require("@radix-ui/react-toggle-group"), 1);
|
|
3569
3584
|
var import_class_variance_authority10 = require("class-variance-authority");
|
|
3570
3585
|
var React3 = __toESM(require("react"), 1);
|
|
3571
|
-
var
|
|
3586
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
3572
3587
|
var toggleGroupItemVariants = (0, import_class_variance_authority10.cva)(
|
|
3573
3588
|
"hover:bg-muted hover:text-muted-foreground data-[state=on]:bg-accent data-[state=on]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
3574
3589
|
{
|
|
@@ -3600,7 +3615,7 @@ function ToggleGroup({
|
|
|
3600
3615
|
children,
|
|
3601
3616
|
...props
|
|
3602
3617
|
}) {
|
|
3603
|
-
return /* @__PURE__ */ (0,
|
|
3618
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
3604
3619
|
ToggleGroupPrimitive.Root,
|
|
3605
3620
|
{
|
|
3606
3621
|
"data-slot": "toggle-group",
|
|
@@ -3611,7 +3626,7 @@ function ToggleGroup({
|
|
|
3611
3626
|
className
|
|
3612
3627
|
),
|
|
3613
3628
|
...props,
|
|
3614
|
-
children: /* @__PURE__ */ (0,
|
|
3629
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ToggleGroupContext.Provider, { value: { variant, size }, children })
|
|
3615
3630
|
}
|
|
3616
3631
|
);
|
|
3617
3632
|
}
|
|
@@ -3623,7 +3638,7 @@ function ToggleGroupItem({
|
|
|
3623
3638
|
...props
|
|
3624
3639
|
}) {
|
|
3625
3640
|
const context = React3.useContext(ToggleGroupContext);
|
|
3626
|
-
return /* @__PURE__ */ (0,
|
|
3641
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
3627
3642
|
ToggleGroupPrimitive.Item,
|
|
3628
3643
|
{
|
|
3629
3644
|
"data-slot": "toggle-group-item",
|
|
@@ -3646,12 +3661,12 @@ function ToggleGroupItem({
|
|
|
3646
3661
|
// src/components/tooltip/index.tsx
|
|
3647
3662
|
var import_utils42 = require("@foundrykit/utils");
|
|
3648
3663
|
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"), 1);
|
|
3649
|
-
var
|
|
3664
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
3650
3665
|
function TooltipProvider({
|
|
3651
3666
|
delayDuration = 0,
|
|
3652
3667
|
...props
|
|
3653
3668
|
}) {
|
|
3654
|
-
return /* @__PURE__ */ (0,
|
|
3669
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
3655
3670
|
TooltipPrimitive.Provider,
|
|
3656
3671
|
{
|
|
3657
3672
|
"data-slot": "tooltip-provider",
|
|
@@ -3663,12 +3678,12 @@ function TooltipProvider({
|
|
|
3663
3678
|
function Tooltip({
|
|
3664
3679
|
...props
|
|
3665
3680
|
}) {
|
|
3666
|
-
return /* @__PURE__ */ (0,
|
|
3681
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TooltipPrimitive.Root, { "data-slot": "tooltip", ...props }) });
|
|
3667
3682
|
}
|
|
3668
3683
|
function TooltipTrigger({
|
|
3669
3684
|
...props
|
|
3670
3685
|
}) {
|
|
3671
|
-
return /* @__PURE__ */ (0,
|
|
3686
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TooltipPrimitive.Trigger, { "data-slot": "tooltip-trigger", ...props });
|
|
3672
3687
|
}
|
|
3673
3688
|
function TooltipContent({
|
|
3674
3689
|
className,
|
|
@@ -3676,7 +3691,7 @@ function TooltipContent({
|
|
|
3676
3691
|
children,
|
|
3677
3692
|
...props
|
|
3678
3693
|
}) {
|
|
3679
|
-
return /* @__PURE__ */ (0,
|
|
3694
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TooltipPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
3680
3695
|
TooltipPrimitive.Content,
|
|
3681
3696
|
{
|
|
3682
3697
|
"data-slot": "tooltip-content",
|
|
@@ -3688,7 +3703,7 @@ function TooltipContent({
|
|
|
3688
3703
|
...props,
|
|
3689
3704
|
children: [
|
|
3690
3705
|
children,
|
|
3691
|
-
/* @__PURE__ */ (0,
|
|
3706
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TooltipPrimitive.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
|
|
3692
3707
|
]
|
|
3693
3708
|
}
|
|
3694
3709
|
) });
|
|
@@ -3696,9 +3711,9 @@ function TooltipContent({
|
|
|
3696
3711
|
|
|
3697
3712
|
// src/components/typography/index.tsx
|
|
3698
3713
|
var import_utils43 = require("@foundrykit/utils");
|
|
3699
|
-
var
|
|
3714
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
3700
3715
|
function TypographyH1({ className, ...props }) {
|
|
3701
|
-
return /* @__PURE__ */ (0,
|
|
3716
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3702
3717
|
"h1",
|
|
3703
3718
|
{
|
|
3704
3719
|
"data-slot": "typography-h1",
|
|
@@ -3711,7 +3726,7 @@ function TypographyH1({ className, ...props }) {
|
|
|
3711
3726
|
);
|
|
3712
3727
|
}
|
|
3713
3728
|
function TypographyH2({ className, ...props }) {
|
|
3714
|
-
return /* @__PURE__ */ (0,
|
|
3729
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3715
3730
|
"h2",
|
|
3716
3731
|
{
|
|
3717
3732
|
"data-slot": "typography-h2",
|
|
@@ -3724,7 +3739,7 @@ function TypographyH2({ className, ...props }) {
|
|
|
3724
3739
|
);
|
|
3725
3740
|
}
|
|
3726
3741
|
function TypographyH3({ className, ...props }) {
|
|
3727
|
-
return /* @__PURE__ */ (0,
|
|
3742
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3728
3743
|
"h3",
|
|
3729
3744
|
{
|
|
3730
3745
|
"data-slot": "typography-h3",
|
|
@@ -3737,7 +3752,7 @@ function TypographyH3({ className, ...props }) {
|
|
|
3737
3752
|
);
|
|
3738
3753
|
}
|
|
3739
3754
|
function TypographyH4({ className, ...props }) {
|
|
3740
|
-
return /* @__PURE__ */ (0,
|
|
3755
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3741
3756
|
"h4",
|
|
3742
3757
|
{
|
|
3743
3758
|
"data-slot": "typography-h4",
|
|
@@ -3750,7 +3765,7 @@ function TypographyH4({ className, ...props }) {
|
|
|
3750
3765
|
);
|
|
3751
3766
|
}
|
|
3752
3767
|
function TypographyP({ className, ...props }) {
|
|
3753
|
-
return /* @__PURE__ */ (0,
|
|
3768
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3754
3769
|
"p",
|
|
3755
3770
|
{
|
|
3756
3771
|
"data-slot": "typography-p",
|
|
@@ -3763,7 +3778,7 @@ function TypographyBlockquote({
|
|
|
3763
3778
|
className,
|
|
3764
3779
|
...props
|
|
3765
3780
|
}) {
|
|
3766
|
-
return /* @__PURE__ */ (0,
|
|
3781
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3767
3782
|
"blockquote",
|
|
3768
3783
|
{
|
|
3769
3784
|
"data-slot": "typography-blockquote",
|
|
@@ -3773,7 +3788,7 @@ function TypographyBlockquote({
|
|
|
3773
3788
|
);
|
|
3774
3789
|
}
|
|
3775
3790
|
function TypographyList({ className, ...props }) {
|
|
3776
|
-
return /* @__PURE__ */ (0,
|
|
3791
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3777
3792
|
"ul",
|
|
3778
3793
|
{
|
|
3779
3794
|
"data-slot": "typography-list",
|
|
@@ -3786,7 +3801,7 @@ function TypographyInlineCode({
|
|
|
3786
3801
|
className,
|
|
3787
3802
|
...props
|
|
3788
3803
|
}) {
|
|
3789
|
-
return /* @__PURE__ */ (0,
|
|
3804
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3790
3805
|
"code",
|
|
3791
3806
|
{
|
|
3792
3807
|
"data-slot": "typography-inline-code",
|
|
@@ -3799,7 +3814,7 @@ function TypographyInlineCode({
|
|
|
3799
3814
|
);
|
|
3800
3815
|
}
|
|
3801
3816
|
function TypographyLead({ className, ...props }) {
|
|
3802
|
-
return /* @__PURE__ */ (0,
|
|
3817
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3803
3818
|
"p",
|
|
3804
3819
|
{
|
|
3805
3820
|
"data-slot": "typography-lead",
|
|
@@ -3809,7 +3824,7 @@ function TypographyLead({ className, ...props }) {
|
|
|
3809
3824
|
);
|
|
3810
3825
|
}
|
|
3811
3826
|
function TypographyLarge({ className, ...props }) {
|
|
3812
|
-
return /* @__PURE__ */ (0,
|
|
3827
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3813
3828
|
"div",
|
|
3814
3829
|
{
|
|
3815
3830
|
"data-slot": "typography-large",
|
|
@@ -3822,7 +3837,7 @@ function TypographySmall({
|
|
|
3822
3837
|
className,
|
|
3823
3838
|
...props
|
|
3824
3839
|
}) {
|
|
3825
|
-
return /* @__PURE__ */ (0,
|
|
3840
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3826
3841
|
"small",
|
|
3827
3842
|
{
|
|
3828
3843
|
"data-slot": "typography-small",
|
|
@@ -3832,7 +3847,7 @@ function TypographySmall({
|
|
|
3832
3847
|
);
|
|
3833
3848
|
}
|
|
3834
3849
|
function TypographyMuted({ className, ...props }) {
|
|
3835
|
-
return /* @__PURE__ */ (0,
|
|
3850
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3836
3851
|
"p",
|
|
3837
3852
|
{
|
|
3838
3853
|
"data-slot": "typography-muted",
|
|
@@ -4006,6 +4021,7 @@ function TypographyMuted({ className, ...props }) {
|
|
|
4006
4021
|
ResizablePanelGroup,
|
|
4007
4022
|
ScrollArea,
|
|
4008
4023
|
ScrollBar,
|
|
4024
|
+
Section,
|
|
4009
4025
|
Select,
|
|
4010
4026
|
SelectContent,
|
|
4011
4027
|
SelectGroup,
|