@selectwin/kit 0.1.130 → 0.1.131
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/SelectListCard.d.ts +7 -1
- package/dist/index.js +9 -9
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/SelectListCard.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ type SelectListCardOwnProps = {
|
|
|
20
20
|
};
|
|
21
21
|
export type SelectListCardProps = SelectListCardOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectListCardOwnProps>;
|
|
22
22
|
export declare const SelectListCard: import('react').ForwardRefExoticComponent<SelectListCardOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectListCardOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
|
|
23
|
-
export declare function SelectListRow({ media, mediaSize, title, secondary, action, muted, onClick, }: {
|
|
23
|
+
export declare function SelectListRow({ media, mediaSize, title, secondary, action, muted, wrap, onClick, }: {
|
|
24
24
|
/** Leading visual — an icon or SelectAvatar. */
|
|
25
25
|
media?: ReactNode;
|
|
26
26
|
/** `icon` (padrão) encaixa um glifo cru numa caixa de 1.25rem; `auto` deixa o visual com o
|
|
@@ -33,6 +33,12 @@ export declare function SelectListRow({ media, mediaSize, title, secondary, acti
|
|
|
33
33
|
action?: ReactNode;
|
|
34
34
|
/** Dim the title/media (e.g. a disabled field). */
|
|
35
35
|
muted?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* A ação é LARGA (um preço com a situação embaixo + um botão, 0.1.131): no estreito ela desce para
|
|
38
|
+
* baixo do texto, alinhada à direita, em vez de espremer o título numa coluna de uma palavra por linha.
|
|
39
|
+
* No largo, tudo segue numa linha só.
|
|
40
|
+
*/
|
|
41
|
+
wrap?: boolean;
|
|
36
42
|
onClick?: () => void;
|
|
37
43
|
}): import("react").JSX.Element;
|
|
38
44
|
/**
|
package/dist/index.js
CHANGED
|
@@ -25692,8 +25692,8 @@ var jl = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
25692
25692
|
]
|
|
25693
25693
|
});
|
|
25694
25694
|
});
|
|
25695
|
-
function Nl({ media: e, mediaSize: t = "icon", title: n, secondary: r, action: i, muted: a = !1,
|
|
25696
|
-
let
|
|
25695
|
+
function Nl({ media: e, mediaSize: t = "icon", title: n, secondary: r, action: i, muted: a = !1, wrap: o = !1, onClick: s }) {
|
|
25696
|
+
let c = /* @__PURE__ */ h(p, { children: [
|
|
25697
25697
|
e && /* @__PURE__ */ m("span", {
|
|
25698
25698
|
className: `select-listrow__media${t === "auto" ? " select-listrow__media--auto" : ""}`,
|
|
25699
25699
|
"aria-hidden": "true",
|
|
@@ -25713,15 +25713,15 @@ function Nl({ media: e, mediaSize: t = "icon", title: n, secondary: r, action: i
|
|
|
25713
25713
|
className: "select-listrow__action",
|
|
25714
25714
|
children: i
|
|
25715
25715
|
})
|
|
25716
|
-
] }),
|
|
25717
|
-
return
|
|
25716
|
+
] }), l = `select-listrow${a ? " select-listrow--muted" : ""}${o ? " select-listrow--wrap" : ""}`;
|
|
25717
|
+
return s ? /* @__PURE__ */ m("button", {
|
|
25718
25718
|
type: "button",
|
|
25719
|
-
className: `${
|
|
25720
|
-
onClick:
|
|
25721
|
-
children:
|
|
25719
|
+
className: `${l} select-listrow--clickable`,
|
|
25720
|
+
onClick: s,
|
|
25721
|
+
children: c
|
|
25722
25722
|
}) : /* @__PURE__ */ m("div", {
|
|
25723
|
-
className:
|
|
25724
|
-
children:
|
|
25723
|
+
className: l,
|
|
25724
|
+
children: c
|
|
25725
25725
|
});
|
|
25726
25726
|
}
|
|
25727
25727
|
function Pl({ children: e }) {
|