@codefast/ui 0.1.14 → 0.1.15

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,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";var _chunk4XRBMJ5Qcjs = require('../chunk-4XRBMJ5Q.cjs');var _react = require('react'); var a = _interopRequireWildcard(_react);var _reacticons = require('@radix-ui/react-icons');var _checkboxgroup = require('@codefast/primitive/checkbox-group'); var e = _interopRequireWildcard(_checkboxgroup);var _jsxruntime = require('react/jsx-runtime');var C=a.forwardRef(({className:t,...i},c)=>_jsxruntime.jsx.call(void 0, e.Root,{className:_chunk4XRBMJ5Qcjs.a.call(void 0, "grid gap-2",t),...i,ref:c}));C.displayName=e.Root.displayName;var d=a.forwardRef(({children:t,className:i,checkboxClassName:c,...s},m)=>_jsxruntime.jsxs.call(void 0, "label",{className:_chunk4XRBMJ5Qcjs.a.call(void 0, "flex items-center justify-center gap-4 rounded-md border p-4",i),children:[t,_jsxruntime.jsx.call(void 0, e.Item,{ref:m,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "border-input aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground peer flex size-4 shrink-0 cursor-pointer rounded-sm border focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-default disabled:opacity-50",c),...s,children:_jsxruntime.jsx.call(void 0, e.CheckboxGroupIndicator,{className:"flex size-full items-center justify-center text-current",children:_jsxruntime.jsx.call(void 0, _reacticons.CheckIcon,{className:"size-3.5"})})})]}));d.displayName=e.Item.displayName;exports.CheckboxCards = C; exports.CheckboxCardsItem = d;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";var _chunk4XRBMJ5Qcjs = require('../chunk-4XRBMJ5Q.cjs');var _react = require('react'); var a = _interopRequireWildcard(_react);var _reacticons = require('@radix-ui/react-icons');var _checkboxgroup = require('@codefast-ui/checkbox-group'); var e = _interopRequireWildcard(_checkboxgroup);var _jsxruntime = require('react/jsx-runtime');var C=a.forwardRef(({className:t,...i},c)=>_jsxruntime.jsx.call(void 0, e.Root,{className:_chunk4XRBMJ5Qcjs.a.call(void 0, "grid gap-2",t),...i,ref:c}));C.displayName=e.Root.displayName;var d=a.forwardRef(({children:t,className:i,checkboxClassName:c,...s},m)=>_jsxruntime.jsxs.call(void 0, "label",{className:_chunk4XRBMJ5Qcjs.a.call(void 0, "flex items-center justify-center gap-4 rounded-md border p-4",i),children:[t,_jsxruntime.jsx.call(void 0, e.Item,{ref:m,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "border-input aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground peer flex size-4 shrink-0 cursor-pointer rounded-sm border focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-default disabled:opacity-50",c),...s,children:_jsxruntime.jsx.call(void 0, e.CheckboxGroupIndicator,{className:"flex size-full items-center justify-center text-current",children:_jsxruntime.jsx.call(void 0, _reacticons.CheckIcon,{className:"size-3.5"})})})]}));d.displayName=e.Item.displayName;exports.CheckboxCards = C; exports.CheckboxCardsItem = d;
2
2
  //# sourceMappingURL=checkbox-cards.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/components/checkbox-cards.cjs","../../src/components/checkbox-cards.tsx"],"names":["CheckboxCards","className","props","forwardedRef","jsx","cn","CheckboxCardsItem","children","checkboxClassName","jsxs","CheckIcon"],"mappings":"AAAA,uWAAY,CAAC,yDAAyC,uECE/B,mDACG,oHACc,+CAYpC,IAFEA,CAAAA,CAAsB,CAAA,CAAA,UAAA,CAC1B,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,CAAwB,CAAA,IAAA,CAAvB,CAA4B,SAAA,CAAWC,iCAAAA,YAAG,CAAcJ,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,GAAA,CAAKC,CAAAA,CAAc,CAEvG,CAAA,CAEAH,CAAAA,CAAc,WAAA,CAAqC,CAAA,CAAA,IAAA,CAAK,WAAA,CAYxD,IAAMM,CAAAA,CAA0B,CAAA,CAAA,UAAA,CAC9B,CAAC,CAAE,QAAA,CAAAC,CAAAA,CAAU,SAAA,CAAAN,CAAAA,CAAW,iBAAA,CAAAO,CAAAA,CAAmB,GAAGN,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACrDM,8BAAAA,OAAC,CAAA,CAAM,SAAA,CAAWJ,iCAAAA,8DAAG,CAAgEJ,CAAS,CAAA,CAC3F,QAAA,CAAA,CAAAM,CAAAA,CACDH,6BAAAA,CAAwB,CAAA,IAAA,CAAvB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,2RACT,CACAG,CACF,CAAA,CACC,GAAGN,CAAAA,CAEJ,QAAA,CAAAE,6BAAAA,CAAwB,CAAA,sBAAA,CAAvB,CAA8C,SAAA,CAAU,yDAAA,CACvD,QAAA,CAAAA,6BAAAA,qBAACM,CAAA,CAAU,SAAA,CAAU,UAAA,CAAW,CAAA,CAClC,CAAA,CACF,CAAA,CAAA,CACF,CAEJ,CAAA,CAEAJ,CAAAA,CAAkB,WAAA,CAAqC,CAAA,CAAA,IAAA,CAAK,WAAA,CAAA,yDAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/components/checkbox-cards.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport { CheckIcon } from '@radix-ui/react-icons';\nimport * as CheckboxGroupPrimitive from '@codefast/primitive/checkbox-group';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxCards\n * -------------------------------------------------------------------------- */\n\ntype CheckboxCardsElement = React.ElementRef<typeof CheckboxGroupPrimitive.Root>;\ntype CheckboxCardsProps = React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Root>;\n\nconst CheckboxCards = React.forwardRef<CheckboxCardsElement, CheckboxCardsProps>(\n ({ className, ...props }, forwardedRef) => (\n <CheckboxGroupPrimitive.Root className={cn('grid gap-2', className)} {...props} ref={forwardedRef} />\n ),\n);\n\nCheckboxCards.displayName = CheckboxGroupPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxCardsItem\n * -------------------------------------------------------------------------- */\n\ntype CheckboxCardsItemElement = React.ElementRef<typeof CheckboxGroupPrimitive.Item>;\n\ninterface CheckboxCardsItemProps extends React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Item> {\n checkboxClassName?: string;\n}\n\nconst CheckboxCardsItem = React.forwardRef<CheckboxCardsItemElement, CheckboxCardsItemProps>(\n ({ children, className, checkboxClassName, ...props }, forwardedRef) => (\n <label className={cn('flex items-center justify-center gap-4 rounded-md border p-4', className)}>\n {children}\n <CheckboxGroupPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'border-input aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground peer flex size-4 shrink-0 cursor-pointer rounded-sm border focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-default disabled:opacity-50',\n checkboxClassName,\n )}\n {...props}\n >\n <CheckboxGroupPrimitive.CheckboxGroupIndicator className=\"flex size-full items-center justify-center text-current\">\n <CheckIcon className=\"size-3.5\" />\n </CheckboxGroupPrimitive.CheckboxGroupIndicator>\n </CheckboxGroupPrimitive.Item>\n </label>\n ),\n);\n\nCheckboxCardsItem.displayName = CheckboxGroupPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { CheckboxCards, CheckboxCardsItem, type CheckboxCardsProps, type CheckboxCardsItemProps };\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/components/checkbox-cards.cjs","../../src/components/checkbox-cards.tsx"],"names":["CheckboxCards","className","props","forwardedRef","jsx","cn","CheckboxCardsItem","children","checkboxClassName","jsxs","CheckIcon"],"mappings":"AAAA,uWAAY,CAAC,yDAAyC,uECE/B,mDACG,6GACc,+CAYpC,IAFEA,CAAAA,CAAsB,CAAA,CAAA,UAAA,CAC1B,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,CAAwB,CAAA,IAAA,CAAvB,CAA4B,SAAA,CAAWC,iCAAAA,YAAG,CAAcJ,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,GAAA,CAAKC,CAAAA,CAAc,CAEvG,CAAA,CAEAH,CAAAA,CAAc,WAAA,CAAqC,CAAA,CAAA,IAAA,CAAK,WAAA,CAYxD,IAAMM,CAAAA,CAA0B,CAAA,CAAA,UAAA,CAC9B,CAAC,CAAE,QAAA,CAAAC,CAAAA,CAAU,SAAA,CAAAN,CAAAA,CAAW,iBAAA,CAAAO,CAAAA,CAAmB,GAAGN,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACrDM,8BAAAA,OAAC,CAAA,CAAM,SAAA,CAAWJ,iCAAAA,8DAAG,CAAgEJ,CAAS,CAAA,CAC3F,QAAA,CAAA,CAAAM,CAAAA,CACDH,6BAAAA,CAAwB,CAAA,IAAA,CAAvB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,2RACT,CACAG,CACF,CAAA,CACC,GAAGN,CAAAA,CAEJ,QAAA,CAAAE,6BAAAA,CAAwB,CAAA,sBAAA,CAAvB,CAA8C,SAAA,CAAU,yDAAA,CACvD,QAAA,CAAAA,6BAAAA,qBAACM,CAAA,CAAU,SAAA,CAAU,UAAA,CAAW,CAAA,CAClC,CAAA,CACF,CAAA,CAAA,CACF,CAEJ,CAAA,CAEAJ,CAAAA,CAAkB,WAAA,CAAqC,CAAA,CAAA,IAAA,CAAK,WAAA,CAAA,yDAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/components/checkbox-cards.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport { CheckIcon } from '@radix-ui/react-icons';\nimport * as CheckboxGroupPrimitive from '@codefast-ui/checkbox-group';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxCards\n * -------------------------------------------------------------------------- */\n\ntype CheckboxCardsElement = React.ElementRef<typeof CheckboxGroupPrimitive.Root>;\ntype CheckboxCardsProps = React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Root>;\n\nconst CheckboxCards = React.forwardRef<CheckboxCardsElement, CheckboxCardsProps>(\n ({ className, ...props }, forwardedRef) => (\n <CheckboxGroupPrimitive.Root className={cn('grid gap-2', className)} {...props} ref={forwardedRef} />\n ),\n);\n\nCheckboxCards.displayName = CheckboxGroupPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxCardsItem\n * -------------------------------------------------------------------------- */\n\ntype CheckboxCardsItemElement = React.ElementRef<typeof CheckboxGroupPrimitive.Item>;\n\ninterface CheckboxCardsItemProps extends React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Item> {\n checkboxClassName?: string;\n}\n\nconst CheckboxCardsItem = React.forwardRef<CheckboxCardsItemElement, CheckboxCardsItemProps>(\n ({ children, className, checkboxClassName, ...props }, forwardedRef) => (\n <label className={cn('flex items-center justify-center gap-4 rounded-md border p-4', className)}>\n {children}\n <CheckboxGroupPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'border-input aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground peer flex size-4 shrink-0 cursor-pointer rounded-sm border focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-default disabled:opacity-50',\n checkboxClassName,\n )}\n {...props}\n >\n <CheckboxGroupPrimitive.CheckboxGroupIndicator className=\"flex size-full items-center justify-center text-current\">\n <CheckIcon className=\"size-3.5\" />\n </CheckboxGroupPrimitive.CheckboxGroupIndicator>\n </CheckboxGroupPrimitive.Item>\n </label>\n ),\n);\n\nCheckboxCardsItem.displayName = CheckboxGroupPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { CheckboxCards, CheckboxCardsItem, type CheckboxCardsProps, type CheckboxCardsItemProps };\n"]}
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import * as CheckboxGroupPrimitive from '@codefast/primitive/checkbox-group';
2
+ import * as CheckboxGroupPrimitive from '@codefast-ui/checkbox-group';
3
3
 
4
4
  type CheckboxCardsProps = React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Root>;
5
5
  declare const CheckboxCards: React.ForwardRefExoticComponent<Omit<CheckboxGroupPrimitive.CheckboxGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import * as CheckboxGroupPrimitive from '@codefast/primitive/checkbox-group';
2
+ import * as CheckboxGroupPrimitive from '@codefast-ui/checkbox-group';
3
3
 
