@gbmtech/aurora-ui 0.2.3 → 0.2.4

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";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,r)=>{for(var _ in r)__webpack_require__.o(r,_)&&!__webpack_require__.o(e,_)&&Object.defineProperty(e,_,{enumerable:!0,get:r[_]})},__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{badgeVariants:()=>badgeVariants,Badge:()=>Badge});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),utils_cjs_namespaceObject=require("../lib/utils.cjs"),react_slot_namespaceObject=require("@radix-ui/react-slot"),badgeVariants=(0,utils_cjs_namespaceObject.tv)({base:"inline-flex items-center rounded-full border px-2.5 py-0.5 font-semibold text-xs transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",variants:{variant:{default:"border-transparent bg-gbm-sky text-white hover:bg-gbm-sky/80",secondary:"border-transparent bg-gray-50 text-gray-900 hover:bg-gray-50/80",destructive:"border-transparent bg-error text-white hover:bg-error/80",outline:"text-gbm-dark"}},defaultVariants:{variant:"default"}});function Badge({className:e,asChild:r,variant:_,...t}){let a=r?react_slot_namespaceObject.Slot:"span";return(0,jsx_runtime_namespaceObject.jsx)(a,{className:badgeVariants({className:e,variant:_}),...t})}for(var __webpack_i__ in exports.Badge=__webpack_exports__.Badge,exports.badgeVariants=__webpack_exports__.badgeVariants,__webpack_exports__)-1===["Badge","badgeVariants"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
1
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,r)=>{for(var _ in r)__webpack_require__.o(r,_)&&!__webpack_require__.o(e,_)&&Object.defineProperty(e,_,{enumerable:!0,get:r[_]})},__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{badgeVariants:()=>badgeVariants,Badge:()=>Badge});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),utils_cjs_namespaceObject=require("../lib/utils.cjs"),react_slot_namespaceObject=require("@radix-ui/react-slot"),badgeVariants=(0,utils_cjs_namespaceObject.tv)({base:"inline-flex items-center rounded-full border px-2.5 py-0.5 font-semibold text-xs transition-colors focus:outline-none focus:ring-1 focus:ring-gbm-sky",variants:{variant:{default:"border-transparent bg-gbm-sky text-white hover:bg-gbm-sky/80",secondary:"border-transparent bg-gray-50 text-gray-900 hover:bg-gray-50/80",destructive:"border-transparent bg-error text-white hover:bg-error/80",outline:"text-gbm-dark"}},defaultVariants:{variant:"default"}});function Badge({className:e,asChild:r,variant:_,...t}){let a=r?react_slot_namespaceObject.Slot:"span";return(0,jsx_runtime_namespaceObject.jsx)(a,{className:badgeVariants({className:e,variant:_}),...t})}for(var __webpack_i__ in exports.Badge=__webpack_exports__.Badge,exports.badgeVariants=__webpack_exports__.badgeVariants,__webpack_exports__)-1===["Badge","badgeVariants"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
2
2
  //# sourceMappingURL=badge.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\badge.cjs","sources":["webpack://@gbmtech/aurora-ui/./src/components/badge.tsx"],"sourcesContent":["import { ComponentProps, JSX } from 'react'\r\n\r\nimport { VariantProps, tv } from '@/lib/utils'\r\nimport { Slot } from '@radix-ui/react-slot'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Variant: Badge\r\n * -------------------------------------------------------------------------- */\r\n\r\nconst badgeVariants = tv({\r\n base: 'inline-flex items-center rounded-full border px-2.5 py-0.5 font-semibold text-xs transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',\r\n variants: {\r\n variant: {\r\n default: 'border-transparent bg-gbm-sky text-white hover:bg-gbm-sky/80',\r\n secondary:\r\n 'border-transparent bg-gray-50 text-gray-900 hover:bg-gray-50/80',\r\n destructive: 'border-transparent bg-error text-white hover:bg-error/80',\r\n outline: 'text-gbm-dark',\r\n },\r\n },\r\n defaultVariants: {\r\n variant: 'default',\r\n },\r\n})\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Badge\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Badge({\r\n className,\r\n asChild,\r\n variant,\r\n ...props\r\n}: ComponentProps<'span'> &\r\n VariantProps<typeof badgeVariants> & {\r\n asChild?: boolean\r\n }): JSX.Element {\r\n const Component = asChild ? Slot : 'span'\r\n\r\n return (\r\n <Component className={badgeVariants({ className, variant })} {...props} />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { Badge, badgeVariants }\r\n"],"names":["badgeVariants","tv","Badge","className","asChild","variant","props","Component","Slot"],"mappings":"4+BASMA,cAAgBC,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EAAG,CACvB,KAAM,yKACN,SAAU,CACR,QAAS,CACP,QAAS,+DACT,UACE,kEACF,YAAa,2DACb,QAAS,eACX,CACF,EACA,gBAAiB,CACf,QAAS,SACX,CACF,GAMA,SAASC,MAAM,CACbC,UAAAA,CAAS,CACTC,QAAAA,CAAO,CACPC,QAAAA,CAAO,CACP,GAAGC,EAIF,EACD,IAAMC,EAAYH,EAAUI,2BAAAA,IAAIA,CAAG,OAEnC,MACE,oCAACD,EAAAA,CAAU,UAAWP,cAAc,CAAEG,UAAAA,EAAWE,QAAAA,CAAQ,GAAK,GAAGC,CAAK,A,EAE1E,C"}
1
+ {"version":3,"file":"components\\badge.cjs","sources":["webpack://@gbmtech/aurora-ui/./src/components/badge.tsx"],"sourcesContent":["import { ComponentProps, JSX } from 'react'\r\n\r\nimport { VariantProps, tv } from '@/lib/utils'\r\nimport { Slot } from '@radix-ui/react-slot'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Variant: Badge\r\n * -------------------------------------------------------------------------- */\r\n\r\nconst badgeVariants = tv({\r\n base: 'inline-flex items-center rounded-full border px-2.5 py-0.5 font-semibold text-xs transition-colors focus:outline-none focus:ring-1 focus:ring-gbm-sky',\r\n variants: {\r\n variant: {\r\n default: 'border-transparent bg-gbm-sky text-white hover:bg-gbm-sky/80',\r\n secondary:\r\n 'border-transparent bg-gray-50 text-gray-900 hover:bg-gray-50/80',\r\n destructive: 'border-transparent bg-error text-white hover:bg-error/80',\r\n outline: 'text-gbm-dark',\r\n },\r\n },\r\n defaultVariants: {\r\n variant: 'default',\r\n },\r\n})\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Badge\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Badge({\r\n className,\r\n asChild,\r\n variant,\r\n ...props\r\n}: ComponentProps<'span'> &\r\n VariantProps<typeof badgeVariants> & {\r\n asChild?: boolean\r\n }): JSX.Element {\r\n const Component = asChild ? Slot : 'span'\r\n\r\n return (\r\n <Component className={badgeVariants({ className, variant })} {...props} />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { Badge, badgeVariants }\r\n"],"names":["badgeVariants","tv","Badge","className","asChild","variant","props","Component","Slot"],"mappings":"4+BASMA,cAAgBC,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EAAG,CACvB,KAAM,wJACN,SAAU,CACR,QAAS,CACP,QAAS,+DACT,UACE,kEACF,YAAa,2DACb,QAAS,eACX,CACF,EACA,gBAAiB,CACf,QAAS,SACX,CACF,GAMA,SAASC,MAAM,CACbC,UAAAA,CAAS,CACTC,QAAAA,CAAO,CACPC,QAAAA,CAAO,CACP,GAAGC,EAIF,EACD,IAAMC,EAAYH,EAAUI,2BAAAA,IAAIA,CAAG,OAEnC,MACE,oCAACD,EAAAA,CAAU,UAAWP,cAAc,CAAEG,UAAAA,EAAWE,QAAAA,CAAQ,GAAK,GAAGC,CAAK,A,EAE1E,C"}
@@ -1,3 +1,3 @@
1
1
  'use client'
2
- "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var c in _)__webpack_require__.o(_,c)&&!__webpack_require__.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:_[c]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Checkbox:()=>Checkbox});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),ssr_namespaceObject=require("@phosphor-icons/react/dist/ssr"),react_checkbox_namespaceObject=require("@radix-ui/react-checkbox"),utils_cjs_namespaceObject=require("../lib/utils.cjs");function Checkbox({className:e,size:_="md",...c}){return(0,jsx_runtime_namespaceObject.jsx)(react_checkbox_namespaceObject.Root,{className:(0,utils_cjs_namespaceObject.cn)("peer size-4 shrink-0 rounded-sm border border-stroke ring-offset-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gbm-sky focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-gbm-sky data-[state=checked]:bg-gbm-sky data-[state=checked]:text-white",{"size-6":"lg"===_},e),...c,children:(0,jsx_runtime_namespaceObject.jsx)(react_checkbox_namespaceObject.Indicator,{className:(0,utils_cjs_namespaceObject.cn)("flex items-center justify-center text-current"),children:(0,jsx_runtime_namespaceObject.jsx)(ssr_namespaceObject.Check,{weight:"bold",className:(0,utils_cjs_namespaceObject.cn)("size-3",{"size-4":"lg"===_})})})})}for(var __webpack_i__ in exports.Checkbox=__webpack_exports__.Checkbox,__webpack_exports__)-1===["Checkbox"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
2
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var c in _)__webpack_require__.o(_,c)&&!__webpack_require__.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:_[c]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Checkbox:()=>Checkbox});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),ssr_namespaceObject=require("@phosphor-icons/react/dist/ssr"),react_checkbox_namespaceObject=require("@radix-ui/react-checkbox"),utils_cjs_namespaceObject=require("../lib/utils.cjs");function Checkbox({className:e,size:_="md",...c}){return(0,jsx_runtime_namespaceObject.jsx)(react_checkbox_namespaceObject.Root,{className:(0,utils_cjs_namespaceObject.cn)("peer size-4 shrink-0 rounded-sm border border-stroke focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gbm-sky disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-gbm-sky data-[state=checked]:bg-gbm-sky data-[state=checked]:text-white",{"size-6":"lg"===_},e),...c,children:(0,jsx_runtime_namespaceObject.jsx)(react_checkbox_namespaceObject.Indicator,{className:(0,utils_cjs_namespaceObject.cn)("flex items-center justify-center text-current"),children:(0,jsx_runtime_namespaceObject.jsx)(ssr_namespaceObject.Check,{weight:"bold",className:(0,utils_cjs_namespaceObject.cn)("size-3",{"size-4":"lg"===_})})})})}for(var __webpack_i__ in exports.Checkbox=__webpack_exports__.Checkbox,__webpack_exports__)-1===["Checkbox"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
3
3
  //# sourceMappingURL=checkbox.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\checkbox.cjs","sources":["webpack://@gbmtech/aurora-ui/./src/components/checkbox.tsx"],"sourcesContent":["\r\n\r\nimport { Check } from '@phosphor-icons/react/dist/ssr'\r\nimport * as CheckboxPrimitive from '@radix-ui/react-checkbox'\r\nimport { ComponentProps, JSX } from 'react'\r\n\r\nimport { cn } from '@/lib/utils'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Checkbox\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Checkbox({\r\n className,\r\n size = 'md',\r\n ...props\r\n}: ComponentProps<typeof CheckboxPrimitive.Root> & {\r\n size?: 'md' | 'lg'\r\n}): JSX.Element {\r\n return (\r\n <CheckboxPrimitive.Root\r\n className={cn(\r\n 'peer size-4 shrink-0 rounded-sm border border-stroke ring-offset-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gbm-sky focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-gbm-sky data-[state=checked]:bg-gbm-sky data-[state=checked]:text-white',\r\n {\r\n 'size-6': size === 'lg',\r\n },\r\n className\r\n )}\r\n {...props}\r\n >\r\n <CheckboxPrimitive.Indicator\r\n className={cn('flex items-center justify-center text-current')}\r\n >\r\n <Check\r\n weight=\"bold\"\r\n className={cn('size-3', {\r\n 'size-4': size === 'lg',\r\n })}\r\n />\r\n </CheckboxPrimitive.Indicator>\r\n </CheckboxPrimitive.Root>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { Checkbox }\r\n"],"names":["Checkbox","className","size","props","CheckboxPrimitive","cn","Check"],"mappings":";whCAYA,SAASA,SAAS,CAChBC,UAAAA,CAAS,CACTC,KAAAA,EAAO,IAAI,CACX,GAAGC,EAGJ,EACC,MACE,oCAACC,+BAAAA,IAAsB,EACrB,UAAWC,GAAAA,0BAAAA,EAAAA,EACT,oUACA,CACE,SAAUH,OAAAA,CACZ,EACAD,GAED,GAAGE,CAAK,C,SAET,oCAACC,+BAAAA,SAA2B,EAC1B,UAAWC,GAAAA,0BAAAA,EAAAA,EAAG,iD,SAEd,oCAACC,oBAAAA,KAAKA,CAAAA,CACJ,OAAO,OACP,UAAWD,GAAAA,0BAAAA,EAAAA,EAAG,SAAU,CACtB,SAAUH,OAAAA,CACZ,E,MAKV,C"}
1
+ {"version":3,"file":"components\\checkbox.cjs","sources":["webpack://@gbmtech/aurora-ui/./src/components/checkbox.tsx"],"sourcesContent":["\r\n\r\nimport { Check } from '@phosphor-icons/react/dist/ssr'\r\nimport * as CheckboxPrimitive from '@radix-ui/react-checkbox'\r\nimport { ComponentProps, JSX } from 'react'\r\n\r\nimport { cn } from '@/lib/utils'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Checkbox\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Checkbox({\r\n className,\r\n size = 'md',\r\n ...props\r\n}: ComponentProps<typeof CheckboxPrimitive.Root> & {\r\n size?: 'md' | 'lg'\r\n}): JSX.Element {\r\n return (\r\n <CheckboxPrimitive.Root\r\n className={cn(\r\n 'peer size-4 shrink-0 rounded-sm border border-stroke focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gbm-sky disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-gbm-sky data-[state=checked]:bg-gbm-sky data-[state=checked]:text-white',\r\n {\r\n 'size-6': size === 'lg',\r\n },\r\n className\r\n )}\r\n {...props}\r\n >\r\n <CheckboxPrimitive.Indicator\r\n className={cn('flex items-center justify-center text-current')}\r\n >\r\n <Check\r\n weight=\"bold\"\r\n className={cn('size-3', {\r\n 'size-4': size === 'lg',\r\n })}\r\n />\r\n </CheckboxPrimitive.Indicator>\r\n </CheckboxPrimitive.Root>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { Checkbox }\r\n"],"names":["Checkbox","className","size","props","CheckboxPrimitive","cn","Check"],"mappings":";whCAYA,SAASA,SAAS,CAChBC,UAAAA,CAAS,CACTC,KAAAA,EAAO,IAAI,CACX,GAAGC,EAGJ,EACC,MACE,oCAACC,+BAAAA,IAAsB,EACrB,UAAWC,GAAAA,0BAAAA,EAAAA,EACT,sRACA,CACE,SAAUH,OAAAA,CACZ,EACAD,GAED,GAAGE,CAAK,C,SAET,oCAACC,+BAAAA,SAA2B,EAC1B,UAAWC,GAAAA,0BAAAA,EAAAA,EAAG,iD,SAEd,oCAACC,oBAAAA,KAAKA,CAAAA,CACJ,OAAO,OACP,UAAWD,GAAAA,0BAAAA,EAAAA,EAAG,SAAU,CACtB,SAAUH,OAAAA,CACZ,E,MAKV,C"}
@@ -1,3 +1,3 @@
1
1
  'use client'
2
- "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,t)=>{for(var _ in t)__webpack_require__.o(t,_)&&!__webpack_require__.o(e,_)&&Object.defineProperty(e,_,{enumerable:!0,get:t[_]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Input:()=>Input,inputVariants:()=>inputVariants});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),utils_cjs_namespaceObject=require("../lib/utils.cjs"),input_cjs_namespaceObject=require("../primitive/input.cjs"),external_spinner_cjs_namespaceObject=require("./spinner.cjs"),inputVariants=(0,utils_cjs_namespaceObject.tv)({slots:{root:"flex h-12 w-full items-center gap-4 rounded-md border border-stroke bg-background px-4 ring-offset-background placeholder:text-gray-400 focus-within:outline-none focus-within:ring-2 focus-within:ring-gbm-sky focus-within:ring-offset-2 data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50",input:"peer h-full w-full flex-1 overflow-hidden bg-transparent text-base outline-none placeholder:text-gray-400"}}),{input:e,root:t}=inputVariants();function Input({className:_,disabled:r,loaderPosition:a,loading:n,prefix:i,readOnly:p,spinner:s,suffix:c,classNames:u,...o}){return(0,jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Root,{className:t({className:[_,u?.wrapper]}),"data-slot":"input",disabled:r,loaderPosition:a,loading:n,prefix:i,readOnly:p,spinner:s||(0,jsx_runtime_namespaceObject.jsx)(external_spinner_cjs_namespaceObject.Spinner,{}),suffix:c,children:(0,jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Field,{className:e({className:u?.input}),"data-slot":"input-item",...o})})}for(var __webpack_i__ in Input.displayName="Input",exports.Input=__webpack_exports__.Input,exports.inputVariants=__webpack_exports__.inputVariants,__webpack_exports__)-1===["Input","inputVariants"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
2
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var t in _)__webpack_require__.o(_,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:_[t]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Input:()=>Input,inputVariants:()=>inputVariants});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),utils_cjs_namespaceObject=require("../lib/utils.cjs"),input_cjs_namespaceObject=require("../primitive/input.cjs"),external_spinner_cjs_namespaceObject=require("./spinner.cjs"),inputVariants=(0,utils_cjs_namespaceObject.tv)({slots:{root:"flex h-12 w-full items-center gap-4 rounded-md border border-stroke bg-background px-4 placeholder:text-gray-400 focus-within:outline-none focus-within:ring-1 focus-within:ring-gbm-sky data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50",input:"peer h-full w-full flex-1 overflow-hidden bg-transparent text-base outline-none placeholder:text-gray-400"}}),{input:e,root:_}=inputVariants();function Input({className:t,disabled:r,loaderPosition:a,loading:n,prefix:i,readOnly:p,spinner:s,suffix:c,classNames:u,...o}){return(0,jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Root,{className:_({className:[t,u?.wrapper]}),"data-slot":"input",disabled:r,loaderPosition:a,loading:n,prefix:i,readOnly:p,spinner:s||(0,jsx_runtime_namespaceObject.jsx)(external_spinner_cjs_namespaceObject.Spinner,{}),suffix:c,children:(0,jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Field,{className:e({className:u?.input}),"data-slot":"input-item",...o})})}for(var __webpack_i__ in Input.displayName="Input",exports.Input=__webpack_exports__.Input,exports.inputVariants=__webpack_exports__.inputVariants,__webpack_exports__)-1===["Input","inputVariants"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
3
3
  //# sourceMappingURL=input.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\input.cjs","sources":["webpack://@gbmtech/aurora-ui/./src/components/input.tsx"],"sourcesContent":["\r\n\r\nimport { ComponentProps, JSX } from 'react'\r\n\r\nimport { VariantProps, tv } from '@/lib/utils'\r\nimport * as InputPrimitive from '@/primitive/input'\r\nimport { Spinner } from './spinner'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Variant: Input\r\n * -------------------------------------------------------------------------- */\r\n\r\nconst inputVariants = tv({\r\n slots: {\r\n root: 'flex h-12 w-full items-center gap-4 rounded-md border border-stroke bg-background px-4 ring-offset-background placeholder:text-gray-400 focus-within:outline-none focus-within:ring-2 focus-within:ring-gbm-sky focus-within:ring-offset-2 data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50',\r\n input:\r\n 'peer h-full w-full flex-1 overflow-hidden bg-transparent text-base outline-none placeholder:text-gray-400',\r\n },\r\n})\r\n\r\nconst { input, root } = inputVariants()\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Input\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Input({\r\n className,\r\n disabled,\r\n loaderPosition,\r\n loading,\r\n prefix,\r\n readOnly,\r\n spinner,\r\n suffix,\r\n classNames,\r\n ...props\r\n}: ComponentProps<typeof InputPrimitive.Root> &\r\n Omit<ComponentProps<typeof InputPrimitive.Field>, 'prefix' | 'type'> &\r\n VariantProps<typeof inputVariants> & {\r\n type?: string\r\n classNames?: {\r\n wrapper?: string\r\n input?: string\r\n }\r\n }): JSX.Element {\r\n return (\r\n <InputPrimitive.Root\r\n className={root({ className: [className, classNames?.wrapper] })}\r\n data-slot=\"input\"\r\n disabled={disabled}\r\n loaderPosition={loaderPosition}\r\n loading={loading}\r\n prefix={prefix}\r\n readOnly={readOnly}\r\n spinner={spinner || <Spinner />}\r\n suffix={suffix}\r\n >\r\n <InputPrimitive.Field\r\n className={input({ className: classNames?.input })}\r\n data-slot=\"input-item\"\r\n {...props}\r\n />\r\n </InputPrimitive.Root>\r\n )\r\n}\r\nInput.displayName = 'Input'\r\n\r\nexport { Input, inputVariants }\r\n"],"names":["inputVariants","tv","input","root","Input","className","disabled","loaderPosition","loading","prefix","readOnly","spinner","suffix","classNames","props","InputPrimitive","Spinner"],"mappings":";2iCAYMA,cAAgBC,GAAAA,0BAAAA,EAAAA,EAAG,CACvB,MAAO,CACL,KAAM,qTACN,MACE,2GACJ,CACF,GAEM,CAAEC,MAAAA,CAAK,CAAEC,KAAAA,CAAI,CAAE,CAAGH,gBAMxB,SAASI,MAAM,CACbC,UAAAA,CAAS,CACTC,SAAAA,CAAQ,CACRC,eAAAA,CAAc,CACdC,QAAAA,CAAO,CACPC,OAAAA,CAAM,CACNC,SAAAA,CAAQ,CACRC,QAAAA,CAAO,CACPC,OAAAA,CAAM,CACNC,WAAAA,CAAU,CACV,GAAGC,EASF,EACD,MACE,oCAACC,0BAAAA,IAAmB,EAClB,UAAWZ,EAAK,CAAE,UAAW,CAACE,EAAWQ,GAAY,QAAQ,GAC7D,YAAU,QACV,SAAUP,EACV,eAAgBC,EAChB,QAASC,EACT,OAAQC,EACR,SAAUC,EACV,QAASC,GAAW,oCAACK,qCAAAA,OAAOA,CAAAA,CAAAA,GAC5B,OAAQJ,E,SAER,oCAACG,0BAAAA,KAAoB,EACnB,UAAWb,EAAM,CAAE,UAAWW,GAAY,KAAM,GAChD,YAAU,aACT,GAAGC,CAAK,IAIjB,C,yBACAV,MAAM,WAAW,CAAG,Q"}
1
+ {"version":3,"file":"components\\input.cjs","sources":["webpack://@gbmtech/aurora-ui/./src/components/input.tsx"],"sourcesContent":["\r\n\r\nimport { ComponentProps, JSX } from 'react'\r\n\r\nimport { VariantProps, tv } from '@/lib/utils'\r\nimport * as InputPrimitive from '@/primitive/input'\r\nimport { Spinner } from './spinner'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Variant: Input\r\n * -------------------------------------------------------------------------- */\r\n\r\nconst inputVariants = tv({\r\n slots: {\r\n root: 'flex h-12 w-full items-center gap-4 rounded-md border border-stroke bg-background px-4 placeholder:text-gray-400 focus-within:outline-none focus-within:ring-1 focus-within:ring-gbm-sky data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50',\r\n input:\r\n 'peer h-full w-full flex-1 overflow-hidden bg-transparent text-base outline-none placeholder:text-gray-400',\r\n },\r\n})\r\n\r\nconst { input, root } = inputVariants()\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Input\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Input({\r\n className,\r\n disabled,\r\n loaderPosition,\r\n loading,\r\n prefix,\r\n readOnly,\r\n spinner,\r\n suffix,\r\n classNames,\r\n ...props\r\n}: ComponentProps<typeof InputPrimitive.Root> &\r\n Omit<ComponentProps<typeof InputPrimitive.Field>, 'prefix' | 'type'> &\r\n VariantProps<typeof inputVariants> & {\r\n type?: string\r\n classNames?: {\r\n wrapper?: string\r\n input?: string\r\n }\r\n }): JSX.Element {\r\n return (\r\n <InputPrimitive.Root\r\n className={root({ className: [className, classNames?.wrapper] })}\r\n data-slot=\"input\"\r\n disabled={disabled}\r\n loaderPosition={loaderPosition}\r\n loading={loading}\r\n prefix={prefix}\r\n readOnly={readOnly}\r\n spinner={spinner || <Spinner />}\r\n suffix={suffix}\r\n >\r\n <InputPrimitive.Field\r\n className={input({ className: classNames?.input })}\r\n data-slot=\"input-item\"\r\n {...props}\r\n />\r\n </InputPrimitive.Root>\r\n )\r\n}\r\nInput.displayName = 'Input'\r\n\r\nexport { Input, inputVariants }\r\n"],"names":["inputVariants","tv","input","root","Input","className","disabled","loaderPosition","loading","prefix","readOnly","spinner","suffix","classNames","props","InputPrimitive","Spinner"],"mappings":";2iCAYMA,cAAgBC,GAAAA,0BAAAA,EAAAA,EAAG,CACvB,MAAO,CACL,KAAM,oQACN,MACE,2GACJ,CACF,GAEM,CAAEC,MAAAA,CAAK,CAAEC,KAAAA,CAAI,CAAE,CAAGH,gBAMxB,SAASI,MAAM,CACbC,UAAAA,CAAS,CACTC,SAAAA,CAAQ,CACRC,eAAAA,CAAc,CACdC,QAAAA,CAAO,CACPC,OAAAA,CAAM,CACNC,SAAAA,CAAQ,CACRC,QAAAA,CAAO,CACPC,OAAAA,CAAM,CACNC,WAAAA,CAAU,CACV,GAAGC,EASF,EACD,MACE,oCAACC,0BAAAA,IAAmB,EAClB,UAAWZ,EAAK,CAAE,UAAW,CAACE,EAAWQ,GAAY,QAAQ,GAC7D,YAAU,QACV,SAAUP,EACV,eAAgBC,EAChB,QAASC,EACT,OAAQC,EACR,SAAUC,EACV,QAASC,GAAW,oCAACK,qCAAAA,OAAOA,CAAAA,CAAAA,GAC5B,OAAQJ,E,SAER,oCAACG,0BAAAA,KAAoB,EACnB,UAAWb,EAAM,CAAE,UAAWW,GAAY,KAAM,GAChD,YAAU,aACT,GAAGC,CAAK,IAIjB,C,yBACAV,MAAM,WAAW,CAAG,Q"}
@@ -1,2 +1,2 @@
1
- "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{TabsContent:()=>TabsContent});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_tabs_namespaceObject=require("@radix-ui/react-tabs"),external_react_namespaceObject=require("react"),utils_cjs_namespaceObject=require("../../lib/utils.cjs"),TabsContent=external_react_namespaceObject.forwardRef(({className:e,..._},r)=>(0,jsx_runtime_namespaceObject.jsx)(react_tabs_namespaceObject.Content,{ref:r,className:(0,utils_cjs_namespaceObject.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gbm-sky focus-visible:ring-offset-2",e),..._}));for(var __webpack_i__ in TabsContent.displayName="Tabs.Content",exports.TabsContent=__webpack_exports__.TabsContent,__webpack_exports__)-1===["TabsContent"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
1
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{TabsContent:()=>TabsContent});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_tabs_namespaceObject=require("@radix-ui/react-tabs"),external_react_namespaceObject=require("react"),utils_cjs_namespaceObject=require("../../lib/utils.cjs"),TabsContent=external_react_namespaceObject.forwardRef(({className:e,..._},r)=>(0,jsx_runtime_namespaceObject.jsx)(react_tabs_namespaceObject.Content,{ref:r,className:(0,utils_cjs_namespaceObject.cn)("mt-2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gbm-sky ",e),..._}));for(var __webpack_i__ in TabsContent.displayName="Tabs.Content",exports.TabsContent=__webpack_exports__.TabsContent,__webpack_exports__)-1===["TabsContent"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
2
2
  //# sourceMappingURL=tabs-content.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\tabs\\tabs-content.cjs","sources":["webpack://@gbmtech/aurora-ui/./src/components/tabs/tabs-content.tsx"],"sourcesContent":["import * as TabsPrimitive from '@radix-ui/react-tabs'\r\nimport * as React from 'react'\r\n\r\nimport { cn } from '../../lib/utils'\r\n\r\nconst TabsContent = React.forwardRef<\r\n React.ElementRef<typeof TabsPrimitive.Content>,\r\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>\r\n>(({ className, ...props }, ref) => (\r\n <TabsPrimitive.Content\r\n ref={ref}\r\n className={cn(\r\n 'mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gbm-sky focus-visible:ring-offset-2',\r\n className\r\n )}\r\n {...props}\r\n />\r\n))\r\nTabsContent.displayName = 'Tabs.Content'\r\n\r\nexport { TabsContent }\r\n"],"names":["TabsContent","React","className","props","ref","TabsPrimitive","cn"],"mappings":"2gCAKMA,YAAcC,+BAAAA,UAAgB,CAGlC,CAAC,CAAEC,UAAAA,CAAS,CAAE,GAAGC,EAAO,CAAEC,IAC1B,oCAACC,2BAAAA,OAAqB,EACpB,IAAKD,EACL,UAAWE,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EACT,qIACAJ,GAED,GAAGC,CAAK,A,6BAGbH,YAAY,WAAW,CAAG,e"}
1
+ {"version":3,"file":"components\\tabs\\tabs-content.cjs","sources":["webpack://@gbmtech/aurora-ui/./src/components/tabs/tabs-content.tsx"],"sourcesContent":["import * as TabsPrimitive from '@radix-ui/react-tabs'\r\nimport * as React from 'react'\r\n\r\nimport { cn } from '../../lib/utils'\r\n\r\nconst TabsContent = React.forwardRef<\r\n React.ElementRef<typeof TabsPrimitive.Content>,\r\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>\r\n>(({ className, ...props }, ref) => (\r\n <TabsPrimitive.Content\r\n ref={ref}\r\n className={cn(\r\n 'mt-2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gbm-sky ',\r\n className\r\n )}\r\n {...props}\r\n />\r\n))\r\nTabsContent.displayName = 'Tabs.Content'\r\n\r\nexport { TabsContent }\r\n"],"names":["TabsContent","React","className","props","ref","TabsPrimitive","cn"],"mappings":"2gCAKMA,YAAcC,+BAAAA,UAAgB,CAGlC,CAAC,CAAEC,UAAAA,CAAS,CAAE,GAAGC,EAAO,CAAEC,IAC1B,oCAACC,2BAAAA,OAAqB,EACpB,IAAKD,EACL,UAAWE,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EACT,mFACAJ,GAED,GAAGC,CAAK,A,6BAGbH,YAAY,WAAW,CAAG,e"}
@@ -1,3 +1,3 @@
1
1
  'use client'
2
- "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,r)=>{for(var _ in r)__webpack_require__.o(r,_)&&!__webpack_require__.o(e,_)&&Object.defineProperty(e,_,{enumerable:!0,get:r[_]})},__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{TabsTrigger:()=>TabsTrigger});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_tabs_namespaceObject=require("@radix-ui/react-tabs"),external_react_namespaceObject=require("react"),utils_cjs_namespaceObject=require("../../lib/utils.cjs"),external_tabs_root_cjs_namespaceObject=require("./tabs-root.cjs"),TabsTrigger=external_react_namespaceObject.forwardRef(({className:e,...r},_)=>{let{variant:t}=(0,external_tabs_root_cjs_namespaceObject.useTabsContext)();return(0,jsx_runtime_namespaceObject.jsx)(react_tabs_namespaceObject.Trigger,{ref:_,className:(0,utils_cjs_namespaceObject.cn)("inline-flex h-10 w-full cursor-pointer items-center justify-center whitespace-nowrap rounded px-3 py-1.5 font-medium text-gbm-dark/60 text-sm ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gbm-sky focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-gbm-dark data-[state=active]:shadow-sm",{"data-[state=active]:text-gbm-sky":"secondary"===t},e),...r})});for(var __webpack_i__ in TabsTrigger.displayName="Tabs.Trigger",exports.TabsTrigger=__webpack_exports__.TabsTrigger,__webpack_exports__)-1===["TabsTrigger"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
2
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,r)=>{for(var _ in r)__webpack_require__.o(r,_)&&!__webpack_require__.o(e,_)&&Object.defineProperty(e,_,{enumerable:!0,get:r[_]})},__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{TabsTrigger:()=>TabsTrigger});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_tabs_namespaceObject=require("@radix-ui/react-tabs"),external_react_namespaceObject=require("react"),utils_cjs_namespaceObject=require("../../lib/utils.cjs"),external_tabs_root_cjs_namespaceObject=require("./tabs-root.cjs"),TabsTrigger=external_react_namespaceObject.forwardRef(({className:e,...r},_)=>{let{variant:t}=(0,external_tabs_root_cjs_namespaceObject.useTabsContext)();return(0,jsx_runtime_namespaceObject.jsx)(react_tabs_namespaceObject.Trigger,{ref:_,className:(0,utils_cjs_namespaceObject.cn)("inline-flex h-10 w-full cursor-pointer items-center justify-center whitespace-nowrap rounded px-3 py-1.5 font-medium text-gbm-dark/60 text-sm transition-all focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gbm-sky disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-gbm-dark data-[state=active]:shadow-sm",{"data-[state=active]:text-gbm-sky":"secondary"===t},e),...r})});for(var __webpack_i__ in TabsTrigger.displayName="Tabs.Trigger",exports.TabsTrigger=__webpack_exports__.TabsTrigger,__webpack_exports__)-1===["TabsTrigger"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
3
3
  //# sourceMappingURL=tabs-trigger.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\tabs\\tabs-trigger.cjs","sources":["webpack://@gbmtech/aurora-ui/./src/components/tabs/tabs-trigger.tsx"],"sourcesContent":["\r\n\r\nimport * as TabsPrimitive from '@radix-ui/react-tabs'\r\nimport * as React from 'react'\r\n\r\nimport { cn } from '../../lib/utils'\r\nimport { useTabsContext } from './tabs-root'\r\n\r\nconst TabsTrigger = React.forwardRef<\r\n React.ElementRef<typeof TabsPrimitive.Trigger>,\r\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>\r\n>(({ className, ...props }, ref) => {\r\n const { variant } = useTabsContext()\r\n\r\n return (\r\n <TabsPrimitive.Trigger\r\n ref={ref}\r\n className={cn(\r\n 'inline-flex h-10 w-full cursor-pointer items-center justify-center whitespace-nowrap rounded px-3 py-1.5 font-medium text-gbm-dark/60 text-sm ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gbm-sky focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-gbm-dark data-[state=active]:shadow-sm',\r\n {\r\n 'data-[state=active]:text-gbm-sky': variant === 'secondary',\r\n },\r\n className\r\n )}\r\n {...props}\r\n />\r\n )\r\n})\r\nTabsTrigger.displayName = 'Tabs.Trigger'\r\n\r\nexport { TabsTrigger }\r\n"],"names":["TabsTrigger","React","className","props","ref","variant","useTabsContext","TabsPrimitive","cn"],"mappings":";6kCAQMA,YAAcC,+BAAAA,UAAgB,CAGlC,CAAC,CAAEC,UAAAA,CAAS,CAAE,GAAGC,EAAO,CAAEC,KAC1B,GAAM,CAAEC,QAAAA,CAAO,CAAE,CAAGC,GAAAA,uCAAAA,cAAAA,IAEpB,MACE,oCAACC,2BAAAA,OAAqB,EACpB,IAAKH,EACL,UAAWI,GAAAA,0BAAAA,EAAAA,EACT,gbACA,CACE,mCAAoCH,cAAAA,CACtC,EACAH,GAED,GAAGC,CAAK,EAGf,G,yBACAH,YAAY,WAAW,CAAG,e"}
1
+ {"version":3,"file":"components\\tabs\\tabs-trigger.cjs","sources":["webpack://@gbmtech/aurora-ui/./src/components/tabs/tabs-trigger.tsx"],"sourcesContent":["\r\n\r\nimport * as TabsPrimitive from '@radix-ui/react-tabs'\r\nimport * as React from 'react'\r\n\r\nimport { cn } from '../../lib/utils'\r\nimport { useTabsContext } from './tabs-root'\r\n\r\nconst TabsTrigger = React.forwardRef<\r\n React.ElementRef<typeof TabsPrimitive.Trigger>,\r\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>\r\n>(({ className, ...props }, ref) => {\r\n const { variant } = useTabsContext()\r\n\r\n return (\r\n <TabsPrimitive.Trigger\r\n ref={ref}\r\n className={cn(\r\n 'inline-flex h-10 w-full cursor-pointer items-center justify-center whitespace-nowrap rounded px-3 py-1.5 font-medium text-gbm-dark/60 text-sm transition-all focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gbm-sky disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-gbm-dark data-[state=active]:shadow-sm',\r\n {\r\n 'data-[state=active]:text-gbm-sky': variant === 'secondary',\r\n },\r\n className\r\n )}\r\n {...props}\r\n />\r\n )\r\n})\r\nTabsTrigger.displayName = 'Tabs.Trigger'\r\n\r\nexport { TabsTrigger }\r\n"],"names":["TabsTrigger","React","className","props","ref","variant","useTabsContext","TabsPrimitive","cn"],"mappings":";6kCAQMA,YAAcC,+BAAAA,UAAgB,CAGlC,CAAC,CAAEC,UAAAA,CAAS,CAAE,GAAGC,EAAO,CAAEC,KAC1B,GAAM,CAAEC,QAAAA,CAAO,CAAE,CAAGC,GAAAA,uCAAAA,cAAAA,IAEpB,MACE,oCAACC,2BAAAA,OAAqB,EACpB,IAAKH,EACL,UAAWI,GAAAA,0BAAAA,EAAAA,EACT,6XACA,CACE,mCAAoCH,cAAAA,CACtC,EACAH,GAED,GAAGC,CAAK,EAGf,G,yBACAH,YAAY,WAAW,CAAG,e"}
@@ -1,2 +1,2 @@
1
- import*as r from"react/jsx-runtime";import*as t from"../lib/utils.js";import*as e from"@radix-ui/react-slot";let a=(0,t.tv)({base:"inline-flex items-center rounded-full border px-2.5 py-0.5 font-semibold text-xs transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",variants:{variant:{default:"border-transparent bg-gbm-sky text-white hover:bg-gbm-sky/80",secondary:"border-transparent bg-gray-50 text-gray-900 hover:bg-gray-50/80",destructive:"border-transparent bg-error text-white hover:bg-error/80",outline:"text-gbm-dark"}},defaultVariants:{variant:"default"}});function o({className:t,asChild:o,variant:n,...s}){let i=o?e.Slot:"span";return(0,r.jsx)(i,{className:a({className:t,variant:n}),...s})}export{o as Badge,a as badgeVariants};
1
+ import*as r from"react/jsx-runtime";import*as t from"../lib/utils.js";import*as e from"@radix-ui/react-slot";let a=(0,t.tv)({base:"inline-flex items-center rounded-full border px-2.5 py-0.5 font-semibold text-xs transition-colors focus:outline-none focus:ring-1 focus:ring-gbm-sky",variants:{variant:{default:"border-transparent bg-gbm-sky text-white hover:bg-gbm-sky/80",secondary:"border-transparent bg-gray-50 text-gray-900 hover:bg-gray-50/80",destructive:"border-transparent bg-error text-white hover:bg-error/80",outline:"text-gbm-dark"}},defaultVariants:{variant:"default"}});function o({className:t,asChild:o,variant:s,...n}){let i=o?e.Slot:"span";return(0,r.jsx)(i,{className:a({className:t,variant:s}),...n})}export{o as Badge,a as badgeVariants};
2
2
  //# sourceMappingURL=badge.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\badge.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/badge.tsx"],"sourcesContent":["import { ComponentProps, JSX } from 'react'\r\n\r\nimport { VariantProps, tv } from '@/lib/utils'\r\nimport { Slot } from '@radix-ui/react-slot'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Variant: Badge\r\n * -------------------------------------------------------------------------- */\r\n\r\nconst badgeVariants = tv({\r\n base: 'inline-flex items-center rounded-full border px-2.5 py-0.5 font-semibold text-xs transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',\r\n variants: {\r\n variant: {\r\n default: 'border-transparent bg-gbm-sky text-white hover:bg-gbm-sky/80',\r\n secondary:\r\n 'border-transparent bg-gray-50 text-gray-900 hover:bg-gray-50/80',\r\n destructive: 'border-transparent bg-error text-white hover:bg-error/80',\r\n outline: 'text-gbm-dark',\r\n },\r\n },\r\n defaultVariants: {\r\n variant: 'default',\r\n },\r\n})\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Badge\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Badge({\r\n className,\r\n asChild,\r\n variant,\r\n ...props\r\n}: ComponentProps<'span'> &\r\n VariantProps<typeof badgeVariants> & {\r\n asChild?: boolean\r\n }): JSX.Element {\r\n const Component = asChild ? Slot : 'span'\r\n\r\n return (\r\n <Component className={badgeVariants({ className, variant })} {...props} />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { Badge, badgeVariants }\r\n"],"names":["badgeVariants","tv","Badge","className","asChild","variant","props","Component","Slot"],"mappings":"6GASA,IAAMA,EAAgBC,AAAAA,GAAAA,EAAAA,EAAAA,AAAAA,EAAG,CACvB,KAAM,yKACN,SAAU,CACR,QAAS,CACP,QAAS,+DACT,UACE,kEACF,YAAa,2DACb,QAAS,eACX,CACF,EACA,gBAAiB,CACf,QAAS,SACX,CACF,GAMA,SAASC,EAAM,CACbC,UAAAA,CAAS,CACTC,QAAAA,CAAO,CACPC,QAAAA,CAAO,CACP,GAAGC,EAIF,EACD,IAAMC,EAAYH,EAAUI,EAAAA,IAAIA,CAAG,OAEnC,MACE,UAACD,EAAAA,CAAU,UAAWP,EAAc,CAAEG,UAAAA,EAAWE,QAAAA,CAAQ,GAAK,GAAGC,CAAK,A,EAE1E,Q"}
1
+ {"version":3,"file":"components\\badge.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/badge.tsx"],"sourcesContent":["import { ComponentProps, JSX } from 'react'\r\n\r\nimport { VariantProps, tv } from '@/lib/utils'\r\nimport { Slot } from '@radix-ui/react-slot'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Variant: Badge\r\n * -------------------------------------------------------------------------- */\r\n\r\nconst badgeVariants = tv({\r\n base: 'inline-flex items-center rounded-full border px-2.5 py-0.5 font-semibold text-xs transition-colors focus:outline-none focus:ring-1 focus:ring-gbm-sky',\r\n variants: {\r\n variant: {\r\n default: 'border-transparent bg-gbm-sky text-white hover:bg-gbm-sky/80',\r\n secondary:\r\n 'border-transparent bg-gray-50 text-gray-900 hover:bg-gray-50/80',\r\n destructive: 'border-transparent bg-error text-white hover:bg-error/80',\r\n outline: 'text-gbm-dark',\r\n },\r\n },\r\n defaultVariants: {\r\n variant: 'default',\r\n },\r\n})\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Badge\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Badge({\r\n className,\r\n asChild,\r\n variant,\r\n ...props\r\n}: ComponentProps<'span'> &\r\n VariantProps<typeof badgeVariants> & {\r\n asChild?: boolean\r\n }): JSX.Element {\r\n const Component = asChild ? Slot : 'span'\r\n\r\n return (\r\n <Component className={badgeVariants({ className, variant })} {...props} />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { Badge, badgeVariants }\r\n"],"names":["badgeVariants","tv","Badge","className","asChild","variant","props","Component","Slot"],"mappings":"6GASA,IAAMA,EAAgBC,AAAAA,GAAAA,EAAAA,EAAAA,AAAAA,EAAG,CACvB,KAAM,wJACN,SAAU,CACR,QAAS,CACP,QAAS,+DACT,UACE,kEACF,YAAa,2DACb,QAAS,eACX,CACF,EACA,gBAAiB,CACf,QAAS,SACX,CACF,GAMA,SAASC,EAAM,CACbC,UAAAA,CAAS,CACTC,QAAAA,CAAO,CACPC,QAAAA,CAAO,CACP,GAAGC,EAIF,EACD,IAAMC,EAAYH,EAAUI,EAAAA,IAAIA,CAAG,OAEnC,MACE,UAACD,EAAAA,CAAU,UAAWP,EAAc,CAAEG,UAAAA,EAAWE,QAAAA,CAAQ,GAAK,GAAGC,CAAK,A,EAE1E,Q"}
@@ -1,3 +1,3 @@
1
1
  'use client'
