@estiva-app/ui 0.45.0 → 0.46.0
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/CollapsibleSection.d.ts +7 -1
- package/dist/CollapsibleSection.d.ts.map +1 -1
- package/dist/InlineChip.d.ts +1 -1
- package/dist/NavItem.d.ts +11 -1
- package/dist/NavItem.d.ts.map +1 -1
- package/dist/SectionHeader.d.ts +9 -1
- package/dist/SectionHeader.d.ts.map +1 -1
- package/dist/eslint/index.js +2 -1
- package/dist/eslint/index.js.map +2 -2
- package/dist/eslint/no-restyled-part.d.ts.map +1 -1
- package/dist/index.js +76 -37
- package/dist/index.js.map +2 -2
- package/dist/looks.d.ts +3 -0
- package/dist/looks.d.ts.map +1 -1
- package/package.json +1 -1
- package/registry.json +51 -9
- package/src/Chip.tsx +1 -1
- package/src/CollapsibleSection.mdx +5 -0
- package/src/CollapsibleSection.stories.tsx +5 -0
- package/src/CollapsibleSection.tsx +10 -3
- package/src/CommandPalette.tsx +1 -1
- package/src/InlineChip.test.tsx +1 -1
- package/src/InlineChip.tsx +1 -1
- package/src/NavItem.mdx +9 -0
- package/src/NavItem.stories.tsx +23 -0
- package/src/NavItem.tsx +56 -6
- package/src/Reaction.tsx +1 -1
- package/src/SectionHeader.mdx +9 -0
- package/src/SectionHeader.stories.tsx +15 -0
- package/src/SectionHeader.tsx +28 -7
- package/src/eslint/no-restyled-part.ts +2 -1
- package/src/looks.ts +4 -0
- package/tailwind-preset.js +1 -0
- package/tokens.css +19 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"no-restyled-part.d.ts","sourceRoot":"","sources":["../../src/eslint/no-restyled-part.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAIH,6FAA6F;AAC7F,eAAO,MAAM,SA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G;AAED,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,SAAS,EAAE,aAAa,EAAE,IAAI,EAAE,KAAK,IAAI,EAAE,KAAK,MAAM,EAAE,CAAA;AAenG,iBAAS,YAAY,CAAC,GAAG,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,GAAG,WAAW,CAAC,GAAG,WAAW,GAAG,SAAS,CAY3H;AAoFD;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,KAAK,CAAC,KAAK,GAAG,IAAI,EAAE,KAAK,UAAQ,EAAE,IAAI,YAAkB,GAAG,MAAM,EAAE,CAqDtJ;AAOD,eAAO,MAAM,cAAc,EAAE,IAAI,CAAC,UAyGjC,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -319,6 +319,8 @@ var FIELD_SHELL_CLASSES = "bg-bg-field border border-border-field shadow-field h
|
|
|
319
319
|
var FLOATING_SURFACE_CLASSES = "rounded-lg border border-border-default bg-bg-elevated shadow-lg";
|
|
320
320
|
var CHIP_TEXT_CLASSES = "text-chip signal:font-mono signal:text-small signal:font-semibold signal:tabular-nums";
|
|
321
321
|
var BARE_INPUT_CLASSES = "bg-transparent text-text-primary placeholder:text-text-muted outline-none";
|
|
322
|
+
var SIDEBAR_ROW_CLASSES = "rounded-md transition-colors";
|
|
323
|
+
var SIDEBAR_ROW_TEXT_CLASSES = "text-text-secondary hover:text-text-primary";
|
|
322
324
|
|
|
323
325
|
// src/Tooltip.tsx
|
|
324
326
|
import { jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
@@ -1004,7 +1006,7 @@ function Checkbox({ checked, onChange, disabled: ownDisabled = false, label, row
|
|
|
1004
1006
|
import { Fragment as Fragment3, jsx as jsx17, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1005
1007
|
var typeStyles = {
|
|
1006
1008
|
neutral: "bg-bg-inset text-text-primary",
|
|
1007
|
-
brand: "bg-accent-muted text-accent-
|
|
1009
|
+
brand: "bg-accent-muted text-accent-text signal:border signal:border-accent-outline",
|
|
1008
1010
|
info: "bg-info-muted text-info-default signal:border signal:border-info-outline",
|
|
1009
1011
|
warning: "bg-warning-muted text-warning-default signal:border signal:border-warning-outline signal:shadow-glow-warning",
|
|
1010
1012
|
success: "bg-success-muted text-success-default signal:border signal:border-success-outline",
|
|
@@ -1922,7 +1924,7 @@ function CommandPaletteAnswer({ children, note }) {
|
|
|
1922
1924
|
const paragraphs = children.split(/\n\s*\n/).filter((p) => p.trim() !== "");
|
|
1923
1925
|
return /* @__PURE__ */ jsxs18("div", { className: "flex flex-col gap-2", children: [
|
|
1924
1926
|
paragraphs.map((paragraph, i) => /* @__PURE__ */ jsx26("p", { className: "whitespace-pre-wrap text-body-2 text-text-primary", children: paragraph.split(/\s*(\[\d+\])/).map(
|
|
1925
|
-
(part, j) => /^\[\d+\]$/.test(part) ? /* @__PURE__ */ jsx26("sup", { className: "ml-0.5 font-mono text-small text-accent-
|
|
1927
|
+
(part, j) => /^\[\d+\]$/.test(part) ? /* @__PURE__ */ jsx26("sup", { className: "ml-0.5 font-mono text-small text-accent-text", children: part.slice(1, -1) }, j) : part
|
|
1926
1928
|
) }, i)),
|
|
1927
1929
|
note && /* @__PURE__ */ jsx26(FieldLine, { children: note })
|
|
1928
1930
|
] });
|
|
@@ -1947,7 +1949,7 @@ var INLINE_CHIP_TONE_CLASSES = {
|
|
|
1947
1949
|
/** A thing or a place — anything that is not a person. */
|
|
1948
1950
|
neutral: "bg-bg-active text-text-primary",
|
|
1949
1951
|
/** A person. */
|
|
1950
|
-
person: "bg-accent-muted text-accent-
|
|
1952
|
+
person: "bg-accent-muted text-accent-text",
|
|
1951
1953
|
/** A person, called urgently. */
|
|
1952
1954
|
urgent: "bg-warning-muted text-warning-default",
|
|
1953
1955
|
/**
|
|
@@ -2792,32 +2794,61 @@ function Breadcrumb({ items, className }) {
|
|
|
2792
2794
|
}
|
|
2793
2795
|
|
|
2794
2796
|
// src/NavItem.tsx
|
|
2797
|
+
import { IconDotsVertical } from "@tabler/icons-react";
|
|
2795
2798
|
import { jsx as jsx43, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
2796
|
-
function NavItem({ label, href, count, countLabel, active = false, icon, className, ...props }) {
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2799
|
+
function NavItem({ label, href, count, countLabel, active = false, icon, menu, menuLabel, className, ...props }) {
|
|
2800
|
+
const row = /* @__PURE__ */ jsxs29(
|
|
2801
|
+
"a",
|
|
2802
|
+
{
|
|
2803
|
+
href,
|
|
2804
|
+
"aria-current": active ? "page" : void 0,
|
|
2805
|
+
className: cn(
|
|
2806
|
+
// shrink-0: the row keeps its 32px inside an overflowing flex column
|
|
2807
|
+
// — without it the list compresses instead of scrolling (the missing-
|
|
2808
|
+
// shrink-0 family; Katerina, 2026-09-02).
|
|
2809
|
+
"flex h-8 min-w-0 shrink-0 items-center gap-2 px-2 text-body-2",
|
|
2810
|
+
SIDEBAR_ROW_CLASSES,
|
|
2811
|
+
active ? "bg-bg-active text-text-primary" : cn(SIDEBAR_ROW_TEXT_CLASSES, "hover:bg-bg-hover"),
|
|
2812
|
+
// With a menu the ⋮ sits beside the link, so the row keeps its hover
|
|
2813
|
+
// look while the ⋮ is pointed at and while its menu is open.
|
|
2814
|
+
menu != null && !active && "group-hover/nav:bg-bg-hover group-hover/nav:text-text-primary group-has-[[aria-expanded=true]]/nav:bg-bg-hover group-has-[[aria-expanded=true]]/nav:text-text-primary",
|
|
2815
|
+
className
|
|
2816
|
+
),
|
|
2817
|
+
...props,
|
|
2818
|
+
children: [
|
|
2819
|
+
icon && /* @__PURE__ */ jsx43("span", { className: "flex shrink-0 items-center", children: icon }),
|
|
2820
|
+
/* @__PURE__ */ jsx43("span", { className: "flex-1 truncate", children: label }),
|
|
2821
|
+
count ? /* @__PURE__ */ jsx43(WithTooltip, { label: countLabel ?? `${count} open`, children: /* @__PURE__ */ jsx43(
|
|
2822
|
+
"span",
|
|
2823
|
+
{
|
|
2824
|
+
className: cn(
|
|
2825
|
+
"min-w-4 shrink-0 text-center font-mono text-caption tabular-nums text-text-muted",
|
|
2826
|
+
// With a menu, the ⋮ takes this place while it shows.
|
|
2827
|
+
menu != null && "transition-opacity group-hover/nav:opacity-0 group-focus-within/nav:opacity-0 group-has-[[aria-expanded=true]]/nav:opacity-0"
|
|
2828
|
+
),
|
|
2829
|
+
children: count
|
|
2830
|
+
}
|
|
2831
|
+
) }) : menu != null ? (
|
|
2832
|
+
// No count, but a menu: the count's place is kept free, so a long
|
|
2833
|
+
// label truncates before the ⋮ instead of running under it.
|
|
2834
|
+
/* @__PURE__ */ jsx43("span", { "aria-hidden": "true", className: "min-w-4 shrink-0" })
|
|
2835
|
+
) : null
|
|
2836
|
+
]
|
|
2837
|
+
}
|
|
2838
|
+
);
|
|
2839
|
+
if (menu == null) return row;
|
|
2840
|
+
const name = menuLabel ?? `More options for ${label}`;
|
|
2841
|
+
return /* @__PURE__ */ jsxs29("div", { className: "group/nav relative shrink-0", children: [
|
|
2842
|
+
row,
|
|
2843
|
+
/* @__PURE__ */ jsx43("div", { className: "absolute inset-y-0 right-1 flex items-center opacity-0 transition-opacity focus-within:opacity-100 group-hover/nav:opacity-100 has-[[aria-expanded=true]]:opacity-100", children: /* @__PURE__ */ jsx43(
|
|
2844
|
+
Menu,
|
|
2801
2845
|
{
|
|
2802
|
-
|
|
2803
|
-
"aria-
|
|
2804
|
-
|
|
2805
|
-
// shrink-0: the row keeps its 32px inside an overflowing flex column
|
|
2806
|
-
// — without it the list compresses instead of scrolling (the missing-
|
|
2807
|
-
// shrink-0 family; Katerina, 2026-09-02).
|
|
2808
|
-
"flex h-8 min-w-0 shrink-0 items-center gap-2 rounded-md px-2 text-body-2 transition-colors",
|
|
2809
|
-
active ? "bg-bg-active text-text-primary" : "text-text-secondary hover:bg-bg-hover hover:text-text-primary",
|
|
2810
|
-
className
|
|
2811
|
-
),
|
|
2812
|
-
...props,
|
|
2813
|
-
children: [
|
|
2814
|
-
icon && /* @__PURE__ */ jsx43("span", { className: "flex shrink-0 items-center", children: icon }),
|
|
2815
|
-
/* @__PURE__ */ jsx43("span", { className: "flex-1 truncate", children: label }),
|
|
2816
|
-
count ? /* @__PURE__ */ jsx43(WithTooltip, { label: countLabel ?? `${count} open`, children: /* @__PURE__ */ jsx43("span", { className: "min-w-4 shrink-0 text-center font-mono text-caption tabular-nums text-text-muted", children: count }) }) : null
|
|
2817
|
-
]
|
|
2846
|
+
align: "right",
|
|
2847
|
+
trigger: /* @__PURE__ */ jsx43(IconButton, { tooltip: "More options", "aria-label": name, children: /* @__PURE__ */ jsx43(IconDotsVertical, { size: 16, stroke: 1.5 }) }),
|
|
2848
|
+
children: menu
|
|
2818
2849
|
}
|
|
2819
|
-
)
|
|
2820
|
-
);
|
|
2850
|
+
) })
|
|
2851
|
+
] });
|
|
2821
2852
|
}
|
|
2822
2853
|
|
|
2823
2854
|
// src/Popover.tsx
|
|
@@ -3156,7 +3187,7 @@ function Reaction({ emoji, count, pressed = false, className, ...props }) {
|
|
|
3156
3187
|
(Katerina, 2026-09-08). The number reads in the text colour
|
|
3157
3188
|
there; the accent keeps the edge and the fill. Signal keeps
|
|
3158
3189
|
Peek's blue-on-wash, which reads. */
|
|
3159
|
-
"border-accent-primary bg-accent-muted text-accent-
|
|
3190
|
+
"border-accent-primary bg-accent-muted text-accent-text hover:border-accent-hover ship:text-text-primary"
|
|
3160
3191
|
) : "border-border-default bg-bg-inset text-text-primary hover:border-border-strong hover:bg-bg-hover",
|
|
3161
3192
|
className
|
|
3162
3193
|
),
|
|
@@ -3205,24 +3236,28 @@ function SearchInput({ shortcut, className, placeholder = "Search\u2026", ...pro
|
|
|
3205
3236
|
import { IconChevronRight as IconChevronRight2 } from "@tabler/icons-react";
|
|
3206
3237
|
import { useRender } from "@base-ui/react/use-render";
|
|
3207
3238
|
import { Fragment as Fragment11, jsx as jsx54, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
3208
|
-
function SectionHeader({ title, chevron = false, isExpanded = true, onToggle, trailing, actions, showActions = "hover", hover = "fill", render, className }) {
|
|
3239
|
+
function SectionHeader({ title, chevron = false, isExpanded = true, onToggle, trailing, actions, showActions = "hover", hover = "fill", look = "heading", render, className }) {
|
|
3240
|
+
const row = look === "row";
|
|
3209
3241
|
const titleElement = useRender({
|
|
3210
3242
|
render: render ?? (chevron ? /* @__PURE__ */ jsx54("button", { type: "button", onClick: onToggle, "aria-expanded": isExpanded }) : /* @__PURE__ */ jsx54("span", {})),
|
|
3211
3243
|
props: {
|
|
3212
3244
|
// `text-left`: a button centres its text. `h-full` and `flex-1`: the
|
|
3213
3245
|
// whole row up to the actions is the hit target, as it was when the
|
|
3214
3246
|
// row itself carried the click.
|
|
3215
|
-
className: "flex h-full min-w-0 flex-1 items-center gap-
|
|
3247
|
+
className: cn("flex h-full min-w-0 flex-1 items-center text-left", row ? "gap-2" : "gap-1"),
|
|
3216
3248
|
children: /* @__PURE__ */ jsxs37(Fragment11, { children: [
|
|
3217
3249
|
chevron && /* @__PURE__ */ jsx54(
|
|
3218
3250
|
IconChevronRight2,
|
|
3219
3251
|
{
|
|
3220
|
-
size: 12,
|
|
3252
|
+
size: row ? 16 : 12,
|
|
3221
3253
|
stroke: 1.5,
|
|
3222
|
-
className: cn("shrink-0
|
|
3254
|
+
className: cn("shrink-0 transition-transform duration-150", !row && "text-text-secondary", isExpanded && "rotate-90")
|
|
3223
3255
|
}
|
|
3224
3256
|
),
|
|
3225
|
-
/* @__PURE__ */ jsx54(
|
|
3257
|
+
look === "quiet" ? /* @__PURE__ */ jsx54("span", { className: "min-w-0 truncate text-caption text-text-muted", children: title }) : row ? (
|
|
3258
|
+
// A row's words: NavItem's size and colour, brightening under the pointer with the row.
|
|
3259
|
+
/* @__PURE__ */ jsx54("span", { className: "min-w-0 flex-1 truncate text-body-2", children: title })
|
|
3260
|
+
) : /* @__PURE__ */ jsx54(SectionLabel, { children: title })
|
|
3226
3261
|
] })
|
|
3227
3262
|
}
|
|
3228
3263
|
});
|
|
@@ -3230,11 +3265,15 @@ function SectionHeader({ title, chevron = false, isExpanded = true, onToggle, tr
|
|
|
3230
3265
|
"div",
|
|
3231
3266
|
{
|
|
3232
3267
|
className: cn(
|
|
3233
|
-
"group flex h-[32px] shrink-0 items-center gap-1
|
|
3268
|
+
"group flex h-[32px] shrink-0 items-center gap-1 px-2",
|
|
3269
|
+
!row && "transition-colors",
|
|
3270
|
+
// A row is NavItem's shape and colour: 6px corners, secondary words that brighten on hover.
|
|
3271
|
+
row ? cn(SIDEBAR_ROW_CLASSES, SIDEBAR_ROW_TEXT_CLASSES) : "rounded-lg",
|
|
3234
3272
|
// The fill says "this does something": a row with a toggle or actions
|
|
3235
3273
|
// lights up, a fixed heading over rows does not (2026-09-09, the
|
|
3236
3274
|
// Sidebar's fixed group).
|
|
3237
|
-
|
|
3275
|
+
// A quiet label never lights up: it is a label; its button does.
|
|
3276
|
+
hover === "fill" && look !== "quiet" && (chevron || actions && actions.length > 0) && "hover:bg-bg-hover",
|
|
3238
3277
|
className
|
|
3239
3278
|
),
|
|
3240
3279
|
children: [
|
|
@@ -3341,7 +3380,7 @@ function writeStored(key, open) {
|
|
|
3341
3380
|
} catch {
|
|
3342
3381
|
}
|
|
3343
3382
|
}
|
|
3344
|
-
function CollapsibleSection({ title, defaultOpen = true, open: openProp, onOpenChange, storageKey, trailing, actions, showActions, children, className, contentClassName }) {
|
|
3383
|
+
function CollapsibleSection({ title, defaultOpen = true, open: openProp, onOpenChange, storageKey, trailing, actions, showActions, look = "heading", children, className, contentClassName }) {
|
|
3345
3384
|
const [openState, setOpenState] = useState8(() => readStored(storageKey) ?? defaultOpen);
|
|
3346
3385
|
const open = openProp ?? openState;
|
|
3347
3386
|
const setOpen = (next) => {
|
|
@@ -3350,13 +3389,13 @@ function CollapsibleSection({ title, defaultOpen = true, open: openProp, onOpenC
|
|
|
3350
3389
|
onOpenChange?.(next);
|
|
3351
3390
|
};
|
|
3352
3391
|
return /* @__PURE__ */ jsxs40(Collapsible.Root, { open, onOpenChange: setOpen, className: cn("flex flex-col", className), children: [
|
|
3353
|
-
/* @__PURE__ */ jsx57(SectionHeader, { title, chevron: true, isExpanded: open, trailing, actions, showActions, className: "shrink-0", render: /* @__PURE__ */ jsx57(Collapsible.Trigger, {}) }),
|
|
3392
|
+
/* @__PURE__ */ jsx57(SectionHeader, { title, chevron: true, isExpanded: open, trailing, actions, showActions, look, className: "shrink-0", render: /* @__PURE__ */ jsx57(Collapsible.Trigger, {}) }),
|
|
3354
3393
|
/* @__PURE__ */ jsx57(
|
|
3355
3394
|
Collapsible.Panel,
|
|
3356
3395
|
{
|
|
3357
3396
|
hiddenUntilFound: true,
|
|
3358
3397
|
className: "h-[var(--collapsible-panel-height)] overflow-hidden transition-[height] duration-150 ease-out motion-reduce:transition-none data-[starting-style]:h-0 data-[ending-style]:h-0",
|
|
3359
|
-
children: /* @__PURE__ */ jsx57("div", { className: cn("flex flex-col", contentClassName), children })
|
|
3398
|
+
children: /* @__PURE__ */ jsx57("div", { className: cn("flex flex-col", look === "row" && "pl-6", contentClassName), children })
|
|
3360
3399
|
}
|
|
3361
3400
|
)
|
|
3362
3401
|
] });
|