4
4
  type CheckboxCardsProps = React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Root>;
5
5
  declare const CheckboxCards: React.ForwardRefExoticComponent<Omit<CheckboxGroupPrimitive.CheckboxGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -1,2 +1,2 @@
1
- "use client";import{a as o}from"../chunk-VRBUDJBH.js";import*as a from"react";import{CheckIcon as p}from"@radix-ui/react-icons";import*as e from"@codefast/primitive/checkbox-group";import{jsx as r,jsxs as b}from"react/jsx-runtime";var C=a.forwardRef(({className:t,...i},c)=>r(e.Root,{className:o("grid gap-2",t),...i,ref:c}));C.displayName=e.Root.displayName;var d=a.forwardRef(({children:t,className:i,checkboxClassName:c,...s},m)=>b("label",{className:o("flex items-center justify-center gap-4 rounded-md border p-4",i),children:[t,r(e.Item,{ref:m,className:o("border-input aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground peer flex size-4 shrink-0 cursor-pointer rounded-sm border focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-default disabled:opacity-50",c),...s,children:r(e.CheckboxGroupIndicator,{className:"flex size-full items-center justify-center text-current",children:r(p,{className:"size-3.5"})})})]}));d.displayName=e.Item.displayName;export{C as CheckboxCards,d as CheckboxCardsItem};
1
+ "use client";import{a as o}from"../chunk-VRBUDJBH.js";import*as a from"react";import{CheckIcon as p}from"@radix-ui/react-icons";import*as e from"@codefast-ui/checkbox-group";import{jsx as r,jsxs as b}from"react/jsx-runtime";var C=a.forwardRef(({className:t,...i},c)=>r(e.Root,{className:o("grid gap-2",t),...i,ref:c}));C.displayName=e.Root.displayName;var d=a.forwardRef(({children:t,className:i,checkboxClassName:c,...s},m)=>b("label",{className:o("flex items-center justify-center gap-4 rounded-md border p-4",i),children:[t,r(e.Item,{ref:m,className:o("border-input aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground peer flex size-4 shrink-0 cursor-pointer rounded-sm border focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-default disabled:opacity-50",c),...s,children:r(e.CheckboxGroupIndicator,{className:"flex size-full items-center justify-center text-current",children:r(p,{className:"size-3.5"})})})]}));d.displayName=e.Item.displayName;export{C as CheckboxCards,d as CheckboxCardsItem};
2
2
  //# sourceMappingURL=checkbox-cards.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/checkbox-cards.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { CheckIcon } from '@radix-ui/react-icons';\nimport * as CheckboxGroupPrimitive from '@codefast/primitive/checkbox-group';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxCards\n * -------------------------------------------------------------------------- */\n\ntype CheckboxCardsElement = React.ElementRef<typeof CheckboxGroupPrimitive.Root>;\ntype CheckboxCardsProps = React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Root>;\n\nconst CheckboxCards = React.forwardRef<CheckboxCardsElement, CheckboxCardsProps>(\n ({ className, ...props }, forwardedRef) => (\n <CheckboxGroupPrimitive.Root className={cn('grid gap-2', className)} {...props} ref={forwardedRef} />\n ),\n);\n\nCheckboxCards.displayName = CheckboxGroupPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxCardsItem\n * -------------------------------------------------------------------------- */\n\ntype CheckboxCardsItemElement = React.ElementRef<typeof CheckboxGroupPrimitive.Item>;\n\ninterface CheckboxCardsItemProps extends React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Item> {\n checkboxClassName?: string;\n}\n\nconst CheckboxCardsItem = React.forwardRef<CheckboxCardsItemElement, CheckboxCardsItemProps>(\n ({ children, className, checkboxClassName, ...props }, forwardedRef) => (\n <label className={cn('flex items-center justify-center gap-4 rounded-md border p-4', className)}>\n {children}\n <CheckboxGroupPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'border-input aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground peer flex size-4 shrink-0 cursor-pointer rounded-sm border focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-default disabled:opacity-50',\n checkboxClassName,\n )}\n {...props}\n >\n <CheckboxGroupPrimitive.CheckboxGroupIndicator className=\"flex size-full items-center justify-center text-current\">\n <CheckIcon className=\"size-3.5\" />\n </CheckboxGroupPrimitive.CheckboxGroupIndicator>\n </CheckboxGroupPrimitive.Item>\n </label>\n ),\n);\n\nCheckboxCardsItem.displayName = CheckboxGroupPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { CheckboxCards, CheckboxCardsItem, type CheckboxCardsProps, type CheckboxCardsItemProps };\n"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,OAAS,aAAAC,MAAiB,wBAC1B,UAAYC,MAA4B,qCAYpC,cAAAC,EAkBA,QAAAC,MAlBA,oBAFJ,IAAMC,EAAsB,aAC1B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACxBL,EAAwB,OAAvB,CAA4B,UAAWM,EAAG,aAAcH,CAAS,EAAI,GAAGC,EAAO,IAAKC,EAAc,CAEvG,EAEAH,EAAc,YAAqC,OAAK,YAYxD,IAAMK,EAA0B,aAC9B,CAAC,CAAE,SAAAC,EAAU,UAAAL,EAAW,kBAAAM,EAAmB,GAAGL,CAAM,EAAGC,IACrDJ,EAAC,SAAM,UAAWK,EAAG,+DAAgEH,CAAS,EAC3F,UAAAK,EACDR,EAAwB,OAAvB,CACC,IAAKK,EACL,UAAWC,EACT,4RACAG,CACF,EACC,GAAGL,EAEJ,SAAAJ,EAAwB,yBAAvB,CAA8C,UAAU,0DACvD,SAAAA,EAACU,EAAA,CAAU,UAAU,WAAW,EAClC,EACF,GACF,CAEJ,EAEAH,EAAkB,YAAqC,OAAK","names":["React","CheckIcon","CheckboxGroupPrimitive","jsx","jsxs","CheckboxCards","className","props","forwardedRef","cn","CheckboxCardsItem","children","checkboxClassName","CheckIcon"]}
