@selectwin/kit 0.1.230 → 0.1.232
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/README.md +58 -52
- package/dist/SelectBrandIcon.d.ts +1 -1
- package/dist/SelectBrandIcon.js +122 -1
- package/dist/SelectLocale.d.ts +9 -0
- package/dist/SelectLocale.js +14 -0
- package/dist/SelectTutorial.d.ts +48 -0
- package/dist/SelectTutorial.js +184 -0
- package/dist/icons.d.ts +4 -0
- package/dist/icons.js +65 -41
- package/dist/index.d.ts +2 -0
- package/dist/index.js +221 -220
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,52 +1,58 @@
|
|
|
1
|
-
# @selectwin/kit
|
|
2
|
-
|
|
3
|
-
Design system da Selectwin — primitivos React, charts SVG (sem dependência de biblioteca de
|
|
4
|
-
gráficos) e tokens CSS, theme-aware (light/dark).
|
|
5
|
-
|
|
6
|
-
Uso interno da Selectwin. Publicado no npm para facilitar a distribuição entre os apps da casa;
|
|
7
|
-
não há suporte, documentação pública nem garantia de estabilidade de API para terceiros.
|
|
8
|
-
|
|
9
|
-
## Uso
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
npm i @selectwin/kit
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
```tsx
|
|
16
|
-
import '@selectwin/kit/styles.css'; // tokens + estilos (uma vez, no root)
|
|
17
|
-
import { SelectButton, SelectSection } from '@selectwin/kit';
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
Idioma (0.1.187): os textos próprios do kit ("Página anterior", "Mais filtros", "Fechar"…) e os números que ele
|
|
21
|
-
formata saem em português. Para inglês, envolva o app no `SelectLocaleProvider`:
|
|
22
|
-
|
|
23
|
-
```tsx
|
|
24
|
-
import { SelectLocaleProvider } from '@selectwin/kit';
|
|
25
|
-
|
|
26
|
-
<SelectLocaleProvider locale="en">{app}</SelectLocaleProvider>; // 'pt-BR' | 'en'
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
A prop de texto do componente (`confirmLabel`, `noun`…) sempre ganha do dicionário.
|
|
30
|
-
|
|
31
|
-
Tom corporativo (0.1.188; arredondado suave no botão desde a 0.1.192, em tudo desde a 0.1.193 e bem suave desde a
|
|
32
|
-
0.1.195): campo e botão com 1rem (`--select-radius`, `--select-radius-button`), card 1.5rem, caixa de dentro e menu
|
|
33
|
-
1rem, item de menu 0.75rem (`--select-radius-sm`); pílula só em selo. Rótulos de KPI
|
|
34
|
-
e cabeçalho de tabela em caixa-alta espaçada. Nos gráficos, cor é situação: verde `--select-chart-paid` = pago, dourado
|
|
35
|
-
`--select-chart-pending` (+ `-edge`) = pendente, `--select-chart-compare` = o período anterior, e os cinzas
|
|
36
|
-
`--select-chart-ramp-1..4` para categoria. O app que quer o visual antigo sobrescreve esses tokens.
|
|
37
|
-
|
|
38
|
-
O card mostra o dado; a explicação vai no tooltip (0.1.196). O "i" `help` está no `SelectSection`, no
|
|
39
|
-
`SelectDataTable`, no `SelectChartCard`, no `SelectKpiCard`, no `SelectListCard`, em cada número do `SelectMiniStats` e
|
|
40
|
-
em cada balde do `SelectBalanceCard`. Na `SelectShareBar`, cada faixa tem o seu tooltip, e a nota da parte vai em
|
|
41
|
-
`tip`; o que o clique faz vai em `selectHint`/`clearHint`, no lugar da linha `hint`.
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
1
|
+
# @selectwin/kit
|
|
2
|
+
|
|
3
|
+
Design system da Selectwin — primitivos React, charts SVG (sem dependência de biblioteca de
|
|
4
|
+
gráficos) e tokens CSS, theme-aware (light/dark).
|
|
5
|
+
|
|
6
|
+
Uso interno da Selectwin. Publicado no npm para facilitar a distribuição entre os apps da casa;
|
|
7
|
+
não há suporte, documentação pública nem garantia de estabilidade de API para terceiros.
|
|
8
|
+
|
|
9
|
+
## Uso
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm i @selectwin/kit
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
```tsx
|
|
16
|
+
import '@selectwin/kit/styles.css'; // tokens + estilos (uma vez, no root)
|
|
17
|
+
import { SelectButton, SelectSection } from '@selectwin/kit';
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Idioma (0.1.187): os textos próprios do kit ("Página anterior", "Mais filtros", "Fechar"…) e os números que ele
|
|
21
|
+
formata saem em português. Para inglês, envolva o app no `SelectLocaleProvider`:
|
|
22
|
+
|
|
23
|
+
```tsx
|
|
24
|
+
import { SelectLocaleProvider } from '@selectwin/kit';
|
|
25
|
+
|
|
26
|
+
<SelectLocaleProvider locale="en">{app}</SelectLocaleProvider>; // 'pt-BR' | 'en'
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
A prop de texto do componente (`confirmLabel`, `noun`…) sempre ganha do dicionário.
|
|
30
|
+
|
|
31
|
+
Tom corporativo (0.1.188; arredondado suave no botão desde a 0.1.192, em tudo desde a 0.1.193 e bem suave desde a
|
|
32
|
+
0.1.195): campo e botão com 1rem (`--select-radius`, `--select-radius-button`), card 1.5rem, caixa de dentro e menu
|
|
33
|
+
1rem, item de menu 0.75rem (`--select-radius-sm`); pílula só em selo. Rótulos de KPI
|
|
34
|
+
e cabeçalho de tabela em caixa-alta espaçada. Nos gráficos, cor é situação: verde `--select-chart-paid` = pago, dourado
|
|
35
|
+
`--select-chart-pending` (+ `-edge`) = pendente, `--select-chart-compare` = o período anterior, e os cinzas
|
|
36
|
+
`--select-chart-ramp-1..4` para categoria. O app que quer o visual antigo sobrescreve esses tokens.
|
|
37
|
+
|
|
38
|
+
O card mostra o dado; a explicação vai no tooltip (0.1.196). O "i" `help` está no `SelectSection`, no
|
|
39
|
+
`SelectDataTable`, no `SelectChartCard`, no `SelectKpiCard`, no `SelectListCard`, em cada número do `SelectMiniStats` e
|
|
40
|
+
em cada balde do `SelectBalanceCard`. Na `SelectShareBar`, cada faixa tem o seu tooltip, e a nota da parte vai em
|
|
41
|
+
`tip`; o que o clique faz vai em `selectHint`/`clearHint`, no lugar da linha `hint`.
|
|
42
|
+
|
|
43
|
+
O tutorial flutuante (0.1.232): o `SelectTutorial` é um cartão no canto de baixo à esquerda (o direito é do
|
|
44
|
+
`SelectAssistant`) que abre um vídeo curto, sempre no tema OPOSTO ao do painel, para se destacar — os tokens
|
|
45
|
+
`--select-tutorial-*`, invertidos no bloco do escuro. O vídeo expande para o centro da tela sem recomeçar, e o selo
|
|
46
|
+
"Visto" acende sozinho quando ele termina (`watched` manda, quando vem). Abrir, fechar de vez (`onDismiss`) e guardar o
|
|
47
|
+
que foi visto são de quem usa.
|
|
48
|
+
|
|
49
|
+
Peer deps: **react**, **react-dom** (obrigatórios); **gsap** (opcional — só componentes animados),
|
|
50
|
+
**react-router-dom** (opcional). Tematização = sobrescrever os tokens CSS `--select-*` / `--sw-*`.
|
|
51
|
+
|
|
52
|
+
## Build
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
npm run build # → dist/index.js (o barril) + um módulo ESM por componente + dist/style.css + os .d.ts
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
`npm publish` roda `prepublishOnly` (= build) e publica só `dist/` (sem sourcemaps).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type SelectBrand = 'pipedrive' | 'rdstation' | 'hubspot' | 'meta' | 'tiktok' | 'googletagmanager' | 'googleanalytics' | 'snapchat' | 'whatsapp' | 'notazz' | 'enotas' | 'gmail' | 'yahoo' | 'apple';
|
|
1
|
+
export type SelectBrand = 'pipedrive' | 'rdstation' | 'hubspot' | 'meta' | 'tiktok' | 'googletagmanager' | 'googleanalytics' | 'snapchat' | 'whatsapp' | 'notazz' | 'enotas' | 'gmail' | 'yahoo' | 'apple' | 'shopify' | 'woocommerce' | 'hotmart' | 'kiwify' | 'ticto' | 'n8n' | 'selectwin' | 'claude' | 'chatgpt' | 'cursor' | 'vscode';
|
|
2
2
|
/** O nome de cada marca — o rótulo para leitor de tela quando quem chama não passa outro. */
|
|
3
3
|
export declare const SELECT_BRAND_NAMES: Record<SelectBrand, string>;
|
|
4
4
|
export interface SelectBrandIconProps {
|
package/dist/SelectBrandIcon.js
CHANGED
|
@@ -15,7 +15,18 @@ var n = {
|
|
|
15
15
|
enotas: "eNotas",
|
|
16
16
|
gmail: "Gmail",
|
|
17
17
|
yahoo: "Yahoo",
|
|
18
|
-
apple: "Apple"
|
|
18
|
+
apple: "Apple",
|
|
19
|
+
shopify: "Shopify",
|
|
20
|
+
woocommerce: "WooCommerce",
|
|
21
|
+
hotmart: "Hotmart",
|
|
22
|
+
kiwify: "Kiwify",
|
|
23
|
+
ticto: "Ticto",
|
|
24
|
+
n8n: "n8n",
|
|
25
|
+
selectwin: "Selectwin",
|
|
26
|
+
claude: "Claude",
|
|
27
|
+
chatgpt: "ChatGPT",
|
|
28
|
+
cursor: "Cursor",
|
|
29
|
+
vscode: "VS Code"
|
|
19
30
|
};
|
|
20
31
|
function r({ brand: n }) {
|
|
21
32
|
switch (n) {
|
|
@@ -186,6 +197,116 @@ function r({ brand: n }) {
|
|
|
186
197
|
d: "M18.164 7.93V5.084a2.198 2.198 0 001.267-1.978v-.067A2.2 2.2 0 0017.238.845h-.067a2.2 2.2 0 00-2.193 2.193v.067a2.196 2.196 0 001.252 1.973l.013.006v2.852a6.22 6.22 0 00-2.969 1.31l.012-.01-7.828-6.095A2.497 2.497 0 104.3 4.656l-.012.006 7.697 5.991a6.176 6.176 0 00-1.038 3.446c0 1.343.425 2.588 1.147 3.607l-.013-.02-2.342 2.343a1.968 1.968 0 00-.58-.095h-.002a2.033 2.033 0 102.033 2.033 1.978 1.978 0 00-.1-.595l.005.014 2.317-2.317a6.247 6.247 0 104.782-11.134l-.036-.005zm-.964 9.378a3.206 3.206 0 113.215-3.207v.002a3.206 3.206 0 01-3.207 3.207z"
|
|
187
198
|
})
|
|
188
199
|
});
|
|
200
|
+
case "shopify": return /* @__PURE__ */ e("svg", {
|
|
201
|
+
viewBox: "0 0 24 24",
|
|
202
|
+
"aria-hidden": "true",
|
|
203
|
+
children: /* @__PURE__ */ e("path", {
|
|
204
|
+
fill: "#7AB55C",
|
|
205
|
+
d: "M15.337 23.979l7.216-1.561s-2.604-17.613-2.625-17.73c-.018-.116-.114-.192-.211-.192s-1.929-.136-1.929-.136-1.275-1.274-1.439-1.411c-.045-.037-.075-.057-.121-.074l-.914 21.104h.023zM11.71 11.305s-.81-.424-1.774-.424c-1.447 0-1.504.906-1.504 1.141 0 1.232 3.24 1.715 3.24 4.629 0 2.295-1.44 3.76-3.406 3.76-2.354 0-3.54-1.465-3.54-1.465l.646-2.086s1.245 1.066 2.28 1.066c.675 0 .975-.545.975-.932 0-1.619-2.654-1.694-2.654-4.359-.034-2.237 1.571-4.416 4.827-4.416 1.257 0 1.875.361 1.875.361l-.945 2.715-.02.01zM11.17.83c.136 0 .271.038.405.135-.984.465-2.064 1.639-2.508 3.992-.656.213-1.293.405-1.889.578C7.697 3.75 8.951.84 11.17.84V.83zm1.235 2.949v.135c-.754.232-1.583.484-2.394.736.466-1.777 1.333-2.645 2.085-2.971.193.501.309 1.176.309 2.1zm.539-2.234c.694.074 1.141.867 1.429 1.755-.349.114-.735.231-1.158.366v-.252c0-.752-.096-1.371-.271-1.871v.002zm2.992 1.289c-.02 0-.06.021-.078.021s-.289.075-.714.21c-.423-1.233-1.176-2.37-2.508-2.37h-.115C12.135.209 11.669 0 11.265 0 8.159 0 6.675 3.877 6.21 5.846c-1.194.365-2.063.636-2.16.674-.675.213-.694.232-.772.87-.075.462-1.83 14.063-1.83 14.063L15.009 24l.927-21.166z"
|
|
206
|
+
})
|
|
207
|
+
});
|
|
208
|
+
case "woocommerce": return /* @__PURE__ */ e("svg", {
|
|
209
|
+
viewBox: "0 0.73 44.28 24.54",
|
|
210
|
+
"aria-hidden": "true",
|
|
211
|
+
children: /* @__PURE__ */ e("path", {
|
|
212
|
+
fill: "#873EFF",
|
|
213
|
+
d: "M12.0825 25.2704C14.8471 25.2704 17.0657 23.9052 18.7381 20.7651L22.4584 13.8023V19.707C22.4584 23.1884 24.7111 25.2704 28.1925 25.2704C30.923 25.2704 32.9368 24.0758 34.8822 20.7651L43.4492 6.29339C45.3264 3.11918 43.9953 0.72998 39.8654 0.72998C37.6469 0.72998 36.2134 1.44674 34.9164 3.87006L29.0117 14.9628V5.09879C29.0117 2.1635 27.6123 0.72998 25.0183 0.72998C22.9704 0.72998 21.3321 1.6174 20.0692 4.07485L14.5058 14.9628V5.20119C14.5058 2.0611 13.2088 0.72998 10.0687 0.72998H3.65206C1.22873 0.72998 0 1.85632 0 3.93833C0 6.02034 1.29699 7.21494 3.65206 7.21494H6.28017V19.6729C6.28017 23.1884 8.63523 25.2704 12.0825 25.2704Z"
|
|
214
|
+
})
|
|
215
|
+
});
|
|
216
|
+
case "hotmart": return /* @__PURE__ */ e("svg", {
|
|
217
|
+
viewBox: "0 0 89.5 123.5",
|
|
218
|
+
"aria-hidden": "true",
|
|
219
|
+
children: /* @__PURE__ */ e("path", {
|
|
220
|
+
fill: "#F04E23",
|
|
221
|
+
d: "M89.4 78.8c.6-11-3.2-29-12.4-43.8-.2-.4-.7-.2-.6.2.6 2.2.8 6.3-2.8 6.1-6.3-.4.2-14-13.7-23.3-.3-.2-.6.1-.5.4 1 1.8 1.5 7.5-.7 9.4-1.8 1.5-5 1.1-8.1-4-5.2-8.5-3.2-17.5.3-23.2.3-.4-.1-.6-.4-.5-19.1 6.3-22.9 28.8-27 37-.7 1.4-1.3 2.1-2.4 2-3.5-.2-1-7.7.2-10.2.2-.4-.2-.6-.5-.3C11 38.8 2.1 56.3.4 72.5c.1-.4-.2 1.3-.3 2.6 0 .5-.1 1-.1 1.5v1.8c-.2 24.7 19.6 44.8 44.3 45.1 24.7.2 44.8-19.6 45.1-44.3zM44.5 99.5c-11.4-.1-20.6-9.4-20.5-20.9S33.4 58 44.9 58.1 65.5 67.5 65.4 79 56 99.6 44.5 99.5z"
|
|
222
|
+
})
|
|
223
|
+
});
|
|
224
|
+
case "kiwify": return /* @__PURE__ */ t("svg", {
|
|
225
|
+
viewBox: "0 0 512 512",
|
|
226
|
+
"aria-hidden": "true",
|
|
227
|
+
children: [
|
|
228
|
+
/* @__PURE__ */ e("path", {
|
|
229
|
+
fill: "#2DB56F",
|
|
230
|
+
d: "M453.9,368.3c-85.5,85.5-224.7,85.5-310.2,0c-85.5-85.5-85.5-224.7,0-310.2L92,6.4 C-22.2,120.6-22.2,305.8,92,420c114.2,114.2,299.4,114.2,413.6,0L453.9,368.3z"
|
|
231
|
+
}),
|
|
232
|
+
/* @__PURE__ */ e("path", {
|
|
233
|
+
fill: "#2DB56F",
|
|
234
|
+
d: "M373.5,359.8c10.1-5.2,10-25.7-0.3-46c-10.3-20.2-26.9-32.5-37-27.3c-10.1,5.2-10,25.7,0.3,46 C346.8,352.7,363.4,364.9,373.5,359.8z"
|
|
235
|
+
}),
|
|
236
|
+
/* @__PURE__ */ e("path", {
|
|
237
|
+
fill: "#2DB56F",
|
|
238
|
+
d: "M152.3,138.5c-5.2,10.1,7.1,26.7,27.3,37c20.2,10.3,40.8,10.5,46,0.3c5.2-10.1-7.1-26.7-27.3-37 C178,128.5,157.4,128.4,152.3,138.5z"
|
|
239
|
+
}),
|
|
240
|
+
/* @__PURE__ */ e("path", {
|
|
241
|
+
fill: "#2DB56F",
|
|
242
|
+
d: "M182.5,329.5c8,8,27.6,1.5,43.6-14.5c16.1-16.1,22.6-35.6,14.5-43.6c-8-8-27.6-1.5-43.6,14.5 C181,301.9,174.5,321.5,182.5,329.5z"
|
|
243
|
+
}),
|
|
244
|
+
/* @__PURE__ */ e("path", {
|
|
245
|
+
fill: "#2DB56F",
|
|
246
|
+
d: "M273.1,375.7c11.2,1.8,23.2-15,26.7-37.4c3.6-22.4-2.7-42.1-13.9-43.8c-11.2-1.8-23.2,15-26.7,37.4 C255.7,354.3,261.9,373.9,273.1,375.7z"
|
|
247
|
+
}),
|
|
248
|
+
/* @__PURE__ */ e("path", {
|
|
249
|
+
fill: "#2DB56F",
|
|
250
|
+
d: "M136.4,238.9c1.8,11.2,21.4,17.4,43.8,13.9c22.4-3.6,39.2-15.5,37.4-26.7c-1.8-11.2-21.4-17.4-43.8-13.9 C151.3,215.7,134.6,227.7,136.4,238.9z"
|
|
251
|
+
})
|
|
252
|
+
]
|
|
253
|
+
});
|
|
254
|
+
case "ticto": return /* @__PURE__ */ e("svg", {
|
|
255
|
+
viewBox: "0 0 30.42 30",
|
|
256
|
+
"aria-hidden": "true",
|
|
257
|
+
children: /* @__PURE__ */ e("path", {
|
|
258
|
+
className: "select-brandicon__ink",
|
|
259
|
+
d: "M27.9096 0H2.48679C1.10981 0 0 1.09533 0 2.45436V27.5456C0 28.9047 1.10981 30 2.48679 30H27.9096C29.2866 30 30.3964 28.9047 30.3964 27.5456V2.45436C30.4169 1.09533 29.2866 0 27.9096 0ZM24.0664 10.6897H17.7363V24.4422H12.66V20.4057V15.5781C12.66 15.2536 12.8039 14.929 13.0299 14.7059L16.3183 11.4402C16.4005 11.359 16.4416 11.2373 16.4416 11.1359C16.4416 11.0142 16.4005 10.9128 16.3183 10.8316C16.2361 10.7505 16.1333 10.7099 16.01 10.7099H6.33001V6.93712H24.0664V10.6897Z"
|
|
260
|
+
})
|
|
261
|
+
});
|
|
262
|
+
case "n8n": return /* @__PURE__ */ e("svg", {
|
|
263
|
+
viewBox: "0 0 24 24",
|
|
264
|
+
"aria-hidden": "true",
|
|
265
|
+
children: /* @__PURE__ */ e("path", {
|
|
266
|
+
fill: "#EA4B71",
|
|
267
|
+
d: "M21.4737 5.6842c-1.1772 0-2.1663.8051-2.4468 1.8947h-2.8955c-1.235 0-2.289.893-2.492 2.111l-.1038.623a1.263 1.263 0 0 1-1.246 1.0555H11.289c-.2805-1.0896-1.2696-1.8947-2.4468-1.8947s-2.1663.8051-2.4467 1.8947H4.973c-.2805-1.0896-1.2696-1.8947-2.4468-1.8947C1.1311 9.4737 0 10.6047 0 12s1.131 2.5263 2.5263 2.5263c1.1772 0 2.1663-.8051 2.4468-1.8947h1.4223c.2804 1.0896 1.2696 1.8947 2.4467 1.8947 1.1772 0 2.1663-.8051 2.4468-1.8947h1.0008a1.263 1.263 0 0 1 1.2459 1.0555l.1038.623c.203 1.218 1.257 2.111 2.492 2.111h.3692c.2804 1.0895 1.2696 1.8947 2.4468 1.8947 1.3952 0 2.5263-1.131 2.5263-2.5263s-1.131-2.5263-2.5263-2.5263c-1.1772 0-2.1664.805-2.4468 1.8947h-.3692a1.263 1.263 0 0 1-1.246-1.0555l-.1037-.623A2.52 2.52 0 0 0 13.9607 12a2.52 2.52 0 0 0 .821-1.4794l.1038-.623a1.263 1.263 0 0 1 1.2459-1.0555h2.8955c.2805 1.0896 1.2696 1.8947 2.4468 1.8947 1.3952 0 2.5263-1.131 2.5263-2.5263s-1.131-2.5263-2.5263-2.5263m0 1.2632a1.263 1.263 0 0 1 1.2631 1.2631 1.263 1.263 0 0 1-1.2631 1.2632 1.263 1.263 0 0 1-1.2632-1.2632 1.263 1.263 0 0 1 1.2632-1.2631M2.5263 10.7368A1.263 1.263 0 0 1 3.7895 12a1.263 1.263 0 0 1-1.2632 1.2632A1.263 1.263 0 0 1 1.2632 12a1.263 1.263 0 0 1 1.2631-1.2632m6.3158 0A1.263 1.263 0 0 1 10.1053 12a1.263 1.263 0 0 1-1.2632 1.2632A1.263 1.263 0 0 1 7.579 12a1.263 1.263 0 0 1 1.2632-1.2632m10.1053 3.7895a1.263 1.263 0 0 1 1.2631 1.2632 1.263 1.263 0 0 1-1.2631 1.2631 1.263 1.263 0 0 1-1.2632-1.2631 1.263 1.263 0 0 1 1.2632-1.2632"
|
|
268
|
+
})
|
|
269
|
+
});
|
|
270
|
+
case "selectwin": return /* @__PURE__ */ e("svg", {
|
|
271
|
+
viewBox: "0 0 2000 2008",
|
|
272
|
+
"aria-hidden": "true",
|
|
273
|
+
children: /* @__PURE__ */ e("path", {
|
|
274
|
+
className: "select-brandicon__ink",
|
|
275
|
+
d: "M1022.9 1.64717C708.75 3.85948 703.588 3.85948 667.085 12.34C593.71 28.5636 527.709 56.2175 467.977 94.9329C451.753 105.626 436.636 115.581 434.424 117.793C432.211 119.637 418.937 130.699 405.295 141.76C358.099 180.107 299.473 253.85 268.869 312.477C220.936 405.394 201.394 494.623 205.45 604.133C209.137 702.212 232.366 783.33 280.668 867.398C333.026 958.102 416.725 1039.59 509.642 1090.1C556.469 1115.18 635.006 1142.46 684.783 1150.2C729.767 1157.58 776.594 1158.68 1002.62 1158.68L1253.35 1159.05L1207.26 1146.52C1152.32 1132.14 1139.78 1127.71 1104.75 1110.01C1011.47 1063.19 938.83 992.393 888.316 899.476C867.667 861.498 855.131 827.576 843.701 779.643C830.796 725.441 827.477 625.887 836.695 567.63C867.667 368.522 1014.42 210.342 1212.79 162.04C1234.17 156.878 1288.37 150.241 1288.37 152.822C1288.37 154.665 1284.69 156.509 1280.26 157.615C1264.78 161.671 1196.2 200.386 1172.97 218.085C1111.02 266.018 1060.51 325.75 1028.43 389.17C1016.26 412.768 993.4 469.551 993.4 475.45C993.4 478.769 1024.37 480.243 1121.71 482.087C1192.14 483.562 1254.82 485.037 1260.72 486.143C1266.99 486.88 1282.48 488.724 1295.75 490.199C1379.45 499.048 1474.95 528.177 1563.07 571.317C1754.07 664.971 1891.6 810.615 1983.04 1016.73C1986.73 1024.47 1991.52 1037.01 1994.47 1044.38C1998.89 1056.18 1999.63 980.225 1999.63 529.652L2000 1.64717L1945.8 0.90973C1824.86 -0.565143 1323.03 -0.196425 1022.9 1.64717Z M1024.74 683.036C1026.96 684.88 1039.12 692.254 1052.4 699.26C1132.41 742.769 1221.27 818.725 1274.73 889.887C1341.84 979.486 1391.99 1093.79 1406.37 1192.61C1408.58 1207.72 1411.16 1224.31 1412.27 1229.48C1417.8 1259.34 1417.8 1335.3 1412.27 1384.71C1400.47 1490.9 1371.71 1575.7 1315.66 1670.83C1266.99 1753.79 1179.61 1843.39 1094.8 1897.59C1009.63 1951.8 896.43 1992.35 797.982 2003.42C780.284 2005.26 851.815 2006.73 998.934 2007.1C1276.95 2007.47 1297.6 2005.63 1398.26 1972.08C1548.69 1921.93 1671.84 1821.27 1760.34 1675.99C1777.3 1648.71 1808.64 1577.18 1820.81 1538.46C1852.89 1436.7 1857.31 1302.11 1832.24 1192.61C1818.23 1132.5 1776.56 1032.95 1748.17 992.022C1698.76 921.228 1672.58 890.256 1625.75 848.591C1520.67 755.305 1392.36 699.26 1251.51 684.511C1208.37 679.718 1019.95 678.981 1024.74 683.036Z M14.8259 819.094C9.29513 847.117 3.39564 885.832 1.55205 905.005C-1.02898 938.19 -0.291539 1034.43 3.02693 1055.44C3.76436 1060.97 6.71411 1077.93 8.92642 1093.05C17.7757 1149.47 32.1557 1200.72 57.5972 1267.46C78.2454 1321.66 132.078 1411.62 174.112 1461.77C253.755 1556.9 327.868 1615.89 436.271 1670.1C488.629 1696.27 570.484 1725.4 611.781 1732.78C618.049 1733.88 626.898 1735.36 632.06 1736.46C675.2 1744.21 697.692 1746.42 755.581 1748.26C826.375 1750.48 865.459 1746.42 922.241 1730.57C1081.53 1686.32 1184.77 1566.12 1212.42 1391.71C1215 1375.49 1216.11 1361.11 1214.64 1360.37C1213.16 1359.27 1111.76 1358.53 989.348 1358.16C724.608 1357.42 695.849 1355.95 615.468 1337.88C395.343 1288.1 213.196 1151.31 99.9998 950.726C88.5696 930.447 78.9829 912.749 78.9829 911.274C78.9829 909.799 74.1895 898.369 68.2901 885.463C55.7536 858.547 36.5803 802.133 32.8931 782.222C31.4182 774.848 29.2059 768.58 27.731 768.58C26.2562 768.58 20.3567 791.44 14.8259 819.094Z"
|
|
276
|
+
})
|
|
277
|
+
});
|
|
278
|
+
case "claude": return /* @__PURE__ */ e("svg", {
|
|
279
|
+
viewBox: "0 0 24 24",
|
|
280
|
+
"aria-hidden": "true",
|
|
281
|
+
children: /* @__PURE__ */ e("path", {
|
|
282
|
+
fill: "#D97757",
|
|
283
|
+
d: "m4.7144 15.9555 4.7174-2.6471.079-.2307-.079-.1275h-.2307l-.7893-.0486-2.6956-.0729-2.3375-.0971-2.2646-.1214-.5707-.1215-.5343-.7042.0546-.3522.4797-.3218.686.0608 1.5179.1032 2.2767.1578 1.6514.0972 2.4468.255h.3886l.0546-.1579-.1336-.0971-.1032-.0972L6.973 9.8356l-2.55-1.6879-1.3356-.9714-.7225-.4918-.3643-.4614-.1578-1.0078.6557-.7225.8803.0607.2246.0607.8925.686 1.9064 1.4754 2.4893 1.8336.3643.3035.1457-.1032.0182-.0728-.164-.2733-1.3539-2.4467-1.445-2.4893-.6435-1.032-.17-.6194c-.0607-.255-.1032-.4674-.1032-.7285L6.287.1335 6.6997 0l.9957.1336.419.3642.6192 1.4147 1.0018 2.2282 1.5543 3.0296.4553.8985.2429.8318.091.255h.1579v-.1457l.1275-1.706.2368-2.0947.2307-2.6957.0789-.7589.3764-.9107.7468-.4918.5828.2793.4797.686-.0668.4433-.2853 1.8517-.5586 2.9021-.3643 1.9429h.2125l.2429-.2429.9835-1.3053 1.6514-2.0643.7286-.8196.85-.9046.5464-.4311h1.0321l.759 1.1293-.34 1.1657-1.0625 1.3478-.8804 1.1414-1.2628 1.7-.7893 1.36.0729.1093.1882-.0183 2.8535-.607 1.5421-.2794 1.8396-.3157.8318.3886.091.3946-.3278.8075-1.967.4857-2.3072.4614-3.4364.8136-.0425.0304.0486.0607 1.5482.1457.6618.0364h1.621l3.0175.2247.7892.522.4736.6376-.079.4857-1.2142.6193-1.6393-.3886-3.825-.9107-1.3113-.3279h-.1822v.1093l1.0929 1.0686 2.0035 1.8092 2.5075 2.3314.1275.5768-.3218.4554-.34-.0486-2.2039-1.6575-.85-.7468-1.9246-1.621h-.1275v.17l.4432.6496 2.3436 3.5214.1214 1.0807-.17.3521-.6071.2125-.6679-.1214-1.3721-1.9246L14.38 17.959l-1.1414-1.9428-.1397.079-.674 7.2552-.3156.3703-.7286.2793-.6071-.4614-.3218-.7468.3218-1.4753.3886-1.9246.3157-1.53.2853-1.9004.17-.6314-.0121-.0425-.1397.0182-1.4328 1.9672-2.1796 2.9446-1.7243 1.8456-.4128.164-.7164-.3704.0667-.6618.4008-.5889 2.386-3.0357 1.4389-1.882.929-1.0868-.0062-.1579h-.0546l-6.3385 4.1164-1.1293.1457-.4857-.4554.0608-.7467.2307-.2429 1.9064-1.3114Z"
|
|
284
|
+
})
|
|
285
|
+
});
|
|
286
|
+
case "chatgpt": return /* @__PURE__ */ e("svg", {
|
|
287
|
+
viewBox: "0 0 24 24",
|
|
288
|
+
"aria-hidden": "true",
|
|
289
|
+
children: /* @__PURE__ */ e("path", {
|
|
290
|
+
className: "select-brandicon__ink",
|
|
291
|
+
d: "M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"
|
|
292
|
+
})
|
|
293
|
+
});
|
|
294
|
+
case "cursor": return /* @__PURE__ */ e("svg", {
|
|
295
|
+
viewBox: "0 0 24 24",
|
|
296
|
+
"aria-hidden": "true",
|
|
297
|
+
children: /* @__PURE__ */ e("path", {
|
|
298
|
+
className: "select-brandicon__ink",
|
|
299
|
+
d: "M11.503.131 1.891 5.678a.84.84 0 0 0-.42.726v11.188c0 .3.162.575.42.724l9.609 5.55a1 1 0 0 0 .998 0l9.61-5.55a.84.84 0 0 0 .42-.724V6.404a.84.84 0 0 0-.42-.726L12.497.131a1.01 1.01 0 0 0-.996 0M2.657 6.338h18.55c.263 0 .43.287.297.515L12.23 22.918c-.062.107-.229.064-.229-.06V12.335a.59.59 0 0 0-.295-.51l-9.11-5.257c-.109-.063-.064-.23.061-.23"
|
|
300
|
+
})
|
|
301
|
+
});
|
|
302
|
+
case "vscode": return /* @__PURE__ */ e("svg", {
|
|
303
|
+
viewBox: "0 0 24 24",
|
|
304
|
+
"aria-hidden": "true",
|
|
305
|
+
children: /* @__PURE__ */ e("path", {
|
|
306
|
+
fill: "#007ACC",
|
|
307
|
+
d: "M23.15 2.587L18.21.21a1.494 1.494 0 0 0-1.705.29l-9.46 8.63-4.12-3.128a.999.999 0 0 0-1.276.057L.327 7.261A1 1 0 0 0 .326 8.74L3.899 12 .326 15.26a1 1 0 0 0 .001 1.479L1.65 17.94a.999.999 0 0 0 1.276.057l4.12-3.128 9.46 8.63a1.492 1.492 0 0 0 1.704.29l4.942-2.377A1.5 1.5 0 0 0 24 20.06V3.939a1.5 1.5 0 0 0-.85-1.352zm-5.146 14.861L10.826 12l7.178-5.448v10.896z"
|
|
308
|
+
})
|
|
309
|
+
});
|
|
189
310
|
}
|
|
190
311
|
}
|
|
191
312
|
function i({ brand: t, size: i = 32, label: a, bare: o = !1 }) {
|
package/dist/SelectLocale.d.ts
CHANGED
|
@@ -73,6 +73,15 @@ export interface SelectKitMessages {
|
|
|
73
73
|
input: string;
|
|
74
74
|
typing: string;
|
|
75
75
|
};
|
|
76
|
+
/** 0.1.232: o SelectTutorial. */
|
|
77
|
+
tutorial: {
|
|
78
|
+
dismiss: string;
|
|
79
|
+
expand: string;
|
|
80
|
+
shrink: string;
|
|
81
|
+
watched: string;
|
|
82
|
+
/** O nome do cartão e do vídeo grande quando o título não é texto. */
|
|
83
|
+
video: string;
|
|
84
|
+
};
|
|
76
85
|
chipInput: {
|
|
77
86
|
limit: (max: string) => string;
|
|
78
87
|
};
|
package/dist/SelectLocale.js
CHANGED
|
@@ -70,6 +70,13 @@ var r = {
|
|
|
70
70
|
input: "Sua pergunta",
|
|
71
71
|
typing: "Escrevendo…"
|
|
72
72
|
},
|
|
73
|
+
tutorial: {
|
|
74
|
+
dismiss: "Fechar o tutorial",
|
|
75
|
+
expand: "Expandir o vídeo",
|
|
76
|
+
shrink: "Reduzir",
|
|
77
|
+
watched: "Visto",
|
|
78
|
+
video: "Vídeo do tutorial"
|
|
79
|
+
},
|
|
73
80
|
chipInput: { limit: (e) => `Limite de ${e} atingido.` },
|
|
74
81
|
factStrip: {
|
|
75
82
|
done: "feito",
|
|
@@ -235,6 +242,13 @@ var r = {
|
|
|
235
242
|
input: "Your question",
|
|
236
243
|
typing: "Typing…"
|
|
237
244
|
},
|
|
245
|
+
tutorial: {
|
|
246
|
+
dismiss: "Close the tutorial",
|
|
247
|
+
expand: "Expand the video",
|
|
248
|
+
shrink: "Shrink",
|
|
249
|
+
watched: "Watched",
|
|
250
|
+
video: "Tutorial video"
|
|
251
|
+
},
|
|
238
252
|
chipInput: { limit: (e) => `Limit of ${e} reached.` },
|
|
239
253
|
factStrip: {
|
|
240
254
|
done: "done",
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface SelectTutorialVideo {
|
|
3
|
+
src: string;
|
|
4
|
+
/** A imagem de capa, antes do play. */
|
|
5
|
+
poster?: string;
|
|
6
|
+
/** O tipo do arquivo (`video/mp4`): o navegador escolhe sem baixar. */
|
|
7
|
+
type?: string;
|
|
8
|
+
/** As legendas, em WebVTT. */
|
|
9
|
+
captions?: {
|
|
10
|
+
src: string;
|
|
11
|
+
srcLang?: string;
|
|
12
|
+
label?: string;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export interface SelectTutorialProps {
|
|
16
|
+
/** A linha de cima ("Tutorial · Primeiros passos"). */
|
|
17
|
+
kicker?: ReactNode;
|
|
18
|
+
title: ReactNode;
|
|
19
|
+
/** O texto sob o vídeo. */
|
|
20
|
+
description?: ReactNode;
|
|
21
|
+
/** O vídeo (com os controles do navegador). */
|
|
22
|
+
video?: SelectTutorialVideo;
|
|
23
|
+
/** Outro conteúdo no lugar do vídeo (uma imagem, um player embutido), na mesma moldura 16:9. */
|
|
24
|
+
media?: ReactNode;
|
|
25
|
+
/** O selo da aula, no canto do vídeo ("Aula 01"). */
|
|
26
|
+
badge?: ReactNode;
|
|
27
|
+
/** Já assistido: o selo "Visto". Sem a prop, ele acende sozinho quando o vídeo termina. */
|
|
28
|
+
watched?: boolean;
|
|
29
|
+
/** O vídeo terminou — para quem chama guardar que foi visto. */
|
|
30
|
+
onEnded?: () => void;
|
|
31
|
+
/** Aberto (controlado). Sem ele, o cartão guarda o próprio estado, a partir de `defaultOpen`. */
|
|
32
|
+
open?: boolean;
|
|
33
|
+
defaultOpen?: boolean;
|
|
34
|
+
onOpenChange?: (open: boolean) => void;
|
|
35
|
+
/** O "X" do cartão fechado: quem chama tira o cartão (e guarda que foi fechado). Sem ele, não há "X". */
|
|
36
|
+
onDismiss?: () => void;
|
|
37
|
+
/** O canto de baixo: `left` (padrão) ou `right`. */
|
|
38
|
+
side?: 'left' | 'right';
|
|
39
|
+
/** `viewport` (padrão) prende à janela do navegador; `container`, ao ancestral posicionado. */
|
|
40
|
+
anchor?: 'viewport' | 'container';
|
|
41
|
+
/** Nomes acessíveis — o padrão vem do idioma do kit. */
|
|
42
|
+
dismissLabel?: string;
|
|
43
|
+
expandLabel?: string;
|
|
44
|
+
shrinkLabel?: string;
|
|
45
|
+
watchedLabel?: string;
|
|
46
|
+
className?: string;
|
|
47
|
+
}
|
|
48
|
+
export declare function SelectTutorial({ kicker, title, description, video, media, badge, watched, onEnded, open: openProp, defaultOpen, onOpenChange, onDismiss, side, anchor, dismissLabel: dismissLabelProp, expandLabel: expandLabelProp, shrinkLabel: shrinkLabelProp, watchedLabel: watchedLabelProp, className, }: SelectTutorialProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { CheckIcon as e, ChevronDownIcon as t, CloseIcon as n, ExpandIcon as r, PlayIcon as ee, ShrinkIcon as te } from "./icons.js";
|
|
3
|
+
import { useSelectMessages as i } from "./SelectLocale.js";
|
|
4
|
+
import { useFocusTrap as a } from "./internal/useFocusTrap.js";
|
|
5
|
+
import { inertProps as o } from "./internal/inert.js";
|
|
6
|
+
import { useEffect as s, useId as ne, useRef as c, useState as l } from "react";
|
|
7
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
8
|
+
//#region src/SelectTutorial.tsx
|
|
9
|
+
function f(e) {
|
|
10
|
+
try {
|
|
11
|
+
e && !e.paused && e.pause();
|
|
12
|
+
} catch {}
|
|
13
|
+
}
|
|
14
|
+
function p({ kicker: p, title: m, description: h, video: g, media: _, badge: v, watched: y, onEnded: b, open: x, defaultOpen: S = !1, onOpenChange: C, onDismiss: w, side: T = "left", anchor: E = "viewport", dismissLabel: D, expandLabel: O, shrinkLabel: k, watchedLabel: A, className: j }) {
|
|
15
|
+
let M = i(), N = D ?? M.tutorial.dismiss, P = O ?? M.tutorial.expand, F = k ?? M.tutorial.shrink, I = A ?? M.tutorial.watched, [L, R] = l(S), z = x ?? L, B = (e) => {
|
|
16
|
+
x === void 0 && R(e), C == null || C(e);
|
|
17
|
+
}, [V, H] = l(!1), [U, W] = l(!1), G = y ?? U, K = ne(), q = c(null), J = c(null), Y = c(null), X = c(null), re = g != null || _ != null;
|
|
18
|
+
a(V, Y), s(() => {
|
|
19
|
+
z || (H(!1), f(X.current));
|
|
20
|
+
}, [z]), s(() => () => f(X.current), []);
|
|
21
|
+
let Z = c(!1);
|
|
22
|
+
s(() => {
|
|
23
|
+
var e;
|
|
24
|
+
!V && Z.current && (Z.current = !1, (e = J.current) == null || e.focus());
|
|
25
|
+
}, [V]);
|
|
26
|
+
let Q = () => {
|
|
27
|
+
Z.current = !0, H(!1);
|
|
28
|
+
}, ie = (e) => {
|
|
29
|
+
if (e.key === "Escape") {
|
|
30
|
+
if (V) e.stopPropagation(), Q();
|
|
31
|
+
else if (z) {
|
|
32
|
+
var t;
|
|
33
|
+
e.stopPropagation(), B(!1), (t = q.current) == null || t.focus();
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}, ae = () => {
|
|
37
|
+
f(X.current), w == null || w();
|
|
38
|
+
}, $ = typeof m == "string" ? m : M.tutorial.video;
|
|
39
|
+
return /* @__PURE__ */ d("div", {
|
|
40
|
+
className: "select-tutorial" + (T === "right" ? " select-tutorial--right" : "") + (E === "container" ? " select-tutorial--container" : "") + (z ? " is-open" : "") + (V ? " is-theater" : "") + (j ? " " + j : ""),
|
|
41
|
+
onKeyDown: ie,
|
|
42
|
+
children: [V && /* @__PURE__ */ u("div", {
|
|
43
|
+
className: "select-tutorial__scrim",
|
|
44
|
+
"aria-hidden": "true",
|
|
45
|
+
onClick: Q
|
|
46
|
+
}), /* @__PURE__ */ d("section", {
|
|
47
|
+
className: "select-tutorial__card",
|
|
48
|
+
"aria-label": $,
|
|
49
|
+
children: [/* @__PURE__ */ d("div", {
|
|
50
|
+
className: "select-tutorial__head",
|
|
51
|
+
children: [/* @__PURE__ */ d("button", {
|
|
52
|
+
ref: q,
|
|
53
|
+
type: "button",
|
|
54
|
+
className: "select-tutorial__toggle",
|
|
55
|
+
"aria-expanded": z,
|
|
56
|
+
"aria-controls": K,
|
|
57
|
+
onClick: () => B(!z),
|
|
58
|
+
children: [
|
|
59
|
+
/* @__PURE__ */ u("span", {
|
|
60
|
+
className: "select-tutorial__play",
|
|
61
|
+
"aria-hidden": "true",
|
|
62
|
+
children: /* @__PURE__ */ u(ee, {})
|
|
63
|
+
}),
|
|
64
|
+
/* @__PURE__ */ d("span", {
|
|
65
|
+
className: "select-tutorial__heading",
|
|
66
|
+
children: [p != null && /* @__PURE__ */ u("span", {
|
|
67
|
+
className: "select-tutorial__kicker",
|
|
68
|
+
children: p
|
|
69
|
+
}), /* @__PURE__ */ u("span", {
|
|
70
|
+
className: "select-tutorial__title",
|
|
71
|
+
children: m
|
|
72
|
+
})]
|
|
73
|
+
}),
|
|
74
|
+
/* @__PURE__ */ u("span", {
|
|
75
|
+
className: "select-tutorial__chevron",
|
|
76
|
+
"aria-hidden": "true",
|
|
77
|
+
children: /* @__PURE__ */ u(t, {})
|
|
78
|
+
})
|
|
79
|
+
]
|
|
80
|
+
}), w && !z && /* @__PURE__ */ u("button", {
|
|
81
|
+
type: "button",
|
|
82
|
+
className: "select-tutorial__dismiss",
|
|
83
|
+
onClick: ae,
|
|
84
|
+
"aria-label": N,
|
|
85
|
+
title: N,
|
|
86
|
+
children: /* @__PURE__ */ u(n, {})
|
|
87
|
+
})]
|
|
88
|
+
}), /* @__PURE__ */ u("div", {
|
|
89
|
+
id: K,
|
|
90
|
+
className: "select-tutorial__body",
|
|
91
|
+
...o(!z),
|
|
92
|
+
children: /* @__PURE__ */ u("div", {
|
|
93
|
+
className: "select-tutorial__inner",
|
|
94
|
+
children: /* @__PURE__ */ d("div", {
|
|
95
|
+
className: "select-tutorial__content",
|
|
96
|
+
children: [re && /* @__PURE__ */ u("div", {
|
|
97
|
+
className: "select-tutorial__slot",
|
|
98
|
+
children: /* @__PURE__ */ d("div", {
|
|
99
|
+
ref: Y,
|
|
100
|
+
className: "select-tutorial__stage" + (V ? " is-theater" : ""),
|
|
101
|
+
role: V ? "dialog" : void 0,
|
|
102
|
+
"aria-modal": V ? !0 : void 0,
|
|
103
|
+
"aria-label": V ? $ : void 0,
|
|
104
|
+
tabIndex: V ? -1 : void 0,
|
|
105
|
+
children: [V && /* @__PURE__ */ d("div", {
|
|
106
|
+
className: "select-tutorial__theaterhead",
|
|
107
|
+
children: [/* @__PURE__ */ d("span", {
|
|
108
|
+
className: "select-tutorial__heading",
|
|
109
|
+
children: [p != null && /* @__PURE__ */ u("span", {
|
|
110
|
+
className: "select-tutorial__kicker",
|
|
111
|
+
children: p
|
|
112
|
+
}), /* @__PURE__ */ u("span", {
|
|
113
|
+
className: "select-tutorial__title",
|
|
114
|
+
children: m
|
|
115
|
+
})]
|
|
116
|
+
}), /* @__PURE__ */ d("button", {
|
|
117
|
+
type: "button",
|
|
118
|
+
className: "select-tutorial__shrink",
|
|
119
|
+
onClick: Q,
|
|
120
|
+
children: [/* @__PURE__ */ u(te, {}), F]
|
|
121
|
+
})]
|
|
122
|
+
}), /* @__PURE__ */ d("div", {
|
|
123
|
+
className: "select-tutorial__screen",
|
|
124
|
+
children: [
|
|
125
|
+
g ? /* @__PURE__ */ d("video", {
|
|
126
|
+
ref: X,
|
|
127
|
+
controls: !0,
|
|
128
|
+
playsInline: !0,
|
|
129
|
+
preload: "metadata",
|
|
130
|
+
poster: g.poster,
|
|
131
|
+
onEnded: () => {
|
|
132
|
+
W(!0), b == null || b();
|
|
133
|
+
},
|
|
134
|
+
children: [/* @__PURE__ */ u("source", {
|
|
135
|
+
src: g.src,
|
|
136
|
+
type: g.type
|
|
137
|
+
}), g.captions && /* @__PURE__ */ u("track", {
|
|
138
|
+
kind: "captions",
|
|
139
|
+
src: g.captions.src,
|
|
140
|
+
srcLang: g.captions.srcLang ?? "pt-BR",
|
|
141
|
+
label: g.captions.label,
|
|
142
|
+
default: !0
|
|
143
|
+
})]
|
|
144
|
+
}) : _,
|
|
145
|
+
(v != null || G) && /* @__PURE__ */ d("span", {
|
|
146
|
+
className: "select-tutorial__chips",
|
|
147
|
+
children: [v != null && /* @__PURE__ */ u("span", {
|
|
148
|
+
className: "select-tutorial__chip",
|
|
149
|
+
children: v
|
|
150
|
+
}), G && /* @__PURE__ */ d("span", {
|
|
151
|
+
className: "select-tutorial__chip select-tutorial__chip--seen",
|
|
152
|
+
children: [/* @__PURE__ */ u(e, {}), I]
|
|
153
|
+
})]
|
|
154
|
+
}),
|
|
155
|
+
!V && /* @__PURE__ */ u("button", {
|
|
156
|
+
ref: J,
|
|
157
|
+
type: "button",
|
|
158
|
+
className: "select-tutorial__expand",
|
|
159
|
+
onClick: () => H(!0),
|
|
160
|
+
"aria-label": P,
|
|
161
|
+
title: P,
|
|
162
|
+
children: /* @__PURE__ */ u("span", {
|
|
163
|
+
className: "select-tutorial__expandmark",
|
|
164
|
+
"aria-hidden": "true",
|
|
165
|
+
children: /* @__PURE__ */ u(r, {})
|
|
166
|
+
})
|
|
167
|
+
})
|
|
168
|
+
]
|
|
169
|
+
})]
|
|
170
|
+
})
|
|
171
|
+
}), h != null && /* @__PURE__ */ u("p", {
|
|
172
|
+
className: "select-tutorial__desc",
|
|
173
|
+
children: h
|
|
174
|
+
})]
|
|
175
|
+
})
|
|
176
|
+
})
|
|
177
|
+
})]
|
|
178
|
+
})]
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
//#endregion
|
|
182
|
+
export { p as SelectTutorial };
|
|
183
|
+
|
|
184
|
+
//# sourceMappingURL=SelectTutorial.js.map
|
package/dist/icons.d.ts
CHANGED
|
@@ -156,6 +156,10 @@ export declare function PaletteIcon(): import("react").JSX.Element;
|
|
|
156
156
|
/** Duas barras (Iconsax pause) — pausar uma cobrança recorrente. */
|
|
157
157
|
/** Tocar (0.1.220): o triângulo, o par do `PauseIcon` (o botão de passar sozinho do SelectCarousel). */
|
|
158
158
|
export declare function PlayIcon(): import("react").JSX.Element;
|
|
159
|
+
/** Expandir (0.1.232): os quatro cantos com as setas para fora — o vídeo do SelectTutorial vai ao centro, grande. */
|
|
160
|
+
export declare function ExpandIcon(): import("react").JSX.Element;
|
|
161
|
+
/** Reduzir (0.1.232): o par do `ExpandIcon`, as setas para dentro. */
|
|
162
|
+
export declare function ShrinkIcon(): import("react").JSX.Element;
|
|
159
163
|
export declare function PauseIcon(): import("react").JSX.Element;
|
|
160
164
|
/** Seta voltando em volta (Iconsax arrow-rotate-left) — o ESTORNO: o dinheiro que volta. Não é o
|
|
161
165
|
* `RefreshIcon` (recarregar), que desenha o mesmo gesto para "de novo". */
|