@kinetixui/cli 0.17.0 → 0.19.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.
- package/dist/index.js +22 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -742,7 +742,14 @@ var ACCEPTED_TOKENS = [
|
|
|
742
742
|
"destructive-foreground",
|
|
743
743
|
"border",
|
|
744
744
|
"input",
|
|
745
|
-
"ring"
|
|
745
|
+
"ring",
|
|
746
|
+
// role tokens layered over primary/ring — optional; when unset they resolve to primary / ring
|
|
747
|
+
"action",
|
|
748
|
+
"action-foreground",
|
|
749
|
+
"link",
|
|
750
|
+
"focus",
|
|
751
|
+
"brand",
|
|
752
|
+
"brand-foreground"
|
|
746
753
|
];
|
|
747
754
|
var EXAMPLE_VALUES = {
|
|
748
755
|
background: "#ffffff",
|
|
@@ -763,7 +770,13 @@ var EXAMPLE_VALUES = {
|
|
|
763
770
|
"destructive-foreground": "#ffffff",
|
|
764
771
|
border: "#e2e8f0",
|
|
765
772
|
input: "#e2e8f0",
|
|
766
|
-
ring: "#2563eb"
|
|
773
|
+
ring: "#2563eb",
|
|
774
|
+
action: "#2563eb",
|
|
775
|
+
"action-foreground": "#ffffff",
|
|
776
|
+
link: "#2563eb",
|
|
777
|
+
focus: "#2563eb",
|
|
778
|
+
brand: "#0f172a",
|
|
779
|
+
"brand-foreground": "#ffffff"
|
|
767
780
|
};
|
|
768
781
|
var FOREGROUND_OF = {
|
|
769
782
|
background: "foreground",
|
|
@@ -773,7 +786,9 @@ var FOREGROUND_OF = {
|
|
|
773
786
|
secondary: "secondary-foreground",
|
|
774
787
|
muted: "muted-foreground",
|
|
775
788
|
accent: "accent-foreground",
|
|
776
|
-
destructive: "destructive-foreground"
|
|
789
|
+
destructive: "destructive-foreground",
|
|
790
|
+
action: "action-foreground",
|
|
791
|
+
brand: "brand-foreground"
|
|
777
792
|
};
|
|
778
793
|
var CONTRAST_PAIRS = [
|
|
779
794
|
["background", "foreground"],
|
|
@@ -783,7 +798,9 @@ var CONTRAST_PAIRS = [
|
|
|
783
798
|
["secondary", "secondary-foreground"],
|
|
784
799
|
["muted", "muted-foreground"],
|
|
785
800
|
["accent", "accent-foreground"],
|
|
786
|
-
["destructive", "destructive-foreground"]
|
|
801
|
+
["destructive", "destructive-foreground"],
|
|
802
|
+
["action", "action-foreground"],
|
|
803
|
+
["brand", "brand-foreground"]
|
|
787
804
|
];
|
|
788
805
|
var isAccepted = (t) => ACCEPTED_TOKENS.includes(t);
|
|
789
806
|
function parseThemeFile(text) {
|
|
@@ -915,7 +932,7 @@ async function themeBuild(name, options) {
|
|
|
915
932
|
// package.json
|
|
916
933
|
var package_default = {
|
|
917
934
|
name: "@kinetixui/cli",
|
|
918
|
-
version: "0.
|
|
935
|
+
version: "0.19.0",
|
|
919
936
|
description: "Add KinetixUI components and tokens to your project.",
|
|
920
937
|
type: "module",
|
|
921
938
|
license: "MIT",
|