@selectwin/kit 0.1.204 → 0.1.206
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/SelectCollapsible.d.ts +4 -0
- package/dist/SelectCollapsible.js +26 -21
- package/dist/SelectPage.d.ts +32 -8
- package/dist/SelectPage.js +111 -61
- package/dist/SelectSection.d.ts +4 -0
- package/dist/SelectSection.js +49 -44
- package/dist/index.d.ts +2 -2
- package/dist/index.js +154 -154
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -3,6 +3,10 @@ type SelectCollapsibleOwnProps = {
|
|
|
3
3
|
title: ReactNode;
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
defaultOpen?: boolean;
|
|
6
|
+
/** 0.1.205: o aberto controlado pela tela (com `onOpenChange`). */
|
|
7
|
+
open?: boolean;
|
|
8
|
+
/** 0.1.205: o cabeçalho pediu para abrir (`true`) ou fechar (`false`). */
|
|
9
|
+
onOpenChange?: (open: boolean) => void;
|
|
6
10
|
plain?: boolean;
|
|
7
11
|
};
|
|
8
12
|
export type SelectCollapsibleProps = SelectCollapsibleOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectCollapsibleOwnProps>;
|
|
@@ -1,40 +1,45 @@
|
|
|
1
1
|
import { ChevronDownIcon as e } from "./icons.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { inertProps as t } from "./internal/inert.js";
|
|
3
|
+
import { forwardRef as n, useId as r, useState as i } from "react";
|
|
4
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
4
5
|
//#region src/SelectCollapsible.tsx
|
|
5
|
-
var
|
|
6
|
-
let [
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
var s = n(function({ title: n, children: s, defaultOpen: c = !1, open: l, onOpenChange: u, plain: d = !1, className: f, ...p }, m) {
|
|
7
|
+
let [h, g] = i(c), _ = l ?? h, v = r(), y = () => {
|
|
8
|
+
l === void 0 && g(!_), u == null || u(!_);
|
|
9
|
+
};
|
|
10
|
+
return /* @__PURE__ */ o("div", {
|
|
11
|
+
ref: m,
|
|
12
|
+
...p,
|
|
13
|
+
className: `select-collapsible${d ? " select-collapsible--plain" : ""}${_ ? " is-open" : ""}${f ? " " + f : ""}`,
|
|
14
|
+
children: [/* @__PURE__ */ o("button", {
|
|
12
15
|
type: "button",
|
|
13
16
|
className: "select-collapsible__header",
|
|
14
|
-
onClick:
|
|
15
|
-
"aria-expanded":
|
|
16
|
-
|
|
17
|
+
onClick: y,
|
|
18
|
+
"aria-expanded": _,
|
|
19
|
+
"aria-controls": v,
|
|
20
|
+
children: [/* @__PURE__ */ a("span", {
|
|
17
21
|
className: "select-collapsible__title",
|
|
18
|
-
children:
|
|
19
|
-
}), /* @__PURE__ */
|
|
22
|
+
children: n
|
|
23
|
+
}), /* @__PURE__ */ a("span", {
|
|
20
24
|
className: "select-collapsible__chevron",
|
|
21
25
|
"aria-hidden": "true",
|
|
22
|
-
children: /* @__PURE__ */
|
|
26
|
+
children: /* @__PURE__ */ a(e, {})
|
|
23
27
|
})]
|
|
24
|
-
}), /* @__PURE__ */
|
|
28
|
+
}), /* @__PURE__ */ a("div", {
|
|
25
29
|
className: "select-collapsible__bodywrap",
|
|
26
|
-
children: /* @__PURE__ */
|
|
30
|
+
children: /* @__PURE__ */ a("div", {
|
|
31
|
+
id: v,
|
|
27
32
|
className: "select-collapsible__bodyclip",
|
|
28
|
-
|
|
29
|
-
children: /* @__PURE__ */
|
|
33
|
+
...t(!_),
|
|
34
|
+
children: /* @__PURE__ */ a("div", {
|
|
30
35
|
className: "select-collapsible__body",
|
|
31
|
-
children:
|
|
36
|
+
children: s
|
|
32
37
|
})
|
|
33
38
|
})
|
|
34
39
|
})]
|
|
35
40
|
});
|
|
36
41
|
});
|
|
37
42
|
//#endregion
|
|
38
|
-
export {
|
|
43
|
+
export { s as SelectCollapsible };
|
|
39
44
|
|
|
40
45
|
//# sourceMappingURL=SelectCollapsible.js.map
|
package/dist/SelectPage.d.ts
CHANGED
|
@@ -7,13 +7,28 @@ export interface SelectPageAction {
|
|
|
7
7
|
loading?: boolean;
|
|
8
8
|
icon?: ReactNode;
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
export interface SelectPageBack {
|
|
11
|
+
/** O clique. Com `to`, roda antes da navegação do link. */
|
|
12
|
+
onAction?: () => void;
|
|
13
|
+
/** 0.1.206: o endereço do app — o voltar é o `<Link>` do roteador (abre em outra aba, copia o endereço). */
|
|
14
|
+
to?: string;
|
|
15
|
+
/** O nome do voltar para o leitor de tela (o padrão: "Voltar"). */
|
|
16
|
+
content?: string;
|
|
17
|
+
}
|
|
18
|
+
/** O cabeçalho da página: o voltar, o contexto, o título, o meta, a descrição, as ações e o destaque (0.1.206). */
|
|
19
|
+
export type SelectPageHeaderProps = {
|
|
11
20
|
title?: ReactNode;
|
|
12
21
|
subtitle?: ReactNode;
|
|
13
22
|
/** Acima do título, em caixa-alta espaçada ("Produção · Segunda, 02 de novembro") — 0.1.188, o tom corporativo. */
|
|
14
23
|
eyebrow?: ReactNode;
|
|
15
|
-
/**
|
|
16
|
-
|
|
24
|
+
/** 0.1.206: a linha acima do título, antes do `eyebrow` (a organização e o workspace, com o trocador). */
|
|
25
|
+
context?: ReactNode;
|
|
26
|
+
/** 0.1.206: os avisos da página, em pilha acima do cabeçalho (a conta em análise, o limite do mês). */
|
|
27
|
+
notices?: ReactNode;
|
|
28
|
+
/** 0.1.206: uma linha sob o título (o estado, as etiquetas). */
|
|
29
|
+
meta?: ReactNode;
|
|
30
|
+
/** 0.1.206: um destaque à direita (o carrossel das análises). Com ele, as ações vão para baixo do texto. */
|
|
31
|
+
aside?: ReactNode;
|
|
17
32
|
primaryAction?: SelectPageAction;
|
|
18
33
|
secondaryActions?: SelectPageAction[];
|
|
19
34
|
/** Custom node in the header action area (e.g. an "Ações" overflow menu on detail
|
|
@@ -23,17 +38,26 @@ type SelectPageOwnProps = {
|
|
|
23
38
|
backAction?: SelectPageBack | null;
|
|
24
39
|
/** Os níveis de CIMA da página, sobre o título ("Club › Cursos"); o título é o nível atual. */
|
|
25
40
|
breadcrumbs?: SelectBreadcrumbItem[];
|
|
41
|
+
};
|
|
42
|
+
type SelectPageOwnProps = SelectPageHeaderProps & {
|
|
43
|
+
/** Um filete separa o cabeçalho do conteúdo (as telas de painel, como o Início). */
|
|
44
|
+
divided?: boolean;
|
|
26
45
|
children: ReactNode;
|
|
27
46
|
};
|
|
28
|
-
export interface SelectPageBack {
|
|
29
|
-
onAction: () => void;
|
|
30
|
-
content?: string;
|
|
31
|
-
}
|
|
32
47
|
/** O voltar das páginas que não dizem o seu (ex.: a tela anterior do app). */
|
|
33
48
|
export declare function SelectPageBackProvider({ value, children }: {
|
|
34
49
|
value: SelectPageBack | null;
|
|
35
50
|
children: ReactNode;
|
|
36
51
|
}): import("react").JSX.Element;
|
|
52
|
+
/**
|
|
53
|
+
* O cabeçalho da página sozinho (0.1.206), para a moldura que já dá a coluna da página. Devolve os avisos e a linha do
|
|
54
|
+
* cabeçalho lado a lado (sem uma caixa em volta): dentro da SelectPage, eles são filhos da coluna dela.
|
|
55
|
+
*/
|
|
56
|
+
export declare function SelectPageHeader({ title, subtitle, eyebrow, context, notices, meta, aside, primaryAction, secondaryActions, headerActions, backAction: ownBack, breadcrumbs, }: SelectPageHeaderProps): import("react").JSX.Element;
|
|
37
57
|
export type SelectPageProps = SelectPageOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectPageOwnProps>;
|
|
38
|
-
export declare const SelectPage: import('react').ForwardRefExoticComponent<
|
|
58
|
+
export declare const SelectPage: import('react').ForwardRefExoticComponent<SelectPageHeaderProps & {
|
|
59
|
+
/** Um filete separa o cabeçalho do conteúdo (as telas de painel, como o Início). */
|
|
60
|
+
divided?: boolean;
|
|
61
|
+
children: ReactNode;
|
|
62
|
+
} & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "children" | keyof SelectPageHeaderProps | "divided"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
39
63
|
export {};
|
package/dist/SelectPage.js
CHANGED
|
@@ -1,85 +1,135 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
import { SelectButton as e } from "./SelectButton.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
3
|
+
import { safeHref as t } from "./internal/safeHref.js";
|
|
4
|
+
import { ArrowLeftIcon as n } from "./icons.js";
|
|
5
|
+
import { useSelectMessages as r } from "./SelectLocale.js";
|
|
6
|
+
import { SelectBreadcrumb as i } from "./SelectBreadcrumb.js";
|
|
7
|
+
import { createContext as a, forwardRef as o, useContext as s } from "react";
|
|
8
|
+
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
9
|
+
import { Link as d } from "react-router-dom";
|
|
8
10
|
//#region src/SelectPage.tsx
|
|
9
|
-
var
|
|
10
|
-
function
|
|
11
|
-
return /* @__PURE__ */
|
|
11
|
+
var f = a(null);
|
|
12
|
+
function p({ value: e, children: t }) {
|
|
13
|
+
return /* @__PURE__ */ l(f.Provider, {
|
|
12
14
|
value: e,
|
|
13
15
|
children: t
|
|
14
16
|
});
|
|
15
17
|
}
|
|
16
|
-
|
|
17
|
-
let
|
|
18
|
-
return /* @__PURE__ */
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
function m({ back: e, label: r }) {
|
|
19
|
+
let i = e.to === void 0 ? void 0 : t(e.to);
|
|
20
|
+
return i === void 0 ? /* @__PURE__ */ l("button", {
|
|
21
|
+
type: "button",
|
|
22
|
+
className: "select-page__back",
|
|
23
|
+
onClick: e.onAction,
|
|
24
|
+
"aria-label": r,
|
|
25
|
+
children: /* @__PURE__ */ l(n, {})
|
|
26
|
+
}) : /* @__PURE__ */ l(d, {
|
|
27
|
+
to: i,
|
|
28
|
+
className: "select-page__back",
|
|
29
|
+
"aria-label": r,
|
|
30
|
+
onClick: e.onAction,
|
|
31
|
+
children: /* @__PURE__ */ l(n, {})
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function h({ title: t, subtitle: n, eyebrow: a, context: o, notices: d, meta: p, aside: h, primaryAction: g, secondaryActions: _, headerActions: v, backAction: y, breadcrumbs: b }) {
|
|
35
|
+
let x = r(), S = s(f), C = y === null ? null : y ?? S, w = !!g || _ && _.length > 0 || !!v, T = C || t || n || a || w || o || p || h, E = w ? /* @__PURE__ */ u("div", {
|
|
36
|
+
className: `select-page__actions${h ? " select-page__actions--below" : ""}`,
|
|
37
|
+
children: [
|
|
38
|
+
_ == null ? void 0 : _.map((t, n) => /* @__PURE__ */ l(e, {
|
|
39
|
+
variant: "secondary",
|
|
40
|
+
size: "sm",
|
|
41
|
+
inline: !0,
|
|
42
|
+
icon: t.icon,
|
|
43
|
+
disabled: t.disabled,
|
|
44
|
+
loading: t.loading,
|
|
45
|
+
onClick: t.onAction,
|
|
46
|
+
children: t.content
|
|
47
|
+
}, n)),
|
|
48
|
+
g && /* @__PURE__ */ l(e, {
|
|
49
|
+
variant: "primary",
|
|
50
|
+
size: "sm",
|
|
51
|
+
inline: !0,
|
|
52
|
+
icon: g.icon,
|
|
53
|
+
disabled: g.disabled,
|
|
54
|
+
loading: g.loading,
|
|
55
|
+
onClick: g.onAction,
|
|
56
|
+
children: g.content
|
|
57
|
+
}),
|
|
58
|
+
v
|
|
59
|
+
]
|
|
60
|
+
}) : null;
|
|
61
|
+
return /* @__PURE__ */ u(c, { children: [d != null && d !== !1 && /* @__PURE__ */ l("div", {
|
|
62
|
+
className: "select-page__notices",
|
|
63
|
+
children: d
|
|
64
|
+
}), T && /* @__PURE__ */ u("div", {
|
|
65
|
+
className: `select-page__header${h ? " select-page__header--aside" : ""}`,
|
|
66
|
+
children: [
|
|
67
|
+
/* @__PURE__ */ u("div", {
|
|
25
68
|
className: "select-page__heading",
|
|
26
|
-
children: [C && /* @__PURE__ */
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"aria-label": C.content ?? x.common.back,
|
|
31
|
-
children: /* @__PURE__ */ s(t, {})
|
|
32
|
-
}), /* @__PURE__ */ c("div", {
|
|
69
|
+
children: [C && /* @__PURE__ */ l(m, {
|
|
70
|
+
back: C,
|
|
71
|
+
label: C.content ?? x.common.back
|
|
72
|
+
}), /* @__PURE__ */ u("div", {
|
|
33
73
|
className: "select-page__head",
|
|
34
74
|
children: [
|
|
35
|
-
|
|
36
|
-
items:
|
|
75
|
+
b && b.length > 0 && /* @__PURE__ */ l(i, {
|
|
76
|
+
items: b,
|
|
37
77
|
lastIsCurrent: !1
|
|
38
78
|
}),
|
|
39
|
-
|
|
79
|
+
o && /* @__PURE__ */ l("div", {
|
|
80
|
+
className: "select-page__context",
|
|
81
|
+
children: o
|
|
82
|
+
}),
|
|
83
|
+
a && /* @__PURE__ */ l("p", {
|
|
40
84
|
className: "select-page__eyebrow",
|
|
41
|
-
children:
|
|
85
|
+
children: a
|
|
42
86
|
}),
|
|
43
|
-
|
|
87
|
+
t && /* @__PURE__ */ l("h1", {
|
|
44
88
|
className: "select-page__title",
|
|
45
|
-
children:
|
|
89
|
+
children: t
|
|
46
90
|
}),
|
|
47
|
-
|
|
91
|
+
p && /* @__PURE__ */ l("div", {
|
|
92
|
+
className: "select-page__meta",
|
|
93
|
+
children: p
|
|
94
|
+
}),
|
|
95
|
+
n && /* @__PURE__ */ l("p", {
|
|
48
96
|
className: "select-page__subtitle",
|
|
49
|
-
children:
|
|
50
|
-
})
|
|
97
|
+
children: n
|
|
98
|
+
}),
|
|
99
|
+
h && E
|
|
51
100
|
]
|
|
52
101
|
})]
|
|
53
|
-
}),
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
102
|
+
}),
|
|
103
|
+
!h && E,
|
|
104
|
+
h && /* @__PURE__ */ l("div", {
|
|
105
|
+
className: "select-page__aside",
|
|
106
|
+
children: h
|
|
107
|
+
})
|
|
108
|
+
]
|
|
109
|
+
})] });
|
|
110
|
+
}
|
|
111
|
+
var g = o(function({ title: e, subtitle: t, eyebrow: n, context: r, notices: i, meta: a, aside: o, divided: s = !1, primaryAction: c, secondaryActions: d, headerActions: f, backAction: p, breadcrumbs: m, children: g, className: _, ...v }, y) {
|
|
112
|
+
return /* @__PURE__ */ u("div", {
|
|
113
|
+
ref: y,
|
|
114
|
+
...v,
|
|
115
|
+
className: `select select-page${s ? " select-page--divided" : ""}${_ ? " " + _ : ""}`,
|
|
116
|
+
children: [/* @__PURE__ */ l(h, {
|
|
117
|
+
title: e,
|
|
118
|
+
subtitle: t,
|
|
119
|
+
eyebrow: n,
|
|
120
|
+
context: r,
|
|
121
|
+
notices: i,
|
|
122
|
+
meta: a,
|
|
123
|
+
aside: o,
|
|
124
|
+
primaryAction: c,
|
|
125
|
+
secondaryActions: d,
|
|
126
|
+
headerActions: f,
|
|
127
|
+
backAction: p,
|
|
128
|
+
breadcrumbs: m
|
|
129
|
+
}), g]
|
|
80
130
|
});
|
|
81
131
|
});
|
|
82
132
|
//#endregion
|
|
83
|
-
export {
|
|
133
|
+
export { g as SelectPage, p as SelectPageBackProvider, h as SelectPageHeader };
|
|
84
134
|
|
|
85
135
|
//# sourceMappingURL=SelectPage.js.map
|
package/dist/SelectSection.d.ts
CHANGED
|
@@ -15,6 +15,10 @@ type SelectSectionOwnProps = {
|
|
|
15
15
|
collapsible?: boolean;
|
|
16
16
|
/** Initial open state when collapsible. Default open. */
|
|
17
17
|
defaultOpen?: boolean;
|
|
18
|
+
/** 0.1.205: o aberto controlado pela tela (com `onOpenChange`); sem ele, a seção guarda o estado (`defaultOpen`). */
|
|
19
|
+
open?: boolean;
|
|
20
|
+
/** 0.1.205: o cabeçalho pediu para abrir (`true`) ou fechar (`false`). */
|
|
21
|
+
onOpenChange?: (open: boolean) => void;
|
|
18
22
|
/**
|
|
19
23
|
* Linha de rodapé na moldura cinza, sob o corpo (0.1.135) — a nota que vale para o card inteiro
|
|
20
24
|
* ("A mesma compra não conta duas vezes…"). Fica FORA do corpo para não virar um segundo filho
|
package/dist/SelectSection.js
CHANGED
|
@@ -2,82 +2,87 @@
|
|
|
2
2
|
import { ChevronDownIcon as e } from "./icons.js";
|
|
3
3
|
import { SelectInfoTip as t } from "./SelectInfoTip.js";
|
|
4
4
|
import { FrameBody as n, useInsideFrame as r } from "./internal/frame.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { inertProps as i } from "./internal/inert.js";
|
|
6
|
+
import { forwardRef as a, useId as o, useState as s } from "react";
|
|
7
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
7
8
|
//#region src/SelectSection.tsx
|
|
8
|
-
var
|
|
9
|
-
let [
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
var u = a(function({ title: a, help: u, description: d, action: f, collapsible: p = !1, defaultOpen: m = !0, open: h, onOpenChange: g, footer: _, flush: v = !1, children: y, className: b, ...x }, S) {
|
|
10
|
+
let [C, w] = s(m), T = h ?? C, E = o(), D = () => {
|
|
11
|
+
h === void 0 && w(!T), g == null || g(!T);
|
|
12
|
+
}, O = (r() ? " select-section--nested" : "") + (v ? " select-section--flush" : "");
|
|
13
|
+
return p ? /* @__PURE__ */ l("div", {
|
|
14
|
+
ref: S,
|
|
15
|
+
...x,
|
|
16
|
+
className: `select-section select-section--collapsible${O}${T ? " is-open" : ""}${b ? " " + b : ""}`,
|
|
17
|
+
children: [/* @__PURE__ */ l("button", {
|
|
15
18
|
type: "button",
|
|
16
19
|
className: "select-section__head select-section__head--toggle",
|
|
17
|
-
"aria-expanded":
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
"aria-expanded": T,
|
|
21
|
+
"aria-controls": E,
|
|
22
|
+
onClick: D,
|
|
23
|
+
children: [/* @__PURE__ */ l("span", {
|
|
20
24
|
className: "select-section__heading",
|
|
21
|
-
children: [
|
|
25
|
+
children: [a && /* @__PURE__ */ c("span", {
|
|
22
26
|
className: "select-section__title",
|
|
23
|
-
children:
|
|
24
|
-
}),
|
|
27
|
+
children: a
|
|
28
|
+
}), d && /* @__PURE__ */ c("span", {
|
|
25
29
|
className: "select-section__desc",
|
|
26
|
-
children:
|
|
30
|
+
children: d
|
|
27
31
|
})]
|
|
28
|
-
}), /* @__PURE__ */
|
|
32
|
+
}), /* @__PURE__ */ c("span", {
|
|
29
33
|
className: "select-section__chevron",
|
|
30
34
|
"aria-hidden": "true",
|
|
31
|
-
children: /* @__PURE__ */
|
|
35
|
+
children: /* @__PURE__ */ c(e, {})
|
|
32
36
|
})]
|
|
33
|
-
}), /* @__PURE__ */
|
|
37
|
+
}), /* @__PURE__ */ c("div", {
|
|
38
|
+
id: E,
|
|
34
39
|
className: "select-section__collapse",
|
|
35
|
-
"data-open":
|
|
36
|
-
|
|
37
|
-
children: /* @__PURE__ */
|
|
40
|
+
"data-open": T,
|
|
41
|
+
...i(!T),
|
|
42
|
+
children: /* @__PURE__ */ l("div", {
|
|
38
43
|
className: "select-section__collapsewrap",
|
|
39
|
-
children: [/* @__PURE__ */
|
|
44
|
+
children: [/* @__PURE__ */ c("div", {
|
|
40
45
|
className: "select-section__body",
|
|
41
|
-
children: /* @__PURE__ */
|
|
42
|
-
}),
|
|
46
|
+
children: /* @__PURE__ */ c(n, { children: y })
|
|
47
|
+
}), _ != null && _ !== "" && /* @__PURE__ */ c("div", {
|
|
43
48
|
className: "select-section__foot",
|
|
44
|
-
children:
|
|
49
|
+
children: _
|
|
45
50
|
})]
|
|
46
51
|
})
|
|
47
52
|
})]
|
|
48
|
-
}) : /* @__PURE__ */
|
|
49
|
-
ref:
|
|
50
|
-
...
|
|
51
|
-
className: `select-section${
|
|
53
|
+
}) : /* @__PURE__ */ l("div", {
|
|
54
|
+
ref: S,
|
|
55
|
+
...x,
|
|
56
|
+
className: `select-section${O}${b ? " " + b : ""}`,
|
|
52
57
|
children: [
|
|
53
|
-
(
|
|
58
|
+
(a || d || f) && /* @__PURE__ */ l("div", {
|
|
54
59
|
className: "select-section__head",
|
|
55
|
-
children: [/* @__PURE__ */
|
|
60
|
+
children: [/* @__PURE__ */ l("div", {
|
|
56
61
|
className: "select-section__heading",
|
|
57
|
-
children: [
|
|
58
|
-
className: `select-section__title${
|
|
59
|
-
children: [
|
|
60
|
-
}),
|
|
62
|
+
children: [a && /* @__PURE__ */ l("h2", {
|
|
63
|
+
className: `select-section__title${u == null ? "" : " select-section__title--help"}`,
|
|
64
|
+
children: [a, u != null && /* @__PURE__ */ c(t, { content: u })]
|
|
65
|
+
}), d && /* @__PURE__ */ c("p", {
|
|
61
66
|
className: "select-section__desc",
|
|
62
|
-
children:
|
|
67
|
+
children: d
|
|
63
68
|
})]
|
|
64
|
-
}),
|
|
69
|
+
}), f ? /* @__PURE__ */ c("div", {
|
|
65
70
|
className: "select-section__action",
|
|
66
|
-
children:
|
|
71
|
+
children: f
|
|
67
72
|
}) : null]
|
|
68
73
|
}),
|
|
69
|
-
/* @__PURE__ */
|
|
74
|
+
/* @__PURE__ */ c("div", {
|
|
70
75
|
className: "select-section__body",
|
|
71
|
-
children: /* @__PURE__ */
|
|
76
|
+
children: /* @__PURE__ */ c(n, { children: y })
|
|
72
77
|
}),
|
|
73
|
-
|
|
78
|
+
_ != null && _ !== "" && /* @__PURE__ */ c("div", {
|
|
74
79
|
className: "select-section__foot",
|
|
75
|
-
children:
|
|
80
|
+
children: _
|
|
76
81
|
})
|
|
77
82
|
]
|
|
78
83
|
});
|
|
79
84
|
});
|
|
80
85
|
//#endregion
|
|
81
|
-
export {
|
|
86
|
+
export { u as SelectSection };
|
|
82
87
|
|
|
83
88
|
//# sourceMappingURL=SelectSection.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ export { SelectPasswordStrength, passwordScore, type SelectPasswordRule } from '
|
|
|
55
55
|
export { SelectLoader, type SelectLoaderProps } from './SelectLoader';
|
|
56
56
|
export { SelectText } from './SelectText';
|
|
57
57
|
export { SelectBox, SelectStack, SelectInline, SelectGrid } from './SelectLayout';
|
|
58
|
-
export { SelectPage, SelectPageBackProvider } from './SelectPage';
|
|
58
|
+
export { SelectPage, SelectPageBackProvider, SelectPageHeader } from './SelectPage';
|
|
59
59
|
export { SelectFormLayout } from './SelectFormLayout';
|
|
60
60
|
export { SelectSkeleton } from './SelectSkeleton';
|
|
61
61
|
export { SelectIcon } from './SelectIcon';
|
|
@@ -287,7 +287,7 @@ export type { SelectKeyValuePair, SelectKeyValueEditorProps } from './SelectKeyV
|
|
|
287
287
|
export type { SelectBankAccount, SelectBankOption } from './SelectBankAccountField';
|
|
288
288
|
export type { SelectSpace } from './spacing';
|
|
289
289
|
export type { SelectTextVariant, SelectTextTone, SelectFontWeight } from './SelectText';
|
|
290
|
-
export type { SelectPageAction, SelectPageBack } from './SelectPage';
|
|
290
|
+
export type { SelectPageAction, SelectPageBack, SelectPageHeaderProps } from './SelectPage';
|
|
291
291
|
export type { SelectIconTone, SelectIconSize } from './SelectIcon';
|
|
292
292
|
export type { SelectPlacement } from './positioning';
|
|
293
293
|
export type { SelectAction, SelectActionSection } from './SelectActionList';
|