1
+ {"version":3,"sources":["../../src/components/checkbox-cards.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { CheckIcon } from '@radix-ui/react-icons';\nimport * as CheckboxGroupPrimitive from '@codefast-ui/checkbox-group';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxCards\n * -------------------------------------------------------------------------- */\n\ntype CheckboxCardsElement = React.ElementRef<typeof CheckboxGroupPrimitive.Root>;\ntype CheckboxCardsProps = React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Root>;\n\nconst CheckboxCards = React.forwardRef<CheckboxCardsElement, CheckboxCardsProps>(\n ({ className, ...props }, forwardedRef) => (\n <CheckboxGroupPrimitive.Root className={cn('grid gap-2', className)} {...props} ref={forwardedRef} />\n ),\n);\n\nCheckboxCards.displayName = CheckboxGroupPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxCardsItem\n * -------------------------------------------------------------------------- */\n\ntype CheckboxCardsItemElement = React.ElementRef<typeof CheckboxGroupPrimitive.Item>;\n\ninterface CheckboxCardsItemProps extends React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Item> {\n checkboxClassName?: string;\n}\n\nconst CheckboxCardsItem = React.forwardRef<CheckboxCardsItemElement, CheckboxCardsItemProps>(\n ({ children, className, checkboxClassName, ...props }, forwardedRef) => (\n <label className={cn('flex items-center justify-center gap-4 rounded-md border p-4', className)}>\n {children}\n <CheckboxGroupPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'border-input aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground peer flex size-4 shrink-0 cursor-pointer rounded-sm border focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-default disabled:opacity-50',\n checkboxClassName,\n )}\n {...props}\n >\n <CheckboxGroupPrimitive.CheckboxGroupIndicator className=\"flex size-full items-center justify-center text-current\">\n <CheckIcon className=\"size-3.5\" />\n </CheckboxGroupPrimitive.CheckboxGroupIndicator>\n </CheckboxGroupPrimitive.Item>\n </label>\n ),\n);\n\nCheckboxCardsItem.displayName = CheckboxGroupPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { CheckboxCards, CheckboxCardsItem, type CheckboxCardsProps, type CheckboxCardsItemProps };\n"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,OAAS,aAAAC,MAAiB,wBAC1B,UAAYC,MAA4B,8BAYpC,cAAAC,EAkBA,QAAAC,MAlBA,oBAFJ,IAAMC,EAAsB,aAC1B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACxBL,EAAwB,OAAvB,CAA4B,UAAWM,EAAG,aAAcH,CAAS,EAAI,GAAGC,EAAO,IAAKC,EAAc,CAEvG,EAEAH,EAAc,YAAqC,OAAK,YAYxD,IAAMK,EAA0B,aAC9B,CAAC,CAAE,SAAAC,EAAU,UAAAL,EAAW,kBAAAM,EAAmB,GAAGL,CAAM,EAAGC,IACrDJ,EAAC,SAAM,UAAWK,EAAG,+DAAgEH,CAAS,EAC3F,UAAAK,EACDR,EAAwB,OAAvB,CACC,IAAKK,EACL,UAAWC,EACT,4RACAG,CACF,EACC,GAAGL,EAEJ,SAAAJ,EAAwB,yBAAvB,CAA8C,UAAU,0DACvD,SAAAA,EAACU,EAAA,CAAU,UAAU,WAAW,EAClC,EACF,GACF,CAEJ,EAEAH,EAAkB,YAAqC,OAAK","names":["React","CheckIcon","CheckboxGroupPrimitive","jsx","jsxs","CheckboxCards","className","props","forwardedRef","cn","CheckboxCardsItem","children","checkboxClassName","CheckIcon"]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";var _chunk4XRBMJ5Qcjs = require('../chunk-4XRBMJ5Q.cjs');var _react = require('react'); var c = _interopRequireWildcard(_react);var _reacticons = require('@radix-ui/react-icons');var _checkboxgroup = require('@codefast/primitive/checkbox-group'); var e = _interopRequireWildcard(_checkboxgroup);var _jsxruntime = require('react/jsx-runtime');var u=c.forwardRef(({className:r,...t},i)=>_jsxruntime.jsx.call(void 0, e.Root,{ref:i,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "grid gap-2",r),...t}));u.displayName="CheckboxGroup";var s=c.forwardRef(({className:r,...t},i)=>_jsxruntime.jsx.call(void 0, e.Item,{ref:i,className:_chunk4XRBMJ5Qcjs.a.call(void 0, ["border-input peer flex size-4 shrink-0 rounded-sm border","hover:border-primary","aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground","focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2","disabled:pointer-events-none disabled:opacity-50"],r),...t,children:_jsxruntime.jsx.call(void 0, e.CheckboxGroupIndicator,{className:"flex size-full items-center justify-center text-current",children:_jsxruntime.jsx.call(void 0, _reacticons.CheckIcon,{className:"size-3.5"})})}));s.displayName="CheckboxGroupItem";exports.CheckboxGroup = u; exports.CheckboxGroupItem = s;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";var _chunk4XRBMJ5Qcjs = require('../chunk-4XRBMJ5Q.cjs');var _react = require('react'); var c = _interopRequireWildcard(_react);var _reacticons = require('@radix-ui/react-icons');var _checkboxgroup = require('@codefast-ui/checkbox-group'); var e = _interopRequireWildcard(_checkboxgroup);var _jsxruntime = require('react/jsx-runtime');var u=c.forwardRef(({className:r,...t},i)=>_jsxruntime.jsx.call(void 0, e.Root,{ref:i,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "grid gap-2",r),...t}));u.displayName="CheckboxGroup";var s=c.forwardRef(({className:r,...t},i)=>_jsxruntime.jsx.call(void 0, e.Item,{ref:i,className:_chunk4XRBMJ5Qcjs.a.call(void 0, ["border-input peer flex size-4 shrink-0 rounded-sm border","hover:border-primary","aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground","focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2","disabled:pointer-events-none disabled:opacity-50"],r),...t,children:_jsxruntime.jsx.call(void 0, e.CheckboxGroupIndicator,{className:"flex size-full items-center justify-center text-current",children:_jsxruntime.jsx.call(void 0, _reacticons.CheckIcon,{className:"size-3.5"})})}));s.displayName="CheckboxGroupItem";exports.CheckboxGroup = u; exports.CheckboxGroupItem = s;
2
2
  //# sourceMappingURL=checkbox-group.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/components/checkbox-group.cjs","../../src/components/checkbox-group.tsx"],"names":["CheckboxGroup","className","props","forwardedRef","jsx","cn","CheckboxGroupItem","CheckIcon"],"mappings":"AAAA,uWAAY,CAAC,yDAAyC,uECE/B,mDACG,oHACc,+CAYpC,IAFEA,CAAAA,CAAsB,CAAA,CAAA,UAAA,CAC1B,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,CAAwB,CAAA,IAAA,CAAvB,CAA4B,GAAA,CAAKD,CAAAA,CAAc,SAAA,CAAWE,iCAAAA,YAAG,CAAcJ,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,CAEvG,CAAA,CAEAF,CAAAA,CAAc,WAAA,CAAc,eAAA,CAS5B,IAAMM,CAAAA,CAA0B,CAAA,CAAA,UAAA,CAC9B,CAAC,CAAE,SAAA,CAAAL,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,CAAwB,CAAA,IAAA,CAAvB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,CAEP,0DAAA,CACA,sBAAA,CACA,0FAAA,CACA,8EAAA,CACA,kDACF,CAAA,CACAJ,CACF,CAAA,CACC,GAAGC,CAAAA,CAEJ,QAAA,CAAAE,6BAAAA,CAAwB,CAAA,sBAAA,CAAvB,CAA8C,SAAA,CAAU,yDAAA,CACvD,QAAA,CAAAA,6BAAAA,qBAACG,CAAA,CAAU,SAAA,CAAU,UAAA,CAAW,CAAA,CAClC,CAAA,CACF,CAEJ,CAAA,CAEAD,CAAAA,CAAkB,WAAA,CAAc,mBAAA,CAAA,yDAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/components/checkbox-group.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport { CheckIcon } from '@radix-ui/react-icons';\nimport * as CheckboxGroupPrimitive from '@codefast/primitive/checkbox-group';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroup\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupElement = React.ElementRef<typeof CheckboxGroupPrimitive.Root>;\ntype CheckboxGroupProps = React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Root>;\n\nconst CheckboxGroup = React.forwardRef<CheckboxGroupElement, CheckboxGroupProps>(\n ({ className, ...props }, forwardedRef) => (\n <CheckboxGroupPrimitive.Root ref={forwardedRef} className={cn('grid gap-2', className)} {...props} />\n ),\n);\n\nCheckboxGroup.displayName = 'CheckboxGroup';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroupItem\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupItemElement = React.ElementRef<typeof CheckboxGroupPrimitive.Item>;\ntype CheckboxGroupItemProps = React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Item>;\n\nconst CheckboxGroupItem = React.forwardRef<CheckboxGroupItemElement, CheckboxGroupItemProps>(\n ({ className, ...props }, forwardedRef) => (\n <CheckboxGroupPrimitive.Item\n ref={forwardedRef}\n className={cn(\n [\n 'border-input peer flex size-4 shrink-0 rounded-sm border',\n 'hover:border-primary',\n 'aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground',\n 'focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2',\n 'disabled:pointer-events-none disabled:opacity-50',\n ],\n className,\n )}\n {...props}\n >\n <CheckboxGroupPrimitive.CheckboxGroupIndicator className=\"flex size-full items-center justify-center text-current\">\n <CheckIcon className=\"size-3.5\" />\n </CheckboxGroupPrimitive.CheckboxGroupIndicator>\n </CheckboxGroupPrimitive.Item>\n ),\n);\n\nCheckboxGroupItem.displayName = 'CheckboxGroupItem';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { CheckboxGroup, CheckboxGroupItem, type CheckboxGroupProps, type CheckboxGroupItemProps };\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/components/checkbox-group.cjs","../../src/components/checkbox-group.tsx"],"names":["CheckboxGroup","className","props","forwardedRef","jsx","cn","CheckboxGroupItem","CheckIcon"],"mappings":"AAAA,uWAAY,CAAC,yDAAyC,uECE/B,mDACG,6GACc,+CAYpC,IAFEA,CAAAA,CAAsB,CAAA,CAAA,UAAA,CAC1B,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,CAAwB,CAAA,IAAA,CAAvB,CAA4B,GAAA,CAAKD,CAAAA,CAAc,SAAA,CAAWE,iCAAAA,YAAG,CAAcJ,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,CAEvG,CAAA,CAEAF,CAAAA,CAAc,WAAA,CAAc,eAAA,CAS5B,IAAMM,CAAAA,CAA0B,CAAA,CAAA,UAAA,CAC9B,CAAC,CAAE,SAAA,CAAAL,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,CAAwB,CAAA,IAAA,CAAvB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,CAEP,0DAAA,CACA,sBAAA,CACA,0FAAA,CACA,8EAAA,CACA,kDACF,CAAA,CACAJ,CACF,CAAA,CACC,GAAGC,CAAAA,CAEJ,QAAA,CAAAE,6BAAAA,CAAwB,CAAA,sBAAA,CAAvB,CAA8C,SAAA,CAAU,yDAAA,CACvD,QAAA,CAAAA,6BAAAA,qBAACG,CAAA,CAAU,SAAA,CAAU,UAAA,CAAW,CAAA,CAClC,CAAA,CACF,CAEJ,CAAA,CAEAD,CAAAA,CAAkB,WAAA,CAAc,mBAAA,CAAA,yDAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/components/checkbox-group.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport { CheckIcon } from '@radix-ui/react-icons';\nimport * as CheckboxGroupPrimitive from '@codefast-ui/checkbox-group';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroup\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupElement = React.ElementRef<typeof CheckboxGroupPrimitive.Root>;\ntype CheckboxGroupProps = React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Root>;\n\nconst CheckboxGroup = React.forwardRef<CheckboxGroupElement, CheckboxGroupProps>(\n ({ className, ...props }, forwardedRef) => (\n <CheckboxGroupPrimitive.Root ref={forwardedRef} className={cn('grid gap-2', className)} {...props} />\n ),\n);\n\nCheckboxGroup.displayName = 'CheckboxGroup';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroupItem\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupItemElement = React.ElementRef<typeof CheckboxGroupPrimitive.Item>;\ntype CheckboxGroupItemProps = React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Item>;\n\nconst CheckboxGroupItem = React.forwardRef<CheckboxGroupItemElement, CheckboxGroupItemProps>(\n ({ className, ...props }, forwardedRef) => (\n <CheckboxGroupPrimitive.Item\n ref={forwardedRef}\n className={cn(\n [\n 'border-input peer flex size-4 shrink-0 rounded-sm border',\n 'hover:border-primary',\n 'aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground',\n 'focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2',\n 'disabled:pointer-events-none disabled:opacity-50',\n ],\n className,\n )}\n {...props}\n >\n <CheckboxGroupPrimitive.CheckboxGroupIndicator className=\"flex size-full items-center justify-center text-current\">\n <CheckIcon className=\"size-3.5\" />\n </CheckboxGroupPrimitive.CheckboxGroupIndicator>\n </CheckboxGroupPrimitive.Item>\n ),\n);\n\nCheckboxGroupItem.displayName = 'CheckboxGroupItem';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { CheckboxGroup, CheckboxGroupItem, type CheckboxGroupProps, type CheckboxGroupItemProps };\n"]}
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import * as CheckboxGroupPrimitive from '@codefast/primitive/checkbox-group';
2
+ import * as CheckboxGroupPrimitive from '@codefast-ui/checkbox-group';
3
3
 
4
4
  type CheckboxGroupProps = React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Root>;
5
5
  declare const CheckboxGroup: React.ForwardRefExoticComponent<Omit<CheckboxGroupPrimitive.CheckboxGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import * as CheckboxGroupPrimitive from '@codefast/primitive/checkbox-group';
2
+ import * as CheckboxGroupPrimitive from '@codefast-ui/checkbox-group';
3
3
 
4
4
  type CheckboxGroupProps = React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Root>;
5
5
  declare const CheckboxGroup: React.ForwardRefExoticComponent<Omit<CheckboxGroupPrimitive.CheckboxGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -1,2 +1,2 @@
1
- "use client";import{a as p}from"../chunk-VRBUDJBH.js";import*as c from"react";import{CheckIcon as m}from"@radix-ui/react-icons";import*as e from"@codefast/primitive/checkbox-group";import{jsx as o}from"react/jsx-runtime";var u=c.forwardRef(({className:r,...t},i)=>o(e.Root,{ref:i,className:p("grid gap-2",r),...t}));u.displayName="CheckboxGroup";var s=c.forwardRef(({className:r,...t},i)=>o(e.Item,{ref:i,className:p(["border-input peer flex size-4 shrink-0 rounded-sm border","hover:border-primary","aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground","focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2","disabled:pointer-events-none disabled:opacity-50"],r),...t,children:o(e.CheckboxGroupIndicator,{className:"flex size-full items-center justify-center text-current",children:o(m,{className:"size-3.5"})})}));s.displayName="CheckboxGroupItem";export{u as CheckboxGroup,s as CheckboxGroupItem};
1
+ "use client";import{a as p}from"../chunk-VRBUDJBH.js";import*as c from"react";import{CheckIcon as m}from"@radix-ui/react-icons";import*as e from"@codefast-ui/checkbox-group";import{jsx as o}from"react/jsx-runtime";var u=c.forwardRef(({className:r,...t},i)=>o(e.Root,{ref:i,className:p("grid gap-2",r),...t}));u.displayName="CheckboxGroup";var s=c.forwardRef(({className:r,...t},i)=>o(e.Item,{ref:i,className:p(["border-input peer flex size-4 shrink-0 rounded-sm border","hover:border-primary","aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground","focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2","disabled:pointer-events-none disabled:opacity-50"],r),...t,children:o(e.CheckboxGroupIndicator,{className:"flex size-full items-center justify-center text-current",children:o(m,{className:"size-3.5"})})}));s.displayName="CheckboxGroupItem";export{u as CheckboxGroup,s as CheckboxGroupItem};
2
2
  //# sourceMappingURL=checkbox-group.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/checkbox-group.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { CheckIcon } from '@radix-ui/react-icons';\nimport * as CheckboxGroupPrimitive from '@codefast/primitive/checkbox-group';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroup\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupElement = React.ElementRef<typeof CheckboxGroupPrimitive.Root>;\ntype CheckboxGroupProps = React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Root>;\n\nconst CheckboxGroup = React.forwardRef<CheckboxGroupElement, CheckboxGroupProps>(\n ({ className, ...props }, forwardedRef) => (\n <CheckboxGroupPrimitive.Root ref={forwardedRef} className={cn('grid gap-2', className)} {...props} />\n ),\n);\n\nCheckboxGroup.displayName = 'CheckboxGroup';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroupItem\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupItemElement = React.ElementRef<typeof CheckboxGroupPrimitive.Item>;\ntype CheckboxGroupItemProps = React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Item>;\n\nconst CheckboxGroupItem = React.forwardRef<CheckboxGroupItemElement, CheckboxGroupItemProps>(\n ({ className, ...props }, forwardedRef) => (\n <CheckboxGroupPrimitive.Item\n ref={forwardedRef}\n className={cn(\n [\n 'border-input peer flex size-4 shrink-0 rounded-sm border',\n 'hover:border-primary',\n 'aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground',\n 'focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2',\n 'disabled:pointer-events-none disabled:opacity-50',\n ],\n className,\n )}\n {...props}\n >\n <CheckboxGroupPrimitive.CheckboxGroupIndicator className=\"flex size-full items-center justify-center text-current\">\n <CheckIcon className=\"size-3.5\" />\n </CheckboxGroupPrimitive.CheckboxGroupIndicator>\n </CheckboxGroupPrimitive.Item>\n ),\n);\n\nCheckboxGroupItem.displayName = 'CheckboxGroupItem';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { CheckboxGroup, CheckboxGroupItem, type CheckboxGroupProps, type CheckboxGroupItemProps };\n"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,OAAS,aAAAC,MAAiB,wBAC1B,UAAYC,MAA4B,qCAYpC,cAAAC,MAAA,oBAFJ,IAAMC,EAAsB,aAC1B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAwB,OAAvB,CAA4B,IAAKI,EAAc,UAAWC,EAAG,aAAcH,CAAS,EAAI,GAAGC,EAAO,CAEvG,EAEAF,EAAc,YAAc,gBAS5B,IAAMK,EAA0B,aAC9B,CAAC,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAwB,OAAvB,CACC,IAAKI,EACL,UAAWC,EACT,CACE,2DACA,uBACA,2FACA,+EACA,kDACF,EACAH,CACF,EACC,GAAGC,EAEJ,SAAAH,EAAwB,yBAAvB,CAA8C,UAAU,0DACvD,SAAAA,EAACO,EAAA,CAAU,UAAU,WAAW,EAClC,EACF,CAEJ,EAEAD,EAAkB,YAAc","names":["React","CheckIcon","CheckboxGroupPrimitive","jsx","CheckboxGroup","className","props","forwardedRef","cn","CheckboxGroupItem","CheckIcon"]}
1
+ {"version":3,"sources":["../../src/components/checkbox-group.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { CheckIcon } from '@radix-ui/react-icons';\nimport * as CheckboxGroupPrimitive from '@codefast-ui/checkbox-group';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroup\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupElement = React.ElementRef<typeof CheckboxGroupPrimitive.Root>;\ntype CheckboxGroupProps = React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Root>;\n\nconst CheckboxGroup = React.forwardRef<CheckboxGroupElement, CheckboxGroupProps>(\n ({ className, ...props }, forwardedRef) => (\n <CheckboxGroupPrimitive.Root ref={forwardedRef} className={cn('grid gap-2', className)} {...props} />\n ),\n);\n\nCheckboxGroup.displayName = 'CheckboxGroup';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroupItem\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupItemElement = React.ElementRef<typeof CheckboxGroupPrimitive.Item>;\ntype CheckboxGroupItemProps = React.ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Item>;\n\nconst CheckboxGroupItem = React.forwardRef<CheckboxGroupItemElement, CheckboxGroupItemProps>(\n ({ className, ...props }, forwardedRef) => (\n <CheckboxGroupPrimitive.Item\n ref={forwardedRef}\n className={cn(\n [\n 'border-input peer flex size-4 shrink-0 rounded-sm border',\n 'hover:border-primary',\n 'aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground',\n 'focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2',\n 'disabled:pointer-events-none disabled:opacity-50',\n ],\n className,\n )}\n {...props}\n >\n <CheckboxGroupPrimitive.CheckboxGroupIndicator className=\"flex size-full items-center justify-center text-current\">\n <CheckIcon className=\"size-3.5\" />\n </CheckboxGroupPrimitive.CheckboxGroupIndicator>\n </CheckboxGroupPrimitive.Item>\n ),\n);\n\nCheckboxGroupItem.displayName = 'CheckboxGroupItem';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { CheckboxGroup, CheckboxGroupItem, type CheckboxGroupProps, type CheckboxGroupItemProps };\n"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,OAAS,aAAAC,MAAiB,wBAC1B,UAAYC,MAA4B,8BAYpC,cAAAC,MAAA,oBAFJ,IAAMC,EAAsB,aAC1B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAwB,OAAvB,CAA4B,IAAKI,EAAc,UAAWC,EAAG,aAAcH,CAAS,EAAI,GAAGC,EAAO,CAEvG,EAEAF,EAAc,YAAc,gBAS5B,IAAMK,EAA0B,aAC9B,CAAC,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAwB,OAAvB,CACC,IAAKI,EACL,UAAWC,EACT,CACE,2DACA,uBACA,2FACA,+EACA,kDACF,EACAH,CACF,EACC,GAAGC,EAEJ,SAAAH,EAAwB,yBAAvB,CAA8C,UAAU,0DACvD,SAAAA,EAACO,EAAA,CAAU,UAAU,WAAW,EAClC,EACF,CAEJ,EAEAD,EAAkB,YAAc","names":["React","CheckIcon","CheckboxGroupPrimitive","jsx","CheckboxGroup","className","props","forwardedRef","cn","CheckboxGroupItem","CheckIcon"]}
@@ -13,7 +13,7 @@ declare const Command: React.ForwardRefExoticComponent<Omit<{
13
13
  ref?: React.Ref<HTMLDivElement>;
14
14
  } & {
15
15
  asChild?: boolean;
16
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
16
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
17
17
  label?: string;
18
18
  shouldFilter?: boolean;
19
19
  filter?: (value: string, search: string, keywords?: string[]) => number;
@@ -31,7 +31,7 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
31
31
  ref?: React.Ref<HTMLInputElement>;
32
32
  } & {
33
33
  asChild?: boolean;
34
- }, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & {
34
+ }, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
35
35
  value?: string;
36
36
  onValueChange?: (search: string) => void;
37
37
  } & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
@@ -42,7 +42,7 @@ declare const CommandList: React.ForwardRefExoticComponent<Omit<{
42
42
  ref?: React.Ref<HTMLDivElement>;
43
43
  } & {
44
44
  asChild?: boolean;
45
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
45
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
46
46
  label?: string;
47
47
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
48
48
  type CommandEmptyProps = React.ComponentPropsWithoutRef<typeof Command$1.Empty>;
@@ -52,7 +52,7 @@ declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
52
52
  ref?: React.Ref<HTMLDivElement>;
53
53
  } & {
54
54
  asChild?: boolean;
55
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
55
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
56
56
  type CommandGroupProps = React.ComponentPropsWithoutRef<typeof Command$1.Group>;
57
57
  declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
58
58
  children?: React.ReactNode;
@@ -60,7 +60,7 @@ declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
60
60
  ref?: React.Ref<HTMLDivElement>;
61
61
  } & {
62
62
  asChild?: boolean;
63
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
63
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "heading"> & {
64
64
  heading?: React.ReactNode;
65
65
  value?: string;
66
66
  forceMount?: boolean;
@@ -70,7 +70,7 @@ declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<R
70
70
  ref?: React.Ref<HTMLDivElement>;
71
71
  } & {
72
72
  asChild?: boolean;
73
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
73
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
74
74
  alwaysRender?: boolean;
75
75
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
76
76
  type CommandItemProps = React.ComponentPropsWithoutRef<typeof Command$1.Item>;
@@ -80,7 +80,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
80
80
  ref?: React.Ref<HTMLDivElement>;
81
81
  } & {
82
82
  asChild?: boolean;
83
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "disabled" | "value" | "onSelect"> & {
83
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "value" | "disabled"> & {
84
84
  disabled?: boolean;
85
85
  onSelect?: (value: string) => void;
86
86
  value?: string;
@@ -94,7 +94,7 @@ declare const CommandLoading: React.ForwardRefExoticComponent<Omit<{
94
94
  ref?: React.Ref<HTMLDivElement>;
95
95
  } & {
96
96
  asChild?: boolean;
97
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
97
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
98
98
  progress?: number;
99
99
  label?: string;
100
100
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -13,7 +13,7 @@ declare const Command: React.ForwardRefExoticComponent<Omit<{
13
13
  ref?: React.Ref<HTMLDivElement>;
14
14
  } & {
15
15
  asChild?: boolean;
16
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
16
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
17
17
  label?: string;
18
18
  shouldFilter?: boolean;
19
19
  filter?: (value: string, search: string, keywords?: string[]) => number;
@@ -31,7 +31,7 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
31
31
  ref?: React.Ref<HTMLInputElement>;
32
32
  } & {
33
33
  asChild?: boolean;
34
- }, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & {
34
+ }, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
35
35
  value?: string;
36
36
  onValueChange?: (search: string) => void;
37
37
  } & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
@@ -42,7 +42,7 @@ declare const CommandList: React.ForwardRefExoticComponent<Omit<{
42
42
  ref?: React.Ref<HTMLDivElement>;
43
43
  } & {
44
44
  asChild?: boolean;
45
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
45
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
46
46
  label?: string;
47
47
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
48
48
  type CommandEmptyProps = React.ComponentPropsWithoutRef<typeof Command$1.Empty>;
@@ -52,7 +52,7 @@ declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
52
52
  ref?: React.Ref<HTMLDivElement>;
53
53
  } & {
54
54
  asChild?: boolean;
55
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
55
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
56
56
  type CommandGroupProps = React.ComponentPropsWithoutRef<typeof Command$1.Group>;
57
57
  declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
58
58
  children?: React.ReactNode;
@@ -60,7 +60,7 @@ declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
60
60
  ref?: React.Ref<HTMLDivElement>;
61
61
  } & {
62
62
  asChild?: boolean;
63
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
63
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "heading"> & {
64
64
  heading?: React.ReactNode;
65
65
  value?: string;
66
66
  forceMount?: boolean;
@@ -70,7 +70,7 @@ declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<R
70
70
  ref?: React.Ref<HTMLDivElement>;
71
71
  } & {
72
72
  asChild?: boolean;
73
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
73
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
74
74
  alwaysRender?: boolean;
75
75
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
76
76
  type CommandItemProps = React.ComponentPropsWithoutRef<typeof Command$1.Item>;
@@ -80,7 +80,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
80
80
  ref?: React.Ref<HTMLDivElement>;
81
81
  } & {
82
82
  asChild?: boolean;
83
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "disabled" | "value" | "onSelect"> & {
83
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "value" | "disabled"> & {
84
84
  disabled?: boolean;
85
85
  onSelect?: (value: string) => void;
86
86
  value?: string;
@@ -94,7 +94,7 @@ declare const CommandLoading: React.ForwardRefExoticComponent<Omit<{
94
94
  ref?: React.Ref<HTMLDivElement>;
95
95
  } & {
96
96
  asChild?: boolean;
97
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
97
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
98
98
  progress?: number;
99
99
  label?: string;
100
100
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";var _chunk5JGCIAX3cjs = require('../chunk-5JGCIAX3.cjs');var _chunkLSBI35ZEcjs = require('../chunk-LSBI35ZE.cjs');var _react = require('react'); var i = _interopRequireWildcard(_react);var _numberinput = require('@codefast/primitive/number-input'); var e = _interopRequireWildcard(_numberinput);var _reacticons = require('@radix-ui/react-icons');var _jsxruntime = require('react/jsx-runtime');var{root:V,input:g}=_chunk5JGCIAX3cjs.a.call(void 0, ),B= exports.NumberInput =i.forwardRef(({ariaDecrementLabel:u,ariaIncrementLabel:a,className:p,inputSize:n,defaultValue:s,disabled:l,formatOptions:c,id:d,max:I,min:N,readOnly:f,step:b,value:v,onChange:P,...R},h)=>_jsxruntime.jsxs.call(void 0, e.Root,{ariaDecrementLabel:u,ariaIncrementLabel:a,className:V({inputSize:n,className:["pr-0",p]}),defaultValue:s,disabled:l,formatOptions:c,id:d,max:I,min:N,readOnly:f,step:b,value:v,onChange:P,children:[_jsxruntime.jsx.call(void 0, e.Item,{ref:h,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",className:g({inputSize:n}),inputMode:"numeric",spellCheck:"false",...R}),_jsxruntime.jsxs.call(void 0, "div",{className:"ml-auto grid h-full divide-y rounded-r-md border-l",children:[_jsxruntime.jsx.call(void 0, e.IncrementButton,{className:_chunkLSBI35ZEcjs.a.call(void 0, {className:"h-full rounded-none rounded-tr-md",icon:!0,variant:"ghost"}),children:_jsxruntime.jsx.call(void 0, _reacticons.ChevronUpIcon,{})}),_jsxruntime.jsx.call(void 0, e.DecrementButton,{className:_chunkLSBI35ZEcjs.a.call(void 0, {className:"rounded-tb-md h-full rounded-none",icon:!0,variant:"ghost"}),children:_jsxruntime.jsx.call(void 0, _reacticons.ChevronDownIcon,{})})]})]}));B.displayName="NumberInput";exports.NumberInput = B;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";var _chunk5JGCIAX3cjs = require('../chunk-5JGCIAX3.cjs');var _chunkLSBI35ZEcjs = require('../chunk-LSBI35ZE.cjs');var _react = require('react'); var i = _interopRequireWildcard(_react);var _numberinput = require('@codefast-ui/number-input'); var e = _interopRequireWildcard(_numberinput);var _reacticons = require('@radix-ui/react-icons');var _jsxruntime = require('react/jsx-runtime');var{root:V,input:g}=_chunk5JGCIAX3cjs.a.call(void 0, ),B= exports.NumberInput =i.forwardRef(({ariaDecrementLabel:u,ariaIncrementLabel:a,className:p,inputSize:n,defaultValue:s,disabled:l,formatOptions:c,id:d,max:I,min:N,readOnly:f,step:b,value:v,onChange:P,...R},h)=>_jsxruntime.jsxs.call(void 0, e.Root,{ariaDecrementLabel:u,ariaIncrementLabel:a,className:V({inputSize:n,className:["pr-0",p]}),defaultValue:s,disabled:l,formatOptions:c,id:d,max:I,min:N,readOnly:f,step:b,value:v,onChange:P,children:[_jsxruntime.jsx.call(void 0, e.Item,{ref:h,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",className:g({inputSize:n}),inputMode:"numeric",spellCheck:"false",...R}),_jsxruntime.jsxs.call(void 0, "div",{className:"ml-auto grid h-full divide-y rounded-r-md border-l",children:[_jsxruntime.jsx.call(void 0, e.IncrementButton,{className:_chunkLSBI35ZEcjs.a.call(void 0, {className:"h-full rounded-none rounded-tr-md",icon:!0,variant:"ghost"}),children:_jsxruntime.jsx.call(void 0, _reacticons.ChevronUpIcon,{})}),_jsxruntime.jsx.call(void 0, e.DecrementButton,{className:_chunkLSBI35ZEcjs.a.call(void 0, {className:"rounded-tb-md h-full rounded-none",icon:!0,variant:"ghost"}),children:_jsxruntime.jsx.call(void 0, _reacticons.ChevronDownIcon,{})})]})]}));B.displayName="NumberInput";exports.NumberInput = B;
2
2
  //# sourceMappingURL=number-input.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/components/number-input.cjs","../../src/components/number-input.tsx"],"names":["root","input","inputVariants","NumberInput","ariaDecrementLabel","ariaIncrementLabel","className","inputSize","defaultValue","disabled","formatOptions","id","max","min","readOnly","step","value","onChange","props","forwardedRef","jsxs","jsx","buttonVariants","ChevronUpIcon","ChevronDownIcon"],"mappings":"AAAA,uWAAY,CAAC,yDAAyC,yDAA0C,uECEzE,8GACe,mDACS,+CAoDzC,GAhDA,CAAE,IAAA,CAAAA,CAAAA,CAAM,KAAA,CAAAC,CAAM,CAAA,CAAIC,iCAAAA,CAAc,CAYhCC,CAAAA,uBAAoB,CAAA,CAAA,UAAA,CACxB,CACE,CACE,kBAAA,CAAAC,CAAAA,CACA,kBAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,aAAA,CAAAC,CAAAA,CACA,EAAA,CAAAC,CAAAA,CACA,GAAA,CAAAC,CAAAA,CACA,GAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CACAC,CAAAA,CAAAA,EAEAC,8BAAAA,CAAsB,CAAA,IAAA,CAArB,CACC,kBAAA,CAAoBhB,CAAAA,CACpB,kBAAA,CAAoBC,CAAAA,CACpB,SAAA,CAAWL,CAAAA,CAAK,CAAE,SAAA,CAAAO,CAAAA,CAAW,SAAA,CAAW,CAAC,MAAA,CAAQD,CAAS,CAAE,CAAC,CAAA,CAC7D,YAAA,CAAcE,CAAAA,CACd,QAAA,CAAUC,CAAAA,CACV,aAAA,CAAeC,CAAAA,CACf,EAAA,CAAIC,CAAAA,CACJ,GAAA,CAAKC,CAAAA,CACL,GAAA,CAAKC,CAAAA,CACL,QAAA,CAAUC,CAAAA,CACV,IAAA,CAAMC,CAAAA,CACN,KAAA,CAAOC,CAAAA,CACP,QAAA,CAAUC,CAAAA,CAEV,QAAA,CAAA,CAAAI,6BAAAA,CAAsB,CAAA,IAAA,CAArB,CACC,GAAA,CAAKF,CAAAA,CACL,cAAA,CAAe,KAAA,CACf,YAAA,CAAa,KAAA,CACb,WAAA,CAAY,KAAA,CACZ,SAAA,CAAWlB,CAAAA,CAAM,CAAE,SAAA,CAAAM,CAAU,CAAC,CAAA,CAC9B,SAAA,CAAU,SAAA,CACV,UAAA,CAAW,OAAA,CACV,GAAGW,CAAAA,CACN,CAAA,CACAE,8BAAAA,KAAC,CAAA,CAAI,SAAA,CAAU,oDAAA,CACb,QAAA,CAAA,CAAAC,6BAAAA,CAAsB,CAAA,eAAA,CAArB,CACC,SAAA,CAAWC,iCAAAA,CACT,SAAA,CAAW,mCAAA,CACX,IAAA,CAAM,CAAA,CAAA,CACN,OAAA,CAAS,OACX,CAAC,CAAA,CAED,QAAA,CAAAD,6BAAAA,yBAACE,CAAA,CAAA,CAAc,CAAA,CACjB,CAAA,CACAF,6BAAAA,CAAsB,CAAA,eAAA,CAArB,CACC,SAAA,CAAWC,iCAAAA,CACT,SAAA,CAAW,mCAAA,CACX,IAAA,CAAM,CAAA,CAAA,CACN,OAAA,CAAS,OACX,CAAC,CAAA,CAED,QAAA,CAAAD,6BAAAA,2BAACG,CAAA,CAAA,CAAgB,CAAA,CACnB,CAAA,CAAA,CACF,CAAA,CAAA,CACF,CAEJ,CAAA,CAEArB,CAAAA,CAAY,WAAA,CAAc,aAAA,CAAA,wBAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/components/number-input.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport * as NumberInputPrimitive from '@codefast/primitive/number-input';\nimport { ChevronDownIcon, ChevronUpIcon } from '@radix-ui/react-icons';\nimport { buttonVariants } from '@/styles/button-variants';\nimport { inputVariants, type InputVariantsProps } from '@/styles/input-variants';\n\nconst { root, input } = inputVariants();\n\n/* -----------------------------------------------------------------------------\n * Component: NumberInput\n * -------------------------------------------------------------------------- */\n\ntype NumberInputElement = React.ElementRef<typeof NumberInputPrimitive.Item>;\ninterface NumberInputProps\n extends InputVariantsProps,\n React.ComponentProps<typeof NumberInputPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof NumberInputPrimitive.Item> {}\n\nconst NumberInput = React.forwardRef<NumberInputElement, NumberInputProps>(\n (\n {\n ariaDecrementLabel,\n ariaIncrementLabel,\n className,\n inputSize,\n defaultValue,\n disabled,\n formatOptions,\n id,\n max,\n min,\n readOnly,\n step,\n value,\n onChange,\n ...props\n },\n forwardedRef,\n ) => (\n <NumberInputPrimitive.Root\n ariaDecrementLabel={ariaDecrementLabel}\n ariaIncrementLabel={ariaIncrementLabel}\n className={root({ inputSize, className: ['pr-0', className] })}\n defaultValue={defaultValue}\n disabled={disabled}\n formatOptions={formatOptions}\n id={id}\n max={max}\n min={min}\n readOnly={readOnly}\n step={step}\n value={value}\n onChange={onChange}\n >\n <NumberInputPrimitive.Item\n ref={forwardedRef}\n autoCapitalize=\"off\"\n autoComplete=\"off\"\n autoCorrect=\"off\"\n className={input({ inputSize })}\n inputMode=\"numeric\"\n spellCheck=\"false\"\n {...props}\n />\n <div className=\"ml-auto grid h-full divide-y rounded-r-md border-l\">\n <NumberInputPrimitive.IncrementButton\n className={buttonVariants({\n className: 'h-full rounded-none rounded-tr-md',\n icon: true,\n variant: 'ghost',\n })}\n >\n <ChevronUpIcon />\n </NumberInputPrimitive.IncrementButton>\n <NumberInputPrimitive.DecrementButton\n className={buttonVariants({\n className: 'rounded-tb-md h-full rounded-none',\n icon: true,\n variant: 'ghost',\n })}\n >\n <ChevronDownIcon />\n </NumberInputPrimitive.DecrementButton>\n </div>\n </NumberInputPrimitive.Root>\n ),\n);\n\nNumberInput.displayName = 'NumberInput';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { NumberInput, type NumberInputProps };\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/components/number-input.cjs","../../src/components/number-input.tsx"],"names":["root","input","inputVariants","NumberInput","ariaDecrementLabel","ariaIncrementLabel","className","inputSize","defaultValue","disabled","formatOptions","id","max","min","readOnly","step","value","onChange","props","forwardedRef","jsxs","jsx","buttonVariants","ChevronUpIcon","ChevronDownIcon"],"mappings":"AAAA,uWAAY,CAAC,yDAAyC,yDAA0C,uECEzE,uGACe,mDACS,+CAoDzC,GAhDA,CAAE,IAAA,CAAAA,CAAAA,CAAM,KAAA,CAAAC,CAAM,CAAA,CAAIC,iCAAAA,CAAc,CAYhCC,CAAAA,uBAAoB,CAAA,CAAA,UAAA,CACxB,CACE,CACE,kBAAA,CAAAC,CAAAA,CACA,kBAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,aAAA,CAAAC,CAAAA,CACA,EAAA,CAAAC,CAAAA,CACA,GAAA,CAAAC,CAAAA,CACA,GAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CACAC,CAAAA,CAAAA,EAEAC,8BAAAA,CAAsB,CAAA,IAAA,CAArB,CACC,kBAAA,CAAoBhB,CAAAA,CACpB,kBAAA,CAAoBC,CAAAA,CACpB,SAAA,CAAWL,CAAAA,CAAK,CAAE,SAAA,CAAAO,CAAAA,CAAW,SAAA,CAAW,CAAC,MAAA,CAAQD,CAAS,CAAE,CAAC,CAAA,CAC7D,YAAA,CAAcE,CAAAA,CACd,QAAA,CAAUC,CAAAA,CACV,aAAA,CAAeC,CAAAA,CACf,EAAA,CAAIC,CAAAA,CACJ,GAAA,CAAKC,CAAAA,CACL,GAAA,CAAKC,CAAAA,CACL,QAAA,CAAUC,CAAAA,CACV,IAAA,CAAMC,CAAAA,CACN,KAAA,CAAOC,CAAAA,CACP,QAAA,CAAUC,CAAAA,CAEV,QAAA,CAAA,CAAAI,6BAAAA,CAAsB,CAAA,IAAA,CAArB,CACC,GAAA,CAAKF,CAAAA,CACL,cAAA,CAAe,KAAA,CACf,YAAA,CAAa,KAAA,CACb,WAAA,CAAY,KAAA,CACZ,SAAA,CAAWlB,CAAAA,CAAM,CAAE,SAAA,CAAAM,CAAU,CAAC,CAAA,CAC9B,SAAA,CAAU,SAAA,CACV,UAAA,CAAW,OAAA,CACV,GAAGW,CAAAA,CACN,CAAA,CACAE,8BAAAA,KAAC,CAAA,CAAI,SAAA,CAAU,oDAAA,CACb,QAAA,CAAA,CAAAC,6BAAAA,CAAsB,CAAA,eAAA,CAArB,CACC,SAAA,CAAWC,iCAAAA,CACT,SAAA,CAAW,mCAAA,CACX,IAAA,CAAM,CAAA,CAAA,CACN,OAAA,CAAS,OACX,CAAC,CAAA,CAED,QAAA,CAAAD,6BAAAA,yBAACE,CAAA,CAAA,CAAc,CAAA,CACjB,CAAA,CACAF,6BAAAA,CAAsB,CAAA,eAAA,CAArB,CACC,SAAA,CAAWC,iCAAAA,CACT,SAAA,CAAW,mCAAA,CACX,IAAA,CAAM,CAAA,CAAA,CACN,OAAA,CAAS,OACX,CAAC,CAAA,CAED,QAAA,CAAAD,6BAAAA,2BAACG,CAAA,CAAA,CAAgB,CAAA,CACnB,CAAA,CAAA,CACF,CAAA,CAAA,CACF,CAEJ,CAAA,CAEArB,CAAAA,CAAY,WAAA,CAAc,aAAA,CAAA,wBAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/components/number-input.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport * as NumberInputPrimitive from '@codefast-ui/number-input';\nimport { ChevronDownIcon, ChevronUpIcon } from '@radix-ui/react-icons';\nimport { buttonVariants } from '@/styles/button-variants';\nimport { inputVariants, type InputVariantsProps } from '@/styles/input-variants';\n\nconst { root, input } = inputVariants();\n\n/* -----------------------------------------------------------------------------\n * Component: NumberInput\n * -------------------------------------------------------------------------- */\n\ntype NumberInputElement = React.ElementRef<typeof NumberInputPrimitive.Item>;\ninterface NumberInputProps\n extends InputVariantsProps,\n React.ComponentProps<typeof NumberInputPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof NumberInputPrimitive.Item> {}\n\nconst NumberInput = React.forwardRef<NumberInputElement, NumberInputProps>(\n (\n {\n ariaDecrementLabel,\n ariaIncrementLabel,\n className,\n inputSize,\n defaultValue,\n disabled,\n formatOptions,\n id,\n max,\n min,\n readOnly,\n step,\n value,\n onChange,\n ...props\n },\n forwardedRef,\n ) => (\n <NumberInputPrimitive.Root\n ariaDecrementLabel={ariaDecrementLabel}\n ariaIncrementLabel={ariaIncrementLabel}\n className={root({ inputSize, className: ['pr-0', className] })}\n defaultValue={defaultValue}\n disabled={disabled}\n formatOptions={formatOptions}\n id={id}\n max={max}\n min={min}\n readOnly={readOnly}\n step={step}\n value={value}\n onChange={onChange}\n >\n <NumberInputPrimitive.Item\n ref={forwardedRef}\n autoCapitalize=\"off\"\n autoComplete=\"off\"\n autoCorrect=\"off\"\n className={input({ inputSize })}\n inputMode=\"numeric\"\n spellCheck=\"false\"\n {...props}\n />\n <div className=\"ml-auto grid h-full divide-y rounded-r-md border-l\">\n <NumberInputPrimitive.IncrementButton\n className={buttonVariants({\n className: 'h-full rounded-none rounded-tr-md',\n icon: true,\n variant: 'ghost',\n })}\n >\n <ChevronUpIcon />\n </NumberInputPrimitive.IncrementButton>\n <NumberInputPrimitive.DecrementButton\n className={buttonVariants({\n className: 'rounded-tb-md h-full rounded-none',\n icon: true,\n variant: 'ghost',\n })}\n >\n <ChevronDownIcon />\n </NumberInputPrimitive.DecrementButton>\n </div>\n </NumberInputPrimitive.Root>\n ),\n);\n\nNumberInput.displayName = 'NumberInput';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { NumberInput, type NumberInputProps };\n"]}
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import * as NumberInputPrimitive from '@codefast/primitive/number-input';
2
+ import * as NumberInputPrimitive from '@codefast-ui/number-input';
3
3
  import { InputVariantsProps } from '../styles/input-variants.cjs';