2
- import*as e from"react/jsx-runtime";import*as s from"@phosphor-icons/react/dist/ssr";import*as t from"@radix-ui/react-checkbox";import*as i from"../lib/utils.js";function r({className:r,size:o="md",...c}){return(0,e.jsx)(t.Root,{className:(0,i.cn)("peer size-4 shrink-0 rounded-sm border border-stroke ring-offset-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gbm-sky focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-gbm-sky data-[state=checked]:bg-gbm-sky data-[state=checked]:text-white",{"size-6":"lg"===o},r),...c,children:(0,e.jsx)(t.Indicator,{className:(0,i.cn)("flex items-center justify-center text-current"),children:(0,e.jsx)(s.Check,{weight:"bold",className:(0,i.cn)("size-3",{"size-4":"lg"===o})})})})}export{r as Checkbox};
2
+ import*as e from"react/jsx-runtime";import*as s from"@phosphor-icons/react/dist/ssr";import*as r from"@radix-ui/react-checkbox";import*as t from"../lib/utils.js";function i({className:i,size:o="md",...c}){return(0,e.jsx)(r.Root,{className:(0,t.cn)("peer size-4 shrink-0 rounded-sm border border-stroke focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gbm-sky disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-gbm-sky data-[state=checked]:bg-gbm-sky data-[state=checked]:text-white",{"size-6":"lg"===o},i),...c,children:(0,e.jsx)(r.Indicator,{className:(0,t.cn)("flex items-center justify-center text-current"),children:(0,e.jsx)(s.Check,{weight:"bold",className:(0,t.cn)("size-3",{"size-4":"lg"===o})})})})}export{i as Checkbox};
3
3
  //# sourceMappingURL=checkbox.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\checkbox.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/checkbox.tsx"],"sourcesContent":["\r\n\r\nimport { Check } from '@phosphor-icons/react/dist/ssr'\r\nimport * as CheckboxPrimitive from '@radix-ui/react-checkbox'\r\nimport { ComponentProps, JSX } from 'react'\r\n\r\nimport { cn } from '@/lib/utils'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Checkbox\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Checkbox({\r\n className,\r\n size = 'md',\r\n ...props\r\n}: ComponentProps<typeof CheckboxPrimitive.Root> & {\r\n size?: 'md' | 'lg'\r\n}): JSX.Element {\r\n return (\r\n <CheckboxPrimitive.Root\r\n className={cn(\r\n 'peer size-4 shrink-0 rounded-sm border border-stroke ring-offset-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gbm-sky focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-gbm-sky data-[state=checked]:bg-gbm-sky data-[state=checked]:text-white',\r\n {\r\n 'size-6': size === 'lg',\r\n },\r\n className\r\n )}\r\n {...props}\r\n >\r\n <CheckboxPrimitive.Indicator\r\n className={cn('flex items-center justify-center text-current')}\r\n >\r\n <Check\r\n weight=\"bold\"\r\n className={cn('size-3', {\r\n 'size-4': size === 'lg',\r\n })}\r\n />\r\n </CheckboxPrimitive.Indicator>\r\n </CheckboxPrimitive.Root>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { Checkbox }\r\n"],"names":["Checkbox","className","size","props","CheckboxPrimitive","cn","Check"],"mappings":";kKAYA,SAASA,EAAS,CAChBC,UAAAA,CAAS,CACTC,KAAAA,EAAO,IAAI,CACX,GAAGC,EAGJ,EACC,MACE,UAACC,EAAAA,IAAsB,EACrB,UAAWC,GAAAA,EAAAA,EAAAA,EACT,oUACA,CACE,SAAUH,OAAAA,CACZ,EACAD,GAED,GAAGE,CAAK,C,SAET,UAACC,EAAAA,SAA2B,EAC1B,UAAWC,GAAAA,EAAAA,EAAAA,EAAG,iD,SAEd,UAACC,EAAAA,KAAKA,CAAAA,CACJ,OAAO,OACP,UAAWD,GAAAA,EAAAA,EAAAA,EAAG,SAAU,CACtB,SAAUH,OAAAA,CACZ,E,MAKV,Q"}
