@una-ui/preset 0.29.0-beta.1 → 0.30.0-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 +2 -0
- package/dist/prefixes.mjs +2 -0
- package/dist/shortcuts.cjs +27 -1
- package/dist/shortcuts.mjs +27 -1
- package/package.json +4 -4
package/dist/prefixes.cjs
CHANGED
package/dist/prefixes.mjs
CHANGED
package/dist/shortcuts.cjs
CHANGED
|
@@ -676,6 +676,31 @@ const radio = [
|
|
|
676
676
|
staticRadio
|
|
677
677
|
];
|
|
678
678
|
|
|
679
|
+
const staticRadioGroup = {
|
|
680
|
+
// configurations
|
|
681
|
+
"radio-group": "gap-2 flex flex-nowrap",
|
|
682
|
+
"radio-group-orientation-vertical": "flex-col",
|
|
683
|
+
"radio-group-orientation-horizontal": "flex-row",
|
|
684
|
+
// components
|
|
685
|
+
"radio-group-item-wrapper": "flex items-center space-x-2",
|
|
686
|
+
"radio-group-item": "aspect-square rounded-full border border-brand text-brand shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-base disabled:n-disabled",
|
|
687
|
+
"radio-group-indicator": "flex items-center justify-center",
|
|
688
|
+
"radio-group-indicator-icon-base": "h-0.875em w-0.875em fill-brand",
|
|
689
|
+
"radio-group-indicator-icon": "i-dot",
|
|
690
|
+
"radio-group-item-label": ""
|
|
691
|
+
};
|
|
692
|
+
const dynamicRadioGroup = [
|
|
693
|
+
[/^radio-group-(.*)$/, ([, body], { theme }) => {
|
|
694
|
+
const color = utils.parseColor(body, theme);
|
|
695
|
+
if ((color?.cssColor?.type === "rgb" || color?.cssColor?.type === "rgba") && color.cssColor.components)
|
|
696
|
+
return `n-${body}-600 dark:n-${body}-500`;
|
|
697
|
+
}]
|
|
698
|
+
];
|
|
699
|
+
const radioGroup = [
|
|
700
|
+
...dynamicRadioGroup,
|
|
701
|
+
staticRadioGroup
|
|
702
|
+
];
|
|
703
|
+
|
|
679
704
|
const staticSelect = {
|
|
680
705
|
// configurations
|
|
681
706
|
"select": "",
|
|
@@ -967,7 +992,8 @@ const shortcuts = [
|
|
|
967
992
|
...tooltip,
|
|
968
993
|
...pagination,
|
|
969
994
|
...toggle,
|
|
970
|
-
...collapsible
|
|
995
|
+
...collapsible,
|
|
996
|
+
...radioGroup
|
|
971
997
|
];
|
|
972
998
|
|
|
973
999
|
exports.shortcuts = shortcuts;
|
package/dist/shortcuts.mjs
CHANGED
|
@@ -674,6 +674,31 @@ const radio = [
|
|
|
674
674
|
staticRadio
|
|
675
675
|
];
|
|
676
676
|
|
|
677
|
+
const staticRadioGroup = {
|
|
678
|
+
// configurations
|
|
679
|
+
"radio-group": "gap-2 flex flex-nowrap",
|
|
680
|
+
"radio-group-orientation-vertical": "flex-col",
|
|
681
|
+
"radio-group-orientation-horizontal": "flex-row",
|
|
682
|
+
// components
|
|
683
|
+
"radio-group-item-wrapper": "flex items-center space-x-2",
|
|
684
|
+
"radio-group-item": "aspect-square rounded-full border border-brand text-brand shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-base disabled:n-disabled",
|
|
685
|
+
"radio-group-indicator": "flex items-center justify-center",
|
|
686
|
+
"radio-group-indicator-icon-base": "h-0.875em w-0.875em fill-brand",
|
|
687
|
+
"radio-group-indicator-icon": "i-dot",
|
|
688
|
+
"radio-group-item-label": ""
|
|
689
|
+
};
|
|
690
|
+
const dynamicRadioGroup = [
|
|
691
|
+
[/^radio-group-(.*)$/, ([, body], { theme }) => {
|
|
692
|
+
const color = parseColor(body, theme);
|
|
693
|
+
if ((color?.cssColor?.type === "rgb" || color?.cssColor?.type === "rgba") && color.cssColor.components)
|
|
694
|
+
return `n-${body}-600 dark:n-${body}-500`;
|
|
695
|
+
}]
|
|
696
|
+
];
|
|
697
|
+
const radioGroup = [
|
|
698
|
+
...dynamicRadioGroup,
|
|
699
|
+
staticRadioGroup
|
|
700
|
+
];
|
|
701
|
+
|
|
677
702
|
const staticSelect = {
|
|
678
703
|
// configurations
|
|
679
704
|
"select": "",
|
|
@@ -965,7 +990,8 @@ const shortcuts = [
|
|
|
965
990
|
...tooltip,
|
|
966
991
|
...pagination,
|
|
967
992
|
...toggle,
|
|
968
|
-
...collapsible
|
|
993
|
+
...collapsible,
|
|
994
|
+
...radioGroup
|
|
969
995
|
];
|
|
970
996
|
|
|
971
997
|
export { shortcuts };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@una-ui/preset",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.0-beta.1",
|
|
4
4
|
"description": "The default preset for @una-ui",
|
|
5
5
|
"author": "Phojie Rengel <phojrengel@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@unocss/core": "^0.
|
|
53
|
-
"@unocss/preset-mini": "^0.
|
|
54
|
-
"unocss": "^0.
|
|
52
|
+
"@unocss/core": "^0.64.1",
|
|
53
|
+
"@unocss/preset-mini": "^0.64.1",
|
|
54
|
+
"unocss": "^0.64.1"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"build": "unbuild",
|