@lessly/ui 4.0.0 → 4.1.1
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/README.md +8 -0
- package/dist/{chunk-DYHP7W3X.js → chunk-LTHOLX7I.js} +93 -45
- package/dist/index.d.ts +25 -6
- package/dist/index.js +952 -985
- package/dist/router.js +6 -7
- package/dist/styles-federated.css +18 -1
- package/dist/styles.css +18 -7
- package/package.json +2 -3
package/dist/router.js
CHANGED
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
NavRow,
|
|
4
4
|
RAIL_COLUMN_BOX,
|
|
5
5
|
RailToggle,
|
|
6
|
+
ScrollArea,
|
|
6
7
|
Sheet,
|
|
7
8
|
SheetContent,
|
|
8
9
|
SheetDescription,
|
|
@@ -15,7 +16,7 @@ import {
|
|
|
15
16
|
cn,
|
|
16
17
|
useIsMobile,
|
|
17
18
|
useSidebar
|
|
18
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-LTHOLX7I.js";
|
|
19
20
|
|
|
20
21
|
// src/components/extension-link.tsx
|
|
21
22
|
import { Link } from "react-router";
|
|
@@ -150,13 +151,11 @@ function AppSidebar({
|
|
|
150
151
|
/* @__PURE__ */ jsx3(Divider, { testId: "sidebar-divider-header" }),
|
|
151
152
|
railTopNode && /* @__PURE__ */ jsx3("div", { "data-testid": "sidebar-rail-top", className: "shrink-0 px-3 pt-3", children: railTopNode }),
|
|
152
153
|
/* @__PURE__ */ jsx3(
|
|
153
|
-
|
|
154
|
+
ScrollArea,
|
|
154
155
|
{
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
railTopNode ? "pt-2" : "pt-3"
|
|
159
|
-
),
|
|
156
|
+
className: "min-h-0 flex-1",
|
|
157
|
+
viewportClassName: cn("px-3 pb-2", railTopNode ? "pt-2" : "pt-3"),
|
|
158
|
+
viewportProps: { "data-testid": "sidebar-scroll" },
|
|
160
159
|
children: /* @__PURE__ */ jsx3(SidebarNav, { items, collapsed, basePath, LinkComponent, isItemActive })
|
|
161
160
|
}
|
|
162
161
|
),
|
|
@@ -514,7 +514,6 @@
|
|
|
514
514
|
|
|
515
515
|
|
|
516
516
|
|
|
517
|
-
|
|
518
517
|
/* === Theme Variables === */
|
|
519
518
|
/* The token palettes (colors, typography, motion, shadows, grid) live in
|
|
520
519
|
@lessly/tokens/theme.css — dark `:root` + `.light`, unprefixed names
|
|
@@ -677,6 +676,24 @@
|
|
|
677
676
|
margin-inline: auto;
|
|
678
677
|
}
|
|
679
678
|
|
|
679
|
+
/* Backs the overlay scrollbar <ScrollArea> draws: the bar rides over the content and is only there
|
|
680
|
+
while it is wanted — while you scroll, and while the pointer is over the region — then fades. A
|
|
681
|
+
real class rather than a Tailwind arbitrary utility for the reason the motion classes above are,
|
|
682
|
+
and token-driven so prefers-reduced-motion takes the fade to 0ms and the bar simply appears. */
|
|
683
|
+
.motion-scroll-overlay {
|
|
684
|
+
transition-property: opacity;
|
|
685
|
+
transition-duration: var(--motion-duration-normal);
|
|
686
|
+
transition-timing-function: var(--motion-easing-standard);
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
/* Radix's viewport wraps its children in a `display: table` div, which is how it lets content
|
|
690
|
+
wider than the region push the horizontal bar. A rail is the opposite case: its rows are as wide
|
|
691
|
+
as the rail and a table row is as wide as its widest cell, so a long label stops truncating and
|
|
692
|
+
spills. `display: block` on that wrapper gives the rows the region's width back. */
|
|
693
|
+
.scroll-overlay-viewport > div {
|
|
694
|
+
display: block !important;
|
|
695
|
+
}
|
|
696
|
+
|
|
680
697
|
/* === Animation layer (tw-animate-css, compiled) — see scripts/build-styles.mjs === */
|
|
681
698
|
/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */
|
|
682
699
|
@layer properties;
|
package/dist/styles.css
CHANGED
|
@@ -534,13 +534,6 @@
|
|
|
534
534
|
font-style: normal;
|
|
535
535
|
font-display: swap;
|
|
536
536
|
}
|
|
537
|
-
@font-face {
|
|
538
|
-
font-family: "Instrument Serif";
|
|
539
|
-
src: url("/fonts/instrument-serif/instrument-serif-regular.woff2") format("woff2");
|
|
540
|
-
font-weight: 400;
|
|
541
|
-
font-style: normal;
|
|
542
|
-
font-display: swap;
|
|
543
|
-
}
|
|
544
537
|
@font-face {
|
|
545
538
|
font-family: "Fira Mono";
|
|
546
539
|
src: url("/fonts/fira-mono/fira-mono-regular.woff2") format("woff2");
|
|
@@ -724,6 +717,24 @@
|
|
|
724
717
|
margin-inline: auto;
|
|
725
718
|
}
|
|
726
719
|
|
|
720
|
+
/* Backs the overlay scrollbar <ScrollArea> draws: the bar rides over the content and is only there
|
|
721
|
+
while it is wanted — while you scroll, and while the pointer is over the region — then fades. A
|
|
722
|
+
real class rather than a Tailwind arbitrary utility for the reason the motion classes above are,
|
|
723
|
+
and token-driven so prefers-reduced-motion takes the fade to 0ms and the bar simply appears. */
|
|
724
|
+
.motion-scroll-overlay {
|
|
725
|
+
transition-property: opacity;
|
|
726
|
+
transition-duration: var(--motion-duration-normal);
|
|
727
|
+
transition-timing-function: var(--motion-easing-standard);
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
/* Radix's viewport wraps its children in a `display: table` div, which is how it lets content
|
|
731
|
+
wider than the region push the horizontal bar. A rail is the opposite case: its rows are as wide
|
|
732
|
+
as the rail and a table row is as wide as its widest cell, so a long label stops truncating and
|
|
733
|
+
spills. `display: block` on that wrapper gives the rows the region's width back. */
|
|
734
|
+
.scroll-overlay-viewport > div {
|
|
735
|
+
display: block !important;
|
|
736
|
+
}
|
|
737
|
+
|
|
727
738
|
/* === Animation layer (tw-animate-css, compiled) — see scripts/build-styles.mjs === */
|
|
728
739
|
/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */
|
|
729
740
|
@layer properties;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lessly/ui",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "Lessly design system — shared UI primitives, tokens, and theme",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"packageManager": "pnpm@10.30.3",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"build": "tsup && node scripts/build-styles.mjs",
|
|
37
37
|
"build-site": "pnpm build && vite build --config site/vite.config.ts",
|
|
38
38
|
"build-storybook": "storybook build",
|
|
39
|
+
"build:company-facts": "tsx scripts/build-company-facts.mts",
|
|
39
40
|
"build:current-emails": "tsx scripts/build-current-emails.mts",
|
|
40
|
-
"build:email-logo": "tsx scripts/build-email-logo.mts",
|
|
41
41
|
"changeset": "changeset",
|
|
42
42
|
"dev-css-stale": "node scripts/dev-css-stale.mjs",
|
|
43
43
|
"dev-site": "vite --config site/vite.config.ts",
|
|
@@ -115,7 +115,6 @@
|
|
|
115
115
|
"@eslint/js": "^9.39.5",
|
|
116
116
|
"@react-email/components": "^0.5.6",
|
|
117
117
|
"@react-email/render": "^1.3.2",
|
|
118
|
-
"@resvg/resvg-js": "^2.6.2",
|
|
119
118
|
"@storybook/addon-essentials": "^8.6.14",
|
|
120
119
|
"@storybook/blocks": "8.6.18",
|
|
121
120
|
"@storybook/react": "^8.6.18",
|