@selectwin/kit 0.1.219 → 0.1.220
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/SelectCarousel.d.ts +22 -0
- package/dist/SelectCarousel.js +133 -0
- package/dist/SelectLocale.d.ts +12 -0
- package/dist/SelectLocale.js +22 -0
- package/dist/SelectSetupGuide.d.ts +6 -0
- package/dist/SelectSetupGuide.js +108 -92
- package/dist/icons.d.ts +2 -0
- package/dist/icons.js +44 -41
- package/dist/index.d.ts +2 -0
- package/dist/index.js +215 -214
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
export interface SelectCarouselSlide {
|
|
3
|
+
key: string;
|
|
4
|
+
/** O título do slide ("Entrega no período"): o cabeçalho dele e o nome do ponto que leva até ele. */
|
|
5
|
+
title: string;
|
|
6
|
+
/** A análise em uma frase. */
|
|
7
|
+
text: ReactNode;
|
|
8
|
+
/** Para onde a seta leva: um endereço do app (o `<Link>` do roteador). */
|
|
9
|
+
to?: string;
|
|
10
|
+
/** Ou um endereço de fora. */
|
|
11
|
+
href?: string;
|
|
12
|
+
}
|
|
13
|
+
type SelectCarouselOwnProps = {
|
|
14
|
+
slides: readonly SelectCarouselSlide[];
|
|
15
|
+
/** O nome do carrossel ("Análises do período"); padrão: "Destaques". */
|
|
16
|
+
label?: string;
|
|
17
|
+
/** De quanto em quanto tempo passa sozinho, em ms (padrão 7000). */
|
|
18
|
+
interval?: number;
|
|
19
|
+
};
|
|
20
|
+
export type SelectCarouselProps = SelectCarouselOwnProps & Omit<ComponentPropsWithoutRef<'section'>, keyof SelectCarouselOwnProps>;
|
|
21
|
+
export declare function SelectCarousel({ slides, label, interval, className, ...rest }: SelectCarouselProps): import("react").JSX.Element | null;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { safeHref as e } from "./internal/safeHref.js";
|
|
3
|
+
import { ArrowUpRightIcon as t, ChevronLeftIcon as n, ChevronRightIcon as r, PauseIcon as i, PlayIcon as a } from "./icons.js";
|
|
4
|
+
import { formatSelectNumber as o, useSelectLocale as s, useSelectMessages as c } from "./SelectLocale.js";
|
|
5
|
+
import { useEffect as l, useRef as u, useState as d } from "react";
|
|
6
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
7
|
+
import { Link as m } from "react-router-dom";
|
|
8
|
+
//#region src/SelectCarousel.tsx
|
|
9
|
+
var h = () => typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
10
|
+
function g({ slides: g, label: _, interval: v = 7e3, className: y, ...b }) {
|
|
11
|
+
let x = c().carousel, S = s(), C = g.length, [w, T] = d(0), [E, D] = d(!1), [O, k] = d(() => !h()), [A, j] = d(!1), M = u(null), N = Math.min(w, Math.max(0, C - 1)), P = O && !A && C > 1;
|
|
12
|
+
l(() => {
|
|
13
|
+
if (!P) return;
|
|
14
|
+
let e = window.setTimeout(() => {
|
|
15
|
+
D(!1), T((e) => (e + 1) % C);
|
|
16
|
+
}, v);
|
|
17
|
+
return () => window.clearTimeout(e);
|
|
18
|
+
}, [
|
|
19
|
+
P,
|
|
20
|
+
C,
|
|
21
|
+
w,
|
|
22
|
+
v
|
|
23
|
+
]);
|
|
24
|
+
let F = (e) => {
|
|
25
|
+
D(e < N), T((e % C + C) % C);
|
|
26
|
+
}, I = g[N];
|
|
27
|
+
if (!I) return null;
|
|
28
|
+
let L = e(I.to ?? I.href), R = L === void 0 ? null : I.to == null ? /* @__PURE__ */ f("a", {
|
|
29
|
+
href: L,
|
|
30
|
+
className: "select-carousel__go",
|
|
31
|
+
"aria-label": x.open(I.title),
|
|
32
|
+
children: /* @__PURE__ */ f(t, {})
|
|
33
|
+
}) : /* @__PURE__ */ f(m, {
|
|
34
|
+
to: L,
|
|
35
|
+
className: "select-carousel__go",
|
|
36
|
+
"aria-label": x.open(I.title),
|
|
37
|
+
children: /* @__PURE__ */ f(t, {})
|
|
38
|
+
});
|
|
39
|
+
return /* @__PURE__ */ p("section", {
|
|
40
|
+
...b,
|
|
41
|
+
className: `select-carousel${y ? " " + y : ""}`,
|
|
42
|
+
"aria-roledescription": x.carousel,
|
|
43
|
+
"aria-label": _ ?? x.label,
|
|
44
|
+
onMouseEnter: () => j(!0),
|
|
45
|
+
onMouseLeave: () => j(!1),
|
|
46
|
+
onFocus: () => j(!0),
|
|
47
|
+
onBlur: (e) => {
|
|
48
|
+
e.currentTarget.contains(e.relatedTarget) || j(!1);
|
|
49
|
+
},
|
|
50
|
+
onKeyDown: (e) => {
|
|
51
|
+
C < 2 || e.key !== "ArrowRight" && e.key !== "ArrowLeft" || (e.preventDefault(), F(N + (e.key === "ArrowRight" ? 1 : -1)));
|
|
52
|
+
},
|
|
53
|
+
onPointerDown: (e) => {
|
|
54
|
+
e.pointerType !== "mouse" && (M.current = e.clientX);
|
|
55
|
+
},
|
|
56
|
+
onPointerUp: (e) => {
|
|
57
|
+
if (M.current === null) return;
|
|
58
|
+
let t = e.clientX - M.current;
|
|
59
|
+
M.current = null, C > 1 && Math.abs(t) > 40 && F(N + (t < 0 ? 1 : -1));
|
|
60
|
+
},
|
|
61
|
+
children: [
|
|
62
|
+
/* @__PURE__ */ f("span", {
|
|
63
|
+
className: "select-carousel__layer",
|
|
64
|
+
"aria-hidden": "true"
|
|
65
|
+
}),
|
|
66
|
+
/* @__PURE__ */ f("span", {
|
|
67
|
+
className: "select-carousel__layer select-carousel__layer--2",
|
|
68
|
+
"aria-hidden": "true"
|
|
69
|
+
}),
|
|
70
|
+
/* @__PURE__ */ p("div", {
|
|
71
|
+
className: "select-carousel__card",
|
|
72
|
+
children: [/* @__PURE__ */ f("div", {
|
|
73
|
+
className: "select-carousel__slides",
|
|
74
|
+
"aria-live": P ? "off" : "polite",
|
|
75
|
+
children: /* @__PURE__ */ p("div", {
|
|
76
|
+
className: `select-carousel__slide${E ? " is-back" : ""}`,
|
|
77
|
+
role: "group",
|
|
78
|
+
"aria-roledescription": x.slide,
|
|
79
|
+
"aria-label": x.position(o(N + 1, S), o(C, S)),
|
|
80
|
+
children: [/* @__PURE__ */ p("span", {
|
|
81
|
+
className: "select-carousel__head",
|
|
82
|
+
children: [/* @__PURE__ */ f("span", { children: I.title }), R]
|
|
83
|
+
}), /* @__PURE__ */ f("span", {
|
|
84
|
+
className: "select-carousel__text",
|
|
85
|
+
children: I.text
|
|
86
|
+
})]
|
|
87
|
+
}, I.key)
|
|
88
|
+
}), C > 1 && /* @__PURE__ */ p("div", {
|
|
89
|
+
className: "select-carousel__nav",
|
|
90
|
+
children: [/* @__PURE__ */ f("span", {
|
|
91
|
+
className: "select-carousel__dots",
|
|
92
|
+
children: g.map((e, t) => /* @__PURE__ */ f("button", {
|
|
93
|
+
type: "button",
|
|
94
|
+
className: "select-carousel__dot",
|
|
95
|
+
"aria-label": `${o(t + 1, S)}: ${e.title}`,
|
|
96
|
+
"aria-current": t === N ? "true" : void 0,
|
|
97
|
+
onClick: () => F(t)
|
|
98
|
+
}, e.key))
|
|
99
|
+
}), /* @__PURE__ */ p("span", {
|
|
100
|
+
className: "select-carousel__ctrl",
|
|
101
|
+
children: [
|
|
102
|
+
/* @__PURE__ */ f("button", {
|
|
103
|
+
type: "button",
|
|
104
|
+
className: "select-carousel__btn",
|
|
105
|
+
"aria-label": x.previous,
|
|
106
|
+
onClick: () => F(N - 1),
|
|
107
|
+
children: /* @__PURE__ */ f(n, {})
|
|
108
|
+
}),
|
|
109
|
+
/* @__PURE__ */ f("button", {
|
|
110
|
+
type: "button",
|
|
111
|
+
className: "select-carousel__btn",
|
|
112
|
+
"aria-label": O ? x.pause : x.play,
|
|
113
|
+
onClick: () => k((e) => !e),
|
|
114
|
+
children: f(O ? i : a, {})
|
|
115
|
+
}),
|
|
116
|
+
/* @__PURE__ */ f("button", {
|
|
117
|
+
type: "button",
|
|
118
|
+
className: "select-carousel__btn",
|
|
119
|
+
"aria-label": x.next,
|
|
120
|
+
onClick: () => F(N + 1),
|
|
121
|
+
children: /* @__PURE__ */ f(r, {})
|
|
122
|
+
})
|
|
123
|
+
]
|
|
124
|
+
})]
|
|
125
|
+
})]
|
|
126
|
+
})
|
|
127
|
+
]
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
//#endregion
|
|
131
|
+
export { g as SelectCarousel };
|
|
132
|
+
|
|
133
|
+
//# sourceMappingURL=SelectCarousel.js.map
|
package/dist/SelectLocale.d.ts
CHANGED
|
@@ -84,6 +84,18 @@ export interface SelectKitMessages {
|
|
|
84
84
|
sideNav: {
|
|
85
85
|
pending: (hint: string) => string;
|
|
86
86
|
};
|
|
87
|
+
/** 0.1.220: o SelectCarousel — o nome, o papel, a posição e os botões. */
|
|
88
|
+
carousel: {
|
|
89
|
+
label: string;
|
|
90
|
+
carousel: string;
|
|
91
|
+
slide: string;
|
|
92
|
+
position: (at: string, count: string) => string;
|
|
93
|
+
previous: string;
|
|
94
|
+
next: string;
|
|
95
|
+
pause: string;
|
|
96
|
+
play: string;
|
|
97
|
+
open: (title: string) => string;
|
|
98
|
+
};
|
|
87
99
|
/** 0.1.201: o SelectFeeBreakdown — os rótulos de sempre e a legenda da barra. */
|
|
88
100
|
fees: {
|
|
89
101
|
gross: string;
|
package/dist/SelectLocale.js
CHANGED
|
@@ -87,6 +87,17 @@ var r = {
|
|
|
87
87
|
progress: (e, t) => `${e} de ${t}`
|
|
88
88
|
},
|
|
89
89
|
sideNav: { pending: (e) => `${e} (com pendências)` },
|
|
90
|
+
carousel: {
|
|
91
|
+
label: "Destaques",
|
|
92
|
+
carousel: "carrossel",
|
|
93
|
+
slide: "slide",
|
|
94
|
+
position: (e, t) => `${e} de ${t}`,
|
|
95
|
+
previous: "Anterior",
|
|
96
|
+
next: "Próximo",
|
|
97
|
+
pause: "Parar de passar sozinho",
|
|
98
|
+
play: "Passar sozinho",
|
|
99
|
+
open: (e) => `Ver: ${e}`
|
|
100
|
+
},
|
|
90
101
|
fees: {
|
|
91
102
|
gross: "Valor bruto",
|
|
92
103
|
net: "Valor líquido",
|
|
@@ -180,6 +191,17 @@ var r = {
|
|
|
180
191
|
progress: (e, t) => `${e} of ${t}`
|
|
181
192
|
},
|
|
182
193
|
sideNav: { pending: (e) => `${e} (pending)` },
|
|
194
|
+
carousel: {
|
|
195
|
+
label: "Highlights",
|
|
196
|
+
carousel: "carousel",
|
|
197
|
+
slide: "slide",
|
|
198
|
+
position: (e, t) => `${e} of ${t}`,
|
|
199
|
+
previous: "Previous",
|
|
200
|
+
next: "Next",
|
|
201
|
+
pause: "Stop rotating",
|
|
202
|
+
play: "Rotate automatically",
|
|
203
|
+
open: (e) => `Open: ${e}`
|
|
204
|
+
},
|
|
183
205
|
fees: {
|
|
184
206
|
gross: "Gross amount",
|
|
185
207
|
net: "Net amount",
|
|
@@ -9,6 +9,12 @@ export interface SelectSetupStep {
|
|
|
9
9
|
trailing?: ReactNode;
|
|
10
10
|
/** A linha inteira vira botão e leva até a etapa (0.1.163). */
|
|
11
11
|
onSelect?: () => void;
|
|
12
|
+
/**
|
|
13
|
+
* 0.1.220: a linha inteira é um LINK de verdade até a etapa — `to` é um endereço do app (o `<Link>` do roteador) e
|
|
14
|
+
* `href`, um de fora. Abre em outra aba, copia o endereço e o leitor de tela diz "link" (o `onSelect` é um botão).
|
|
15
|
+
*/
|
|
16
|
+
to?: string;
|
|
17
|
+
href?: string;
|
|
12
18
|
}
|
|
13
19
|
export interface SelectSetupGroup {
|
|
14
20
|
title: ReactNode;
|
package/dist/SelectSetupGuide.js
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { safeHref as e } from "./internal/safeHref.js";
|
|
3
|
+
import { formatSelectNumber as t, useSelectLocale as n, useSelectMessages as r } from "./SelectLocale.js";
|
|
4
|
+
import { useInsideFrame as i } from "./internal/frame.js";
|
|
5
|
+
import { inertProps as a } from "./internal/inert.js";
|
|
6
|
+
import { forwardRef as o, useEffect as s, useRef as c, useState as l } from "react";
|
|
7
|
+
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
8
|
+
import { Link as p } from "react-router-dom";
|
|
7
9
|
//#region src/SelectSetupGuide.tsx
|
|
8
|
-
function
|
|
9
|
-
return /* @__PURE__ */
|
|
10
|
+
function m({ status: e }) {
|
|
11
|
+
return /* @__PURE__ */ d("span", {
|
|
10
12
|
className: `select-setupguide__icon select-setupguide__icon--${e}`,
|
|
11
13
|
"aria-hidden": "true",
|
|
12
|
-
children: e === "done" && /* @__PURE__ */
|
|
14
|
+
children: e === "done" && /* @__PURE__ */ d("svg", {
|
|
13
15
|
viewBox: "0 0 16 16",
|
|
14
16
|
width: "10",
|
|
15
17
|
height: "10",
|
|
16
18
|
fill: "none",
|
|
17
|
-
children: /* @__PURE__ */
|
|
19
|
+
children: /* @__PURE__ */ d("path", {
|
|
18
20
|
d: "M3.5 8.5l3 3 6-7",
|
|
19
21
|
stroke: "currentColor",
|
|
20
22
|
strokeWidth: "2",
|
|
@@ -24,7 +26,7 @@ function d({ status: e }) {
|
|
|
24
26
|
})
|
|
25
27
|
});
|
|
26
28
|
}
|
|
27
|
-
var
|
|
29
|
+
var h = /* @__PURE__ */ d("svg", {
|
|
28
30
|
viewBox: "0 0 20 20",
|
|
29
31
|
width: "16",
|
|
30
32
|
height: "16",
|
|
@@ -34,120 +36,134 @@ var f = /* @__PURE__ */ l("svg", {
|
|
|
34
36
|
strokeLinecap: "round",
|
|
35
37
|
strokeLinejoin: "round",
|
|
36
38
|
"aria-hidden": "true",
|
|
37
|
-
children: /* @__PURE__ */
|
|
39
|
+
children: /* @__PURE__ */ d("path", { d: "M8 5l5 5-5 5" })
|
|
38
40
|
});
|
|
39
|
-
function
|
|
40
|
-
let
|
|
41
|
-
return /* @__PURE__ */
|
|
42
|
-
className: `select-setupguide__group${
|
|
43
|
-
children: [
|
|
41
|
+
function g({ group: t, justDone: n }) {
|
|
42
|
+
let i = r().setupGuide, [o, s] = l(!!(t.collapsible && t.defaultCollapsed)), c = !t.collapsible || !o;
|
|
43
|
+
return /* @__PURE__ */ f("div", {
|
|
44
|
+
className: `select-setupguide__group${c ? "" : " is-collapsed"}`,
|
|
45
|
+
children: [t.collapsible ? /* @__PURE__ */ f("button", {
|
|
44
46
|
type: "button",
|
|
45
47
|
className: "select-setupguide__grouptitle select-setupguide__grouptoggle",
|
|
46
|
-
"aria-expanded":
|
|
47
|
-
onClick: () =>
|
|
48
|
-
children: [/* @__PURE__ */
|
|
49
|
-
}) : /* @__PURE__ */
|
|
48
|
+
"aria-expanded": c,
|
|
49
|
+
onClick: () => s((e) => !e),
|
|
50
|
+
children: [/* @__PURE__ */ d("span", { children: t.title }), h]
|
|
51
|
+
}) : /* @__PURE__ */ d("div", {
|
|
50
52
|
className: "select-setupguide__grouptitle",
|
|
51
|
-
children:
|
|
52
|
-
}), /* @__PURE__ */
|
|
53
|
+
children: t.title
|
|
54
|
+
}), /* @__PURE__ */ d("div", {
|
|
53
55
|
className: "select-setupguide__collapse",
|
|
54
|
-
...
|
|
55
|
-
children: /* @__PURE__ */
|
|
56
|
+
...a(!c),
|
|
57
|
+
children: /* @__PURE__ */ d("ul", {
|
|
56
58
|
className: "select-setupguide__list",
|
|
57
|
-
children:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
59
|
+
children: t.steps.map((t) => {
|
|
60
|
+
let r = t.to != null || t.href != null ? e(t.to ?? t.href) : void 0, a = r !== void 0, o = /* @__PURE__ */ f(u, { children: [t.title, /* @__PURE__ */ f("span", {
|
|
61
|
+
className: "select-setupguide__sr",
|
|
62
|
+
children: [" — ", i[t.status]]
|
|
63
|
+
})] });
|
|
64
|
+
return /* @__PURE__ */ f("li", {
|
|
65
|
+
className: `select-setupguide__step is-${t.status}${t.onSelect || a ? " is-link" : ""}${n.has(t.id) ? " is-just-done" : ""}`,
|
|
66
|
+
children: [
|
|
67
|
+
/* @__PURE__ */ d(m, { status: t.status }),
|
|
68
|
+
/* @__PURE__ */ f("span", {
|
|
69
|
+
className: "select-setupguide__text",
|
|
70
|
+
children: [a && t.to != null ? /* @__PURE__ */ d(p, {
|
|
71
|
+
to: r,
|
|
72
|
+
className: "select-setupguide__steptitle select-setupguide__go",
|
|
73
|
+
children: o
|
|
74
|
+
}) : a ? /* @__PURE__ */ d("a", {
|
|
75
|
+
href: r,
|
|
76
|
+
className: "select-setupguide__steptitle select-setupguide__go",
|
|
77
|
+
children: o
|
|
78
|
+
}) : t.onSelect ? /* @__PURE__ */ f("button", {
|
|
79
|
+
type: "button",
|
|
80
|
+
className: "select-setupguide__steptitle select-setupguide__go",
|
|
81
|
+
onClick: t.onSelect,
|
|
82
|
+
children: [t.title, /* @__PURE__ */ f("span", {
|
|
83
|
+
className: "select-setupguide__sr",
|
|
84
|
+
children: [" — ", i[t.status]]
|
|
85
|
+
})]
|
|
86
|
+
}) : /* @__PURE__ */ f("span", {
|
|
87
|
+
className: "select-setupguide__steptitle",
|
|
88
|
+
children: [t.title, /* @__PURE__ */ f("span", {
|
|
89
|
+
className: "select-setupguide__sr",
|
|
90
|
+
children: [" — ", i[t.status]]
|
|
91
|
+
})]
|
|
92
|
+
}), t.description && /* @__PURE__ */ d("span", {
|
|
93
|
+
className: "select-setupguide__stepdesc",
|
|
94
|
+
children: t.description
|
|
70
95
|
})]
|
|
71
|
-
})
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
e.trailing ? /* @__PURE__ */ l("span", {
|
|
83
|
-
className: "select-setupguide__trailing",
|
|
84
|
-
children: e.trailing
|
|
85
|
-
}) : e.onSelect && e.status !== "done" ? /* @__PURE__ */ l("span", {
|
|
86
|
-
className: "select-setupguide__chevron",
|
|
87
|
-
children: f
|
|
88
|
-
}) : null
|
|
89
|
-
]
|
|
90
|
-
}, e.id))
|
|
96
|
+
}),
|
|
97
|
+
t.trailing ? /* @__PURE__ */ d("span", {
|
|
98
|
+
className: "select-setupguide__trailing",
|
|
99
|
+
children: t.trailing
|
|
100
|
+
}) : (t.onSelect || a) && t.status !== "done" ? /* @__PURE__ */ d("span", {
|
|
101
|
+
className: "select-setupguide__chevron",
|
|
102
|
+
children: h
|
|
103
|
+
}) : null
|
|
104
|
+
]
|
|
105
|
+
}, t.id);
|
|
106
|
+
})
|
|
91
107
|
})
|
|
92
108
|
})]
|
|
93
109
|
});
|
|
94
110
|
}
|
|
95
|
-
var
|
|
96
|
-
let x =
|
|
111
|
+
var _ = o(function({ title: e, description: o, progress: l, actions: u, next: p, groups: m, minimized: h = !1, tone: _ = "default", className: v, ...y }, b) {
|
|
112
|
+
let x = r().setupGuide, S = n(), C = l && l.total > 0 ? Math.round(l.done / l.total * 100) : 0, w = i(), T = c(null), E = /* @__PURE__ */ new Set(), D = m.flatMap((e) => e.steps);
|
|
97
113
|
if (T.current) for (let e of D) e.status === "done" && T.current.get(e.id) !== "done" && E.add(e.id);
|
|
98
|
-
return
|
|
114
|
+
return s(() => {
|
|
99
115
|
T.current = new Map(D.map((e) => [e.id, e.status]));
|
|
100
|
-
}), /* @__PURE__ */
|
|
116
|
+
}), /* @__PURE__ */ f("section", {
|
|
101
117
|
ref: b,
|
|
102
118
|
...y,
|
|
103
|
-
className: `select-setupguide${w ? " select-setupguide--nested" : ""}${
|
|
104
|
-
children: [/* @__PURE__ */
|
|
119
|
+
className: `select-setupguide${w ? " select-setupguide--nested" : ""}${h ? " is-minimized" : ""}${_ === "sandbox" ? " select-setupguide--sandbox" : ""}${v ? " " + v : ""}`,
|
|
120
|
+
children: [/* @__PURE__ */ f("div", {
|
|
105
121
|
className: "select-setupguide__head",
|
|
106
122
|
children: [
|
|
107
|
-
/* @__PURE__ */
|
|
123
|
+
/* @__PURE__ */ f("div", {
|
|
108
124
|
className: "select-setupguide__heading",
|
|
109
|
-
children: [/* @__PURE__ */
|
|
125
|
+
children: [/* @__PURE__ */ d("h2", {
|
|
110
126
|
className: "select-setupguide__title",
|
|
111
|
-
children:
|
|
112
|
-
}),
|
|
127
|
+
children: e
|
|
128
|
+
}), o && /* @__PURE__ */ d("p", {
|
|
113
129
|
className: "select-setupguide__desc",
|
|
114
|
-
children:
|
|
130
|
+
children: o
|
|
115
131
|
})]
|
|
116
132
|
}),
|
|
117
|
-
|
|
133
|
+
l && /* @__PURE__ */ f("div", {
|
|
118
134
|
className: "select-setupguide__progress",
|
|
119
|
-
children: [/* @__PURE__ */
|
|
135
|
+
children: [/* @__PURE__ */ d("div", {
|
|
120
136
|
className: "select-setupguide__bar",
|
|
121
137
|
role: "progressbar",
|
|
122
138
|
"aria-valuemin": 0,
|
|
123
|
-
"aria-valuemax":
|
|
124
|
-
"aria-valuenow":
|
|
139
|
+
"aria-valuemax": l.total,
|
|
140
|
+
"aria-valuenow": l.done,
|
|
125
141
|
"aria-label": x.progressLabel,
|
|
126
|
-
children: /* @__PURE__ */
|
|
142
|
+
children: /* @__PURE__ */ d("span", {
|
|
127
143
|
className: "select-setupguide__fill",
|
|
128
144
|
style: { width: `${Math.max(C, 3)}%` }
|
|
129
145
|
})
|
|
130
|
-
}), /* @__PURE__ */
|
|
146
|
+
}), /* @__PURE__ */ d("span", {
|
|
131
147
|
className: "select-setupguide__count",
|
|
132
|
-
children:
|
|
148
|
+
children: l.label ?? x.progress(t(l.done, S), t(l.total, S))
|
|
133
149
|
})]
|
|
134
150
|
}),
|
|
135
|
-
|
|
151
|
+
u && /* @__PURE__ */ d("div", {
|
|
136
152
|
className: "select-setupguide__actions",
|
|
137
|
-
children:
|
|
153
|
+
children: u
|
|
138
154
|
})
|
|
139
155
|
]
|
|
140
|
-
}), /* @__PURE__ */
|
|
156
|
+
}), /* @__PURE__ */ d("div", {
|
|
141
157
|
className: "select-setupguide__fold",
|
|
142
|
-
...
|
|
143
|
-
children: /* @__PURE__ */
|
|
158
|
+
...a(h),
|
|
159
|
+
children: /* @__PURE__ */ f("div", {
|
|
144
160
|
className: "select-setupguide__body",
|
|
145
|
-
children: [
|
|
161
|
+
children: [p && /* @__PURE__ */ d("div", {
|
|
146
162
|
className: "select-setupguide__next",
|
|
147
|
-
children:
|
|
148
|
-
}), /* @__PURE__ */
|
|
163
|
+
children: p
|
|
164
|
+
}), /* @__PURE__ */ d("div", {
|
|
149
165
|
className: "select-setupguide__steps",
|
|
150
|
-
children:
|
|
166
|
+
children: m.map((e, t) => /* @__PURE__ */ d(g, {
|
|
151
167
|
group: e,
|
|
152
168
|
justDone: E
|
|
153
169
|
}, t))
|
|
@@ -156,32 +172,32 @@ var m = a(function({ title: a, description: c, progress: d, actions: f, next: m,
|
|
|
156
172
|
})]
|
|
157
173
|
});
|
|
158
174
|
});
|
|
159
|
-
function
|
|
160
|
-
return /* @__PURE__ */
|
|
175
|
+
function v({ eyebrow: e, title: t, children: n, actions: r }) {
|
|
176
|
+
return /* @__PURE__ */ f("div", {
|
|
161
177
|
className: "select-setupnext",
|
|
162
|
-
children: [/* @__PURE__ */
|
|
178
|
+
children: [/* @__PURE__ */ f("div", {
|
|
163
179
|
className: "select-setupnext__text",
|
|
164
180
|
children: [
|
|
165
|
-
e && /* @__PURE__ */
|
|
181
|
+
e && /* @__PURE__ */ d("div", {
|
|
166
182
|
className: "select-setupnext__eyebrow",
|
|
167
183
|
children: e
|
|
168
184
|
}),
|
|
169
|
-
/* @__PURE__ */
|
|
185
|
+
/* @__PURE__ */ d("h3", {
|
|
170
186
|
className: "select-setupnext__title",
|
|
171
187
|
children: t
|
|
172
188
|
}),
|
|
173
|
-
n && /* @__PURE__ */
|
|
189
|
+
n && /* @__PURE__ */ d("div", {
|
|
174
190
|
className: "select-setupnext__body",
|
|
175
191
|
children: n
|
|
176
192
|
})
|
|
177
193
|
]
|
|
178
|
-
}), r && /* @__PURE__ */
|
|
194
|
+
}), r && /* @__PURE__ */ d("div", {
|
|
179
195
|
className: "select-setupnext__actions",
|
|
180
196
|
children: r
|
|
181
197
|
})]
|
|
182
198
|
});
|
|
183
199
|
}
|
|
184
200
|
//#endregion
|
|
185
|
-
export {
|
|
201
|
+
export { _ as SelectSetupGuide, v as SelectSetupNext };
|
|
186
202
|
|
|
187
203
|
//# sourceMappingURL=SelectSetupGuide.js.map
|
package/dist/icons.d.ts
CHANGED
|
@@ -154,6 +154,8 @@ export declare function UsersIcon(): import("react").JSX.Element;
|
|
|
154
154
|
/** Três círculos sobrepostos (Iconsax colorfilter) — cor, identidade visual. */
|
|
155
155
|
export declare function PaletteIcon(): import("react").JSX.Element;
|
|
156
156
|
/** Duas barras (Iconsax pause) — pausar uma cobrança recorrente. */
|
|
157
|
+
/** Tocar (0.1.220): o triângulo, o par do `PauseIcon` (o botão de passar sozinho do SelectCarousel). */
|
|
158
|
+
export declare function PlayIcon(): import("react").JSX.Element;
|
|
157
159
|
export declare function PauseIcon(): import("react").JSX.Element;
|
|
158
160
|
/** Seta voltando em volta (Iconsax arrow-rotate-left) — o ESTORNO: o dinheiro que volta. Não é o
|
|
159
161
|
* `RefreshIcon` (recarregar), que desenha o mesmo gesto para "de novo". */
|