1
+ {"version":3,"file":"components\\checkbox.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/checkbox.tsx"],"sourcesContent":["\r\n\r\nimport { Check } from '@phosphor-icons/react/dist/ssr'\r\nimport * as CheckboxPrimitive from '@radix-ui/react-checkbox'\r\nimport { ComponentProps, JSX } from 'react'\r\n\r\nimport { cn } from '@/lib/utils'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Checkbox\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Checkbox({\r\n className,\r\n size = 'md',\r\n ...props\r\n}: ComponentProps<typeof CheckboxPrimitive.Root> & {\r\n size?: 'md' | 'lg'\r\n}): JSX.Element {\r\n return (\r\n <CheckboxPrimitive.Root\r\n className={cn(\r\n 'peer size-4 shrink-0 rounded-sm border border-stroke focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gbm-sky disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-gbm-sky data-[state=checked]:bg-gbm-sky data-[state=checked]:text-white',\r\n {\r\n 'size-6': size === 'lg',\r\n },\r\n className\r\n )}\r\n {...props}\r\n >\r\n <CheckboxPrimitive.Indicator\r\n className={cn('flex items-center justify-center text-current')}\r\n >\r\n <Check\r\n weight=\"bold\"\r\n className={cn('size-3', {\r\n 'size-4': size === 'lg',\r\n })}\r\n />\r\n </CheckboxPrimitive.Indicator>\r\n </CheckboxPrimitive.Root>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { Checkbox }\r\n"],"names":["Checkbox","className","size","props","CheckboxPrimitive","cn","Check"],"mappings":";kKAYA,SAASA,EAAS,CAChBC,UAAAA,CAAS,CACTC,KAAAA,EAAO,IAAI,CACX,GAAGC,EAGJ,EACC,MACE,UAACC,EAAAA,IAAsB,EACrB,UAAWC,GAAAA,EAAAA,EAAAA,EACT,sRACA,CACE,SAAUH,OAAAA,CACZ,EACAD,GAED,GAAGE,CAAK,C,SAET,UAACC,EAAAA,SAA2B,EAC1B,UAAWC,GAAAA,EAAAA,EAAAA,EAAG,iD,SAEd,UAACC,EAAAA,KAAKA,CAAAA,CACJ,OAAO,OACP,UAAWD,GAAAA,EAAAA,EAAAA,EAAG,SAAU,CACtB,SAAUH,OAAAA,CACZ,E,MAKV,Q"}
@@ -1 +1 @@
1
- import*as t from"./data-table-view-options.js";export*from"./data-table-action-bar.js";export*from"./data-table-advanced-toolbar.js";export*from"./data-table-column-header.js";export*from"./data-table-date-filter.js";export*from"./data-table-faceted-filter.js";export*from"./data-table-filter-list.js";export*from"./data-table-filter-menu.js";export*from"./data-table-pagination.js";export*from"./data-table-range-filter.js";export*from"./data-table-skeleton.js";export*from"./data-table-slider-filter.js";export*from"./data-table-sort-list.js";export*from"./data-table-toolbar.js";export*from"./data-table.js";var a={"@/components/data-table/data-table-view-options":function(a){a.exports=t}},e={};!function t(o){var r=e[o];if(void 0!==r)return r.exports;var l=e[o]={exports:{}};return a[o](l,l.exports,t),l.exports}("@/components/data-table/data-table-view-options");
1
+ export*from"./data-table-action-bar.js";export*from"./data-table-advanced-toolbar.js";export*from"./data-table-column-header.js";export*from"./data-table-date-filter.js";export*from"./data-table-faceted-filter.js";export*from"./data-table-filter-list.js";export*from"./data-table-filter-menu.js";export*from"./data-table-pagination.js";export*from"./data-table-range-filter.js";export*from"./data-table-skeleton.js";export*from"./data-table-slider-filter.js";export*from"./data-table-sort-list.js";export*from"./data-table-toolbar.js";export*from"./data-table-view-options.js";export*from"./data-table.js";
@@ -1,3 +1,3 @@
1
1
  'use client'
