@lofid/web 1.1.1 → 1.1.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/custom-elements.json +2 -2
- package/dist/index.d.ts +4 -1
- package/dist/index.js +13 -2
- package/dist/index.js.map +1 -1
- package/dist/styles/motion.css +1 -1
- package/dist/styles/typography.css +1 -1
- package/dist/styles/typography.json +1 -1
- package/dist/styles/vars.css +1 -1
- package/package.json +2 -2
- package/readmes/lof-resizable/README.md +2 -2
package/dist/styles/motion.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Lofid Design System 1.1.
|
|
1
|
+
/* Lofid Design System 1.1.2 — typography utility classes. Generated from scripts/typography-spec.mjs. Do not edit.
|
|
2
2
|
Needs vars.css. Pick the class by what the text is for, and the HTML tag for document structure. */
|
|
3
3
|
.lof-heading-hero { font: var(--lof-heading-hero); letter-spacing: var(--lof-heading-hero-letter-spacing); }
|
|
4
4
|
.lof-heading-display { font: var(--lof-heading-display); letter-spacing: var(--lof-heading-display-letter-spacing); }
|
package/dist/styles/vars.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lofid/web",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Lofid Design System web components (Lit) — rebuilt, API-compatible with 1.5.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"cem": "node scripts/cem.mjs"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@lofid/icons": "1.1.
|
|
37
|
+
"@lofid/icons": "1.1.2",
|
|
38
38
|
"lit": "^3.3.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
|
|
164
164
|
| Name | Type | Description |
|
|
165
165
|
| --- | --- | --- |
|
|
166
|
-
| `currentSize` | `number` | Current size as a percentage of the group (also written to the host's `flex-
|
|
166
|
+
| `currentSize` | `number` | Current size as a percentage of the group (also written to the host's `flex-grow`); read-only — the parent group updates it on every resize. |
|
|
167
167
|
| `scrollable` | `boolean` | True while the content overflows the panel in either axis; read-only, kept current by a ResizeObserver. |
|
|
168
168
|
|
|
169
169
|
### Events
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
|
|
212
212
|
- Panels and handles must be **direct children** of the group (`:scope > lof-resizable-panel`), alternating panel / handle / panel. A handle at the start or end, or two handles in a row, has no valid pair and does nothing.
|
|
213
213
|
- Layout is computed once in `firstUpdated`: panels without `default-size` share whatever remains of 100%, then all sizes are normalised to sum to exactly 100 (so `default-size="50"` + `default-size="70"` ends up as 41.7 / 58.3). Panels or handles added or removed later are **not** observed; re-attach the group to re-initialise.
|
|
214
|
-
- Sizes are always percentages of the
|
|
214
|
+
- Sizes are always percentages of the space the handles leave, applied as `flex: <size> 1 0px` with `min-width: 0` / `min-height: 0`, so panels always fit the group (wide content scrolls inside its panel instead of pushing the group wider). The group itself is `display: flex; width: 100%; height: 100%`, so a `vertical` group needs an ancestor with a definite height or it has nothing to divide.
|
|
215
215
|
- Only the two panels adjacent to the dragged handle change; each is clamped to its own `min-size` / `max-size`, then the pair is rescaled so their combined share stays constant. A panel therefore cannot go below its `min-size` (default 10) and never collapses to 0 unless you set `min-size="0"`.
|
|
216
216
|
- Attribute names are kebab-case: `default-size`, `min-size`, `max-size` (properties `defaultSize`, `minSize`, `maxSize`). The older lowercase spellings still work since 1.5.0 but log a one-time console notice and are removed in 3.0; see Deprecated aliases.
|
|
217
217
|
- While a drag is in progress the active handle carries a `data-dragging` attribute (the group sets and removes it) — the only hook for drag-specific styling from outside.
|