@una-ui/preset 0.9.0-beta.4 → 0.10.1-beta.1
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/prefixes.cjs +1 -1
- package/dist/prefixes.mjs +1 -1
- package/dist/shortcuts.cjs +23 -6
- package/dist/shortcuts.mjs +23 -6
- package/package.json +1 -1
package/dist/prefixes.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const prefixes = ["
|
|
3
|
+
const prefixes = ["accordion", "alert", "avatar", "avatar-group", "badge", "button", "icon", "indicator", "kbd", "link", "progress", "separator", "skeleton", "theme-switcher", "checkbox", "form-group", "input", "radio", "slider", "switch", "nav-link", "nav-link-group", "tabs", "tabs-content", "tabs-list", "tabs-root", "tabs-trigger", "select", "select-content", "select-group", "select-item", "select-item-indicator", "select-item-text", "select-label", "select-root", "select-scroll-down-button", "select-scroll-up-button", "select-separator", "select-trigger", "select-value", "resize", "size", "btn"];
|
|
4
4
|
|
|
5
5
|
module.exports = prefixes;
|
package/dist/prefixes.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const prefixes = ["
|
|
1
|
+
const prefixes = ["accordion", "alert", "avatar", "avatar-group", "badge", "button", "icon", "indicator", "kbd", "link", "progress", "separator", "skeleton", "theme-switcher", "checkbox", "form-group", "input", "radio", "slider", "switch", "nav-link", "nav-link-group", "tabs", "tabs-content", "tabs-list", "tabs-root", "tabs-trigger", "select", "select-content", "select-group", "select-item", "select-item-indicator", "select-item-text", "select-label", "select-root", "select-scroll-down-button", "select-scroll-up-button", "select-separator", "select-trigger", "select-value", "resize", "size", "btn"];
|
|
2
2
|
|
|
3
3
|
export { prefixes as default };
|
package/dist/shortcuts.cjs
CHANGED
|
@@ -551,9 +551,29 @@ const skeleton = [
|
|
|
551
551
|
staticSkeleton
|
|
552
552
|
];
|
|
553
553
|
|
|
554
|
+
const staticTabs = {
|
|
555
|
+
// configurations
|
|
556
|
+
"tabs": "transition-colors duration-200 ease-out",
|
|
557
|
+
"tabs-default-variant": "tabs-soft-black",
|
|
558
|
+
"tabs-disabled": "n-disabled",
|
|
559
|
+
// components
|
|
560
|
+
"tabs-root": "flex flex-col w-full",
|
|
561
|
+
"tabs-trigger": "w-full focus-visible:z-10",
|
|
562
|
+
"tabs-list": "flex bg-muted items-center justify-center rounded-md p-1 w-full",
|
|
563
|
+
"tabs-content": "mt-4 text-base"
|
|
564
|
+
};
|
|
565
|
+
const dynamicTabs = [
|
|
566
|
+
[/^tabs-(\S+)-(\S+)$/, ([, v = "solid", c = "primary"]) => `data-[state=active]:btn-${v}-${c}`]
|
|
567
|
+
];
|
|
568
|
+
const tabs = [
|
|
569
|
+
...dynamicTabs,
|
|
570
|
+
staticTabs
|
|
571
|
+
];
|
|
572
|
+
|
|
554
573
|
const staticSelect = {
|
|
555
574
|
// configurations
|
|
556
575
|
"select": "",
|
|
576
|
+
"select-default-variant": "btn-outline-white",
|
|
557
577
|
"select-disabled": "n-disabled",
|
|
558
578
|
"select-scroll": "flex cursor-default items-center justify-center py-1",
|
|
559
579
|
"select-trigger-info-icon": "i-info",
|
|
@@ -565,7 +585,7 @@ const staticSelect = {
|
|
|
565
585
|
"select-trigger": "min-h-2.5em w-full",
|
|
566
586
|
// [&>span]:line-clamp-1
|
|
567
587
|
"select-trigger-trailing-icon": "i-lucide-chevrons-up-down !text-1.042em",
|
|
568
|
-
"select-trigger-trailing": "ml-auto",
|
|
588
|
+
"select-trigger-trailing": "ml-auto n-disabled",
|
|
569
589
|
"select-trigger-leading": "",
|
|
570
590
|
"select-value": "h-1.5em",
|
|
571
591
|
"select-content": "relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border border-base bg-popover text-popover shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
@@ -586,11 +606,7 @@ const staticSelect = {
|
|
|
586
606
|
"select-item-selectItem": ""
|
|
587
607
|
};
|
|
588
608
|
const dynamicSelect = [
|
|
589
|
-
[/^select-(
|
|
590
|
-
const color = utils.parseColor(body, theme);
|
|
591
|
-
if ((color?.cssColor?.type === "rgb" || color?.cssColor?.type === "rgba") && color.cssColor.components)
|
|
592
|
-
return `n-${body}-600 dark:n-${body}-500`;
|
|
593
|
-
}],
|
|
609
|
+
[/^select-(\S+)-(\S+)$/, ([, v = "solid", c = "gray"]) => `btn-${v}-${c}`],
|
|
594
610
|
[/^select-item(-(\S+))?$/, ([, , c = "gray"]) => `focus:bg-${c}-100 focus:text-${c}-800 dark:focus:bg-${c}-800 dark:focus:text-${c}-100`]
|
|
595
611
|
];
|
|
596
612
|
const select = [
|
|
@@ -651,6 +667,7 @@ const shortcuts = [
|
|
|
651
667
|
...slider,
|
|
652
668
|
...progress,
|
|
653
669
|
...skeleton,
|
|
670
|
+
...tabs,
|
|
654
671
|
...select,
|
|
655
672
|
...separator
|
|
656
673
|
];
|
package/dist/shortcuts.mjs
CHANGED
|
@@ -549,9 +549,29 @@ const skeleton = [
|
|
|
549
549
|
staticSkeleton
|
|
550
550
|
];
|
|
551
551
|
|
|
552
|
+
const staticTabs = {
|
|
553
|
+
// configurations
|
|
554
|
+
"tabs": "transition-colors duration-200 ease-out",
|
|
555
|
+
"tabs-default-variant": "tabs-soft-black",
|
|
556
|
+
"tabs-disabled": "n-disabled",
|
|
557
|
+
// components
|
|
558
|
+
"tabs-root": "flex flex-col w-full",
|
|
559
|
+
"tabs-trigger": "w-full focus-visible:z-10",
|
|
560
|
+
"tabs-list": "flex bg-muted items-center justify-center rounded-md p-1 w-full",
|
|
561
|
+
"tabs-content": "mt-4 text-base"
|
|
562
|
+
};
|
|
563
|
+
const dynamicTabs = [
|
|
564
|
+
[/^tabs-(\S+)-(\S+)$/, ([, v = "solid", c = "primary"]) => `data-[state=active]:btn-${v}-${c}`]
|
|
565
|
+
];
|
|
566
|
+
const tabs = [
|
|
567
|
+
...dynamicTabs,
|
|
568
|
+
staticTabs
|
|
569
|
+
];
|
|
570
|
+
|
|
552
571
|
const staticSelect = {
|
|
553
572
|
// configurations
|
|
554
573
|
"select": "",
|
|
574
|
+
"select-default-variant": "btn-outline-white",
|
|
555
575
|
"select-disabled": "n-disabled",
|
|
556
576
|
"select-scroll": "flex cursor-default items-center justify-center py-1",
|
|
557
577
|
"select-trigger-info-icon": "i-info",
|
|
@@ -563,7 +583,7 @@ const staticSelect = {
|
|
|
563
583
|
"select-trigger": "min-h-2.5em w-full",
|
|
564
584
|
// [&>span]:line-clamp-1
|
|
565
585
|
"select-trigger-trailing-icon": "i-lucide-chevrons-up-down !text-1.042em",
|
|
566
|
-
"select-trigger-trailing": "ml-auto",
|
|
586
|
+
"select-trigger-trailing": "ml-auto n-disabled",
|
|
567
587
|
"select-trigger-leading": "",
|
|
568
588
|
"select-value": "h-1.5em",
|
|
569
589
|
"select-content": "relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border border-base bg-popover text-popover shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
@@ -584,11 +604,7 @@ const staticSelect = {
|
|
|
584
604
|
"select-item-selectItem": ""
|
|
585
605
|
};
|
|
586
606
|
const dynamicSelect = [
|
|
587
|
-
[/^select-(
|
|
588
|
-
const color = parseColor(body, theme);
|
|
589
|
-
if ((color?.cssColor?.type === "rgb" || color?.cssColor?.type === "rgba") && color.cssColor.components)
|
|
590
|
-
return `n-${body}-600 dark:n-${body}-500`;
|
|
591
|
-
}],
|
|
607
|
+
[/^select-(\S+)-(\S+)$/, ([, v = "solid", c = "gray"]) => `btn-${v}-${c}`],
|
|
592
608
|
[/^select-item(-(\S+))?$/, ([, , c = "gray"]) => `focus:bg-${c}-100 focus:text-${c}-800 dark:focus:bg-${c}-800 dark:focus:text-${c}-100`]
|
|
593
609
|
];
|
|
594
610
|
const select = [
|
|
@@ -649,6 +665,7 @@ const shortcuts = [
|
|
|
649
665
|
...slider,
|
|
650
666
|
...progress,
|
|
651
667
|
...skeleton,
|
|
668
|
+
...tabs,
|
|
652
669
|
...select,
|
|
653
670
|
...separator
|
|
654
671
|
];
|