@ekkolyth/ui 0.1.12 → 0.1.13

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.
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { Select as Select$1 } from 'radix-ui';
4
4
 
5
5
  declare function Select({ ...props }: React.ComponentProps<typeof Select$1.Root>): react_jsx_runtime.JSX.Element;
6
- declare function SelectGroup({ className, ...props }: React.ComponentProps<typeof Select$1.Group>): react_jsx_runtime.JSX.Element;
6
+ declare function SelectGroup({ ...props }: React.ComponentProps<typeof Select$1.Group>): react_jsx_runtime.JSX.Element;
7
7
  declare function SelectValue({ ...props }: React.ComponentProps<typeof Select$1.Value>): react_jsx_runtime.JSX.Element;
8
8
  declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof Select$1.Trigger> & {
9
9
  size?: "sm" | "default";
package/dist/index.d.ts CHANGED
@@ -11,7 +11,7 @@ import { Command as Command$1 } from 'cmdk';
11
11
  import { Drawer as Drawer$1 } from 'vaul';
12
12
  import { OTPInput } from 'input-otp';
13
13
  import { Separator as Separator$2, Panel, Group } from 'react-resizable-panels';
14
- export { S as Select, a as SelectContent, b as SelectGroup, c as SelectItem, d as SelectLabel, e as SelectScrollDownButton, f as SelectScrollUpButton, g as SelectSeparator, h as SelectTrigger, i as SelectValue } from './index-Bg0LjNd5.js';
14
+ export { S as Select, a as SelectContent, b as SelectGroup, c as SelectItem, d as SelectLabel, e as SelectScrollDownButton, f as SelectScrollUpButton, g as SelectSeparator, h as SelectTrigger, i as SelectValue } from './index-C3ceanPz.js';
15
15
  import { ToasterProps } from 'sonner';
16
16
  import { t as toggleVariants } from './index-C7t_lwpi.js';
17
17
  export { T as Toggle } from './index-C7t_lwpi.js';
package/dist/index.js CHANGED
@@ -199,25 +199,25 @@ function AlertAction(_a) {
199
199
  );
200
200
  }
