@studiolxd/brand 38.14.0 → 38.15.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/CHANGELOG.md +17 -0
- package/dist/_types/molecules/Sheet/Sheet.d.ts +7 -1
- package/dist/chat-shell.css +1 -1
- package/dist/chat-shell.js +15 -2
- package/dist/sheet.js +7 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,23 @@ El paquete sigue [semver](https://semver.org/lang/es/): **patch** para bug fixes
|
|
|
7
7
|
regeneración de `dist`, **minor** para componentes/props/variantes/tokens nuevos, **major**
|
|
8
8
|
para breaking changes.
|
|
9
9
|
|
|
10
|
+
## [38.15.0] — 2026-09-15
|
|
11
|
+
|
|
12
|
+
> **Minor.** El cajón de conversaciones del chat, en móvil: ocupa el ancho y su
|
|
13
|
+
> botón no cambia de forma al abrirse. `Sheet` gana `hideClose`.
|
|
14
|
+
|
|
15
|
+
El cajón medía 320px de 390 porque heredaba el ancho lateral del `Sheet`.
|
|
16
|
+
Mientras está abierto, la lista de conversaciones ES la pantalla: ahora mide lo
|
|
17
|
+
que el armazón. Sin media query, porque el cajón solo se monta por debajo de
|
|
18
|
+
`lg`.
|
|
19
|
+
|
|
20
|
+
Y al abrirse aparecía el aspa del `Sheet` encima del disparador, así que el
|
|
21
|
+
glifo cambiaba de «barra lateral» a «cerrar» según el estado. `Sheet` acepta
|
|
22
|
+
`hideClose` —por defecto no cambia para nadie— y el armazón pinta dentro del
|
|
23
|
+
cajón el MISMO botón que lo abrió, en el mismo sitio: pliega y despliega sin
|
|
24
|
+
cambiar de dibujo. Dos controles de cierre con formas distintas en la misma
|
|
25
|
+
pantalla son dos maneras de decir lo mismo.
|
|
26
|
+
|
|
10
27
|
## [38.14.0] — 2026-09-15
|
|
11
28
|
|
|
12
29
|
> **Minor.** En móvil, las acciones ocupan la línea porque lo decide el sitio
|
|
@@ -15,6 +15,12 @@ export interface SheetProps extends Omit<React.ComponentPropsWithoutRef<'div'>,
|
|
|
15
15
|
footer?: ReactNode;
|
|
16
16
|
children: ReactNode;
|
|
17
17
|
closeLabel?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Oculta el aspa de la esquina. Para un cajón cuyo propio disparador queda
|
|
20
|
+
* a la vista y ya sirve para cerrarlo: dos controles de cierre en la misma
|
|
21
|
+
* pantalla, con glifos distintos, son dos formas de decir lo mismo.
|
|
22
|
+
*/
|
|
23
|
+
hideClose?: boolean;
|
|
18
24
|
/** Elemento que abre el panel. Sin él, la apertura la controla el consumidor. */
|
|
19
25
|
trigger?: ReactNode;
|
|
20
26
|
/**
|
|
@@ -53,4 +59,4 @@ export declare function SheetFooter({ className, ...props }: React.HTMLAttribute
|
|
|
53
59
|
* handlers son lo que permite montar la barrera de eventos cuando el panel se
|
|
54
60
|
* abre desde dentro de una tarjeta clicable, sin `div`s de producto alrededor.
|
|
55
61
|
*/
|
|
56
|
-
export declare function Sheet({ open, onOpenChange, side, title, titleHidden, description, footer, children, closeLabel, trigger, container, onAnimationEndCapture, className, ...rest }: SheetProps): import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
export declare function Sheet({ open, onOpenChange, side, title, titleHidden, description, footer, children, closeLabel, hideClose, trigger, container, onAnimationEndCapture, className, ...rest }: SheetProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/chat-shell.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.chat-shell{background-color:var(--chat-shell-bg);flex-direction:column;block-size:100%;min-block-size:0;display:flex;position:relative}.chat-shell .chat-shell__drawer,.chat-shell .sheet__overlay{position:absolute}.chat-shell__list{inline-size:var(--chat-shell-list-width);flex-shrink:0;block-size:100%;overflow-y:auto}.chat-shell.chat-shell--with-list{gap:var(--chat-shell-gap);flex-direction:row}.chat-shell__main{flex-direction:column;flex:1;min-block-size:0;display:flex}.chat-shell__header{justify-content:space-between;align-items:center;gap:var(--chat-shell-header-gap);flex-shrink:0;display:flex}.chat-shell__list-trigger{flex-shrink:0}.chat-shell__header-content{justify-content:space-between;align-items:center;gap:var(--chat-shell-header-gap);flex:1;min-inline-size:0;display:flex}.chat-shell__thread{--conversation-thread-padding-inline:var(--chat-shell-thread-padding-inline);min-block-size:0;padding-block:var(--chat-shell-thread-padding-block);flex-direction:column;flex:1;display:flex;overflow-y:auto}.chat-shell__composer{flex-shrink:0}
|
|
1
|
+
.chat-shell{background-color:var(--chat-shell-bg);flex-direction:column;block-size:100%;min-block-size:0;display:flex;position:relative}.chat-shell .chat-shell__drawer,.chat-shell .sheet__overlay{position:absolute}.chat-shell .chat-shell__drawer{--sheet-inline-size:100%}.chat-shell__list{inline-size:var(--chat-shell-list-width);flex-shrink:0;block-size:100%;overflow-y:auto}.chat-shell.chat-shell--with-list{gap:var(--chat-shell-gap);flex-direction:row}.chat-shell__main{flex-direction:column;flex:1;min-block-size:0;display:flex}.chat-shell__header{justify-content:space-between;align-items:center;gap:var(--chat-shell-header-gap);flex-shrink:0;display:flex}.chat-shell__list-trigger{flex-shrink:0}.chat-shell__header-content{justify-content:space-between;align-items:center;gap:var(--chat-shell-header-gap);flex:1;min-inline-size:0;display:flex}.chat-shell__thread{--conversation-thread-padding-inline:var(--chat-shell-thread-padding-inline);min-block-size:0;padding-block:var(--chat-shell-thread-padding-block);flex-direction:column;flex:1;display:flex;overflow-y:auto}.chat-shell__composer{flex-shrink:0}
|
package/dist/chat-shell.js
CHANGED
|
@@ -66,15 +66,28 @@ var l = "(min-width: 1024px)", u = a(function({ list: a, header: u, children: d,
|
|
|
66
66
|
})
|
|
67
67
|
]
|
|
68
68
|
}),
|
|
69
|
-
A && /* @__PURE__ */
|
|
69
|
+
A && /* @__PURE__ */ i(n, {
|
|
70
70
|
side: "left",
|
|
71
71
|
open: O,
|
|
72
72
|
onOpenChange: D,
|
|
73
73
|
title: p,
|
|
74
74
|
titleHidden: !0,
|
|
75
75
|
container: w ?? void 0,
|
|
76
|
+
hideClose: !0,
|
|
76
77
|
className: "chat-shell__drawer",
|
|
77
|
-
children:
|
|
78
|
+
children: [/* @__PURE__ */ r(t, {
|
|
79
|
+
variant: "ghost",
|
|
80
|
+
size: "sm",
|
|
81
|
+
iconOnly: !0,
|
|
82
|
+
"aria-label": m,
|
|
83
|
+
"aria-expanded": !0,
|
|
84
|
+
className: "chat-shell__list-trigger",
|
|
85
|
+
onClick: () => D(!1),
|
|
86
|
+
children: /* @__PURE__ */ r(e, {
|
|
87
|
+
name: "layout-sidebar",
|
|
88
|
+
size: "sm"
|
|
89
|
+
})
|
|
90
|
+
}), a]
|
|
78
91
|
})
|
|
79
92
|
]
|
|
80
93
|
});
|
package/dist/sheet.js
CHANGED
|
@@ -12,17 +12,17 @@ function c({ className: e, ...t }) {
|
|
|
12
12
|
...t
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
|
-
function l({ open: i, onOpenChange: l, side: u = "right", title: d, titleHidden: f = !1, description: p, footer: m, children: h, closeLabel: g = "Cerrar",
|
|
15
|
+
function l({ open: i, onOpenChange: l, side: u = "right", title: d, titleHidden: f = !1, description: p, footer: m, children: h, closeLabel: g = "Cerrar", hideClose: _ = !1, trigger: v, container: y, onAnimationEndCapture: b, className: x, ...S }) {
|
|
16
16
|
return /* @__PURE__ */ o(s.Root, {
|
|
17
17
|
open: i,
|
|
18
18
|
onOpenChange: (e) => l(e),
|
|
19
|
-
children: [
|
|
20
|
-
container:
|
|
19
|
+
children: [v && /* @__PURE__ */ a(s.Trigger, { render: v }), /* @__PURE__ */ o(s.Portal, {
|
|
20
|
+
container: y,
|
|
21
21
|
children: [/* @__PURE__ */ a(r, { className: "sheet__overlay" }), /* @__PURE__ */ o(s.Popup, {
|
|
22
|
-
className: ["sheet",
|
|
22
|
+
className: ["sheet", x].filter(Boolean).join(" "),
|
|
23
23
|
"data-side": u,
|
|
24
|
-
onAnimationEndCapture:
|
|
25
|
-
...
|
|
24
|
+
onAnimationEndCapture: b,
|
|
25
|
+
...S,
|
|
26
26
|
children: [
|
|
27
27
|
/* @__PURE__ */ o(n, {
|
|
28
28
|
layout: "stacked",
|
|
@@ -35,7 +35,7 @@ function l({ open: i, onOpenChange: l, side: u = "right", title: d, titleHidden:
|
|
|
35
35
|
children: p
|
|
36
36
|
})]
|
|
37
37
|
}),
|
|
38
|
-
/* @__PURE__ */ a(s.Close, {
|
|
38
|
+
!_ && /* @__PURE__ */ a(s.Close, {
|
|
39
39
|
className: "sheet__close",
|
|
40
40
|
render: /* @__PURE__ */ a(t, { label: g })
|
|
41
41
|
}),
|