@una-ui/preset-edge 1.0.0-alpha.0-29176511.c6828ac → 1.0.0-alpha.0-29178676.a61dab3

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.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { fonts } from '@unocss/preset-mini/rules';
2
2
  import { handler, parseColor } from '@unocss/preset-mini/utils';
3
3
  import { colors } from '@unocss/preset-wind4/colors';
4
- import { s as shortcuts } from './shared/preset-edge.DxMSB2Ce.mjs';
4
+ import { s as shortcuts } from './shared/preset-edge.CGcifjl7.mjs';
5
5
  import '@unocss/preset-mini';
6
6
 
7
7
  function presetUna(options = {
@@ -212,37 +212,37 @@ const staticBtn = {
212
212
  // variants
213
213
  "btn-solid-primary": "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90 btn-focus",
214
214
  "btn-solid": "btn-solid-primary",
215
- "btn-solid-gray": "border bg-background dark:bg-input/50 shadow-xs bg-accent dark:hover:bg-input btn-focus",
215
+ "btn-solid-gray": "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/90 btn-focus",
216
216
  "btn-solid-secondary": "btn-solid-gray",
217
- "btn-solid-white": "border bg-background shadow-xs hover:bg-accent dark:border-input dark:hover:bg-input btn-focus",
217
+ "btn-solid-white": "bg-background text-foreground shadow-xs btn-focus",
218
218
  "btn-solid-black": "bg-foreground text-background shadow-xs btn-focus",
219
- "btn-outline-primary": "shadow-xs text-primary bg-background dark:bg-input/30 border border-primary hover:bg-primary/10 btn-focus",
219
+ "btn-outline-primary": "shadow-xs text-primary bg-background border border-primary hover:bg-primary/10 btn-focus",
220
220
  "btn-outline": "btn-outline-primary",
221
221
  "btn-outline-gray": "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 btn-focus",
222
222
  "btn-outline-white": "text-foreground border shadow-xs hover:bg-input/50 btn-focus",
223
223
  "btn-link-primary": "text-primary hover:underline underline-offset-4 btn-focus",
224
224
  "btn-link": "btn-link-primary",
225
- "btn-link-gray": "text-muted-foreground hover:text-foreground hover:underline underline-offset-4 btn-focus",
225
+ "btn-link-gray": "text-secondary-foreground hover:underline underline-offset-4 btn-focus",
226
226
  "btn-link-black": "text-foreground hover:underline underline-offset-4 btn-focus",
227
227
  "btn-link-muted": "text-muted-foreground hover:underline underline-offset-4 btn-focus",
228
228
  "btn-link-accent": "text-accent-foreground hover:underline underline-offset-4 btn-focus",
229
- "btn-text-primary": "text-primary btn-focus",
229
+ "btn-text-primary": "hover:text-primary text-primary/90 btn-focus",
230
230
  "btn-text": "btn-text-primary",
231
- "btn-text-gray": "text-muted-foreground hover:text-foreground btn-focus",
232
- "btn-text-black": "text-foreground btn-focus",
233
- "btn-text-muted": "text-muted-foreground btn-focus",
234
- "btn-text-accent": "text-accent-foreground hover:text-accent-foreground/80 btn-focus",
231
+ "btn-text-gray": "hover:text-secondary-foreground text-secondary-foreground/90 btn-focus",
232
+ "btn-text-black": "hover:text-foreground text-foreground/90 btn-focus",
233
+ "btn-text-muted": "hover:text-foreground text-foreground/90 btn-focus",
234
+ "btn-text-accent": "hover:text-accent-foreground text-accent-foreground/90 btn-focus",
235
235
  "btn-soft-primary": "bg-primary/10 text-primary shadow-xs hover:bg-primary/15 btn-focus",
236
236
  "btn-soft": "btn-soft-primary",
237
237
  "btn-soft-gray": "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80 btn-focus",
238
238
  "btn-soft-secondary": "btn-soft-gray",
239
239
  "btn-soft-black": "text-foreground bg-background shadow-xs btn-focus",
240
- "btn-soft-accent": "text-accent-foreground bg-accent btn-focus",
240
+ "btn-soft-accent": "text-accent-foreground bg-accent/80 hover:bg-accent btn-focus",
241
241
  "btn-ghost-primary": "hover:bg-primary/10 text-primary dark:hover:bg-primary/15 btn-focus",
242
242
  "btn-ghost": "btn-ghost-primary",
243
- "btn-ghost-gray": "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50 btn-focus",
244
- "btn-ghost-muted": "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50 btn-focus",
245
- "btn-ghost-white": "text-foreground hover:bg-secondary/50 btn-focus",
243
+ "btn-ghost-gray": "hover:text-secondary-foreground hover:bg-secondary/80 btn-focus",
244
+ "btn-ghost-muted": "text-muted-foreground hover:bg-secondary/80 btn-focus",
245
+ "btn-ghost-white": "text-foreground hover:bg-secondary/80 btn-focus",
246
246
  "btn-focus-primary": "focus-visible:ring-3px focus-visible:border focus-visible:border-ring focus-visible:ring-ring/50",
247
247
  "btn-focus": "btn-focus-primary"
248
248
  };
@@ -250,11 +250,11 @@ const dynamicBtn = [
250
250
  // base
251
251
  [/^btn-focus(-(\S+))?$/, ([, , c = "primary"]) => `focus-visible:ring-3px focus-visible:border focus-visible:border-${c}-400 dark:focus-visible:border-${c}-800 focus-visible:ring-${c}-400/50 dark:focus-visible:ring-${c}-800/50`],
252
252
  // variants
253
- [/^btn-solid(-(\S+))?$/, ([, , c = "primary"]) => `btn-focus-${c} text-background shadow-xs bg-${c}-600 hover:bg-${c}-500 dark:bg-${c}-500 dark:hover:bg-${c}-400`],
254
- [/^btn-text(-(\S+))?$/, ([, , c = "primary"]) => `btn-focus-${c} text-${c}-600 dark:text-${c}-500 hover:text-${c}-500 dark:hover:text-${c}-400`],
255
- [/^btn-outline(-(\S+))?$/, ([, , c = "primary"]) => `shadow-xs btn-focus-${c} text-${c}-500 dark:text-${c}-400 bg-background dark:bg-input/30 border border-${c}-500 dark:border-${c}-400 hover:bg-${c}-50 dark:hover:bg-${c}-950`],
256
- [/^btn-soft(-(\S+))?$/, ([, , c = "primary"]) => `btn-focus-${c} text-${c}-600 dark:text-${c}-400 bg-${c}-50 dark:bg-${c}-950 hover:bg-${c}-100 dark:hover:bg-${c}-900`],
257
- [/^btn-ghost(-(\S+))?$/, ([, , c = "primary"]) => `btn-focus-${c} text-${c}-600 dark:text-${c}-400 hover:bg-${c}-100 dark:hover:bg-${c}-900`],
253
+ [/^btn-solid(-(\S+))?$/, ([, , c = "primary"]) => `btn-focus-${c} text-background shadow-xs bg-${c}-600 dark:bg-${c}-500 hover:bg-${c}-600/90 dark:hover:bg-${c}-500/90`],
254
+ [/^btn-text(-(\S+))?$/, ([, , c = "primary"]) => `btn-focus-${c} hover:text-${c}-600 hover:dark:text-${c}-500 text-${c}-600/90 dark:text-${c}-500/90`],
255
+ [/^btn-outline(-(\S+))?$/, ([, , c = "primary"]) => `shadow-xs btn-focus-${c} text-${c}-600 dark:text-${c}-500 bg-background dark:bg-input/30 border border-${c}-600/90 dark:border-${c}-500/90 hover:bg-${c}-600/10 dark:hover:bg-${c}-500/15`],
256
+ [/^btn-soft(-(\S+))?$/, ([, , c = "primary"]) => `btn-focus-${c} text-${c}-600 dark:text-${c}-500 bg-${c}-600/10 dark:bg-${c}-500/10 hover:bg-${c}-600/15 dark:hover:bg-${c}-500/15`],
257
+ [/^btn-ghost(-(\S+))?$/, ([, , c = "primary"]) => `btn-focus-${c} text-${c}-600 dark:text-${c}-500 hover:bg-${c}-600/10 dark:hover:bg-${c}-500/10`],
258
258
  [/^btn-link(-(\S+))?$/, ([, , c = "primary"]) => `btn-focus-${c} text-${c}-600 dark:text-${c}-500 hover:underline underline-offset-4`]
259
259
  ];
260
260
  const btn = [
@@ -1075,9 +1075,9 @@ const skeleton = [
1075
1075
  const staticSlider = {
1076
1076
  // components
1077
1077
  "slider-root": "relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",
1078
- "slider-track": "bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5",
1078
+ "slider-track": "bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-0.375em data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-0.375em",
1079
1079
  "slider-range": "bg-brand absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full",
1080
- "slider-thumb": "square-1em border-brand bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-none disabled:n-disabled",
1080
+ "slider-thumb": "square-1em border-brand bg-background ring-brand/50 block shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-none disabled:n-disabled",
1081
1081
  "slider-primary": "n-primary",
1082
1082
  "slider-secondary": "n-secondary",
1083
1083
  "slider-accent": "n-accent",
@@ -1,3 +1,3 @@
1
- export { s as shortcuts } from './shared/preset-edge.DxMSB2Ce.mjs';
1
+ export { s as shortcuts } from './shared/preset-edge.CGcifjl7.mjs';
2
2
  import '@unocss/preset-mini/utils';
3
3
  import '@unocss/preset-mini';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@una-ui/preset-edge",
3
- "version": "1.0.0-alpha.0-29176511.c6828ac",
3
+ "version": "1.0.0-alpha.0-29178676.a61dab3",
4
4
  "description": "The default preset for @una-ui",
5
5
  "author": "Phojie Rengel <phojrengel@gmail.com>",
6
6
  "license": "MIT",