@rafal.lemieszewski/tide-ui 0.8.0 → 0.8.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.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +12 -12
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -62964,7 +62964,7 @@ const IKe = y.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ k(
|
|
|
62964
62964
|
));
|
|
62965
62965
|
IKe.displayName = "SidebarMenuItem";
|
|
62966
62966
|
const LKe = _e(
|
|
62967
|
-
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md px-2 py-1.5 text-left text-body-medium-md outline-none ring-[var(--color-border-focused)] transition-all duration-150 ease-in-out focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-[var(--color-background-brand-selected)] data-[active=true]:
|
|
62967
|
+
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md px-2 py-1.5 text-left text-body-medium-md outline-none ring-[var(--color-border-focused)] transition-all duration-150 ease-in-out focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-[var(--color-background-brand-selected)] data-[active=true]:text-[var(--color-text-selected)] data-[state=open]:bg-[var(--color-surface-secondary)] group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 group-data-[collapsible=icon]:justify-center [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 data-[active=true]:[&>svg]:text-[var(--color-text-selected)]",
|
|
62968
62968
|
{
|
|
62969
62969
|
variants: {
|
|
62970
62970
|
variant: {
|
|
@@ -63025,11 +63025,11 @@ const LKe = _e(
|
|
|
63025
63025
|
r === "sm" && "h-7 text-body-sm py-1",
|
|
63026
63026
|
r === "default" && "h-8",
|
|
63027
63027
|
r === "lg" && "h-12 py-3 text-body-lg group-data-[collapsible=icon]:!size-8",
|
|
63028
|
-
// Enhanced hover behavior -
|
|
63029
|
-
|
|
63028
|
+
// Enhanced hover behavior for non-active items
|
|
63029
|
+
b && !w && !t && "bg-[var(--color-background-neutral-subtle-hovered)]",
|
|
63030
|
+
// Enhanced hover behavior for active items
|
|
63030
63031
|
b && !w && t && [
|
|
63031
63032
|
"bg-[var(--color-background-brand-selected-hovered)]",
|
|
63032
|
-
"text-[var(--color-text-brand-hovered)]",
|
|
63033
63033
|
"[&>svg]:text-[var(--color-icon-brand-hover)]"
|
|
63034
63034
|
],
|
|
63035
63035
|
// Focus styles - clean focus for non-active items
|
|
@@ -63038,6 +63038,7 @@ const LKe = _e(
|
|
|
63038
63038
|
w && t && i && [
|
|
63039
63039
|
"bg-[var(--color-background-brand-selected)]",
|
|
63040
63040
|
"text-[var(--color-text-brand)]",
|
|
63041
|
+
"[&]:text-body-medium-md [&]:font-normal",
|
|
63041
63042
|
"ring-2 ring-[var(--color-border-brand)] ring-offset-1",
|
|
63042
63043
|
"[&>svg]:text-[var(--color-text-brand)]"
|
|
63043
63044
|
],
|
|
@@ -63045,7 +63046,7 @@ const LKe = _e(
|
|
|
63045
63046
|
t && !w && [
|
|
63046
63047
|
"bg-[var(--color-background-brand-selected)]",
|
|
63047
63048
|
"text-[var(--color-text-brand)]",
|
|
63048
|
-
"font-
|
|
63049
|
+
"[&]:text-body-medium-md [&]:font-normal",
|
|
63049
63050
|
"[&>svg]:text-[var(--color-text-brand)]"
|
|
63050
63051
|
],
|
|
63051
63052
|
// Open state (for collapsible items)
|
|
@@ -63224,25 +63225,24 @@ const OKe = y.forwardRef(({
|
|
|
63224
63225
|
// Size variants
|
|
63225
63226
|
t === "sm" && "text-body-sm px-1.5 py-0.5",
|
|
63226
63227
|
t === "md" && "text-body-md",
|
|
63227
|
-
// Enhanced hover behavior -
|
|
63228
|
-
|
|
63229
|
-
|
|
63230
|
-
|
|
63231
|
-
"text-[var(--color-text-brand-hovered)]"
|
|
63232
|
-
],
|
|
63228
|
+
// Enhanced hover behavior for non-active items
|
|
63229
|
+
r && f && !m && !n && "bg-[var(--color-background-neutral-subtle-hovered)]",
|
|
63230
|
+
// Enhanced hover behavior for active items
|
|
63231
|
+
r && f && !m && n && "bg-[var(--color-background-brand-selected-hovered)]",
|
|
63233
63232
|
// Focus styles - clean focus for non-active items
|
|
63234
63233
|
r && m && !n && "bg-transparent ring-2 ring-[var(--color-border-brand)] ring-offset-1",
|
|
63235
63234
|
// Active item focus - preserve brand background when focused
|
|
63236
63235
|
r && m && n && o && [
|
|
63237
63236
|
"bg-[var(--color-background-brand-selected)]",
|
|
63238
63237
|
"text-[var(--color-text-brand)]",
|
|
63238
|
+
"[&]:text-body-md [&]:font-normal",
|
|
63239
63239
|
"ring-2 ring-[var(--color-border-brand)] ring-offset-1"
|
|
63240
63240
|
],
|
|
63241
63241
|
// Active item styles (non-focus state)
|
|
63242
63242
|
n && !m && [
|
|
63243
63243
|
"bg-[var(--color-background-brand-selected)]",
|
|
63244
63244
|
"text-[var(--color-text-brand)]",
|
|
63245
|
-
"font-
|
|
63245
|
+
"[&]:text-body-md [&]:font-normal"
|
|
63246
63246
|
],
|
|
63247
63247
|
// Fallback for non-enhanced behavior
|
|
63248
63248
|
!r && [
|