201
201
  var buttonVariants = cva(
202
- "cursor-pointer focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-md border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-[3px] aria-invalid:ring-[3px] [&_svg:not([class*='size-'])]:size-4 inline-flex items-center justify-center whitespace-nowrap transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none shrink-0 [&_svg]:shrink-0 outline-none group/button select-none",
202
+ "cursor-pointer inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
203
203
  {
204
204
  variants: {
205
205
  variant: {
206
- default: "bg-primary text-primary-foreground hover:bg-primary/80",
207
- outline: "border-border bg-background hover:bg-muted hover:text-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 aria-expanded:bg-muted aria-expanded:text-foreground shadow-xs",
208
- secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
209
- ghost: "hover:bg-muted hover:text-foreground dark:hover:bg-muted/50 aria-expanded:bg-muted aria-expanded:text-foreground",
210
- destructive: "bg-destructive/10 hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/20 text-destructive focus-visible:border-destructive/40 dark:hover:bg-destructive/30",
206
+ default: "bg-primary text-primary-foreground hover:bg-primary/90",
207
+ destructive: "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
208
+ outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
209
+ secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
210
+ ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
211
211
  link: "text-primary underline-offset-4 hover:underline"
212
212
  },
213
213
  size: {
214
- default: "h-9 gap-1.5 px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
215
- xs: "h-6 gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
216
- sm: "h-8 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5",
217
- lg: "h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",
214
+ default: "h-9 px-4 py-2 has-[>svg]:px-3",
215
+ xs: "h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",
216
+ sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
217
+ lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
218
218
  icon: "size-9",
219
- "icon-xs": "size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3",
220
- "icon-sm": "size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md",
219
+ "icon-xs": "size-6 rounded-md [&_svg:not([class*='size-'])]:size-3",
220
+ "icon-sm": "size-8",
221
221
  "icon-lg": "size-10"
222
222
  }
223
223
  },
@@ -510,16 +510,16 @@ function AvatarGroupCount(_a) {
510
510
  );
511
511
  }
512
512
  var badgeVariants = cva(
513
- "h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3! inline-flex items-center justify-center w-fit whitespace-nowrap shrink-0 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive overflow-hidden group/badge",
513
+ "inline-flex items-center justify-center rounded-full border border-transparent px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
514
514
  {
515
515
  variants: {
516
516
  variant: {
517
- default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
518
- secondary: "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
519
- destructive: "bg-destructive/10 [a]:hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 text-destructive dark:bg-destructive/20",
520
- outline: "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",
521
- ghost: "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
522
- link: "text-primary underline-offset-4 hover:underline"
517
+ default: "bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
518
+ secondary: "bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
519
+ destructive: "bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
520
+ outline: "border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
521
+ ghost: "[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
522
+ link: "text-primary underline-offset-4 [a&]:hover:underline"
523
523
  }
524
524
  },
525
525
  defaultVariants: {
@@ -1475,7 +1475,7 @@ function Checkbox(_a) {
1475
1475
  __spreadProps(__spreadValues({
1476
1476
  "data-slot": "checkbox",
1477
1477
  className: cn(
1478
- "border-input dark:bg-input/30 data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary data-checked:border-primary aria-invalid:aria-checked:border-primary aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 flex size-4 items-center justify-center rounded-[4px] border shadow-xs transition-shadow group-has-disabled/field:opacity-50 focus-visible:ring-[3px] aria-invalid:ring-[3px] peer relative shrink-0 outline-none after:absolute after:-inset-x-3 after:-inset-y-2 disabled:cursor-not-allowed disabled:opacity-50",
1478
+ "peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
1479
1479
  className
1480
1480
  )
1481
1481
  }, props), {
@@ -1483,11 +1483,8 @@ function Checkbox(_a) {
1483
1483
  Checkbox$1.Indicator,
1484
1484
  {
1485
1485
  "data-slot": "checkbox-indicator",
1486
- className: "[&>svg]:size-3.5 grid place-content-center text-current transition-none",
1487
- children: /* @__PURE__ */ jsx(
1488
- CheckIcon,
1489
- {}
1490
- )
1486
+ className: "grid place-content-center text-current transition-none",
1487
+ children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-3.5" })
1491
1488
  }
1492
1489
  )
1493
1490
  })
@@ -1523,7 +1520,9 @@ function Input(_a) {
1523
1520
  type,
1524
1521
  "data-slot": "input",
1525
1522
  className: cn(
1526
- "dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-9 rounded-md border bg-transparent px-2.5 py-1 text-base shadow-xs transition-[color,box-shadow] file:h-7 file:text-sm file:font-medium focus-visible:ring-[3px] aria-invalid:ring-[3px] md:text-sm file:text-foreground placeholder:text-muted-foreground w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
1523
+ "file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
1524
+ "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
1525
+ "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
1527
1526
  className
1528
1527
  )
1529
1528
  }, props)
@@ -1536,7 +1535,7 @@ function Textarea(_a) {
1536
1535
  __spreadValues({
1537
1536
  "data-slot": "textarea",
1538
1537
  className: cn(
1539
- "border-input dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-md border bg-transparent px-2.5 py-2 text-base shadow-xs transition-[color,box-shadow] focus-visible:ring-[3px] aria-invalid:ring-[3px] md:text-sm placeholder:text-muted-foreground flex field-sizing-content min-h-16 w-full outline-none disabled:cursor-not-allowed disabled:opacity-50",
1538
+ "border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
1540
1539
  className
1541
1540
  )
1542
1541
  }, props)
@@ -4059,7 +4058,7 @@ function RadioGroup(_a) {
4059
4058
  RadioGroup$1.Root,
4060
4059
  __spreadValues({
4061
4060
  "data-slot": "radio-group",
4062
- className: cn("grid gap-3 w-full", className)
4061
+ className: cn("grid gap-3", className)
4063
4062
  }, props)
4064
4063
  );
4065
4064
  }
@@ -4074,7 +4073,7 @@ function RadioGroupItem(_a) {
4074
4073
  __spreadProps(__spreadValues({
4075
4074
  "data-slot": "radio-group-item",
4076
4075
  className: cn(
4077
- "border-input text-primary dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 flex size-4 rounded-full shadow-xs focus-visible:ring-[3px] aria-invalid:ring-[3px] group/radio-group-item peer relative aspect-square shrink-0 border outline-none after:absolute after:-inset-x-3 after:-inset-y-2 disabled:cursor-not-allowed disabled:opacity-50",
4076
+ "border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
4078
4077
  className
4079
4078
  )
4080
4079
  }, props), {
@@ -4082,8 +4081,8 @@ function RadioGroupItem(_a) {
4082
4081
  RadioGroup$1.Indicator,
4083
4082
  {
4084
4083
  "data-slot": "radio-group-indicator",
4085
- className: "group-aria-invalid/radio-group-item:text-destructive text-primary flex size-4 items-center justify-center",
4086
- children: /* @__PURE__ */ jsx(CircleIcon, { className: "absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-current" })
4084
+ className: "relative flex items-center justify-center",
4085
+ children: /* @__PURE__ */ jsx(CircleIcon, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
4087
4086
  }
4088
4087
  )
4089
4088
  })
@@ -4196,18 +4195,8 @@ function Select(_a) {
4196
4195
  return /* @__PURE__ */ jsx(Select$1.Root, __spreadValues({ "data-slot": "select" }, props));
4197
4196
  }
4198
4197
  function SelectGroup(_a) {
4199
- var _b = _a, {
4200
- className
4201
- } = _b, props = __objRest(_b, [
4202
- "className"
4203
- ]);
4204
- return /* @__PURE__ */ jsx(
4205
- Select$1.Group,
4206
- __spreadValues({
4207
- "data-slot": "select-group",
4208
- className: cn("scroll-my-1 p-1", className)
4209
- }, props)
4210
- );
4198
+ var props = __objRest(_a, []);
4199
+ return /* @__PURE__ */ jsx(Select$1.Group, __spreadValues({ "data-slot": "select-group" }, props));
4211
4200
  }
4212
4201
  function SelectValue(_a) {
4213
4202
  var props = __objRest(_a, []);
@@ -4229,13 +4218,13 @@ function SelectTrigger(_a) {
4229
4218
  "data-slot": "select-trigger",
4230
4219
  "data-size": size,
4231
4220
  className: cn(
4232
- "cursor-pointer border-input data-[placeholder]:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 gap-1.5 rounded-md border bg-transparent py-2 pr-2 pl-2.5 text-sm shadow-xs transition-[color,box-shadow] focus-visible:ring-[3px] aria-invalid:ring-[3px] data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:flex *:data-[slot=select-value]:gap-1.5 [&_svg:not([class*='size-'])]:size-4 flex w-fit items-center justify-between whitespace-nowrap outline-none disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center [&_svg]:pointer-events-none [&_svg]:shrink-0",
4221
+ "cursor-pointer border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
4233
4222
  className
4234
4223
  )
4235
4224
  }, props), {
4236
4225
  children: [
4237
4226
  children,
4238
- /* @__PURE__ */ jsx(Select$1.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "text-muted-foreground size-4 pointer-events-none" }) })
4227
+ /* @__PURE__ */ jsx(Select$1.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4 opacity-50" }) })
4239
4228
  ]
4240
4229
  })
4241
4230
  );
@@ -4256,8 +4245,11 @@ function SelectContent(_a) {
4256
4245
  Select$1.Content,
4257
4246
  __spreadProps(__spreadValues({
4258
4247
  "data-slot": "select-content",
4259
- "data-align-trigger": position === "item-aligned",
4260
- className: cn("bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-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 ring-foreground/10 min-w-36 rounded-md shadow-md ring-1 duration-100 relative z-50 max-h-(--radix-select-content-available-height) origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto data-[align-trigger=true]:animate-none", position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", className),
4248
+ className: cn(
4249
+ "bg-popover text-popover-foreground 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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
4250
+ position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
4251
+ className
4252
+ ),
4261
4253
  position,
4262
4254
  align
4263
4255
  }, props), {
@@ -4266,10 +4258,9 @@ function SelectContent(_a) {
4266
4258
  /* @__PURE__ */ jsx(
4267
4259
  Select$1.Viewport,
4268
4260
  {
4269
- "data-position": position,
4270
4261
  className: cn(
4271
- "data-[position=popper]:h-[var(--radix-select-trigger-height)] data-[position=popper]:w-full data-[position=popper]:min-w-[var(--radix-select-trigger-width)]",
4272
- position === "popper" && ""
4262
+ "p-1",
4263
+ position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
4273
4264
  ),
4274
4265
  children
4275
4266
  }
@@ -4306,12 +4297,19 @@ function SelectItem(_a) {
4306
4297
  __spreadProps(__spreadValues({
4307
4298
  "data-slot": "select-item",
4308
4299
  className: cn(
4309
- "cursor-pointer focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2 relative flex w-full items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
4300
+ "cursor-pointer focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
4310
4301
  className
4311
4302
  )
4312
4303
  }, props), {
4313
4304
  children: [
4314
- /* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ jsx(Select$1.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "pointer-events-none" }) }) }),
4305
+ /* @__PURE__ */ jsx(
4306
+ "span",
4307
+ {
4308
+ "data-slot": "select-item-indicator",
4309
+ className: "absolute right-2 flex size-3.5 items-center justify-center",
4310
+ children: /* @__PURE__ */ jsx(Select$1.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4" }) })
4311
+ }
4312
+ ),
4315
4313
  /* @__PURE__ */ jsx(Select$1.ItemText, { children })
4316
4314
  ]
4317
4315
  })
@@ -4341,7 +4339,10 @@ function SelectScrollUpButton(_a) {
4341
4339
  Select$1.ScrollUpButton,
4342
4340
  __spreadProps(__spreadValues({
4343
4341
  "data-slot": "select-scroll-up-button",
4344
- className: cn("bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4", className)
4342
+ className: cn(
4343
+ "flex cursor-default items-center justify-center py-1",
4344
+ className
4345
+ )
4345
4346
  }, props), {
4346
4347
  children: /* @__PURE__ */ jsx(
4347
4348
  ChevronUpIcon,
@@ -4360,7 +4361,10 @@ function SelectScrollDownButton(_a) {
4360
4361
  Select$1.ScrollDownButton,
4361
4362
  __spreadProps(__spreadValues({
4362
4363
  "data-slot": "select-scroll-down-button",
4363
- className: cn("bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4", className)
4364
+ className: cn(
4365
+ "flex cursor-default items-center justify-center py-1",
4366
+ className
4367
+ )
4364
4368
  }, props), {
4365
4369
  children: /* @__PURE__ */ jsx(
4366
4370
  ChevronDownIcon,
@@ -5202,7 +5206,7 @@ function Slider(_a) {
5202
5206
  min,
5203
5207
  max,
5204
5208
  className: cn(
5205
- "data-vertical:min-h-40 relative flex w-full touch-none items-center select-none data-disabled:opacity-50 data-vertical:h-full data-vertical:w-auto data-vertical:flex-col",
5209
+ "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",
5206
5210
  className
5207
5211
  )
5208
5212
  }, props), {
@@ -5211,12 +5215,16 @@ function Slider(_a) {
5211
5215
  Slider$1.Track,
5212
5216
  {
5213
5217
  "data-slot": "slider-track",
5214
- className: "bg-muted rounded-full data-horizontal:h-1.5 data-horizontal:w-full data-vertical:h-full data-vertical:w-1.5 bg-muted relative grow overflow-hidden data-horizontal:w-full data-vertical:h-full",
5218
+ className: cn(
5219
+ "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"
5220
+ ),
5215
5221
  children: /* @__PURE__ */ jsx(
5216
5222
  Slider$1.Range,
5217
5223
  {
5218
5224
  "data-slot": "slider-range",
5219
- className: "bg-primary absolute select-none data-horizontal:h-full data-vertical:w-full"
5225
+ className: cn(
5226
+ "bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full"
5227
+ )
5220
5228
  }
5221
5229
  )
5222
5230
  }
@@ -5225,7 +5233,7 @@ function Slider(_a) {
5225
5233
  Slider$1.Thumb,
5226
5234
  {
5227
5235
  "data-slot": "slider-thumb",
5228
- className: "border-primary ring-ring/50 size-4 rounded-full border bg-white shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden block shrink-0 select-none disabled:pointer-events-none disabled:opacity-50"
5236
+ className: "border-primary ring-ring/50 block size-4 shrink-0 rounded-full border bg-white shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
5229
5237
  },
5230
5238
  index
5231
5239
  ))
@@ -5279,7 +5287,7 @@ function Switch(_a) {
5279
5287
  "data-slot": "switch",
5280
5288
  "data-size": size,
5281
5289
  className: cn(
5282
- "data-checked:bg-primary data-unchecked:bg-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 dark:data-unchecked:bg-input/80 shrink-0 rounded-full border border-transparent shadow-xs focus-visible:ring-[3px] aria-invalid:ring-[3px] data-[size=default]:h-[18.4px] data-[size=default]:w-[32px] data-[size=sm]:h-[14px] data-[size=sm]:w-[24px] peer group/switch relative inline-flex items-center transition-all outline-none after:absolute after:-inset-x-3 after:-inset-y-2 data-disabled:cursor-not-allowed data-disabled:opacity-50",
5290
+ "peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 group/switch inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6",
5283
5291
  className
5284
5292
  )
5285
5293
  }, props), {
@@ -5287,7 +5295,7 @@ function Switch(_a) {
5287
5295
  Switch$1.Thumb,
5288
5296
  {
5289
5297
  "data-slot": "switch-thumb",
5290
- className: "bg-background dark:data-unchecked:bg-foreground dark:data-checked:bg-primary-foreground rounded-full group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 group-data-[size=default]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=sm]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=default]/switch:data-unchecked:translate-x-0 group-data-[size=sm]/switch:data-unchecked:translate-x-0 pointer-events-none block ring-0 transition-transform"
5298
+ className: "bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block rounded-full ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0"
5291
5299
  }
5292
5300
  )
5293
5301
  })
@@ -5463,17 +5471,17 @@ function TabsContent(_a) {
5463
5471
  );
5464
5472
  }
5465
5473
  var toggleVariants = cva(
5466
- "hover:text-foreground aria-pressed:bg-muted focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive gap-1 rounded-md text-sm font-medium transition-[color,box-shadow] [&_svg:not([class*='size-'])]:size-4 group/toggle hover:bg-muted inline-flex items-center justify-center whitespace-nowrap outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
5474
+ "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",
5467
5475
  {
5468
5476
  variants: {
5469
5477
  variant: {
5470
5478
  default: "bg-transparent",
5471
- outline: "border-input hover:bg-muted border bg-transparent shadow-xs"
5479
+ outline: "border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"
5472
5480
  },
5473
5481
  size: {
5474
- default: "h-9 min-w-9 px-2",
5475
- sm: "h-8 min-w-8 px-1.5",
5476
- lg: "h-10 min-w-10 px-2.5"
5482
+ default: "h-9 px-2 min-w-9",
5483
+ sm: "h-8 px-1.5 min-w-8",
5484
+ lg: "h-10 px-2.5 min-w-10"
5477
5485
  }
5478
5486
  },
5479
5487
  defaultVariants: {
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
- import { S as Select } from '../index-Bg0LjNd5.js';
3
+ import { S as Select } from '../index-C3ceanPz.js';
4
4
  import 'radix-ui';
5
5
 
6
6
  interface ThemeSelectProps extends React.ComponentProps<typeof Select> {
@@ -45,18 +45,8 @@ function Select(_a) {
45
45
  return /* @__PURE__ */ jsx(Select$1.Root, __spreadValues({ "data-slot": "select" }, props));
46
46
  }
47
47
  function SelectGroup(_a) {
48
- var _b = _a, {
49
- className
50
- } = _b, props = __objRest(_b, [
51
- "className"
52
- ]);
53
- return /* @__PURE__ */ jsx(
54
- Select$1.Group,
55
- __spreadValues({
56
- "data-slot": "select-group",
57
- className: cn("scroll-my-1 p-1", className)
58
- }, props)
59
- );
48
+ var props = __objRest(_a, []);
49
+ return /* @__PURE__ */ jsx(Select$1.Group, __spreadValues({ "data-slot": "select-group" }, props));
60
50
  }
61
51
  function SelectValue(_a) {
62
52
  var props = __objRest(_a, []);
@@ -78,13 +68,13 @@ function SelectTrigger(_a) {
78
68
  "data-slot": "select-trigger",
79
69
  "data-size": size,
80
70
  className: cn(
81
- "cursor-pointer border-input data-[placeholder]:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 gap-1.5 rounded-md border bg-transparent py-2 pr-2 pl-2.5 text-sm shadow-xs transition-[color,box-shadow] focus-visible:ring-[3px] aria-invalid:ring-[3px] data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:flex *:data-[slot=select-value]:gap-1.5 [&_svg:not([class*='size-'])]:size-4 flex w-fit items-center justify-between whitespace-nowrap outline-none disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center [&_svg]:pointer-events-none [&_svg]:shrink-0",
71
+ "cursor-pointer border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
82
72
  className
83
73
  )
84
74
  }, props), {
85
75
  children: [
86
76
  children,
87
- /* @__PURE__ */ jsx(Select$1.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "text-muted-foreground size-4 pointer-events-none" }) })
77
+ /* @__PURE__ */ jsx(Select$1.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4 opacity-50" }) })
88
78
  ]
89
79
  })
90
80
  );
@@ -105,8 +95,11 @@ function SelectContent(_a) {
105
95
  Select$1.Content,
106
96
  __spreadProps(__spreadValues({
107
97
  "data-slot": "select-content",
108
- "data-align-trigger": position === "item-aligned",
109
- className: cn("bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-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 ring-foreground/10 min-w-36 rounded-md shadow-md ring-1 duration-100 relative z-50 max-h-(--radix-select-content-available-height) origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto data-[align-trigger=true]:animate-none", position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", className),
98
+ className: cn(
99
+ "bg-popover text-popover-foreground 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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
100
+ position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
101
+ className
102
+ ),
110
103
  position,
111
104
  align
112
105
  }, props), {
@@ -115,10 +108,9 @@ function SelectContent(_a) {
115
108
  /* @__PURE__ */ jsx(
116
109
  Select$1.Viewport,
117
110
  {
118
- "data-position": position,
119
111
  className: cn(
120
- "data-[position=popper]:h-[var(--radix-select-trigger-height)] data-[position=popper]:w-full data-[position=popper]:min-w-[var(--radix-select-trigger-width)]",
121
- position === "popper" && ""
112
+ "p-1",
113
+ position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
122
114
  ),
123
115
  children
124
116
  }
@@ -155,12 +147,19 @@ function SelectItem(_a) {
155
147
  __spreadProps(__spreadValues({
156
148
  "data-slot": "select-item",
157
149
  className: cn(
158
- "cursor-pointer focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2 relative flex w-full items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
150
+ "cursor-pointer focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
159
151
  className
160
152
  )
161
153
  }, props), {
162
154
  children: [
163
- /* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ jsx(Select$1.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "pointer-events-none" }) }) }),
155
+ /* @__PURE__ */ jsx(
156
+ "span",
157
+ {
158
+ "data-slot": "select-item-indicator",
159
+ className: "absolute right-2 flex size-3.5 items-center justify-center",
160
+ children: /* @__PURE__ */ jsx(Select$1.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4" }) })
161
+ }
162
+ ),
164
163
  /* @__PURE__ */ jsx(Select$1.ItemText, { children })
165
164
  ]
166
165
  })
@@ -176,7 +175,10 @@ function SelectScrollUpButton(_a) {
176
175
  Select$1.ScrollUpButton,
177
176
  __spreadProps(__spreadValues({
178
177
  "data-slot": "select-scroll-up-button",
179
- className: cn("bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4", className)
178
+ className: cn(
179
+ "flex cursor-default items-center justify-center py-1",
180
+ className
181
+ )
180
182
  }, props), {
181
183
  children: /* @__PURE__ */ jsx(
182
184
  ChevronUpIcon,
@@ -195,7 +197,10 @@ function SelectScrollDownButton(_a) {
195
197
  Select$1.ScrollDownButton,
196
198
  __spreadProps(__spreadValues({
197
199
  "data-slot": "select-scroll-down-button",
198
- className: cn("bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4", className)
200
+ className: cn(
201
+ "flex cursor-default items-center justify-center py-1",
202
+ className
203
+ )
199
204
  }, props), {
200
205
  children: /* @__PURE__ */ jsx(
201
206
  ChevronDownIcon,
@@ -42,17 +42,17 @@ function cn(...inputs) {
42
42
  return twMerge(clsx(inputs));
43
43
  }
44
44
  var toggleVariants = cva(
45
- "hover:text-foreground aria-pressed:bg-muted focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive gap-1 rounded-md text-sm font-medium transition-[color,box-shadow] [&_svg:not([class*='size-'])]:size-4 group/toggle hover:bg-muted inline-flex items-center justify-center whitespace-nowrap outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
45
+ "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",
46
46
  {
47
47
  variants: {
48
48
  variant: {
49
49
  default: "bg-transparent",
50
- outline: "border-input hover:bg-muted border bg-transparent shadow-xs"
50
+ outline: "border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"
51
51
  },
52
52
  size: {
53
- default: "h-9 min-w-9 px-2",
54
- sm: "h-8 min-w-8 px-1.5",
55
- lg: "h-10 min-w-10 px-2.5"
53
+ default: "h-9 px-2 min-w-9",
54
+ sm: "h-8 px-1.5 min-w-8",
55
+ lg: "h-10 px-2.5 min-w-10"
56
56
  }
57
57
  },
58
58
  defaultVariants: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ekkolyth/ui",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "Shared UI Library for my personal projects",
5
5
  "keywords": [
6
6
  "theme",