@gv-tech/ui-web 2.10.0 → 2.12.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/accordion.cjs.js +1 -0
- package/dist/accordion.d.ts +18 -0
- package/dist/accordion.es.js +259 -0
- package/dist/alert-dialog.cjs.js +7 -0
- package/dist/alert-dialog.d.ts +43 -0
- package/dist/alert-dialog.es.js +171 -0
- package/dist/alert.cjs.js +1 -0
- package/dist/alert.d.ts +18 -0
- package/dist/alert.es.js +32 -0
- package/dist/aspect-ratio.cjs.js +1 -0
- package/dist/aspect-ratio.d.ts +10 -0
- package/dist/aspect-ratio.es.js +43 -0
- package/dist/avatar.cjs.js +1 -0
- package/dist/avatar.d.ts +15 -0
- package/dist/avatar.es.js +205 -0
- package/dist/badge.cjs.js +1 -0
- package/dist/badge.d.ts +16 -0
- package/dist/badge.es.js +26 -0
- package/dist/breadcrumb.cjs.js +1 -0
- package/dist/breadcrumb.d.ts +35 -0
- package/dist/breadcrumb.es.js +69 -0
- package/dist/button.cjs.js +1 -0
- package/dist/button.d.ts +17 -0
- package/dist/button.es.js +40 -0
- package/dist/calendar.cjs.js +1 -0
- package/dist/calendar.d.ts +29 -0
- package/dist/calendar.es.js +2976 -0
- package/dist/card.cjs.js +1 -0
- package/dist/card.d.ts +19 -0
- package/dist/card.es.js +33 -0
- package/dist/carousel.cjs.js +1 -0
- package/dist/carousel.d.ts +50 -0
- package/dist/carousel.es.js +1403 -0
- package/dist/chart.cjs.js +16 -0
- package/dist/chart.d.ts +60 -0
- package/dist/chart.es.js +4402 -0
- package/dist/checkbox.cjs.js +1 -0
- package/dist/checkbox.d.ts +10 -0
- package/dist/checkbox.es.js +258 -0
- package/dist/collapsible.cjs.js +1 -0
- package/dist/collapsible.d.ts +20 -0
- package/dist/collapsible.es.js +7 -0
- package/dist/command.cjs.js +1 -0
- package/dist/command.d.ts +115 -0
- package/dist/command.es.js +396 -0
- package/dist/context-menu.cjs.js +1 -0
- package/dist/context-menu.d.ts +80 -0
- package/dist/context-menu.es.js +328 -0
- package/dist/dialog.cjs.js +1 -0
- package/dist/dialog.d.ts +31 -0
- package/dist/dialog.es.js +66 -0
- package/dist/drawer.cjs.js +3 -0
- package/dist/drawer.d.ts +65 -0
- package/dist/drawer.es.js +1085 -0
- package/dist/dropdown-menu.cjs.js +1 -0
- package/dist/dropdown-menu.d.ts +80 -0
- package/dist/dropdown-menu.es.js +316 -0
- package/dist/form.cjs.js +1 -0
- package/dist/form.d.ts +53 -0
- package/dist/form.es.js +355 -0
- package/dist/hover-card.cjs.js +1 -0
- package/dist/hover-card.d.ts +19 -0
- package/dist/hover-card.es.js +188 -0
- package/dist/index-0ioNhtNM.mjs +10 -0
- package/dist/index-3j-XAIXT.mjs +55 -0
- package/dist/index-B2XtpfGY.js +1 -0
- package/dist/index-B39Lzq0v.js +1 -0
- package/dist/index-B7n6fy75.js +1 -0
- package/dist/index-B8dxbSWX.js +41 -0
- package/dist/index-BGIK9FQF.js +1 -0
- package/dist/index-BZPx6jYI.mjs +8 -0
- package/dist/index-BoNjHhm4.js +1 -0
- package/dist/index-BtZvtDmp.js +1 -0
- package/dist/index-Bv7qrYW6.mjs +180 -0
- package/dist/index-ByiPJW53.js +5 -0
- package/dist/index-C0dlIQIi.js +1 -0
- package/dist/index-C1qb0595.mjs +27 -0
- package/dist/index-C7HEunrh.mjs +15 -0
- package/dist/index-C8ni3LLa.js +1 -0
- package/dist/index-CCKe-Mpx.mjs +6 -0
- package/dist/index-CD6_IrA-.mjs +10 -0
- package/dist/index-CRyCZJLa.mjs +677 -0
- package/dist/index-CVx1AgNG.mjs +615 -0
- package/dist/index-Ce5TOFAK.js +1 -0
- package/dist/index-CeSLNJ60.mjs +32 -0
- package/dist/index-CefEQe_4.js +1 -0
- package/dist/index-Cj5hzyBi.js +1 -0
- package/dist/index-Cjj_rUPu.js +1 -0
- package/dist/index-Cl3G0jzM.js +1 -0
- package/dist/index-CsjrqSSN.js +1 -0
- package/dist/index-CwfE56Ep.mjs +1545 -0
- package/dist/index-CwyAfCwY.js +1 -0
- package/dist/index-CzY-WZXL.js +1 -0
- package/dist/index-D2HnlO3y.js +1 -0
- package/dist/index-DAWHN3cH.mjs +85 -0
- package/dist/index-DFdF7K7v.mjs +50 -0
- package/dist/index-DIsg7zU7.js +1 -0
- package/dist/index-DKN_vhyX.mjs +32 -0
- package/dist/index-DLcqcWxM.mjs +29 -0
- package/dist/index-DSxf1gN6.mjs +118 -0
- package/dist/index-DYxWvftI.js +1 -0
- package/dist/index-DaILh3TV.mjs +32 -0
- package/dist/index-Dfzl8TxY.mjs +136 -0
- package/dist/index-Dko2XdTk.js +1 -0
- package/dist/index-DlY82G31.mjs +245 -0
- package/dist/index-DnFcfnA9.mjs +13 -0
- package/dist/index-IZ2gq03c.mjs +68 -0
- package/dist/index-K9FzbxYw.mjs +93 -0
- package/dist/index-Le8p9oP4.mjs +60 -0
- package/dist/index-MQ0c3ZX_.js +1 -0
- package/dist/index-_XxjJPRD.js +1 -0
- package/dist/index-_wdrnYim.js +1 -0
- package/dist/index-jv3B4mTd.js +1 -0
- package/dist/index-kaM0u2Q1.js +1 -0
- package/dist/index-p6xVFRb4.mjs +52 -0
- package/dist/index-rKs9bXHr.mjs +6 -0
- package/dist/index-vuPgkS0V.mjs +70 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.d.ts +1288 -0
- package/dist/index.es.js +289 -0
- package/dist/input.cjs.js +1 -0
- package/dist/input.d.ts +9 -0
- package/dist/input.es.js +19 -0
- package/dist/jsx-runtime-nZSsnGb7.js +6 -0
- package/dist/jsx-runtime-tc70JA_2.mjs +264 -0
- package/dist/label.cjs.js +1 -0
- package/dist/label.d.ts +11 -0
- package/dist/label.es.js +22 -0
- package/dist/menubar.cjs.js +1 -0
- package/dist/menubar.d.ts +79 -0
- package/dist/menubar.es.js +473 -0
- package/dist/navigation-menu.cjs.js +1 -0
- package/dist/navigation-menu.d.ts +47 -0
- package/dist/navigation-menu.es.js +673 -0
- package/dist/pagination.cjs.js +1 -0
- package/dist/pagination.d.ts +68 -0
- package/dist/pagination.es.js +68 -0
- package/dist/popover.cjs.js +1 -0
- package/dist/popover.d.ts +24 -0
- package/dist/popover.es.js +242 -0
- package/dist/progress.cjs.js +6 -0
- package/dist/progress.d.ts +9 -0
- package/dist/progress.es.js +99 -0
- package/dist/radio-group.cjs.js +1 -0
- package/dist/radio-group.d.ts +16 -0
- package/dist/radio-group.es.js +253 -0
- package/dist/resizable.cjs.js +1 -0
- package/dist/resizable.d.ts +22 -0
- package/dist/resizable.es.js +1990 -0
- package/dist/scroll-area.cjs.js +1 -0
- package/dist/scroll-area.d.ts +14 -0
- package/dist/scroll-area.es.js +546 -0
- package/dist/search.cjs.js +1 -0
- package/dist/search.d.ts +15 -0
- package/dist/search.es.js +51 -0
- package/dist/select.cjs.js +1 -0
- package/dist/select.d.ts +54 -0
- package/dist/select.es.js +908 -0
- package/dist/separator.cjs.js +1 -0
- package/dist/separator.d.ts +9 -0
- package/dist/separator.es.js +35 -0
- package/dist/sheet.cjs.js +1 -0
- package/dist/sheet.d.ts +68 -0
- package/dist/sheet.es.js +66 -0
- package/dist/skeleton.cjs.js +1 -0
- package/dist/skeleton.d.ts +9 -0
- package/dist/skeleton.es.js +8 -0
- package/dist/slider.cjs.js +1 -0
- package/dist/slider.d.ts +9 -0
- package/dist/slider.es.js +442 -0
- package/dist/sonner.cjs.js +1 -0
- package/dist/sonner.d.ts +10 -0
- package/dist/sonner.es.js +764 -0
- package/dist/switch.cjs.js +1 -0
- package/dist/switch.d.ts +9 -0
- package/dist/switch.es.js +149 -0
- package/dist/table.cjs.js +1 -0
- package/dist/table.d.ts +43 -0
- package/dist/table.es.js +57 -0
- package/dist/tabs.cjs.js +1 -0
- package/dist/tabs.d.ts +24 -0
- package/dist/tabs.es.js +195 -0
- package/dist/text.cjs.js +1 -0
- package/dist/text.d.ts +17 -0
- package/dist/text.es.js +42 -0
- package/dist/textarea.cjs.js +1 -0
- package/dist/textarea.d.ts +9 -0
- package/dist/textarea.es.js +18 -0
- package/dist/theme-provider.cjs.js +1 -0
- package/dist/theme-provider.d.ts +9 -0
- package/dist/theme-provider.es.js +8 -0
- package/dist/theme-toggle.cjs.js +1 -0
- package/dist/theme-toggle.d.ts +8 -0
- package/dist/theme-toggle.es.js +78 -0
- package/dist/toast.cjs.js +1 -0
- package/dist/toast.d.ts +26 -0
- package/dist/toast.es.js +494 -0
- package/dist/toaster-CIpfms4W.js +1 -0
- package/dist/toaster-jBYXAPRk.mjs +118 -0
- package/dist/toaster.cjs.js +1 -0
- package/dist/toaster.d.ts +6 -0
- package/dist/toaster.es.js +6 -0
- package/dist/toggle-group.cjs.js +1 -0
- package/dist/toggle-group.d.ts +18 -0
- package/dist/toggle-group.es.js +170 -0
- package/dist/toggle.cjs.js +1 -0
- package/dist/toggle.d.ts +14 -0
- package/dist/toggle.es.js +14 -0
- package/dist/tooltip.cjs.js +1 -0
- package/dist/tooltip.d.ts +25 -0
- package/dist/tooltip.es.js +342 -0
- package/dist/utils-B6yFEsav.mjs +8 -0
- package/dist/utils-IjLH3w2e.js +1 -0
- package/package.json +1 -1
package/dist/card.cjs.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./jsx-runtime-nZSsnGb7.js"),p=require("react"),s=require("./utils-IjLH3w2e.js");function u(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const o=u(p),d=o.forwardRef(({className:e,...r},t)=>a.jsxRuntimeExports.jsx("div",{ref:t,className:s.cn("bg-card text-card-foreground rounded-xl border shadow",e),...r}));d.displayName="Card";const i=o.forwardRef(({className:e,...r},t)=>a.jsxRuntimeExports.jsx("div",{ref:t,className:s.cn("flex flex-col space-y-1.5 p-6",e),...r}));i.displayName="CardHeader";const c=o.forwardRef(({className:e,...r},t)=>a.jsxRuntimeExports.jsx("div",{ref:t,className:s.cn("leading-none font-semibold tracking-tight",e),...r}));c.displayName="CardTitle";const l=o.forwardRef(({className:e,...r},t)=>a.jsxRuntimeExports.jsx("div",{ref:t,className:s.cn("text-muted-foreground text-sm",e),...r}));l.displayName="CardDescription";const f=o.forwardRef(({className:e,...r},t)=>a.jsxRuntimeExports.jsx("div",{ref:t,className:s.cn("p-6 pt-0",e),...r}));f.displayName="CardContent";const m=o.forwardRef(({className:e,...r},t)=>a.jsxRuntimeExports.jsx("div",{ref:t,className:s.cn("flex items-center p-6 pt-0",e),...r}));m.displayName="CardFooter";exports.Card=d;exports.CardContent=f;exports.CardDescription=l;exports.CardFooter=m;exports.CardHeader=i;exports.CardTitle=c;
|
package/dist/card.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CardBaseProps } from '../../ui-core/src';
|
|
2
|
+
import * as React_2 from 'react';
|
|
3
|
+
|
|
4
|
+
export declare const Card: React_2.ForwardRefExoticComponent<CardProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
|
|
6
|
+
export declare const CardContent: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
|
|
8
|
+
export declare const CardDescription: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
|
|
10
|
+
export declare const CardFooter: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
|
|
12
|
+
export declare const CardHeader: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
|
|
14
|
+
export declare interface CardProps extends React_2.HTMLAttributes<HTMLDivElement>, CardBaseProps {
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export declare const CardTitle: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
|
|
19
|
+
export { }
|
package/dist/card.es.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { j as d } from "./jsx-runtime-tc70JA_2.mjs";
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
import { c as o } from "./utils-B6yFEsav.mjs";
|
|
4
|
+
const t = s.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ d.jsx("div", { ref: r, className: o("bg-card text-card-foreground rounded-xl border shadow", a), ...e }));
|
|
5
|
+
t.displayName = "Card";
|
|
6
|
+
const i = s.forwardRef(
|
|
7
|
+
({ className: a, ...e }, r) => /* @__PURE__ */ d.jsx("div", { ref: r, className: o("flex flex-col space-y-1.5 p-6", a), ...e })
|
|
8
|
+
);
|
|
9
|
+
i.displayName = "CardHeader";
|
|
10
|
+
const c = s.forwardRef(
|
|
11
|
+
({ className: a, ...e }, r) => /* @__PURE__ */ d.jsx("div", { ref: r, className: o("leading-none font-semibold tracking-tight", a), ...e })
|
|
12
|
+
);
|
|
13
|
+
c.displayName = "CardTitle";
|
|
14
|
+
const m = s.forwardRef(
|
|
15
|
+
({ className: a, ...e }, r) => /* @__PURE__ */ d.jsx("div", { ref: r, className: o("text-muted-foreground text-sm", a), ...e })
|
|
16
|
+
);
|
|
17
|
+
m.displayName = "CardDescription";
|
|
18
|
+
const n = s.forwardRef(
|
|
19
|
+
({ className: a, ...e }, r) => /* @__PURE__ */ d.jsx("div", { ref: r, className: o("p-6 pt-0", a), ...e })
|
|
20
|
+
);
|
|
21
|
+
n.displayName = "CardContent";
|
|
22
|
+
const f = s.forwardRef(
|
|
23
|
+
({ className: a, ...e }, r) => /* @__PURE__ */ d.jsx("div", { ref: r, className: o("flex items-center p-6 pt-0", a), ...e })
|
|
24
|
+
);
|
|
25
|
+
f.displayName = "CardFooter";
|
|
26
|
+
export {
|
|
27
|
+
t as Card,
|
|
28
|
+
n as CardContent,
|
|
29
|
+
m as CardDescription,
|
|
30
|
+
f as CardFooter,
|
|
31
|
+
i as CardHeader,
|
|
32
|
+
c as CardTitle
|
|
33
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("./jsx-runtime-nZSsnGb7.js"),Y=require("react"),_t=require("lucide-react"),Qt=require("./button.cjs.js"),ht=require("./utils-IjLH3w2e.js");function gn(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return n.default=t,Object.freeze(n)}const k=gn(Y);function hn(t){return Object.prototype.toString.call(t)==="[object Object]"}function Ht(t){return hn(t)||Array.isArray(t)}function xn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ot(t,n){const e=Object.keys(t),r=Object.keys(n);if(e.length!==r.length)return!1;const i=JSON.stringify(Object.keys(t.breakpoints||{})),s=JSON.stringify(Object.keys(n.breakpoints||{}));return i!==s?!1:e.every(o=>{const a=t[o],c=n[o];return typeof a=="function"?`${a}`==`${c}`:!Ht(a)||!Ht(c)?a===c:Ot(a,c)})}function $t(t){return t.concat().sort((n,e)=>n.name>e.name?1:-1).map(n=>n.options)}function Sn(t,n){if(t.length!==n.length)return!1;const e=$t(t),r=$t(n);return e.every((i,s)=>{const o=r[s];return Ot(i,o)})}function Pt(t){return typeof t=="number"}function Tt(t){return typeof t=="string"}function bt(t){return typeof t=="boolean"}function Kt(t){return Object.prototype.toString.call(t)==="[object Object]"}function P(t){return Math.abs(t)}function Dt(t){return Math.sign(t)}function dt(t,n){return P(t-n)}function yn(t,n){if(t===0||n===0||P(t)<=P(n))return 0;const e=dt(P(t),P(n));return P(e/t)}function bn(t){return Math.round(t*100)/100}function pt(t){return mt(t).map(Number)}function V(t){return t[xt(t)]}function xt(t){return Math.max(0,t.length-1)}function jt(t,n){return n===xt(t)}function Ut(t,n=0){return Array.from(Array(t),(e,r)=>n+r)}function mt(t){return Object.keys(t)}function Jt(t,n){return[t,n].reduce((e,r)=>(mt(r).forEach(i=>{const s=e[i],o=r[i],a=Kt(s)&&Kt(o);e[i]=a?Jt(s,o):o}),e),{})}function Nt(t,n){return typeof n.MouseEvent<"u"&&t instanceof n.MouseEvent}function En(t,n){const e={start:r,center:i,end:s};function r(){return 0}function i(c){return s(c)/2}function s(c){return n-c}function o(c,u){return Tt(t)?e[t](c):t(n,c,u)}return{measure:o}}function gt(){let t=[];function n(i,s,o,a={passive:!0}){let c;if("addEventListener"in i)i.addEventListener(s,o,a),c=()=>i.removeEventListener(s,o,a);else{const u=i;u.addListener(o),c=()=>u.removeListener(o)}return t.push(c),r}function e(){t=t.filter(i=>i())}const r={add:n,clear:e};return r}function vn(t,n,e,r){const i=gt(),s=1e3/60;let o=null,a=0,c=0;function u(){i.add(t,"visibilitychange",()=>{t.hidden&&l()})}function x(){y(),i.clear()}function d(h){if(!c)return;o||(o=h,e(),e());const f=h-o;for(o=h,a+=f;a>=s;)e(),a-=s;const g=a/s;r(g),c&&(c=n.requestAnimationFrame(d))}function p(){c||(c=n.requestAnimationFrame(d))}function y(){n.cancelAnimationFrame(c),o=null,a=0,c=0}function l(){o=null,a=0}return{init:u,destroy:x,start:p,stop:y,update:e,render:r}}function Cn(t,n){const e=n==="rtl",r=t==="y",i=r?"y":"x",s=r?"x":"y",o=!r&&e?-1:1,a=x(),c=d();function u(l){const{height:m,width:h}=l;return r?m:h}function x(){return r?"top":e?"right":"left"}function d(){return r?"bottom":e?"left":"right"}function p(l){return l*o}return{scroll:i,cross:s,startEdge:a,endEdge:c,measureSize:u,direction:p}}function ot(t=0,n=0){const e=P(t-n);function r(u){return u<t}function i(u){return u>n}function s(u){return r(u)||i(u)}function o(u){return s(u)?r(u)?t:n:u}function a(u){return e?u-e*Math.ceil((u-n)/e):u}return{length:e,max:n,min:t,constrain:o,reachedAny:s,reachedMax:i,reachedMin:r,removeOffset:a}}function Xt(t,n,e){const{constrain:r}=ot(0,t),i=t+1;let s=o(n);function o(p){return e?P((i+p)%i):r(p)}function a(){return s}function c(p){return s=o(p),d}function u(p){return x().set(a()+p)}function x(){return Xt(t,a(),e)}const d={get:a,set:c,add:u,clone:x};return d}function Ln(t,n,e,r,i,s,o,a,c,u,x,d,p,y,l,m,h,f,g){const{cross:b,direction:C}=t,N=["INPUT","SELECT","TEXTAREA"],L={passive:!1},E=gt(),v=gt(),w=ot(50,225).constrain(y.measure(20)),D={mouse:300,touch:400},I={mouse:500,touch:600},R=l?43:25;let q=!1,G=0,H=0,tt=!1,Z=!1,U=!1,_=!1;function ct(S){if(!g)return;function T(M){(bt(g)||g(S,M))&&at(M)}const j=n;E.add(j,"dragstart",M=>M.preventDefault(),L).add(j,"touchmove",()=>{},L).add(j,"touchend",()=>{}).add(j,"touchstart",T).add(j,"mousedown",T).add(j,"touchcancel",A).add(j,"contextmenu",A).add(j,"click",J,!0)}function $(){E.clear(),v.clear()}function rt(){const S=_?e:n;v.add(S,"touchmove",F,L).add(S,"touchend",A).add(S,"mousemove",F,L).add(S,"mouseup",A)}function st(S){const T=S.nodeName||"";return N.includes(T)}function Q(){return(l?I:D)[_?"mouse":"touch"]}function ut(S,T){const j=d.add(Dt(S)*-1),M=x.byDistance(S,!l).distance;return l||P(S)<w?M:h&&T?M*.5:x.byIndex(j.get(),0).distance}function at(S){const T=Nt(S,r);_=T,U=l&&T&&!S.buttons&&q,q=dt(i.get(),o.get())>=2,!(T&&S.button!==0)&&(st(S.target)||(tt=!0,s.pointerDown(S),u.useFriction(0).useDuration(0),i.set(o),rt(),G=s.readPoint(S),H=s.readPoint(S,b),p.emit("pointerDown")))}function F(S){if(!Nt(S,r)&&S.touches.length>=2)return A(S);const j=s.readPoint(S),M=s.readPoint(S,b),K=dt(j,G),X=dt(M,H);if(!Z&&!_&&(!S.cancelable||(Z=K>X,!Z)))return A(S);const nt=s.pointerMove(S);K>m&&(U=!0),u.useFriction(.3).useDuration(.75),a.start(),i.add(C(nt)),S.preventDefault()}function A(S){const j=x.byDistance(0,!1).index!==d.get(),M=s.pointerUp(S)*Q(),K=ut(C(M),j),X=yn(M,K),nt=R-10*X,W=f+X/50;Z=!1,tt=!1,v.clear(),u.useDuration(nt).useFriction(W),c.distance(K,!l),_=!1,p.emit("pointerUp")}function J(S){U&&(S.stopPropagation(),S.preventDefault(),U=!1)}function z(){return tt}return{init:ct,destroy:$,pointerDown:z}}function wn(t,n){let r,i;function s(d){return d.timeStamp}function o(d,p){const l=`client${(p||t.scroll)==="x"?"X":"Y"}`;return(Nt(d,n)?d:d.touches[0])[l]}function a(d){return r=d,i=d,o(d)}function c(d){const p=o(d)-o(i),y=s(d)-s(r)>170;return i=d,y&&(r=d),p}function u(d){if(!r||!i)return 0;const p=o(i)-o(r),y=s(d)-s(r),l=s(d)-s(i)>170,m=p/y;return y&&!l&&P(m)>.1?m:0}return{pointerDown:a,pointerMove:c,pointerUp:u,readPoint:o}}function In(){function t(e){const{offsetTop:r,offsetLeft:i,offsetWidth:s,offsetHeight:o}=e;return{top:r,right:i+s,bottom:r+o,left:i,width:s,height:o}}return{measure:t}}function Tn(t){function n(r){return t*(r/100)}return{measure:n}}function Nn(t,n,e,r,i,s,o){const a=[t].concat(r);let c,u,x=[],d=!1;function p(h){return i.measureSize(o.measure(h))}function y(h){if(!s)return;u=p(t),x=r.map(p);function f(g){for(const b of g){if(d)return;const C=b.target===t,N=r.indexOf(b.target),L=C?u:x[N],E=p(C?t:r[N]);if(P(E-L)>=.5){h.reInit(),n.emit("resize");break}}}c=new ResizeObserver(g=>{(bt(s)||s(h,g))&&f(g)}),e.requestAnimationFrame(()=>{a.forEach(g=>c.observe(g))})}function l(){d=!0,c&&c.disconnect()}return{init:y,destroy:l}}function On(t,n,e,r,i,s){let o=0,a=0,c=i,u=s,x=t.get(),d=0;function p(){const L=r.get()-t.get(),E=!c;let v=0;return E?(o=0,e.set(r),t.set(r),v=L):(e.set(t),o+=L/c,o*=u,x+=o,t.add(o),v=x-d),a=Dt(v),d=x,N}function y(){const L=r.get()-n.get();return P(L)<.001}function l(){return c}function m(){return a}function h(){return o}function f(){return b(i)}function g(){return C(s)}function b(L){return c=L,N}function C(L){return u=L,N}const N={direction:m,duration:l,velocity:h,seek:p,settled:y,useBaseFriction:g,useBaseDuration:f,useFriction:C,useDuration:b};return N}function Pn(t,n,e,r,i){const s=i.measure(10),o=i.measure(50),a=ot(.1,.99);let c=!1;function u(){return!(c||!t.reachedAny(e.get())||!t.reachedAny(n.get()))}function x(y){if(!u())return;const l=t.reachedMin(n.get())?"min":"max",m=P(t[l]-n.get()),h=e.get()-n.get(),f=a.constrain(m/o);e.subtract(h*f),!y&&P(h)<s&&(e.set(t.constrain(e.get())),r.useDuration(25).useBaseFriction())}function d(y){c=!y}return{shouldConstrain:u,constrain:x,toggleActive:d}}function Dn(t,n,e,r,i){const s=ot(-n+t,0),o=d(),a=x(),c=p();function u(l,m){return dt(l,m)<=1}function x(){const l=o[0],m=V(o),h=o.lastIndexOf(l),f=o.indexOf(m)+1;return ot(h,f)}function d(){return e.map((l,m)=>{const{min:h,max:f}=s,g=s.constrain(l),b=!m,C=jt(e,m);return b?f:C||u(h,g)?h:u(f,g)?f:g}).map(l=>parseFloat(l.toFixed(3)))}function p(){if(n<=t+i)return[s.max];if(r==="keepSnaps")return o;const{min:l,max:m}=a;return o.slice(l,m)}return{snapsContained:c,scrollContainLimit:a}}function jn(t,n,e){const r=n[0],i=e?r-t:V(n);return{limit:ot(i,r)}}function An(t,n,e,r){const s=n.min+.1,o=n.max+.1,{reachedMin:a,reachedMax:c}=ot(s,o);function u(p){return p===1?c(e.get()):p===-1?a(e.get()):!1}function x(p){if(!u(p))return;const y=t*(p*-1);r.forEach(l=>l.add(y))}return{loop:x}}function Mn(t){const{max:n,length:e}=t;function r(s){const o=s-n;return e?o/-e:0}return{get:r}}function kn(t,n,e,r,i){const{startEdge:s,endEdge:o}=t,{groupSlides:a}=i,c=d().map(n.measure),u=p(),x=y();function d(){return a(r).map(m=>V(m)[o]-m[0][s]).map(P)}function p(){return r.map(m=>e[s]-m[s]).map(m=>-P(m))}function y(){return a(u).map(m=>m[0]).map((m,h)=>m+c[h])}return{snaps:u,snapsAligned:x}}function Rn(t,n,e,r,i,s){const{groupSlides:o}=i,{min:a,max:c}=r,u=x();function x(){const p=o(s),y=!t||n==="keepSnaps";return e.length===1?[s]:y?p:p.slice(a,c).map((l,m,h)=>{const f=!m,g=jt(h,m);if(f){const b=V(h[0])+1;return Ut(b)}if(g){const b=xt(s)-V(h)[0]+1;return Ut(b,V(h)[0])}return l})}return{slideRegistry:u}}function Fn(t,n,e,r,i){const{reachedAny:s,removeOffset:o,constrain:a}=r;function c(l){return l.concat().sort((m,h)=>P(m)-P(h))[0]}function u(l){const m=t?o(l):a(l),h=n.map((g,b)=>({diff:x(g-m,0),index:b})).sort((g,b)=>P(g.diff)-P(b.diff)),{index:f}=h[0];return{index:f,distance:m}}function x(l,m){const h=[l,l+e,l-e];if(!t)return l;if(!m)return c(h);const f=h.filter(g=>Dt(g)===m);return f.length?c(f):V(h)-e}function d(l,m){const h=n[l]-i.get(),f=x(h,m);return{index:l,distance:f}}function p(l,m){const h=i.get()+l,{index:f,distance:g}=u(h),b=!t&&s(h);if(!m||b)return{index:f,distance:l};const C=n[f]-g,N=l+x(C,0);return{index:f,distance:N}}return{byDistance:p,byIndex:d,shortcut:x}}function zn(t,n,e,r,i,s,o){function a(d){const p=d.distance,y=d.index!==n.get();s.add(p),p&&(r.duration()?t.start():(t.update(),t.render(1),t.update())),y&&(e.set(n.get()),n.set(d.index),o.emit("select"))}function c(d,p){const y=i.byDistance(d,p);a(y)}function u(d,p){const y=n.clone().set(d),l=i.byIndex(y.get(),p);a(l)}return{distance:c,index:u}}function Bn(t,n,e,r,i,s,o,a){const c={passive:!0,capture:!0};let u=0;function x(y){if(!a)return;function l(m){if(new Date().getTime()-u>10)return;o.emit("slideFocusStart"),t.scrollLeft=0;const g=e.findIndex(b=>b.includes(m));Pt(g)&&(i.useDuration(0),r.index(g,0),o.emit("slideFocus"))}s.add(document,"keydown",d,!1),n.forEach((m,h)=>{s.add(m,"focus",f=>{(bt(a)||a(y,f))&&l(h)},c)})}function d(y){y.code==="Tab"&&(u=new Date().getTime())}return{init:x}}function ft(t){let n=t;function e(){return n}function r(c){n=o(c)}function i(c){n+=o(c)}function s(c){n-=o(c)}function o(c){return Pt(c)?c:c.get()}return{get:e,set:r,add:i,subtract:s}}function Yt(t,n){const e=t.scroll==="x"?o:a,r=n.style;let i=null,s=!1;function o(p){return`translate3d(${p}px,0px,0px)`}function a(p){return`translate3d(0px,${p}px,0px)`}function c(p){if(s)return;const y=bn(t.direction(p));y!==i&&(r.transform=e(y),i=y)}function u(p){s=!p}function x(){s||(r.transform="",n.getAttribute("style")||n.removeAttribute("style"))}return{clear:x,to:c,toggleActive:u}}function Vn(t,n,e,r,i,s,o,a,c){const x=pt(i),d=pt(i).reverse(),p=f().concat(g());function y(E,v){return E.reduce((w,D)=>w-i[D],v)}function l(E,v){return E.reduce((w,D)=>y(w,v)>0?w.concat([D]):w,[])}function m(E){return s.map((v,w)=>({start:v-r[w]+.5+E,end:v+n-.5+E}))}function h(E,v,w){const D=m(v);return E.map(I=>{const R=w?0:-e,q=w?e:0,G=w?"end":"start",H=D[I][G];return{index:I,loopPoint:H,slideLocation:ft(-1),translate:Yt(t,c[I]),target:()=>a.get()>H?R:q}})}function f(){const E=o[0],v=l(d,E);return h(v,e,!1)}function g(){const E=n-o[0]-1,v=l(x,E);return h(v,-e,!0)}function b(){return p.every(({index:E})=>{const v=x.filter(w=>w!==E);return y(v,n)<=.1})}function C(){p.forEach(E=>{const{target:v,translate:w,slideLocation:D}=E,I=v();I!==D.get()&&(w.to(I),D.set(I))})}function N(){p.forEach(E=>E.translate.clear())}return{canLoop:b,clear:N,loop:C,loopPoints:p}}function qn(t,n,e){let r,i=!1;function s(c){if(!e)return;function u(x){for(const d of x)if(d.type==="childList"){c.reInit(),n.emit("slidesChanged");break}}r=new MutationObserver(x=>{i||(bt(e)||e(c,x))&&u(x)}),r.observe(t,{childList:!0})}function o(){r&&r.disconnect(),i=!0}return{init:s,destroy:o}}function Gn(t,n,e,r){const i={};let s=null,o=null,a,c=!1;function u(){a=new IntersectionObserver(l=>{c||(l.forEach(m=>{const h=n.indexOf(m.target);i[h]=m}),s=null,o=null,e.emit("slidesInView"))},{root:t.parentElement,threshold:r}),n.forEach(l=>a.observe(l))}function x(){a&&a.disconnect(),c=!0}function d(l){return mt(i).reduce((m,h)=>{const f=parseInt(h),{isIntersecting:g}=i[f];return(l&&g||!l&&!g)&&m.push(f),m},[])}function p(l=!0){if(l&&s)return s;if(!l&&o)return o;const m=d(l);return l&&(s=m),l||(o=m),m}return{init:u,destroy:x,get:p}}function Hn(t,n,e,r,i,s){const{measureSize:o,startEdge:a,endEdge:c}=t,u=e[0]&&i,x=l(),d=m(),p=e.map(o),y=h();function l(){if(!u)return 0;const g=e[0];return P(n[a]-g[a])}function m(){if(!u)return 0;const g=s.getComputedStyle(V(r));return parseFloat(g.getPropertyValue(`margin-${c}`))}function h(){return e.map((g,b,C)=>{const N=!b,L=jt(C,b);return N?p[b]+x:L?p[b]+d:C[b+1][a]-g[a]}).map(P)}return{slideSizes:p,slideSizesWithGaps:y,startGap:x,endGap:d}}function $n(t,n,e,r,i,s,o,a,c){const{startEdge:u,endEdge:x,direction:d}=t,p=Pt(e);function y(f,g){return pt(f).filter(b=>b%g===0).map(b=>f.slice(b,b+g))}function l(f){return f.length?pt(f).reduce((g,b,C)=>{const N=V(g)||0,L=N===0,E=b===xt(f),v=i[u]-s[N][u],w=i[u]-s[b][x],D=!r&&L?d(o):0,I=!r&&E?d(a):0,R=P(w-I-(v+D));return C&&R>n+c&&g.push(b),E&&g.push(f.length),g},[]).map((g,b,C)=>{const N=Math.max(C[b-1]||0);return f.slice(N,g)}):[]}function m(f){return p?y(f,e):l(f)}return{groupSlides:m}}function Kn(t,n,e,r,i,s,o){const{align:a,axis:c,direction:u,startIndex:x,loop:d,duration:p,dragFree:y,dragThreshold:l,inViewThreshold:m,slidesToScroll:h,skipSnaps:f,containScroll:g,watchResize:b,watchSlides:C,watchDrag:N,watchFocus:L}=s,E=2,v=In(),w=v.measure(n),D=e.map(v.measure),I=Cn(c,u),R=I.measureSize(w),q=Tn(R),G=En(a,R),H=!d&&!!g,tt=d||!!g,{slideSizes:Z,slideSizesWithGaps:U,startGap:_,endGap:ct}=Hn(I,w,D,e,tt,i),$=$n(I,R,h,d,w,D,_,ct,E),{snaps:rt,snapsAligned:st}=kn(I,G,w,D,$),Q=-V(rt)+V(U),{snapsContained:ut,scrollContainLimit:at}=Dn(R,Q,st,g,E),F=H?ut:st,{limit:A}=jn(Q,F,d),J=Xt(xt(F),x,d),z=J.clone(),O=pt(e),S=({dragHandler:it,scrollBody:wt,scrollBounds:It,options:{loop:St}})=>{St||It.constrain(it.pointerDown()),wt.seek()},T=({scrollBody:it,translate:wt,location:It,offsetLocation:St,previousLocation:cn,scrollLooper:un,slideLooper:an,dragHandler:ln,animation:fn,eventHandler:Ft,scrollBounds:dn,options:{loop:zt}},Bt)=>{const Vt=it.settled(),pn=!dn.shouldConstrain(),qt=zt?Vt:Vt&&pn,Gt=qt&&!ln.pointerDown();Gt&&fn.stop();const mn=It.get()*Bt+cn.get()*(1-Bt);St.set(mn),zt&&(un.loop(it.direction()),an.loop()),wt.to(St.get()),Gt&&Ft.emit("settle"),qt||Ft.emit("scroll")},j=vn(r,i,()=>S(Lt),it=>T(Lt,it)),M=.68,K=F[J.get()],X=ft(K),nt=ft(K),W=ft(K),et=ft(K),lt=On(X,W,nt,et,p,M),vt=Fn(d,F,Q,A,et),Ct=zn(j,J,z,lt,vt,et,o),Mt=Mn(A),kt=gt(),rn=Gn(n,e,o,m),{slideRegistry:Rt}=Rn(H,g,F,at,$,O),sn=Bn(t,e,Rt,Ct,lt,kt,o,L),Lt={ownerDocument:r,ownerWindow:i,eventHandler:o,containerRect:w,slideRects:D,animation:j,axis:I,dragHandler:Ln(I,t,r,i,et,wn(I,i),X,j,Ct,lt,vt,J,o,q,y,l,f,M,N),eventStore:kt,percentOfView:q,index:J,indexPrevious:z,limit:A,location:X,offsetLocation:W,previousLocation:nt,options:s,resizeHandler:Nn(n,o,i,e,I,b,v),scrollBody:lt,scrollBounds:Pn(A,W,et,lt,q),scrollLooper:An(Q,A,W,[X,W,nt,et]),scrollProgress:Mt,scrollSnapList:F.map(Mt.get),scrollSnaps:F,scrollTarget:vt,scrollTo:Ct,slideLooper:Vn(I,R,Q,Z,U,rt,F,W,e),slideFocus:sn,slidesHandler:qn(n,o,C),slidesInView:rn,slideIndexes:O,slideRegistry:Rt,slidesToScroll:$,target:et,translate:Yt(I,n)};return Lt}function Un(){let t={},n;function e(u){n=u}function r(u){return t[u]||[]}function i(u){return r(u).forEach(x=>x(n,u)),c}function s(u,x){return t[u]=r(u).concat([x]),c}function o(u,x){return t[u]=r(u).filter(d=>d!==x),c}function a(){t={}}const c={init:e,emit:i,off:o,on:s,clear:a};return c}const _n={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Qn(t){function n(s,o){return Jt(s,o||{})}function e(s){const o=s.breakpoints||{},a=mt(o).filter(c=>t.matchMedia(c).matches).map(c=>o[c]).reduce((c,u)=>n(c,u),{});return n(s,a)}function r(s){return s.map(o=>mt(o.breakpoints||{})).reduce((o,a)=>o.concat(a),[]).map(t.matchMedia)}return{mergeOptions:n,optionsAtMedia:e,optionsMediaQueries:r}}function Jn(t){let n=[];function e(s,o){return n=o.filter(({options:a})=>t.optionsAtMedia(a).active!==!1),n.forEach(a=>a.init(s,t)),o.reduce((a,c)=>Object.assign(a,{[c.name]:c}),{})}function r(){n=n.filter(s=>s.destroy())}return{init:e,destroy:r}}function yt(t,n,e){const r=t.ownerDocument,i=r.defaultView,s=Qn(i),o=Jn(s),a=gt(),c=Un(),{mergeOptions:u,optionsAtMedia:x,optionsMediaQueries:d}=s,{on:p,off:y,emit:l}=c,m=I;let h=!1,f,g=u(_n,yt.globalOptions),b=u(g),C=[],N,L,E;function v(){const{container:O,slides:S}=b;L=(Tt(O)?t.querySelector(O):O)||t.children[0];const j=Tt(S)?L.querySelectorAll(S):S;E=[].slice.call(j||L.children)}function w(O){const S=Kn(t,L,E,r,i,O,c);if(O.loop&&!S.slideLooper.canLoop()){const T=Object.assign({},O,{loop:!1});return w(T)}return S}function D(O,S){h||(g=u(g,O),b=x(g),C=S||C,v(),f=w(b),d([g,...C.map(({options:T})=>T)]).forEach(T=>a.add(T,"change",I)),b.active&&(f.translate.to(f.location.get()),f.animation.init(),f.slidesInView.init(),f.slideFocus.init(z),f.eventHandler.init(z),f.resizeHandler.init(z),f.slidesHandler.init(z),f.options.loop&&f.slideLooper.loop(),L.offsetParent&&E.length&&f.dragHandler.init(z),N=o.init(z,C)))}function I(O,S){const T=$();R(),D(u({startIndex:T},O),S),c.emit("reInit")}function R(){f.dragHandler.destroy(),f.eventStore.clear(),f.translate.clear(),f.slideLooper.clear(),f.resizeHandler.destroy(),f.slidesHandler.destroy(),f.slidesInView.destroy(),f.animation.destroy(),o.destroy(),a.clear()}function q(){h||(h=!0,a.clear(),R(),c.emit("destroy"),c.clear())}function G(O,S,T){!b.active||h||(f.scrollBody.useBaseFriction().useDuration(S===!0?0:b.duration),f.scrollTo.index(O,T||0))}function H(O){const S=f.index.add(1).get();G(S,O,-1)}function tt(O){const S=f.index.add(-1).get();G(S,O,1)}function Z(){return f.index.add(1).get()!==$()}function U(){return f.index.add(-1).get()!==$()}function _(){return f.scrollSnapList}function ct(){return f.scrollProgress.get(f.offsetLocation.get())}function $(){return f.index.get()}function rt(){return f.indexPrevious.get()}function st(){return f.slidesInView.get()}function Q(){return f.slidesInView.get(!1)}function ut(){return N}function at(){return f}function F(){return t}function A(){return L}function J(){return E}const z={canScrollNext:Z,canScrollPrev:U,containerNode:A,internalEngine:at,destroy:q,off:y,on:p,emit:l,plugins:ut,previousScrollSnap:rt,reInit:m,rootNode:F,scrollNext:H,scrollPrev:tt,scrollProgress:ct,scrollSnapList:_,scrollTo:G,selectedScrollSnap:$,slideNodes:J,slidesInView:st,slidesNotInView:Q};return D(n,e),setTimeout(()=>c.emit("init"),0),z}yt.globalOptions=void 0;function At(t={},n=[]){const e=Y.useRef(t),r=Y.useRef(n),[i,s]=Y.useState(),[o,a]=Y.useState(),c=Y.useCallback(()=>{i&&i.reInit(e.current,r.current)},[i]);return Y.useEffect(()=>{Ot(e.current,t)||(e.current=t,c())},[t,c]),Y.useEffect(()=>{Sn(r.current,n)||(r.current=n,c())},[n,c]),Y.useEffect(()=>{if(xn()&&o){yt.globalOptions=At.globalOptions;const u=yt(o,e.current,r.current);return s(u),()=>u.destroy()}else s(void 0)},[o,s]),[a,i]}At.globalOptions=void 0;const Zt=k.createContext(null);function Et(){const t=k.useContext(Zt);if(!t)throw new Error("useCarousel must be used within a <Carousel />");return t}const Wt=k.forwardRef(({orientation:t="horizontal",opts:n,setApi:e,plugins:r,className:i,children:s,...o},a)=>{const[c,u]=At({...n,axis:t==="horizontal"?"x":"y"},r),[x,d]=k.useState(!1),[p,y]=k.useState(!1),l=k.useCallback(g=>{g&&(d(g.canScrollPrev()),y(g.canScrollNext()))},[]),m=k.useCallback(()=>{u?.scrollPrev()},[u]),h=k.useCallback(()=>{u?.scrollNext()},[u]),f=k.useCallback(g=>{g.key==="ArrowLeft"?(g.preventDefault(),m()):g.key==="ArrowRight"&&(g.preventDefault(),h())},[m,h]);return k.useEffect(()=>{!u||!e||e(u)},[u,e]),k.useEffect(()=>{if(u)return l(u),u.on("reInit",l),u.on("select",l),()=>{u?.off("select",l)}},[u,l]),B.jsxRuntimeExports.jsx(Zt.Provider,{value:{carouselRef:c,api:u,opts:n,orientation:t||(n?.axis==="y"?"vertical":"horizontal"),scrollPrev:m,scrollNext:h,canScrollPrev:x,canScrollNext:p},children:B.jsxRuntimeExports.jsx("div",{ref:a,onKeyDownCapture:f,className:ht.cn("relative",i),role:"region","aria-roledescription":"carousel",...o,children:s})})});Wt.displayName="Carousel";const tn=k.forwardRef(({className:t,...n},e)=>{const{carouselRef:r,orientation:i}=Et();return B.jsxRuntimeExports.jsx("div",{ref:r,className:"overflow-hidden",children:B.jsxRuntimeExports.jsx("div",{ref:e,className:ht.cn("flex",i==="horizontal"?"-ml-4":"-mt-4 flex-col",t),...n})})});tn.displayName="CarouselContent";const nn=k.forwardRef(({className:t,...n},e)=>{const{orientation:r}=Et();return B.jsxRuntimeExports.jsx("div",{ref:e,role:"group","aria-roledescription":"slide",className:ht.cn("min-w-0 shrink-0 grow-0 basis-full",r==="horizontal"?"pl-4":"pt-4",t),...n})});nn.displayName="CarouselItem";const en=k.forwardRef(({className:t,variant:n="outline",size:e="icon",...r},i)=>{const{orientation:s,scrollPrev:o,canScrollPrev:a}=Et();return B.jsxRuntimeExports.jsxs(Qt.Button,{ref:i,variant:n,size:e,className:ht.cn("absolute h-8 w-8 rounded-full",s==="horizontal"?"top-1/2 -left-12 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!a,onClick:o,...r,children:[B.jsxRuntimeExports.jsx(_t.ArrowLeft,{className:"h-4 w-4"}),B.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Previous slide"})]})});en.displayName="CarouselPrevious";const on=k.forwardRef(({className:t,variant:n="outline",size:e="icon",...r},i)=>{const{orientation:s,scrollNext:o,canScrollNext:a}=Et();return B.jsxRuntimeExports.jsxs(Qt.Button,{ref:i,variant:n,size:e,className:ht.cn("absolute h-8 w-8 rounded-full",s==="horizontal"?"top-1/2 -right-12 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!a,onClick:o,...r,children:[B.jsxRuntimeExports.jsx(_t.ArrowRight,{className:"h-4 w-4"}),B.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Next slide"})]})});on.displayName="CarouselNext";exports.Carousel=Wt;exports.CarouselContent=tn;exports.CarouselItem=nn;exports.CarouselNext=on;exports.CarouselPrevious=en;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ButtonBaseProps } from '../../ui-core/src';
|
|
2
|
+
import { CarouselBaseProps } from '../../ui-core/src';
|
|
3
|
+
import { CarouselContentBaseProps } from '../../ui-core/src';
|
|
4
|
+
import { CarouselItemBaseProps } from '../../ui-core/src';
|
|
5
|
+
import { CarouselNextBaseProps } from '../../ui-core/src';
|
|
6
|
+
import { CarouselPreviousBaseProps } from '../../ui-core/src';
|
|
7
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
8
|
+
import { default as default_2 } from 'embla-carousel-react';
|
|
9
|
+
import * as React_2 from 'react';
|
|
10
|
+
import { UseEmblaCarouselType } from 'embla-carousel-react';
|
|
11
|
+
import { VariantProps } from 'class-variance-authority';
|
|
12
|
+
|
|
13
|
+
declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants>, ButtonBaseProps {
|
|
14
|
+
asChild?: boolean;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare const buttonVariants: (props?: ({
|
|
18
|
+
variant?: "default" | "destructive" | "secondary" | "outline" | "ghost" | "link" | null | undefined;
|
|
19
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
20
|
+
} & ClassProp) | undefined) => string;
|
|
21
|
+
|
|
22
|
+
export declare const Carousel: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & CarouselBaseProps & {
|
|
23
|
+
opts?: CarouselOptions;
|
|
24
|
+
plugins?: CarouselPlugin;
|
|
25
|
+
setApi?: (api: CarouselApi) => void;
|
|
26
|
+
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
|
|
28
|
+
export declare type CarouselApi = UseEmblaCarouselType[1];
|
|
29
|
+
|
|
30
|
+
export declare const CarouselContent: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & CarouselContentBaseProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
31
|
+
|
|
32
|
+
export declare const CarouselItem: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & CarouselItemBaseProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
33
|
+
|
|
34
|
+
export declare const CarouselNext: React_2.ForwardRefExoticComponent<Omit<ButtonProps & React_2.RefAttributes<HTMLButtonElement> & CarouselNextBaseProps, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
35
|
+
|
|
36
|
+
declare type CarouselOptions = UseCarouselParameters[0];
|
|
37
|
+
|
|
38
|
+
declare type CarouselPlugin = UseCarouselParameters[1];
|
|
39
|
+
|
|
40
|
+
export declare const CarouselPrevious: React_2.ForwardRefExoticComponent<Omit<ButtonProps & React_2.RefAttributes<HTMLButtonElement> & CarouselPreviousBaseProps, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
41
|
+
|
|
42
|
+
export declare type CarouselProps = React_2.HTMLAttributes<HTMLDivElement> & CarouselBaseProps & {
|
|
43
|
+
opts?: CarouselOptions;
|
|
44
|
+
plugins?: CarouselPlugin;
|
|
45
|
+
setApi?: (api: CarouselApi) => void;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
declare type UseCarouselParameters = Parameters<typeof default_2>;
|
|
49
|
+
|
|
50
|
+
export { }
|