@slashsuite/ui-react 0.15.1 → 0.15.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/textBox.js +7 -4
- package/package.json +1 -1
package/dist/textBox.js
CHANGED
|
@@ -4,11 +4,14 @@ const ALIGN = {
|
|
|
4
4
|
center: "text-center",
|
|
5
5
|
end: "text-end",
|
|
6
6
|
};
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* A run clamped to 2, 3 or 4 lines: `line-clamp` is a box of its own. It wraps even inside a box
|
|
9
|
+
* that keeps its text on one line (a `MediaTile` caption), or it would never reach its second line.
|
|
10
|
+
*/
|
|
8
11
|
const CLAMP = {
|
|
9
|
-
2: "line-clamp-2",
|
|
10
|
-
3: "line-clamp-3",
|
|
11
|
-
4: "line-clamp-4",
|
|
12
|
+
2: "line-clamp-2 whitespace-normal",
|
|
13
|
+
3: "line-clamp-3 whitespace-normal",
|
|
14
|
+
4: "line-clamp-4 whitespace-normal",
|
|
12
15
|
};
|
|
13
16
|
/**
|
|
14
17
|
* The alignment, and the box it needs. An aligned run is block-level, so text-align has a box to set
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slashsuite/ui-react",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.2",
|
|
4
4
|
"description": "UISlash React components: primitives, typography roles and a safe Markdown renderer, written against Tailwind v4 utilities. Pair with a theme from @slashsuite/themes.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"components",
|