@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 +9 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3140,7 +3140,7 @@ function DropdownMenuItem({
|
|
|
3140
3140
|
"data-inset": inset,
|
|
3141
3141
|
"data-variant": variant,
|
|
3142
3142
|
className: cn(
|
|
3143
|
-
"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
|
|
3143
|
+
"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",
|
|
3144
3144
|
className
|
|
3145
3145
|
),
|
|
3146
3146
|
...props
|
|
@@ -3158,7 +3158,7 @@ function DropdownMenuCheckboxItem({
|
|
|
3158
3158
|
{
|
|
3159
3159
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
3160
3160
|
className: cn(
|
|
3161
|
-
"
|
|
3161
|
+
"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",
|
|
3162
3162
|
className
|
|
3163
3163
|
),
|
|
3164
3164
|
checked,
|
|
@@ -3191,7 +3191,7 @@ function DropdownMenuRadioItem({
|
|
|
3191
3191
|
{
|
|
3192
3192
|
"data-slot": "dropdown-menu-radio-item",
|
|
3193
3193
|
className: cn(
|
|
3194
|
-
"
|
|
3194
|
+
"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",
|
|
3195
3195
|
className
|
|
3196
3196
|
),
|
|
3197
3197
|
...props,
|
|
@@ -3266,7 +3266,7 @@ function DropdownMenuSubTrigger({
|
|
|
3266
3266
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
3267
3267
|
"data-inset": inset,
|
|
3268
3268
|
className: cn(
|
|
3269
|
-
"
|
|
3269
|
+
"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",
|
|
3270
3270
|
className
|
|
3271
3271
|
),
|
|
3272
3272
|
...props,
|
|
@@ -3342,9 +3342,9 @@ var buttonVariants = cva(
|
|
|
3342
3342
|
variant: {
|
|
3343
3343
|
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
3344
3344
|
destructive: "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
3345
|
-
outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:
|
|
3345
|
+
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",
|
|
3346
3346
|
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
3347
|
-
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
3347
|
+
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50 dark:hover:text-foreground",
|
|
3348
3348
|
link: "text-primary underline-offset-4 hover:underline"
|
|
3349
3349
|
},
|
|
3350
3350
|
size: {
|
|
@@ -3536,7 +3536,7 @@ function ThemeSwitcher({
|
|
|
3536
3536
|
onClick: () => handleThemeClick(key),
|
|
3537
3537
|
className: cn(
|
|
3538
3538
|
"gap-2 cursor-pointer",
|
|
3539
|
-
currentTheme === key && "bg-accent"
|
|
3539
|
+
currentTheme === key && "bg-accent text-accent-foreground [&_svg]:text-accent-foreground"
|
|
3540
3540
|
),
|
|
3541
3541
|
children: [
|
|
3542
3542
|
/* @__PURE__ */ jsx(Icon, { className: "h-4 w-4" }),
|
|
@@ -3694,7 +3694,7 @@ function LanguageSwitcher({
|
|
|
3694
3694
|
onClick: () => onLanguageChange?.(key),
|
|
3695
3695
|
className: cn(
|
|
3696
3696
|
"justify-center text-xs font-semibold cursor-pointer px-3",
|
|
3697
|
-
currentLanguage === key && "bg-accent"
|
|
3697
|
+
currentLanguage === key && "bg-accent text-accent-foreground"
|
|
3698
3698
|
),
|
|
3699
3699
|
children: nativeName
|
|
3700
3700
|
},
|
|
@@ -3952,7 +3952,7 @@ function EnvironmentSwitcher({
|
|
|
3952
3952
|
onClick: () => handleSelect(env),
|
|
3953
3953
|
className: cn(
|
|
3954
3954
|
"gap-2 cursor-pointer",
|
|
3955
|
-
environment === env && "bg-accent"
|
|
3955
|
+
environment === env && "bg-accent text-accent-foreground [&_svg]:text-accent-foreground"
|
|
3956
3956
|
),
|
|
3957
3957
|
children: [
|
|
3958
3958
|
/* @__PURE__ */ jsx(
|