@keboola/design 3.2.3 → 4.0.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/AGENTS.md +21 -1
- package/COMPONENT-API.md +26 -25
- package/README.md +8 -8
- package/dist/constants-D3gaMY-W.d.cts +39 -0
- package/dist/constants-D3gaMY-W.d.ts +39 -0
- package/dist/editors.cjs +1976 -0
- package/dist/editors.cjs.map +1 -0
- package/dist/editors.d.cts +113 -0
- package/dist/editors.d.ts +113 -0
- package/dist/editors.js +1948 -0
- package/dist/editors.js.map +1 -0
- package/dist/index.cjs +37 -1204
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +304 -405
- package/dist/index.d.ts +304 -405
- package/dist/index.js +38 -1200
- package/dist/index.js.map +1 -1
- package/dist/markdown-editor.cjs +4 -4
- package/dist/markdown-editor.cjs.map +1 -1
- package/dist/markdown-editor.d.cts +4 -3
- package/dist/markdown-editor.d.ts +4 -3
- package/dist/markdown-editor.js +4 -4
- package/dist/markdown-editor.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +46 -34
- package/src/styles.css +19 -0
|
@@ -57,9 +57,10 @@ type MarkdownEditorProps = {
|
|
|
57
57
|
*/
|
|
58
58
|
singleLine?: boolean;
|
|
59
59
|
/**
|
|
60
|
-
* Clamps content to
|
|
61
|
-
* focus expands the editor to full height (no clamp).
|
|
62
|
-
*
|
|
60
|
+
* Clamps content to 2 lines (truncating with an ellipsis) in the display (not-focused)
|
|
61
|
+
* state; focus expands the editor to full height (no clamp). `line-clamp` is self-gating,
|
|
62
|
+
* so short/empty content renders fully with no truncation. Per the inline-editable-text
|
|
63
|
+
* pattern spec for description-style slots.
|
|
63
64
|
*/
|
|
64
65
|
clampDisplay?: boolean;
|
|
65
66
|
/**
|
|
@@ -57,9 +57,10 @@ type MarkdownEditorProps = {
|
|
|
57
57
|
*/
|
|
58
58
|
singleLine?: boolean;
|
|
59
59
|
/**
|
|
60
|
-
* Clamps content to
|
|
61
|
-
* focus expands the editor to full height (no clamp).
|
|
62
|
-
*
|
|
60
|
+
* Clamps content to 2 lines (truncating with an ellipsis) in the display (not-focused)
|
|
61
|
+
* state; focus expands the editor to full height (no clamp). `line-clamp` is self-gating,
|
|
62
|
+
* so short/empty content renders fully with no truncation. Per the inline-editable-text
|
|
63
|
+
* pattern spec for description-style slots.
|
|
63
64
|
*/
|
|
64
65
|
clampDisplay?: boolean;
|
|
65
66
|
/**
|
package/dist/markdown-editor.js
CHANGED
|
@@ -4483,10 +4483,10 @@ var MarkdownEditor = ({
|
|
|
4483
4483
|
// adjacent-sibling selector for paragraph spacing so single-paragraph blocks (titles,
|
|
4484
4484
|
// short descriptions) stay tight while multi-paragraph blocks still breathe.
|
|
4485
4485
|
compact && "[&_p]:tw-m-0 [&_p+p]:tw-mt-2",
|
|
4486
|
-
// Display-state clamp: 2 lines
|
|
4487
|
-
//
|
|
4488
|
-
//
|
|
4489
|
-
clampDisplay && "[&:not(:focus-within)]:tw-line-clamp-2
|
|
4486
|
+
// Display-state clamp: 2 lines, dropped in focus-within so editing expands to full
|
|
4487
|
+
// height. line-clamp is self-gating (no effect below 3 lines), so short/empty content
|
|
4488
|
+
// renders clean; a CSS fade can't gate on overflow without JS, so it's omitted.
|
|
4489
|
+
clampDisplay && "[&:not(:focus-within)]:tw-line-clamp-2",
|
|
4490
4490
|
className
|
|
4491
4491
|
),
|
|
4492
4492
|
onBlur: handleBlur,
|