@una-ui/preset 0.12.1-beta.1 → 0.13.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 CHANGED
@@ -1,5 +1,5 @@
1
1
  'use strict';
2
2
 
3
- const prefixes = ["theme-switcher", "accordion", "alert", "avatar", "avatar-group", "badge", "button", "icon", "indicator", "kbd", "link", "progress", "separator", "skeleton", "checkbox", "form-group", "input", "radio", "slider", "switch", "nav-link", "nav-link-group", "card", "card-about", "card-content", "card-description", "card-footer", "card-header", "card-title", "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", "table", "table-body", "table-caption", "table-cell", "table-empty", "table-footer", "table-head", "table-header", "table-loading", "table-root", "table-row", "resize", "size", "btn"];
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", "table", "table-body", "table-caption", "table-cell", "table-empty", "table-footer", "table-head", "table-header", "table-loading", "table-root", "table-row", "card", "card-about", "card-content", "card-description", "card-footer", "card-header", "card-title", "tabs", "tabs-content", "tabs-list", "tabs-root", "tabs-trigger", "breadcrumb", "breadcrumb-ellipsis", "breadcrumb-item", "breadcrumb-link", "breadcrumb-list", "breadcrumb-root", "breadcrumb-separator", "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", "breadcrumb-active", "breadcrumb-inactive"];
4
4
 
5
5
  module.exports = prefixes;
package/dist/prefixes.mjs CHANGED
@@ -1,3 +1,3 @@
1
- const prefixes = ["theme-switcher", "accordion", "alert", "avatar", "avatar-group", "badge", "button", "icon", "indicator", "kbd", "link", "progress", "separator", "skeleton", "checkbox", "form-group", "input", "radio", "slider", "switch", "nav-link", "nav-link-group", "card", "card-about", "card-content", "card-description", "card-footer", "card-header", "card-title", "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", "table", "table-body", "table-caption", "table-cell", "table-empty", "table-footer", "table-head", "table-header", "table-loading", "table-root", "table-row", "resize", "size", "btn"];
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", "table", "table-body", "table-caption", "table-cell", "table-empty", "table-footer", "table-head", "table-header", "table-loading", "table-root", "table-row", "card", "card-about", "card-content", "card-description", "card-footer", "card-header", "card-title", "tabs", "tabs-content", "tabs-list", "tabs-root", "tabs-trigger", "breadcrumb", "breadcrumb-ellipsis", "breadcrumb-item", "breadcrumb-link", "breadcrumb-list", "breadcrumb-root", "breadcrumb-separator", "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", "breadcrumb-active", "breadcrumb-inactive"];
2
2
 
3
3
  export { prefixes as default };
@@ -120,8 +120,9 @@ const staticBtn = {
120
120
  "btn-text-gray": "text-$c-gray-600 btn-focus hover:text-$c-gray-900",
121
121
  "btn-solid-black": "bg-inverted text-inverted shadow-sm btn-focus",
122
122
  "btn-link-black": "text-base btn-focus hover:underline underline-offset-4",
123
- "btn-text-black": "text-base btn-focus hover:text-muted",
124
- "btn-soft-black": "text-base bg-base btn-focus shadow-sm"
123
+ "btn-text-black": "text-base btn-focus",
124
+ "btn-soft-black": "text-base bg-base btn-focus shadow-sm",
125
+ "btn-text-muted": "text-muted btn-focus hover:text-accent"
125
126
  };
