@solibo/solibo-ui 2.2.12 → 2.2.13
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/assets/index17.css +1 -1
- package/dist/components/message/index.cjs +1 -1
- package/dist/components/message/index.js +23 -23
- package/dist/components/tooltip/index.cjs +1 -1
- package/dist/components/tooltip/index.js +20 -17
- package/dist/index.d.ts +1 -0
- package/dist/tokens.json +1 -1
- package/package.json +1 -1
package/dist/assets/index17.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._attachments_1jli5_1{align-items:flex-start;display:flex;flex-direction:column;gap:var(--scale-8);margin-bottom:var(--scale-4);margin-top:var(--scale-4);max-width:min(90%,var(--shape-width-max-lg))}._message-group_1jli5_11{align-items:flex-start;display:flex;flex-direction:column}._message-group_1jli5_11[data-message-type=default]>._attachments_1jli5_1{margin-left:var(--scale-16)}._message-group_1jli5_11>:first-child{margin-left:var(--scale-16)}._message-group_1jli5_11>time,._message-group_1jli5_11>._footer_1jli5_27{color:var(--colors-semantic-content-tertiary);margin-left:var(--scale-20);margin-right:var(--scale-16)}._message-group_1jli5_11>._footer_1jli5_27{align-items:center;display:flex;flex-wrap:wrap;gap:var(--scale-4) var(--scale-8)}._message-group_1jli5_11[data-message-type=system],._message-group_1jli5_11:has([data-component=collapsible]){padding:0 var(--shape-spacing-md);margin-left:20%;margin-right:5%}._message-group_1jli5_11[data-message-type=system]>div:first-child,._message-group_1jli5_11:has([data-component=collapsible])>div:first-child{margin-left:0}._message-group_1jli5_11:has([data-component=collapsible]) [data-message-type=system]{margin-left:0;max-width:100%;padding-inline:0}._message-group_1jli5_11[data-message-type=user]{align-items:flex-end}._message-group_1jli5_11[data-message-type=user]>._attachments_1jli5_1{align-items:flex-end;margin-right:var(--scale-16)}._message_1jli5_11{border:solid var(--shape-border-width-default) var(--colors-semantic-border-default);margin:var(--scale-4) 0;padding:var(--utils-tokens-unit);white-space:pre-wrap;word-break:break-word}._message_1jli5_11:is([data-type=default],[data-type=user],[data-appearance=file]){max-width:min(90%,var(--shape-width-max-lg));width:-moz-fit-content;width:fit-content}._message_1jli5_11[data-type=default]{background-color:var(--colors-semantic-bg-page);border-left:none;border-radius:0 var(--utils-tokens-unit) var(--utils-tokens-unit) 0;margin-inline:var(--message-edge-gap, 0) auto}._message_1jli5_11:is([data-type=minimal],[data-type=system]){border:none}._message_1jli5_11[data-type=minimal]{margin:var(--scale-8) 0 0 0;padding:0}._message_1jli5_11[data-appearance=file] ul{margin:0}._message_1jli5_11[data-type=user]{background-color:var(--colors-semantic-primary-primary-subtle);border-radius:var(--utils-tokens-unit) 0 0 var(--utils-tokens-unit);border-right:none;margin-inline:auto var(--message-edge-gap, 0)}._message_1jli5_11[data-type=user][data-appearance=file] ul{text-align:right}._message_1jli5_11[data-type=system]{border-bottom:solid var(--shape-border-width-default) var(--colors-semantic-border-strong);color:var(--colors-semantic-content-secondary);font-size:var(--typography-font-sizes-label-sm);padding:0;padding-bottom:var(--shape-spacing-xs);text-align:left}._message_1jli5_11[data-appearance=file]{--message-edge-gap: var(--scale-16);background-color:transparent;border:0;padding:0}._message_1jli5_11[data-appearance=document]{max-width:min(90%,var(--shape-width-max-lg));overflow:hidden;padding:0;width:100%}._message_1jli5_11 p:first-child{margin-top:0}._message_1jli5_11 p:last-child{margin-bottom:0}._message_1jli5_11 [data-component=collapsible] p{font-size:var(--typography-font-sizes-label-sm)}._timestamp_1jli5_147{color:var(--colors-semantic-content-secondary);font-size:var(--typography-font-sizes-caption)}._actions_1jli5_152{align-items:center;display:flex;gap:var(--scale-4)}._actions_1jli5_152 [data-component=button]{font-size:var(--typography-font-sizes-caption);min-height:0;padding-block:0}._preview_1jli5_164{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}@media print{._preview_1jli5_164{display:block;-webkit-line-clamp:unset;overflow:visible}}@media (width < 1024px){._message-group_1jli5_11[data-message-type=system],._message-group_1jli5_11:has([data-component=collapsible]){margin-left:10%;margin-right:5%}}@media (width < 480px){._message-group_1jli5_11[data-message-type=system],._message-group_1jli5_11:has([data-component=collapsible]){margin-inline:0}}._toolbar_1jli5_199{display:flex;justify-content:flex-end}@media (hover: hover) and (pointer: fine){._message_1jli5_11._with-toolbar_1jli5_205{max-width:min(calc(100% - var(--scale-96)),var(--shape-width-max-lg));overflow:visible;position:relative}._toolbar_1jli5_199{opacity:0;padding-right:var(--shape-spacing-xs);pointer-events:none;position:absolute;right:100%;top:50%;transform:translateY(-50%);transition:opacity var(--utils-tokens-transition-duration) var(--utils-tokens-transition-timing-function) var(--utils-tokens-transition-duration),pointer-events 0s linear calc(var(--utils-tokens-transition-duration) + var(--utils-tokens-transition-duration)) allow-discrete}._with-toolbar_1jli5_205:is(:hover,:focus-within) ._toolbar_1jli5_199{opacity:1;pointer-events:auto;transition-delay:var(--utils-tokens-transition-delay)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index17.css');const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index17.css');const e=require("react/jsx-runtime"),j=require("classix"),y=require("../avatar/index.cjs"),l=require("../../index-Bl5EEYDv.cjs"),q=require("../icon/index.cjs"),S="_attachments_1jli5_1",I="_footer_1jli5_27",C="_message_1jli5_11",M="_timestamp_1jli5_147",L="_actions_1jli5_152",O="_preview_1jli5_164",T="_toolbar_1jli5_199",s={attachments:S,"message-group":"_message-group_1jli5_11",footer:I,message:C,timestamp:M,actions:L,preview:O,toolbar:T,"with-toolbar":"_with-toolbar_1jli5_205"},k=({actions:o,actionsPlacement:u="footer",appearance:v="default",attachments:c,author:i,authorColor:x,authorImageUrl:h,authorLink:p,authorRole:b,content:m,iconName:f="Info",id:N,preview:d,timestamp:_,timestampText:w,type:t="default"})=>{const a=!!o&&u==="toolbar"&&t!=="system",g=a?l.controlChildren(o):[],n=_?new Date(_):void 0,r=n?e.jsx("time",{className:s.timestamp,dateTime:n.toISOString(),children:w??n.toLocaleString()}):null;return e.jsxs("div",{className:s["message-group"],"data-message-type":t,"data-component":"message",children:[i&&e.jsx(y.Avatar,{accessibleLabel:i,color:x,imageUrl:h,link:p,name:i,role:b}),t==="system"&&r,e.jsxs("div",{className:j(s.message,a&&s["with-toolbar"]),"data-appearance":v,"data-id":N,"data-type":t,children:[t=="system"&&e.jsx(q.Icon,{gap:"right",name:f,size:"tiny"}),d||a?e.jsx("div",{className:j(d&&s.preview),children:m}):m,a&&e.jsx("div",{className:s.toolbar,children:e.jsx(l.Controls,{variant:g.every(l.isControlButton)?"embedded":"inline",children:g})})]}),c&&e.jsx("div",{className:s.attachments,children:c}),t!=="system"&&(o&&!a?e.jsxs("div",{className:s.footer,children:[r,e.jsx("div",{className:s.actions,"data-message-actions":!0,children:o})]}):r)]})};exports.Message=k;
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
1
|
+
import { jsx as t, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import p from "classix";
|
|
3
3
|
import { Avatar as y } from "../avatar/index.js";
|
|
4
4
|
import { c as C, C as I, i as S } from "../../index-DQuc_Zkg.js";
|
|
5
5
|
import { Icon as L } from "../icon/index.js";
|
|
6
|
-
import '../../assets/index17.css';const k = "
|
|
6
|
+
import '../../assets/index17.css';const k = "_attachments_1jli5_1", z = "_footer_1jli5_27", A = "_message_1jli5_11", B = "_timestamp_1jli5_147", D = "_actions_1jli5_152", E = "_preview_1jli5_164", M = "_toolbar_1jli5_199", e = {
|
|
7
7
|
attachments: k,
|
|
8
|
-
"message-group": "_message-
|
|
8
|
+
"message-group": "_message-group_1jli5_11",
|
|
9
9
|
footer: z,
|
|
10
10
|
message: A,
|
|
11
11
|
timestamp: B,
|
|
12
12
|
actions: D,
|
|
13
13
|
preview: E,
|
|
14
14
|
toolbar: M,
|
|
15
|
-
"with-toolbar": "_with-
|
|
15
|
+
"with-toolbar": "_with-toolbar_1jli5_205"
|
|
16
16
|
}, G = ({
|
|
17
17
|
actions: o,
|
|
18
|
-
actionsPlacement:
|
|
19
|
-
appearance:
|
|
18
|
+
actionsPlacement: h = "footer",
|
|
19
|
+
appearance: v = "default",
|
|
20
20
|
attachments: n,
|
|
21
|
-
author:
|
|
22
|
-
authorColor:
|
|
23
|
-
authorImageUrl:
|
|
24
|
-
authorLink:
|
|
25
|
-
authorRole:
|
|
26
|
-
content:
|
|
27
|
-
iconName:
|
|
21
|
+
author: i,
|
|
22
|
+
authorColor: f,
|
|
23
|
+
authorImageUrl: b,
|
|
24
|
+
authorLink: j,
|
|
25
|
+
authorRole: N,
|
|
26
|
+
content: c,
|
|
27
|
+
iconName: u = "Info",
|
|
28
28
|
id: w,
|
|
29
29
|
preview: d,
|
|
30
30
|
timestamp: _,
|
|
31
31
|
timestampText: x,
|
|
32
32
|
type: s = "default"
|
|
33
33
|
}) => {
|
|
34
|
-
const a = !!o &&
|
|
35
|
-
return /* @__PURE__ */
|
|
36
|
-
|
|
37
|
-
s === "system" &&
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
s == "system" && /* @__PURE__ */ t(L, { gap: "right", name:
|
|
40
|
-
d || a ? /* @__PURE__ */ t("div", { className: p(d && e.preview), children:
|
|
34
|
+
const a = !!o && h === "toolbar" && s !== "system", g = a ? C(o) : [], r = _ ? new Date(_) : void 0, l = r ? /* @__PURE__ */ t("time", { className: e.timestamp, dateTime: r.toISOString(), children: x ?? r.toLocaleString() }) : null;
|
|
35
|
+
return /* @__PURE__ */ m("div", { className: e["message-group"], "data-message-type": s, "data-component": "message", children: [
|
|
36
|
+
i && /* @__PURE__ */ t(y, { accessibleLabel: i, color: f, imageUrl: b, link: j, name: i, role: N }),
|
|
37
|
+
s === "system" && l,
|
|
38
|
+
/* @__PURE__ */ m("div", { className: p(e.message, a && e["with-toolbar"]), "data-appearance": v, "data-id": w, "data-type": s, children: [
|
|
39
|
+
s == "system" && /* @__PURE__ */ t(L, { gap: "right", name: u, size: "tiny" }),
|
|
40
|
+
d || a ? /* @__PURE__ */ t("div", { className: p(d && e.preview), children: c }) : c,
|
|
41
41
|
a && /* @__PURE__ */ t("div", { className: e.toolbar, children: /* @__PURE__ */ t(I, { variant: g.every(S) ? "embedded" : "inline", children: g }) })
|
|
42
42
|
] }),
|
|
43
43
|
n && /* @__PURE__ */ t("div", { className: e.attachments, children: n }),
|
|
44
|
-
s !== "system" && (o && !a ? /* @__PURE__ */
|
|
45
|
-
|
|
44
|
+
s !== "system" && (o && !a ? /* @__PURE__ */ m("div", { className: e.footer, children: [
|
|
45
|
+
l,
|
|
46
46
|
/* @__PURE__ */ t("div", { className: e.actions, "data-message-actions": !0, children: o })
|
|
47
|
-
] }) :
|
|
47
|
+
] }) : l)
|
|
48
48
|
] });
|
|
49
49
|
};
|
|
50
50
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index16.css');const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index16.css');const i=require("react/jsx-runtime"),l=require("classix"),a=require("../icon/index.cjs"),o={static:"_static_r8l1k_1"},r={default:o.default,static:o.static},u=({variant:t="default",children:s,iconName:c,...n})=>{const e=t==="static"?"Info":c;return i.jsxs("div",{className:l(o.tooltip,r[t]),...n,"data-component":"tooltip",children:[e&&i.jsx(a.Icon,{gap:"right",name:e,weight:t==="static"?"fill":void 0}),s]})};exports.Tooltip=u;
|
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { Icon as
|
|
4
|
-
import '../../assets/index16.css';const
|
|
1
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import n from "classix";
|
|
3
|
+
import { Icon as r } from "../icon/index.js";
|
|
4
|
+
import '../../assets/index16.css';const o = {
|
|
5
5
|
static: "_static_r8l1k_1"
|
|
6
|
-
},
|
|
7
|
-
default:
|
|
8
|
-
static:
|
|
9
|
-
},
|
|
10
|
-
variant:
|
|
11
|
-
children:
|
|
12
|
-
iconName:
|
|
13
|
-
...
|
|
14
|
-
}) =>
|
|
15
|
-
|
|
16
|
-
a
|
|
17
|
-
|
|
6
|
+
}, m = {
|
|
7
|
+
default: o.default,
|
|
8
|
+
static: o.static
|
|
9
|
+
}, u = ({
|
|
10
|
+
variant: t = "default",
|
|
11
|
+
children: s,
|
|
12
|
+
iconName: c,
|
|
13
|
+
...a
|
|
14
|
+
}) => {
|
|
15
|
+
const i = t === "static" ? "Info" : c;
|
|
16
|
+
return /* @__PURE__ */ l("div", { className: n(o.tooltip, m[t]), ...a, "data-component": "tooltip", children: [
|
|
17
|
+
i && /* @__PURE__ */ e(r, { gap: "right", name: i, weight: t === "static" ? "fill" : void 0 }),
|
|
18
|
+
s
|
|
19
|
+
] });
|
|
20
|
+
};
|
|
18
21
|
export {
|
|
19
|
-
|
|
22
|
+
u as Tooltip
|
|
20
23
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1471,6 +1471,7 @@ export declare const Tooltip: ({ variant, children, iconName, ...props }: Toolti
|
|
|
1471
1471
|
|
|
1472
1472
|
declare type TooltipProps = {
|
|
1473
1473
|
children?: React.ReactNode;
|
|
1474
|
+
/** Custom icon for the default variant. Static tooltips always show filled Info. */
|
|
1474
1475
|
iconName?: IconName;
|
|
1475
1476
|
variant?: keyof typeof variants_8;
|
|
1476
1477
|
};
|
package/dist/tokens.json
CHANGED