@stacksjs/ui 0.61.24 → 0.62.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.
Files changed (2) hide show
  1. package/dist/index.js +22 -12
  2. package/package.json +11 -11
package/dist/index.js CHANGED
@@ -41,7 +41,11 @@ var presetVariants = function(options = {}) {
41
41
  matcher: matcher.slice(match[0].length),
42
42
  selector: (s) => match[1] === "-not" ? `${s}[${selector}]:not(${attrGen}),:where([${selector}]:not(${attrGen})) ${s}:not(${selector})` : `${s}${attrGen},:where(${attrGen}) ${s}`
43
43
  };
44
- }
44
+ },
45
+ autocomplete: [
46
+ `${prefix}-(${variants})(:|-)`,
47
+ `${prefix}-not-(${variants})(:|-)`
48
+ ]
45
49
  };
46
50
  };
47
51
  var presetHeadlessUi = function(options = {}) {
@@ -52,17 +56,23 @@ var presetHeadlessUi = function(options = {}) {
52
56
  name: "unocss-preset-primitives",
53
57
  variants: [
54
58
  presetVariants({ prefix }),
55
- (matcher) => {
56
- const regex = new RegExp(`${prefix}(-not)?-focus-visible[:-]`);
57
- const match = matcher.match(regex);
58
- if (!match)
59
- return matcher;
60
- return {
61
- matcher: matcher.slice(match[0].length),
62
- selector: (s) => {
63
- return match[1] === "-not" ? `${s}:focus:where(:not([data-headlessui-focus-visible] ${s}))` : `:where([data-headlessui-focus-visible]) ${s}:focus`;
64
- }
65
- };
59
+ {
60
+ match: (matcher) => {
61
+ const regex = new RegExp(`${prefix}(-not)?-focus-visible[:-]`);
62
+ const match = matcher.match(regex);
63
+ if (!match)
64
+ return matcher;
65
+ return {
66
+ matcher: matcher.slice(match[0].length),
67
+ selector: (s) => {
68
+ return match[1] === "-not" ? `${s}:focus:where(:not([data-headlessui-focus-visible] ${s}))` : `:where([data-headlessui-focus-visible]) ${s}:focus`;
69
+ }
70
+ };
71
+ },
72
+ autocomplete: [
73
+ `${prefix}-focus-visible(:|-)`,
74
+ `${prefix}-not-focus-visible(:|-)`
75
+ ]
66
76
  }
67
77
  ]
68
78
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/ui",
3
3
  "type": "module",
4
- "version": "0.61.24",
4
+ "version": "0.62.0",
5
5
  "description": "The Stacks UI engine.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -63,29 +63,29 @@
63
63
  "@stacksjs/config": "latest",
64
64
  "@stacksjs/router": "latest",
65
65
  "pinia": "^2.1.7",
66
- "unocss": "^0.60.4",
66
+ "unocss": "^0.61.3",
67
67
  "vite-plugin-vue-layouts": "^0.11.0",
68
- "vue": "^3.4.27",
69
- "vue-tsc": "^2.0.19"
68
+ "vue": "^3.4.31",
69
+ "vue-tsc": "^2.0.26"
70
70
  },
71
71
  "dependencies": {
72
72
  "@headlessui/vue": "^1.7.22",
73
73
  "@iconify-json/heroicons": "^1.1.21",
74
74
  "@iconify-json/heroicons-outline": "^1.1.10",
75
75
  "@iconify-json/heroicons-solid": "^1.1.11",
76
- "@iconify/json": "^2.2.216",
76
+ "@iconify/json": "^2.2.226",
77
77
  "@julr/unocss-preset-forms": "^0.1.0",
78
78
  "@stacksjs/build": "latest",
79
79
  "@stacksjs/config": "latest",
80
80
  "@stacksjs/router": "latest",
81
- "@unhead/vue": "^1.9.12",
81
+ "@unhead/vue": "^1.9.15",
82
82
  "pinia": "^2.1.7",
83
- "unhead": "^1.9.12",
84
- "unocss": "^0.60.4",
85
- "unocss-preset-primitives": "0.0.2-beta.0",
83
+ "unhead": "^1.9.15",
84
+ "unocss": "^0.61.3",
85
+ "unocss-preset-primitives": "0.0.2-beta.1",
86
86
  "vite-plugin-vue-layouts": "^0.11.0",
87
- "vue": "^3.4.27",
88
- "vue-tsc": "^2.0.19"
87
+ "vue": "^3.4.31",
88
+ "vue-tsc": "^2.0.26"
89
89
  },
90
90
  "devDependencies": {
91
91
  "@stacksjs/development": "latest"