@codefast/ui 0.2.1 → 0.2.3
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/CHANGELOG.md +1165 -0
- package/dist/{chunk-SWLBEEZC.cjs → chunk-2ZPYZFGK.cjs} +1 -1
- package/dist/chunk-3LTKAEJD.cjs +1 -0
- package/dist/{chunk-IK6V7PIL.js → chunk-3QTD6REC.js} +1 -1
- package/dist/{chunk-RPOU2F26.js → chunk-3SKOJCHA.js} +1 -1
- package/dist/{chunk-KNFY3RCG.cjs → chunk-4DC2RZCB.cjs} +1 -1
- package/dist/{chunk-HRLLYNFF.cjs → chunk-4Y7C6VDA.cjs} +1 -1
- package/dist/chunk-5DLJZF3R.js +1 -0
- package/dist/{chunk-AFJTP5SO.cjs → chunk-5KJPJ6EX.cjs} +1 -1
- package/dist/{chunk-SNBWYKQA.cjs → chunk-5RLRDANP.cjs} +1 -1
- package/dist/chunk-67YWWZBU.js +1 -0
- package/dist/{chunk-ABXCGNGZ.js → chunk-6CNX4XKK.js} +1 -1
- package/dist/{chunk-FUMHTCGR.js → chunk-6S4EWA3L.js} +1 -1
- package/dist/{chunk-FKNREVG7.cjs → chunk-7OYOKSDA.cjs} +1 -1
- package/dist/{chunk-JJT3IMEL.cjs → chunk-7XIOFWIQ.cjs} +1 -1
- package/dist/{chunk-XGVKI6XK.cjs → chunk-A5NCK6GF.cjs} +1 -1
- package/dist/{chunk-C4EWLUQK.cjs → chunk-AFGXVIYS.cjs} +1 -1
- package/dist/{chunk-ACSEZ64N.cjs → chunk-AGEM6737.cjs} +1 -1
- package/dist/{chunk-XGKX2BXM.cjs → chunk-B2AFPIUW.cjs} +1 -1
- package/dist/chunk-B7MIY45T.js +1 -0
- package/dist/chunk-BEUBJNYB.cjs +1 -0
- package/dist/{chunk-TC56766Y.cjs → chunk-BOBVWING.cjs} +1 -1
- package/dist/chunk-BPXWQUXS.cjs +1 -0
- package/dist/{chunk-KCWHYV6T.cjs → chunk-BU2CE3VM.cjs} +1 -1
- package/dist/{chunk-ZAO7W23W.js → chunk-CHCKC5ZA.js} +1 -1
- package/dist/chunk-COUMKDCJ.cjs +1 -0
- package/dist/{chunk-S6HAB37R.cjs → chunk-DY5LLRUM.cjs} +1 -1
- package/dist/{chunk-3LNJ5UZG.cjs → chunk-EO6HTQ32.cjs} +1 -1
- package/dist/chunk-FHQYRWS6.js +3 -0
- package/dist/{chunk-73C7USVV.cjs → chunk-FTGLK7OQ.cjs} +1 -1
- package/dist/chunk-G2GDEGWB.js +1 -0
- package/dist/chunk-G646ZWIZ.js +1 -0
- package/dist/{chunk-UKF2IZQU.cjs → chunk-GBYV4QPM.cjs} +1 -1
- package/dist/{chunk-H4NRQ67V.js → chunk-HFLHYN7Y.js} +1 -1
- package/dist/{chunk-HBL6AZTD.js → chunk-HIHMPFL7.js} +1 -1
- package/dist/{chunk-EEUBLZ7E.cjs → chunk-HL4TF2W7.cjs} +1 -1
- package/dist/{chunk-RBHOHZIP.cjs → chunk-HOGERATY.cjs} +1 -1
- package/dist/{chunk-3CSHSTBC.cjs → chunk-IJ4MZK3B.cjs} +1 -1
- package/dist/{chunk-W6Y3Y7DJ.js → chunk-IU73ELHL.js} +1 -1
- package/dist/{chunk-4WLK3YTS.js → chunk-JI7QGAHT.js} +1 -1
- package/dist/{chunk-K2ETALGT.js → chunk-JISNZG53.js} +1 -1
- package/dist/{chunk-V3H3W256.js → chunk-JOPZDTRR.js} +1 -1
- package/dist/{chunk-YMH6C3S4.cjs → chunk-JOQHITKF.cjs} +1 -1
- package/dist/{chunk-RNGFAUQN.js → chunk-JPNQ5DU7.js} +1 -1
- package/dist/{chunk-X4RHTO22.cjs → chunk-JVSXA3OD.cjs} +1 -1
- package/dist/{chunk-WA2EFCFS.js → chunk-K5KSFBGC.js} +1 -1
- package/dist/{chunk-BLDKJZDM.js → chunk-KBQN4WZC.js} +1 -1
- package/dist/chunk-KLV2357N.js +1 -0
- package/dist/chunk-LJ3FVL2W.js +1 -0
- package/dist/{chunk-EDTDSIXB.js → chunk-LJLI4PY4.js} +1 -1
- package/dist/chunk-LOOSP2WE.cjs +3 -0
- package/dist/{chunk-6XPLRP6V.js → chunk-M7FPLRQD.js} +1 -1
- package/dist/{chunk-3QZZTUFF.js → chunk-MC5B6QQC.js} +1 -1
- package/dist/{chunk-G7FG4ER7.js → chunk-MGMYVBAV.js} +1 -1
- package/dist/{chunk-S2PSRAPV.cjs → chunk-MKLZIMZJ.cjs} +1 -1
- package/dist/{chunk-PHZPMGZT.cjs → chunk-MTLBEXCC.cjs} +1 -1
- package/dist/{chunk-T65WMOEK.cjs → chunk-MV3OHHLP.cjs} +1 -1
- package/dist/{chunk-IWQ2RIHB.cjs → chunk-N4HWEOMG.cjs} +1 -1
- package/dist/{chunk-FPVRIVHO.js → chunk-NIQQG4CD.js} +1 -1
- package/dist/chunk-OHZQFUEX.js +1 -0
- package/dist/{chunk-L7B23IAD.js → chunk-OVV3TOTQ.js} +1 -1
- package/dist/chunk-P2WK6XCL.js +1 -0
- package/dist/chunk-PU4TXYNZ.js +1 -0
- package/dist/chunk-QTRRZ2KC.js +1 -0
- package/dist/{chunk-LTM6SW3L.js → chunk-R4NCTH64.js} +1 -1
- package/dist/chunk-RHKWGW35.cjs +1 -0
- package/dist/{chunk-OCGBQHXH.js → chunk-RPVCDK6M.js} +1 -1
- package/dist/{chunk-YUQUBN4B.js → chunk-SVZAXWJS.js} +1 -1
- package/dist/{chunk-ZW5BKKRM.js → chunk-T4TAFLMF.js} +1 -1
- package/dist/{chunk-2PAJRLB6.js → chunk-T7SYZZ2D.js} +1 -1
- package/dist/{chunk-RQ4C7DVU.cjs → chunk-TQRH2OOH.cjs} +1 -1
- package/dist/{chunk-VBIU63FD.js → chunk-UR2WBSHC.js} +1 -1
- package/dist/{chunk-4RXR6ADA.cjs → chunk-UZ6WGVQ6.cjs} +1 -1
- package/dist/chunk-V3H3AZDD.cjs +1 -0
- package/dist/chunk-VH5ESPUT.js +1 -0
- package/dist/{chunk-BMZ3E3SA.cjs → chunk-VWFTLDPW.cjs} +1 -1
- package/dist/{chunk-Y6HEOVJR.js → chunk-VWFWLNI4.js} +1 -1
- package/dist/{chunk-JCGQDOMK.cjs → chunk-WB4G4MUS.cjs} +1 -1
- package/dist/chunk-WCJSGHWP.js +1 -0
- package/dist/{chunk-T3TZ5JKN.cjs → chunk-WHJ6SEAM.cjs} +1 -1
- package/dist/{chunk-SJSMDXBF.cjs → chunk-WLGGNPOV.cjs} +1 -1
- package/dist/chunk-X2H7CNGM.cjs +1 -0
- package/dist/{chunk-Q73XQPJX.cjs → chunk-XOLUJNAX.cjs} +1 -1
- package/dist/chunk-Y5SWDQW2.cjs +1 -0
- package/dist/{chunk-6DV77ZKX.js → chunk-Z56DYGVK.js} +1 -1
- package/dist/components/alert-dialog.cjs +1 -1
- package/dist/components/alert-dialog.js +1 -1
- package/dist/components/alert.cjs +1 -1
- package/dist/components/alert.js +1 -1
- package/dist/components/badge.cjs +1 -1
- package/dist/components/badge.d.cts +43 -43
- package/dist/components/badge.d.ts +43 -43
- package/dist/components/badge.js +1 -1
- package/dist/components/button.cjs +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/calendar.cjs +1 -1
- package/dist/components/calendar.js +1 -1
- package/dist/components/carousel.cjs +1 -1
- package/dist/components/carousel.js +1 -1
- package/dist/components/chart.cjs +1 -1
- package/dist/components/chart.d.cts +2 -2
- package/dist/components/chart.d.ts +2 -2
- package/dist/components/chart.js +1 -1
- package/dist/components/checkbox-cards.cjs +1 -1
- package/dist/components/checkbox-cards.js +1 -1
- package/dist/components/command.cjs +1 -1
- package/dist/components/command.js +1 -1
- package/dist/components/container.cjs +1 -1
- package/dist/components/container.js +1 -1
- package/dist/components/context-menu.cjs +1 -1
- package/dist/components/context-menu.js +1 -1
- package/dist/components/data-table.cjs +1 -1
- package/dist/components/data-table.d.cts +1 -1
- package/dist/components/data-table.d.ts +1 -1
- package/dist/components/data-table.js +1 -1
- package/dist/components/dialog.cjs +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/drawer.cjs +1 -1
- package/dist/components/drawer.js +1 -1
- package/dist/components/dropdown-menu.cjs +1 -1
- package/dist/components/dropdown-menu.js +1 -1
- package/dist/components/form.cjs +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/heading.cjs +1 -1
- package/dist/components/heading.js +1 -1
- package/dist/components/hover-card.cjs +1 -1
- package/dist/components/hover-card.js +1 -1
- package/dist/components/input-otp.cjs +1 -1
- package/dist/components/input-otp.js +1 -1
- package/dist/components/menubar.cjs +1 -1
- package/dist/components/menubar.js +1 -1
- package/dist/components/navigation-menu.cjs +1 -1
- package/dist/components/navigation-menu.js +1 -1
- package/dist/components/number-input.cjs +1 -1
- package/dist/components/number-input.js +1 -1
- package/dist/components/pagination.cjs +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/password-input.cjs +1 -1
- package/dist/components/password-input.js +1 -1
- package/dist/components/popover.cjs +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/radio.cjs +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/resizable.cjs +1 -1
- package/dist/components/resizable.d.cts +1 -1
- package/dist/components/resizable.d.ts +1 -1
- package/dist/components/resizable.js +1 -1
- package/dist/components/scroll-area.cjs +1 -1
- package/dist/components/scroll-area.d.cts +21 -21
- package/dist/components/scroll-area.d.ts +21 -21
- package/dist/components/scroll-area.js +1 -1
- package/dist/components/search-input.cjs +1 -1
- package/dist/components/search-input.js +1 -1
- package/dist/components/select.cjs +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/separator.cjs +1 -1
- package/dist/components/separator.d.cts +7 -7
- package/dist/components/separator.d.ts +7 -7
- package/dist/components/separator.js +1 -1
- package/dist/components/sheet.cjs +1 -1
- package/dist/components/sheet.d.cts +7 -7
- package/dist/components/sheet.d.ts +7 -7
- package/dist/components/sheet.js +1 -1
- package/dist/components/sidebar.cjs +1 -1
- package/dist/components/sidebar.d.cts +17 -17
- package/dist/components/sidebar.d.ts +17 -17
- package/dist/components/sidebar.js +1 -1
- package/dist/components/slider.cjs +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/sonner.cjs +1 -1
- package/dist/components/sonner.js +1 -1
- package/dist/components/spinner.cjs +1 -1
- package/dist/components/spinner.js +1 -1
- package/dist/components/text-input.cjs +1 -1
- package/dist/components/text-input.js +1 -1
- package/dist/components/toggle-group.cjs +1 -1
- package/dist/components/toggle-group.js +1 -1
- package/dist/components/toggle.cjs +1 -1
- package/dist/components/toggle.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/styles/button-variants.cjs +1 -1
- package/dist/styles/button-variants.d.cts +63 -63
- package/dist/styles/button-variants.d.ts +63 -63
- package/dist/styles/button-variants.js +1 -1
- package/dist/styles/input-variants.cjs +1 -1
- package/dist/styles/input-variants.d.cts +80 -80
- package/dist/styles/input-variants.d.ts +80 -80
- package/dist/styles/input-variants.js +1 -1
- package/dist/styles/toggle-variants.cjs +1 -1
- package/dist/styles/toggle-variants.d.cts +56 -56
- package/dist/styles/toggle-variants.d.ts +56 -56
- package/dist/styles/toggle-variants.js +1 -1
- package/package.json +16 -13
- package/dist/chunk-4ICJ6TJH.cjs +0 -1
- package/dist/chunk-4UUAITMZ.js +0 -3
- package/dist/chunk-6SAGMJGZ.cjs +0 -1
- package/dist/chunk-AMA6AK3X.js +0 -1
- package/dist/chunk-AWRRRYFQ.js +0 -1
- package/dist/chunk-BYBQP6L7.js +0 -1
- package/dist/chunk-GCOZTRNW.js +0 -1
- package/dist/chunk-IVLCO5AO.js +0 -1
- package/dist/chunk-JXRDRDJL.js +0 -1
- package/dist/chunk-LJ7NJT5Y.cjs +0 -1
- package/dist/chunk-ND3AGBDC.js +0 -1
- package/dist/chunk-NJFZCW7H.js +0 -1
- package/dist/chunk-NRBJ3GHE.js +0 -1
- package/dist/chunk-ORY7EM7Y.cjs +0 -1
- package/dist/chunk-PZNFWSMW.cjs +0 -1
- package/dist/chunk-Q7G3A7X6.js +0 -1
- package/dist/chunk-TFRTDTNW.cjs +0 -1
- package/dist/chunk-TY7NCLVL.js +0 -1
- package/dist/chunk-UYBGVR3M.cjs +0 -3
- package/dist/chunk-VS5SUBCH.js +0 -1
- package/dist/chunk-WHKHOVGT.cjs +0 -1
- package/dist/chunk-WM63MJCO.cjs +0 -1
- package/dist/chunk-YSSFLIW2.js +0 -1
package/dist/chunk-ND3AGBDC.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{tv as o}from"tailwind-variants";import{jsx as c,jsxs as g}from"react/jsx-runtime";var d=o({base:["inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md px-2.5 text-sm font-medium","[&>svg]:shrink-0"],compoundVariants:[{className:"w-8",icon:!0,size:"sm"},{className:"w-9",icon:!0,size:"md"},{className:"w-10",icon:!0,size:"lg"},{className:"w-11",icon:!0,size:"xl"},{className:"w-12",icon:!0,size:"2xl"}],defaultVariants:{icon:!1,size:"md",variant:"default"},variants:{icon:{false:"",true:"px-0"},size:{sm:"h-5 [&>svg]:size-3",md:"h-6 [&>svg]:size-3",lg:"h-7 [&>svg]:size-4",xl:"h-8 [&>svg]:size-5","2xl":"h-9 [&>svg]:size-5"},variant:{default:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",info:"bg-info text-info-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",destructive:"bg-destructive text-destructive-foreground",outline:"bg-background border-input border"}}});function m({className:s,variant:t,size:r,prefix:a,suffix:i,children:e,...n}){return g("div",{className:d({variant:t,className:s,size:r}),...n,children:[a,typeof e=="string"?c("span",{className:"truncate",children:e}):e,i]})}export{m as a};
|
package/dist/chunk-NJFZCW7H.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as t}from"./chunk-BYBQP6L7.js";import*as o from"@radix-ui/react-toggle";import{forwardRef as f}from"react";import{jsx as T,jsxs as P}from"react/jsx-runtime";var n=f(({className:g,size:i,icon:p,variant:r,prefix:a,children:e,suffix:m,...s},l)=>P(o.Root,{ref:l,className:t({className:g,icon:p,size:i,variant:r}),...s,children:[a,typeof e=="string"?T("span",{className:"truncate",children:e}):e,m]}));n.displayName=o.Root.displayName;export{n as a};
|
package/dist/chunk-NRBJ3GHE.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{useTheme as e}from"next-themes";import{toast as m,Toaster as r}from"sonner";import{jsx as s}from"react/jsx-runtime";function g({...t}){let{theme:o="system"}=e();return s(r,{className:"toaster group",theme:o,toastOptions:{classNames:{actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground",content:"w-full flex flex-col gap-1",description:"group-[.toast]:text-muted-foreground",toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg"}},...t})}export{m as a,g as b};
|
package/dist/chunk-ORY7EM7Y.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunkLJ7NJT5Ycjs = require('./chunk-LJ7NJT5Y.cjs');var _reacttoggle = require('@radix-ui/react-toggle'); var o = _interopRequireWildcard(_reacttoggle);var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var n=_react.forwardRef.call(void 0, ({className:g,size:i,icon:p,variant:r,prefix:a,children:e,suffix:m,...s},l)=>_jsxruntime.jsxs.call(void 0, o.Root,{ref:l,className:_chunkLJ7NJT5Ycjs.a.call(void 0, {className:g,icon:p,size:i,variant:r}),...s,children:[a,typeof e=="string"?_jsxruntime.jsx.call(void 0, "span",{className:"truncate",children:e}):e,m]}));n.displayName=o.Root.displayName;exports.a = n;
|
package/dist/chunk-PZNFWSMW.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";var _chunkKNFY3RCGcjs = require('./chunk-KNFY3RCG.cjs');var _chunkNX2PYE7Ucjs = require('./chunk-NX2PYE7U.cjs');var _daypicker = require('@codefast-ui/day-picker');var _datefns = require('date-fns');var _lucidereact = require('lucide-react');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');function D({orientation:r,...t}){switch(r){case"up":return _jsxruntime.jsx.call(void 0, _lucidereact.ChevronUpIcon,{className:"size-4",...t});case"down":return _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon,{className:"size-4",...t});case"left":return _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeftIcon,{className:"size-4",...t});case"right":return _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRightIcon,{className:"size-4",...t});case void 0:default:return _jsxruntime.jsx.call(void 0, _lucidereact.DotIcon,{className:"size-4",...t})}}function x({modifiers:r,className:t,day:a,...u}){let l=_react.useRef.call(void 0, null);return _react.useEffect.call(void 0, ()=>{r.focused&&_optionalChain([l, 'access', _2 => _2.current, 'optionalAccess', _3 => _3.focus, 'call', _4 => _4()])},[r.focused]),_jsxruntime.jsx.call(void 0, "button",{ref:l,className:_chunkKNFY3RCGcjs.a.call(void 0, {icon:!0,size:"sm",variant:r.selected&&!r.range_middle?"default":"ghost",className:["focus-visible:ring-1 focus-visible:ring-offset-0",(!r.selected||r.range_middle)&&[r.today?"bg-accent":"hover:border-accent hover:bg-transparent",r.outside&&"text-opacity-30"],r.range_middle&&"bg-transparent",t]}),type:"button",...u})}function _({className:r,classNames:t,...a}){return _jsxruntime.jsx.call(void 0, _daypicker.DayPicker,{showOutsideDays:!0,className:_chunkNX2PYE7Ucjs.a.call(void 0, "p-3",r),classNames:{[_daypicker.DayFlag.disabled]:_chunkNX2PYE7Ucjs.a.call(void 0, "",_optionalChain([t, 'optionalAccess', _5 => _5[_daypicker.DayFlag.disabled]])),[_daypicker.DayFlag.focused]:_chunkNX2PYE7Ucjs.a.call(void 0, "",_optionalChain([t, 'optionalAccess', _6 => _6[_daypicker.DayFlag.focused]])),[_daypicker.DayFlag.hidden]:_chunkNX2PYE7Ucjs.a.call(void 0, "invisible",_optionalChain([t, 'optionalAccess', _7 => _7[_daypicker.DayFlag.hidden]])),[_daypicker.DayFlag.outside]:_chunkNX2PYE7Ucjs.a.call(void 0, !a.mode&&"text-opacity-30",_optionalChain([t, 'optionalAccess', _8 => _8[_daypicker.DayFlag.outside]])),[_daypicker.DayFlag.today]:_chunkNX2PYE7Ucjs.a.call(void 0, !a.mode&&"bg-accent rounded-md",_optionalChain([t, 'optionalAccess', _9 => _9[_daypicker.DayFlag.today]])),[_daypicker.SelectionState.range_end]:_chunkNX2PYE7Ucjs.a.call(void 0, "to-accent rounded-r-md bg-gradient-to-l from-transparent to-50% first:rounded-l-md",_optionalChain([t, 'optionalAccess', _10 => _10[_daypicker.SelectionState.range_end]])),[_daypicker.SelectionState.range_middle]:_chunkNX2PYE7Ucjs.a.call(void 0, "bg-accent first:rounded-l-md last:rounded-r-md",_optionalChain([t, 'optionalAccess', _11 => _11[_daypicker.SelectionState.range_middle]])),[_daypicker.SelectionState.range_start]:_chunkNX2PYE7Ucjs.a.call(void 0, "to-accent rounded-l-md bg-gradient-to-r from-transparent to-50% last:rounded-r-md",_optionalChain([t, 'optionalAccess', _12 => _12[_daypicker.SelectionState.range_start]])),[_daypicker.SelectionState.selected]:_chunkNX2PYE7Ucjs.a.call(void 0, "",_optionalChain([t, 'optionalAccess', _13 => _13[_daypicker.SelectionState.selected]])),[_daypicker.UI.CaptionLabel]:_chunkNX2PYE7Ucjs.a.call(void 0, "inline-flex items-center",_optionalChain([t, 'optionalAccess', _14 => _14[_daypicker.UI.CaptionLabel]])),[_daypicker.UI.Chevron]:_chunkNX2PYE7Ucjs.a.call(void 0, "",_optionalChain([t, 'optionalAccess', _15 => _15[_daypicker.UI.Chevron]])),[_daypicker.UI.Day]:_chunkNX2PYE7Ucjs.a.call(void 0, "py-0",!a.mode&&"text-foreground mx-px flex min-h-9 min-w-9 items-center justify-center text-sm font-medium",_optionalChain([t, 'optionalAccess', _16 => _16[_daypicker.UI.Day]])),[_daypicker.UI.DayButton]:_chunkNX2PYE7Ucjs.a.call(void 0, "border border-transparent",_optionalChain([t, 'optionalAccess', _17 => _17[_daypicker.UI.DayButton]])),[_daypicker.UI.Dropdown]:_chunkNX2PYE7Ucjs.a.call(void 0, "absolute size-full appearance-none opacity-0",_optionalChain([t, 'optionalAccess', _18 => _18[_daypicker.UI.Dropdown]])),[_daypicker.UI.DropdownRoot]:_chunkNX2PYE7Ucjs.a.call(void 0, "relative inline-flex",_optionalChain([t, 'optionalAccess', _19 => _19[_daypicker.UI.DropdownRoot]])),[_daypicker.UI.Dropdowns]:_chunkNX2PYE7Ucjs.a.call(void 0, "inline-flex items-center gap-2",_optionalChain([t, 'optionalAccess', _20 => _20[_daypicker.UI.Dropdowns]])),[_daypicker.UI.Footer]:_chunkNX2PYE7Ucjs.a.call(void 0, "text-sm",_optionalChain([t, 'optionalAccess', _21 => _21[_daypicker.UI.Footer]])),[_daypicker.UI.Month]:_chunkNX2PYE7Ucjs.a.call(void 0, "grid grid-rows-[2rem_1fr] gap-4",!((a.numberOfMonths||0)>1)&&"w-full",_optionalChain([t, 'optionalAccess', _22 => _22[_daypicker.UI.Month]])),[_daypicker.UI.MonthCaption]:_chunkNX2PYE7Ucjs.a.call(void 0, "flex w-full justify-center text-sm font-medium",_optionalChain([t, 'optionalAccess', _23 => _23[_daypicker.UI.MonthCaption]])),[_daypicker.UI.MonthGrid]:_chunkNX2PYE7Ucjs.a.call(void 0, "relative block table-fixed border-collapse space-y-2 [&>thead]:block",_optionalChain([t, 'optionalAccess', _24 => _24[_daypicker.UI.MonthGrid]])),[_daypicker.UI.Months]:_chunkNX2PYE7Ucjs.a.call(void 0, "relative flex flex-wrap gap-4",_optionalChain([t, 'optionalAccess', _25 => _25[_daypicker.UI.Months]])),[_daypicker.UI.MonthsDropdown]:_chunkNX2PYE7Ucjs.a.call(void 0, "",_optionalChain([t, 'optionalAccess', _26 => _26[_daypicker.UI.MonthsDropdown]])),[_daypicker.UI.Nav]:_chunkNX2PYE7Ucjs.a.call(void 0, "-mr-4",_optionalChain([t, 'optionalAccess', _27 => _27[_daypicker.UI.Nav]])),[_daypicker.UI.NextMonthButton]:_chunkKNFY3RCGcjs.a.call(void 0, {className:["absolute end-0",_optionalChain([t, 'optionalAccess', _28 => _28[_daypicker.UI.NextMonthButton]])],icon:!0,size:"xs",variant:"outline"}),[_daypicker.UI.PreviousMonthButton]:_chunkKNFY3RCGcjs.a.call(void 0, {className:["absolute start-0",_optionalChain([t, 'optionalAccess', _29 => _29[_daypicker.UI.PreviousMonthButton]])],icon:!0,size:"xs",variant:"outline"}),[_daypicker.UI.Root]:_chunkNX2PYE7Ucjs.a.call(void 0, "inline-grid gap-4",_optionalChain([t, 'optionalAccess', _30 => _30[_daypicker.UI.Root]])),[_daypicker.UI.Week]:_chunkNX2PYE7Ucjs.a.call(void 0, "flex justify-between",_optionalChain([t, 'optionalAccess', _31 => _31[_daypicker.UI.Week]])),[_daypicker.UI.WeekNumber]:_chunkNX2PYE7Ucjs.a.call(void 0, "text-foreground/50 size-9 text-center text-xs",_optionalChain([t, 'optionalAccess', _32 => _32[_daypicker.UI.WeekNumber]])),[_daypicker.UI.WeekNumberHeader]:_chunkNX2PYE7Ucjs.a.call(void 0, "",_optionalChain([t, 'optionalAccess', _33 => _33[_daypicker.UI.WeekNumberHeader]])),[_daypicker.UI.Weekday]:_chunkNX2PYE7Ucjs.a.call(void 0, "text-muted-foreground flex-1 text-sm font-normal",_optionalChain([t, 'optionalAccess', _34 => _34[_daypicker.UI.Weekday]])),[_daypicker.UI.Weekdays]:_chunkNX2PYE7Ucjs.a.call(void 0, "flex justify-between",_optionalChain([t, 'optionalAccess', _35 => _35[_daypicker.UI.Weekdays]])),[_daypicker.UI.Weeks]:_chunkNX2PYE7Ucjs.a.call(void 0, "grid gap-y-2",_optionalChain([t, 'optionalAccess', _36 => _36[_daypicker.UI.Weeks]])),[_daypicker.UI.YearsDropdown]:_chunkNX2PYE7Ucjs.a.call(void 0, "",_optionalChain([t, 'optionalAccess', _37 => _37[_daypicker.UI.YearsDropdown]]))},components:{Chevron:D,DayButton:x},...a})}function z({date:r,formatStr:t="LLL dd, y",placeholder:a="Pick a date"}){if(!_optionalChain([r, 'optionalAccess', _38 => _38.from]))return _jsxruntime.jsx.call(void 0, "span",{className:"truncate",children:a});let u=_datefns.format.call(void 0, r.from,t);if(!r.to)return _jsxruntime.jsx.call(void 0, "span",{className:"truncate",children:u});let l=_datefns.format.call(void 0, r.to,t);return _jsxruntime.jsxs.call(void 0, "span",{className:"truncate",children:[u," - ",l]})}function B({date:r,formatStr:t="PPP",placeholder:a="Pick a date"}){return r?_jsxruntime.jsx.call(void 0, "span",{className:"truncate",children:_datefns.format.call(void 0, r,t)}):_jsxruntime.jsx.call(void 0, "span",{className:"truncate",children:a})}exports.a = _; exports.b = z; exports.c = B;
|
package/dist/chunk-Q7G3A7X6.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as o}from"./chunk-YSSFLIW2.js";import{a as n}from"./chunk-RNGFAUQN.js";import*as t from"@codefast-ui/input";import{forwardRef as P}from"react";import{jsx as e}from"react/jsx-runtime";var{root:l,input:x}=o(),y=P(({className:i,inputSize:p,loaderPosition:r,loading:m,prefix:s,spinner:a,suffix:u,...f},I)=>e(t.Root,{className:l({inputSize:p,className:i}),loaderPosition:r,loading:m,prefix:s,spinner:a||e(n,{}),suffix:u,children:e(t.Item,{ref:I,className:x({inputSize:p}),...f})}));y.displayName="TextInput";export{y as a};
|
package/dist/chunk-TFRTDTNW.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _tailwindvariants = require('tailwind-variants');var e=_tailwindvariants.tv.call(void 0, {slots:{root:["border-input bg-background flex w-full grow cursor-text items-center gap-2 rounded-md border px-3 text-sm shadow-sm transition","[&>svg]:text-muted-foreground [&>svg]:shrink-0","focus-within:border-ring focus-within:ring-ring/40 focus-within:ring-2","has-[input:disabled]:cursor-default has-[input:disabled]:opacity-50"],input:["peer size-full rounded-[inherit] bg-inherit outline-none","file:cursor-pointer file:border-0 file:bg-transparent file:font-medium","placeholder:text-muted-foreground","disabled:cursor-default"]},variants:{inputSize:{xxs:{root:"h-7 [&>svg]:size-3",input:"file:py-0.75"},xs:{root:"h-8 [&>svg]:size-3.5",input:"file:py-1.25"},sm:{root:"h-9 [&>svg]:size-4",input:"file:py-1.75"},md:{root:"h-10 [&>svg]:size-4",input:"file:py-2.25"},lg:{root:"h-11 [&>svg]:size-5",input:"file:py-2.75"},xl:{root:"h-12 [&>svg]:size-5",input:"file:py-3.25"}}},defaultVariants:{inputSize:"md"}});exports.a = e;
|
package/dist/chunk-TY7NCLVL.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{a as p}from"./chunk-V3H3W256.js";import{a as n}from"./chunk-FQMSK2WZ.js";import{DayFlag as d,DayPicker as c,SelectionState as i,UI as e}from"@codefast-ui/day-picker";import{format as f}from"date-fns";import{ChevronDownIcon as s,ChevronLeftIcon as g,ChevronRightIcon as m,ChevronUpIcon as y,DotIcon as b}from"lucide-react";import{useEffect as h,useRef as C}from"react";import{jsx as o,jsxs as P}from"react/jsx-runtime";function D({orientation:r,...t}){switch(r){case"up":return o(y,{className:"size-4",...t});case"down":return o(s,{className:"size-4",...t});case"left":return o(g,{className:"size-4",...t});case"right":return o(m,{className:"size-4",...t});case void 0:default:return o(b,{className:"size-4",...t})}}function x({modifiers:r,className:t,day:a,...u}){let l=C(null);return h(()=>{r.focused&&l.current?.focus()},[r.focused]),o("button",{ref:l,className:p({icon:!0,size:"sm",variant:r.selected&&!r.range_middle?"default":"ghost",className:["focus-visible:ring-1 focus-visible:ring-offset-0",(!r.selected||r.range_middle)&&[r.today?"bg-accent":"hover:border-accent hover:bg-transparent",r.outside&&"text-opacity-30"],r.range_middle&&"bg-transparent",t]}),type:"button",...u})}function z({className:r,classNames:t,...a}){return o(c,{showOutsideDays:!0,className:n("p-3",r),classNames:{[d.disabled]:n("",t?.[d.disabled]),[d.focused]:n("",t?.[d.focused]),[d.hidden]:n("invisible",t?.[d.hidden]),[d.outside]:n(!a.mode&&"text-opacity-30",t?.[d.outside]),[d.today]:n(!a.mode&&"bg-accent rounded-md",t?.[d.today]),[i.range_end]:n("to-accent rounded-r-md bg-gradient-to-l from-transparent to-50% first:rounded-l-md",t?.[i.range_end]),[i.range_middle]:n("bg-accent first:rounded-l-md last:rounded-r-md",t?.[i.range_middle]),[i.range_start]:n("to-accent rounded-l-md bg-gradient-to-r from-transparent to-50% last:rounded-r-md",t?.[i.range_start]),[i.selected]:n("",t?.[i.selected]),[e.CaptionLabel]:n("inline-flex items-center",t?.[e.CaptionLabel]),[e.Chevron]:n("",t?.[e.Chevron]),[e.Day]:n("py-0",!a.mode&&"text-foreground mx-px flex min-h-9 min-w-9 items-center justify-center text-sm font-medium",t?.[e.Day]),[e.DayButton]:n("border border-transparent",t?.[e.DayButton]),[e.Dropdown]:n("absolute size-full appearance-none opacity-0",t?.[e.Dropdown]),[e.DropdownRoot]:n("relative inline-flex",t?.[e.DropdownRoot]),[e.Dropdowns]:n("inline-flex items-center gap-2",t?.[e.Dropdowns]),[e.Footer]:n("text-sm",t?.[e.Footer]),[e.Month]:n("grid grid-rows-[2rem_1fr] gap-4",!((a.numberOfMonths||0)>1)&&"w-full",t?.[e.Month]),[e.MonthCaption]:n("flex w-full justify-center text-sm font-medium",t?.[e.MonthCaption]),[e.MonthGrid]:n("relative block table-fixed border-collapse space-y-2 [&>thead]:block",t?.[e.MonthGrid]),[e.Months]:n("relative flex flex-wrap gap-4",t?.[e.Months]),[e.MonthsDropdown]:n("",t?.[e.MonthsDropdown]),[e.Nav]:n("-mr-4",t?.[e.Nav]),[e.NextMonthButton]:p({className:["absolute end-0",t?.[e.NextMonthButton]],icon:!0,size:"xs",variant:"outline"}),[e.PreviousMonthButton]:p({className:["absolute start-0",t?.[e.PreviousMonthButton]],icon:!0,size:"xs",variant:"outline"}),[e.Root]:n("inline-grid gap-4",t?.[e.Root]),[e.Week]:n("flex justify-between",t?.[e.Week]),[e.WeekNumber]:n("text-foreground/50 size-9 text-center text-xs",t?.[e.WeekNumber]),[e.WeekNumberHeader]:n("",t?.[e.WeekNumberHeader]),[e.Weekday]:n("text-muted-foreground flex-1 text-sm font-normal",t?.[e.Weekday]),[e.Weekdays]:n("flex justify-between",t?.[e.Weekdays]),[e.Weeks]:n("grid gap-y-2",t?.[e.Weeks]),[e.YearsDropdown]:n("",t?.[e.YearsDropdown])},components:{Chevron:D,DayButton:x},...a})}function B({date:r,formatStr:t="LLL dd, y",placeholder:a="Pick a date"}){if(!r?.from)return o("span",{className:"truncate",children:a});let u=f(r.from,t);if(!r.to)return o("span",{className:"truncate",children:u});let l=f(r.to,t);return P("span",{className:"truncate",children:[u," - ",l]})}function S({date:r,formatStr:t="PPP",placeholder:a="Pick a date"}){return r?o("span",{className:"truncate",children:f(r,t)}):o("span",{className:"truncate",children:a})}export{z as a,B as b,S as c};
|
package/dist/chunk-UYBGVR3M.cjs
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";var _chunkNX2PYE7Ucjs = require('./chunk-NX2PYE7U.cjs');var _react = require('react');var _recharts = require('recharts'); var g = _interopRequireWildcard(_recharts);var _jsxruntime = require('react/jsx-runtime');var N={light:"",dark:".dark"},_=_react.createContext.call(void 0, null);function w(){let e=_react.useContext.call(void 0, _);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}var K=_react.forwardRef.call(void 0, ({children:e,className:n,config:t,id:o,...a},s)=>{let c=_react.useId.call(void 0, ),l=`chart-${o||c.replace(/:/g,"")}`;return _jsxruntime.jsx.call(void 0, _.Provider,{value:{config:t},children:_jsxruntime.jsxs.call(void 0, "div",{ref:s,className:_chunkNX2PYE7Ucjs.a.call(void 0, "flex aspect-video justify-center text-xs","[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground","[&_.recharts-cartesian-grid_line]:stroke-border/50","[&_.recharts-curve.recharts-tooltip-cursor]:stroke-border","[&_.recharts-dot]:stroke-transparent","[&_.recharts-layer]:outline-none","[&_.recharts-polar-grid_]:stroke-border","[&_.recharts-radial-bar-background-sector]:fill-muted","[&_.recharts-reference-line_]:stroke-border","[&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted","[&_.recharts-sector]:outline-none","[&_.recharts-sector]:stroke-transparent","[&_.recharts-surface]:outline-none",n),"data-chart":l,...a,children:[_jsxruntime.jsx.call(void 0, $,{config:t,id:l}),_jsxruntime.jsx.call(void 0, g.ResponsiveContainer,{children:e})]})})});K.displayName="Chart";function $({id:e,config:n}){let t=_react.useMemo.call(void 0, ()=>J(e,n),[e,n]);return _jsxruntime.jsx.call(void 0, "style",{dangerouslySetInnerHTML:{__html:t}})}var G=g.Tooltip,O= exports.d =_react.forwardRef.call(void 0, ({active:e,className:n,color:t,formatter:o,hideIndicator:a=!1,hideLabel:s=!1,indicator:c="dot",label:l,labelClassName:p,labelFormatter:C,labelKey:y,nameKey:E,payload:h},I)=>{let{config:m}=w(),L=_react.useMemo.call(void 0, ()=>{if(s||!_optionalChain([h, 'optionalAccess', _2 => _2.length]))return null;let[r]=h,P=`${y||r.dataKey||r.name||"value"}`,b=T(m,r,P),u=!y&&typeof l=="string"?_optionalChain([m, 'access', _3 => _3[l], 'optionalAccess', _4 => _4.label])||l:_optionalChain([b, 'optionalAccess', _5 => _5.label]);return C?_jsxruntime.jsx.call(void 0, "div",{className:_chunkNX2PYE7Ucjs.a.call(void 0, "font-medium",p),children:C(u,h)}):u?_jsxruntime.jsx.call(void 0, "div",{className:_chunkNX2PYE7Ucjs.a.call(void 0, "font-medium",p),children:u}):null},[m,s,l,p,C,y,h]);if(!e||!_optionalChain([h, 'optionalAccess', _6 => _6.length]))return null;let v=h.length===1&&c!=="dot";return _jsxruntime.jsxs.call(void 0, "div",{ref:I,className:_chunkNX2PYE7Ucjs.a.call(void 0, "border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl",n),children:[v?null:L,_jsxruntime.jsx.call(void 0, "div",{className:"grid gap-1.5",children:h.map((r,P)=>{let b=`${E||r.name||r.dataKey||"value"}`,u=T(m,r,b),S=t||r.payload.fill||r.color;return _jsxruntime.jsx.call(void 0, "div",{className:_chunkNX2PYE7Ucjs.a.call(void 0, "[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",c==="dot"&&"items-center"),children:o&&r.value!==void 0&&r.name?o(r.value,r.name,r,P,r.payload):_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_optionalChain([u, 'optionalAccess', _7 => _7.icon])?_jsxruntime.jsx.call(void 0, u.icon,{}):!a&&_jsxruntime.jsx.call(void 0, "div",{className:_chunkNX2PYE7Ucjs.a.call(void 0, "shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":c==="dot","w-1":c==="line","w-0 border-[1.5px] border-dashed bg-transparent":c==="dashed","my-0.5":v&&c==="dashed"}),style:{"--color-bg":S,"--color-border":S}}),_jsxruntime.jsxs.call(void 0, "div",{className:_chunkNX2PYE7Ucjs.a.call(void 0, "flex flex-1 justify-between leading-none",v?"items-end":"items-center"),children:[_jsxruntime.jsxs.call(void 0, "div",{className:"grid gap-1.5",children:[v?L:null,_jsxruntime.jsx.call(void 0, "span",{className:"text-muted-foreground",children:_optionalChain([u, 'optionalAccess', _8 => _8.label])||r.name})]}),r.value?_jsxruntime.jsx.call(void 0, "span",{className:"text-foreground font-mono font-medium tabular-nums",children:r.value.toLocaleString()}):null]})]})},r.dataKey)})})]})});O.displayName="ChartTooltipContent";var Q=g.Legend,D= exports.f =_react.forwardRef.call(void 0, ({className:e,hideIcon:n=!1,nameKey:t,payload:o,verticalAlign:a="bottom"},s)=>{let{config:c}=w();return _optionalChain([o, 'optionalAccess', _9 => _9.length])?_jsxruntime.jsx.call(void 0, "div",{ref:s,className:_chunkNX2PYE7Ucjs.a.call(void 0, "flex items-center justify-center gap-4",a==="top"?"pb-3":"pt-3",e),children:o.map(l=>{let p="value";t?p=t:l.dataKey&&(p=String(l.dataKey));let C=T(c,l,p);return _jsxruntime.jsxs.call(void 0, "div",{className:_chunkNX2PYE7Ucjs.a.call(void 0, "[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:size-3"),children:[_optionalChain([C, 'optionalAccess', _10 => _10.icon])&&!n?_jsxruntime.jsx.call(void 0, C.icon,{}):_jsxruntime.jsx.call(void 0, "div",{className:"size-2 shrink-0 rounded",style:{backgroundColor:l.color}}),_optionalChain([C, 'optionalAccess', _11 => _11.label])]},String(l.value))})}):null});D.displayName="ChartLegendContent";function T(e,n,t){if(!R(n))return;let o="payload"in n&&R(n.payload)?n.payload:void 0,a=V(n,o,t);return a in e?e[a]:e[t]}function R(e){return typeof e=="object"&&e!==null}function V(e,n,t){return t in e&&typeof e[t]=="string"?e[t]:n&&t in n&&typeof n[t]=="string"?n[t]:t}function z(e,n,t){let o=[];return o.push(`${N[e]} [data-chart=${n}] {`),t.forEach(([a,s])=>{let c=_optionalChain([s, 'optionalAccess', _12 => _12.theme, 'optionalAccess', _13 => _13[e]])||_optionalChain([s, 'optionalAccess', _14 => _14.color]);c&&o.push(` --color-${a}: ${c};`)}),o.push("}"),o.join(`
|
|
2
|
-
`)}function J(e,n){let t=Object.entries(n).filter(([a,s])=>_optionalChain([s, 'optionalAccess', _15 => _15.theme])||_optionalChain([s, 'optionalAccess', _16 => _16.color])),o=[];return Object.keys(N).forEach(a=>{let s=z(a,e,t);o.push(s)}),o.join(`
|
|
3
|
-
`)}exports.a = K; exports.b = $; exports.c = G; exports.d = O; exports.e = Q; exports.f = D;
|
package/dist/chunk-VS5SUBCH.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{a as d}from"./chunk-GCOZTRNW.js";import{a as i}from"./chunk-FQMSK2WZ.js";import{createContextScope as g}from"@radix-ui/react-context";import B from"embla-carousel-react";import{ArrowLeftIcon as D,ArrowRightIcon as U}from"lucide-react";import{forwardRef as y,useCallback as f,useEffect as S,useState as b}from"react";import{jsx as s}from"react/jsx-runtime";var x="Carousel",[_,$]=g(x),[O,v]=_(x),z=y(({__scopeCarousel:l,children:a,orientation:o,opts:r,setApi:t,plugins:u,className:p,...c},C)=>{let[m,e]=B({...r,axis:o==="vertical"?"y":"x"},u),[R,H]=b(!1),[I,h]=b(!1),P=f(n=>{n&&(H(n.canScrollPrev()),h(n.canScrollNext()))},[]),E=f(()=>{e?.scrollPrev()},[e]),N=f(()=>{e?.scrollNext()},[e]),w=f(n=>{n.key==="ArrowLeft"?(n.preventDefault(),E()):n.key==="ArrowRight"&&(n.preventDefault(),N())},[E,N]);return S(()=>{!e||!t||t(e)},[e,t]),S(()=>{if(e)return P(e),e.on("reInit",P),e.on("select",P),()=>{e.off("select",P)}},[e,P]),s(O,{api:e,canScrollNext:I,canScrollPrev:R,carouselRef:m,opts:r,orientation:o??(r?.axis==="y"?"vertical":"horizontal"),scope:l,scrollNext:N,scrollPrev:E,children:s("div",{ref:C,"aria-roledescription":"carousel",className:i("relative",p),role:"region",onKeyDownCapture:w,...c,children:a})})});z.displayName=x;var T="CarouselContent",k=y(({__scopeCarousel:l,className:a,classNames:o,...r},t)=>{let{carouselRef:u,orientation:p}=v(T,l);return s("div",{ref:u,className:i("overflow-hidden",o?.wrapper),children:s("div",{ref:t,className:i("flex",p==="horizontal"?"-ml-4":"-mt-4 flex-col",o?.content,a),...r})})});k.displayName=T;var L="CarouselItem",K=y(({__scopeCarousel:l,className:a,...o},r)=>{let{orientation:t}=v(L,l);return s("div",{ref:r,"aria-roledescription":"slide",className:i("min-w-0 shrink-0 grow-0 basis-full",t==="horizontal"?"pl-4":"pt-4",a),role:"group",...o})});K.displayName=L;var A="CarouselPrevious",V=y(({__scopeCarousel:l,className:a,icon:o=!0,size:r="sm",variant:t="outline",...u},p)=>{let{orientation:c,scrollPrev:C,canScrollPrev:m}=v(A,l);return s(d,{ref:p,className:i("absolute",c==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",a),disabled:!m,icon:o,prefix:s(D,{}),size:r,variant:t,onClick:C,...u,children:s("span",{className:"sr-only",children:"Previous slide"})})});V.displayName=A;var M="CarouselNext",X=y(({__scopeCarousel:l,className:a,icon:o=!0,size:r="sm",variant:t="outline",...u},p)=>{let{orientation:c,scrollNext:C,canScrollNext:m}=v(M,l);return s(d,{ref:p,className:i("absolute",c==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",a),disabled:!m,icon:o,prefix:s(U,{}),size:r,variant:t,onClick:C,...u,children:s("span",{className:"sr-only",children:"Next slide"})})});X.displayName=M;export{$ as a,z as b,k as c,K as d,V as e,X as f};
|
package/dist/chunk-WHKHOVGT.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkEEUBLZ7Ecjs = require('./chunk-EEUBLZ7E.cjs');var _chunkKNFY3RCGcjs = require('./chunk-KNFY3RCG.cjs');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var d=_react.forwardRef.call(void 0, ({children:t,className:u,variant:a,size:f,icon:i,inside:m,disabled:B,loading:e,prefix:x,suffix:b,loaderPosition:p="prefix",spinner:r,...y},N)=>_jsxruntime.jsxs.call(void 0, "button",{ref:N,className:_chunkKNFY3RCGcjs.a.call(void 0, {className:u,icon:i,inside:m,size:f,variant:a}),disabled:e||B,type:"button",...y,children:[e&&p==="prefix"?r||_jsxruntime.jsx.call(void 0, _chunkEEUBLZ7Ecjs.a,{}):x,typeof t=="string"?_jsxruntime.jsx.call(void 0, "span",{className:"truncate",children:t}):t,e&&p==="suffix"?r||_jsxruntime.jsx.call(void 0, _chunkEEUBLZ7Ecjs.a,{}):b]}));d.displayName="Button";exports.a = d;
|
package/dist/chunk-WM63MJCO.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunkBMZ3E3SAcjs = require('./chunk-BMZ3E3SA.cjs');var _chunkSJSMDXBFcjs = require('./chunk-SJSMDXBF.cjs');var _chunkWHKHOVGTcjs = require('./chunk-WHKHOVGT.cjs');var _chunkKNFY3RCGcjs = require('./chunk-KNFY3RCG.cjs');var _chunkNX2PYE7Ucjs = require('./chunk-NX2PYE7U.cjs');var _lucidereact = require('lucide-react');var _jsxruntime = require('react/jsx-runtime');function O({table:t}){return _jsxruntime.jsxs.call(void 0, _chunkSJSMDXBFcjs.a,{children:[_jsxruntime.jsxs.call(void 0, _chunkSJSMDXBFcjs.b,{className:_chunkKNFY3RCGcjs.a.call(void 0, {size:"xs",variant:"outline"}),children:[_jsxruntime.jsx.call(void 0, _lucidereact.Settings2Icon,{className:"size-4"}),"View"]}),_jsxruntime.jsxs.call(void 0, _chunkSJSMDXBFcjs.h,{align:"end",className:"w-36",children:[_jsxruntime.jsx.call(void 0, _chunkSJSMDXBFcjs.l,{children:"Toggle columns"}),_jsxruntime.jsx.call(void 0, _chunkSJSMDXBFcjs.m,{}),t.getAllColumns().filter(n=>typeof n.accessorFn<"u"&&n.getCanHide()).map(n=>_jsxruntime.jsx.call(void 0, _chunkSJSMDXBFcjs.j,{checked:n.getIsVisible(),className:"capitalize",onCheckedChange:r=>{n.toggleVisibility(!!r)},children:n.id},n.id))]})]})}function X({table:t,className:n,...r}){return _jsxruntime.jsxs.call(void 0, "div",{className:_chunkNX2PYE7Ucjs.a.call(void 0, "flex flex-wrap items-center justify-between gap-4 px-2",n),...r,children:[_jsxruntime.jsxs.call(void 0, "div",{className:"text-muted-foreground min-w-max flex-1 text-sm",children:[t.getFilteredSelectedRowModel().rows.length," of ",t.getFilteredRowModel().rows.length," row(s) selected."]}),_jsxruntime.jsxs.call(void 0, "div",{className:"flex grow flex-wrap items-center justify-between gap-4 md:justify-end md:gap-x-6 lg:gap-x-8",children:[_jsxruntime.jsxs.call(void 0, "div",{className:"flex flex-wrap items-center gap-x-2 gap-y-4",children:[_jsxruntime.jsx.call(void 0, "p",{className:"text-sm font-medium",children:"Rows per page"}),_jsxruntime.jsxs.call(void 0, _chunkBMZ3E3SAcjs.a,{value:String(t.getState().pagination.pageSize),onValueChange:s=>{t.setPageSize(Number(s))},children:[_jsxruntime.jsx.call(void 0, _chunkBMZ3E3SAcjs.d,{className:"w-18 h-8",children:_jsxruntime.jsx.call(void 0, _chunkBMZ3E3SAcjs.c,{placeholder:t.getState().pagination.pageSize})}),_jsxruntime.jsx.call(void 0, _chunkBMZ3E3SAcjs.g,{side:"top",children:[10,20,30,40,50].map(s=>_jsxruntime.jsx.call(void 0, _chunkBMZ3E3SAcjs.i,{value:String(s),children:s},s))})]})]}),_jsxruntime.jsxs.call(void 0, "div",{className:"flex flex-wrap items-center justify-center text-sm font-medium",children:["Page ",t.getState().pagination.pageIndex+1," of ",t.getPageCount()]}),_jsxruntime.jsxs.call(void 0, "div",{className:"flex flex-wrap items-center gap-x-2 gap-y-4",children:[_jsxruntime.jsxs.call(void 0, _chunkWHKHOVGTcjs.a,{icon:!0,className:"max-md:hidden",disabled:!t.getCanPreviousPage(),size:"xs",variant:"outline",onClick:()=>{t.setPageIndex(0)},children:[_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"Go to first page"}),_jsxruntime.jsx.call(void 0, _lucidereact.ChevronsLeftIcon,{className:"size-4"})]}),_jsxruntime.jsxs.call(void 0, _chunkWHKHOVGTcjs.a,{icon:!0,disabled:!t.getCanPreviousPage(),size:"xs",variant:"outline",onClick:()=>{t.previousPage()},children:[_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"Go to previous page"}),_jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeftIcon,{className:"size-4"})]}),_jsxruntime.jsxs.call(void 0, _chunkWHKHOVGTcjs.a,{icon:!0,disabled:!t.getCanNextPage(),size:"xs",variant:"outline",onClick:()=>{t.nextPage()},children:[_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"Go to next page"}),_jsxruntime.jsx.call(void 0, _lucidereact.ChevronRightIcon,{className:"size-4"})]}),_jsxruntime.jsxs.call(void 0, _chunkWHKHOVGTcjs.a,{icon:!0,className:"max-md:hidden",disabled:!t.getCanNextPage(),size:"xs",variant:"outline",onClick:()=>{t.setPageIndex(t.getPageCount()-1)},children:[_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"Go to last page"}),_jsxruntime.jsx.call(void 0, _lucidereact.ChevronsRightIcon,{className:"size-4"})]})]})]})]})}function A({column:t,title:n}){return t.getCanSort()?_jsxruntime.jsxs.call(void 0, _chunkSJSMDXBFcjs.a,{children:[_jsxruntime.jsx.call(void 0, _chunkSJSMDXBFcjs.b,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkWHKHOVGTcjs.a,{className:_chunkNX2PYE7Ucjs.a.call(void 0, "text-muted-foreground p-0","hover:bg-transparent","data-[state=open]:text-accent-foreground","focus-visible:text-accent-foreground focus-visible:bg-transparent focus-visible:outline-0"),size:"xs",suffix:_jsxruntime.jsx.call(void 0, z,{sorted:t.getIsSorted()}),variant:"ghost",children:n})}),_jsxruntime.jsxs.call(void 0, _chunkSJSMDXBFcjs.h,{align:"start",children:[_jsxruntime.jsxs.call(void 0, _chunkSJSMDXBFcjs.i,{onClick:()=>{t.toggleSorting(!1)},children:[_jsxruntime.jsx.call(void 0, _lucidereact.ChevronUpIcon,{className:"text-muted-foreground size-4"}),"Asc"]}),_jsxruntime.jsxs.call(void 0, _chunkSJSMDXBFcjs.i,{onClick:()=>{t.toggleSorting(!0)},children:[_jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon,{className:"text-muted-foreground size-4"}),"Desc"]}),_jsxruntime.jsx.call(void 0, _chunkSJSMDXBFcjs.m,{}),_jsxruntime.jsxs.call(void 0, _chunkSJSMDXBFcjs.i,{onClick:()=>{t.toggleVisibility(!1)},children:[_jsxruntime.jsx.call(void 0, _lucidereact.EyeOffIcon,{className:"text-muted-foreground size-4"}),"Hide"]})]})]}):_jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:n})}function z({sorted:t}){switch(t){case"desc":return _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon,{});case"asc":return _jsxruntime.jsx.call(void 0, _lucidereact.ChevronUpIcon,{});case!1:default:return _jsxruntime.jsx.call(void 0, _lucidereact.ChevronsUpDownIcon,{})}}exports.a = O; exports.b = X; exports.c = A;
|
package/dist/chunk-YSSFLIW2.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{tv as t}from"tailwind-variants";var o=t({slots:{root:["border-input bg-background flex w-full grow cursor-text items-center gap-2 rounded-md border px-3 text-sm shadow-sm transition","[&>svg]:text-muted-foreground [&>svg]:shrink-0","focus-within:border-ring focus-within:ring-ring/40 focus-within:ring-2","has-[input:disabled]:cursor-default has-[input:disabled]:opacity-50"],input:["peer size-full rounded-[inherit] bg-inherit outline-none","file:cursor-pointer file:border-0 file:bg-transparent file:font-medium","placeholder:text-muted-foreground","disabled:cursor-default"]},variants:{inputSize:{xxs:{root:"h-7 [&>svg]:size-3",input:"file:py-0.75"},xs:{root:"h-8 [&>svg]:size-3.5",input:"file:py-1.25"},sm:{root:"h-9 [&>svg]:size-4",input:"file:py-1.75"},md:{root:"h-10 [&>svg]:size-4",input:"file:py-2.25"},lg:{root:"h-11 [&>svg]:size-5",input:"file:py-2.75"},xl:{root:"h-12 [&>svg]:size-5",input:"file:py-3.25"}}},defaultVariants:{inputSize:"md"}});export{o as a};
|