@selectwin/kit 0.1.238 → 0.1.240

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.
@@ -33,6 +33,8 @@ type SelectRecordCardOwnProps = {
33
33
  to?: string;
34
34
  /** Faixa de destaque no topo (ex.: o registro em vigor). */
35
35
  accent?: boolean;
36
+ /** 0.1.240: o card do que está aberto ao lado (a conexão escolhida): a borda forte e `aria-current`. */
37
+ selected?: boolean;
36
38
  /**
37
39
  * Capa larga (16:9) no topo do card — a imagem que o lojista reconhece de relance (a capa de
38
40
  * um curso). `null` = o registro não tem capa: mostra `coverFallback` num fundo neutro, para a
@@ -3,24 +3,25 @@ import { forwardRef as t, useEffect as n, useState as r } from "react";
3
3
  import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
4
4
  import { Link as s } from "react-router-dom";
5
5
  //#region src/SelectRecordCard.tsx
6
- var c = t(function({ media: t, title: n, subtitle: r, actions: i, body: c, facts: d, tags: f, status: p, meta: m, to: h, accent: g = !1, cover: _, coverFallback: v, preview: y, className: b, ...x }, S) {
7
- let C = p != null || m != null, w = e(h);
6
+ var c = t(function({ media: t, title: n, subtitle: r, actions: i, body: c, facts: d, tags: f, status: p, meta: m, to: h, accent: g = !1, selected: _ = !1, cover: v, coverFallback: y, preview: b, className: x, ...S }, C) {
7
+ let w = p != null || m != null, T = e(h);
8
8
  return /* @__PURE__ */ o("div", {
9
- ref: S,
10
- ...x,
11
- className: `select-rcard${w ? " select-rcard--link" : ""}${b ? " " + b : ""}`,
9
+ ref: C,
10
+ "aria-current": _ || void 0,
11
+ ...S,
12
+ className: `select-rcard${T ? " select-rcard--link" : ""}${_ ? " is-selected" : ""}${x ? " " + x : ""}`,
12
13
  children: [
13
14
  g && /* @__PURE__ */ a("span", {
14
15
  className: "select-rcard__accent",
15
16
  "aria-hidden": "true"
16
17
  }),
17
- _ === void 0 ? y ? /* @__PURE__ */ a("span", {
18
+ v === void 0 ? b ? /* @__PURE__ */ a("span", {
18
19
  className: "select-rcard__preview",
19
20
  "aria-hidden": "true",
20
- children: y
21
+ children: b
21
22
  }) : null : /* @__PURE__ */ a(u, {
22
- src: _,
23
- fallback: v
23
+ src: v,
24
+ fallback: y
24
25
  }),
25
26
  /* @__PURE__ */ o("div", {
26
27
  className: "select-rcard__main",
@@ -36,8 +37,8 @@ var c = t(function({ media: t, title: n, subtitle: r, actions: i, body: c, facts
36
37
  className: "select-rcard__ident",
37
38
  children: [/* @__PURE__ */ a("span", {
38
39
  className: "select-rcard__title",
39
- children: w ? /* @__PURE__ */ a(s, {
40
- to: w,
40
+ children: T ? /* @__PURE__ */ a(s, {
41
+ to: T,
41
42
  className: "select-rcard__link",
42
43
  children: n
43
44
  }) : n
@@ -66,7 +67,7 @@ var c = t(function({ media: t, title: n, subtitle: r, actions: i, body: c, facts
66
67
  })
67
68
  ]
68
69
  }),
69
- C && /* @__PURE__ */ o("div", {
70
+ w && /* @__PURE__ */ o("div", {
70
71
  className: "select-rcard__foot",
71
72
  children: [p && /* @__PURE__ */ o("span", {
72
73
  className: "select-rcard__status",
@@ -129,9 +129,14 @@ type SelectTableRowOwnProps = {
129
129
  * linha toda (`<SelectTableCell span="all">`), no fundo afundado.
130
130
  */
131
131
  section?: boolean;
132
+ /**
133
+ * 0.1.240: a linha de um registro desligado (a automação pausada): as células esmaecem; a que tem um controle (a
134
+ * chave, o menu) fica cheia.
135
+ */
136
+ muted?: boolean;
132
137
  };
133
138
  export type SelectTableRowProps = SelectTableRowOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectTableRowOwnProps | 'role'>;
134
- export declare function SelectTableRow({ children, onClick, expanded, nested, current, section, className, ...rest }: SelectTableRowProps): import("react").JSX.Element;
139
+ export declare function SelectTableRow({ children, onClick, expanded, nested, current, section, muted, className, ...rest }: SelectTableRowProps): import("react").JSX.Element;
135
140
  type SelectTableCellOwnProps = {
136
141
  children: ReactNode;
137
142
  align?: 'start' | 'end' | 'center';
@@ -207,11 +207,11 @@ var O = d(function({ name: e, secondary: t, src: n, badge: r, className: i, ...o
207
207
  })]
208
208
  });
209
209
  });
210
- function k({ children: e, onClick: t, expanded: n, nested: r = !1, current: i = !1, section: a = !1, className: o, ...s }) {
211
- let c = `select-table__row${t ? " select-table__row--clickable" : ""}${r ? " select-table__row--nested" : ""}${a ? " select-table__row--section" : ""}${n ? " is-expanded" : ""}${i ? " is-current" : ""}${o ? " " + o : ""}`;
210
+ function k({ children: e, onClick: t, expanded: n, nested: r = !1, current: i = !1, section: a = !1, muted: o = !1, className: s, ...c }) {
211
+ let l = `select-table__row${t ? " select-table__row--clickable" : ""}${r ? " select-table__row--nested" : ""}${a ? " select-table__row--section" : ""}${o ? " select-table__row--muted" : ""}${n ? " is-expanded" : ""}${i ? " is-current" : ""}${s ? " " + s : ""}`;
212
212
  return t ? /* @__PURE__ */ y("div", {
213
- ...s,
214
- className: c,
213
+ ...c,
214
+ className: l,
215
215
  role: "row",
216
216
  tabIndex: 0,
217
217
  "aria-expanded": n,
@@ -224,8 +224,8 @@ function k({ children: e, onClick: t, expanded: n, nested: r = !1, current: i =
224
224
  },
225
225
  children: e
226
226
  }) : /* @__PURE__ */ y("div", {
227
- ...s,
228
- className: c,
227
+ ...c,
228
+ className: l,
229
229
  role: "row",
230
230
  "aria-current": i || void 0,
231
231
  children: e