2
- import*as t from"react/jsx-runtime";import*as e from"../lib/utils.js";import*as i from"../primitive/input.js";import*as r from"./spinner.js";let n=(0,e.tv)({slots:{root:"flex h-12 w-full items-center gap-4 rounded-md border border-stroke bg-background px-4 ring-offset-background placeholder:text-gray-400 focus-within:outline-none focus-within:ring-2 focus-within:ring-gbm-sky focus-within:ring-offset-2 data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50",input:"peer h-full w-full flex-1 overflow-hidden bg-transparent text-base outline-none placeholder:text-gray-400"}}),{input:o,root:s}=n();function a({className:e,disabled:n,loaderPosition:a,loading:l,prefix:d,readOnly:p,spinner:u,suffix:f,classNames:m,...c}){return(0,t.jsx)(i.Root,{className:s({className:[e,m?.wrapper]}),"data-slot":"input",disabled:n,loaderPosition:a,loading:l,prefix:d,readOnly:p,spinner:u||(0,t.jsx)(r.Spinner,{}),suffix:f,children:(0,t.jsx)(i.Field,{className:o({className:m?.input}),"data-slot":"input-item",...c})})}a.displayName="Input";export{a as Input,n as inputVariants};
2
+ import*as e from"react/jsx-runtime";import*as t from"../lib/utils.js";import*as r from"../primitive/input.js";import*as i from"./spinner.js";let a=(0,t.tv)({slots:{root:"flex h-12 w-full items-center gap-4 rounded-md border border-stroke bg-background px-4 placeholder:text-gray-400 focus-within:outline-none focus-within:ring-1 focus-within:ring-gbm-sky data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50",input:"peer h-full w-full flex-1 overflow-hidden bg-transparent text-base outline-none placeholder:text-gray-400"}}),{input:s,root:n}=a();function o({className:t,disabled:a,loaderPosition:o,loading:l,prefix:p,readOnly:d,spinner:u,suffix:m,classNames:f,...c}){return(0,e.jsx)(r.Root,{className:n({className:[t,f?.wrapper]}),"data-slot":"input",disabled:a,loaderPosition:o,loading:l,prefix:p,readOnly:d,spinner:u||(0,e.jsx)(i.Spinner,{}),suffix:m,children:(0,e.jsx)(r.Field,{className:s({className:f?.input}),"data-slot":"input-item",...c})})}o.displayName="Input";export{o as Input,a as inputVariants};
3
3
  //# sourceMappingURL=input.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\input.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/input.tsx"],"sourcesContent":["\r\n\r\nimport { ComponentProps, JSX } from 'react'\r\n\r\nimport { VariantProps, tv } from '@/lib/utils'\r\nimport * as InputPrimitive from '@/primitive/input'\r\nimport { Spinner } from './spinner'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Variant: Input\r\n * -------------------------------------------------------------------------- */\r\n\r\nconst inputVariants = tv({\r\n slots: {\r\n root: 'flex h-12 w-full items-center gap-4 rounded-md border border-stroke bg-background px-4 ring-offset-background placeholder:text-gray-400 focus-within:outline-none focus-within:ring-2 focus-within:ring-gbm-sky focus-within:ring-offset-2 data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50',\r\n input:\r\n 'peer h-full w-full flex-1 overflow-hidden bg-transparent text-base outline-none placeholder:text-gray-400',\r\n },\r\n})\r\n\r\nconst { input, root } = inputVariants()\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Input\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Input({\r\n className,\r\n disabled,\r\n loaderPosition,\r\n loading,\r\n prefix,\r\n readOnly,\r\n spinner,\r\n suffix,\r\n classNames,\r\n ...props\r\n}: ComponentProps<typeof InputPrimitive.Root> &\r\n Omit<ComponentProps<typeof InputPrimitive.Field>, 'prefix' | 'type'> &\r\n VariantProps<typeof inputVariants> & {\r\n type?: string\r\n classNames?: {\r\n wrapper?: string\r\n input?: string\r\n }\r\n }): JSX.Element {\r\n return (\r\n <InputPrimitive.Root\r\n className={root({ className: [className, classNames?.wrapper] })}\r\n data-slot=\"input\"\r\n disabled={disabled}\r\n loaderPosition={loaderPosition}\r\n loading={loading}\r\n prefix={prefix}\r\n readOnly={readOnly}\r\n spinner={spinner || <Spinner />}\r\n suffix={suffix}\r\n >\r\n <InputPrimitive.Field\r\n className={input({ className: classNames?.input })}\r\n data-slot=\"input-item\"\r\n {...props}\r\n />\r\n </InputPrimitive.Root>\r\n )\r\n}\r\nInput.displayName = 'Input'\r\n\r\nexport { Input, inputVariants }\r\n"],"names":["inputVariants","tv","input","root","Input","className","disabled","loaderPosition","loading","prefix","readOnly","spinner","suffix","classNames","props","InputPrimitive","Spinner"],"mappings":";6IAYA,IAAMA,EAAgBC,GAAAA,EAAAA,EAAAA,EAAG,CACvB,MAAO,CACL,KAAM,qTACN,MACE,2GACJ,CACF,GAEM,CAAEC,MAAAA,CAAK,CAAEC,KAAAA,CAAI,CAAE,CAAGH,IAMxB,SAASI,EAAM,CACbC,UAAAA,CAAS,CACTC,SAAAA,CAAQ,CACRC,eAAAA,CAAc,CACdC,QAAAA,CAAO,CACPC,OAAAA,CAAM,CACNC,SAAAA,CAAQ,CACRC,QAAAA,CAAO,CACPC,OAAAA,CAAM,CACNC,WAAAA,CAAU,CACV,GAAGC,EASF,EACD,MACE,UAACC,EAAAA,IAAmB,EAClB,UAAWZ,EAAK,CAAE,UAAW,CAACE,EAAWQ,GAAY,QAAQ,GAC7D,YAAU,QACV,SAAUP,EACV,eAAgBC,EAChB,QAASC,EACT,OAAQC,EACR,SAAUC,EACV,QAASC,GAAW,UAACK,EAAAA,OAAOA,CAAAA,CAAAA,GAC5B,OAAQJ,E,SAER,UAACG,EAAAA,KAAoB,EACnB,UAAWb,EAAM,CAAE,UAAWW,GAAY,KAAM,GAChD,YAAU,aACT,GAAGC,CAAK,IAIjB,CACAV,EAAM,WAAW,CAAG,e"}
