@gbmtech/aurora-ui 0.6.3 → 0.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/app-layout/index.cjs +1 -1
- package/dist/cjs/components/app-layout/sidebar/index.cjs +1 -1
- package/dist/cjs/components/{theme-provider.cjs → aurora-provider/aurora-provider.cjs} +1 -1
- package/dist/cjs/components/aurora-provider/aurora-provider.d.ts +7 -0
- package/dist/cjs/components/aurora-provider/aurora-provider.d.ts.map +1 -0
- package/dist/cjs/components/aurora-provider/index.cjs +1 -0
- package/dist/cjs/components/aurora-provider/index.d.ts +2 -0
- package/dist/cjs/components/aurora-provider/index.d.ts.map +1 -0
- package/dist/cjs/components/button/button.cjs +1 -1
- package/dist/cjs/components/command.cjs +1 -1
- package/dist/cjs/components/data-table/data-table-action-bar.cjs +1 -1
- package/dist/cjs/components/data-table/data-table-filter-list.cjs +1 -1
- package/dist/cjs/components/data-table/data-table-filter-menu.cjs +1 -1
- package/dist/cjs/components/data-table/data-table-range-filter.cjs +1 -1
- package/dist/cjs/components/data-table/data-table-slider-filter.cjs +1 -1
- package/dist/cjs/components/data-table/data-table-toolbar.cjs +1 -1
- package/dist/cjs/components/data-table/data-table.d.ts.map +1 -1
- package/dist/cjs/components/data-table/index.cjs +1 -1
- package/dist/cjs/components/dialog/dialog.cjs +2 -0
- package/dist/cjs/components/dialog/dialog.d.ts +39 -0
- package/dist/cjs/components/dialog/dialog.d.ts.map +1 -0
- package/dist/cjs/components/dialog/index.cjs +1 -0
- package/dist/cjs/components/dialog/index.d.ts +2 -0
- package/dist/cjs/components/dialog/index.d.ts.map +1 -0
- package/dist/cjs/components/input/index.cjs +1 -0
- package/dist/cjs/components/input/index.d.ts +3 -0
- package/dist/cjs/components/input/index.d.ts.map +1 -0
- package/dist/cjs/components/input/input-variants.cjs +1 -0
- package/dist/cjs/components/input/input-variants.d.ts +103 -0
- package/dist/cjs/components/input/input-variants.d.ts.map +1 -0
- package/dist/cjs/components/input/input.cjs +2 -0
- package/dist/cjs/components/input/input.d.ts +14 -0
- package/dist/cjs/components/input/input.d.ts.map +1 -0
- package/dist/cjs/components/input-otp/index.cjs +1 -0
- package/dist/cjs/components/input-otp/index.d.ts +2 -0
- package/dist/cjs/components/input-otp/index.d.ts.map +1 -0
- package/dist/cjs/components/input-otp/input-otp.cjs +2 -0
- package/dist/cjs/components/input-otp/input-otp.d.ts +16 -0
- package/dist/cjs/components/input-otp/input-otp.d.ts.map +1 -0
- package/dist/cjs/components/input-password/index.cjs +1 -0
- package/dist/cjs/components/input-password/index.d.ts +2 -0
- package/dist/cjs/components/input-password/index.d.ts.map +1 -0
- package/dist/cjs/components/input-password/input-password.cjs +2 -0
- package/dist/cjs/components/input-password/input-password.d.ts +8 -0
- package/dist/cjs/components/input-password/input-password.d.ts.map +1 -0
- package/dist/cjs/components/mask-input.cjs +1 -1
- package/dist/cjs/components/month-picker.cjs +1 -1
- package/dist/cjs/components/month-picker.d.ts +3 -2
- package/dist/cjs/components/month-picker.d.ts.map +1 -1
- package/dist/cjs/components/spinner/index.cjs +1 -0
- package/dist/cjs/components/spinner/index.d.ts +2 -0
- package/dist/cjs/components/spinner/index.d.ts.map +1 -0
- package/dist/cjs/components/spinner/spinner.cjs +1 -0
- package/dist/cjs/components/{spinner.d.ts → spinner/spinner.d.ts} +4 -2
- package/dist/cjs/components/spinner/spinner.d.ts.map +1 -0
- package/dist/cjs/components/time-picker/time-picker-input.cjs +1 -1
- package/dist/cjs/hooks/use-data-table.cjs +1 -1
- package/dist/cjs/hooks/use-data-table.d.ts +1 -1
- package/dist/cjs/hooks/use-data-table.d.ts.map +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.d.ts +0 -1
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/lib/index.cjs +1 -1
- package/dist/cjs/primitives/input.d.ts.map +1 -0
- package/dist/esm/components/aurora-provider/aurora-provider.d.ts +7 -0
- package/dist/esm/components/aurora-provider/aurora-provider.d.ts.map +1 -0
- package/dist/esm/components/{theme-provider.js → aurora-provider/aurora-provider.js} +1 -1
- package/dist/esm/components/aurora-provider/index.d.ts +2 -0
- package/dist/esm/components/aurora-provider/index.d.ts.map +1 -0
- package/dist/esm/components/aurora-provider/index.js +1 -0
- package/dist/esm/components/button/button.js +1 -1
- package/dist/esm/components/command.js +1 -1
- package/dist/esm/components/data-table/data-table-action-bar.js +1 -1
- package/dist/esm/components/data-table/data-table-filter-list.js +1 -1
- package/dist/esm/components/data-table/data-table-filter-menu.js +1 -1
- package/dist/esm/components/data-table/data-table-range-filter.js +1 -1
- package/dist/esm/components/data-table/data-table-slider-filter.js +1 -1
- package/dist/esm/components/data-table/data-table-toolbar.js +1 -1
- package/dist/esm/components/data-table/data-table.d.ts.map +1 -1
- package/dist/esm/components/dialog/dialog.d.ts +39 -0
- package/dist/esm/components/dialog/dialog.d.ts.map +1 -0
- package/dist/esm/components/dialog/dialog.js +2 -0
- package/dist/esm/components/dialog/index.d.ts +2 -0
- package/dist/esm/components/dialog/index.d.ts.map +1 -0
- package/dist/esm/components/dialog/index.js +1 -0
- package/dist/esm/components/input/index.d.ts +3 -0
- package/dist/esm/components/input/index.d.ts.map +1 -0
- package/dist/esm/components/input/index.js +1 -0
- package/dist/esm/components/input/input-variants.d.ts +103 -0
- package/dist/esm/components/input/input-variants.d.ts.map +1 -0
- package/dist/esm/components/input/input-variants.js +1 -0
- package/dist/esm/components/input/input.d.ts +14 -0
- package/dist/esm/components/input/input.d.ts.map +1 -0
- package/dist/esm/components/input/input.js +2 -0
- package/dist/esm/components/input-otp/index.d.ts +2 -0
- package/dist/esm/components/input-otp/index.d.ts.map +1 -0
- package/dist/esm/components/input-otp/index.js +1 -0
- package/dist/esm/components/input-otp/input-otp.d.ts +16 -0
- package/dist/esm/components/input-otp/input-otp.d.ts.map +1 -0
- package/dist/esm/components/input-otp/input-otp.js +2 -0
- package/dist/esm/components/input-password/index.d.ts +2 -0
- package/dist/esm/components/input-password/index.d.ts.map +1 -0
- package/dist/esm/components/input-password/index.js +1 -0
- package/dist/esm/components/input-password/input-password.d.ts +8 -0
- package/dist/esm/components/input-password/input-password.d.ts.map +1 -0
- package/dist/esm/components/input-password/input-password.js +2 -0
- package/dist/esm/components/mask-input.js +1 -1
- package/dist/esm/components/month-picker.d.ts +3 -2
- package/dist/esm/components/month-picker.d.ts.map +1 -1
- package/dist/esm/components/month-picker.js +1 -1
- package/dist/esm/components/spinner/index.d.ts +2 -0
- package/dist/esm/components/spinner/index.d.ts.map +1 -0
- package/dist/esm/components/spinner/index.js +1 -0
- package/dist/esm/components/{spinner.d.ts → spinner/spinner.d.ts} +4 -2
- package/dist/esm/components/spinner/spinner.d.ts.map +1 -0
- package/dist/esm/components/spinner/spinner.js +1 -0
- package/dist/esm/components/time-picker/time-picker-input.js +1 -1
- package/dist/esm/hooks/use-data-table.d.ts +1 -1
- package/dist/esm/hooks/use-data-table.d.ts.map +1 -1
- package/dist/esm/hooks/use-data-table.js +1 -1
- package/dist/esm/index.d.ts +0 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/primitives/input.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/cjs/components/dialog.cjs +0 -2
- package/dist/cjs/components/dialog.d.ts +0 -59
- package/dist/cjs/components/dialog.d.ts.map +0 -1
- package/dist/cjs/components/input-otp.cjs +0 -2
- package/dist/cjs/components/input-otp.d.ts +0 -23
- package/dist/cjs/components/input-otp.d.ts.map +0 -1
- package/dist/cjs/components/input-password.cjs +0 -2
- package/dist/cjs/components/input-password.d.ts +0 -10
- package/dist/cjs/components/input-password.d.ts.map +0 -1
- package/dist/cjs/components/input.cjs +0 -2
- package/dist/cjs/components/input.d.ts +0 -46
- package/dist/cjs/components/input.d.ts.map +0 -1
- package/dist/cjs/components/spinner.cjs +0 -1
- package/dist/cjs/components/spinner.d.ts.map +0 -1
- package/dist/cjs/components/theme-provider.d.ts +0 -5
- package/dist/cjs/components/theme-provider.d.ts.map +0 -1
- package/dist/cjs/primitive/input.d.ts.map +0 -1
- package/dist/esm/components/dialog.d.ts +0 -59
- package/dist/esm/components/dialog.d.ts.map +0 -1
- package/dist/esm/components/dialog.js +0 -2
- package/dist/esm/components/input-otp.d.ts +0 -23
- package/dist/esm/components/input-otp.d.ts.map +0 -1
- package/dist/esm/components/input-otp.js +0 -2
- package/dist/esm/components/input-password.d.ts +0 -10
- package/dist/esm/components/input-password.d.ts.map +0 -1
- package/dist/esm/components/input-password.js +0 -2
- package/dist/esm/components/input.d.ts +0 -46
- package/dist/esm/components/input.d.ts.map +0 -1
- package/dist/esm/components/input.js +0 -2
- package/dist/esm/components/spinner.d.ts.map +0 -1
- package/dist/esm/components/spinner.js +0 -1
- package/dist/esm/components/theme-provider.d.ts +0 -5
- package/dist/esm/components/theme-provider.d.ts.map +0 -1
- package/dist/esm/primitive/input.d.ts.map +0 -1
- /package/dist/cjs/{primitive → primitives}/input.cjs +0 -0
- /package/dist/cjs/{primitive → primitives}/input.d.ts +0 -0
- /package/dist/esm/{primitive → primitives}/input.d.ts +0 -0
- /package/dist/esm/{primitive → primitives}/input.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/input-password/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./input-password.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { InputVariants } from '../input';
|
|
3
|
+
import * as InputPrimitive from '../../primitives/input';
|
|
4
|
+
type InputPasswordProps = ComponentProps<typeof InputPrimitive.Root> & Omit<ComponentProps<typeof InputPrimitive.Field>, 'prefix' | 'type'> & InputVariants;
|
|
5
|
+
declare function InputPassword({ className, disabled, loaderPosition, loading, prefix, readOnly, spinner, suffix, ...props }: InputPasswordProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export { InputPassword };
|
|
7
|
+
export type { InputPasswordProps };
|
|
8
|
+
//# sourceMappingURL=input-password.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-password.d.ts","sourceRoot":"","sources":["../../../../src/components/input-password/input-password.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAA4C,MAAM,OAAO,CAAA;AAEhF,OAAO,EAAE,aAAa,EAAsB,MAAM,oBAAoB,CAAA;AAEtE,OAAO,KAAK,cAAc,MAAM,oBAAoB,CAAA;AAMpD,KAAK,kBAAkB,GAAG,cAAc,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC,GAClE,IAAI,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,KAAK,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC,GACpE,aAAa,CAAA;AAEf,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,QAAQ,EACR,cAAc,EACd,OAAO,EACP,MAAM,EACN,QAAQ,EACR,OAAO,EACP,MAAM,EACN,GAAG,KAAK,EACT,EAAE,kBAAkB,2CAgDpB;AAMD,OAAO,EAAE,aAAa,EAAE,CAAA;AACxB,YAAY,EAAE,kBAAkB,EAAE,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import{jsx as s,jsxs as o}from"react/jsx-runtime";import{EyeIcon as i,EyeSlashIcon as r}from"@phosphor-icons/react";import{useCallback as a,useState as t}from"react";import{Button as e}from"../button/index.js";import{inputVariantsSlots as p}from"../input/index.js";import{Spinner as n}from"../spinner/index.js";import{Field as d,Root as l}from"../../primitives/input.js";function m({className:m,disabled:u,loaderPosition:c,loading:f,prefix:w,readOnly:x,spinner:N,suffix:b,...g}){let[h,j]=t("password"),z=a(()=>{j(s=>"password"===s?"text":"password")},[]);return o(l,{className:p.root({className:[!b&&"pr-1.5",m]}),"data-slot":"input-password",disabled:u,loaderPosition:c,loading:f,prefix:w,readOnly:x,spinner:N||s(n,{}),suffix:b,children:[s(d,{autoCapitalize:"none",className:p.input(),"data-slot":"input-password-item",type:h,...g}),s(e,{"aria-label":"password"===h?"Show password":"Hide password",className:"full size-8 rounded-full focus-visible:ring-0","data-slot":"input-password-toggle",disabled:u,prefix:"password"===h?s(r,{className:"size-6"}):s(i,{className:"size-6"}),size:"icon",variant:"ghost",onClick:z})]})}export{m as InputPassword};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
import{jsx as t}from"react/jsx-runtime";import{useEffect as e,useState as r}from"react";import{cn as m}from"../lib/utils.js";import{Input as
|
|
2
|
+
import{jsx as t}from"react/jsx-runtime";import{useEffect as e,useState as r}from"react";import{cn as m}from"../lib/utils.js";import{Input as i}from"./input/index.js";function a({value:a,onChange:n,decimals:o=3,language:u="pt-BR",className:l,...p}){let c=10**o,[f,s]=r("");return e(()=>{"number"!=typeof a||Number.isNaN(a)||s(Math.round(a*c).toString())},[a,c]),t(i,{value:function(t){let e=Number(t)/c;return new Intl.NumberFormat(u,{style:"decimal",minimumFractionDigits:o,maximumFractionDigits:o}).format(e)}(f),onChange:function(t){let e=t.target.value,r=new Intl.NumberFormat(u).formatToParts(12345.6),m=r.find(t=>"group"===t.type)?.value||",",i=r.find(t=>"decimal"===t.type)?.value||".",a=e.replace(RegExp(`\\${m}`,"g"),"").replace(RegExp(`\\${i}`,"g"),"").replace(/\D/g,""),o=Number(a)/c;s(a),n(o)},className:m("h-10",l),...p})}export{a as MaskInput};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { Locale } from 'date-fns';
|
|
2
2
|
interface MonthPickerProps {
|
|
3
|
-
|
|
3
|
+
value?: Date;
|
|
4
4
|
placeholder?: string;
|
|
5
5
|
className?: string;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
locale?: Locale;
|
|
8
8
|
onChange?: (date: Date | undefined) => void;
|
|
9
9
|
}
|
|
10
|
-
declare function MonthPicker({
|
|
10
|
+
declare function MonthPicker({ value, placeholder, className, disabled, locale, onChange, }: MonthPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export { MonthPicker };
|
|
12
|
+
export type { MonthPickerProps };
|
|
12
13
|
//# sourceMappingURL=month-picker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"month-picker.d.ts","sourceRoot":"","sources":["../../../src/components/month-picker.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"month-picker.d.ts","sourceRoot":"","sources":["../../../src/components/month-picker.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAU,MAAM,EAAE,MAAM,UAAU,CAAA;AAWzC,UAAU,gBAAgB;IACxB,KAAK,CAAC,EAAE,IAAI,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,KAAK,IAAI,CAAA;CAC5C;AAED,iBAAS,WAAW,CAAC,EACnB,KAAK,EACL,WAAW,EACX,SAAS,EACT,QAAgB,EAChB,MAAa,EACb,QAAQ,GACT,EAAE,gBAAgB,2CAqFlB;AAMD,OAAO,EAAE,WAAW,EAAE,CAAA;AACtB,YAAY,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
import{jsx as e,jsxs as r}from"react/jsx-runtime";import{
|
|
2
|
+
import{jsx as e,jsxs as r}from"react/jsx-runtime";import{CalendarBlankIcon as t,CaretLeftIcon as i,CaretRightIcon as n}from"@phosphor-icons/react";import{format as o}from"date-fns";import{ptBR as l}from"date-fns/locale";import{useMemo as a,useState as s}from"react";import{Button as m}from"./button/index.js";import{Popover as c,PopoverContent as d,PopoverTrigger as u}from"./popover.js";import{cn as f}from"../lib/utils.js";function p({value:p,placeholder:h,className:x,disabled:g=!1,locale:N=l,onChange:b}){let[v,M]=s(p),[w,y]=s(p?.getFullYear()??new Date().getFullYear()),j=a(()=>Array.from({length:12},(e,r)=>{let t=o(new Date(w,r,1),"MMMM",{locale:N});return{label:t.charAt(0).toUpperCase()+t.slice(1),index:r}}),[w,N]);return r(c,{children:[e(u,{asChild:!0,children:e(m,{id:"month",variant:"outline",className:f("min-w-60 justify-between rounded-md px-4 text-left font-normal hover:bg-background",!v&&"text-muted-foreground",x),disabled:g,children:r("div",{className:"flex flex-grow items-center",children:[e(t,{className:"mr-2 size-4 text-foreground"}),v?o(v,"MMMM yyyy",{locale:N}):h||"Selecione o m\xeas"]})})}),e(d,{className:"w-auto p-0",align:"start",children:r("div",{className:"w-64 p-4",children:[r("div",{className:"mb-4 flex items-center justify-between",children:[e(m,{onClick:()=>y(e=>e-1),variant:"outline",size:"icon",children:e(i,{className:"size-4 text-foreground"})}),e("span",{className:"font-medium text-lg",children:w}),e(m,{onClick:()=>y(e=>e+1),variant:"outline",size:"icon",children:e(n,{className:"size-4 text-foreground"})})]}),e("div",{className:"grid grid-cols-3 gap-2",children:j.map(r=>e(m,{variant:v?.getFullYear()===w&&v.getMonth()===r.index?"primary":"outline",className:f("rounded-md px-4 text-xs transition-colors"),onClick:()=>(e=>{let r=new Date(w,e,1);M(r),b?.(r)})(r.index),children:r.label},r.index))})]})})]})}export{p as MonthPicker};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/spinner/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./spinner.js";
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { ComponentProps, ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
type SpinnerProps = ComponentProps<'span'> & {
|
|
3
3
|
loading?: boolean;
|
|
4
|
-
}
|
|
4
|
+
};
|
|
5
|
+
declare function Spinner({ children, className, loading, ...props }: SpinnerProps): ReactNode;
|
|
5
6
|
export { Spinner };
|
|
7
|
+
export type { SpinnerProps };
|
|
6
8
|
//# sourceMappingURL=spinner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../../../../src/components/spinner/spinner.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAA;AAOrE,KAAK,YAAY,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,iBAAS,OAAO,CAAC,EACf,QAAQ,EACR,SAAS,EACT,OAAc,EACd,GAAG,KAAK,EACT,EAAE,YAAY,GAAG,SAAS,CAiD1B;AAMD,OAAO,EAAE,OAAO,EAAE,CAAA;AAClB,YAAY,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as r}from"react/jsx-runtime";import{VisuallyHidden as n}from"@radix-ui/react-visually-hidden";import{cn as i}from"../../lib/utils.js";function t({children:t,className:a,loading:o=!0,...s}){if(!o)return t;let l=e("span",{className:i("relative flex size-4 items-center justify-center opacity-60",a),...s,children:Array.from({length:8},(r,n)=>e("span",{className:i("before:fade-out-25 before:animation-repeat-infinite before:animation-delay-(--spinner-delay) before:animation-duration-(--spinner-duration) absolute h-full rotate-(--spinner-rotate) before:block before:h-1/3 before:w-full before:animate-out before:rounded-full before:bg-current"),style:{"--spinner-delay":`-${((8-n)*100).toString()}ms`,"--spinner-duration":"800ms","--spinner-rotate":`${(45*n).toString()}deg`,width:"12.5%"}},n))});return void 0===t?l:r("span",{className:"relative",children:[e("span",{"aria-hidden":!0,className:"invisible contents",children:t}),e(n,{children:t}),e("span",{className:"absolute inset-0 flex items-center justify-center",children:l})]})}export{t as Spinner};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
import{jsx as e}from"react/jsx-runtime";import{useEffect as t,useMemo as r,useState as n}from"react";import{cn as o}from"../../lib/index.js";import{getArrowByType as a,getDateByType as i,setDateByType as p}from"../../lib/date-picker.js";import{Input as s}from"../input.js";function u({className:u,type:c="tel",value:l,id:m,name:f,date:w=new Date(new Date().setHours(0,0,0,0)),onDateChange:k,onChange:y,onKeyDown:D,picker:
|
|
2
|
+
import{jsx as e}from"react/jsx-runtime";import{useEffect as t,useMemo as r,useState as n}from"react";import{cn as o}from"../../lib/index.js";import{getArrowByType as a,getDateByType as i,setDateByType as p}from"../../lib/date-picker.js";import{Input as s}from"../input/index.js";function u({className:u,type:c="tel",value:l,id:m,name:f,date:w=new Date(new Date().setHours(0,0,0,0)),onDateChange:k,onChange:y,onKeyDown:D,picker:d,period:x,onLeftFocus:b,onRightFocus:A,...T}){let[g,h]=n(!1),[j,v]=n("0");t(()=>{if(g){let e=setTimeout(()=>{h(!1)},2e3);return()=>clearTimeout(e)}},[g]);let N=r(()=>i(w,d),[w,d]);return e(s,{id:m||d,name:f||d,className:o("w-[48px] px-3 font-mono text-base tabular-nums caret-transparent focus:bg-accent focus:text-accent-foreground [&::-webkit-inner-spin-button]:appearance-none",u),classNames:{input:"text-center "},value:l||N,onChange:e=>{e.preventDefault(),y?.(e)},type:c,inputMode:"decimal",onKeyDown:e=>{D?.(e),(e=>{if("Tab"!==e.key){if(e.preventDefault(),"ArrowRight"===e.key&&A?.(),"ArrowLeft"===e.key&&b?.(),["ArrowUp","ArrowDown"].includes(e.key)){let t=a(N,"ArrowUp"===e.key?1:-1,d);g&&h(!1);let r=w?new Date(w):new Date;k?.(p(r,t,d,x))}if(e.key>="0"&&e.key<="9"){var t;"12hours"===d&&v(e.key);let r=(t=e.key,"12hours"===d&&g&&"1"===N.slice(1,2)&&"0"===j?`0${t}`:g?N.slice(1,2)+t:`0${t}`);g&&A?.(),h(e=>!e);let n=w?new Date(w):new Date;k?.(p(n,r,d,x))}}})(e)},...T})}u.displayName="TimePickerInput";export{u as TimePickerInput};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type TableOptions, type TableState } from '@tanstack/react-table';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import type { ExtendedColumnSort } from '../types/data-table';
|
|
4
|
-
interface UseDataTableProps<TData> extends Omit<TableOptions<TData>, '
|
|
4
|
+
interface UseDataTableProps<TData> extends Omit<TableOptions<TData>, 'pageCount' | 'getCoreRowModel' | 'manualFiltering' | 'manualPagination' | 'manualSorting'>, Required<Pick<TableOptions<TData>, 'pageCount'>> {
|
|
5
5
|
initialState?: Omit<Partial<TableState>, 'sorting'> & {
|
|
6
6
|
sorting?: ExtendedColumnSort<TData>[];
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-data-table.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-data-table.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"use-data-table.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-data-table.ts"],"names":[],"mappings":"AAEA,OAAO,EAYL,KAAK,YAAY,EACjB,KAAK,UAAU,EAIhB,MAAM,uBAAuB,CAAA;AAU9B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAS5D,UAAU,iBAAiB,CAAC,KAAK,CAC/B,SAAQ,IAAI,CACR,YAAY,CAAC,KAAK,CAAC,EACjB,WAAW,GACX,iBAAiB,GACjB,iBAAiB,GACjB,kBAAkB,GAClB,eAAe,CAClB,EACD,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC,CAAC;IAClD,YAAY,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,SAAS,CAAC,GAAG;QACpD,OAAO,CAAC,EAAE,kBAAkB,CAAC,KAAK,CAAC,EAAE,CAAA;KACtC,CAAA;IACD,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,eAAe,CAAC,EAAE,KAAK,CAAC,uBAAuB,CAAA;IAC/C,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC7B;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,EAAE,iBAAiB,CAAC,KAAK,CAAC;;;;;EAuOlE"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
import{getCoreRowModel as e,getFacetedMinMaxValues as t,getFacetedRowModel as i,getFacetedUniqueValues as o,getFilteredRowModel as a,getPaginationRowModel as n,getSortedRowModel as l,useReactTable as r}from"@tanstack/react-table";import{parseAsArrayOf as u,parseAsInteger as d,parseAsString as p,useQueryState as s,useQueryStates as f}from"nuqs";import{useCallback as g,useMemo as c,useState as m}from"react";import{useDebouncedCallback as w}from"./use-debounced-callback.js";import{getSortingStateParser as b}from"../lib/parsers.js";function h(h){let{columns:S,pageCount:y=-1,initialState:C,history:F="replace",debounceMs:M=300,throttleMs:R=50,clearOnDefault:z=!1,enableAdvancedFilter:O=!1,scroll:x=!1,shallow:A=!0,startTransition:D,globalFilter:V,...
|
|
2
|
+
import{getCoreRowModel as e,getFacetedMinMaxValues as t,getFacetedRowModel as i,getFacetedUniqueValues as o,getFilteredRowModel as a,getPaginationRowModel as n,getSortedRowModel as l,useReactTable as r}from"@tanstack/react-table";import{parseAsArrayOf as u,parseAsInteger as d,parseAsString as p,useQueryState as s,useQueryStates as f}from"nuqs";import{useCallback as g,useMemo as c,useState as m}from"react";import{useDebouncedCallback as w}from"./use-debounced-callback.js";import{getSortingStateParser as b}from"../lib/parsers.js";function h(h){let{columns:S,pageCount:y=-1,initialState:C,history:F="replace",debounceMs:M=300,throttleMs:R=50,clearOnDefault:z=!1,enableAdvancedFilter:O=!1,scroll:x=!1,shallow:A=!0,startTransition:D,globalFilter:V,state:j,...I}=h,P=c(()=>({history:F,scroll:x,shallow:A,throttleMs:R,debounceMs:M,clearOnDefault:z,startTransition:D}),[F,x,A,R,M,z,D]),[k,q]=m(C?.rowSelection??{}),[v,B]=m(C?.columnVisibility??{}),[Z,T]=s("page",d.withOptions(P).withDefault(1)),[U,E]=s("perPage",d.withOptions(P).withDefault(C?.pagination?.pageSize??10)),G=c(()=>({pageIndex:Z-1,pageSize:U}),[Z,U]),H=g(e=>{if("function"==typeof e){let t=e(G);T(t.pageIndex+1),E(t.pageSize)}else T(e.pageIndex+1),E(e.pageSize)},[G,T,E]),[J,K]=s("sort",b(c(()=>new Set(S.map(e=>e.id).filter(Boolean)),[S])).withOptions(P).withDefault(C?.sorting??[])),L=g(e=>{"function"==typeof e?K(e(J)):K(e)},[J,K]),N=c(()=>O?[]:S.filter(e=>e.enableColumnFilter),[S,O]),[Q,W]=f(c(()=>O?{}:N.reduce((e,t)=>(t.meta?.options?e[t.id??""]=u(p,",").withOptions(P):e[t.id??""]=p.withOptions(P),e),{}),[N,P,O])),X=w(e=>{T(1),W(e)},M),[Y,$]=m(c(()=>O?[]:Object.entries(Q).reduce((e,[t,i])=>{if(null!==i){let o=Array.isArray(i)?i:"string"==typeof i&&/[^a-zA-Z0-9]/.test(i)?i.split(/[^a-zA-Z0-9]+/).filter(Boolean):[i];e.push({id:t,value:o})}return e},[]),[Q,O])),_=g(e=>{O||$(t=>{let i="function"==typeof e?e(t):e,o=i.reduce((e,t)=>(N.find(e=>e.id===t.id)&&(e[t.id]=t.value),e),{});for(let e of t)i.some(t=>t.id===e.id)||(o[e.id]=null);return X(o),i})},[X,N,O]);return{table:r({...I,columns:S,initialState:C,pageCount:y,state:{pagination:G,sorting:J,columnVisibility:v,rowSelection:k,columnFilters:Y,globalFilter:V,...j},defaultColumn:{...I.defaultColumn,enableColumnFilter:!1},enableRowSelection:!0,onRowSelectionChange:q,onPaginationChange:H,onSortingChange:L,onColumnFiltersChange:_,onColumnVisibilityChange:B,getCoreRowModel:e(),getFilteredRowModel:a(),getPaginationRowModel:n(),getSortedRowModel:l(),getFacetedRowModel:i(),getFacetedUniqueValues:o(),getFacetedMinMaxValues:t(),manualPagination:!0,manualSorting:!0,manualFiltering:!0}),shallow:A,debounceMs:M,throttleMs:R}}export{h as useDataTable};
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -39,7 +39,6 @@ export * from './components/table';
|
|
|
39
39
|
export * from './components/table-expandable';
|
|
40
40
|
export * from './components/tabs';
|
|
41
41
|
export * from './components/textarea';
|
|
42
|
-
export * from './components/theme-provider';
|
|
43
42
|
export * from './components/theme-toggle';
|
|
44
43
|
export * from './components/title';
|
|
45
44
|
export * from './components/tokens-grid';
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,2BAA2B,CAAA;AACzC,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA;AAClC,cAAc,yBAAyB,CAAA;AACvC,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,0BAA0B,CAAA;AACxC,cAAc,qCAAqC,CAAA;AACnD,cAAc,+BAA+B,CAAA;AAC7C,cAAc,0CAA0C,CAAA;AACxD,cAAc,qBAAqB,CAAA;AACnC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,wBAAwB,CAAA;AACtC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,oBAAoB,CAAA;AAClC,cAAc,yBAAyB,CAAA;AACvC,cAAc,2BAA2B,CAAA;AACzC,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AACpC,cAAc,0BAA0B,CAAA;AACxC,cAAc,0BAA0B,CAAA;AACxC,cAAc,qBAAqB,CAAA;AACnC,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA;AAClC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA;AAClC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,mBAAmB,CAAA;AACjC,cAAc,uBAAuB,CAAA;AACrC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,2BAA2B,CAAA;AACzC,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA;AAClC,cAAc,yBAAyB,CAAA;AACvC,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,0BAA0B,CAAA;AACxC,cAAc,qCAAqC,CAAA;AACnD,cAAc,+BAA+B,CAAA;AAC7C,cAAc,0CAA0C,CAAA;AACxD,cAAc,qBAAqB,CAAA;AACnC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,wBAAwB,CAAA;AACtC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,oBAAoB,CAAA;AAClC,cAAc,yBAAyB,CAAA;AACvC,cAAc,2BAA2B,CAAA;AACzC,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AACpC,cAAc,0BAA0B,CAAA;AACxC,cAAc,0BAA0B,CAAA;AACxC,cAAc,qBAAqB,CAAA;AACnC,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA;AAClC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA;AAClC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,mBAAmB,CAAA;AACjC,cAAc,uBAAuB,CAAA;AACrC,cAAc,2BAA2B,CAAA;AACzC,cAAc,oBAAoB,CAAA;AAClC,cAAc,0BAA0B,CAAA;AACxC,cAAc,sBAAsB,CAAA;AACpC,cAAc,wBAAwB,CAAA;AACtC,cAAc,yBAAyB,CAAA;AACvC,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
|
package/dist/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export*from"./components/alert-dialog/index.js";export*from"./components/app-layout/index.js";export*from"./components/autocomplete/index.js";export*from"./components/avatar/index.js";export*from"./components/badge/index.js";export*from"./components/breadcrumb.js";export*from"./components/button/index.js";export*from"./components/calendar.js";export*from"./components/checkbox/index.js";export*from"./components/combobox.js";export*from"./components/command.js";export*from"./components/context-menu.js";export*from"./components/data-table/index.js";export*from"./components/date-picker/index.js";export*from"./components/date-picker-with-range.js";export*from"./components/date-time-picker/index.js";export*from"./components/date-time-picker-with-range.js";export*from"./components/dialog.js";export*from"./components/dropdown-menu.js";export*from"./components/form.js";export*from"./components/input.js";export*from"./components/input-otp.js";export*from"./components/input-password.js";export*from"./components/label.js";export*from"./components/mask-input.js";export*from"./components/month-picker.js";export*from"./components/multi-select.js";export*from"./components/pagination.js";export*from"./components/popover.js";export*from"./components/radio-group.js";export*from"./components/scroll-area.js";export*from"./components/select.js";export*from"./components/separator.js";export*from"./components/sheet/index.js";export*from"./components/skeleton/index.js";export*from"./components/spinner.js";export*from"./components/switch/index.js";export*from"./components/table.js";export*from"./components/table-expandable.js";export*from"./components/tabs/index.js";export*from"./components/textarea.js";export*from"./components/theme-
|
|
1
|
+
export*from"./components/alert-dialog/index.js";export*from"./components/app-layout/index.js";export*from"./components/autocomplete/index.js";export*from"./components/avatar/index.js";export*from"./components/badge/index.js";export*from"./components/breadcrumb.js";export*from"./components/button/index.js";export*from"./components/calendar.js";export*from"./components/checkbox/index.js";export*from"./components/combobox.js";export*from"./components/command.js";export*from"./components/context-menu.js";export*from"./components/data-table/index.js";export*from"./components/date-picker/index.js";export*from"./components/date-picker-with-range.js";export*from"./components/date-time-picker/index.js";export*from"./components/date-time-picker-with-range.js";export*from"./components/dialog/index.js";export*from"./components/dropdown-menu.js";export*from"./components/form.js";export*from"./components/input/index.js";export*from"./components/input-otp/index.js";export*from"./components/input-password/index.js";export*from"./components/label.js";export*from"./components/mask-input.js";export*from"./components/month-picker.js";export*from"./components/multi-select.js";export*from"./components/pagination.js";export*from"./components/popover.js";export*from"./components/radio-group.js";export*from"./components/scroll-area.js";export*from"./components/select.js";export*from"./components/separator.js";export*from"./components/sheet/index.js";export*from"./components/skeleton/index.js";export*from"./components/spinner/index.js";export*from"./components/switch/index.js";export*from"./components/table.js";export*from"./components/table-expandable.js";export*from"./components/tabs/index.js";export*from"./components/textarea.js";export*from"./components/theme-toggle.js";export*from"./components/title.js";export*from"./components/tokens-grid.js";export*from"./components/tooltip/index.js";export*from"./hooks/use-data-table.js";export*from"./lib/data-table-config.js";export*from"./lib/format.js";export*from"./lib/utils.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/primitives/input.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAEpD,OAAO,KAAK,EACV,cAAc,EACd,GAAG,EAEH,iBAAiB,EACjB,SAAS,EAEV,MAAM,OAAO,CAAA;AASd;;GAEG;AACH,KAAK,WAAW,CAAC,CAAC,IAAI,CAAC,GAAG;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAA;CACrB,CAAA;AAED,QAAA,MAA2B,gBAAgB,+CAAkC,CAAA;AAyB7E;;GAEG;AACH,UAAU,gBAAgB;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAA;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAA;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAA;CACnB;AAED;;GAEG;AACH,UAAU,kBAAkB;IAC1B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,cAAc,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAA;IAEpC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED;;GAEG;AACH,KAAK,UAAU,GAAG,iBAAiB,CAAC,kBAAkB,GAAG,gBAAgB,CAAC,CAAA;AAE1E,iBAAS,KAAK,CAAC,UAAU,EAAE,WAAW,CAAC,UAAU,CAAC,GAAG,GAAG,CAAC,OAAO,CA2F/D;AAQD;;GAEG;AACH,KAAK,eAAe,GAAG,cAAc,CAAC,OAAO,CAAC,CAAA;AAE9C,iBAAS,UAAU,CAAC,EAClB,YAAY,EACZ,GAAG,KAAK,EACT,EAAE,WAAW,CAAC,eAAe,CAAC,GAAG,GAAG,CAAC,OAAO,CAuB5C;AAMD,OAAO,EACL,gBAAgB,EAChB,UAAU,IAAI,KAAK,EACnB,KAAK,EACL,UAAU,EACV,KAAK,IAAI,IAAI,GACd,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,a)=>{for(var t in a)__webpack_require__.o(a,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},__webpack_require__.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DialogBody:()=>DialogBody,DialogDescription:()=>DialogDescription,DialogHeader:()=>DialogHeader,DialogClose:()=>DialogClose,DialogOverlay:()=>DialogOverlay,Dialog:()=>Dialog,DialogPortal:()=>DialogPortal,DialogTitle:()=>DialogTitle,DialogContent:()=>DialogContent,DialogTrigger:()=>DialogTrigger,DialogFooter:()=>DialogFooter});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_namespaceObject=require("@phosphor-icons/react"),react_dialog_namespaceObject=require("@radix-ui/react-dialog"),utils_cjs_namespaceObject=require("../lib/utils.cjs"),index_cjs_namespaceObject=require("./button/index.cjs");function Dialog(e){return(0,jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Root,{"data-slot":"dialog",...e})}function DialogTrigger(e){return(0,jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Trigger,{"data-slot":"dialog-trigger",...e})}function DialogPortal({...e}){return(0,jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Portal,{"data-slot":"dialog-portal",...e})}function DialogClose({className:e,size:a,variant:t="outline",...o}){return(0,jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Close,{className:(0,index_cjs_namespaceObject.buttonVariants)({className:e,size:a,variant:t}),"data-slot":"dialog-close",...o})}function DialogOverlay({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Overlay,{className:(0,utils_cjs_namespaceObject.cn)("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in",e),"data-slot":"dialog-overlay",...a})}function DialogContent({children:e,className:a,classNames:t,...o}){return(0,jsx_runtime_namespaceObject.jsxs)(DialogPortal,{children:[(0,jsx_runtime_namespaceObject.jsx)(DialogOverlay,{className:t?.overlay}),(0,jsx_runtime_namespaceObject.jsxs)(react_dialog_namespaceObject.Content,{className:(0,utils_cjs_namespaceObject.cn)("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-lg sm:rounded-lg",a,t?.content),"data-slot":"dialog-content-wrapper",...o,children:[e,(0,jsx_runtime_namespaceObject.jsxs)(react_dialog_namespaceObject.Close,{className:(0,index_cjs_namespaceObject.buttonVariants)({className:["absolute top-2.5 right-2.5 size-7",t?.close],size:"icon",variant:"ghost"}),children:[(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.XIcon,{className:"size-4"}),(0,jsx_runtime_namespaceObject.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function DialogHeader({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,utils_cjs_namespaceObject.cn)("flex flex-col space-y-1.5 text-center sm:text-left",e),"data-slot":"dialog-header",...a})}function DialogBody({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("main",{className:(0,utils_cjs_namespaceObject.cn)("py-2",e),"data-slot":"dialog-body",...a})}function DialogFooter({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("footer",{className:(0,utils_cjs_namespaceObject.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),"data-slot":"dialog-footer",...a})}function DialogTitle({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Title,{className:(0,utils_cjs_namespaceObject.cn)("font-semibold text-lg leading-none tracking-tight",e),"data-slot":"dialog-title",...a})}function DialogDescription({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Description,{className:(0,utils_cjs_namespaceObject.cn)("text-gray-600 text-sm",e),"data-slot":"dialog-description",...a})}for(var __webpack_i__ in Dialog.displayName="Dialog",DialogTrigger.displayName="DialogTrigger",DialogPortal.displayName="DialogPortal",DialogClose.displayName="DialogClose",DialogOverlay.displayName="DialogOverlay",DialogContent.displayName="DialogContent",DialogHeader.displayName="DialogHeader",DialogBody.displayName="DialogBody",DialogFooter.displayName="DialogFooter",DialogTitle.displayName="DialogTitle",DialogDescription.displayName="DialogDescription",exports.Dialog=__webpack_exports__.Dialog,exports.DialogBody=__webpack_exports__.DialogBody,exports.DialogClose=__webpack_exports__.DialogClose,exports.DialogContent=__webpack_exports__.DialogContent,exports.DialogDescription=__webpack_exports__.DialogDescription,exports.DialogFooter=__webpack_exports__.DialogFooter,exports.DialogHeader=__webpack_exports__.DialogHeader,exports.DialogOverlay=__webpack_exports__.DialogOverlay,exports.DialogPortal=__webpack_exports__.DialogPortal,exports.DialogTitle=__webpack_exports__.DialogTitle,exports.DialogTrigger=__webpack_exports__.DialogTrigger,__webpack_exports__)-1===["Dialog","DialogBody","DialogClose","DialogContent","DialogDescription","DialogFooter","DialogHeader","DialogOverlay","DialogPortal","DialogTitle","DialogTrigger"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
2
|
-
import { ComponentProps } from 'react';
|
|
3
|
-
import { VariantProps } from '../lib/utils';
|
|
4
|
-
import { buttonVariants } from './button';
|
|
5
|
-
declare function Dialog(props: ComponentProps<typeof DialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare namespace Dialog {
|
|
7
|
-
var displayName: string;
|
|
8
|
-
}
|
|
9
|
-
declare function DialogTrigger(props: ComponentProps<typeof DialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
declare namespace DialogTrigger {
|
|
11
|
-
var displayName: string;
|
|
12
|
-
}
|
|
13
|
-
declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
declare namespace DialogPortal {
|
|
15
|
-
var displayName: string;
|
|
16
|
-
}
|
|
17
|
-
declare function DialogClose({ className, size, variant, ...props }: Omit<ComponentProps<typeof DialogPrimitive.Close>, 'ref'> & {
|
|
18
|
-
size?: VariantProps<typeof buttonVariants>['size'];
|
|
19
|
-
variant?: VariantProps<typeof buttonVariants>['variant'];
|
|
20
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
declare namespace DialogClose {
|
|
22
|
-
var displayName: string;
|
|
23
|
-
}
|
|
24
|
-
declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
declare namespace DialogOverlay {
|
|
26
|
-
var displayName: string;
|
|
27
|
-
}
|
|
28
|
-
declare function DialogContent({ children, className, classNames, ...props }: ComponentProps<typeof DialogPrimitive.Content> & {
|
|
29
|
-
classNames?: {
|
|
30
|
-
close?: string;
|
|
31
|
-
content?: string;
|
|
32
|
-
overlay?: string;
|
|
33
|
-
};
|
|
34
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
35
|
-
declare namespace DialogContent {
|
|
36
|
-
var displayName: string;
|
|
37
|
-
}
|
|
38
|
-
declare function DialogHeader({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
39
|
-
declare namespace DialogHeader {
|
|
40
|
-
var displayName: string;
|
|
41
|
-
}
|
|
42
|
-
declare function DialogBody({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
43
|
-
declare namespace DialogBody {
|
|
44
|
-
var displayName: string;
|
|
45
|
-
}
|
|
46
|
-
declare function DialogFooter({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
47
|
-
declare namespace DialogFooter {
|
|
48
|
-
var displayName: string;
|
|
49
|
-
}
|
|
50
|
-
declare function DialogTitle({ className, ...props }: ComponentProps<typeof DialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
51
|
-
declare namespace DialogTitle {
|
|
52
|
-
var displayName: string;
|
|
53
|
-
}
|
|
54
|
-
declare function DialogDescription({ className, ...props }: ComponentProps<typeof DialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
55
|
-
declare namespace DialogDescription {
|
|
56
|
-
var displayName: string;
|
|
57
|
-
}
|
|
58
|
-
export { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogBody, DialogFooter, DialogTitle, DialogDescription, DialogClose, DialogPortal, DialogOverlay, };
|
|
59
|
-
//# sourceMappingURL=dialog.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/components/dialog.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAA;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAM,YAAY,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAMzC,iBAAS,MAAM,CAAC,KAAK,EAAE,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,2CAEjE;kBAFQ,MAAM;;;AASf,iBAAS,aAAa,CAAC,KAAK,EAAE,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,2CAE3E;kBAFQ,aAAa;;;AAStB,iBAAS,YAAY,CAAC,EACpB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,MAAM,CAAC,2CAErD;kBAJQ,YAAY;;;AAWrB,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,IAAI,EACJ,OAAmB,EACnB,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG;IAC7D,IAAI,CAAC,EAAE,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAA;IAClD,OAAO,CAAC,EAAE,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC,SAAS,CAAC,CAAA;CACzD,2CAQA;kBAhBQ,WAAW;;;AAuBpB,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,2CAWtD;kBAdQ,aAAa;;;AAqBtB,iBAAS,aAAa,CAAC,EACrB,QAAQ,EACR,SAAS,EACT,UAAU,EACV,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,GAAG;IAClD,UAAU,CAAC,EAAE;QACX,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,OAAO,CAAC,EAAE,MAAM,CAAA;KACjB,CAAA;CACF,2CA2BA;kBAtCQ,aAAa;;;AA6CtB,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,2CAWnE;kBAXQ,YAAY;;;AAkBrB,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,2CAQjE;kBARQ,UAAU;;;AAenB,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,2CAWnE;kBAXQ,YAAY;;;AAkBrB,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,2CAW9C;kBAdQ,WAAW;;;AAqBpB,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,eAAe,CAAC,WAAW,CAAC,2CAQpD;kBAXQ,iBAAiB;;;AAkB1B,OAAO,EACL,MAAM,EACN,aAAa,EACb,aAAa,EACb,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,aAAa,GACd,CAAA"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,t)=>{for(var _ in t)__webpack_require__.o(t,_)&&!__webpack_require__.o(e,_)&&Object.defineProperty(e,_,{enumerable:!0,get:t[_]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{REGEXP_ONLY_CHARS:()=>external_input_otp_namespaceObject.REGEXP_ONLY_CHARS,InputOTP:()=>InputOTP,REGEXP_ONLY_DIGITS_AND_CHARS:()=>external_input_otp_namespaceObject.REGEXP_ONLY_DIGITS_AND_CHARS,InputOTPGroup:()=>InputOTPGroup,InputOTPSeparator:()=>InputOTPSeparator,InputOTPSlot:()=>InputOTPSlot,REGEXP_ONLY_DIGITS:()=>external_input_otp_namespaceObject.REGEXP_ONLY_DIGITS});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_namespaceObject=require("@phosphor-icons/react"),external_input_otp_namespaceObject=require("input-otp"),external_react_namespaceObject=require("react"),utils_cjs_namespaceObject=require("../lib/utils.cjs");function InputOTP({className:e,containerClassName:t,pattern:_,...a}){return(0,jsx_runtime_namespaceObject.jsx)(external_input_otp_namespaceObject.OTPInput,{"aria-label":"One-time password",className:(0,utils_cjs_namespaceObject.cn)("disabled:cursor-not-allowed",e),containerClassName:(0,utils_cjs_namespaceObject.cn)("flex items-center gap-2 has-[:disabled]:opacity-50",t),"data-slot":"input-otp",pattern:_||external_input_otp_namespaceObject.REGEXP_ONLY_DIGITS_AND_CHARS,...a})}function InputOTPGroup({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,utils_cjs_namespaceObject.cn)("flex items-center gap-1",e),"data-slot":"input-otp-group",role:"group",...t})}function InputOTPSlot({className:e,index:t,..._}){let{isActive:a,char:r,hasFakeCaret:p}=(0,external_react_namespaceObject.useContext)(external_input_otp_namespaceObject.OTPInputContext).slots[t];return(0,jsx_runtime_namespaceObject.jsxs)("div",{className:(0,utils_cjs_namespaceObject.cn)("relative flex h-12 w-11 items-center justify-center rounded border border-stroke border-y text-base shadow-sm transition-all data-[active=true]:z-10 data-[active=true]:ring-1 data-[active=true]:ring-ring",e),"data-active":a,"data-slot":"input-otp-slot",..._,children:[r,p&&(0,jsx_runtime_namespaceObject.jsx)("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:(0,jsx_runtime_namespaceObject.jsx)("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})}function InputOTPSeparator({...e}){return(0,jsx_runtime_namespaceObject.jsx)("div",{"data-slot":"input-otp-separator",...e,children:(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.MinusIcon,{})})}for(var __webpack_i__ in InputOTP.displayName="InputOTP",InputOTPGroup.displayName="InputOTPGroup",InputOTPSlot.displayName="InputOTPSlot",InputOTPSeparator.displayName="InputOTPSeparator",exports.InputOTP=__webpack_exports__.InputOTP,exports.InputOTPGroup=__webpack_exports__.InputOTPGroup,exports.InputOTPSeparator=__webpack_exports__.InputOTPSeparator,exports.InputOTPSlot=__webpack_exports__.InputOTPSlot,exports.REGEXP_ONLY_CHARS=__webpack_exports__.REGEXP_ONLY_CHARS,exports.REGEXP_ONLY_DIGITS=__webpack_exports__.REGEXP_ONLY_DIGITS,exports.REGEXP_ONLY_DIGITS_AND_CHARS=__webpack_exports__.REGEXP_ONLY_DIGITS_AND_CHARS,__webpack_exports__)-1===["InputOTP","InputOTPGroup","InputOTPSeparator","InputOTPSlot","REGEXP_ONLY_CHARS","REGEXP_ONLY_DIGITS","REGEXP_ONLY_DIGITS_AND_CHARS"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { OTPInput } from 'input-otp';
|
|
2
|
-
import { ComponentProps } from 'react';
|
|
3
|
-
declare function InputOTP({ className, containerClassName, pattern, ...props }: ComponentProps<typeof OTPInput>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare namespace InputOTP {
|
|
5
|
-
var displayName: string;
|
|
6
|
-
}
|
|
7
|
-
declare function InputOTPGroup({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare namespace InputOTPGroup {
|
|
9
|
-
var displayName: string;
|
|
10
|
-
}
|
|
11
|
-
declare function InputOTPSlot({ className, index, ...props }: ComponentProps<'div'> & {
|
|
12
|
-
index: number;
|
|
13
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
declare namespace InputOTPSlot {
|
|
15
|
-
var displayName: string;
|
|
16
|
-
}
|
|
17
|
-
declare function InputOTPSeparator({ ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
declare namespace InputOTPSeparator {
|
|
19
|
-
var displayName: string;
|
|
20
|
-
}
|
|
21
|
-
export { REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS, } from 'input-otp';
|
|
22
|
-
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };
|
|
23
|
-
//# sourceMappingURL=input-otp.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-otp.d.ts","sourceRoot":"","sources":["../../../src/components/input-otp.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,QAAQ,EAGT,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,cAAc,EAAc,MAAM,OAAO,CAAA;AAOlD,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,kBAAkB,EAClB,OAAO,EACP,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,QAAQ,CAAC,2CAcjC;kBAnBQ,QAAQ;;;AA0BjB,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,2CASpE;kBATQ,aAAa;;;AAgBtB,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG;IACzB,KAAK,EAAE,MAAM,CAAA;CACd,2CAsBA;kBA5BQ,YAAY;;;AAmCrB,iBAAS,iBAAiB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,2CAM7D;kBANQ,iBAAiB;;;AAS1B,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,4BAA4B,GAC7B,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,iBAAiB,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,a)=>{for(var _ in a)__webpack_require__.o(a,_)&&!__webpack_require__.o(e,_)&&Object.defineProperty(e,_,{enumerable:!0,get:a[_]})},__webpack_require__.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{InputPassword:()=>InputPassword});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_namespaceObject=require("@phosphor-icons/react"),external_react_namespaceObject=require("react"),input_cjs_namespaceObject=require("../primitive/input.cjs"),external_spinner_cjs_namespaceObject=require("./spinner.cjs"),index_cjs_namespaceObject=require("./button/index.cjs"),external_input_cjs_namespaceObject=require("./input.cjs"),{input:e,root:a}=(0,external_input_cjs_namespaceObject.inputVariants)();function InputPassword({className:_,disabled:s,loaderPosition:r,loading:t,prefix:c,readOnly:n,spinner:p,suffix:i,...o}){let[u,l]=(0,external_react_namespaceObject.useState)("password"),b=(0,external_react_namespaceObject.useCallback)(()=>{l(e=>"password"===e?"text":"password")},[]);return(0,jsx_runtime_namespaceObject.jsxs)(input_cjs_namespaceObject.Root,{className:a({className:[!i&&"pr-1.5",_]}),"data-slot":"input-password",disabled:s,loaderPosition:r,loading:t,prefix:c,readOnly:n,spinner:p||(0,jsx_runtime_namespaceObject.jsx)(external_spinner_cjs_namespaceObject.Spinner,{}),suffix:i,children:[(0,jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Field,{autoCapitalize:"none",className:e(),"data-slot":"input-password-item",type:u,...o}),(0,jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.Button,{"aria-label":"password"===u?"Show password":"Hide password",className:"full size-8 rounded-full focus-visible:ring-0","data-slot":"input-password-toggle",disabled:s,prefix:"password"===u?(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.EyeSlashIcon,{className:"size-6"}):(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.EyeIcon,{className:"size-6"}),size:"icon",variant:"ghost",onClick:b})]})}for(var __webpack_i__ in InputPassword.displayName="InputPassword",exports.InputPassword=__webpack_exports__.InputPassword,__webpack_exports__)-1===["InputPassword"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ComponentProps, JSX } from 'react';
|
|
2
|
-
import * as InputPrimitive from '../primitive/input';
|
|
3
|
-
import { VariantProps } from '../lib/utils';
|
|
4
|
-
import { inputVariants } from './input';
|
|
5
|
-
declare function InputPassword({ className, disabled, loaderPosition, loading, prefix, readOnly, spinner, suffix, ...props }: ComponentProps<typeof InputPrimitive.Root> & Omit<ComponentProps<typeof InputPrimitive.Field>, 'prefix' | 'type'> & VariantProps<typeof inputVariants>): JSX.Element;
|
|
6
|
-
declare namespace InputPassword {
|
|
7
|
-
var displayName: string;
|
|
8
|
-
}
|
|
9
|
-
export { InputPassword };
|
|
10
|
-
//# sourceMappingURL=input-password.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-password.d.ts","sourceRoot":"","sources":["../../../src/components/input-password.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,cAAc,EACd,GAAG,EAIJ,MAAM,OAAO,CAAA;AAEd,OAAO,KAAK,cAAc,MAAM,mBAAmB,CAAA;AAGnD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAE3C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAYvC,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,QAAQ,EACR,cAAc,EACd,OAAO,EACP,MAAM,EACN,QAAQ,EACR,OAAO,EACP,MAAM,EACN,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC,GAC3C,IAAI,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,KAAK,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC,GACpE,YAAY,CAAC,OAAO,aAAa,CAAC,GAAG,GAAG,CAAC,OAAO,CA8CjD;kBA1DQ,aAAa;;;AAiEtB,OAAO,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var t in _)__webpack_require__.o(_,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:_[t]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Input:()=>Input,inputVariants:()=>inputVariants});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),utils_cjs_namespaceObject=require("../lib/utils.cjs"),input_cjs_namespaceObject=require("../primitive/input.cjs"),external_spinner_cjs_namespaceObject=require("./spinner.cjs"),inputVariants=(0,utils_cjs_namespaceObject.tv)({slots:{root:"flex h-10 w-full items-center gap-4 rounded-md border border-input bg-background px-4 shadow-xs placeholder:text-muted-foreground focus-within:border-primary focus-within:outline-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50",input:"peer h-full w-full flex-1 overflow-hidden bg-transparent text-sm outline-none placeholder:text-muted-foreground"}}),{input:e,root:_}=inputVariants();function Input({className:t,disabled:r,loaderPosition:a,loading:n,prefix:i,readOnly:p,spinner:s,suffix:c,classNames:u,...o}){return(0,jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Root,{className:_({className:[t,u?.wrapper]}),"data-slot":"input",disabled:r,loaderPosition:a,loading:n,prefix:i,readOnly:p,spinner:s||(0,jsx_runtime_namespaceObject.jsx)(external_spinner_cjs_namespaceObject.Spinner,{}),suffix:c,children:(0,jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Field,{className:e({className:u?.input}),"data-slot":"input-item",...o})})}for(var __webpack_i__ in Input.displayName="Input",exports.Input=__webpack_exports__.Input,exports.inputVariants=__webpack_exports__.inputVariants,__webpack_exports__)-1===["Input","inputVariants"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from 'react';
|
|
2
|
-
import { VariantProps } from '../lib/utils';
|
|
3
|
-
import * as InputPrimitive from '../primitive/input';
|
|
4
|
-
declare const inputVariants: import("tailwind-variants").TVReturnType<{
|
|
5
|
-
[key: string]: {
|
|
6
|
-
[key: string]: import("tailwind-variants").ClassValue | {
|
|
7
|
-
input?: import("tailwind-variants").ClassValue;
|
|
8
|
-
root?: import("tailwind-variants").ClassValue;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
} | {
|
|
12
|
-
[x: string]: {
|
|
13
|
-
[x: string]: import("tailwind-variants").ClassValue | {
|
|
14
|
-
input?: import("tailwind-variants").ClassValue;
|
|
15
|
-
root?: import("tailwind-variants").ClassValue;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
} | {}, {
|
|
19
|
-
root: string;
|
|
20
|
-
input: string;
|
|
21
|
-
}, undefined, {
|
|
22
|
-
[key: string]: {
|
|
23
|
-
[key: string]: import("tailwind-variants").ClassValue | {
|
|
24
|
-
input?: import("tailwind-variants").ClassValue;
|
|
25
|
-
root?: import("tailwind-variants").ClassValue;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
} | {}, {
|
|
29
|
-
root: string;
|
|
30
|
-
input: string;
|
|
31
|
-
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
32
|
-
root: string;
|
|
33
|
-
input: string;
|
|
34
|
-
}, undefined, unknown, unknown, undefined>>;
|
|
35
|
-
declare function Input({ className, disabled, loaderPosition, loading, prefix, readOnly, spinner, suffix, classNames, ...props }: ComponentProps<typeof InputPrimitive.Root> & Omit<ComponentProps<typeof InputPrimitive.Field>, 'prefix' | 'type'> & VariantProps<typeof inputVariants> & {
|
|
36
|
-
type?: string;
|
|
37
|
-
classNames?: {
|
|
38
|
-
wrapper?: string;
|
|
39
|
-
input?: string;
|
|
40
|
-
};
|
|
41
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
42
|
-
declare namespace Input {
|
|
43
|
-
var displayName: string;
|
|
44
|
-
}
|
|
45
|
-
export { Input, inputVariants };
|
|
46
|
-
//# sourceMappingURL=input.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/components/input.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,EAAM,YAAY,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,KAAK,cAAc,MAAM,mBAAmB,CAAA;AAOnD,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAMjB,CAAA;AAQF,iBAAS,KAAK,CAAC,EACb,SAAS,EACT,QAAQ,EACR,cAAc,EACd,OAAO,EACP,MAAM,EACN,QAAQ,EACR,OAAO,EACP,MAAM,EACN,UAAU,EACV,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC,GAC3C,IAAI,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,KAAK,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC,GACpE,YAAY,CAAC,OAAO,aAAa,CAAC,GAAG;IACnC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE;QACX,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,KAAK,CAAC,EAAE,MAAM,CAAA;KACf,CAAA;CACF,2CAoBF;kBAvCQ,KAAK;;;AA0Cd,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,r)=>{for(var _ in r)__webpack_require__.o(r,_)&&!__webpack_require__.o(e,_)&&Object.defineProperty(e,_,{enumerable:!0,get:r[_]})},__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Spinner:()=>Spinner});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_visually_hidden_namespaceObject=require("@radix-ui/react-visually-hidden"),utils_cjs_namespaceObject=require("../lib/utils.cjs"),SPINNER_COUNT=8;function Spinner({children:e,className:r,loading:_=!0,...n}){if(!_)return e;let t=(0,jsx_runtime_namespaceObject.jsx)("span",{className:(0,utils_cjs_namespaceObject.cn)("relative flex size-4 items-center justify-center opacity-60",r),...n,children:Array.from({length:8},(e,r)=>(0,jsx_runtime_namespaceObject.jsx)("span",{className:(0,utils_cjs_namespaceObject.cn)("before:fade-out-25 before:animation-repeat-infinite before:animation-delay-(--spinner-delay) before:animation-duration-(--spinner-duration) absolute h-full rotate-(--spinner-rotate) before:block before:h-1/3 before:w-full before:animate-out before:rounded-full before:bg-current"),style:{"--spinner-delay":`-${((8-r)*100).toString()}ms`,"--spinner-duration":"800ms","--spinner-rotate":`${(45*r).toString()}deg`,width:"12.5%"}},r))});return void 0===e?t:(0,jsx_runtime_namespaceObject.jsxs)("span",{className:"relative",children:[(0,jsx_runtime_namespaceObject.jsx)("span",{"aria-hidden":!0,className:"invisible contents",children:e}),(0,jsx_runtime_namespaceObject.jsx)(react_visually_hidden_namespaceObject.VisuallyHidden,{children:e}),(0,jsx_runtime_namespaceObject.jsx)("span",{className:"absolute inset-0 flex items-center justify-center",children:t})]})}for(var __webpack_i__ in exports.Spinner=__webpack_exports__.Spinner,__webpack_exports__)-1===["Spinner"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../../../src/components/spinner.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAA;AASrE,iBAAS,OAAO,CAAC,EACf,QAAQ,EACR,SAAS,EACT,OAAc,EACd,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,MAAM,CAAC,GAAG;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,GAAG,SAAS,CA+CZ;AAMD,OAAO,EAAE,OAAO,EAAE,CAAA"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ThemeProvider as NextThemesProvider } from 'next-themes';
|
|
2
|
-
import { ComponentProps } from 'react';
|
|
3
|
-
declare function ThemeProvider({ children, ...props }: ComponentProps<typeof NextThemesProvider>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export { ThemeProvider };
|
|
5
|
-
//# sourceMappingURL=theme-provider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"theme-provider.d.ts","sourceRoot":"","sources":["../../../src/components/theme-provider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,IAAI,kBAAkB,EAAE,MAAM,aAAa,CAAA;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAEtC,iBAAS,aAAa,CAAC,EACrB,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,kBAAkB,CAAC,2CAY3C;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/primitive/input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AACpD,OAAO,KAAK,EACV,cAAc,EACd,GAAG,EAEH,iBAAiB,EACjB,SAAS,EAEV,MAAM,OAAO,CAAA;AAYd;;GAEG;AACH,KAAK,WAAW,CAAC,CAAC,IAAI,CAAC,GAAG;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAA;CACrB,CAAA;AAED,QAAA,MAA2B,gBAAgB,+CAAkC,CAAA;AAyB7E;;GAEG;AACH,UAAU,gBAAgB;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAA;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAA;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAA;CACnB;AAED;;GAEG;AACH,UAAU,kBAAkB;IAC1B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,cAAc,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAA;IAEpC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED;;GAEG;AACH,KAAK,UAAU,GAAG,iBAAiB,CAAC,kBAAkB,GAAG,gBAAgB,CAAC,CAAA;AAE1E,iBAAS,KAAK,CAAC,UAAU,EAAE,WAAW,CAAC,UAAU,CAAC,GAAG,GAAG,CAAC,OAAO,CA2F/D;AAQD;;GAEG;AACH,KAAK,eAAe,GAAG,cAAc,CAAC,OAAO,CAAC,CAAA;AAE9C,iBAAS,UAAU,CAAC,EAClB,YAAY,EACZ,GAAG,KAAK,EACT,EAAE,WAAW,CAAC,eAAe,CAAC,GAAG,GAAG,CAAC,OAAO,CAuB5C;AAMD,OAAO,EACL,gBAAgB,EAChB,UAAU,IAAI,KAAK,EACnB,KAAK,EACL,UAAU,EACV,KAAK,IAAI,IAAI,GACd,CAAA"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
2
|
-
import { ComponentProps } from 'react';
|
|
3
|
-
import { VariantProps } from '../lib/utils';
|
|
4
|
-
import { buttonVariants } from './button';
|
|
5
|
-
declare function Dialog(props: ComponentProps<typeof DialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare namespace Dialog {
|
|
7
|
-
var displayName: string;
|
|
8
|
-
}
|
|
9
|
-
declare function DialogTrigger(props: ComponentProps<typeof DialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
declare namespace DialogTrigger {
|
|
11
|
-
var displayName: string;
|
|
12
|
-
}
|
|
13
|
-
declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
declare namespace DialogPortal {
|
|
15
|
-
var displayName: string;
|
|
16
|
-
}
|
|
17
|
-
declare function DialogClose({ className, size, variant, ...props }: Omit<ComponentProps<typeof DialogPrimitive.Close>, 'ref'> & {
|
|
18
|
-
size?: VariantProps<typeof buttonVariants>['size'];
|
|
19
|
-
variant?: VariantProps<typeof buttonVariants>['variant'];
|
|
20
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
declare namespace DialogClose {
|
|
22
|
-
var displayName: string;
|
|
23
|
-
}
|
|
24
|
-
declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
declare namespace DialogOverlay {
|
|
26
|
-
var displayName: string;
|
|
27
|
-
}
|
|
28
|
-
declare function DialogContent({ children, className, classNames, ...props }: ComponentProps<typeof DialogPrimitive.Content> & {
|
|
29
|
-
classNames?: {
|
|
30
|
-
close?: string;
|
|
31
|
-
content?: string;
|
|
32
|
-
overlay?: string;
|
|
33
|
-
};
|
|
34
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
35
|
-
declare namespace DialogContent {
|
|
36
|
-
var displayName: string;
|
|
37
|
-
}
|
|
38
|
-
declare function DialogHeader({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
39
|
-
declare namespace DialogHeader {
|
|
40
|
-
var displayName: string;
|
|
41
|
-
}
|
|
42
|
-
declare function DialogBody({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
43
|
-
declare namespace DialogBody {
|
|
44
|
-
var displayName: string;
|
|
45
|
-
}
|
|
46
|
-
declare function DialogFooter({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
47
|
-
declare namespace DialogFooter {
|
|
48
|
-
var displayName: string;
|
|
49
|
-
}
|
|
50
|
-
declare function DialogTitle({ className, ...props }: ComponentProps<typeof DialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
51
|
-
declare namespace DialogTitle {
|
|
52
|
-
var displayName: string;
|
|
53
|
-
}
|
|
54
|
-
declare function DialogDescription({ className, ...props }: ComponentProps<typeof DialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
55
|
-
declare namespace DialogDescription {
|
|
56
|
-
var displayName: string;
|
|
57
|
-
}
|
|
58
|
-
export { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogBody, DialogFooter, DialogTitle, DialogDescription, DialogClose, DialogPortal, DialogOverlay, };
|
|
59
|
-
//# sourceMappingURL=dialog.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/components/dialog.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAA;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAM,YAAY,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAMzC,iBAAS,MAAM,CAAC,KAAK,EAAE,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,2CAEjE;kBAFQ,MAAM;;;AASf,iBAAS,aAAa,CAAC,KAAK,EAAE,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,2CAE3E;kBAFQ,aAAa;;;AAStB,iBAAS,YAAY,CAAC,EACpB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,MAAM,CAAC,2CAErD;kBAJQ,YAAY;;;AAWrB,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,IAAI,EACJ,OAAmB,EACnB,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG;IAC7D,IAAI,CAAC,EAAE,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAA;IAClD,OAAO,CAAC,EAAE,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC,SAAS,CAAC,CAAA;CACzD,2CAQA;kBAhBQ,WAAW;;;AAuBpB,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,2CAWtD;kBAdQ,aAAa;;;AAqBtB,iBAAS,aAAa,CAAC,EACrB,QAAQ,EACR,SAAS,EACT,UAAU,EACV,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,GAAG;IAClD,UAAU,CAAC,EAAE;QACX,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,OAAO,CAAC,EAAE,MAAM,CAAA;KACjB,CAAA;CACF,2CA2BA;kBAtCQ,aAAa;;;AA6CtB,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,2CAWnE;kBAXQ,YAAY;;;AAkBrB,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,2CAQjE;kBARQ,UAAU;;;AAenB,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,2CAWnE;kBAXQ,YAAY;;;AAkBrB,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,2CAW9C;kBAdQ,WAAW;;;AAqBpB,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,eAAe,CAAC,WAAW,CAAC,2CAQpD;kBAXQ,iBAAiB;;;AAkB1B,OAAO,EACL,MAAM,EACN,aAAa,EACb,aAAa,EACb,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,aAAa,GACd,CAAA"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
import{jsx as a,jsxs as t}from"react/jsx-runtime";import{XIcon as e}from"@phosphor-icons/react";import{Close as o,Content as l,Description as i,Overlay as s,Portal as r,Root as n,Title as d,Trigger as c}from"@radix-ui/react-dialog";import{cn as g}from"../lib/utils.js";import{buttonVariants as m}from"./button/index.js";function p(t){return a(n,{"data-slot":"dialog",...t})}function u(t){return a(c,{"data-slot":"dialog-trigger",...t})}function f({...t}){return a(r,{"data-slot":"dialog-portal",...t})}function y({className:t,size:e,variant:l="outline",...i}){return a(o,{className:m({className:t,size:e,variant:l}),"data-slot":"dialog-close",...i})}function D({className:t,...e}){return a(s,{className:g("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in",t),"data-slot":"dialog-overlay",...e})}function N({children:i,className:s,classNames:r,...n}){return t(f,{children:[a(D,{className:r?.overlay}),t(l,{className:g("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-lg sm:rounded-lg",s,r?.content),"data-slot":"dialog-content-wrapper",...n,children:[i,t(o,{className:m({className:["absolute top-2.5 right-2.5 size-7",r?.close],size:"icon",variant:"ghost"}),children:[a(e,{className:"size-4"}),a("span",{className:"sr-only",children:"Close"})]})]})]})}function x({className:t,...e}){return a("div",{className:g("flex flex-col space-y-1.5 text-center sm:text-left",t),"data-slot":"dialog-header",...e})}function h({className:t,...e}){return a("main",{className:g("py-2",t),"data-slot":"dialog-body",...e})}function b({className:t,...e}){return a("footer",{className:g("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),"data-slot":"dialog-footer",...e})}function v({className:t,...e}){return a(d,{className:g("font-semibold text-lg leading-none tracking-tight",t),"data-slot":"dialog-title",...e})}function z({className:t,...e}){return a(i,{className:g("text-gray-600 text-sm",t),"data-slot":"dialog-description",...e})}p.displayName="Dialog",u.displayName="DialogTrigger",f.displayName="DialogPortal",y.displayName="DialogClose",D.displayName="DialogOverlay",N.displayName="DialogContent",x.displayName="DialogHeader",h.displayName="DialogBody",b.displayName="DialogFooter",v.displayName="DialogTitle",z.displayName="DialogDescription";export{p as Dialog,h as DialogBody,y as DialogClose,N as DialogContent,z as DialogDescription,b as DialogFooter,x as DialogHeader,D as DialogOverlay,f as DialogPortal,v as DialogTitle,u as DialogTrigger};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { OTPInput } from 'input-otp';
|
|
2
|
-
import { ComponentProps } from 'react';
|
|
3
|
-
declare function InputOTP({ className, containerClassName, pattern, ...props }: ComponentProps<typeof OTPInput>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare namespace InputOTP {
|
|
5
|
-
var displayName: string;
|
|
6
|
-
}
|
|
7
|
-
declare function InputOTPGroup({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare namespace InputOTPGroup {
|
|
9
|
-
var displayName: string;
|
|
10
|
-
}
|
|
11
|
-
declare function InputOTPSlot({ className, index, ...props }: ComponentProps<'div'> & {
|
|
12
|
-
index: number;
|
|
13
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
declare namespace InputOTPSlot {
|
|
15
|
-
var displayName: string;
|
|
16
|
-
}
|
|
17
|
-
declare function InputOTPSeparator({ ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
declare namespace InputOTPSeparator {
|
|
19
|
-
var displayName: string;
|
|
20
|
-
}
|
|
21
|
-
export { REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS, } from 'input-otp';
|
|
22
|
-
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };
|
|
23
|
-
//# sourceMappingURL=input-otp.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-otp.d.ts","sourceRoot":"","sources":["../../../src/components/input-otp.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,QAAQ,EAGT,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,cAAc,EAAc,MAAM,OAAO,CAAA;AAOlD,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,kBAAkB,EAClB,OAAO,EACP,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,QAAQ,CAAC,2CAcjC;kBAnBQ,QAAQ;;;AA0BjB,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,2CASpE;kBATQ,aAAa;;;AAgBtB,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG;IACzB,KAAK,EAAE,MAAM,CAAA;CACd,2CAsBA;kBA5BQ,YAAY;;;AAmCrB,iBAAS,iBAAiB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,2CAM7D;kBANQ,iBAAiB;;;AAS1B,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,4BAA4B,GAC7B,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,iBAAiB,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
import{jsx as t,jsxs as e}from"react/jsx-runtime";import{MinusIcon as a}from"@phosphor-icons/react";import{OTPInput as r,OTPInputContext as o,REGEXP_ONLY_CHARS as i,REGEXP_ONLY_DIGITS as n,REGEXP_ONLY_DIGITS_AND_CHARS as s}from"input-otp";import{useContext as p}from"react";import{cn as l}from"../lib/utils.js";function u({className:e,containerClassName:a,pattern:o,...i}){return t(r,{"aria-label":"One-time password",className:l("disabled:cursor-not-allowed",e),containerClassName:l("flex items-center gap-2 has-[:disabled]:opacity-50",a),"data-slot":"input-otp",pattern:o||s,...i})}function d({className:e,...a}){return t("div",{className:l("flex items-center gap-1",e),"data-slot":"input-otp-group",role:"group",...a})}function c({className:a,index:r,...i}){let{isActive:n,char:s,hasFakeCaret:u}=p(o).slots[r];return e("div",{className:l("relative flex h-12 w-11 items-center justify-center rounded border border-stroke border-y text-base shadow-sm transition-all data-[active=true]:z-10 data-[active=true]:ring-1 data-[active=true]:ring-ring",a),"data-active":n,"data-slot":"input-otp-slot",...i,children:[s,u&&t("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:t("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})}function m({...e}){return t("div",{"data-slot":"input-otp-separator",...e,children:t(a,{})})}u.displayName="InputOTP",d.displayName="InputOTPGroup",c.displayName="InputOTPSlot",m.displayName="InputOTPSeparator";export{u as InputOTP,d as InputOTPGroup,m as InputOTPSeparator,c as InputOTPSlot,i as REGEXP_ONLY_CHARS,n as REGEXP_ONLY_DIGITS,s as REGEXP_ONLY_DIGITS_AND_CHARS};
|