@codefast/ui 0.2.2 → 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 +15 -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-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-3GLUMDVO.js → chunk-FHQYRWS6.js} +1 -1
- package/dist/{chunk-73C7USVV.cjs → chunk-FTGLK7OQ.cjs} +1 -1
- package/dist/{chunk-VLNKZ5F6.js → chunk-G2GDEGWB.js} +1 -1
- 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-XTXFNS2S.js → chunk-KLV2357N.js} +1 -1
- package/dist/chunk-LJ3FVL2W.js +1 -0
- package/dist/{chunk-EDTDSIXB.js → chunk-LJLI4PY4.js} +1 -1
- package/dist/{chunk-4ACKKXLH.cjs → chunk-LOOSP2WE.cjs} +1 -1
- 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-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-RB4DWQBB.cjs → chunk-RHKWGW35.cjs} +1 -1
- 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-RQ4C7DVU.cjs → chunk-TQRH2OOH.cjs} +1 -1
- package/dist/{chunk-VBIU63FD.js → chunk-UR2WBSHC.js} +1 -1
- package/dist/{chunk-MUK3XA4G.cjs → chunk-UZ6WGVQ6.cjs} +1 -1
- package/dist/chunk-V3H3AZDD.cjs +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-P4IGWCRJ.cjs → chunk-X2H7CNGM.cjs} +1 -1
- package/dist/{chunk-Q73XQPJX.cjs → chunk-XOLUJNAX.cjs} +1 -1
- package/dist/{chunk-YFKW2TBZ.cjs → chunk-Y5SWDQW2.cjs} +1 -1
- 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/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 +9 -9
- package/dist/chunk-4ICJ6TJH.cjs +0 -1
- package/dist/chunk-AMA6AK3X.js +0 -1
- package/dist/chunk-BYBQP6L7.js +0 -1
- package/dist/chunk-DNR54SLJ.js +0 -1
- package/dist/chunk-GCOZTRNW.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-ORY7EM7Y.cjs +0 -1
- package/dist/chunk-Q3SQCPJV.js +0 -1
- package/dist/chunk-Q7G3A7X6.js +0 -1
- package/dist/chunk-TFRTDTNW.cjs +0 -1
- package/dist/chunk-VS5SUBCH.js +0 -1
- package/dist/chunk-WHKHOVGT.cjs +0 -1
- package/dist/chunk-YSSFLIW2.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codefast/ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"bugs": {
|
|
5
5
|
"url": "https://github.com/codefastlabs/codefast/issues"
|
|
6
6
|
},
|
|
@@ -77,11 +77,11 @@
|
|
|
77
77
|
"tailwind-merge": "2.5.5",
|
|
78
78
|
"tailwind-variants": "0.3.0",
|
|
79
79
|
"vaul": "1.1.1",
|
|
80
|
-
"@codefast-ui/checkbox-group": "0.2.
|
|
81
|
-
"@codefast-ui/day-picker": "0.2.
|
|
82
|
-
"@codefast-ui/
|
|
83
|
-
"@codefast/hooks": "0.2.
|
|
84
|
-
"@codefast-ui/input": "0.2.
|
|
80
|
+
"@codefast-ui/checkbox-group": "0.2.3",
|
|
81
|
+
"@codefast-ui/day-picker": "0.2.3",
|
|
82
|
+
"@codefast-ui/input": "0.2.3",
|
|
83
|
+
"@codefast/hooks": "0.2.3",
|
|
84
|
+
"@codefast-ui/number-input": "0.2.3"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
87
|
"@types/node": "22.10.1",
|
|
@@ -90,9 +90,9 @@
|
|
|
90
90
|
"tailwindcss": "3.4.16",
|
|
91
91
|
"tsup": "8.3.5",
|
|
92
92
|
"typescript": "5.7.2",
|
|
93
|
-
"@codefast/eslint-config": "0.2.
|
|
94
|
-
"@codefast/tailwind-config": "0.2.
|
|
95
|
-
"@codefast/typescript-config": "0.2.
|
|
93
|
+
"@codefast/eslint-config": "0.2.3",
|
|
94
|
+
"@codefast/tailwind-config": "0.2.3",
|
|
95
|
+
"@codefast/typescript-config": "0.2.3"
|
|
96
96
|
},
|
|
97
97
|
"peerDependencies": {
|
|
98
98
|
"@tanstack/react-table": ">=8",
|
package/dist/chunk-4ICJ6TJH.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; } }"use client";var _chunkTFRTDTNWcjs = require('./chunk-TFRTDTNW.cjs');var _chunkWHKHOVGTcjs = require('./chunk-WHKHOVGT.cjs');var _chunkEEUBLZ7Ecjs = require('./chunk-EEUBLZ7E.cjs');var _input = require('@codefast-ui/input'); var t = _interopRequireWildcard(_input);var _reactusecontrollablestate = require('@radix-ui/react-use-controllable-state');var _lucidereact = require('lucide-react');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var{root:V,input:x}=_chunkTFRTDTNWcjs.a.call(void 0, ),b= exports.a =_react.forwardRef.call(void 0, ({className:u,inputSize:o,loaderPosition:m,loading:l,prefix:f,spinner:c,suffix:I,value:P,defaultValue:d,onChange:h,...n},v)=>{let[r,i]=_reactusecontrollablestate.useControllableState.call(void 0, {prop:P,defaultProp:d,onChange:h});return _jsxruntime.jsxs.call(void 0, t.Root,{className:V({inputSize:o,className:u}),loaderPosition:m,loading:l,prefix:f||_jsxruntime.jsx.call(void 0, _lucidereact.SearchIcon,{}),spinner:c||_jsxruntime.jsx.call(void 0, _chunkEEUBLZ7Ecjs.a,{}),suffix:I,children:[_jsxruntime.jsx.call(void 0, t.Item,{ref:v,className:x({inputSize:o}),type:"search",value:r,onChange:y=>{i(y.target.value)},...n}),r?_jsxruntime.jsx.call(void 0, _chunkWHKHOVGTcjs.a,{icon:!0,inside:!0,"aria-label":"Clear search",className:"rounded-full",disabled:n.disabled,size:o,suffix:_jsxruntime.jsx.call(void 0, _lucidereact.XIcon,{}),variant:"ghost",onClick:()=>{i("")}}):null]})});b.displayName="SearchInput";exports.a = b;
|
package/dist/chunk-AMA6AK3X.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as o}from"./chunk-FQMSK2WZ.js";import*as a from"@radix-ui/react-separator";import{forwardRef as p}from"react";import{tv as l}from"tailwind-variants";import{jsx as i}from"react/jsx-runtime";var f=l({base:"bg-muted relative flex shrink-0 items-center",defaultVariants:{align:"center",orientation:"horizontal"},variants:{align:{start:"justify-start",center:"justify-center",end:"justify-end"},orientation:{horizontal:"h-px w-full",vertical:"h-full w-px flex-col"}}}),S=p(({className:e,orientation:t,align:r,decorative:n=!0,...s},m)=>i(a.Root,{ref:m,className:f({align:r,orientation:t,className:e}),decorative:n,orientation:t,...s}));S.displayName=a.Root.displayName;var y=p(({className:e,...t},r)=>i("div",{ref:r,className:o("bg-background text-muted-foreground absolute mx-2 px-2 text-sm",e),...t}));y.displayName="SeparatorItem";export{S as a,y as b};
|
package/dist/chunk-BYBQP6L7.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{tv as e}from"tailwind-variants";var o=e({base:["inline-flex shrink-0 select-none items-center justify-center gap-2 whitespace-nowrap rounded-md px-4 text-sm font-medium transition","[&>svg]:shrink-0","focus-visible:outline-none","focus-visible:ring-ring focus-visible:ring-2 focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50"],compoundVariants:[{className:"w-7",icon:!0,size:"xxs"},{className:"w-8",icon:!0,size:"xs"},{className:"w-9",icon:!0,size:"sm"},{className:"w-10",icon:!0,size:"md"},{className:"w-11",icon:!0,size:"lg"},{className:"w-12",icon:!0,size:"xl"},{className:"[&>svg]:size-3",size:"xxs"},{className:"[&>svg]:size-3.5",size:"xs"}],defaultVariants:{icon:!1,size:"md",variant:"default"},variants:{icon:{false:"",true:"px-0"},size:{xxs:"h-7 [&>svg]:size-3",xs:"h-8 [&>svg]:size-3.5",sm:"h-9 [&>svg]:size-4",md:"h-10 [&>svg]:size-4",lg:"h-11 [&>svg]:size-5",xl:"h-12 [&>svg]:size-5"},variant:{default:["data-[state=on]:bg-primary data-[state=on]:text-primary-foreground data-[state=on]:shadow-sm","hover:bg-primary/80 hover:text-primary-foreground"],secondary:["data-[state=on]:bg-secondary data-[state=on]:text-secondary-foreground data-[state=on]:shadow-sm","hover:bg-secondary/80 hover:text-secondary-foreground"],info:["data-[state=on]:bg-info data-[state=on]:text-info-foreground data-[state=on]:shadow-sm","hover:bg-info/80 hover:text-info-foreground"],success:["data-[state=on]:bg-success data-[state=on]:text-success-foreground data-[state=on]:shadow-sm","hover:bg-success/80 hover:text-success-foreground"],warning:["data-[state=on]:bg-warning data-[state=on]:text-warning-foreground data-[state=on]:shadow-sm","hover:bg-warning/80 hover:text-warning-foreground"],destructive:["data-[state=on]:bg-destructive data-[state=on]:text-destructive-foreground data-[state=on]:shadow-sm","hover:bg-destructive/80 hover:text-destructive-foreground"],outline:["data-[state=on]:bg-accent data-[state=on]:text-accent-foreground","hover:bg-accent/80 hover:text-accent-foreground","bg-background border-input border shadow-sm"],ghost:["data-[state=on]:bg-accent data-[state=on]:text-accent-foreground","hover:bg-accent/80 hover:text-accent-foreground"]}}});export{o as a};
|
package/dist/chunk-DNR54SLJ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{a as _,b as k,c as A,d as D}from"./chunk-NRWGIK35.js";import{a as H}from"./chunk-Q7G3A7X6.js";import{a as N}from"./chunk-AMA6AK3X.js";import{a as T,c as I,g as B,h as L}from"./chunk-ABXCGNGZ.js";import{a as P}from"./chunk-R773RBMT.js";import{a as w}from"./chunk-GCOZTRNW.js";import{a as o}from"./chunk-FQMSK2WZ.js";import V from"js-cookie";import{useMediaQuery as F}from"@codefast/hooks";import{Slot as v}from"@radix-ui/react-slot";import{VisuallyHidden as U}from"@radix-ui/react-visually-hidden";import{PanelLeftIcon as W}from"lucide-react";import{createContext as j,forwardRef as n,useCallback as G,useContext as q,useEffect as $,useMemo as R,useState as z}from"react";import{tv as Q}from"tailwind-variants";import{jsx as r,jsxs as f}from"react/jsx-runtime";var X="sidebar:state",Y=7,J="16rem",Z="18rem",ee="3rem",te="b",ae=768,O=j(null);function M(){let t=q(O);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}var re=n(({defaultOpen:t=!0,open:e,onOpenChange:a,className:i,style:d,children:s,...c},S)=>{let p=F(`(max-width: ${ae-1}px)`),[m,b]=z(!1),[h,E]=z(t),g=e??h,x=G(l=>{let u=typeof l=="function"?l(g):l;a?a(u):E(u),V.set(X,String(u),{path:"/",expires:Y})},[a,g]),y=G(()=>{p?b(l=>!l):x(l=>!l)},[p,x,b]);$(()=>{let l=u=>{u.key===te&&(u.metaKey||u.ctrlKey)&&(u.preventDefault(),y())};return window.addEventListener("keydown",l),()=>{window.removeEventListener("keydown",l)}},[y]);let C=g?"expanded":"collapsed",K=R(()=>({state:C,open:g,setOpen:x,isMobile:p,openMobile:m,setOpenMobile:b,toggleSidebar:y}),[C,g,x,p,m,b,y]);return r(O.Provider,{value:K,children:r(_,{delayDuration:0,children:r("div",{ref:S,className:o("group/sidebar-wrapper has-[[data-variant=inset]]:bg-sidebar flex min-h-svh w-full",i),style:{"--sidebar-width":J,"--sidebar-width-icon":ee,...d},...c,children:s})})})});re.displayName="SidebarProvider";var oe=n(({side:t="left",variant:e="sidebar",collapsible:a="offcanvas",className:i,children:d,...s},c)=>{let{isMobile:S,state:p,openMobile:m,setOpenMobile:b}=M();return a==="none"?r("div",{ref:c,className:o("bg-sidebar text-sidebar-foreground flex h-full w-[--sidebar-width] flex-col",i),...s,children:d}):S?r(T,{open:m,onOpenChange:b,...s,children:f(I,{className:"bg-sidebar text-sidebar-foreground w-[--sidebar-width] p-0 [&>button]:hidden","data-mobile":"true","data-sidebar":"sidebar",side:t,style:{"--sidebar-width":Z},children:[f(U,{children:[r(B,{children:"Sidebar"}),r(L,{children:"Press escape to close the sidebar"})]}),r("div",{className:"flex h-full w-full flex-col",children:d})]})}):f("div",{ref:c,className:"text-sidebar-foreground group peer hidden md:block","data-collapsible":p==="collapsed"?a:"","data-side":t,"data-state":p,"data-variant":e,children:[r("div",{className:o("relative h-svh w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),r("div",{className:o("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",t==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",i),...s,children:r("div",{className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow","data-sidebar":"sidebar",children:d})})]})});oe.displayName="Sidebar";var ne=n(({className:t,onClick:e,...a},i)=>{let{toggleSidebar:d}=M();return f(w,{ref:i,icon:!0,className:o("",t),"data-sidebar":"trigger",size:"xxs",variant:"ghost",onClick:s=>{e?.(s),d()},...a,children:[r(W,{}),r("span",{className:"sr-only",children:"Toggle Sidebar"})]})});ne.displayName="SidebarTrigger";var ie=n(({className:t,...e},a)=>{let{toggleSidebar:i}=M();return r("button",{ref:a,"aria-label":"Toggle Sidebar",className:o("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-0.5 group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:hover:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",t),"data-sidebar":"rail",tabIndex:-1,title:"Toggle Sidebar",type:"button",onClick:i,...e})});ie.displayName="SidebarRail";var de=n(({className:t,...e},a)=>r("main",{ref:a,className:o("bg-background relative flex min-h-svh flex-1 flex-col","peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",t),...e}));de.displayName="SidebarInset";var se=n(({className:t,...e},a)=>r(H,{ref:a,className:o("bg-background focus-visible:ring-sidebar-ring h-8 w-full shadow-none focus-visible:ring-2",t),"data-sidebar":"input",...e}));se.displayName="SidebarInput";var le=n(({className:t,...e},a)=>r("div",{ref:a,className:o("flex flex-col gap-2 p-2",t),"data-sidebar":"header",...e}));le.displayName="SidebarHeader";var pe=n(({className:t,...e},a)=>r("div",{ref:a,className:o("flex flex-col gap-2 p-2",t),"data-sidebar":"footer",...e}));pe.displayName="SidebarFooter";var be=n(({className:t,...e},a)=>r(N,{ref:a,className:o("bg-sidebar-border mx-2 w-auto",t),"data-sidebar":"separator",...e}));be.displayName="SidebarSeparator";var ue=n(({className:t,...e},a)=>r("div",{ref:a,className:o("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",t),"data-sidebar":"content",...e}));ue.displayName="SidebarContent";var ce=n(({className:t,...e},a)=>r("div",{ref:a,className:o("relative flex w-full min-w-0 flex-col p-2",t),"data-sidebar":"group",...e}));ce.displayName="SidebarGroup";var me=n(({className:t,asChild:e=!1,...a},i)=>r(e?v:"div",{ref:i,className:o("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-none transition-[margin,opa] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",t),"data-sidebar":"group-label",...a}));me.displayName="SidebarGroupLabel";var fe=n(({className:t,asChild:e=!1,...a},i)=>r(e?v:"button",{ref:i,className:o("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-none transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",t),"data-sidebar":"group-action",...a}));fe.displayName="SidebarGroupAction";var Se=n(({className:t,...e},a)=>r("div",{ref:a,className:o("w-full text-sm",t),"data-sidebar":"group-content",...e}));Se.displayName="SidebarGroupContent";var ge=n(({className:t,...e},a)=>r("ul",{ref:a,className:o("flex w-full min-w-0 flex-col gap-1",t),"data-sidebar":"menu",...e}));ge.displayName="SidebarMenu";var ve=n(({className:t,...e},a)=>r("li",{ref:a,className:o("group/menu-item relative",t),"data-sidebar":"menu-item",...e}));ve.displayName="SidebarMenuItem";var he=Q({base:"peer/menu-button ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none transition-[width,height,padding] focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:font-medium group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[0_0_0_1px_hsl(var(--color-sidebar-border))] hover:shadow-[0_0_0_1px_hsl(var(--color-sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),xe=n(({asChild:t=!1,isActive:e=!1,variant:a="default",size:i="default",tooltip:d,className:s,...c},S)=>{let p=t?v:"button",{isMobile:m,state:b}=M(),h=r(p,{ref:S,className:o(he({variant:a,size:i}),s),"data-active":e,"data-sidebar":"menu-button","data-size":i,...c});return d?f(k,{children:[r(A,{asChild:!0,children:h}),r(D,{align:"center",hidden:b!=="collapsed"||m,side:"right",...typeof d=="string"?{children:d}:d})]}):h});xe.displayName="SidebarMenuButton";var ye=n(({className:t,asChild:e=!1,showOnHover:a=!1,...i},d)=>r(e?v:"button",{ref:d,className:o("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-none transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",t),"data-sidebar":"menu-action",...i}));ye.displayName="SidebarMenuAction";var Me=n(({className:t,...e},a)=>r("div",{ref:a,className:o("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",t),"data-sidebar":"menu-badge",...e}));Me.displayName="SidebarMenuBadge";var Pe=n(({className:t,showIcon:e=!1,...a},i)=>{let d=R(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return f("div",{ref:i,className:o("flex h-8 items-center gap-2 rounded-md px-2",t),"data-sidebar":"menu-skeleton",...a,children:[e?r(P,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}):null,r(P,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":d}})]})});Pe.displayName="SidebarMenuSkeleton";var Ee=n(({className:t,...e},a)=>r("ul",{ref:a,className:o("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",t),"data-sidebar":"menu-sub",...e}));Ee.displayName="SidebarMenuSub";var Ce=n(({...t},e)=>r("li",{ref:e,...t}));Ce.displayName="SidebarMenuSubItem";var we=n(({asChild:t=!1,size:e="md",isActive:a,className:i,...d},s)=>r(t?v:"a",{ref:s,className:o("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",e==="sm"&&"text-xs",e==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",i),"data-active":a,"data-sidebar":"menu-sub-button","data-size":e,...d}));we.displayName="SidebarMenuSubButton";export{M as a,re as b,oe as c,ne as d,ie as e,de as f,se as g,le as h,pe as i,be as j,ue as k,ce as l,me as m,fe as n,Se as o,ge as p,ve as q,xe as r,ye as s,Me as t,Pe as u,Ee as v,Ce as w,we as x};
|
package/dist/chunk-GCOZTRNW.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as o}from"./chunk-RNGFAUQN.js";import{a as s}from"./chunk-V3H3W256.js";import{forwardRef as c}from"react";import{jsx as n,jsxs as l}from"react/jsx-runtime";var d=c(({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)=>l("button",{ref:N,className:s({className:u,icon:i,inside:m,size:f,variant:a}),disabled:e||B,type:"button",...y,children:[e&&p==="prefix"?r||n(o,{}):x,typeof t=="string"?n("span",{className:"truncate",children:t}):t,e&&p==="suffix"?r||n(o,{}):b]}));d.displayName="Button";export{d as a};
|
package/dist/chunk-LJ7NJT5Y.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _tailwindvariants = require('tailwind-variants');var a=_tailwindvariants.tv.call(void 0, {base:["inline-flex shrink-0 select-none items-center justify-center gap-2 whitespace-nowrap rounded-md px-4 text-sm font-medium transition","[&>svg]:shrink-0","focus-visible:outline-none","focus-visible:ring-ring focus-visible:ring-2 focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50"],compoundVariants:[{className:"w-7",icon:!0,size:"xxs"},{className:"w-8",icon:!0,size:"xs"},{className:"w-9",icon:!0,size:"sm"},{className:"w-10",icon:!0,size:"md"},{className:"w-11",icon:!0,size:"lg"},{className:"w-12",icon:!0,size:"xl"},{className:"[&>svg]:size-3",size:"xxs"},{className:"[&>svg]:size-3.5",size:"xs"}],defaultVariants:{icon:!1,size:"md",variant:"default"},variants:{icon:{false:"",true:"px-0"},size:{xxs:"h-7 [&>svg]:size-3",xs:"h-8 [&>svg]:size-3.5",sm:"h-9 [&>svg]:size-4",md:"h-10 [&>svg]:size-4",lg:"h-11 [&>svg]:size-5",xl:"h-12 [&>svg]:size-5"},variant:{default:["data-[state=on]:bg-primary data-[state=on]:text-primary-foreground data-[state=on]:shadow-sm","hover:bg-primary/80 hover:text-primary-foreground"],secondary:["data-[state=on]:bg-secondary data-[state=on]:text-secondary-foreground data-[state=on]:shadow-sm","hover:bg-secondary/80 hover:text-secondary-foreground"],info:["data-[state=on]:bg-info data-[state=on]:text-info-foreground data-[state=on]:shadow-sm","hover:bg-info/80 hover:text-info-foreground"],success:["data-[state=on]:bg-success data-[state=on]:text-success-foreground data-[state=on]:shadow-sm","hover:bg-success/80 hover:text-success-foreground"],warning:["data-[state=on]:bg-warning data-[state=on]:text-warning-foreground data-[state=on]:shadow-sm","hover:bg-warning/80 hover:text-warning-foreground"],destructive:["data-[state=on]:bg-destructive data-[state=on]:text-destructive-foreground data-[state=on]:shadow-sm","hover:bg-destructive/80 hover:text-destructive-foreground"],outline:["data-[state=on]:bg-accent data-[state=on]:text-accent-foreground","hover:bg-accent/80 hover:text-accent-foreground","bg-background border-input border shadow-sm"],ghost:["data-[state=on]:bg-accent data-[state=on]:text-accent-foreground","hover:bg-accent/80 hover:text-accent-foreground"]}}});exports.a = a;
|
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-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-Q3SQCPJV.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 x}from"react";import{jsx as o,jsxs as P}from"react/jsx-runtime";function C({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});default:return o(b,{className:"size-4",...t})}}function D({modifiers:r,className:t,day:a,...u}){let l=x(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:C,DayButton:D},...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-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-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-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};
|