@gbmtech/aurora-ui 0.6.68 → 0.6.70
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
1
|
'use client'
|
|
2
|
-
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,t)=>{for(var _ in t)__webpack_require__.o(t,_)&&!__webpack_require__.o(e,_)&&Object.defineProperty(e,_,{enumerable:!0,get:t[_]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{REGEXP_ONLY_CHARS:()=>external_input_otp_namespaceObject.REGEXP_ONLY_CHARS,InputOTP:()=>InputOTP,REGEXP_ONLY_DIGITS_AND_CHARS:()=>external_input_otp_namespaceObject.REGEXP_ONLY_DIGITS_AND_CHARS,InputOTPGroup:()=>InputOTPGroup,InputOTPSeparator:()=>InputOTPSeparator,InputOTPSlot:()=>InputOTPSlot,REGEXP_ONLY_DIGITS:()=>external_input_otp_namespaceObject.REGEXP_ONLY_DIGITS});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_namespaceObject=require("@phosphor-icons/react"),external_input_otp_namespaceObject=require("input-otp"),external_react_namespaceObject=require("react"),utils_cjs_namespaceObject=require("../../lib/utils.cjs");function InputOTP({className:e,containerClassName:t,pattern:_,...r}){return(0,jsx_runtime_namespaceObject.jsx)(external_input_otp_namespaceObject.OTPInput,{"aria-label":"One-time password",className:(0,utils_cjs_namespaceObject.cn)("disabled:cursor-not-allowed",e),containerClassName:(0,utils_cjs_namespaceObject.cn)("flex items-center gap-2 has-[:disabled]:opacity-50",t),"data-slot":"input-otp",pattern:_||external_input_otp_namespaceObject.REGEXP_ONLY_DIGITS_AND_CHARS,...r})}function InputOTPGroup({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,utils_cjs_namespaceObject.cn)("flex items-center gap-1",e),"data-slot":"input-otp-group",role:"group",...t})}function InputOTPSlot({className:e,index:t,..._}){let{isActive:r,char:a,hasFakeCaret:p}=(0,external_react_namespaceObject.useContext)(external_input_otp_namespaceObject.OTPInputContext).slots[t];return(0,jsx_runtime_namespaceObject.jsxs)("div",{className:(0,utils_cjs_namespaceObject.cn)("relative flex h-12 w-11 items-center justify-center rounded border border-input border-y bg-card text-base shadow-sm transition-all data-[active=true]:z-10 data-[active=true]:ring-1 data-[active=true]:ring-
|
|
2
|
+
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,t)=>{for(var _ in t)__webpack_require__.o(t,_)&&!__webpack_require__.o(e,_)&&Object.defineProperty(e,_,{enumerable:!0,get:t[_]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{REGEXP_ONLY_CHARS:()=>external_input_otp_namespaceObject.REGEXP_ONLY_CHARS,InputOTP:()=>InputOTP,REGEXP_ONLY_DIGITS_AND_CHARS:()=>external_input_otp_namespaceObject.REGEXP_ONLY_DIGITS_AND_CHARS,InputOTPGroup:()=>InputOTPGroup,InputOTPSeparator:()=>InputOTPSeparator,InputOTPSlot:()=>InputOTPSlot,REGEXP_ONLY_DIGITS:()=>external_input_otp_namespaceObject.REGEXP_ONLY_DIGITS});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_namespaceObject=require("@phosphor-icons/react"),external_input_otp_namespaceObject=require("input-otp"),external_react_namespaceObject=require("react"),utils_cjs_namespaceObject=require("../../lib/utils.cjs");function InputOTP({className:e,containerClassName:t,pattern:_,...r}){return(0,jsx_runtime_namespaceObject.jsx)(external_input_otp_namespaceObject.OTPInput,{"aria-label":"One-time password",className:(0,utils_cjs_namespaceObject.cn)("disabled:cursor-not-allowed",e),containerClassName:(0,utils_cjs_namespaceObject.cn)("flex items-center gap-2 has-[:disabled]:opacity-50",t),"data-slot":"input-otp",pattern:_||external_input_otp_namespaceObject.REGEXP_ONLY_DIGITS_AND_CHARS,...r})}function InputOTPGroup({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,utils_cjs_namespaceObject.cn)("flex items-center gap-1",e),"data-slot":"input-otp-group",role:"group",...t})}function InputOTPSlot({className:e,index:t,..._}){let{isActive:r,char:a,hasFakeCaret:p}=(0,external_react_namespaceObject.useContext)(external_input_otp_namespaceObject.OTPInputContext).slots[t];return(0,jsx_runtime_namespaceObject.jsxs)("div",{className:(0,utils_cjs_namespaceObject.cn)("relative flex h-12 w-11 items-center justify-center rounded border border-input border-y bg-card text-base shadow-sm transition-all data-[active=true]:z-10 data-[active=true]:ring-1 data-[active=true]:ring-primary",e),"data-active":r,"data-slot":"input-otp-slot",..._,children:[a,p&&(0,jsx_runtime_namespaceObject.jsx)("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:(0,jsx_runtime_namespaceObject.jsx)("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})}function InputOTPSeparator({...e}){return(0,jsx_runtime_namespaceObject.jsx)("div",{"data-slot":"input-otp-separator",...e,children:(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.MinusIcon,{})})}for(var __webpack_i__ in exports.InputOTP=__webpack_exports__.InputOTP,exports.InputOTPGroup=__webpack_exports__.InputOTPGroup,exports.InputOTPSeparator=__webpack_exports__.InputOTPSeparator,exports.InputOTPSlot=__webpack_exports__.InputOTPSlot,exports.REGEXP_ONLY_CHARS=__webpack_exports__.REGEXP_ONLY_CHARS,exports.REGEXP_ONLY_DIGITS=__webpack_exports__.REGEXP_ONLY_DIGITS,exports.REGEXP_ONLY_DIGITS_AND_CHARS=__webpack_exports__.REGEXP_ONLY_DIGITS_AND_CHARS,__webpack_exports__)-1===["InputOTP","InputOTPGroup","InputOTPSeparator","InputOTPSlot","REGEXP_ONLY_CHARS","REGEXP_ONLY_DIGITS","REGEXP_ONLY_DIGITS_AND_CHARS"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1,2 +1,2 @@
|
|
|
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 a in _)__webpack_require__.o(_,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:_[a]})},__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__,{InputPassword:()=>InputPassword});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_namespaceObject=require("@phosphor-icons/react"),external_react_namespaceObject=require("react"),index_cjs_namespaceObject=require("../button/index.cjs"),external_input_index_cjs_namespaceObject=require("../input/index.cjs"),external_spinner_index_cjs_namespaceObject=require("../spinner/index.cjs"),input_cjs_namespaceObject=require("../../primitives/input.cjs");function InputPassword({className:e,disabled:_,loaderPosition:a,loading:s,prefix:t,readOnly:r,spinner:n,suffix:c,...i}){let[p,o]=(0,external_react_namespaceObject.useState)("password"),u=(0,external_react_namespaceObject.useCallback)(()=>{o(e=>"password"===e?"text":"password")},[]);return(0,jsx_runtime_namespaceObject.jsxs)(input_cjs_namespaceObject.Root,{className:external_input_index_cjs_namespaceObject.inputVariantsSlots.root({className:[!c&&"pr-1.5",e]}),"data-slot":"input-password",disabled:_,loaderPosition:a,loading:s,prefix:t,readOnly:r,spinner:n||(0,jsx_runtime_namespaceObject.jsx)(external_spinner_index_cjs_namespaceObject.Spinner,{}),suffix:c,children:[(0,jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Field,{autoCapitalize:"none",className:external_input_index_cjs_namespaceObject.inputVariantsSlots.input(),"data-slot":"input-password-item",type:p,...i}),(0,jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.Button,{"aria-label":"password"===p?"Show password":"Hide password",className:"full size-
|
|
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 a in _)__webpack_require__.o(_,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:_[a]})},__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__,{InputPassword:()=>InputPassword});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_namespaceObject=require("@phosphor-icons/react"),external_react_namespaceObject=require("react"),index_cjs_namespaceObject=require("../button/index.cjs"),external_input_index_cjs_namespaceObject=require("../input/index.cjs"),external_spinner_index_cjs_namespaceObject=require("../spinner/index.cjs"),input_cjs_namespaceObject=require("../../primitives/input.cjs");function InputPassword({className:e,disabled:_,loaderPosition:a,loading:s,prefix:t,readOnly:r,spinner:n,suffix:c,...i}){let[p,o]=(0,external_react_namespaceObject.useState)("password"),u=(0,external_react_namespaceObject.useCallback)(()=>{o(e=>"password"===e?"text":"password")},[]);return(0,jsx_runtime_namespaceObject.jsxs)(input_cjs_namespaceObject.Root,{className:external_input_index_cjs_namespaceObject.inputVariantsSlots.root({className:[!c&&"pr-1.5",e]}),"data-slot":"input-password",disabled:_,loaderPosition:a,loading:s,prefix:t,readOnly:r,spinner:n||(0,jsx_runtime_namespaceObject.jsx)(external_spinner_index_cjs_namespaceObject.Spinner,{}),suffix:c,children:[(0,jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Field,{autoCapitalize:"none",className:external_input_index_cjs_namespaceObject.inputVariantsSlots.input(),"data-slot":"input-password-item",type:p,...i}),(0,jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.Button,{"aria-label":"password"===p?"Show password":"Hide password",className:"full size-6 rounded-full focus-visible:ring-0","data-slot":"input-password-toggle",disabled:_,prefix:"password"===p?(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.EyeSlashIcon,{className:"size-4"}):(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.EyeIcon,{className:"size-4"}),size:"icon",variant:"ghost",onClick:u})]})}for(var __webpack_i__ in exports.InputPassword=__webpack_exports__.InputPassword,__webpack_exports__)-1===["InputPassword"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
import{jsx as t,jsxs as e}from"react/jsx-runtime";import{MinusIcon as r}from"@phosphor-icons/react";import{OTPInput as a,OTPInputContext as i,REGEXP_ONLY_CHARS as o,REGEXP_ONLY_DIGITS as n,REGEXP_ONLY_DIGITS_AND_CHARS as s}from"input-otp";import{useContext as
|
|
2
|
+
import{jsx as t,jsxs as e}from"react/jsx-runtime";import{MinusIcon as r}from"@phosphor-icons/react";import{OTPInput as a,OTPInputContext as i,REGEXP_ONLY_CHARS as o,REGEXP_ONLY_DIGITS as n,REGEXP_ONLY_DIGITS_AND_CHARS as s}from"input-otp";import{useContext as p}from"react";import{cn as l}from"../../lib/utils.js";function u({className:e,containerClassName:r,pattern:i,...o}){return t(a,{"aria-label":"One-time password",className:l("disabled:cursor-not-allowed",e),containerClassName:l("flex items-center gap-2 has-[:disabled]:opacity-50",r),"data-slot":"input-otp",pattern:i||s,...o})}function c({className:e,...r}){return t("div",{className:l("flex items-center gap-1",e),"data-slot":"input-otp-group",role:"group",...r})}function d({className:r,index:a,...o}){let{isActive:n,char:s,hasFakeCaret:u}=p(i).slots[a];return e("div",{className:l("relative flex h-12 w-11 items-center justify-center rounded border border-input border-y bg-card text-base shadow-sm transition-all data-[active=true]:z-10 data-[active=true]:ring-1 data-[active=true]:ring-primary",r),"data-active":n,"data-slot":"input-otp-slot",...o,children:[s,u&&t("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:t("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})}function m({...e}){return t("div",{"data-slot":"input-otp-separator",...e,children:t(r,{})})}export{u as InputOTP,c as InputOTPGroup,m as InputOTPSeparator,d as InputOTPSlot,o as REGEXP_ONLY_CHARS,n as REGEXP_ONLY_DIGITS,s as REGEXP_ONLY_DIGITS_AND_CHARS};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
import{jsx as s,jsxs as o}from"react/jsx-runtime";import{EyeIcon as i,EyeSlashIcon as r}from"@phosphor-icons/react";import{useCallback as a,useState as t}from"react";import{Button as e}from"../button/index.js";import{inputVariantsSlots as p}from"../input/index.js";import{Spinner as n}from"../spinner/index.js";import{Field as d,Root as l}from"../../primitives/input.js";function m({className:m,disabled:u,loaderPosition:c,loading:f,prefix:w,readOnly:x,spinner:N,suffix:b,...g}){let[h,j]=t("password"),z=a(()=>{j(s=>"password"===s?"text":"password")},[]);return o(l,{className:p.root({className:[!b&&"pr-1.5",m]}),"data-slot":"input-password",disabled:u,loaderPosition:c,loading:f,prefix:w,readOnly:x,spinner:N||s(n,{}),suffix:b,children:[s(d,{autoCapitalize:"none",className:p.input(),"data-slot":"input-password-item",type:h,...g}),s(e,{"aria-label":"password"===h?"Show password":"Hide password",className:"full size-
|
|
2
|
+
import{jsx as s,jsxs as o}from"react/jsx-runtime";import{EyeIcon as i,EyeSlashIcon as r}from"@phosphor-icons/react";import{useCallback as a,useState as t}from"react";import{Button as e}from"../button/index.js";import{inputVariantsSlots as p}from"../input/index.js";import{Spinner as n}from"../spinner/index.js";import{Field as d,Root as l}from"../../primitives/input.js";function m({className:m,disabled:u,loaderPosition:c,loading:f,prefix:w,readOnly:x,spinner:N,suffix:b,...g}){let[h,j]=t("password"),z=a(()=>{j(s=>"password"===s?"text":"password")},[]);return o(l,{className:p.root({className:[!b&&"pr-1.5",m]}),"data-slot":"input-password",disabled:u,loaderPosition:c,loading:f,prefix:w,readOnly:x,spinner:N||s(n,{}),suffix:b,children:[s(d,{autoCapitalize:"none",className:p.input(),"data-slot":"input-password-item",type:h,...g}),s(e,{"aria-label":"password"===h?"Show password":"Hide password",className:"full size-6 rounded-full focus-visible:ring-0","data-slot":"input-password-toggle",disabled:u,prefix:"password"===h?s(r,{className:"size-4"}):s(i,{className:"size-4"}),size:"icon",variant:"ghost",onClick:z})]})}export{m as InputPassword};
|