@noxickon/onyx 6.1.3 → 6.2.0

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,28 +1,6 @@
1
- import { createTV as e } from "tailwind-variants";
1
+ import { twMergeConfig as e } from "./twMergeConfig.js";
2
+ import { createTV as t } from "tailwind-variants";
2
3
  //#region src/internal/tv.ts
3
- var t = e({ twMergeConfig: { extend: {
4
- theme: {
5
- radius: ["control", "card"],
6
- text: [
7
- "control",
8
- "3xs",
9
- "2xs",
10
- "body"
11
- ]
12
- },
13
- classGroups: {
14
- h: [{ h: ["control"] }],
15
- "min-h": [{ "min-h": ["control"] }],
16
- px: [{ px: ["control"] }],
17
- size: [{ size: ["icon"] }],
18
- "bg-color": [{ bg: ["tone", "tone-soft"] }],
19
- "text-color": [{ text: [
20
- "tone-fg",
21
- "tone-ink",
22
- "tone-soft-fg"
23
- ] }],
24
- "border-color": [{ border: ["tone-outline"] }]
25
- }
26
- } } });
4
+ var n = t({ twMergeConfig: e });
27
5
  //#endregion
28
- export { t as tv };
6
+ export { n as tv };
@@ -0,0 +1,2 @@
1
+ import { TWMergeConfig } from 'tailwind-variants';
2
+ export declare const twMergeConfig: TWMergeConfig;
@@ -0,0 +1,27 @@
1
+ //#region src/internal/twMergeConfig.ts
2
+ var e = { extend: {
3
+ theme: {
4
+ radius: ["control", "card"],
5
+ text: [
6
+ "control",
7
+ "3xs",
8
+ "2xs",
9
+ "body"
10
+ ]
11
+ },
12
+ classGroups: {
13
+ h: [{ h: ["control"] }],
14
+ "min-h": [{ "min-h": ["control"] }],
15
+ px: [{ px: ["control"] }],
16
+ size: [{ size: ["icon"] }],
17
+ "bg-color": [{ bg: ["tone", "tone-soft"] }],
18
+ "text-color": [{ text: [
19
+ "tone-fg",
20
+ "tone-ink",
21
+ "tone-soft-fg"
22
+ ] }],
23
+ "border-color": [{ border: ["tone-outline"] }]
24
+ }
25
+ } };
26
+ //#endregion
27
+ export { e as twMergeConfig };
@@ -0,0 +1,2 @@
1
+ import { CnOptions, CnReturn } from 'tailwind-variants';
2
+ export declare const cn: (...classes: CnOptions) => CnReturn;
@@ -0,0 +1,6 @@
1
+ import { twMergeConfig as e } from "../internal/twMergeConfig.js";
2
+ import { cnMerge as t } from "tailwind-variants";
3
+ //#region src/utils/cn.ts
4
+ var n = (...n) => t(...n)({ twMergeConfig: e });
5
+ //#endregion
6
+ export { n as cn };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export * from './cn';
package/dist/utils.js ADDED
@@ -0,0 +1,2 @@
1
+ import { cn as e } from "./utils/cn.js";
2
+ export { e as cn };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noxickon/onyx",
3
- "version": "6.1.3",
3
+ "version": "6.2.0",
4
4
  "type": "module",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -38,6 +38,10 @@
38
38
  "types": "./dist/code-block/index.d.ts",
39
39
  "import": "./dist/code-block.js"
40
40
  },
41
+ "./utils": {
42
+ "types": "./dist/utils/index.d.ts",
43
+ "import": "./dist/utils.js"
44
+ },
41
45
  "./styles": "./dist/index.css"
42
46
  },
43
47
  "files": [