teacss 0.2.0-alpha.11 → 0.2.0-alpha.13
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/dist/colors.cjs +1 -265
- package/dist/colors.mjs +1 -3
- package/dist/index.cjs +1 -19
- package/dist/index.js +48 -42
- package/dist/index.mjs +1 -7
- package/dist/postcss.cjs +1 -55
- package/dist/postcss.mjs +1 -19
- package/dist/stitches.cjs +1 -19
- package/dist/stitches.mjs +1 -5
- package/dist/unocss.cjs +2 -41
- package/dist/unocss.mjs +2 -11
- package/package.json +30 -30
package/dist/index.cjs
CHANGED
|
@@ -1,19 +1 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var classnames = require('classnames');
|
|
4
|
-
var clsx = require('clsx');
|
|
5
|
-
var tailwindMerge = require('tailwind-merge');
|
|
6
|
-
|
|
7
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
|
-
|
|
9
|
-
var classnames__default = /*#__PURE__*/_interopDefault(classnames);
|
|
10
|
-
|
|
11
|
-
function T(...n){return tailwindMerge.twMerge(clsx.clsx(n))}var m=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,l=clsx.clsx,V=(n,r)=>t=>{if(r?.variants==null)return l(n,t?.class,t?.className);let{variants:p,defaultVariants:s}=r,d=Object.keys(p).map(e=>{let a=t?.[e],o=s?.[e];if(a===null)return null;let i=m(a)||m(o);return p[e][i]}),c=t&&Object.entries(t).reduce((e,[a,o])=>(o===void 0||(e[a]=o),e),{}),u=r?.compoundVariants?.reduce((e,{class:a,className:o,...i})=>Object.entries(i).every(([C,f])=>Array.isArray(f)?f.includes({...s,...c}[C]):{...s,...c}[C]===f)?[...e,a,o]:e,[]);return l(n,d,u,t?.class,t?.className)};
|
|
12
|
-
|
|
13
|
-
Object.defineProperty(exports, "cn", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function () { return classnames__default.default; }
|
|
16
|
-
});
|
|
17
|
-
exports.cva = V;
|
|
18
|
-
exports.cx = l;
|
|
19
|
-
exports.cxm = T;
|
|
1
|
+
'use strict';var classnames=require('classnames'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var classnames__default=/*#__PURE__*/_interopDefault(classnames);function T(...n){return tailwindMerge.twMerge(clsx.clsx(n))}var m=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,l=clsx.clsx,V=(n,r)=>t=>{if(r?.variants==null)return l(n,t?.class,t?.className);let{variants:p,defaultVariants:s}=r,d=Object.keys(p).map(e=>{let a=t?.[e],o=s?.[e];if(a===null)return null;let i=m(a)||m(o);return p[e][i]}),c=t&&Object.entries(t).reduce((e,[a,o])=>(o===void 0||(e[a]=o),e),{}),u=r?.compoundVariants?.reduce((e,{class:a,className:o,...i})=>Object.entries(i).every(([C,f])=>Array.isArray(f)?f.includes({...s,...c}[C]):{...s,...c}[C]===f)?[...e,a,o]:e,[]);return l(n,d,u,t?.class,t?.className)};Object.defineProperty(exports,"cn",{enumerable:true,get:function(){return classnames__default.default}});exports.cva=V;exports.cx=l;exports.cxm=T;
|
package/dist/index.js
CHANGED
|
@@ -103,47 +103,6 @@ function clsx() {
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
// node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
106
|
-
function twJoin() {
|
|
107
|
-
let index = 0;
|
|
108
|
-
let argument;
|
|
109
|
-
let resolvedValue;
|
|
110
|
-
let string = "";
|
|
111
|
-
while (index < arguments.length) {
|
|
112
|
-
if (argument = arguments[index++]) {
|
|
113
|
-
if (resolvedValue = toValue(argument)) {
|
|
114
|
-
string && (string += " ");
|
|
115
|
-
string += resolvedValue;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
return string;
|
|
120
|
-
}
|
|
121
|
-
function createTailwindMerge(createConfigFirst, ...createConfigRest) {
|
|
122
|
-
let configUtils;
|
|
123
|
-
let cacheGet;
|
|
124
|
-
let cacheSet;
|
|
125
|
-
let functionToCall = initTailwindMerge;
|
|
126
|
-
function initTailwindMerge(classList) {
|
|
127
|
-
const config = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
|
|
128
|
-
configUtils = createConfigUtils(config);
|
|
129
|
-
cacheGet = configUtils.cache.get;
|
|
130
|
-
cacheSet = configUtils.cache.set;
|
|
131
|
-
functionToCall = tailwindMerge;
|
|
132
|
-
return tailwindMerge(classList);
|
|
133
|
-
}
|
|
134
|
-
function tailwindMerge(classList) {
|
|
135
|
-
const cachedResult = cacheGet(classList);
|
|
136
|
-
if (cachedResult) {
|
|
137
|
-
return cachedResult;
|
|
138
|
-
}
|
|
139
|
-
const result = mergeClassList(classList, configUtils);
|
|
140
|
-
cacheSet(classList, result);
|
|
141
|
-
return result;
|
|
142
|
-
}
|
|
143
|
-
return function callTailwindMerge() {
|
|
144
|
-
return functionToCall(twJoin.apply(null, arguments));
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
106
|
var CLASS_PART_SEPARATOR = "-";
|
|
148
107
|
var createClassGroupUtils = (config) => {
|
|
149
108
|
const classMap = createClassMap(config);
|
|
@@ -432,6 +391,21 @@ var mergeClassList = (classList, configUtils) => {
|
|
|
432
391
|
}
|
|
433
392
|
return result;
|
|
434
393
|
};
|
|
394
|
+
function twJoin() {
|
|
395
|
+
let index = 0;
|
|
396
|
+
let argument;
|
|
397
|
+
let resolvedValue;
|
|
398
|
+
let string = "";
|
|
399
|
+
while (index < arguments.length) {
|
|
400
|
+
if (argument = arguments[index++]) {
|
|
401
|
+
if (resolvedValue = toValue(argument)) {
|
|
402
|
+
string && (string += " ");
|
|
403
|
+
string += resolvedValue;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
return string;
|
|
408
|
+
}
|
|
435
409
|
var toValue = (mix) => {
|
|
436
410
|
if (typeof mix === "string") {
|
|
437
411
|
return mix;
|
|
@@ -448,6 +422,32 @@ var toValue = (mix) => {
|
|
|
448
422
|
}
|
|
449
423
|
return string;
|
|
450
424
|
};
|
|
425
|
+
function createTailwindMerge(createConfigFirst, ...createConfigRest) {
|
|
426
|
+
let configUtils;
|
|
427
|
+
let cacheGet;
|
|
428
|
+
let cacheSet;
|
|
429
|
+
let functionToCall = initTailwindMerge;
|
|
430
|
+
function initTailwindMerge(classList) {
|
|
431
|
+
const config = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
|
|
432
|
+
configUtils = createConfigUtils(config);
|
|
433
|
+
cacheGet = configUtils.cache.get;
|
|
434
|
+
cacheSet = configUtils.cache.set;
|
|
435
|
+
functionToCall = tailwindMerge;
|
|
436
|
+
return tailwindMerge(classList);
|
|
437
|
+
}
|
|
438
|
+
function tailwindMerge(classList) {
|
|
439
|
+
const cachedResult = cacheGet(classList);
|
|
440
|
+
if (cachedResult) {
|
|
441
|
+
return cachedResult;
|
|
442
|
+
}
|
|
443
|
+
const result = mergeClassList(classList, configUtils);
|
|
444
|
+
cacheSet(classList, result);
|
|
445
|
+
return result;
|
|
446
|
+
}
|
|
447
|
+
return function callTailwindMerge() {
|
|
448
|
+
return functionToCall(twJoin.apply(null, arguments));
|
|
449
|
+
};
|
|
450
|
+
}
|
|
451
451
|
var fromTheme = (key) => {
|
|
452
452
|
const themeGetter = (theme) => theme[key] || [];
|
|
453
453
|
themeGetter.isThemeGetter = true;
|
|
@@ -1061,6 +1061,12 @@ var getDefaultConfig = () => {
|
|
|
1061
1061
|
"border-color-y": [{
|
|
1062
1062
|
"border-y": [borderColor]
|
|
1063
1063
|
}],
|
|
1064
|
+
"border-color-s": [{
|
|
1065
|
+
"border-s": [borderColor]
|
|
1066
|
+
}],
|
|
1067
|
+
"border-color-e": [{
|
|
1068
|
+
"border-e": [borderColor]
|
|
1069
|
+
}],
|
|
1064
1070
|
"border-color-t": [{
|
|
1065
1071
|
"border-t": [borderColor]
|
|
1066
1072
|
}],
|
|
@@ -1393,7 +1399,7 @@ var getDefaultConfig = () => {
|
|
|
1393
1399
|
"border-w": ["border-w-s", "border-w-e", "border-w-t", "border-w-r", "border-w-b", "border-w-l"],
|
|
1394
1400
|
"border-w-x": ["border-w-r", "border-w-l"],
|
|
1395
1401
|
"border-w-y": ["border-w-t", "border-w-b"],
|
|
1396
|
-
"border-color": ["border-color-t", "border-color-r", "border-color-b", "border-color-l"],
|
|
1402
|
+
"border-color": ["border-color-s", "border-color-e", "border-color-t", "border-color-r", "border-color-b", "border-color-l"],
|
|
1397
1403
|
"border-color-x": ["border-color-r", "border-color-l"],
|
|
1398
1404
|
"border-color-y": ["border-color-t", "border-color-b"],
|
|
1399
1405
|
"scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"],
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
import { clsx } from 'clsx';
|
|
3
|
-
import { twMerge } from 'tailwind-merge';
|
|
4
|
-
|
|
5
|
-
function T(...n){return twMerge(clsx(n))}var m=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,l=clsx,V=(n,r)=>t=>{if(r?.variants==null)return l(n,t?.class,t?.className);let{variants:p,defaultVariants:s}=r,d=Object.keys(p).map(e=>{let a=t?.[e],o=s?.[e];if(a===null)return null;let i=m(a)||m(o);return p[e][i]}),c=t&&Object.entries(t).reduce((e,[a,o])=>(o===void 0||(e[a]=o),e),{}),u=r?.compoundVariants?.reduce((e,{class:a,className:o,...i})=>Object.entries(i).every(([C,f])=>Array.isArray(f)?f.includes({...s,...c}[C]):{...s,...c}[C]===f)?[...e,a,o]:e,[]);return l(n,d,u,t?.class,t?.className)};
|
|
6
|
-
|
|
7
|
-
export { V as cva, l as cx, T as cxm };
|
|
1
|
+
export{default as cn}from'classnames';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';function T(...n){return twMerge(clsx(n))}var m=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,l=clsx,V=(n,r)=>t=>{if(r?.variants==null)return l(n,t?.class,t?.className);let{variants:p,defaultVariants:s}=r,d=Object.keys(p).map(e=>{let a=t?.[e],o=s?.[e];if(a===null)return null;let i=m(a)||m(o);return p[e][i]}),c=t&&Object.entries(t).reduce((e,[a,o])=>(o===void 0||(e[a]=o),e),{}),u=r?.compoundVariants?.reduce((e,{class:a,className:o,...i})=>Object.entries(i).every(([C,f])=>Array.isArray(f)?f.includes({...s,...c}[C]):{...s,...c}[C]===f)?[...e,a,o]:e,[]);return l(n,d,u,t?.class,t?.className)};export{V as cva,l as cx,T as cxm};
|