@machinerd/js-module 0.2.4 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import * as react0 from "react";
2
2
  import React$1, { ComponentProps, HTMLAttributes } from "react";
3
3
  import useEmblaCarousel, { UseEmblaCarouselType } from "embla-carousel-react";
4
- import * as react_jsx_runtime0 from "react/jsx-runtime";
4
+ import * as react_jsx_runtime2 from "react/jsx-runtime";
5
5
 
6
6
  //#region src/ui/client-only/carousel/carousel-context.d.ts
7
7
  type CarouselApi = UseEmblaCarouselType[1];
@@ -57,33 +57,33 @@ declare function Carousel({
57
57
  className,
58
58
  children,
59
59
  ...props
60
- }: CarouselProps$1): react_jsx_runtime0.JSX.Element;
60
+ }: CarouselProps$1): react_jsx_runtime2.JSX.Element;
61
61
  //#endregion
62
62
  //#region src/ui/client-only/carousel/carousel-wrapper.d.ts
63
63
  declare function CarouselWrapper({
64
64
  className,
65
65
  ...props
66
- }: React$1.ComponentProps<'div'>): react_jsx_runtime0.JSX.Element;
66
+ }: React$1.ComponentProps<'div'>): react_jsx_runtime2.JSX.Element;
67
67
  //#endregion
68
68
  //#region src/ui/client-only/carousel/carousel-item.d.ts
69
69
  declare function CarouselItem({
70
70
  className,
71
71
  ...props
72
- }: React$1.ComponentProps<'div'>): react_jsx_runtime0.JSX.Element;
72
+ }: React$1.ComponentProps<'div'>): react_jsx_runtime2.JSX.Element;
73
73
  //#endregion
74
74
  //#region src/ui/client-only/carousel/carousel-previous.d.ts
75
75
  declare function CarouselPrevious({
76
76
  children,
77
77
  className,
78
78
  ...props
79
- }: React$1.ComponentProps<'button'>): react_jsx_runtime0.JSX.Element;
79
+ }: React$1.ComponentProps<'button'>): react_jsx_runtime2.JSX.Element;
80
80
  //#endregion
81
81
  //#region src/ui/client-only/carousel/carousel-next.d.ts
82
82
  declare function CarouselNext({
83
83
  children,
84
84
  className,
85
85
  ...props
86
- }: React$1.ComponentProps<'button'>): react_jsx_runtime0.JSX.Element;
86
+ }: React$1.ComponentProps<'button'>): react_jsx_runtime2.JSX.Element;
87
87
  //#endregion
88
88
  //#region src/ui/client-only/tooltip/tooltip-container.d.ts
89
89
  type SubPlacement = 'start' | 'end';
@@ -1,6 +1,6 @@
1
- import * as react4 from "react";
1
+ import * as react0 from "react";
2
2
  import React$1, { ComponentProps, HTMLAttributes } from "react";
3
- import * as react_jsx_runtime3 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
4
4
  import useEmblaCarousel, { UseEmblaCarouselType } from "embla-carousel-react";
5
5
 
6
6
  //#region src/ui/client-only/carousel/carousel-context.d.ts
@@ -57,33 +57,33 @@ declare function Carousel({
57
57
  className,
58
58
  children,
59
59
  ...props
60
- }: CarouselProps$1): react_jsx_runtime3.JSX.Element;
60
+ }: CarouselProps$1): react_jsx_runtime0.JSX.Element;
61
61
  //#endregion
62
62
  //#region src/ui/client-only/carousel/carousel-wrapper.d.ts
63
63
  declare function CarouselWrapper({
64
64
  className,
65
65
  ...props
66
- }: React$1.ComponentProps<'div'>): react_jsx_runtime3.JSX.Element;
66
+ }: React$1.ComponentProps<'div'>): react_jsx_runtime0.JSX.Element;
67
67
  //#endregion
68
68
  //#region src/ui/client-only/carousel/carousel-item.d.ts
69
69
  declare function CarouselItem({
70
70
  className,
71
71
  ...props
72
- }: React$1.ComponentProps<'div'>): react_jsx_runtime3.JSX.Element;
72
+ }: React$1.ComponentProps<'div'>): react_jsx_runtime0.JSX.Element;
73
73
  //#endregion
74
74
  //#region src/ui/client-only/carousel/carousel-previous.d.ts
75
75
  declare function CarouselPrevious({
76
76
  children,
77
77
  className,
78
78
  ...props
79
- }: React$1.ComponentProps<'button'>): react_jsx_runtime3.JSX.Element;
79
+ }: React$1.ComponentProps<'button'>): react_jsx_runtime0.JSX.Element;
80
80
  //#endregion
81
81
  //#region src/ui/client-only/carousel/carousel-next.d.ts
82
82
  declare function CarouselNext({
83
83
  children,
84
84
  className,
85
85
  ...props
86
- }: React$1.ComponentProps<'button'>): react_jsx_runtime3.JSX.Element;
86
+ }: React$1.ComponentProps<'button'>): react_jsx_runtime0.JSX.Element;
87
87
  //#endregion
88
88
  //#region src/ui/client-only/tooltip/tooltip-container.d.ts
89
89
  type SubPlacement = 'start' | 'end';