126
127
  const dynamicBtn = [
127
128
  // base
@@ -712,8 +713,40 @@ const table = [
712
713
  staticTable
713
714
  ];
714
715
 
716
+ const staticBreadcrumb = {
717
+ // config
718
+ "breadcrumb": "",
719
+ "breadcrumb-active": "breadcrumb-active-text-primary",
720
+ "breadcrumb-inactive": "breadcrumb-inactive-text-muted",
721
+ "breadcrumb-separator-icon": "i-radix-icons-chevron-right",
722
+ "breadcrumb-elipsis-icon": "i-radix-icons-dots-horizontal",
723
+ // components
724
+ "breadcrumb-root": "",
725
+ "breadcrumb-list": "flex flex-wrap items-center break-words text-muted gap-0.5",
726
+ "breadcrumb-link": "transition-colors font-normal btn-square",
727
+ "breadcrumb-item": "inline-flex items-center",
728
+ // TODO
729
+ "breadcrumb-ellipsis": "flex h-9 w-9 items-center justify-center"
730
+ };
731
+ const dynamicBreadcrumb = [
732
+ // states
733
+ [
734
+ /^breadcrumb-active-(\S+)-(\S+)$/,
735
+ ([, variant = "text", color = "primary"]) => `data-[state=active]:btn-${variant}-${color}`
736
+ ],
737
+ [
738
+ /^breadcrumb-inactive-(\S+)-(\S+)$/,
739
+ ([, variant = "text", color = "muted"]) => `data-[state=inactive]:btn-${variant}-${color}`
740
+ ]
741
+ ];
742
+ const breadcrumb = [
743
+ ...dynamicBreadcrumb,
744
+ staticBreadcrumb
745
+ ];
746
+
715
747
  const shortcuts = [
716
748
  ...general,
749
+ ...breadcrumb,
717
750
  ...accordion,
718
751
  ...btn,
719
752
  ...formGroup,
@@ -118,8 +118,9 @@ const staticBtn = {
118
118
  "btn-text-gray": "text-$c-gray-600 btn-focus hover:text-$c-gray-900",
119
119
  "btn-solid-black": "bg-inverted text-inverted shadow-sm btn-focus",
120
120
  "btn-link-black": "text-base btn-focus hover:underline underline-offset-4",
121
- "btn-text-black": "text-base btn-focus hover:text-muted",
122
- "btn-soft-black": "text-base bg-base btn-focus shadow-sm"
121
+ "btn-text-black": "text-base btn-focus",
122
+ "btn-soft-black": "text-base bg-base btn-focus shadow-sm",
123
+ "btn-text-muted": "text-muted btn-focus hover:text-accent"
123
124
  };
124
125
  const dynamicBtn = [
125
126
  // base
@@ -710,8 +711,40 @@ const table = [
710
711
  staticTable
711
712
  ];
712
713
 
714
+ const staticBreadcrumb = {
715
+ // config
716
+ "breadcrumb": "",
717
+ "breadcrumb-active": "breadcrumb-active-text-primary",
718
+ "breadcrumb-inactive": "breadcrumb-inactive-text-muted",
719
+ "breadcrumb-separator-icon": "i-radix-icons-chevron-right",
720
+ "breadcrumb-elipsis-icon": "i-radix-icons-dots-horizontal",
721
+ // components
722
+ "breadcrumb-root": "",
723
+ "breadcrumb-list": "flex flex-wrap items-center break-words text-muted gap-0.5",
724
+ "breadcrumb-link": "transition-colors font-normal btn-square",
725
+ "breadcrumb-item": "inline-flex items-center",
726
+ // TODO
727
+ "breadcrumb-ellipsis": "flex h-9 w-9 items-center justify-center"
728
+ };
729
+ const dynamicBreadcrumb = [
730
+ // states
731
+ [
732
+ /^breadcrumb-active-(\S+)-(\S+)$/,
733
+ ([, variant = "text", color = "primary"]) => `data-[state=active]:btn-${variant}-${color}`
734
+ ],
735
+ [
736
+ /^breadcrumb-inactive-(\S+)-(\S+)$/,
737
+ ([, variant = "text", color = "muted"]) => `data-[state=inactive]:btn-${variant}-${color}`
738
+ ]
739
+ ];
740
+ const breadcrumb = [
741
+ ...dynamicBreadcrumb,
742
+ staticBreadcrumb
743
+ ];
744
+
713
745
  const shortcuts = [
714
746
  ...general,
747
+ ...breadcrumb,
715
748
  ...accordion,
716
749
  ...btn,
717
750
  ...formGroup,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@una-ui/preset",
3
- "version": "0.12.1-beta.1",
3
+ "version": "0.13.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.61.9",
53
- "@unocss/preset-mini": "^0.61.9",
54
- "unocss": "^0.61.9"
52
+ "@unocss/core": "^0.62.2",
53
+ "@unocss/preset-mini": "^0.62.2",
54
+ "unocss": "^0.62.2"
55
55
  },
56
56
  "scripts": {
57
57
  "build": "unbuild",