@jamsrui/utils 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -0
- package/dist/attr.d.mts +6 -0
- package/dist/attr.d.ts +6 -0
- package/dist/attr.js +1 -0
- package/dist/attr.mjs +1 -0
- package/dist/chunk-35NZ7LOM.js +1 -0
- package/dist/chunk-5J3NC7SL.mjs +1 -0
- package/dist/chunk-5R34SC2A.mjs +1 -0
- package/dist/chunk-6F4PWJZI.js +1 -0
- package/dist/chunk-GBL52NZP.js +1 -0
- package/dist/chunk-I46H3MSM.js +1 -0
- package/dist/chunk-LKJA5G34.js +1 -0
- package/dist/chunk-M7STMVRD.mjs +1 -0
- package/dist/chunk-MI5VRFDD.mjs +1 -0
- package/dist/chunk-N4MX2VP2.mjs +1 -0
- package/dist/chunk-OLT3CP3H.js +1 -0
- package/dist/chunk-PGZBHVD4.js +1 -0
- package/dist/chunk-SUJUS2CR.js +1 -0
- package/dist/chunk-WBQAMGXK.mjs +0 -0
- package/dist/chunk-XH7XZGNV.mjs +1 -0
- package/dist/chunk-XWVZ2ZQF.mjs +1 -0
- package/dist/chunk-YEUPOEOF.mjs +1 -0
- package/dist/chunk-ZO473WNU.js +1 -0
- package/dist/class-names.d.mts +60 -0
- package/dist/class-names.d.ts +60 -0
- package/dist/class-names.js +1 -0
- package/dist/class-names.mjs +1 -0
- package/dist/cn.d.mts +5 -0
- package/dist/cn.d.ts +5 -0
- package/dist/cn.js +1 -0
- package/dist/cn.mjs +1 -0
- package/dist/context.d.mts +11 -0
- package/dist/context.d.ts +11 -0
- package/dist/context.js +1 -0
- package/dist/context.mjs +1 -0
- package/dist/index.d.mts +11 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/dist/merge-props.d.mts +7 -0
- package/dist/merge-props.d.ts +7 -0
- package/dist/merge-props.js +1 -0
- package/dist/merge-props.mjs +1 -0
- package/dist/object.d.mts +4 -0
- package/dist/object.d.ts +4 -0
- package/dist/object.js +1 -0
- package/dist/object.mjs +1 -0
- package/dist/transition.d.mts +22 -0
- package/dist/transition.d.ts +22 -0
- package/dist/transition.js +1 -0
- package/dist/transition.mjs +1 -0
- package/dist/tv.d.mts +23 -0
- package/dist/tv.d.ts +23 -0
- package/dist/tv.js +1 -0
- package/dist/tv.mjs +1 -0
- package/dist/types.d.mts +14 -0
- package/dist/types.d.ts +14 -0
- package/dist/types.js +1 -0
- package/dist/types.mjs +1 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# π **JamsrUI**
|
|
2
|
+
|
|
3
|
+
**A comprehensive React UI component library designed for developers, with Tailwind CSS integration for seamless styling.**
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## π **Overview**
|
|
7
|
+
|
|
8
|
+
[JamsrUI](https://jamsr-ui.jamsrworld.com) is designed to help developers build modern, fast and visually appealing web applications with ease.
|
|
9
|
+
|
|
10
|
+
## π Getting Started
|
|
11
|
+
|
|
12
|
+
Boost & Build your websites using [JamsrUI](https://jamsr-ui.jamsrworld.com).
|
|
13
|
+
|
|
14
|
+
## β¨ Features
|
|
15
|
+
|
|
16
|
+
- π **Production-Ready**: Optimized for modern React projects.
|
|
17
|
+
- π¨ **Customizable**: Easily override styles and themes.
|
|
18
|
+
- π οΈ **Reusable Components**: Save time with prebuilt, efficient UI elements.
|
|
19
|
+
- β‘ **Developer-Friendly**: Simple API and well-documented usage.
|
|
20
|
+
- π¦ **Lightweight**: Minimal dependencies for fast performance.
|
|
21
|
+
- π₯οΈ **Modern Design**: Clean, responsive, and user-friendly components.
|
|
22
|
+
|
|
23
|
+
## π± Community
|
|
24
|
+
|
|
25
|
+
Weβre thrilled to see the community actively engage with **JamsrUI**! Whether you're sharing feedback, reporting bugs, requesting features, or showcasing projects built with JamsrUI, your involvement helps us grow and improve.
|
|
26
|
+
|
|
27
|
+
### How to Engage
|
|
28
|
+
|
|
29
|
+
- π¬ **Report Bugs**: [GitHub Issues](https://github.com/jamsrworld/jamsr-ui/issues)
|
|
30
|
+
- π **Request Features**: Share ideas for new components.
|
|
31
|
+
- π€ **Showcase Projects**: Let us know how you use JamsrUI.
|
|
32
|
+
|
|
33
|
+
## Contributing
|
|
34
|
+
|
|
35
|
+
We welcome contributions from developers of all skill levels!
|
|
36
|
+
|
|
37
|
+
## β Support the Project
|
|
38
|
+
|
|
39
|
+
If you find **JamsrUI** helpful, consider giving it a β on [GitHub](https://github.com/jamsrworld/jamsr-ui).
|
|
40
|
+
|
package/dist/attr.d.mts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const dataAttrDev: (value: string) => string | undefined;
|
|
2
|
+
declare const isDisabledElement: (element: HTMLElement) => boolean;
|
|
3
|
+
type Booleanish = boolean | "true" | "false";
|
|
4
|
+
declare const dataAttr: (condition: boolean | undefined) => Booleanish;
|
|
5
|
+
|
|
6
|
+
export { dataAttr, dataAttrDev, isDisabledElement };
|
package/dist/attr.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const dataAttrDev: (value: string) => string | undefined;
|
|
2
|
+
declare const isDisabledElement: (element: HTMLElement) => boolean;
|
|
3
|
+
type Booleanish = boolean | "true" | "false";
|
|
4
|
+
declare const dataAttr: (condition: boolean | undefined) => Booleanish;
|
|
5
|
+
|
|
6
|
+
export { dataAttr, dataAttrDev, isDisabledElement };
|
package/dist/attr.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkI46H3MSMjs = require('./chunk-I46H3MSM.js');exports.dataAttr = _chunkI46H3MSMjs.c; exports.dataAttrDev = _chunkI46H3MSMjs.a; exports.isDisabledElement = _chunkI46H3MSMjs.b;
|
package/dist/attr.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c}from"./chunk-YEUPOEOF.mjs";export{c as dataAttr,a as dataAttrDev,b as isDisabledElement};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _clsx = require('clsx'); var _clsx2 = _interopRequireDefault(_clsx);var _tailwindmerge = require('tailwind-merge');var o=_tailwindmerge.extendTailwindMerge.call(void 0, {extend:{classGroups:{gap:["gap-responsive"],"font-size":["text-size-inherit"],shadow:["shadow-card"]}}}),i= exports.a =(...e)=>o(_clsx2.default.call(void 0, e));exports.a = i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t={collapse:{enter:{opacity:1,height:"auto",transition:{type:"spring",duration:.6}},exit:{opacity:0,height:0,transition:{type:"spring",duration:.6}}}};export{t as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as u}from"./chunk-M7STMVRD.mjs";var s=(e,d)=>{let r=u(e,[...d]),o={};return d.forEach(n=>{n in e&&(o[n]=e[n])}),[r,o]},x={sm:"rounded",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl","3xl":"rounded-3xl",full:"rounded-full",none:"rounded-none"},i=e=>{let d=Array.isArray(e)?e:[e],r=o=>d.reduce((n,t)=>({...n,[t]:o}),{});return{sm:r("rounded"),md:r("rounded-md"),lg:r("rounded-lg"),xl:r("rounded-xl"),"2xl":r("rounded-2xl"),"3xl":r("rounded-3xl"),full:r("rounded-full"),none:r("rounded-none")}};export{s as a,x as b,i as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkZO473WNUjs = require('./chunk-ZO473WNU.js');var s=(e,d)=>{let r=_chunkZO473WNUjs.a.call(void 0, e,[...d]),o={};return d.forEach(n=>{n in e&&(o[n]=e[n])}),[r,o]},x= exports.b ={sm:"rounded",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl","3xl":"rounded-3xl",full:"rounded-full",none:"rounded-none"},i= exports.c =e=>{let d=Array.isArray(e)?e:[e],r=o=>d.reduce((n,t)=>({...n,[t]:o}),{});return{sm:r("rounded"),md:r("rounded-md"),lg:r("rounded-lg"),xl:r("rounded-xl"),"2xl":r("rounded-2xl"),"3xl":r("rounded-3xl"),full:r("rounded-full"),none:r("rounded-none")}};exports.a = s; exports.b = x; exports.c = i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var e=t=>process.env.NODE_ENV==="production"?void 0:t,n= exports.b =t=>t.getAttribute("disabled")!==null||t.getAttribute("aria-disabled")!==null||t.getAttribute("data-disabled")!==null,a= exports.c =t=>t?"true":void 0;exports.a = e; exports.b = n; exports.c = a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var t={collapse:{enter:{opacity:1,height:"auto",transition:{type:"spring",duration:.6}},exit:{opacity:0,height:0,transition:{type:"spring",duration:.6}}}};exports.a = t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var s=(e,t)=>Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n))),O=(e,t)=>Object.fromEntries(Object.entries(e).filter(([n])=>t.includes(n)));export{s as a,O as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as n}from"./chunk-XWVZ2ZQF.mjs";import{createContext as d,use as l}from"react";var f=({displayName:r})=>{let e=d({});e.displayName=r;let s=c=>{let{merge:a=!0,...o}=c,i=t(),m=a?n(i,o):o,{children:g,...p}=m;return React.createElement(e,{value:p},g)},t=()=>l(e);return[s,t]};export{f as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import s from"clsx";import{extendTailwindMerge as t}from"tailwind-merge";var o=t({extend:{classGroups:{gap:["gap-responsive"],"font-size":["text-size-inherit"],shadow:["shadow-card"]}}}),i=(...e)=>o(s(e));export{i as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var e={default:"bg-default border-default text-default-foreground ui-hover:bg-default-hover",primary:"bg-primary border-primary text-primary-foreground ui-hover:bg-primary-hover",secondary:"bg-secondary border-secondary text-secondary-foreground ui-hover:bg-secondary-hover",success:"bg-success border-success text-success-foreground ui-hover:bg-success-hover",warning:"bg-warning border-warning text-warning-foreground ui-hover:bg-warning-hover",danger:"bg-danger border-danger text-danger-foreground ui-hover:bg-danger-hover"},r={default:"bg-transparent border-default text-foreground ui-hover:bg-default-subtle",primary:"bg-transparent border-primary text-primary ui-hover:bg-primary-subtle",secondary:"bg-transparent border-secondary text-secondary ui-hover:bg-secondary-subtle",success:"bg-transparent border-success text-success ui-hover:bg-success-subtle",warning:"bg-transparent border-warning text-warning ui-hover:bg-warning-subtle",danger:"bg-transparent border-danger text-danger ui-hover:bg-danger-subtle"},s={default:"text-foreground ui-hover:opacity-90",primary:"text-primary ui-hover:text-primary-hover",secondary:"text-secondary ui-hover:text-secondary-hover",success:"text-success ui-hover:text-success-hover",warning:"text-warning ui-hover:text-warning-hover",danger:"text-danger ui-hover:text-danger-hover"},t={default:"bg-transparent text-foreground ui-hover:bg-default-subtle-hover ui-hover:text-foreground",primary:"bg-transparent text-primary ui-hover:bg-primary-subtle-hover ui-hover:text-primary",secondary:"bg-transparent text-secondary ui-hover:bg-secondary-subtle-hover ui-hover:text-secondary",success:"bg-transparent text-success ui-hover:bg-success-subtle-hover ui-hover:text-success",warning:"bg-transparent text-warning ui-hover:bg-warning-subtle-hover ui-hover:text-warning",danger:"bg-transparent text-danger ui-hover:bg-danger-subtle-hover ui-hover:text-danger"},o={default:"bg-default-subtle-hover text-foreground ui-hover:bg-default-subtle",primary:"bg-primary-subtle-hover text-primary ui-hover:bg-primary-subtle",secondary:"bg-secondary-subtle-hover text-secondary ui-hover:bg-secondary-subtle",success:"bg-success-subtle-hover text-success ui-hover:bg-success-subtle",warning:"bg-warning-subtle-hover text-warning ui-hover:bg-warning-subtle",danger:"bg-danger-subtle-hover text-danger ui-hover:bg-danger-subtle"},a= exports.a ={solid:e,bordered:r,text:s,light:t,flat:o},n= exports.b =["default","primary","secondary","success","warning","danger"],i= exports.c =["solid","bordered","text","light","flat"],u= exports.d =["focus-visible:outline-solid","focus-visible:z-10","focus-visible:outline-2","focus-visible:outline-focus","focus-visible:outline-offset-2"],g= exports.e =["outline-none","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-solid","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],d= exports.f =["outline-none","group-data-[focus-visible=true]:z-10","group-data-[focus-visible=true]:ring-2","group-data-[focus-visible=true]:ring-focus","group-data-[focus-visible=true]:ring-offset-2","group-data-[focus-visible=true]:ring-offset-background"],l= exports.g =["outline-none","ring-2","ring-focus","ring-offset-2","ring-offset-background"],c= exports.h =["absolute","top-1/2","left-1/2","-translate-x-1/2","-translate-y-1/2"],b= exports.i =["absolute","inset-0"];exports.a = a; exports.b = n; exports.c = i; exports.d = u; exports.e = g; exports.f = d; exports.g = l; exports.h = c; exports.i = b;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSUJUS2CRjs = require('./chunk-SUJUS2CR.js');var _react = require('react');var f=({displayName:r})=>{let e=_react.createContext.call(void 0, {});e.displayName=r;let s=c=>{let{merge:a=!0,...o}=c,i=t(),m=a?_chunkSUJUS2CRjs.a.call(void 0, i,o):o,{children:g,...p}=m;return React.createElement(e,{value:p},g)},t=()=>_react.use.call(void 0, e);return[s,t]};exports.a = f;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunk35NZ7LOMjs = require('./chunk-35NZ7LOM.js');var P=(...p)=>{let o=p.filter(Boolean),t=Object.assign({},...o),r=o.map(s=>s.classNames).filter(Boolean);r.length>0&&(t.classNames={},new Set(r.flatMap(e=>Object.keys(e))).forEach(e=>{let n=r.map(c=>c[e]).filter(Boolean);n.length>0&&(t.classNames[e]=_chunk35NZ7LOMjs.a.call(void 0, n.join(" ")))}));let a=o.map(s=>s.slotProps).filter(Boolean);a.length>0&&(t.slotProps={},new Set(a.flatMap(e=>Object.keys(e))).forEach(e=>{let n=a.map(c=>c[e]).filter(Boolean);n.length>0&&(t.slotProps[e]=P(...n))}));let l=o.map(s=>s.className).filter(Boolean);l.length>0&&(t.className=_chunk35NZ7LOMjs.a.call(void 0, l.join(" ")));let i=o.map(s=>s.style).filter(Boolean);i.length>0&&(t.style=Object.assign({},...i));let f=new Set;return o.forEach(s=>{Object.keys(s).forEach(e=>{e.startsWith("on")&&typeof s[e]=="function"&&f.add(e)})}),f.forEach(s=>{let e=o.map(n=>n[s]).filter(Boolean).reverse();e.length>0&&(t[s]=n=>{e.forEach(c=>c(n))})}),t},h= exports.b =(p,o,t)=>{let{props:r,omitProps:a,...l}=o,i=_optionalChain([a, 'optionalAccess', _ => _.length])?Object.fromEntries(Object.entries(t).filter(([s])=>!a.includes(s))):t,f=P(p,l,t);return P(l,_optionalChain([r, 'optionalCall', _2 => _2(f)]),i)};exports.a = P; exports.b = h;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={default:"bg-default border-default text-default-foreground ui-hover:bg-default-hover",primary:"bg-primary border-primary text-primary-foreground ui-hover:bg-primary-hover",secondary:"bg-secondary border-secondary text-secondary-foreground ui-hover:bg-secondary-hover",success:"bg-success border-success text-success-foreground ui-hover:bg-success-hover",warning:"bg-warning border-warning text-warning-foreground ui-hover:bg-warning-hover",danger:"bg-danger border-danger text-danger-foreground ui-hover:bg-danger-hover"},r={default:"bg-transparent border-default text-foreground ui-hover:bg-default-subtle",primary:"bg-transparent border-primary text-primary ui-hover:bg-primary-subtle",secondary:"bg-transparent border-secondary text-secondary ui-hover:bg-secondary-subtle",success:"bg-transparent border-success text-success ui-hover:bg-success-subtle",warning:"bg-transparent border-warning text-warning ui-hover:bg-warning-subtle",danger:"bg-transparent border-danger text-danger ui-hover:bg-danger-subtle"},s={default:"text-foreground ui-hover:opacity-90",primary:"text-primary ui-hover:text-primary-hover",secondary:"text-secondary ui-hover:text-secondary-hover",success:"text-success ui-hover:text-success-hover",warning:"text-warning ui-hover:text-warning-hover",danger:"text-danger ui-hover:text-danger-hover"},t={default:"bg-transparent text-foreground ui-hover:bg-default-subtle-hover ui-hover:text-foreground",primary:"bg-transparent text-primary ui-hover:bg-primary-subtle-hover ui-hover:text-primary",secondary:"bg-transparent text-secondary ui-hover:bg-secondary-subtle-hover ui-hover:text-secondary",success:"bg-transparent text-success ui-hover:bg-success-subtle-hover ui-hover:text-success",warning:"bg-transparent text-warning ui-hover:bg-warning-subtle-hover ui-hover:text-warning",danger:"bg-transparent text-danger ui-hover:bg-danger-subtle-hover ui-hover:text-danger"},o={default:"bg-default-subtle-hover text-foreground ui-hover:bg-default-subtle",primary:"bg-primary-subtle-hover text-primary ui-hover:bg-primary-subtle",secondary:"bg-secondary-subtle-hover text-secondary ui-hover:bg-secondary-subtle",success:"bg-success-subtle-hover text-success ui-hover:bg-success-subtle",warning:"bg-warning-subtle-hover text-warning ui-hover:bg-warning-subtle",danger:"bg-danger-subtle-hover text-danger ui-hover:bg-danger-subtle"},a={solid:e,bordered:r,text:s,light:t,flat:o},n=["default","primary","secondary","success","warning","danger"],i=["solid","bordered","text","light","flat"],u=["focus-visible:outline-solid","focus-visible:z-10","focus-visible:outline-2","focus-visible:outline-focus","focus-visible:outline-offset-2"],g=["outline-none","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-solid","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],d=["outline-none","group-data-[focus-visible=true]:z-10","group-data-[focus-visible=true]:ring-2","group-data-[focus-visible=true]:ring-focus","group-data-[focus-visible=true]:ring-offset-2","group-data-[focus-visible=true]:ring-offset-background"],l=["outline-none","ring-2","ring-focus","ring-offset-2","ring-offset-background"],c=["absolute","top-1/2","left-1/2","-translate-x-1/2","-translate-y-1/2"],b=["absolute","inset-0"];export{a,n as b,i as c,u as d,g as e,d as f,l as g,c as h,b as i};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as m}from"./chunk-N4MX2VP2.mjs";var P=(...p)=>{let o=p.filter(Boolean),t=Object.assign({},...o),r=o.map(s=>s.classNames).filter(Boolean);r.length>0&&(t.classNames={},new Set(r.flatMap(e=>Object.keys(e))).forEach(e=>{let n=r.map(c=>c[e]).filter(Boolean);n.length>0&&(t.classNames[e]=m(n.join(" ")))}));let a=o.map(s=>s.slotProps).filter(Boolean);a.length>0&&(t.slotProps={},new Set(a.flatMap(e=>Object.keys(e))).forEach(e=>{let n=a.map(c=>c[e]).filter(Boolean);n.length>0&&(t.slotProps[e]=P(...n))}));let l=o.map(s=>s.className).filter(Boolean);l.length>0&&(t.className=m(l.join(" ")));let i=o.map(s=>s.style).filter(Boolean);i.length>0&&(t.style=Object.assign({},...i));let f=new Set;return o.forEach(s=>{Object.keys(s).forEach(e=>{e.startsWith("on")&&typeof s[e]=="function"&&f.add(e)})}),f.forEach(s=>{let e=o.map(n=>n[s]).filter(Boolean).reverse();e.length>0&&(t[s]=n=>{e.forEach(c=>c(n))})}),t},h=(p,o,t)=>{let{props:r,omitProps:a,...l}=o,i=a?.length?Object.fromEntries(Object.entries(t).filter(([s])=>!a.includes(s))):t,f=P(p,l,t);return P(l,r?.(f),i)};export{P as a,h as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=t=>process.env.NODE_ENV==="production"?void 0:t,n=t=>t.getAttribute("disabled")!==null||t.getAttribute("aria-disabled")!==null||t.getAttribute("data-disabled")!==null,a=t=>t?"true":void 0;export{e as a,n as b,a as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var s=(e,t)=>Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n))),O= exports.b =(e,t)=>Object.fromEntries(Object.entries(e).filter(([n])=>t.includes(n)));exports.a = s; exports.b = O;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
type Color = "default" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
2
|
+
type Variant = "solid" | "bordered" | "text" | "light" | "flat";
|
|
3
|
+
declare const colorVariants: {
|
|
4
|
+
solid: {
|
|
5
|
+
default: string;
|
|
6
|
+
primary: string;
|
|
7
|
+
secondary: string;
|
|
8
|
+
success: string;
|
|
9
|
+
warning: string;
|
|
10
|
+
danger: string;
|
|
11
|
+
};
|
|
12
|
+
bordered: {
|
|
13
|
+
default: string;
|
|
14
|
+
primary: string;
|
|
15
|
+
secondary: string;
|
|
16
|
+
success: string;
|
|
17
|
+
warning: string;
|
|
18
|
+
danger: string;
|
|
19
|
+
};
|
|
20
|
+
text: {
|
|
21
|
+
default: string;
|
|
22
|
+
primary: string;
|
|
23
|
+
secondary: string;
|
|
24
|
+
success: string;
|
|
25
|
+
warning: string;
|
|
26
|
+
danger: string;
|
|
27
|
+
};
|
|
28
|
+
light: {
|
|
29
|
+
default: string;
|
|
30
|
+
primary: string;
|
|
31
|
+
secondary: string;
|
|
32
|
+
success: string;
|
|
33
|
+
warning: string;
|
|
34
|
+
danger: string;
|
|
35
|
+
};
|
|
36
|
+
flat: {
|
|
37
|
+
default: string;
|
|
38
|
+
primary: string;
|
|
39
|
+
secondary: string;
|
|
40
|
+
success: string;
|
|
41
|
+
warning: string;
|
|
42
|
+
danger: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
declare const allColors: Color[];
|
|
46
|
+
declare const allVariants: Variant[];
|
|
47
|
+
/**
|
|
48
|
+
* focus classNames when the element is focused by keyboard.
|
|
49
|
+
*/
|
|
50
|
+
declare const focusVisibleClasses: string[];
|
|
51
|
+
declare const dataFocusVisibleClasses: string[];
|
|
52
|
+
declare const groupDataFocusVisibleClasses: string[];
|
|
53
|
+
declare const ringClasses: string[];
|
|
54
|
+
/**
|
|
55
|
+
* This classes centers the element by using absolute positioning.
|
|
56
|
+
*/
|
|
57
|
+
declare const translateCenterClasses: string[];
|
|
58
|
+
declare const absoluteFullClasses: string[];
|
|
59
|
+
|
|
60
|
+
export { absoluteFullClasses, allColors, allVariants, colorVariants, dataFocusVisibleClasses, focusVisibleClasses, groupDataFocusVisibleClasses, ringClasses, translateCenterClasses };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
type Color = "default" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
2
|
+
type Variant = "solid" | "bordered" | "text" | "light" | "flat";
|
|
3
|
+
declare const colorVariants: {
|
|
4
|
+
solid: {
|
|
5
|
+
default: string;
|
|
6
|
+
primary: string;
|
|
7
|
+
secondary: string;
|
|
8
|
+
success: string;
|
|
9
|
+
warning: string;
|
|
10
|
+
danger: string;
|
|
11
|
+
};
|
|
12
|
+
bordered: {
|
|
13
|
+
default: string;
|
|
14
|
+
primary: string;
|
|
15
|
+
secondary: string;
|
|
16
|
+
success: string;
|
|
17
|
+
warning: string;
|
|
18
|
+
danger: string;
|
|
19
|
+
};
|
|
20
|
+
text: {
|
|
21
|
+
default: string;
|
|
22
|
+
primary: string;
|
|
23
|
+
secondary: string;
|
|
24
|
+
success: string;
|
|
25
|
+
warning: string;
|
|
26
|
+
danger: string;
|
|
27
|
+
};
|
|
28
|
+
light: {
|
|
29
|
+
default: string;
|
|
30
|
+
primary: string;
|
|
31
|
+
secondary: string;
|
|
32
|
+
success: string;
|
|
33
|
+
warning: string;
|
|
34
|
+
danger: string;
|
|
35
|
+
};
|
|
36
|
+
flat: {
|
|
37
|
+
default: string;
|
|
38
|
+
primary: string;
|
|
39
|
+
secondary: string;
|
|
40
|
+
success: string;
|
|
41
|
+
warning: string;
|
|
42
|
+
danger: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
declare const allColors: Color[];
|
|
46
|
+
declare const allVariants: Variant[];
|
|
47
|
+
/**
|
|
48
|
+
* focus classNames when the element is focused by keyboard.
|
|
49
|
+
*/
|
|
50
|
+
declare const focusVisibleClasses: string[];
|
|
51
|
+
declare const dataFocusVisibleClasses: string[];
|
|
52
|
+
declare const groupDataFocusVisibleClasses: string[];
|
|
53
|
+
declare const ringClasses: string[];
|
|
54
|
+
/**
|
|
55
|
+
* This classes centers the element by using absolute positioning.
|
|
56
|
+
*/
|
|
57
|
+
declare const translateCenterClasses: string[];
|
|
58
|
+
declare const absoluteFullClasses: string[];
|
|
59
|
+
|
|
60
|
+
export { absoluteFullClasses, allColors, allVariants, colorVariants, dataFocusVisibleClasses, focusVisibleClasses, groupDataFocusVisibleClasses, ringClasses, translateCenterClasses };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkOLT3CP3Hjs = require('./chunk-OLT3CP3H.js');exports.absoluteFullClasses = _chunkOLT3CP3Hjs.i; exports.allColors = _chunkOLT3CP3Hjs.b; exports.allVariants = _chunkOLT3CP3Hjs.c; exports.colorVariants = _chunkOLT3CP3Hjs.a; exports.dataFocusVisibleClasses = _chunkOLT3CP3Hjs.e; exports.focusVisibleClasses = _chunkOLT3CP3Hjs.d; exports.groupDataFocusVisibleClasses = _chunkOLT3CP3Hjs.f; exports.ringClasses = _chunkOLT3CP3Hjs.g; exports.translateCenterClasses = _chunkOLT3CP3Hjs.h;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i}from"./chunk-XH7XZGNV.mjs";export{i as absoluteFullClasses,b as allColors,c as allVariants,a as colorVariants,e as dataFocusVisibleClasses,d as focusVisibleClasses,f as groupDataFocusVisibleClasses,g as ringClasses,h as translateCenterClasses};
|
package/dist/cn.d.mts
ADDED
package/dist/cn.d.ts
ADDED
package/dist/cn.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk35NZ7LOMjs = require('./chunk-35NZ7LOM.js');exports.cn = _chunk35NZ7LOMjs.a;
|
package/dist/cn.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-N4MX2VP2.mjs";export{a as cn};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
|
|
3
|
+
declare const createConfigContext: <T extends {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}>({ displayName, }: {
|
|
6
|
+
displayName: string;
|
|
7
|
+
}) => readonly [(props: T & {
|
|
8
|
+
merge?: boolean;
|
|
9
|
+
}) => react.JSX.Element, () => T];
|
|
10
|
+
|
|
11
|
+
export { createConfigContext };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
|
|
3
|
+
declare const createConfigContext: <T extends {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}>({ displayName, }: {
|
|
6
|
+
displayName: string;
|
|
7
|
+
}) => readonly [(props: T & {
|
|
8
|
+
merge?: boolean;
|
|
9
|
+
}) => react.JSX.Element, () => T];
|
|
10
|
+
|
|
11
|
+
export { createConfigContext };
|
package/dist/context.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunkPGZBHVD4js = require('./chunk-PGZBHVD4.js');require('./chunk-SUJUS2CR.js');require('./chunk-35NZ7LOM.js');exports.createConfigContext = _chunkPGZBHVD4js.a;
|
package/dist/context.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{a}from"./chunk-MI5VRFDD.mjs";import"./chunk-XWVZ2ZQF.mjs";import"./chunk-N4MX2VP2.mjs";export{a as createConfigContext};
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { ClassProp, ClassValue, TVReturnType, VariantProps, tv } from 'tailwind-variants';
|
|
2
|
+
export { dataAttr, dataAttrDev, isDisabledElement } from './attr.mjs';
|
|
3
|
+
export { cn } from './cn.mjs';
|
|
4
|
+
export { mergeConfigProps, mergeProps } from './merge-props.mjs';
|
|
5
|
+
export { mapPropsVariants, radiusBaseVariant, radiusVariant } from './tv.mjs';
|
|
6
|
+
export { PropGetter, SlotsToClassNames, UIProps, UnknownTV } from './types.mjs';
|
|
7
|
+
export { absoluteFullClasses, allColors, allVariants, colorVariants, dataFocusVisibleClasses, focusVisibleClasses, groupDataFocusVisibleClasses, ringClasses, translateCenterClasses } from './class-names.mjs';
|
|
8
|
+
export { createConfigContext } from './context.mjs';
|
|
9
|
+
export { TRANSITION_VARIANTS } from './transition.mjs';
|
|
10
|
+
import 'clsx';
|
|
11
|
+
import 'react';
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { ClassProp, ClassValue, TVReturnType, VariantProps, tv } from 'tailwind-variants';
|
|
2
|
+
export { dataAttr, dataAttrDev, isDisabledElement } from './attr.js';
|
|
3
|
+
export { cn } from './cn.js';
|
|
4
|
+
export { mergeConfigProps, mergeProps } from './merge-props.js';
|
|
5
|
+
export { mapPropsVariants, radiusBaseVariant, radiusVariant } from './tv.js';
|
|
6
|
+
export { PropGetter, SlotsToClassNames, UIProps, UnknownTV } from './types.js';
|
|
7
|
+
export { absoluteFullClasses, allColors, allVariants, colorVariants, dataFocusVisibleClasses, focusVisibleClasses, groupDataFocusVisibleClasses, ringClasses, translateCenterClasses } from './class-names.js';
|
|
8
|
+
export { createConfigContext } from './context.js';
|
|
9
|
+
export { TRANSITION_VARIANTS } from './transition.js';
|
|
10
|
+
import 'clsx';
|
|
11
|
+
import 'react';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGBL52NZPjs = require('./chunk-GBL52NZP.js');require('./chunk-6F4PWJZI.js');var _chunkI46H3MSMjs = require('./chunk-I46H3MSM.js');var _chunkOLT3CP3Hjs = require('./chunk-OLT3CP3H.js');var _chunkPGZBHVD4js = require('./chunk-PGZBHVD4.js');var _chunkSUJUS2CRjs = require('./chunk-SUJUS2CR.js');var _chunk35NZ7LOMjs = require('./chunk-35NZ7LOM.js');require('./chunk-ZO473WNU.js');var _chunkLKJA5G34js = require('./chunk-LKJA5G34.js');var _tailwindvariants = require('tailwind-variants');exports.TRANSITION_VARIANTS = _chunkLKJA5G34js.a; exports.absoluteFullClasses = _chunkOLT3CP3Hjs.i; exports.allColors = _chunkOLT3CP3Hjs.b; exports.allVariants = _chunkOLT3CP3Hjs.c; exports.cn = _chunk35NZ7LOMjs.a; exports.colorVariants = _chunkOLT3CP3Hjs.a; exports.createConfigContext = _chunkPGZBHVD4js.a; exports.dataAttr = _chunkI46H3MSMjs.c; exports.dataAttrDev = _chunkI46H3MSMjs.a; exports.dataFocusVisibleClasses = _chunkOLT3CP3Hjs.e; exports.focusVisibleClasses = _chunkOLT3CP3Hjs.d; exports.groupDataFocusVisibleClasses = _chunkOLT3CP3Hjs.f; exports.isDisabledElement = _chunkI46H3MSMjs.b; exports.mapPropsVariants = _chunkGBL52NZPjs.a; exports.mergeConfigProps = _chunkSUJUS2CRjs.b; exports.mergeProps = _chunkSUJUS2CRjs.a; exports.radiusBaseVariant = _chunkGBL52NZPjs.b; exports.radiusVariant = _chunkGBL52NZPjs.c; exports.ringClasses = _chunkOLT3CP3Hjs.g; exports.translateCenterClasses = _chunkOLT3CP3Hjs.h; exports.tv = _tailwindvariants.tv;
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as y,b as P,c as T}from"./chunk-5R34SC2A.mjs";import"./chunk-WBQAMGXK.mjs";import{a as e,b as s,c as r}from"./chunk-YEUPOEOF.mjs";import{a as t,b as a,c as o,d as p,e as l,f as i,g as n,h as m,i as C}from"./chunk-XH7XZGNV.mjs";import{a as x}from"./chunk-MI5VRFDD.mjs";import{a as f,b as u}from"./chunk-XWVZ2ZQF.mjs";import{a as V}from"./chunk-N4MX2VP2.mjs";import"./chunk-M7STMVRD.mjs";import{a as c}from"./chunk-5J3NC7SL.mjs";import{tv as b}from"tailwind-variants";export{c as TRANSITION_VARIANTS,C as absoluteFullClasses,a as allColors,o as allVariants,V as cn,t as colorVariants,x as createConfigContext,r as dataAttr,e as dataAttrDev,l as dataFocusVisibleClasses,p as focusVisibleClasses,i as groupDataFocusVisibleClasses,s as isDisabledElement,y as mapPropsVariants,u as mergeConfigProps,f as mergeProps,P as radiusBaseVariant,T as radiusVariant,n as ringClasses,m as translateCenterClasses,b as tv};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const mergeProps: <T extends Record<string, any>>(...props: (T | undefined)[]) => T;
|
|
2
|
+
declare const mergeConfigProps: <P extends Record<string, any>, T extends P & {
|
|
3
|
+
props?: (props: Partial<P>) => P;
|
|
4
|
+
omitProps?: string[];
|
|
5
|
+
}>(defaultValues: P, globalConfig: T, props: P) => P;
|
|
6
|
+
|
|
7
|
+
export { mergeConfigProps, mergeProps };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const mergeProps: <T extends Record<string, any>>(...props: (T | undefined)[]) => T;
|
|
2
|
+
declare const mergeConfigProps: <P extends Record<string, any>, T extends P & {
|
|
3
|
+
props?: (props: Partial<P>) => P;
|
|
4
|
+
omitProps?: string[];
|
|
5
|
+
}>(defaultValues: P, globalConfig: T, props: P) => P;
|
|
6
|
+
|
|
7
|
+
export { mergeConfigProps, mergeProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSUJUS2CRjs = require('./chunk-SUJUS2CR.js');require('./chunk-35NZ7LOM.js');exports.mergeConfigProps = _chunkSUJUS2CRjs.b; exports.mergeProps = _chunkSUJUS2CRjs.a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"./chunk-XWVZ2ZQF.mjs";import"./chunk-N4MX2VP2.mjs";export{b as mergeConfigProps,a as mergeProps};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const removeAttrsFromObject: <O extends object, A extends keyof O>(object: O, attrs: A[]) => Omit<O, A>;
|
|
2
|
+
declare const extractAttrsFromObject: <O extends object, A extends keyof O>(object: O, attrs: A[]) => Pick<O, A>;
|
|
3
|
+
|
|
4
|
+
export { extractAttrsFromObject, removeAttrsFromObject };
|
package/dist/object.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const removeAttrsFromObject: <O extends object, A extends keyof O>(object: O, attrs: A[]) => Omit<O, A>;
|
|
2
|
+
declare const extractAttrsFromObject: <O extends object, A extends keyof O>(object: O, attrs: A[]) => Pick<O, A>;
|
|
3
|
+
|
|
4
|
+
export { extractAttrsFromObject, removeAttrsFromObject };
|
package/dist/object.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkZO473WNUjs = require('./chunk-ZO473WNU.js');exports.extractAttrsFromObject = _chunkZO473WNUjs.b; exports.removeAttrsFromObject = _chunkZO473WNUjs.a;
|
package/dist/object.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"./chunk-M7STMVRD.mjs";export{b as extractAttrsFromObject,a as removeAttrsFromObject};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare const TRANSITION_VARIANTS: {
|
|
2
|
+
collapse: {
|
|
3
|
+
enter: {
|
|
4
|
+
opacity: number;
|
|
5
|
+
height: string;
|
|
6
|
+
transition: {
|
|
7
|
+
type: "spring";
|
|
8
|
+
duration: number;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
exit: {
|
|
12
|
+
opacity: number;
|
|
13
|
+
height: number;
|
|
14
|
+
transition: {
|
|
15
|
+
type: "spring";
|
|
16
|
+
duration: number;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export { TRANSITION_VARIANTS };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare const TRANSITION_VARIANTS: {
|
|
2
|
+
collapse: {
|
|
3
|
+
enter: {
|
|
4
|
+
opacity: number;
|
|
5
|
+
height: string;
|
|
6
|
+
transition: {
|
|
7
|
+
type: "spring";
|
|
8
|
+
duration: number;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
exit: {
|
|
12
|
+
opacity: number;
|
|
13
|
+
height: number;
|
|
14
|
+
transition: {
|
|
15
|
+
type: "spring";
|
|
16
|
+
duration: number;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export { TRANSITION_VARIANTS };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkLKJA5G34js = require('./chunk-LKJA5G34.js');exports.TRANSITION_VARIANTS = _chunkLKJA5G34js.a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-5J3NC7SL.mjs";export{a as TRANSITION_VARIANTS};
|
package/dist/tv.d.mts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare const mapPropsVariants: <T extends object, R extends readonly (keyof T)[]>(props: T, variantKeys: R) => [Omit<T, R[number]>, Pick<T, R[number]>];
|
|
2
|
+
declare const radiusBaseVariant: {
|
|
3
|
+
readonly sm: "rounded";
|
|
4
|
+
readonly md: "rounded-md";
|
|
5
|
+
readonly lg: "rounded-lg";
|
|
6
|
+
readonly xl: "rounded-xl";
|
|
7
|
+
readonly "2xl": "rounded-2xl";
|
|
8
|
+
readonly "3xl": "rounded-3xl";
|
|
9
|
+
readonly full: "rounded-full";
|
|
10
|
+
readonly none: "rounded-none";
|
|
11
|
+
};
|
|
12
|
+
declare const radiusVariant: (name: string | string[]) => {
|
|
13
|
+
sm: {};
|
|
14
|
+
md: {};
|
|
15
|
+
lg: {};
|
|
16
|
+
xl: {};
|
|
17
|
+
"2xl": {};
|
|
18
|
+
"3xl": {};
|
|
19
|
+
full: {};
|
|
20
|
+
none: {};
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export { mapPropsVariants, radiusBaseVariant, radiusVariant };
|
package/dist/tv.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare const mapPropsVariants: <T extends object, R extends readonly (keyof T)[]>(props: T, variantKeys: R) => [Omit<T, R[number]>, Pick<T, R[number]>];
|
|
2
|
+
declare const radiusBaseVariant: {
|
|
3
|
+
readonly sm: "rounded";
|
|
4
|
+
readonly md: "rounded-md";
|
|
5
|
+
readonly lg: "rounded-lg";
|
|
6
|
+
readonly xl: "rounded-xl";
|
|
7
|
+
readonly "2xl": "rounded-2xl";
|
|
8
|
+
readonly "3xl": "rounded-3xl";
|
|
9
|
+
readonly full: "rounded-full";
|
|
10
|
+
readonly none: "rounded-none";
|
|
11
|
+
};
|
|
12
|
+
declare const radiusVariant: (name: string | string[]) => {
|
|
13
|
+
sm: {};
|
|
14
|
+
md: {};
|
|
15
|
+
lg: {};
|
|
16
|
+
xl: {};
|
|
17
|
+
"2xl": {};
|
|
18
|
+
"3xl": {};
|
|
19
|
+
full: {};
|
|
20
|
+
none: {};
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export { mapPropsVariants, radiusBaseVariant, radiusVariant };
|
package/dist/tv.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGBL52NZPjs = require('./chunk-GBL52NZP.js');require('./chunk-ZO473WNU.js');exports.mapPropsVariants = _chunkGBL52NZPjs.a; exports.radiusBaseVariant = _chunkGBL52NZPjs.b; exports.radiusVariant = _chunkGBL52NZPjs.c;
|
package/dist/tv.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c}from"./chunk-5R34SC2A.mjs";import"./chunk-M7STMVRD.mjs";export{a as mapPropsVariants,b as radiusBaseVariant,c as radiusVariant};
|
package/dist/types.d.mts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
|
|
3
|
+
type DataAttributes = Record<`data-${string}`, string | boolean | undefined>;
|
|
4
|
+
type UIProps<ElementType extends React.ElementType> = Omit<ComponentPropsWithRef<ElementType>, "className" | "defaultChecked" | "color" | "defaultValue" | "size" | "slot"> & DataAttributes & {
|
|
5
|
+
className?: string;
|
|
6
|
+
render?: React.ReactElement;
|
|
7
|
+
};
|
|
8
|
+
type PropGetter<P = Record<string, unknown>> = (props: P) => P;
|
|
9
|
+
type SlotsToClassNames<S extends string> = {
|
|
10
|
+
[key in S]?: string;
|
|
11
|
+
};
|
|
12
|
+
type UnknownTV = () => unknown;
|
|
13
|
+
|
|
14
|
+
export type { DataAttributes, PropGetter, SlotsToClassNames, UIProps, UnknownTV };
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
|
|
3
|
+
type DataAttributes = Record<`data-${string}`, string | boolean | undefined>;
|
|
4
|
+
type UIProps<ElementType extends React.ElementType> = Omit<ComponentPropsWithRef<ElementType>, "className" | "defaultChecked" | "color" | "defaultValue" | "size" | "slot"> & DataAttributes & {
|
|
5
|
+
className?: string;
|
|
6
|
+
render?: React.ReactElement;
|
|
7
|
+
};
|
|
8
|
+
type PropGetter<P = Record<string, unknown>> = (props: P) => P;
|
|
9
|
+
type SlotsToClassNames<S extends string> = {
|
|
10
|
+
[key in S]?: string;
|
|
11
|
+
};
|
|
12
|
+
type UnknownTV = () => unknown;
|
|
13
|
+
|
|
14
|
+
export type { DataAttributes, PropGetter, SlotsToClassNames, UIProps, UnknownTV };
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./chunk-6F4PWJZI.js');
|
package/dist/types.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-WBQAMGXK.mjs";
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@jamsrui/utils",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"motion": ">=12",
|
|
6
|
+
"react": ">=19"
|
|
7
|
+
},
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"clsx": "^2.1.1",
|
|
10
|
+
"tailwind-merge": "^3.2.0",
|
|
11
|
+
"tailwind-variants": "^1.0.0"
|
|
12
|
+
},
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"import": "./dist/index.mjs",
|
|
17
|
+
"require": "./dist/index.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"description": "A modern and beautiful Next.js UI components library.",
|
|
21
|
+
"keywords": [
|
|
22
|
+
"react",
|
|
23
|
+
"ui",
|
|
24
|
+
"UI components",
|
|
25
|
+
"Next.js",
|
|
26
|
+
"React",
|
|
27
|
+
"JamsrUI",
|
|
28
|
+
"jamsr-ui",
|
|
29
|
+
"TypeScript"
|
|
30
|
+
],
|
|
31
|
+
"sideEffects": false,
|
|
32
|
+
"license": "MIT",
|
|
33
|
+
"author": "@jamsrworld",
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "https://github.com/jamsrworld/jamsr-ui"
|
|
37
|
+
},
|
|
38
|
+
"bugs": {
|
|
39
|
+
"url": "https://github.com/jamsrworld/jamsr-ui/issues"
|
|
40
|
+
},
|
|
41
|
+
"homepage": "https://jamsr-ui.jamsrworld.com",
|
|
42
|
+
"files": [
|
|
43
|
+
"dist",
|
|
44
|
+
"README",
|
|
45
|
+
"README.md",
|
|
46
|
+
"package.json",
|
|
47
|
+
"LICENSE"
|
|
48
|
+
]
|
|
49
|
+
}
|