wensity 0.1.13 → 0.1.14
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/index.js +30 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ var DEFAULT_UTILS_ALIAS = "@/lib/utils";
|
|
|
17
17
|
|
|
18
18
|
// src/constants.ts
|
|
19
19
|
var CLI_NAME = "wensity";
|
|
20
|
-
var CLI_VERSION = "0.1.
|
|
20
|
+
var CLI_VERSION = "0.1.14";
|
|
21
21
|
var INIT_PRIMITIVE_CSS_SLUG = "button";
|
|
22
22
|
var HELP_TEXT = `Wensity CLI ${CLI_VERSION}
|
|
23
23
|
|
|
@@ -1033,7 +1033,9 @@ var BASE_COLOR_IDS = [
|
|
|
1033
1033
|
"mauve",
|
|
1034
1034
|
"olive",
|
|
1035
1035
|
"mist",
|
|
1036
|
-
"black"
|
|
1036
|
+
"black",
|
|
1037
|
+
// Appended, never inserted: preset codes store the list index.
|
|
1038
|
+
"linen"
|
|
1037
1039
|
];
|
|
1038
1040
|
var THEME_COLOR_IDS = [
|
|
1039
1041
|
"ink",
|
|
@@ -1105,9 +1107,9 @@ var BODY_FONT_IDS = [
|
|
|
1105
1107
|
];
|
|
1106
1108
|
var RADIUS_PRESET_CSS = {
|
|
1107
1109
|
none: "0px",
|
|
1108
|
-
small: "0.
|
|
1109
|
-
medium: "0.
|
|
1110
|
-
large: "
|
|
1110
|
+
small: "0.25rem",
|
|
1111
|
+
medium: "0.375rem",
|
|
1112
|
+
large: "0.75rem"
|
|
1111
1113
|
};
|
|
1112
1114
|
var FONT_ID_EXPANSIONS = {
|
|
1113
1115
|
"site:sans": "var(--font-sans)",
|
|
@@ -1197,7 +1199,7 @@ var DEFAULT_CONTROL_SOLID_DARK = {
|
|
|
1197
1199
|
};
|
|
1198
1200
|
var DEFAULT_STYLE_CONFIG = {
|
|
1199
1201
|
iconLibrary: "tabler",
|
|
1200
|
-
radius: "
|
|
1202
|
+
radius: "large",
|
|
1201
1203
|
fonts: { ...DEFAULT_STYLE_FONTS },
|
|
1202
1204
|
colors: {
|
|
1203
1205
|
light: { ...DEFAULT_CONTROL_SOLID_LIGHT },
|
|
@@ -1222,7 +1224,7 @@ var DEFAULT_STYLE_CONFIG_CANONICAL = {
|
|
|
1222
1224
|
headingFont: "inter",
|
|
1223
1225
|
bodyFont: "inter",
|
|
1224
1226
|
iconLibrary: "tabler",
|
|
1225
|
-
radius: "
|
|
1227
|
+
radius: "large"
|
|
1226
1228
|
};
|
|
1227
1229
|
function createDefaultStyleConfigCanonical() {
|
|
1228
1230
|
return {
|
|
@@ -2637,6 +2639,26 @@ var BASE_COLOR_PALETTE = {
|
|
|
2637
2639
|
textSecondary: "oklch(0.68 0 0)",
|
|
2638
2640
|
textPlaceholder: "color-mix(in oklab, oklch(0.68 0 0) 78%, transparent)"
|
|
2639
2641
|
}
|
|
2642
|
+
},
|
|
2643
|
+
linen: {
|
|
2644
|
+
light: {
|
|
2645
|
+
surfaceElevated: "oklch(1 0 0)",
|
|
2646
|
+
surfaceOverlay: "oklch(1 0 0)",
|
|
2647
|
+
surfaceHover: "oklch(0.962 0.004 95)",
|
|
2648
|
+
surfaceActive: "color-mix(in oklab, oklch(0.962 0.004 95) 92%, oklch(0.345 0.01 115) 8%)",
|
|
2649
|
+
borderSubtle: "oklch(0.915 0.006 95)",
|
|
2650
|
+
textSecondary: "oklch(0.55 0.014 105)",
|
|
2651
|
+
textPlaceholder: "color-mix(in oklab, oklch(0.55 0.014 105) 78%, transparent)"
|
|
2652
|
+
},
|
|
2653
|
+
dark: {
|
|
2654
|
+
surfaceElevated: "oklch(0.215 0.003 95)",
|
|
2655
|
+
surfaceOverlay: "oklch(0.25 0.003 95)",
|
|
2656
|
+
surfaceHover: "oklch(0.275 0.004 95)",
|
|
2657
|
+
surfaceActive: "color-mix(in oklab, oklch(0.275 0.004 95) 88%, oklch(0.894 0.01 94) 12%)",
|
|
2658
|
+
borderSubtle: "oklch(0.894 0.01 94 / 9%)",
|
|
2659
|
+
textSecondary: "oklch(0.74 0.016 94)",
|
|
2660
|
+
textPlaceholder: "color-mix(in oklab, oklch(0.74 0.016 94) 78%, transparent)"
|
|
2661
|
+
}
|
|
2640
2662
|
}
|
|
2641
2663
|
};
|
|
2642
2664
|
var THEME_COLOR_PALETTE = {
|
|
@@ -6115,7 +6137,7 @@ function collectDependencies(input) {
|
|
|
6115
6137
|
function parseImports(source) {
|
|
6116
6138
|
const imports = [];
|
|
6117
6139
|
const patterns = [
|
|
6118
|
-
/(?:import|export)\s+(?:type\s+)?(?:[
|
|
6140
|
+
/(?:import|export)\s+(?:type\s+)?(?:[^;'"`]*?\s+from\s*)?["']([^"']+)["']/g,
|
|
6119
6141
|
/import\(\s*["']([^"']+)["']\s*\)/g
|
|
6120
6142
|
];
|
|
6121
6143
|
for (const pattern of patterns) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wensity",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"description": "Install React components, UI primitives, and shareable Tailwind CSS presets into your Next.js project as source code you own.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Wensity <hey@wensity.com> (https://wensity.com)",
|