@rafal.lemieszewski/tide-ui 0.8.1 → 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 +8 -16
- 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: {
|
|
@@ -63026,14 +63026,10 @@ const LKe = _e(
|
|
|
63026
63026
|
r === "default" && "h-8",
|
|
63027
63027
|
r === "lg" && "h-12 py-3 text-body-lg group-data-[collapsible=icon]:!size-8",
|
|
63028
63028
|
// Enhanced hover behavior for non-active items
|
|
63029
|
-
b && !w && !t && [
|
|
63030
|
-
"bg-[var(--color-background-neutral-subtle-hovered)]",
|
|
63031
|
-
"text-[var(--color-text-primary)]"
|
|
63032
|
-
],
|
|
63029
|
+
b && !w && !t && "bg-[var(--color-background-neutral-subtle-hovered)]",
|
|
63033
63030
|
// Enhanced hover behavior for active items
|
|
63034
63031
|
b && !w && t && [
|
|
63035
63032
|
"bg-[var(--color-background-brand-selected-hovered)]",
|
|
63036
|
-
"text-[var(--color-text-brand-hovered)]",
|
|
63037
63033
|
"[&>svg]:text-[var(--color-icon-brand-hover)]"
|
|
63038
63034
|
],
|
|
63039
63035
|
// Focus styles - clean focus for non-active items
|
|
@@ -63042,6 +63038,7 @@ const LKe = _e(
|
|
|
63042
63038
|
w && t && i && [
|
|
63043
63039
|
"bg-[var(--color-background-brand-selected)]",
|
|
63044
63040
|
"text-[var(--color-text-brand)]",
|
|
63041
|
+
"[&]:text-body-medium-md [&]:font-normal",
|
|
63045
63042
|
"ring-2 ring-[var(--color-border-brand)] ring-offset-1",
|
|
63046
63043
|
"[&>svg]:text-[var(--color-text-brand)]"
|
|
63047
63044
|
],
|
|
@@ -63049,7 +63046,7 @@ const LKe = _e(
|
|
|
63049
63046
|
t && !w && [
|
|
63050
63047
|
"bg-[var(--color-background-brand-selected)]",
|
|
63051
63048
|
"text-[var(--color-text-brand)]",
|
|
63052
|
-
"font-
|
|
63049
|
+
"[&]:text-body-medium-md [&]:font-normal",
|
|
63053
63050
|
"[&>svg]:text-[var(--color-text-brand)]"
|
|
63054
63051
|
],
|
|
63055
63052
|
// Open state (for collapsible items)
|
|
@@ -63229,28 +63226,23 @@ const OKe = y.forwardRef(({
|
|
|
63229
63226
|
t === "sm" && "text-body-sm px-1.5 py-0.5",
|
|
63230
63227
|
t === "md" && "text-body-md",
|
|
63231
63228
|
// Enhanced hover behavior for non-active items
|
|
63232
|
-
r && f && !m && !n && [
|
|
63233
|
-
"bg-[var(--color-background-neutral-subtle-hovered)]",
|
|
63234
|
-
"text-[var(--color-text-primary)]"
|
|
63235
|
-
],
|
|
63229
|
+
r && f && !m && !n && "bg-[var(--color-background-neutral-subtle-hovered)]",
|
|
63236
63230
|
// Enhanced hover behavior for active items
|
|
63237
|
-
r && f && !m && n && [
|
|
63238
|
-
"bg-[var(--color-background-brand-selected-hovered)]",
|
|
63239
|
-
"text-[var(--color-text-brand-hovered)]"
|
|
63240
|
-
],
|
|
63231
|
+
r && f && !m && n && "bg-[var(--color-background-brand-selected-hovered)]",
|
|
63241
63232
|
// Focus styles - clean focus for non-active items
|
|
63242
63233
|
r && m && !n && "bg-transparent ring-2 ring-[var(--color-border-brand)] ring-offset-1",
|
|
63243
63234
|
// Active item focus - preserve brand background when focused
|
|
63244
63235
|
r && m && n && o && [
|
|
63245
63236
|
"bg-[var(--color-background-brand-selected)]",
|
|
63246
63237
|
"text-[var(--color-text-brand)]",
|
|
63238
|
+
"[&]:text-body-md [&]:font-normal",
|
|
63247
63239
|
"ring-2 ring-[var(--color-border-brand)] ring-offset-1"
|
|
63248
63240
|
],
|
|
63249
63241
|
// Active item styles (non-focus state)
|
|
63250
63242
|
n && !m && [
|
|
63251
63243
|
"bg-[var(--color-background-brand-selected)]",
|
|
63252
63244
|
"text-[var(--color-text-brand)]",
|
|
63253
|
-
"font-
|
|
63245
|
+
"[&]:text-body-md [&]:font-normal"
|
|
63254
63246
|
],
|
|
63255
63247
|
// Fallback for non-enhanced behavior
|
|
63256
63248
|
!r && [
|