@selectwin/kit 0.1.182 → 0.1.183
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/SelectFlowCanvas.d.ts +8 -2
- package/dist/index.js +32 -10
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -94,11 +94,17 @@ export interface SelectFlowLayoutProps {
|
|
|
94
94
|
inspectorHead?: ReactNode;
|
|
95
95
|
inspector: ReactNode;
|
|
96
96
|
inspectorLabel?: string;
|
|
97
|
+
/** No celular (≤48em) o painel vira FOLHA por cima do desenho: sobe com `inspectorOpen` (algo selecionado) e
|
|
98
|
+
* fecha pelo `onInspectorClose`. Sem `inspectorOpen`, ele segue embaixo do canvas, como antes. No desktop
|
|
99
|
+
* nada muda: o painel é a coluna da direita. */
|
|
100
|
+
inspectorOpen?: boolean;
|
|
101
|
+
onInspectorClose?: () => void;
|
|
97
102
|
}
|
|
98
103
|
/**
|
|
99
104
|
* SelectFlowLayout — a página de um editor de fluxo: barra (voltar · identidade · ferramentas · ações),
|
|
100
105
|
* o canvas ocupando o que sobra e um painel lateral para o bloco selecionado. Como o
|
|
101
106
|
* `SelectBuilderWorkspace`, mede `height: 100%` e governa a própria rolagem (o shell zera o respiro
|
|
102
|
-
* de rodapé para ela). Em telas estreitas o painel desce para baixo do canvas
|
|
107
|
+
* de rodapé para ela). Em telas estreitas o painel desce para baixo do canvas — ou, com `inspectorOpen`, vira
|
|
108
|
+
* uma folha que sobe por cima do desenho no celular, e o desenho fica com a tela inteira.
|
|
103
109
|
*/
|
|
104
|
-
export declare function SelectFlowLayout({ title, subtitle, onBack, backLabel, toolbar, actions, error, canvas, inspectorHead, inspector, inspectorLabel, }: SelectFlowLayoutProps): import("react").JSX.Element;
|
|
110
|
+
export declare function SelectFlowLayout({ title, subtitle, onBack, backLabel, toolbar, actions, error, canvas, inspectorHead, inspector, inspectorLabel, inspectorOpen, onInspectorClose, }: SelectFlowLayoutProps): import("react").JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -3039,12 +3039,18 @@ function zn(e) {
|
|
|
3039
3039
|
//#endregion
|
|
3040
3040
|
//#region src/SelectAlert.tsx
|
|
3041
3041
|
var Bn = r(function({ children: e, tone: t = "critical", title: n, action: r, className: i, ...a }, o) {
|
|
3042
|
+
let s = t === "critical";
|
|
3042
3043
|
return /* @__PURE__ */ v("div", {
|
|
3043
3044
|
ref: o,
|
|
3044
3045
|
...a,
|
|
3045
|
-
className: `select-alert select-alert--${t}${i ? " " + i : ""}`,
|
|
3046
|
+
className: `select-alert select-alert--${t}${s ? " select-alert--icon" : ""}${i ? " " + i : ""}`,
|
|
3046
3047
|
role: "alert",
|
|
3047
3048
|
children: [
|
|
3049
|
+
s && /* @__PURE__ */ _("span", {
|
|
3050
|
+
className: "select-alert__icon",
|
|
3051
|
+
"aria-hidden": "true",
|
|
3052
|
+
children: /* @__PURE__ */ _(Ce, {})
|
|
3053
|
+
}),
|
|
3048
3054
|
n != null && /* @__PURE__ */ _("p", {
|
|
3049
3055
|
className: "select-alert__title",
|
|
3050
3056
|
children: n
|
|
@@ -31307,9 +31313,10 @@ function am({ x: e, y: t, width: n, height: r, shape: i = "card", tone: a = "neu
|
|
|
31307
31313
|
})]
|
|
31308
31314
|
});
|
|
31309
31315
|
}
|
|
31310
|
-
function om({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar: i, actions: a, error: o, canvas: s, inspectorHead: c, inspector: l, inspectorLabel: u = "Painel" }) {
|
|
31316
|
+
function om({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar: i, actions: a, error: o, canvas: s, inspectorHead: c, inspector: l, inspectorLabel: u = "Painel", inspectorOpen: d, onInspectorClose: f }) {
|
|
31317
|
+
let p = d !== void 0;
|
|
31311
31318
|
return /* @__PURE__ */ v("div", {
|
|
31312
|
-
className: "select-flowpage"
|
|
31319
|
+
className: `select-flowpage${p ? " select-flowpage--sheet" : ""}${p && d ? " is-inspecting" : ""}`,
|
|
31313
31320
|
children: [
|
|
31314
31321
|
/* @__PURE__ */ v("header", {
|
|
31315
31322
|
className: "select-flowpage__bar",
|
|
@@ -31355,13 +31362,28 @@ function om({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar
|
|
|
31355
31362
|
}), /* @__PURE__ */ v("aside", {
|
|
31356
31363
|
className: "select-flowpage__inspector",
|
|
31357
31364
|
"aria-label": u,
|
|
31358
|
-
children: [
|
|
31359
|
-
|
|
31360
|
-
|
|
31361
|
-
|
|
31362
|
-
|
|
31363
|
-
|
|
31364
|
-
|
|
31365
|
+
children: [
|
|
31366
|
+
p && f && /* @__PURE__ */ v("button", {
|
|
31367
|
+
type: "button",
|
|
31368
|
+
className: "select-flowpage__sheetclose",
|
|
31369
|
+
onClick: f,
|
|
31370
|
+
children: [/* @__PURE__ */ _("span", {
|
|
31371
|
+
className: "select-flowpage__sheetgrip",
|
|
31372
|
+
"aria-hidden": "true"
|
|
31373
|
+
}), /* @__PURE__ */ v("span", {
|
|
31374
|
+
className: "select-flowpage__sheetlabel",
|
|
31375
|
+
children: [/* @__PURE__ */ _(de, {}), "Fechar"]
|
|
31376
|
+
})]
|
|
31377
|
+
}),
|
|
31378
|
+
c != null && /* @__PURE__ */ _("div", {
|
|
31379
|
+
className: "select-flowpage__inspectorhead",
|
|
31380
|
+
children: c
|
|
31381
|
+
}),
|
|
31382
|
+
/* @__PURE__ */ _("div", {
|
|
31383
|
+
className: "select-flowpage__inspectorbody",
|
|
31384
|
+
children: l
|
|
31385
|
+
})
|
|
31386
|
+
]
|
|
31365
31387
|
})]
|
|
31366
31388
|
})
|
|
31367
31389
|
]
|