@algenium/blocks 1.5.0-rc.1 → 1.5.0-rc.2

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.cjs CHANGED
@@ -3168,7 +3168,7 @@ function DropdownMenuItem({
3168
3168
  "data-inset": inset,
3169
3169
  "data-variant": variant,
3170
3170
  className: cn(
3171
- "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
3171
+ "relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[highlighted]:[&_svg:not([class*='text-'])]:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:[&_svg:not([class*='text-'])]:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:data-[highlighted]:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 dark:data-[variant=destructive]:data-[highlighted]:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:data-[highlighted]:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
3172
3172
  className
3173
3173
  ),
3174
3174
  ...props
@@ -3186,7 +3186,7 @@ function DropdownMenuCheckboxItem({
3186
3186
  {
3187
3187
  "data-slot": "dropdown-menu-checkbox-item",
3188
3188
  className: cn(
3189
- "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 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",
3189
+ "relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[highlighted]:[&_svg:not([class*='text-'])]:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:[&_svg:not([class*='text-'])]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
3190
3190
  className
3191
3191
  ),
3192
3192
  checked,
@@ -3219,7 +3219,7 @@ function DropdownMenuRadioItem({
3219
3219
  {
3220
3220
  "data-slot": "dropdown-menu-radio-item",
3221
3221
  className: cn(
3222
- "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 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",
3222
+ "relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[highlighted]:[&_svg:not([class*='text-'])]:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:[&_svg:not([class*='text-'])]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
3223
3223
  className
3224
3224
  ),
3225
3225
  ...props,
@@ -3294,7 +3294,7 @@ function DropdownMenuSubTrigger({
3294
3294
  "data-slot": "dropdown-menu-sub-trigger",
3295
3295
  "data-inset": inset,
3296
3296
  className: cn(
3297
- "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
3297
+ "flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden data-[inset]:pl-8 data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[highlighted]:[&_svg:not([class*='text-'])]:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:[&_svg:not([class*='text-'])]:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:[&_svg:not([class*='text-'])]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
3298
3298
  className
3299
3299
  ),
3300
3300
  ...props,
@@ -3370,9 +3370,9 @@ var buttonVariants = cva(
3370
3370
  variant: {
3371
3371
  default: "bg-primary text-primary-foreground hover:bg-primary/90",
3372
3372
  destructive: "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
3373
- 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",
3373
+ outline: "border bg-background text-foreground shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:text-foreground dark:hover:bg-muted dark:hover:text-foreground",
3374
3374
  secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
3375
- ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
3375
+ ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50 dark:hover:text-foreground",
3376
3376
  link: "text-primary underline-offset-4 hover:underline"
3377
3377
  },
3378
3378
  size: {
@@ -3564,7 +3564,7 @@ function ThemeSwitcher({
3564
3564
  onClick: () => handleThemeClick(key),
3565
3565
  className: cn(
3566
3566
  "gap-2 cursor-pointer",
3567
- currentTheme === key && "bg-accent"
3567
+ currentTheme === key && "bg-accent text-accent-foreground [&_svg]:text-accent-foreground"
3568
3568
  ),
3569
3569
  children: [
3570
3570
  /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: "h-4 w-4" }),
@@ -3722,7 +3722,7 @@ function LanguageSwitcher({
3722
3722
  onClick: () => onLanguageChange?.(key),
3723
3723
  className: cn(
3724
3724
  "justify-center text-xs font-semibold cursor-pointer px-3",
3725
- currentLanguage === key && "bg-accent"
3725
+ currentLanguage === key && "bg-accent text-accent-foreground"
3726
3726
  ),
3727
3727
  children: nativeName
3728
3728
  },
@@ -3980,7 +3980,7 @@ function EnvironmentSwitcher({
3980
3980
  onClick: () => handleSelect(env),
3981
3981
  className: cn(
3982
3982
  "gap-2 cursor-pointer",
3983
- environment === env && "bg-accent"
3983
+ environment === env && "bg-accent text-accent-foreground [&_svg]:text-accent-foreground"
3984
3984
  ),
3985
3985
  children: [
3986
3986
  /* @__PURE__ */ jsxRuntime.jsx(