@cfx-dev/ui-components 5.0.6 → 5.0.7
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
.cfxui__TableResponsiveText__root__0e257{position:relative;min-width:
|
|
1
|
+
.cfxui__TableResponsiveText__root__0e257{position:relative;display:flex;align-items:center;width:100%;min-width:var(--min-width)}.cfxui__TableResponsiveText__root__0e257 .cfxui__TableResponsiveText__text__78e87{position:absolute;left:0;right:0;z-index:1;overflow-x:clip}
|
package/dist/assets/css/Text.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.cfxui__Text__root__2fe11{--trim-line-height: calc(var(--font-size-current) * var(--line-height-current));--trim-extra-height: calc(var(--trim-line-height) - 1cap);--trim-size: calc((var(--trim-extra-height) / 2) * -1)}.cfxui__Text__root__2fe11{transition:all .25s ease,outline-offset 0s,outline 0s}.cfxui__Text__root__2fe11:before{content:"";margin-bottom:calc(var(--trim-size) - .015cap);display:table}.cfxui__Text__root__2fe11:after{content:"";margin-top:calc(var(--trim-size) + .025cap);display:table}.cfxui__Text__root__2fe11.cfxui__Text__verticalTrimDisabled__34631:before,.cfxui__Text__root__2fe11.cfxui__Text__verticalTrimDisabled__34631:after{display:none;margin:0}.cfxui__Text__root__2fe11.cfxui__Text__centered__4d7bd{text-align:center}.cfxui__Text__root__2fe11.cfxui__Text__underlined__5860e{text-decoration:underline}.cfxui__Text__root__2fe11.cfxui__Text__strikethrough__e3ee3{text-decoration:line-through}.cfxui__Text__root__2fe11.cfxui__Text__truncated__417f4{width:100%;
|
|
1
|
+
.cfxui__Text__root__2fe11{--trim-line-height: calc(var(--font-size-current) * var(--line-height-current));--trim-extra-height: calc(var(--trim-line-height) - 1cap);--trim-size: calc((var(--trim-extra-height) / 2) * -1)}.cfxui__Text__root__2fe11{transition:all .25s ease,outline-offset 0s,outline 0s}.cfxui__Text__root__2fe11:before{content:"";margin-bottom:calc(var(--trim-size) - .015cap);display:table}.cfxui__Text__root__2fe11:after{content:"";margin-top:calc(var(--trim-size) + .025cap);display:table}.cfxui__Text__root__2fe11.cfxui__Text__verticalTrimDisabled__34631:before,.cfxui__Text__root__2fe11.cfxui__Text__verticalTrimDisabled__34631:after{display:none;margin:0}.cfxui__Text__root__2fe11.cfxui__Text__centered__4d7bd{text-align:center}.cfxui__Text__root__2fe11.cfxui__Text__underlined__5860e{text-decoration:underline}.cfxui__Text__root__2fe11.cfxui__Text__strikethrough__e3ee3{text-decoration:line-through}.cfxui__Text__root__2fe11.cfxui__Text__truncated__417f4{width:100%;white-space:nowrap;overflow-x:clip;display:inline-block;mask:linear-gradient(90deg,rgba(var(--color-red),1),rgba(var(--color-red),1) calc(100% - 2ch),transparent)}.cfxui__Text__root__2fe11.cfxui__Text__typographic__d8155{overflow-wrap:break-word}.cfxui__Text__root__2fe11.cfxui__Text__typographic__d8155 li{margin-left:calc(var(--quant) * 4)}.cfxui__Text__root__2fe11:not(.cfxui__Text__typographic__d8155) a{color:inherit;text-decoration:none}.cfxui__Text__root__2fe11.cfxui__Text__block__cb1b6{max-width:100%}
|
|
@@ -4,6 +4,7 @@ import { TextProps } from '../Text';
|
|
|
4
4
|
export interface TableResponsiveTextProps extends TextProps {
|
|
5
5
|
title?: string;
|
|
6
6
|
rootClassName?: string;
|
|
7
|
+
minWidth?: string | number;
|
|
7
8
|
}
|
|
8
9
|
declare function TableResponsiveText(props: TableResponsiveTextProps): import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
declare const _default: React.MemoExoticComponent<typeof TableResponsiveText>;
|
|
@@ -1,23 +1,32 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { Text as c } from "../Text/Text.js";
|
|
6
|
-
import "../../utils/ui/ui.js";
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import l from "react";
|
|
3
|
+
import { Text as m } from "../Text/Text.js";
|
|
4
|
+
import { ui as c } from "../../utils/ui/ui.js";
|
|
7
5
|
import { Title as a } from "../Title/Title.js";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
import { clsx as x } from "../../utils/clsx.js";
|
|
7
|
+
const _ = "cfxui__TableResponsiveText__root__0e257", f = "cfxui__TableResponsiveText__text__78e87", i = {
|
|
8
|
+
root: _,
|
|
9
|
+
text: f
|
|
11
10
|
};
|
|
12
|
-
function
|
|
11
|
+
function p(o) {
|
|
13
12
|
const {
|
|
14
|
-
title:
|
|
15
|
-
children:
|
|
16
|
-
rootClassName:
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
title: n,
|
|
14
|
+
children: r,
|
|
15
|
+
rootClassName: s,
|
|
16
|
+
minWidth: t = 15
|
|
17
|
+
} = o;
|
|
18
|
+
return /* @__PURE__ */ e(a, { title: n ?? r, fixedOn: "top", children: /* @__PURE__ */ e(
|
|
19
|
+
"div",
|
|
20
|
+
{
|
|
21
|
+
className: x(i.root, s),
|
|
22
|
+
style: {
|
|
23
|
+
"--min-width": typeof t == "number" ? c.q(t) : t
|
|
24
|
+
},
|
|
25
|
+
children: /* @__PURE__ */ e(m, { truncated: !0, ...o, className: i.text })
|
|
26
|
+
}
|
|
27
|
+
) });
|
|
19
28
|
}
|
|
20
|
-
const
|
|
29
|
+
const y = l.memo(p);
|
|
21
30
|
export {
|
|
22
|
-
|
|
31
|
+
y as default
|
|
23
32
|
};
|