1
+ {"version":3,"file":"components\\input.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/input.tsx"],"sourcesContent":["\r\n\r\nimport { ComponentProps, JSX } from 'react'\r\n\r\nimport { VariantProps, tv } from '@/lib/utils'\r\nimport * as InputPrimitive from '@/primitive/input'\r\nimport { Spinner } from './spinner'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Variant: Input\r\n * -------------------------------------------------------------------------- */\r\n\r\nconst inputVariants = tv({\r\n slots: {\r\n root: 'flex h-12 w-full items-center gap-4 rounded-md border border-stroke bg-background px-4 placeholder:text-gray-400 focus-within:outline-none focus-within:ring-1 focus-within:ring-gbm-sky data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50',\r\n input:\r\n 'peer h-full w-full flex-1 overflow-hidden bg-transparent text-base outline-none placeholder:text-gray-400',\r\n },\r\n})\r\n\r\nconst { input, root } = inputVariants()\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Input\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Input({\r\n className,\r\n disabled,\r\n loaderPosition,\r\n loading,\r\n prefix,\r\n readOnly,\r\n spinner,\r\n suffix,\r\n classNames,\r\n ...props\r\n}: ComponentProps<typeof InputPrimitive.Root> &\r\n Omit<ComponentProps<typeof InputPrimitive.Field>, 'prefix' | 'type'> &\r\n VariantProps<typeof inputVariants> & {\r\n type?: string\r\n classNames?: {\r\n wrapper?: string\r\n input?: string\r\n }\r\n }): JSX.Element {\r\n return (\r\n <InputPrimitive.Root\r\n className={root({ className: [className, classNames?.wrapper] })}\r\n data-slot=\"input\"\r\n disabled={disabled}\r\n loaderPosition={loaderPosition}\r\n loading={loading}\r\n prefix={prefix}\r\n readOnly={readOnly}\r\n spinner={spinner || <Spinner />}\r\n suffix={suffix}\r\n >\r\n <InputPrimitive.Field\r\n className={input({ className: classNames?.input })}\r\n data-slot=\"input-item\"\r\n {...props}\r\n />\r\n </InputPrimitive.Root>\r\n )\r\n}\r\nInput.displayName = 'Input'\r\n\r\nexport { Input, inputVariants }\r\n"],"names":["inputVariants","tv","input","root","Input","className","disabled","loaderPosition","loading","prefix","readOnly","spinner","suffix","classNames","props","InputPrimitive","Spinner"],"mappings":";6IAYA,IAAMA,EAAgBC,GAAAA,EAAAA,EAAAA,EAAG,CACvB,MAAO,CACL,KAAM,oQACN,MACE,2GACJ,CACF,GAEM,CAAEC,MAAAA,CAAK,CAAEC,KAAAA,CAAI,CAAE,CAAGH,IAMxB,SAASI,EAAM,CACbC,UAAAA,CAAS,CACTC,SAAAA,CAAQ,CACRC,eAAAA,CAAc,CACdC,QAAAA,CAAO,CACPC,OAAAA,CAAM,CACNC,SAAAA,CAAQ,CACRC,QAAAA,CAAO,CACPC,OAAAA,CAAM,CACNC,WAAAA,CAAU,CACV,GAAGC,EASF,EACD,MACE,UAACC,EAAAA,IAAmB,EAClB,UAAWZ,EAAK,CAAE,UAAW,CAACE,EAAWQ,GAAY,QAAQ,GAC7D,YAAU,QACV,SAAUP,EACV,eAAgBC,EAChB,QAASC,EACT,OAAQC,EACR,SAAUC,EACV,QAASC,GAAW,UAACK,EAAAA,OAAOA,CAAAA,CAAAA,GAC5B,OAAQJ,E,SAER,UAACG,EAAAA,KAAoB,EACnB,UAAWb,EAAM,CAAE,UAAWW,GAAY,KAAM,GAChD,YAAU,aACT,GAAGC,CAAK,IAIjB,CACAV,EAAM,WAAW,CAAG,e"}
@@ -1,2 +1,2 @@
1
- import*as s from"react/jsx-runtime";import*as i from"@radix-ui/react-tabs";import*as o from"react";import*as r from"../../lib/utils.js";let t=o.forwardRef(({className:o,...t},e)=>(0,s.jsx)(i.Content,{ref:e,className:(0,r.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gbm-sky focus-visible:ring-offset-2",o),...t}));t.displayName="Tabs.Content";export{t as TabsContent};
1
+ import*as s from"react/jsx-runtime";import*as t from"@radix-ui/react-tabs";import*as i from"react";import*as r from"../../lib/utils.js";let e=i.forwardRef(({className:i,...e},o)=>(0,s.jsx)(t.Content,{ref:o,className:(0,r.cn)("mt-2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gbm-sky ",i),...e}));e.displayName="Tabs.Content";export{e as TabsContent};
2
2
  //# sourceMappingURL=tabs-content.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\tabs\\tabs-content.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/tabs/tabs-content.tsx"],"sourcesContent":["import * as TabsPrimitive from '@radix-ui/react-tabs'\r\nimport * as React from 'react'\r\n\r\nimport { cn } from '../../lib/utils'\r\n\r\nconst TabsContent = React.forwardRef<\r\n React.ElementRef<typeof TabsPrimitive.Content>,\r\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>\r\n>(({ className, ...props }, ref) => (\r\n <TabsPrimitive.Content\r\n ref={ref}\r\n className={cn(\r\n 'mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gbm-sky focus-visible:ring-offset-2',\r\n className\r\n )}\r\n {...props}\r\n />\r\n))\r\nTabsContent.displayName = 'Tabs.Content'\r\n\r\nexport { TabsContent }\r\n"],"names":["TabsContent","React","className","props","ref","TabsPrimitive","cn"],"mappings":"wIAKA,IAAMA,EAAcC,EAAAA,UAAgB,CAGlC,CAAC,CAAEC,UAAAA,CAAS,CAAE,GAAGC,EAAO,CAAEC,IAC1B,UAACC,EAAAA,OAAqB,EACpB,IAAKD,EACL,UAAWE,AAAAA,GAAAA,EAAAA,EAAAA,AAAAA,EACT,qIACAJ,GAED,GAAGC,CAAK,A,GAGbH,CAAAA,EAAY,WAAW,CAAG,sB"}
1
+ {"version":3,"file":"components\\tabs\\tabs-content.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/tabs/tabs-content.tsx"],"sourcesContent":["import * as TabsPrimitive from '@radix-ui/react-tabs'\r\nimport * as React from 'react'\r\n\r\nimport { cn } from '../../lib/utils'\r\n\r\nconst TabsContent = React.forwardRef<\r\n React.ElementRef<typeof TabsPrimitive.Content>,\r\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>\r\n>(({ className, ...props }, ref) => (\r\n <TabsPrimitive.Content\r\n ref={ref}\r\n className={cn(\r\n 'mt-2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gbm-sky ',\r\n className\r\n )}\r\n {...props}\r\n />\r\n))\r\nTabsContent.displayName = 'Tabs.Content'\r\n\r\nexport { TabsContent }\r\n"],"names":["TabsContent","React","className","props","ref","TabsPrimitive","cn"],"mappings":"wIAKA,IAAMA,EAAcC,EAAAA,UAAgB,CAGlC,CAAC,CAAEC,UAAAA,CAAS,CAAE,GAAGC,EAAO,CAAEC,IAC1B,UAACC,EAAAA,OAAqB,EACpB,IAAKD,EACL,UAAWE,AAAAA,GAAAA,EAAAA,EAAAA,AAAAA,EACT,mFACAJ,GAED,GAAGC,CAAK,A,GAGbH,CAAAA,EAAY,WAAW,CAAG,sB"}
@@ -1,3 +1,3 @@
1
1
  'use client'
2
- import*as t from"react/jsx-runtime";import*as e from"@radix-ui/react-tabs";import*as a from"react";import*as s from"../../lib/utils.js";import*as r from"./tabs-root.js";let i=a.forwardRef(({className:a,...i},o)=>{let{variant:n}=(0,r.useTabsContext)();return(0,t.jsx)(e.Trigger,{ref:o,className:(0,s.cn)("inline-flex h-10 w-full cursor-pointer items-center justify-center whitespace-nowrap rounded px-3 py-1.5 font-medium text-gbm-dark/60 text-sm ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gbm-sky focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-gbm-dark data-[state=active]:shadow-sm",{"data-[state=active]:text-gbm-sky":"secondary"===n},a),...i})});i.displayName="Tabs.Trigger";export{i as TabsTrigger};
2
+ import*as t from"react/jsx-runtime";import*as e from"@radix-ui/react-tabs";import*as a from"react";import*as r from"../../lib/utils.js";import*as s from"./tabs-root.js";let i=a.forwardRef(({className:a,...i},o)=>{let{variant:n}=(0,s.useTabsContext)();return(0,t.jsx)(e.Trigger,{ref:o,className:(0,r.cn)("inline-flex h-10 w-full cursor-pointer items-center justify-center whitespace-nowrap rounded px-3 py-1.5 font-medium text-gbm-dark/60 text-sm transition-all focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gbm-sky disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-gbm-dark data-[state=active]:shadow-sm",{"data-[state=active]:text-gbm-sky":"secondary"===n},a),...i})});i.displayName="Tabs.Trigger";export{i as TabsTrigger};
3
3
  //# sourceMappingURL=tabs-trigger.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\tabs\\tabs-trigger.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/tabs/tabs-trigger.tsx"],"sourcesContent":["\r\n\r\nimport * as TabsPrimitive from '@radix-ui/react-tabs'\r\nimport * as React from 'react'\r\n\r\nimport { cn } from '../../lib/utils'\r\nimport { useTabsContext } from './tabs-root'\r\n\r\nconst TabsTrigger = React.forwardRef<\r\n React.ElementRef<typeof TabsPrimitive.Trigger>,\r\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>\r\n>(({ className, ...props }, ref) => {\r\n const { variant } = useTabsContext()\r\n\r\n return (\r\n <TabsPrimitive.Trigger\r\n ref={ref}\r\n className={cn(\r\n 'inline-flex h-10 w-full cursor-pointer items-center justify-center whitespace-nowrap rounded px-3 py-1.5 font-medium text-gbm-dark/60 text-sm ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gbm-sky focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-gbm-dark data-[state=active]:shadow-sm',\r\n {\r\n 'data-[state=active]:text-gbm-sky': variant === 'secondary',\r\n },\r\n className\r\n )}\r\n {...props}\r\n />\r\n )\r\n})\r\nTabsTrigger.displayName = 'Tabs.Trigger'\r\n\r\nexport { TabsTrigger }\r\n"],"names":["TabsTrigger","React","className","props","ref","variant","useTabsContext","TabsPrimitive","cn"],"mappings":";yKAQA,IAAMA,EAAcC,EAAAA,UAAgB,CAGlC,CAAC,CAAEC,UAAAA,CAAS,CAAE,GAAGC,EAAO,CAAEC,KAC1B,GAAM,CAAEC,QAAAA,CAAO,CAAE,CAAGC,GAAAA,EAAAA,cAAAA,IAEpB,MACE,UAACC,EAAAA,OAAqB,EACpB,IAAKH,EACL,UAAWI,GAAAA,EAAAA,EAAAA,EACT,gbACA,CACE,mCAAoCH,cAAAA,CACtC,EACAH,GAED,GAAGC,CAAK,EAGf,EACAH,CAAAA,EAAY,WAAW,CAAG,sB"}
1
+ {"version":3,"file":"components\\tabs\\tabs-trigger.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/tabs/tabs-trigger.tsx"],"sourcesContent":["\r\n\r\nimport * as TabsPrimitive from '@radix-ui/react-tabs'\r\nimport * as React from 'react'\r\n\r\nimport { cn } from '../../lib/utils'\r\nimport { useTabsContext } from './tabs-root'\r\n\r\nconst TabsTrigger = React.forwardRef<\r\n React.ElementRef<typeof TabsPrimitive.Trigger>,\r\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>\r\n>(({ className, ...props }, ref) => {\r\n const { variant } = useTabsContext()\r\n\r\n return (\r\n <TabsPrimitive.Trigger\r\n ref={ref}\r\n className={cn(\r\n 'inline-flex h-10 w-full cursor-pointer items-center justify-center whitespace-nowrap rounded px-3 py-1.5 font-medium text-gbm-dark/60 text-sm transition-all focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gbm-sky disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-gbm-dark data-[state=active]:shadow-sm',\r\n {\r\n 'data-[state=active]:text-gbm-sky': variant === 'secondary',\r\n },\r\n className\r\n )}\r\n {...props}\r\n />\r\n )\r\n})\r\nTabsTrigger.displayName = 'Tabs.Trigger'\r\n\r\nexport { TabsTrigger }\r\n"],"names":["TabsTrigger","React","className","props","ref","variant","useTabsContext","TabsPrimitive","cn"],"mappings":";yKAQA,IAAMA,EAAcC,EAAAA,UAAgB,CAGlC,CAAC,CAAEC,UAAAA,CAAS,CAAE,GAAGC,EAAO,CAAEC,KAC1B,GAAM,CAAEC,QAAAA,CAAO,CAAE,CAAGC,GAAAA,EAAAA,cAAAA,IAEpB,MACE,UAACC,EAAAA,OAAqB,EACpB,IAAKH,EACL,UAAWI,GAAAA,EAAAA,EAAAA,EACT,6XACA,CACE,mCAAoCH,cAAAA,CACtC,EACAH,GAED,GAAGC,CAAK,EAGf,EACAH,CAAAA,EAAY,WAAW,CAAG,sB"}
@@ -7,7 +7,7 @@ declare const badgeVariants: import("tailwind-variants").TVReturnType<{
7
7
  destructive: string;
8
8
  outline: string;
9
9
  };
10
- }, undefined, "inline-flex items-center rounded-full border px-2.5 py-0.5 font-semibold text-xs transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2", {
10
+ }, undefined, "inline-flex items-center rounded-full border px-2.5 py-0.5 font-semibold text-xs transition-colors focus:outline-none focus:ring-1 focus:ring-gbm-sky", {
11
11
  variant: {
12
12
  default: string;
13
13
  secondary: string;
@@ -21,7 +21,7 @@ declare const badgeVariants: import("tailwind-variants").TVReturnType<{
21
21
  destructive: string;
22
22
  outline: string;
23
23
  };
24
- }, undefined, "inline-flex items-center rounded-full border px-2.5 py-0.5 font-semibold text-xs transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2", unknown, unknown, undefined>>;
24
+ }, undefined, "inline-flex items-center rounded-full border px-2.5 py-0.5 font-semibold text-xs transition-colors focus:outline-none focus:ring-1 focus:ring-gbm-sky", unknown, unknown, undefined>>;
25
25
  declare function Badge({ className, asChild, variant, ...props }: ComponentProps<'span'> & VariantProps<typeof badgeVariants> & {
26
26
  asChild?: boolean;
27
27
  }): JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../src/components/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAE3C,OAAO,EAAE,YAAY,EAAM,MAAM,aAAa,CAAA;AAO9C,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;qNAcjB,CAAA;AAMF,iBAAS,KAAK,CAAC,EACb,SAAS,EACT,OAAO,EACP,OAAO,EACP,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,MAAM,CAAC,GACvB,YAAY,CAAC,OAAO,aAAa,CAAC,GAAG;IACnC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,GAAG,GAAG,CAAC,OAAO,CAMhB;AAMD,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAA"}
1
+ {"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../src/components/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAE3C,OAAO,EAAE,YAAY,EAAM,MAAM,aAAa,CAAA;AAO9C,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;oMAcjB,CAAA;AAMF,iBAAS,KAAK,CAAC,EACb,SAAS,EACT,OAAO,EACP,OAAO,EACP,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,MAAM,CAAC,GACvB,YAAY,CAAC,OAAO,aAAa,CAAC,GAAG;IACnC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,GAAG,GAAG,CAAC,OAAO,CAMhB;AAMD,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gbmtech/aurora-ui",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "main": "./dist/cjs/index.cjs",
5
5
  "module": "./dist/esm/index.js",
6
6
  "types": "./dist/types/index.d.ts",