@@ -131,6 +131,6 @@ interface TooltipContainerProps extends HTMLAttributes<HTMLDivElement> {
131
131
  * @param defaultOpen - Default open state of the tooltip
132
132
  * @param placement - Placement of the tooltip
133
133
  */
134
- declare const TooltipContainer: react4.ForwardRefExoticComponent<TooltipContainerProps & react4.RefAttributes<HTMLDivElement>>;
134
+ declare const TooltipContainer: react0.ForwardRefExoticComponent<TooltipContainerProps & react0.RefAttributes<HTMLDivElement>>;
135
135
  //#endregion
136
136
  export { Carousel, type CarouselApi, type CarouselContextProps, CarouselItem, CarouselNext, type CarouselOptions, type CarouselPlugin, CarouselPrevious, type CarouselProps, CarouselWrapper, TooltipContainer as Tooltip, type TooltipContainerProps as TooltipProps };
package/dist/ui/index.cjs CHANGED
@@ -1 +1 @@
1
- const e=require(`../chunk-Bmb41Sf3.cjs`),t=require(`../util-CDkao6z3.cjs`);let n=require(`clsx`);n=e.t(n);let r=require(`react`);r=e.t(r);let i=require(`react/jsx-runtime`),a=require(`class-variance-authority`);function o({className:e,items:t,render:a,...o}){return(0,i.jsx)(`nav`,{"data-komc":!0,className:(0,n.default)(`komc:fixed komc:bottom-0 komc:left-0 komc:right-0`,`komc:border-t komc:border-neutral-200 komc:bg-white komc:z-10`,e),...o,children:(0,i.jsx)(`div`,{className:`komc:grid komc:min-h-15`,style:{gridTemplateColumns:`repeat(${t.length}, 1fr)`},children:t.map((e,t)=>(0,i.jsx)(r.default.Fragment,{children:a(e)},t))})})}const s=(0,a.cva)(t.f(`komc:inline-flex komc:justify-center komc:items-center komc:w-full`,`komc:transition-colors komc:duration-200 komc:relative`,`komc:*:transition-colors komc:*:duration-200`,`komc:disabled:cursor-default komc:disabled:opacity-50 komc:disabled:pointer-events-none`,`komc:whitespace-nowrap komc:shrink-0 komc:outline-none`),{variants:{size:{xs:`komc:h-7.5`,sm:`komc:h-8`,base:`komc:h-9`,md:`komc:h-10`,lg:`komc:h-11`,xl:`komc:h-12`,"2xl":`komc:h-13`,"3xl":`komc:h-14`},gap:{none:`komc:gap-0`,xs:`komc:gap-1`,sm:`komc:gap-2`,md:`komc:gap-3`,lg:`komc:gap-4`,xl:`komc:gap-5`},outline:{line:`komc:border`,solid:`komc:border-transparent`,clear:`komc:border-none`,dashed:`komc:border-dashed`,dotted:`komc:border-dotted`},rounded:{none:`komc:rounded-none`,sm:`komc:rounded-sm`,md:`komc:rounded-md`,lg:`komc:rounded-lg`,xl:`komc:rounded-xl`,"2xl":`komc:rounded-2xl`,"2.5xl":`komc:rounded-[20px]`,"3xl":`komc:rounded-3xl`,full:`komc:rounded-full`},variant:{default:``,ghost:`komc:bg-transparent komc:text-neutral-900`,white:`komc:bg-white komc:text-neutral-900 komc:hover:bg-neutral-100`,blue:`komc:bg-blue-500 komc:text-white komc:hover:bg-blue-600`,night:`komc:bg-[#2c5cb7] komc:text-white komc:hover:bg-[#26539F]`,charcoal:`komc:bg-[#36454F] komc:text-white komc:hover:bg-[#2E3A43]`,slate:`komc:bg-[#4A5565] komc:text-white komc:hover:bg-[#424A57]`,red:`komc:bg-[#C8313A] komc:text-white komc:hover:bg-[#B02B33]`,yellow:`komc:bg-[#E7FF14] komc:text-black komc:hover:bg-[#D4E600]`,black:`komc:bg-[rgb(95,95,96)] komc:text-white komc:hover:bg-[rgb(76,76,77)] komc:active:bg-[rgb(76,76,77)]`}},defaultVariants:{size:void 0,outline:void 0,rounded:void 0,variant:void 0}}),c=(0,r.forwardRef)(({children:e=`button`,type:t=`button`,size:n=`md`,gap:r=`sm`,outline:a=`line`,rounded:o=`sm`,variant:c=`blue`,className:l,...u},d)=>(0,i.jsx)(`button`,{ref:d,type:t,"data-komc":!0,className:s({size:n,outline:a,gap:r,rounded:o,variant:c,className:l}),...u,children:e}));var l=c;function u({condition:e,wrapper:t,children:n}){return e?t(n):n}const d=(0,a.cva)(`komc:flex komc:flex-col komc:w-full komc:mx-auto`,{variants:{maxWidth:{none:``,xs:`komc:max-w-xs`,sm:`komc:max-w-sm`,md:`komc:max-w-md`,lg:`komc:max-w-lg`,xl:`komc:max-w-xl`,"2xl":`komc:max-w-2xl`,"3xl":`komc:max-w-3xl`,"4xl":`komc:max-w-4xl`,"5xl":`komc:max-w-5xl`,"6xl":`komc:max-w-6xl`,"7xl":`komc:max-w-7xl`,full:`komc:max-w-full`}},defaultVariants:{maxWidth:`full`}});function f({className:e,children:t,maxWidth:r,...a}){return(0,i.jsx)(`footer`,{"data-komc":!0,className:(0,n.default)(`komc:block komc:w-full komc:h-full`,`komc:bg-white komc:border-t komc:border-neutral-200`,e),...a,children:(0,i.jsx)(`div`,{className:d({maxWidth:r}),children:t})})}const p=(0,a.cva)(t.f(`komc:flex komc:items-center`,`komc:mx-auto komc:min-h-10`),{variants:{maxWidth:{none:``,sm:`komc:max-w-sm`,md:`komc:max-w-md`,lg:`komc:max-w-lg`,xl:`komc:max-w-xl`,"2xl":`komc:max-w-2xl`,"3xl":`komc:max-w-3xl`,"4xl":`komc:max-w-4xl`,"5xl":`komc:max-w-5xl`,"6xl":`komc:max-w-6xl`,"7xl":`komc:max-w-7xl`,"8xl":`komc:max-w-330`,full:`komc:max-w-full`},size:{sm:`komc:h-10`,md:`komc:h-12`,lg:`komc:h-14`,xl:`komc:h-16`,"2xl":`komc:h-18`,"3xl":`komc:h-20`,"4xl":`komc:h-22`,"4.25xl":`komc:h-22.5`,"5xl":`komc:h-24`,"6xl":`komc:h-26`,"7xl":`komc:h-28`,"8xl":`komc:h-30`,full:`komc:h-full`}},defaultVariants:{maxWidth:`full`,size:`xl`}});function m({children:e,maxWidth:t,size:r,className:a,...o}){return(0,i.jsx)(`header`,{"data-komc":!0,className:(0,n.default)(`komc:w-full komc:sticky komc:top-0 komc:z-1000 komc:bg-white`,`komc:transition-all komc:duration-200`,a),...o,children:(0,i.jsx)(`div`,{className:p({maxWidth:t,size:r}),children:e})})}const h=(0,a.cva)(t.f(`komc:flex komc:items-center komc:w-full komc:px-2`,`komc:[&>input]:outline-none komc:[&>input]:w-full`,`komc:[&>input]:focus:ring-0 komc:[&>input]:focus:ring-offset-0`,`komc:[&>input]:h-full`),{variants:{size:{xs:`komc:h-7.5`,sm:`komc:h-8`,base:`komc:h-9`,md:`komc:h-10`,lg:`komc:h-11`,xl:`komc:h-12`,"2xl":`komc:h-13`,"3xl":`komc:h-14`},gap:{none:`komc:gap-0`,xs:`komc:gap-1`,sm:`komc:gap-2`,md:`komc:gap-3`,lg:`komc:gap-4`,xl:`komc:gap-5`},outline:{line:`komc:border`,solid:`komc:border-transparent`,clear:`komc:border-none`,dashed:`komc:border-dashed`,dotted:`komc:border-dotted`},rounded:{none:`komc:rounded-none`,sm:`komc:rounded-sm`,md:`komc:rounded-md`,lg:`komc:rounded-lg`,xl:`komc:rounded-xl`,"2xl":`komc:rounded-2xl`}}}),g=(0,r.forwardRef)(({prefix:e=null,surffix:t=null,size:n=`lg`,gap:r=`xl`,outline:a=`line`,rounded:o=`lg`,className:s,...c},l)=>(0,i.jsxs)(`div`,{"data-komc":!0,className:h({size:n,gap:r,outline:a,rounded:o,className:s}),children:[e,(0,i.jsx)(`input`,{ref:l,type:`text`,...c}),t]}));var _=g;const v=(0,a.cva)(`komc:w-full komc:mx-auto komc:relative`,{variants:{type:{main:`komc:flex komc:flex-col`,content:`komc:grow komc:my-0`},maxWidth:{none:``,xs:`komc:max-w-xs komc:xl:max-w-full`,sm:`komc:max-w-sm komc:xl:max-w-full`,md:`komc:max-w-md komc:xl:max-w-full`,lg:`komc:max-w-lg komc:xl:max-w-full`,xl:`komc:max-w-xl komc:xl:max-w-full`,"2xl":`komc:max-w-2xl komc:xl:max-w-full`,"3xl":`komc:max-w-3xl komc:xl:max-w-full`,full:`komc:max-w-full`}},defaultVariants:{type:`main`,maxWidth:`full`}});function y({children:e,className:t,type:n,maxWidth:r,...a}){return(0,i.jsx)(`div`,{"data-komc":!0,className:v({type:n,maxWidth:r,className:t}),...a,children:e})}const b=(0,a.cva)(t.f(`komc:w-full komc:animate-pulse komc:bg-gray-200`),{variants:{size:{xs:`komc:h-4`,sm:`komc:h-8`,md:`komc:h-12`,lg:`komc:h-16`,xl:`komc:h-20`,"2xl":`komc:h-24`,"3xl":`komc:h-28`,square:`komc:h-auto komc:aspect-square`,full:`komc:h-full`},rounded:{none:`komc:rounded-none`,sm:`komc:rounded-sm`,md:`komc:rounded-md`,lg:`komc:rounded-lg`,xl:`komc:rounded-xl`,"2xl":`komc:rounded-2xl`,"3xl":`komc:rounded-3xl`,full:`komc:rounded-full`}},defaultVariants:{size:`sm`,rounded:`sm`}});function x({size:e,rounded:t,width:n,height:r,className:a,...o}){let s=n?typeof n==`string`?n:`${n}px`:void 0,c=r?typeof r==`string`?r:`${r}px`:void 0;return(0,i.jsx)(`div`,{"data-komc":!0,className:b({size:e,rounded:t,className:a}),style:{width:s,height:c},...o})}exports.BottomAppBar=o,exports.Button=l,exports.ConditionalWrapper=u,exports.Footer=f,exports.Header=m,exports.Input=_,exports.Layout=y,exports.Skeleton=x;
1
+ const e=require(`../chunk-Bmb41Sf3.cjs`),t=require(`../util-CDkao6z3.cjs`);let n=require(`clsx`);n=e.t(n);let r=require(`react`);r=e.t(r);let i=require(`react/jsx-runtime`),a=require(`class-variance-authority`),o=require(`@radix-ui/react-slot`);function s({className:e,items:t,render:a,...o}){return(0,i.jsx)(`nav`,{"data-komc":!0,className:(0,n.default)(`komc:fixed komc:bottom-0 komc:left-0 komc:right-0`,`komc:border-t komc:border-neutral-200 komc:bg-white komc:z-10`,e),...o,children:(0,i.jsx)(`div`,{className:`komc:grid komc:min-h-15`,style:{gridTemplateColumns:`repeat(${t.length}, 1fr)`},children:t.map((e,t)=>(0,i.jsx)(r.default.Fragment,{children:a(e)},t))})})}const c=(0,a.cva)(t.f(`komc:flex komc:justify-center komc:items-center komc:gap-x-2 komc:w-full`,`komc:transition-colors komc:duration-200 komc:relative`,`komc:[&_svg]:transition-colors komc:[&_svg]:duration-200`,`komc:cursor-pointer komc:disabled:cursor-default`),{variants:{size:{xxs:`komc:h-7.5`,xs:`komc:h-8`,sm:`komc:h-9`,md:`komc:h-10`,lg:`komc:h-11`,xl:`komc:h-12`,"2xl":`komc:h-13`,"3xl":`komc:h-14`,"4xl":`komc:h-15`},shadow:{none:``,sm:`komc:drop-shadow-sm`,md:`komc:drop-shadow-md`,lg:`komc:drop-shadow-lg`,xl:`komc:drop-shadow-xl`,"2xl":`komc:drop-shadow-2xl`,"3xl":`komc:drop-shadow-3xl`},outline:{line:`komc:border`,solid:`komc:border komc:border-transparent`,clear:`komc:border-none`},variant:{blue:``,duo:``,white:``,gray:``,neutral:``,night:``,black:``,sky:``,"sky-blue":``,indigo:``},px:{none:`komc:px-0`,xs:`komc:px-0.5`,sm:`komc:px-1`,md:`komc:px-1.5`,lg:`komc:px-2`,xl:`komc:px-3`,"2xl":`komc:px-4`,"3xl":`komc:px-5`,"4xl":`komc:px-6`},rounded:{none:`komc:rounded-none`,sm:`komc:rounded-sm`,md:`komc:rounded-md`,lg:`komc:rounded-lg`,xl:`komc:rounded-xl`,"2xl":`komc:rounded-2xl`,"3xl":`komc:rounded-3xl`,full:`komc:rounded-full`}},compoundVariants:[{outline:`line`,variant:`blue`,className:t.f(`komc:border-blue-500 komc:bg-white komc:text-blue-500`,`komc:hover:border-transparent komc:hover:bg-blue-500 komc:hover:text-white`,`komc:active:border-transparent komc:active:bg-blue-500 komc:active:text-white`,`komc:disabled:border-gray-500 komc:disabled:bg-white komc:disabled:text-gray-500`)},{outline:`line`,variant:`duo`,className:t.f(`komc:border-blue-500 komc:bg-white komc:text-brand-blck`,`komc:hover:border-transparent komc:hover:bg-blue-500 komc:hover:text-white`,`komc:active:border-transparent komc:active:bg-blue-500 komc:active:text-white`,`komc:disabled:border-gray-500 komc:disabled:bg-white komc:disabled:text-gray-500`)},{outline:`line`,variant:`white`,className:t.f(`komc:border-gray-600 komc:bg-white komc:text-brand-blck`,`komc:hover:bg-gray-200 komc:hover:text-brand-blck`,`komc:active:bg-gray-200 komc:active:text-brand-blck`,`komc:disabled:border-gray-500 komc:disabled:bg-white komc:disabled:text-gray-500`)},{outline:`line`,variant:`gray`,className:t.f(`komc:border-white komc:bg-transparent komc:text-white`,`komc:hover:bg-[rgb(199,199,199)] komc:hover:text-white`,`komc:active:bg-[rgb(199,199,199)] komc:active:text-white`,`komc:disabled:border-gray-500 komc:disabled:bg-white komc:disabled:text-gray-500`)},{outline:`line`,variant:`neutral`,className:t.f(`komc:border-gray-800 komc:bg-transparent komc:text-black`,`komc:hover:bg-gray-200 komc:hover:text-black`,`komc:active:bg-gray-200 komc:active:text-black`,`komc:disabled:border-gray-500 komc:disabled:bg-transparent komc:disabled:text-gray-500`)},{outline:`line`,variant:`sky`,className:t.f(`komc:border-sky-750 komc:bg-transparent komc:text-black`,`komc:hover:bg-sky-750 komc:hover:text-white`,`komc:active:bg-sky-750 komc:active:text-white`,`komc:disabled:border-gray-500 komc:disabled:bg-transparent komc:disabled:text-gray-500`)},{outline:`line`,variant:`sky-blue`,className:t.f(`komc:border-sky-450 komc:bg-transparent komc:text-black`,`komc:hover:bg-sky-450 komc:hover:text-white`,`komc:active:bg-sky-450 komc:active:text-white`,`komc:disabled:border-gray-500 komc:disabled:bg-transparent komc:disabled:text-gray-500`)},{outline:`solid`,variant:`white`,className:t.f(`komc:bg-white komc:text-brand-blck`,`komc:hover:bg-gray-200`,`komc:active:bg-gray-200`,`komc:disabled:border-white komc:disabled:bg-gray-50 komc:disabled:text-gray-800`)},{outline:`solid`,variant:`gray`,className:t.f(`komc:bg-gray-100 komc:text-blue-500`,`komc:hover:bg-blue-500 komc:hover:text-white`,`komc:active:bg-blue-500 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-50 komc:disabled:text-gray-800`)},{outline:`solid`,variant:`blue`,className:t.f(`komc:bg-blue-500 komc:text-white`,`komc:hover:bg-night-700 komc:hover:text-white`,`komc:active:bg-night-700 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-50 komc:disabled:text-gray-800`)},{outline:`solid`,variant:`night`,className:t.f(`komc:bg-night-700 komc:text-white`,`komc:hover:bg-night-800 komc:hover:text-white`,`komc:active:bg-night-800 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-50 komc:disabled:text-gray-800`)},{outline:`solid`,variant:`black`,className:t.f(`komc:bg-[rgb(95,95,96)] komc:text-white`,`komc:hover:bg-[rgb(76,76,77)] komc:hover:text-white`,`komc:active:bg-[rgb(76,76,77)] komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-50 komc:disabled:text-gray-800`)},{outline:`solid`,variant:`sky`,className:t.f(`komc:bg-sky-750 komc:text-white`,`komc:hover:bg-sky-950 komc:hover:text-white`,`komc:active:bg-sky-950 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-700`)},{outline:`solid`,variant:`sky-blue`,className:t.f(`komc:bg-sky-450 komc:text-white`,`komc:hover:bg-sky-650 komc:hover:text-white`,`komc:active:bg-sky-650 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-700`)},{outline:`solid`,variant:`indigo`,className:t.f(`komc:bg-indigo-600 komc:text-white`,`komc:hover:bg-indigo-700 komc:hover:text-white`,`komc:active:bg-indigo-700 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-700`)},{outline:`clear`,variant:`sky`,className:t.f(`komc:bg-transparent komc:text-[#1890FF]`,`komc:hover:bg-transparent komc:hover:text-[#1890FF] komc:hover:underline`,`komc:active:bg-transparent komc:active:text-[#1890FF] komc:active:underline`,`komc:disabled:border-transparent komc:disabled:bg-transparent komc:disabled:text-gray-500`)},{outline:`clear`,variant:`gray`,className:t.f(`komc:bg-transparent komc:text-gray-800`,`komc:hover:bg-transparent komc:hover:text-gray-800 komc:hover:underline`,`komc:active:bg-transparent komc:active:text-gray-800 komc:active:underline`,`komc:disabled:border-transparent komc:disabled:bg-transparent komc:disabled:text-gray-500`)}],defaultVariants:{size:`md`,shadow:`none`,outline:`line`,variant:`blue`,px:`2xl`,rounded:`sm`}}),l=(0,r.forwardRef)(({type:e=`button`,className:t,id:n,size:r,shadow:a,outline:s,variant:l,px:u,rounded:d,asChild:f,...p},m)=>(0,i.jsx)(f?o.Slot:`button`,{ref:m,...p,type:e,id:n,className:c({size:r,shadow:a,outline:s,variant:l,px:u,rounded:d,className:t})}));var u=l;function d({condition:e,wrapper:t,children:n}){return e?t(n):n}const f=(0,a.cva)(`komc:flex komc:flex-col komc:w-full komc:mx-auto`,{variants:{maxWidth:{none:``,xs:`komc:max-w-xs`,sm:`komc:max-w-sm`,md:`komc:max-w-md`,lg:`komc:max-w-lg`,xl:`komc:max-w-xl`,"2xl":`komc:max-w-2xl`,"3xl":`komc:max-w-3xl`,"4xl":`komc:max-w-4xl`,"5xl":`komc:max-w-5xl`,"6xl":`komc:max-w-6xl`,"7xl":`komc:max-w-7xl`,full:`komc:max-w-full`}},defaultVariants:{maxWidth:`full`}});function p({className:e,children:t,maxWidth:r,...a}){return(0,i.jsx)(`footer`,{"data-komc":!0,className:(0,n.default)(`komc:block komc:w-full komc:h-full`,`komc:border-t komc:border-neutral-200`,e),...a,children:(0,i.jsx)(`div`,{className:f({maxWidth:r}),children:t})})}const m=(0,a.cva)(t.f(`komc:flex komc:items-center`,`komc:mx-auto komc:min-h-10`),{variants:{maxWidth:{none:``,sm:`komc:max-w-sm`,md:`komc:max-w-md`,lg:`komc:max-w-lg`,xl:`komc:max-w-xl`,"2xl":`komc:max-w-2xl`,"3xl":`komc:max-w-3xl`,"4xl":`komc:max-w-4xl`,"5xl":`komc:max-w-5xl`,"6xl":`komc:max-w-6xl`,"7xl":`komc:max-w-7xl`,"8xl":`komc:max-w-330`,full:`komc:max-w-full`},size:{sm:`komc:h-10`,md:`komc:h-12`,lg:`komc:h-14`,xl:`komc:h-16`,"2xl":`komc:h-18`,"3xl":`komc:h-20`,"4xl":`komc:h-22`,"4.25xl":`komc:h-22.5`,"5xl":`komc:h-24`,"6xl":`komc:h-26`,"7xl":`komc:h-28`,"8xl":`komc:h-30`,full:`komc:h-full`}},defaultVariants:{maxWidth:`full`,size:`xl`}});function h({children:e,maxWidth:t,size:r,className:a,...o}){return(0,i.jsx)(`header`,{"data-komc":!0,className:(0,n.default)(`komc:w-full komc:sticky komc:top-0 komc:z-1000`,`komc:transition-all komc:duration-200`,a),...o,children:(0,i.jsx)(`div`,{className:m({maxWidth:t,size:r}),children:e})})}const g=(0,a.cva)(t.f(`komc:flex komc:items-center komc:w-full komc:px-2`,`komc:[&>input]:outline-none komc:[&>input]:w-full`,`komc:[&>input]:focus:ring-0 komc:[&>input]:focus:ring-offset-0`,`komc:[&>input]:h-full`),{variants:{size:{xs:`komc:h-7.5`,sm:`komc:h-8`,base:`komc:h-9`,md:`komc:h-10`,lg:`komc:h-11`,xl:`komc:h-12`,"2xl":`komc:h-13`,"3xl":`komc:h-14`},gap:{none:`komc:gap-0`,xs:`komc:gap-1`,sm:`komc:gap-2`,md:`komc:gap-3`,lg:`komc:gap-4`,xl:`komc:gap-5`},outline:{line:`komc:border`,solid:`komc:border-transparent`,clear:`komc:border-none`,dashed:`komc:border-dashed`,dotted:`komc:border-dotted`},rounded:{none:`komc:rounded-none`,sm:`komc:rounded-sm`,md:`komc:rounded-md`,lg:`komc:rounded-lg`,xl:`komc:rounded-xl`,"2xl":`komc:rounded-2xl`}}}),_=(0,r.forwardRef)(({prefix:e=null,surffix:t=null,size:n=`lg`,gap:r=`xl`,outline:a=`line`,rounded:o=`lg`,className:s,...c},l)=>(0,i.jsxs)(`div`,{"data-komc":!0,className:g({size:n,gap:r,outline:a,rounded:o,className:s}),children:[e,(0,i.jsx)(`input`,{ref:l,type:`text`,...c}),t]}));var v=_;const y=(0,a.cva)(t.f(`komc:w-full komc:animate-pulse komc:bg-gray-200`),{variants:{size:{xs:`komc:h-4`,sm:`komc:h-8`,md:`komc:h-12`,lg:`komc:h-16`,xl:`komc:h-20`,"2xl":`komc:h-24`,"3xl":`komc:h-28`,square:`komc:h-auto komc:aspect-square`,full:`komc:h-full`},rounded:{none:`komc:rounded-none`,sm:`komc:rounded-sm`,md:`komc:rounded-md`,lg:`komc:rounded-lg`,xl:`komc:rounded-xl`,"2xl":`komc:rounded-2xl`,"3xl":`komc:rounded-3xl`,full:`komc:rounded-full`}},defaultVariants:{size:`sm`,rounded:`sm`}});function b({size:e,rounded:t,width:n,height:r,className:a,...o}){let s=n?typeof n==`string`?n:`${n}px`:void 0,c=r?typeof r==`string`?r:`${r}px`:void 0;return(0,i.jsx)(`div`,{"data-komc":!0,className:y({size:e,rounded:t,className:a}),style:{width:s,height:c},...o})}exports.BottomAppBar=s,exports.Button=u,exports.ConditionalWrapper=d,exports.Footer=p,exports.Header=h,exports.Input=v,exports.Skeleton=b;
@@ -1,7 +1,7 @@
1
- import * as react1 from "react";
1
+ import * as react4 from "react";
2
2
  import React$1, { HTMLAttributes } from "react";
3
3
  import * as react_jsx_runtime5 from "react/jsx-runtime";
4
- import * as class_variance_authority_types0 from "class-variance-authority/types";
4
+ import * as class_variance_authority_types3 from "class-variance-authority/types";
5
5
  import { VariantProps } from "class-variance-authority";
6
6
 
7
7
  //#region src/ui/bottom-app-bar/bottom-app-bar.d.ts
@@ -21,82 +21,107 @@ declare function BottomAppBar<T>({
21
21
  }: BottomAppBarProps<T>): React$1.ReactNode;
22
22
  //#endregion
23
23
  //#region src/ui/button/button.d.ts
24
- declare const classes$5: (props?: ({
25
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "base" | null | undefined;
26
- gap?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | null | undefined;
27
- outline?: "line" | "solid" | "clear" | "dashed" | "dotted" | null | undefined;
28
- rounded?: "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | "2.5xl" | null | undefined;
29
- variant?: "default" | "ghost" | "white" | "blue" | "night" | "charcoal" | "slate" | "red" | "yellow" | "black" | null | undefined;
30
- } & class_variance_authority_types0.ClassProp) | undefined) => string;
31
- interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'suffix' | 'prefix'>, VariantProps<typeof classes$5> {
32
- /**
33
- * @param size - Height of the button
34
- * @default md - 40px
35
- * @property
36
- * - xs: 30px
37
- * - sm: 32px
38
- * - base: 36px
39
- * - md: 40px
40
- * - lg: 44px
41
- * - xl: 48px
42
- * - 2xl: 52px
43
- * - 3xl: 56px
44
- */
45
- size?: VariantProps<typeof classes$5>['size'];
46
- /**
47
- * @param gap - Gap between the button and the content
48
- * @default sm - 8px
49
- * @property
50
- * - none: 0
51
- * - xs: 4px
52
- * - sm: 8px
53
- * - md: 12px
54
- * - lg: 16px
55
- * - xl: 20px
56
- */
57
- gap?: VariantProps<typeof classes$5>['gap'];
58
- /**
59
- * @param rounded - Border radius of the button
60
- * @default sm
61
- * @property
62
- * - none: 0
63
- * - sm: 2px
64
- * - md: 6px
65
- * - lg: 8px
66
- * - xl: 12px
67
- * - 2xl: 16px
68
- * - 2.5xl: 20px
69
- * - 3xl: 24px
70
- * - full: 100%
71
- */
72
- rounded?: VariantProps<typeof classes$5>['rounded'];
73
- /**
74
- * @param variant - Variant of the button
75
- * @default blue
76
- * @property
77
- * - default
78
- * - ghost
79
- * - white
80
- * - blue
81
- * - night
82
- * - charcoal
83
- * - slate
84
- * - red
85
- * - yellow
86
- * - black
87
- */
88
- variant?: VariantProps<typeof classes$5>['variant'];
89
- disabled?: boolean;
90
- children?: React.ReactNode;
24
+ declare const classes$4: (props?: ({
25
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "xxs" | null | undefined;
26
+ shadow?: "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "none" | null | undefined;
27
+ outline?: "line" | "solid" | "clear" | null | undefined;
28
+ variant?: "blue" | "duo" | "white" | "gray" | "neutral" | "night" | "black" | "sky" | "sky-blue" | "indigo" | null | undefined;
29
+ px?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "none" | "4xl" | null | undefined;
30
+ rounded?: "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | null | undefined;
31
+ } & class_variance_authority_types3.ClassProp) | undefined) => string;
32
+ interface VariantMap {
33
+ line: 'blue' | 'duo' | 'white' | 'gray' | 'neutral' | 'sky' | 'sky-blue';
34
+ solid: 'white' | 'gray' | 'blue' | 'night' | 'black' | 'sky' | 'sky-blue' | 'indigo';
35
+ clear: 'sky' | 'gray';
91
36
  }
37
+ type BaseProps = Omit<VariantProps<typeof classes$4>, 'outline' | 'variant'>;
92
38
  /**
93
- * @param size - Size of the button
94
- * @param gap - Gap between the button and the content
95
- * @param outline - Outline of the button
96
- * @param rounded - Border radius of the button
97
- * @param variant - Variant of the button
39
+ * Button component
40
+ * @description Button component or Slot component (asChild)
41
+ * @param outline
42
+ * @property
43
+ * - line
44
+ * - solid
45
+ * - clear
46
+ * @param variant
47
+ * @property line
48
+ * - blue
49
+ * - duo
50
+ * - white
51
+ * - gray
52
+ * - neutral
53
+ * - sky
54
+ * - sky-blue
55
+ * @property solid
56
+ * - white
57
+ * - gray
58
+ * - blue
59
+ * - night
60
+ * - black
61
+ * - sky
62
+ * - sky-blue
63
+ * - indigo
64
+ * @property clear
65
+ * - sky
66
+ * - gray
67
+ * @param px
68
+ * @property
69
+ * - none - px-0
70
+ * - xs - px-0.5
71
+ * - sm - px-1
72
+ * - md - px-1.5
73
+ * - lg - px-2
74
+ * - xl - px-3
75
+ * - 2xl - px-4
76
+ * - 3xl - px-5
77
+ * - 4xl - px-6
78
+ * @param rounded
79
+ * @property
80
+ * - none - rounded-none
81
+ * - sm - rounded-sm
82
+ * - md - rounded-md
83
+ * - lg - rounded-lg
84
+ * - xl - rounded-xl
85
+ * - 2xl - rounded-2xl
86
+ * - 3xl - rounded-3xl
87
+ * - full - rounded-full
88
+ * @param size
89
+ * @property
90
+ * - xxs - h-7.5
91
+ * - xs - h-8
92
+ * - sm - h-9
93
+ * - md - h-10
94
+ * - lg - h-11
95
+ * - xl - h-12
96
+ * - 2xl - h-13
97
+ * - 3xl - h-14
98
+ * - 4xl - h-15
99
+ * @param shadow
100
+ * @property
101
+ * - none
102
+ * - sm
103
+ * - md
104
+ * - lg
105
+ * - xl
106
+ * - 2xl
107
+ * - 3xl
98
108
  */
99
- declare const Button: react1.ForwardRefExoticComponent<ButtonProps & react1.RefAttributes<HTMLButtonElement>>;
109
+ declare const Button: react4.ForwardRefExoticComponent<(Omit<react4.ClassAttributes<HTMLButtonElement> & react4.ButtonHTMLAttributes<HTMLButtonElement> & BaseProps & {
110
+ outline?: "line";
111
+ variant?: VariantMap["line"];
112
+ } & {
113
+ asChild?: boolean;
114
+ }, "ref"> | Omit<react4.ClassAttributes<HTMLButtonElement> & react4.ButtonHTMLAttributes<HTMLButtonElement> & BaseProps & {
115
+ outline: "solid";
116
+ variant?: VariantMap["solid"];
117
+ } & {
118
+ asChild?: boolean;
119
+ }, "ref"> | Omit<react4.ClassAttributes<HTMLButtonElement> & react4.ButtonHTMLAttributes<HTMLButtonElement> & BaseProps & {
120
+ outline: "clear";
121
+ variant?: VariantMap["clear"];
122
+ } & {
123
+ asChild?: boolean;
124
+ }, "ref">) & react4.RefAttributes<HTMLButtonElement>>;
100
125
  //#endregion
101
126
  //#region src/ui/conditional-wrapper/conditional-wrapper.d.ts
102
127
  interface ConditionalWrapperProps {
@@ -113,13 +138,13 @@ declare function ConditionalWrapper({
113
138
  condition,
114
139
  wrapper,
115
140
  children
116
- }: ConditionalWrapperProps): react1.ReactNode;
141
+ }: ConditionalWrapperProps): react4.ReactNode;
117
142
  //#endregion
118
143
  //#region src/ui/footer/footer.d.ts
119
- declare const classes$4: (props?: ({
144
+ declare const classes$3: (props?: ({
120
145
  maxWidth?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | "4xl" | "5xl" | "6xl" | "7xl" | null | undefined;
121
- } & class_variance_authority_types0.ClassProp) | undefined) => string;
122
- interface FooterProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof classes$4> {
146
+ } & class_variance_authority_types3.ClassProp) | undefined) => string;
147
+ interface FooterProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof classes$3> {
123
148
  /**
124
149
  * @param maxWidth - Maximum width of the footer
125
150
  * @default full
@@ -138,7 +163,7 @@ interface FooterProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps
138
163
  * - 7xl: 1280px
139
164
  * - full: 100%
140
165
  */
141
- maxWidth?: VariantProps<typeof classes$4>['maxWidth'];
166
+ maxWidth?: VariantProps<typeof classes$3>['maxWidth'];
142
167
  }
143
168
  declare function Footer({
144
169
  className,
@@ -148,11 +173,11 @@ declare function Footer({
148
173
  }: FooterProps): react_jsx_runtime5.JSX.Element;
149
174
  //#endregion
150
175
  //#region src/ui/header/header.d.ts
151
- declare const classes$3: (props?: ({
176
+ declare const classes$2: (props?: ({
152
177
  maxWidth?: "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | null | undefined;
153
178
  size?: "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "4.25xl" | null | undefined;
154
- } & class_variance_authority_types0.ClassProp) | undefined) => string;
155
- interface HeaderProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof classes$3> {
179
+ } & class_variance_authority_types3.ClassProp) | undefined) => string;
180
+ interface HeaderProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof classes$2> {
156
181
  children?: React.ReactNode;
157
182
  /**
158
183
  * @param maxWidth - Maximum width of the header
@@ -173,7 +198,7 @@ interface HeaderProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeo
173
198
  * - 8xl: 1320px
174
199
  * - full: 100%
175
200
  */
176
- maxWidth?: VariantProps<typeof classes$3>['maxWidth'];
201
+ maxWidth?: VariantProps<typeof classes$2>['maxWidth'];
177
202
  /**
178
203
  * @param size - Size of the header
179
204
  * @default xl
@@ -192,7 +217,7 @@ interface HeaderProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeo
192
217
  * - 8xl: 120px
193
218
  * - full: 100%
194
219
  */
195
- size?: VariantProps<typeof classes$3>['size'];
220
+ size?: VariantProps<typeof classes$2>['size'];
196
221
  }
197
222
  declare function Header({
198
223
  children,
@@ -203,13 +228,13 @@ declare function Header({
203
228
  }: HeaderProps): react_jsx_runtime5.JSX.Element;
204
229
  //#endregion
205
230
  //#region src/ui/input/input.d.ts
206
- declare const classes$2: (props?: ({
231
+ declare const classes$1: (props?: ({
207
232
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "base" | null | undefined;
208
233
  gap?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | null | undefined;
209
234
  outline?: "line" | "solid" | "clear" | "dashed" | "dotted" | null | undefined;
210
235
  rounded?: "sm" | "md" | "lg" | "xl" | "2xl" | "none" | null | undefined;
211
- } & class_variance_authority_types0.ClassProp) | undefined) => string;
212
- interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'prefix' | 'surffix' | 'size'>, VariantProps<typeof classes$2> {
236
+ } & class_variance_authority_types3.ClassProp) | undefined) => string;
237
+ interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'prefix' | 'surffix' | 'size'>, VariantProps<typeof classes$1> {
213
238
  /**
214
239
  * @param size - Height of the input
215
240
  * @default lg - 44px
@@ -223,7 +248,7 @@ interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, '
223
248
  * - 2xl: 52px
224
249
  * - 3xl: 56px
225
250
  */
226
- size?: VariantProps<typeof classes$2>['size'];
251
+ size?: VariantProps<typeof classes$1>['size'];
227
252
  /**
228
253
  * @param gap - Gap between the input and the prefix/suffix
229
254
  * @default xl - 20px
@@ -235,8 +260,8 @@ interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, '
235
260
  * - lg: 16px
236
261
  * - xl: 20px
237
262
  */
238
- gap?: VariantProps<typeof classes$2>['gap'];
239
- outline?: VariantProps<typeof classes$2>['outline'];
263
+ gap?: VariantProps<typeof classes$1>['gap'];
264
+ outline?: VariantProps<typeof classes$1>['outline'];
240
265
  /**
241
266
  * @param rounded - Border radius of the input
242
267
  * @default lg
@@ -248,7 +273,7 @@ interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, '
248
273
  * - xl: 12px
249
274
  * - 2xl: 16px
250
275
  */
251
- rounded?: VariantProps<typeof classes$2>['rounded'];
276
+ rounded?: VariantProps<typeof classes$1>['rounded'];
252
277
  prefix?: React.ReactNode;
253
278
  surffix?: React.ReactNode;
254
279
  }
@@ -260,51 +285,13 @@ interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, '
260
285
  * @param outline - Outline of the input
261
286
  * @param rounded - Border radius of the input
262
287
  */
263
- declare const Input: react1.ForwardRefExoticComponent<InputProps & react1.RefAttributes<HTMLInputElement>>;
264
- //#endregion
265
- //#region src/ui/layout/layout.d.ts
266
- declare const classes$1: (props?: ({
267
- type?: "content" | "main" | null | undefined;
268
- maxWidth?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | null | undefined;
269
- } & class_variance_authority_types0.ClassProp) | undefined) => string;
270
- interface LayoutProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof classes$1> {
271
- /**
272
- * @param type - Type of the layout
273
- * @default main
274
- * @property
275
- * - main: flex column
276
- * - content: grow my-0
277
- */
278
- type?: VariantProps<typeof classes$1>['type'];
279
- /**
280
- * @param maxWidth - Maximum width of the layout
281
- * @default full
282
- * @property
283
- * - none: 0
284
- * - xs: 320px (>=1280px: 100%)
285
- * - sm: 384px (>=1280px: 100%)
286
- * - md: 448px (>=1280px: 100%)
287
- * - lg: 512px (>=1280px: 100%)
288
- * - xl: 576px (>=1280px: 100%)
289
- * - 2xl: 672px (>=1280px: 100%)
290
- * - 3xl: 768px (>=1280px: 100%)
291
- * - full: 100%
292
- */
293
- maxWidth?: VariantProps<typeof classes$1>['maxWidth'];
294
- }
295
- declare function Layout({
296
- children,
297
- className,
298
- type,
299
- maxWidth,
300
- ...props
301
- }: LayoutProps): react_jsx_runtime5.JSX.Element;
288
+ declare const Input: react4.ForwardRefExoticComponent<InputProps & react4.RefAttributes<HTMLInputElement>>;
302
289
  //#endregion
303
290
  //#region src/ui/skeleton/skeleton.d.ts
304
291
  declare const classes: (props?: ({
305
292
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "square" | "full" | null | undefined;
306
293
  rounded?: "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | null | undefined;
307
- } & class_variance_authority_types0.ClassProp) | undefined) => string;
294
+ } & class_variance_authority_types3.ClassProp) | undefined) => string;
308
295
  interface SkeletonProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof classes> {
309
296
  /**
310
297
  * @param width - Width of the skeleton
@@ -363,4 +350,4 @@ declare function Skeleton({
363
350
  ...props
364
351
  }: SkeletonProps): react_jsx_runtime5.JSX.Element;
365
352
  //#endregion
366
- export { BottomAppBar, type BottomAppBarProps, Button, type ButtonProps, ConditionalWrapper, type ConditionalWrapperProps, Footer, type FooterProps, Header, type HeaderProps, Input, type InputProps, Layout, type LayoutProps, Skeleton, type SkeletonProps };
353
+ export { BottomAppBar, type BottomAppBarProps, Button, ConditionalWrapper, type ConditionalWrapperProps, Footer, type FooterProps, Header, type HeaderProps, Input, type InputProps, Skeleton, type SkeletonProps };