4
4
  import 'tailwind-variants';
5
5
  import 'tailwind-variants/dist/config.js';
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import * as NumberInputPrimitive from '@codefast/primitive/number-input';
2
+ import * as NumberInputPrimitive from '@codefast-ui/number-input';
3
3
  import { InputVariantsProps } from '../styles/input-variants.js';
4
4
  import 'tailwind-variants';
5
5
  import 'tailwind-variants/dist/config.js';
@@ -1,2 +1,2 @@
1
- "use client";import{a as o}from"../chunk-FIU6XBX4.js";import{a as r}from"../chunk-YGPIWXWP.js";import*as i from"react";import*as e from"@codefast/primitive/number-input";import{ChevronDownIcon as y,ChevronUpIcon as C}from"@radix-ui/react-icons";import{jsx as t,jsxs as m}from"react/jsx-runtime";var{root:V,input:g}=o(),B=i.forwardRef(({ariaDecrementLabel:u,ariaIncrementLabel:a,className:p,inputSize:n,defaultValue:s,disabled:l,formatOptions:c,id:d,max:I,min:N,readOnly:f,step:b,value:v,onChange:P,...R},h)=>m(e.Root,{ariaDecrementLabel:u,ariaIncrementLabel:a,className:V({inputSize:n,className:["pr-0",p]}),defaultValue:s,disabled:l,formatOptions:c,id:d,max:I,min:N,readOnly:f,step:b,value:v,onChange:P,children:[t(e.Item,{ref:h,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",className:g({inputSize:n}),inputMode:"numeric",spellCheck:"false",...R}),m("div",{className:"ml-auto grid h-full divide-y rounded-r-md border-l",children:[t(e.IncrementButton,{className:r({className:"h-full rounded-none rounded-tr-md",icon:!0,variant:"ghost"}),children:t(C,{})}),t(e.DecrementButton,{className:r({className:"rounded-tb-md h-full rounded-none",icon:!0,variant:"ghost"}),children:t(y,{})})]})]}));B.displayName="NumberInput";export{B as NumberInput};
1
+ "use client";import{a as o}from"../chunk-FIU6XBX4.js";import{a as r}from"../chunk-YGPIWXWP.js";import*as i from"react";import*as e from"@codefast-ui/number-input";import{ChevronDownIcon as y,ChevronUpIcon as C}from"@radix-ui/react-icons";import{jsx as t,jsxs as m}from"react/jsx-runtime";var{root:V,input:g}=o(),B=i.forwardRef(({ariaDecrementLabel:u,ariaIncrementLabel:a,className:p,inputSize:n,defaultValue:s,disabled:l,formatOptions:c,id:d,max:I,min:N,readOnly:f,step:b,value:v,onChange:P,...R},h)=>m(e.Root,{ariaDecrementLabel:u,ariaIncrementLabel:a,className:V({inputSize:n,className:["pr-0",p]}),defaultValue:s,disabled:l,formatOptions:c,id:d,max:I,min:N,readOnly:f,step:b,value:v,onChange:P,children:[t(e.Item,{ref:h,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",className:g({inputSize:n}),inputMode:"numeric",spellCheck:"false",...R}),m("div",{className:"ml-auto grid h-full divide-y rounded-r-md border-l",children:[t(e.IncrementButton,{className:r({className:"h-full rounded-none rounded-tr-md",icon:!0,variant:"ghost"}),children:t(C,{})}),t(e.DecrementButton,{className:r({className:"rounded-tb-md h-full rounded-none",icon:!0,variant:"ghost"}),children:t(y,{})})]})]}));B.displayName="NumberInput";export{B as NumberInput};
2
2
  //# sourceMappingURL=number-input.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/number-input.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as NumberInputPrimitive from '@codefast/primitive/number-input';\nimport { ChevronDownIcon, ChevronUpIcon } from '@radix-ui/react-icons';\nimport { buttonVariants } from '@/styles/button-variants';\nimport { inputVariants, type InputVariantsProps } from '@/styles/input-variants';\n\nconst { root, input } = inputVariants();\n\n/* -----------------------------------------------------------------------------\n * Component: NumberInput\n * -------------------------------------------------------------------------- */\n\ntype NumberInputElement = React.ElementRef<typeof NumberInputPrimitive.Item>;\ninterface NumberInputProps\n extends InputVariantsProps,\n React.ComponentProps<typeof NumberInputPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof NumberInputPrimitive.Item> {}\n\nconst NumberInput = React.forwardRef<NumberInputElement, NumberInputProps>(\n (\n {\n ariaDecrementLabel,\n ariaIncrementLabel,\n className,\n inputSize,\n defaultValue,\n disabled,\n formatOptions,\n id,\n max,\n min,\n readOnly,\n step,\n value,\n onChange,\n ...props\n },\n forwardedRef,\n ) => (\n <NumberInputPrimitive.Root\n ariaDecrementLabel={ariaDecrementLabel}\n ariaIncrementLabel={ariaIncrementLabel}\n className={root({ inputSize, className: ['pr-0', className] })}\n defaultValue={defaultValue}\n disabled={disabled}\n formatOptions={formatOptions}\n id={id}\n max={max}\n min={min}\n readOnly={readOnly}\n step={step}\n value={value}\n onChange={onChange}\n >\n <NumberInputPrimitive.Item\n ref={forwardedRef}\n autoCapitalize=\"off\"\n autoComplete=\"off\"\n autoCorrect=\"off\"\n className={input({ inputSize })}\n inputMode=\"numeric\"\n spellCheck=\"false\"\n {...props}\n />\n <div className=\"ml-auto grid h-full divide-y rounded-r-md border-l\">\n <NumberInputPrimitive.IncrementButton\n className={buttonVariants({\n className: 'h-full rounded-none rounded-tr-md',\n icon: true,\n variant: 'ghost',\n })}\n >\n <ChevronUpIcon />\n </NumberInputPrimitive.IncrementButton>\n <NumberInputPrimitive.DecrementButton\n className={buttonVariants({\n className: 'rounded-tb-md h-full rounded-none',\n icon: true,\n variant: 'ghost',\n })}\n >\n <ChevronDownIcon />\n </NumberInputPrimitive.DecrementButton>\n </div>\n </NumberInputPrimitive.Root>\n ),\n);\n\nNumberInput.displayName = 'NumberInput';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { NumberInput, type NumberInputProps };\n"],"mappings":"+FAEA,UAAYA,MAAW,QACvB,UAAYC,MAA0B,mCACtC,OAAS,mBAAAC,EAAiB,iBAAAC,MAAqB,wBAoDzC,cAAAC,EAUA,QAAAC,MAVA,oBAhDN,GAAM,CAAE,KAAAC,EAAM,MAAAC,CAAM,EAAIC,EAAc,EAYhCC,EAAoB,aACxB,CACE,CACE,mBAAAC,EACA,mBAAAC,EACA,UAAAC,EACA,UAAAC,EACA,aAAAC,EACA,SAAAC,EACA,cAAAC,EACA,GAAAC,EACA,IAAAC,EACA,IAAAC,EACA,SAAAC,EACA,KAAAC,EACA,MAAAC,EACA,SAAAC,EACA,GAAGC,CACL,EACAC,IAEApB,EAAsB,OAArB,CACC,mBAAoBK,EACpB,mBAAoBC,EACpB,UAAWL,EAAK,CAAE,UAAAO,EAAW,UAAW,CAAC,OAAQD,CAAS,CAAE,CAAC,EAC7D,aAAcE,EACd,SAAUC,EACV,cAAeC,EACf,GAAIC,EACJ,IAAKC,EACL,IAAKC,EACL,SAAUC,EACV,KAAMC,EACN,MAAOC,EACP,SAAUC,EAEV,UAAAnB,EAAsB,OAArB,CACC,IAAKqB,EACL,eAAe,MACf,aAAa,MACb,YAAY,MACZ,UAAWlB,EAAM,CAAE,UAAAM,CAAU,CAAC,EAC9B,UAAU,UACV,WAAW,QACV,GAAGW,EACN,EACAnB,EAAC,OAAI,UAAU,qDACb,UAAAD,EAAsB,kBAArB,CACC,UAAWsB,EAAe,CACxB,UAAW,oCACX,KAAM,GACN,QAAS,OACX,CAAC,EAED,SAAAtB,EAACuB,EAAA,EAAc,EACjB,EACAvB,EAAsB,kBAArB,CACC,UAAWsB,EAAe,CACxB,UAAW,oCACX,KAAM,GACN,QAAS,OACX,CAAC,EAED,SAAAtB,EAACwB,EAAA,EAAgB,EACnB,GACF,GACF,CAEJ,EAEAnB,EAAY,YAAc","names":["React","NumberInputPrimitive","ChevronDownIcon","ChevronUpIcon","jsx","jsxs","root","input","inputVariants","NumberInput","ariaDecrementLabel","ariaIncrementLabel","className","inputSize","defaultValue","disabled","formatOptions","id","max","min","readOnly","step","value","onChange","props","forwardedRef","buttonVariants","ChevronUpIcon","ChevronDownIcon"]}
1
+ {"version":3,"sources":["../../src/components/number-input.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as NumberInputPrimitive from '@codefast-ui/number-input';\nimport { ChevronDownIcon, ChevronUpIcon } from '@radix-ui/react-icons';\nimport { buttonVariants } from '@/styles/button-variants';\nimport { inputVariants, type InputVariantsProps } from '@/styles/input-variants';\n\nconst { root, input } = inputVariants();\n\n/* -----------------------------------------------------------------------------\n * Component: NumberInput\n * -------------------------------------------------------------------------- */\n\ntype NumberInputElement = React.ElementRef<typeof NumberInputPrimitive.Item>;\ninterface NumberInputProps\n extends InputVariantsProps,\n React.ComponentProps<typeof NumberInputPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof NumberInputPrimitive.Item> {}\n\nconst NumberInput = React.forwardRef<NumberInputElement, NumberInputProps>(\n (\n {\n ariaDecrementLabel,\n ariaIncrementLabel,\n className,\n inputSize,\n defaultValue,\n disabled,\n formatOptions,\n id,\n max,\n min,\n readOnly,\n step,\n value,\n onChange,\n ...props\n },\n forwardedRef,\n ) => (\n <NumberInputPrimitive.Root\n ariaDecrementLabel={ariaDecrementLabel}\n ariaIncrementLabel={ariaIncrementLabel}\n className={root({ inputSize, className: ['pr-0', className] })}\n defaultValue={defaultValue}\n disabled={disabled}\n formatOptions={formatOptions}\n id={id}\n max={max}\n min={min}\n readOnly={readOnly}\n step={step}\n value={value}\n onChange={onChange}\n >\n <NumberInputPrimitive.Item\n ref={forwardedRef}\n autoCapitalize=\"off\"\n autoComplete=\"off\"\n autoCorrect=\"off\"\n className={input({ inputSize })}\n inputMode=\"numeric\"\n spellCheck=\"false\"\n {...props}\n />\n <div className=\"ml-auto grid h-full divide-y rounded-r-md border-l\">\n <NumberInputPrimitive.IncrementButton\n className={buttonVariants({\n className: 'h-full rounded-none rounded-tr-md',\n icon: true,\n variant: 'ghost',\n })}\n >\n <ChevronUpIcon />\n </NumberInputPrimitive.IncrementButton>\n <NumberInputPrimitive.DecrementButton\n className={buttonVariants({\n className: 'rounded-tb-md h-full rounded-none',\n icon: true,\n variant: 'ghost',\n })}\n >\n <ChevronDownIcon />\n </NumberInputPrimitive.DecrementButton>\n </div>\n </NumberInputPrimitive.Root>\n ),\n);\n\nNumberInput.displayName = 'NumberInput';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { NumberInput, type NumberInputProps };\n"],"mappings":"+FAEA,UAAYA,MAAW,QACvB,UAAYC,MAA0B,4BACtC,OAAS,mBAAAC,EAAiB,iBAAAC,MAAqB,wBAoDzC,cAAAC,EAUA,QAAAC,MAVA,oBAhDN,GAAM,CAAE,KAAAC,EAAM,MAAAC,CAAM,EAAIC,EAAc,EAYhCC,EAAoB,aACxB,CACE,CACE,mBAAAC,EACA,mBAAAC,EACA,UAAAC,EACA,UAAAC,EACA,aAAAC,EACA,SAAAC,EACA,cAAAC,EACA,GAAAC,EACA,IAAAC,EACA,IAAAC,EACA,SAAAC,EACA,KAAAC,EACA,MAAAC,EACA,SAAAC,EACA,GAAGC,CACL,EACAC,IAEApB,EAAsB,OAArB,CACC,mBAAoBK,EACpB,mBAAoBC,EACpB,UAAWL,EAAK,CAAE,UAAAO,EAAW,UAAW,CAAC,OAAQD,CAAS,CAAE,CAAC,EAC7D,aAAcE,EACd,SAAUC,EACV,cAAeC,EACf,GAAIC,EACJ,IAAKC,EACL,IAAKC,EACL,SAAUC,EACV,KAAMC,EACN,MAAOC,EACP,SAAUC,EAEV,UAAAnB,EAAsB,OAArB,CACC,IAAKqB,EACL,eAAe,MACf,aAAa,MACb,YAAY,MACZ,UAAWlB,EAAM,CAAE,UAAAM,CAAU,CAAC,EAC9B,UAAU,UACV,WAAW,QACV,GAAGW,EACN,EACAnB,EAAC,OAAI,UAAU,qDACb,UAAAD,EAAsB,kBAArB,CACC,UAAWsB,EAAe,CACxB,UAAW,oCACX,KAAM,GACN,QAAS,OACX,CAAC,EAED,SAAAtB,EAACuB,EAAA,EAAc,EACjB,EACAvB,EAAsB,kBAArB,CACC,UAAWsB,EAAe,CACxB,UAAW,oCACX,KAAM,GACN,QAAS,OACX,CAAC,EAED,SAAAtB,EAACwB,EAAA,EAAgB,EACnB,GACF,GACF,CAEJ,EAEAnB,EAAY,YAAc","names":["React","NumberInputPrimitive","ChevronDownIcon","ChevronUpIcon","jsx","jsxs","root","input","inputVariants","NumberInput","ariaDecrementLabel","ariaIncrementLabel","className","inputSize","defaultValue","disabled","formatOptions","id","max","min","readOnly","step","value","onChange","props","forwardedRef","buttonVariants","ChevronUpIcon","ChevronDownIcon"]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";var _chunkSL4DH4JNcjs = require('../chunk-SL4DH4JN.cjs');var _chunk5JGCIAX3cjs = require('../chunk-5JGCIAX3.cjs');require('../chunk-4XRBMJ5Q.cjs');var _react = require('react'); var m = _interopRequireWildcard(_react);var _input = require('@codefast/primitive/input'); var t = _interopRequireWildcard(_input);var _jsxruntime = require('react/jsx-runtime');var{root:x,input:R}=_chunk5JGCIAX3cjs.a.call(void 0, ),c= exports.TextInput =m.forwardRef(({inputSize:i,className:a,loading:o,loaderPosition:n,prefix:f,suffix:s,...u},I)=>_jsxruntime.jsxs.call(void 0, t.Root,{className:x({inputSize:i,className:a}),children:[o&&n==="prefix"?_jsxruntime.jsx.call(void 0, _chunkSL4DH4JNcjs.a,{}):f,_jsxruntime.jsx.call(void 0, t.Item,{ref:I,className:R({inputSize:i}),...u}),o&&n==="suffix"?_jsxruntime.jsx.call(void 0, _chunkSL4DH4JNcjs.a,{}):s]}));c.displayName="TextInput";exports.TextInput = c;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";var _chunk5JGCIAX3cjs = require('../chunk-5JGCIAX3.cjs');var _chunkSL4DH4JNcjs = require('../chunk-SL4DH4JN.cjs');require('../chunk-4XRBMJ5Q.cjs');var _react = require('react'); var m = _interopRequireWildcard(_react);var _input = require('@codefast-ui/input'); var t = _interopRequireWildcard(_input);var _jsxruntime = require('react/jsx-runtime');var{root:x,input:R}=_chunk5JGCIAX3cjs.a.call(void 0, ),c= exports.TextInput =m.forwardRef(({inputSize:i,className:a,loading:o,loaderPosition:n,prefix:f,suffix:s,...u},I)=>_jsxruntime.jsxs.call(void 0, t.Root,{className:x({inputSize:i,className:a}),children:[o&&n==="prefix"?_jsxruntime.jsx.call(void 0, _chunkSL4DH4JNcjs.a,{}):f,_jsxruntime.jsx.call(void 0, t.Item,{ref:I,className:R({inputSize:i}),...u}),o&&n==="suffix"?_jsxruntime.jsx.call(void 0, _chunkSL4DH4JNcjs.a,{}):s]}));c.displayName="TextInput";exports.TextInput = c;
2
2
  //# sourceMappingURL=text-input.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/components/text-input.cjs","../../src/components/text-input.tsx"],"names":["root","input","inputVariants","TextInput","inputSize","className","loading","loaderPosition","prefix","suffix","props","forwardedRef","jsxs","jsx","Spinner"],"mappings":"AAAA,uWAAY,CAAC,yDAAyC,yDAA0C,iCAA8B,uECEvG,2FACS,+CA2B5B,GAnBE,CAAE,IAAA,CAAAA,CAAAA,CAAM,KAAA,CAAAC,CAAM,CAAA,CAAIC,iCAAAA,CAAc,CAiBhCC,CAAAA,qBAAkB,CAAA,CAAA,UAAA,CACtB,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,SAAA,CAAAC,CAAAA,CAAW,OAAA,CAAAC,CAAAA,CAAS,cAAA,CAAAC,CAAAA,CAAgB,MAAA,CAAAC,CAAAA,CAAQ,MAAA,CAAAC,CAAAA,CAAQ,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAC5EC,8BAAAA,CAAgB,CAAA,IAAA,CAAf,CAAoB,SAAA,CAAWZ,CAAAA,CAAK,CAAE,SAAA,CAAAI,CAAAA,CAAW,SAAA,CAAAC,CAAU,CAAC,CAAA,CAC1D,QAAA,CAAA,CAAAC,CAAAA,EAAWC,CAAAA,GAAmB,QAAA,CAAWM,6BAAAA,mBAACC,CAAA,CAAA,CAAQ,CAAA,CAAKN,CAAAA,CACxDK,6BAAAA,CAAgB,CAAA,IAAA,CAAf,CAAoB,GAAA,CAAKF,CAAAA,CAAc,SAAA,CAAWV,CAAAA,CAAM,CAAE,SAAA,CAAAG,CAAU,CAAC,CAAA,CAAI,GAAGM,CAAAA,CAAO,CAAA,CACnFJ,CAAAA,EAAWC,CAAAA,GAAmB,QAAA,CAAWM,6BAAAA,mBAACC,CAAA,CAAA,CAAQ,CAAA,CAAKL,CAAAA,CAAAA,CAC1D,CAEJ,CAAA,CAEAN,CAAAA,CAAU,WAAA,CAAc,WAAA,CAAA,sBAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/components/text-input.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport * as InputPrimitive from '@codefast/primitive/input';\nimport { Spinner } from '@/components/spinner';\nimport { inputVariants, type InputVariantsProps } from '@/styles/input-variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: Input\n * -------------------------------------------------------------------------- */\n\nconst { root, input } = inputVariants();\n\n/* -----------------------------------------------------------------------------\n * Component: TextInput\n * -------------------------------------------------------------------------- */\n\ntype TextInputElement = React.ElementRef<typeof InputPrimitive.Item>;\ninterface TextInputProps\n extends InputVariantsProps,\n React.ComponentProps<typeof InputPrimitive.Root>,\n Omit<React.ComponentPropsWithoutRef<typeof InputPrimitive.Item>, 'prefix'> {\n loaderPosition?: 'prefix' | 'suffix';\n loading?: boolean;\n prefix?: React.ReactNode;\n suffix?: React.ReactNode;\n}\n\nconst TextInput = React.forwardRef<TextInputElement, TextInputProps>(\n ({ inputSize, className, loading, loaderPosition, prefix, suffix, ...props }, forwardedRef) => (\n <InputPrimitive.Root className={root({ inputSize, className })}>\n {loading && loaderPosition === 'prefix' ? <Spinner /> : prefix}\n <InputPrimitive.Item ref={forwardedRef} className={input({ inputSize })} {...props} />\n {loading && loaderPosition === 'suffix' ? <Spinner /> : suffix}\n </InputPrimitive.Root>\n ),\n);\n\nTextInput.displayName = 'TextInput';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { TextInput, type TextInputProps };\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/components/text-input.cjs","../../src/components/text-input.tsx"],"names":["root","input","inputVariants","TextInput","inputSize","className","loading","loaderPosition","prefix","suffix","props","forwardedRef","jsxs","jsx","Spinner"],"mappings":"AAAA,uWAAY,CAAC,yDAAyC,yDAA0C,iCAA8B,uECEvG,oFACS,+CA2B5B,GAnBE,CAAE,IAAA,CAAAA,CAAAA,CAAM,KAAA,CAAAC,CAAM,CAAA,CAAIC,iCAAAA,CAAc,CAiBhCC,CAAAA,qBAAkB,CAAA,CAAA,UAAA,CACtB,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,SAAA,CAAAC,CAAAA,CAAW,OAAA,CAAAC,CAAAA,CAAS,cAAA,CAAAC,CAAAA,CAAgB,MAAA,CAAAC,CAAAA,CAAQ,MAAA,CAAAC,CAAAA,CAAQ,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAC5EC,8BAAAA,CAAgB,CAAA,IAAA,CAAf,CAAoB,SAAA,CAAWZ,CAAAA,CAAK,CAAE,SAAA,CAAAI,CAAAA,CAAW,SAAA,CAAAC,CAAU,CAAC,CAAA,CAC1D,QAAA,CAAA,CAAAC,CAAAA,EAAWC,CAAAA,GAAmB,QAAA,CAAWM,6BAAAA,mBAACC,CAAA,CAAA,CAAQ,CAAA,CAAKN,CAAAA,CACxDK,6BAAAA,CAAgB,CAAA,IAAA,CAAf,CAAoB,GAAA,CAAKF,CAAAA,CAAc,SAAA,CAAWV,CAAAA,CAAM,CAAE,SAAA,CAAAG,CAAU,CAAC,CAAA,CAAI,GAAGM,CAAAA,CAAO,CAAA,CACnFJ,CAAAA,EAAWC,CAAAA,GAAmB,QAAA,CAAWM,6BAAAA,mBAACC,CAAA,CAAA,CAAQ,CAAA,CAAKL,CAAAA,CAAAA,CAC1D,CAEJ,CAAA,CAEAN,CAAAA,CAAU,WAAA,CAAc,WAAA,CAAA,sBAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/components/text-input.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport * as InputPrimitive from '@codefast-ui/input';\nimport { Spinner } from '@/components/spinner';\nimport { inputVariants, type InputVariantsProps } from '@/styles/input-variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: Input\n * -------------------------------------------------------------------------- */\n\nconst { root, input } = inputVariants();\n\n/* -----------------------------------------------------------------------------\n * Component: TextInput\n * -------------------------------------------------------------------------- */\n\ntype TextInputElement = React.ElementRef<typeof InputPrimitive.Item>;\ninterface TextInputProps\n extends InputVariantsProps,\n React.ComponentProps<typeof InputPrimitive.Root>,\n Omit<React.ComponentPropsWithoutRef<typeof InputPrimitive.Item>, 'prefix'> {\n loaderPosition?: 'prefix' | 'suffix';\n loading?: boolean;\n prefix?: React.ReactNode;\n suffix?: React.ReactNode;\n}\n\nconst TextInput = React.forwardRef<TextInputElement, TextInputProps>(\n ({ inputSize, className, loading, loaderPosition, prefix, suffix, ...props }, forwardedRef) => (\n <InputPrimitive.Root className={root({ inputSize, className })}>\n {loading && loaderPosition === 'prefix' ? <Spinner /> : prefix}\n <InputPrimitive.Item ref={forwardedRef} className={input({ inputSize })} {...props} />\n {loading && loaderPosition === 'suffix' ? <Spinner /> : suffix}\n </InputPrimitive.Root>\n ),\n);\n\nTextInput.displayName = 'TextInput';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { TextInput, type TextInputProps };\n"]}
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import * as InputPrimitive from '@codefast/primitive/input';
2
+ import * as InputPrimitive from '@codefast-ui/input';
3
3
  import { InputVariantsProps } from '../styles/input-variants.cjs';
4
4
  import 'tailwind-variants';
5
5
  import 'tailwind-variants/dist/config.js';
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import * as InputPrimitive from '@codefast/primitive/input';
2
+ import * as InputPrimitive from '@codefast-ui/input';
3
3
  import { InputVariantsProps } from '../styles/input-variants.js';
4
4
  import 'tailwind-variants';
5
5
  import 'tailwind-variants/dist/config.js';
@@ -1,2 +1,2 @@
1
- "use client";import{a as e}from"../chunk-K4DIHWHX.js";import{a as r}from"../chunk-FIU6XBX4.js";import"../chunk-VRBUDJBH.js";import*as m from"react";import*as t from"@codefast/primitive/input";import{jsx as p,jsxs as P}from"react/jsx-runtime";var{root:x,input:R}=r(),c=m.forwardRef(({inputSize:i,className:a,loading:o,loaderPosition:n,prefix:f,suffix:s,...u},I)=>P(t.Root,{className:x({inputSize:i,className:a}),children:[o&&n==="prefix"?p(e,{}):f,p(t.Item,{ref:I,className:R({inputSize:i}),...u}),o&&n==="suffix"?p(e,{}):s]}));c.displayName="TextInput";export{c as TextInput};
1
+ "use client";import{a as r}from"../chunk-FIU6XBX4.js";import{a as e}from"../chunk-K4DIHWHX.js";import"../chunk-VRBUDJBH.js";import*as m from"react";import*as t from"@codefast-ui/input";import{jsx as p,jsxs as P}from"react/jsx-runtime";var{root:x,input:R}=r(),c=m.forwardRef(({inputSize:i,className:a,loading:o,loaderPosition:n,prefix:f,suffix:s,...u},I)=>P(t.Root,{className:x({inputSize:i,className:a}),children:[o&&n==="prefix"?p(e,{}):f,p(t.Item,{ref:I,className:R({inputSize:i}),...u}),o&&n==="suffix"?p(e,{}):s]}));c.displayName="TextInput";export{c as TextInput};
2
2
  //# sourceMappingURL=text-input.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/text-input.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as InputPrimitive from '@codefast/primitive/input';\nimport { Spinner } from '@/components/spinner';\nimport { inputVariants, type InputVariantsProps } from '@/styles/input-variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: Input\n * -------------------------------------------------------------------------- */\n\nconst { root, input } = inputVariants();\n\n/* -----------------------------------------------------------------------------\n * Component: TextInput\n * -------------------------------------------------------------------------- */\n\ntype TextInputElement = React.ElementRef<typeof InputPrimitive.Item>;\ninterface TextInputProps\n extends InputVariantsProps,\n React.ComponentProps<typeof InputPrimitive.Root>,\n Omit<React.ComponentPropsWithoutRef<typeof InputPrimitive.Item>, 'prefix'> {\n loaderPosition?: 'prefix' | 'suffix';\n loading?: boolean;\n prefix?: React.ReactNode;\n suffix?: React.ReactNode;\n}\n\nconst TextInput = React.forwardRef<TextInputElement, TextInputProps>(\n ({ inputSize, className, loading, loaderPosition, prefix, suffix, ...props }, forwardedRef) => (\n <InputPrimitive.Root className={root({ inputSize, className })}>\n {loading && loaderPosition === 'prefix' ? <Spinner /> : prefix}\n <InputPrimitive.Item ref={forwardedRef} className={input({ inputSize })} {...props} />\n {loading && loaderPosition === 'suffix' ? <Spinner /> : suffix}\n </InputPrimitive.Root>\n ),\n);\n\nTextInput.displayName = 'TextInput';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { TextInput, type TextInputProps };\n"],"mappings":"4HAEA,UAAYA,MAAW,QACvB,UAAYC,MAAoB,4BA2B5B,OAC4C,OAAAC,EAD5C,QAAAC,MAAA,oBAnBJ,GAAM,CAAE,KAAAC,EAAM,MAAAC,CAAM,EAAIC,EAAc,EAiBhCC,EAAkB,aACtB,CAAC,CAAE,UAAAC,EAAW,UAAAC,EAAW,QAAAC,EAAS,eAAAC,EAAgB,OAAAC,EAAQ,OAAAC,EAAQ,GAAGC,CAAM,EAAGC,IAC5EZ,EAAgB,OAAf,CAAoB,UAAWC,EAAK,CAAE,UAAAI,EAAW,UAAAC,CAAU,CAAC,EAC1D,UAAAC,GAAWC,IAAmB,SAAWT,EAACc,EAAA,EAAQ,EAAKJ,EACxDV,EAAgB,OAAf,CAAoB,IAAKa,EAAc,UAAWV,EAAM,CAAE,UAAAG,CAAU,CAAC,EAAI,GAAGM,EAAO,EACnFJ,GAAWC,IAAmB,SAAWT,EAACc,EAAA,EAAQ,EAAKH,GAC1D,CAEJ,EAEAN,EAAU,YAAc","names":["React","InputPrimitive","jsx","jsxs","root","input","inputVariants","TextInput","inputSize","className","loading","loaderPosition","prefix","suffix","props","forwardedRef","Spinner"]}
1
+ {"version":3,"sources":["../../src/components/text-input.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as InputPrimitive from '@codefast-ui/input';\nimport { Spinner } from '@/components/spinner';\nimport { inputVariants, type InputVariantsProps } from '@/styles/input-variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: Input\n * -------------------------------------------------------------------------- */\n\nconst { root, input } = inputVariants();\n\n/* -----------------------------------------------------------------------------\n * Component: TextInput\n * -------------------------------------------------------------------------- */\n\ntype TextInputElement = React.ElementRef<typeof InputPrimitive.Item>;\ninterface TextInputProps\n extends InputVariantsProps,\n React.ComponentProps<typeof InputPrimitive.Root>,\n Omit<React.ComponentPropsWithoutRef<typeof InputPrimitive.Item>, 'prefix'> {\n loaderPosition?: 'prefix' | 'suffix';\n loading?: boolean;\n prefix?: React.ReactNode;\n suffix?: React.ReactNode;\n}\n\nconst TextInput = React.forwardRef<TextInputElement, TextInputProps>(\n ({ inputSize, className, loading, loaderPosition, prefix, suffix, ...props }, forwardedRef) => (\n <InputPrimitive.Root className={root({ inputSize, className })}>\n {loading && loaderPosition === 'prefix' ? <Spinner /> : prefix}\n <InputPrimitive.Item ref={forwardedRef} className={input({ inputSize })} {...props} />\n {loading && loaderPosition === 'suffix' ? <Spinner /> : suffix}\n </InputPrimitive.Root>\n ),\n);\n\nTextInput.displayName = 'TextInput';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { TextInput, type TextInputProps };\n"],"mappings":"4HAEA,UAAYA,MAAW,QACvB,UAAYC,MAAoB,qBA2B5B,OAC4C,OAAAC,EAD5C,QAAAC,MAAA,oBAnBJ,GAAM,CAAE,KAAAC,EAAM,MAAAC,CAAM,EAAIC,EAAc,EAiBhCC,EAAkB,aACtB,CAAC,CAAE,UAAAC,EAAW,UAAAC,EAAW,QAAAC,EAAS,eAAAC,EAAgB,OAAAC,EAAQ,OAAAC,EAAQ,GAAGC,CAAM,EAAGC,IAC5EZ,EAAgB,OAAf,CAAoB,UAAWC,EAAK,CAAE,UAAAI,EAAW,UAAAC,CAAU,CAAC,EAC1D,UAAAC,GAAWC,IAAmB,SAAWT,EAACc,EAAA,EAAQ,EAAKJ,EACxDV,EAAgB,OAAf,CAAoB,IAAKa,EAAc,UAAWV,EAAM,CAAE,UAAAG,CAAU,CAAC,EAAI,GAAGM,EAAO,EACnFJ,GAAWC,IAAmB,SAAWT,EAACc,EAAA,EAAQ,EAAKH,GAC1D,CAEJ,EAEAN,EAAU,YAAc","names":["React","InputPrimitive","jsx","jsxs","root","input","inputVariants","TextInput","inputSize","className","loading","loaderPosition","prefix","suffix","props","forwardedRef","Spinner"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codefast/ui",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/codefastlabs/codefast",
@@ -396,7 +396,9 @@
396
396
  "tailwind-merge": "2.5.2",
397
397
  "tailwind-variants": "0.2.1",
398
398
  "vaul": "0.9.6",
399
- "@codefast/primitive": "0.1.14"
399
+ "@codefast-ui/checkbox-group": "0.1.15",
400
+ "@codefast-ui/input": "0.1.15",
401
+ "@codefast-ui/number-input": "0.1.15"
400
402
  },
401
403
  "devDependencies": {
402
404
  "@types/lodash": "4.17.9",
@@ -409,9 +411,9 @@
409
411
  "tailwindcss": "3.4.13",
410
412
  "tsup": "8.3.0",
411
413
  "typescript": "5.6.2",
412
- "@codefast/config-typescript": "0.1.14",
413
- "@codefast/eslint-config": "0.1.14",
414
- "@codefast/config-tailwind": "0.1.14"
414
+ "@codefast/config-tailwind": "0.1.15",
415
+ "@codefast/config-typescript": "0.1.15",
416
+ "@codefast/eslint-config": "0.1.15"
415
417
  },
416
418
  "publishConfig": {
417
419
  "access": "public"