@tooark/web-components 1.2.2 → 1.4.0
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 +33 -11
- package/README.pt-BR.md +33 -11
- package/dist/index.cjs +489 -93
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +61 -19
- package/dist/index.d.ts +61 -19
- package/dist/index.js +489 -93
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ The native Custom Elements (`ark-*`) of the Tooark design system, styled with Ta
|
|
|
9
9
|
|
|
10
10
|
---
|
|
11
11
|
|
|
12
|
-
## Contents
|
|
12
|
+
## 📑 Contents
|
|
13
13
|
|
|
14
14
|
- [Overview](#-overview)
|
|
15
15
|
- [Installation](#-installation)
|
|
@@ -18,6 +18,8 @@ The native Custom Elements (`ark-*`) of the Tooark design system, styled with Ta
|
|
|
18
18
|
- [Usage examples](#-usage-examples)
|
|
19
19
|
- [Dependencies](#-dependencies)
|
|
20
20
|
- [Contributing](#-contributing)
|
|
21
|
+
- [Help & Security](#-help--security)
|
|
22
|
+
- [Support](#-support)
|
|
21
23
|
- [License](#-license)
|
|
22
24
|
|
|
23
25
|
---
|
|
@@ -61,6 +63,8 @@ import "@tooark/web-components/styles.css";
|
|
|
61
63
|
registerTooarkComponents(); // idempotent
|
|
62
64
|
```
|
|
63
65
|
|
|
66
|
+
A JS property your framework assigns to a raw tag before this call is picked up when the element upgrades, so the order does not matter.
|
|
67
|
+
|
|
64
68
|
Declare the page's `color-scheme` to pick the theme (`light`, `dark` or `light dark` to follow the system); set `theme="light|dark"` on an element to force one side, and `lang="en|pt|es"` (or `lang="custom"` with `locale-json`) on the elements that show text.
|
|
65
69
|
|
|
66
70
|
---
|
|
@@ -68,34 +72,34 @@ Declare the page's `color-scheme` to pick the theme (`light`, `dark` or `light d
|
|
|
68
72
|
## 📦 Components
|
|
69
73
|
|
|
70
74
|
- `ark-alert` — Alert/banner: the host is the box in the intent's soft color, your children are the message (free text or elements), `slot="icon"` left, `slot="action"` right, `heading`, `dismissible` with animated exit, `live` region (`status`/`alert`).
|
|
71
|
-
- `ark-avatar` — Avatar (`role="img"` named by `name`): initials from `name`, `src` image that falls back to the initials on load error, `size`, `shape` circle/square, custom `color
|
|
75
|
+
- `ark-avatar` — Avatar (`role="img"` named by `name`): initials from `name`, `src` image that falls back to the initials on load error, `size`, `shape` circle/square, custom `color`, `variant` soft/solid.
|
|
72
76
|
- `ark-badge` — Short status/category label: intents, `soft`/`solid`/`outline`, `xs`–`md`, `rounded`, custom `color` via `color-mix`. The host is the badge; icon and text stay as its children.
|
|
73
77
|
- `ark-button` — Intents, sizes, style variants (solid/outline/ghost), `rounded` (up to `full`), `loading`/`icon-only`/`full-width` states, `status` feedback (success/error glyph + announcement), link mode (`href`).
|
|
74
78
|
- `ark-calendar` — Inline month grid (MUI DateCalendar-style): localized, WAI-ARIA keyboard navigation, motion, month/year views from the title and colored events (`dots`/`count`/`list`).
|
|
75
79
|
- `ark-card` — Card: the host is the box (`surface`, `border`, `rounded`) and a grid: `heading` (h2) or `slot="header"` with `slot="actions"` on the top row, unslotted children as the body, `slot="footer"` last with a divider; `padding` none–lg.
|
|
76
80
|
- `ark-carousel` — Native CSS scroll snap (touch/trackpad scroll natively, mouse drag emulated), autoplay, loop, dots and arrows. Slides stay as your direct children.
|
|
77
|
-
- `ark-checkbox` — Checkbox drawn by the component (`role="checkbox"` button + hidden native input for forms and `<fieldset disabled>`): `checked`, `indeterminate`, `label`/`aria-label`/free children as the label, sizes, intents. Emits `change`.
|
|
81
|
+
- `ark-checkbox` — Checkbox drawn by the component (`role="checkbox"` button + hidden native input for forms and `<fieldset disabled>`): `checked`, `indeterminate`, `label`/`aria-label`/free children as the label, `helper` hint below it, sizes, intents. Emits `change`.
|
|
78
82
|
- `ark-clock` — Time selection with scrollable digital columns (hours/minutes/seconds), 24h/12h, minute step, localized.
|
|
79
83
|
- `ark-color-swatches` — Color palette as a `radiogroup`: swatches from `colors` (`{ name, value }[]`, JSON attribute or JS property), `value`, arrows navigate, `disabled`, `size`. Emits `change` with the value.
|
|
80
84
|
- `ark-command-item` — Command palette item (the host is the `role="option"`): free children, `slot="trailing"` for a shortcut, `value`, `group`, `label` (filter text), `disabled`. Emits `ark-select`.
|
|
81
|
-
- `ark-command-palette` — Command palette on the Popover API: search field (an `ark-input` of its own), `ark-command-item` children grouped and filtered (`filter`) or searched by the app (`ark-query`), arrows + Enter, `hotkey` (`/`, `mod+k`). Emits `ark-select`, `ark-query`, `ark-open`, `ark-close`.
|
|
85
|
+
- `ark-command-palette` — Command palette on the Popover API: search field (an `ark-input` of its own), `ark-command-item` children grouped and filtered (`filter`) or searched by the app (`ark-query`), arrows + Enter, `hotkey` (`/`, `mod+k`), `hint` and `busy` for the empty message. Emits `ark-select`, `ark-query`, `ark-open`, `ark-close`.
|
|
82
86
|
- `ark-copy-button` — Copy button: extends `ark-button` (same variants, sizes, `icon-only`, forms, hooks); copies `value` or the `for` element, swaps the icon for a check and the text/`title` for "copied" for `feedback-ms`, announces it. Emits `ark-copy`.
|
|
83
87
|
- `ark-datepicker` — Date/time picker composing `ark-input` + `ark-calendar` + `ark-clock`: `mode` datetime (default)/date/time, inline or `input` mode with field + popup, localized formatting, typed input parsing, forms.
|
|
84
88
|
- `ark-dialog` — Modal dialog on the Popover API (top layer, `::backdrop` scrim, no portal): the host is the panel, your children are the body, `slot="footer"` is the footer; header from `label`, focus trap, Esc/scrim, `sm`–`xl` or `full`.
|
|
85
|
-
- `ark-drawer` — Drawer anchored to an edge: `overlay` (Popover API, scrim, focus trap, Esc) or `inline` (in the page flow, e.g. a bottom console); `side`, `size` preset or CSS length, header from `label
|
|
89
|
+
- `ark-drawer` — Drawer anchored to an edge: `overlay` (Popover API, scrim, focus trap, Esc) or `inline` (in the page flow, e.g. a bottom console); `side`, `size` preset or CSS length, header from `label` with a `slot="actions"` row, `slot="footer"`, slide with the `sheet` easing. Emits `ark-open`/`ark-close`.
|
|
86
90
|
- `ark-empty` — Empty state: dashed box with a dimmed `slot="icon"`, `heading` (h3), `description` and an optional `slot="action"` button; children stay in place, ordered by CSS.
|
|
87
91
|
- `ark-file-input` — File field with the `ark-input` grid (label, helper/error): hidden native `<input type="file">` for forms, drop zone with `dragover` highlight, keyboard-accessible choose button, list of selected names, `accept`/`multiple`. Emits `change` with the files and announces them.
|
|
88
92
|
- `ark-input` — Standardized text field: label, helper/error with aria, prefix/suffix via `slot`, password `reveal`, native attributes passed through, sizes, intents, `rounded`.
|
|
89
93
|
- `ark-kbd` — Keyboard key: the host is the key (mono, border, `surface-muted`, bottom edge) around your text; `size`.
|
|
90
|
-
- `ark-kv-editor` — Key/value editor: rows `{ id, key, value, enabled }` (JS property) to enable, edit, delete and add, optional `types`/`secret`/`description` columns, bulk mode as `key:value` lines or JSON. Composes other ark-\* controls. Emits `change`, `ark-add`, `ark-delete`.
|
|
91
|
-
- `ark-mark` — Scope mark: one of
|
|
94
|
+
- `ark-kv-editor` — Key/value editor: rows `{ id, key, value, enabled }` (JS property) to enable, edit, delete and add, optional `types`/`secret`/`description` columns, bulk mode as `key:value` lines or JSON, opt-in `valueField` for a value cell of your own. Composes other ark-\* controls. Emits `change`, `ark-add`, `ark-delete`.
|
|
95
|
+
- `ark-mark` — Scope mark: one of ten shapes (`circle`, `square`, `triangle`, `diamond`, `star`, `hexagon`, `cross`, `pentagon`, `moon`, `asterisk`) in a `color`, color and shape together so identity never relies on color alone; `size`, `label`.
|
|
92
96
|
- `ark-menu` — Dropdown/context menu on the Popover API (`role="menu"`, `popover="auto"`): anchored to a trigger by `for`, `align`/`direction` with flip, keyboard, `openAt(x, y)`; items stay as children. Emits `ark-select`.
|
|
93
97
|
- `ark-menu-item` — Menu item (the host is the item): free children, `slot="trailing"`, `disabled`, `intent`, `checked` (checkbox item), `divider`, `static` (non-interactive content).
|
|
94
98
|
- `ark-progress` — Progress bar (`role="progressbar"` on the host): `value`/`max` with token-driven width transition, `show-value`, `indeterminate` loop exempt from reduced motion, `label`, sizes, intents.
|
|
95
|
-
- `ark-radio` — Radio drawn by the component (`role="radio"` button + hidden native input): groups by `name` in the same form, one tab stop per group, arrows move and check, `label`/children as the label. Emits `change` on the one checked.
|
|
99
|
+
- `ark-radio` — Radio drawn by the component (`role="radio"` button + hidden native input): groups by `name` in the same form, one tab stop per group, arrows move and check, `label`/children as the label, `helper` hint. Emits `change` on the one checked.
|
|
96
100
|
- `ark-scheduler` — Scheduler with `week`/`day` views (time grid with overlap resolved into columns), plus `month` and `agenda`; colored, clickable events.
|
|
97
101
|
- `ark-select` — Native `<select>` styled like `ark-input`: label, helper/error with aria, `placeholder`, options from data (`options` JSON attribute or JS property, `group` → `<optgroup>`), sizes, intents, `rounded`.
|
|
98
|
-
- `ark-shape-picker` — Shape picker as a `radiogroup`: the
|
|
102
|
+
- `ark-shape-picker` — Shape picker as a `radiogroup`: the ten `ark-mark` shapes (or the ones `shapes` lists) drawn in `color`, `value`, arrows navigate, localized shape names, `disabled`, `size`. Emits `change` with the shape.
|
|
99
103
|
- `ark-skeleton` — Loading placeholder: the host is the block (`.ark-skeleton`, `aria-hidden`), sized by your class/style; `rows` renders bars, `animated` opts into the shimmer (a sweeping highlight), `rounded`.
|
|
100
104
|
- `ark-spinner` — Standalone loading indicator (`role="status"`): the button's spinner SVG on `.ark-animate-spin` (keeps spinning under reduced motion), screen-reader label by `lang` or `label`, `size`, optional `intent` (inherits the text color otherwise).
|
|
101
105
|
- `ark-split-pane` — Resizable panels: your children are the panels, the handles are the component's own nodes at the end of the host; `direction`, `sizes` (percentages, rewritten on every change), `data-min`/`data-max` per panel, keyboard and pointer-capture drag. Emits `ark-resize`.
|
|
@@ -182,8 +186,8 @@ Installed automatically unless marked as peer; peer dependencies are yours to in
|
|
|
182
186
|
|
|
183
187
|
| Package | Version | Description |
|
|
184
188
|
| ---------------------------------------------------------------- | ------- | ---------------------------------------------------------------- |
|
|
185
|
-
| [`@tooark/core`](https://www.npmjs.com/package/@tooark/core) | ^1.
|
|
186
|
-
| [`@tooark/tokens`](https://www.npmjs.com/package/@tooark/tokens) | ^1.
|
|
189
|
+
| [`@tooark/core`](https://www.npmjs.com/package/@tooark/core) | ^1.4.0 | Types, i18n, toast/announce services, motion and overlay helpers |
|
|
190
|
+
| [`@tooark/tokens`](https://www.npmjs.com/package/@tooark/tokens) | ^1.4.0 | Design tokens (colors, sizes, motion) and primitive types |
|
|
187
191
|
| [`tslib`](https://www.npmjs.com/package/tslib) | ^2.8.1 | TypeScript runtime helpers |
|
|
188
192
|
|
|
189
193
|
---
|
|
@@ -194,6 +198,24 @@ Contributions are welcome! Open issues and pull requests in the [Tooark/web-comp
|
|
|
194
198
|
|
|
195
199
|
---
|
|
196
200
|
|
|
201
|
+
## 🆘 Help & Security
|
|
202
|
+
|
|
203
|
+
- ❓ **Questions, bugs, feature ideas** — see [SUPPORT.md](https://github.com/Tooark/web-components/blob/main/SUPPORT.md) for the right channel
|
|
204
|
+
- 🔒 **Security vulnerabilities** — do **not** open a public issue; follow [SECURITY.md](https://github.com/Tooark/web-components/blob/main/SECURITY.md)
|
|
205
|
+
|
|
206
|
+
---
|
|
207
|
+
|
|
208
|
+
## 💖 Support
|
|
209
|
+
|
|
210
|
+
If this project helps your workflow, consider supporting its development:
|
|
211
|
+
|
|
212
|
+
- 💙 [GitHub Sponsors](https://github.com/sponsors/paulosfjunior)
|
|
213
|
+
- ☕ [Ko-fi](https://ko-fi.com/paulosfjunior)
|
|
214
|
+
|
|
215
|
+
Every contribution helps keep the project maintained and improving. Thank you! 🙏
|
|
216
|
+
|
|
217
|
+
---
|
|
218
|
+
|
|
197
219
|
## 📄 License
|
|
198
220
|
|
|
199
221
|
This project is licensed under the Apache License 2.0. See the [LICENSE](https://github.com/Tooark/web-components/blob/main/LICENSE) file for details.
|
package/README.pt-BR.md
CHANGED
|
@@ -9,7 +9,7 @@ Os Custom Elements nativos (`ark-*`) do design system Tooark, estilizados com Ta
|
|
|
9
9
|
|
|
10
10
|
---
|
|
11
11
|
|
|
12
|
-
## Conteúdo
|
|
12
|
+
## 📑 Conteúdo
|
|
13
13
|
|
|
14
14
|
- [Visão Geral](#-visão-geral)
|
|
15
15
|
- [Instalação](#-instalação)
|
|
@@ -18,6 +18,8 @@ Os Custom Elements nativos (`ark-*`) do design system Tooark, estilizados com Ta
|
|
|
18
18
|
- [Exemplos de Uso](#-exemplos-de-uso)
|
|
19
19
|
- [Dependências](#-dependências)
|
|
20
20
|
- [Contribuição](#-contribuição)
|
|
21
|
+
- [Ajuda & Segurança](#-ajuda--segurança)
|
|
22
|
+
- [Apoie](#-apoie)
|
|
21
23
|
- [Licença](#-licença)
|
|
22
24
|
|
|
23
25
|
---
|
|
@@ -61,6 +63,8 @@ import "@tooark/web-components/styles.css";
|
|
|
61
63
|
registerTooarkComponents(); // idempotente
|
|
62
64
|
```
|
|
63
65
|
|
|
66
|
+
Uma propriedade JS que o framework atribui a uma tag crua antes desta chamada é aplicada quando o elemento faz o upgrade, então a ordem não importa.
|
|
67
|
+
|
|
64
68
|
Declare o `color-scheme` da página para escolher o tema (`light`, `dark` ou `light dark` para seguir o sistema); `theme="light|dark"` num elemento força um lado, e `lang="en|pt|es"` (ou `lang="custom"` com `locale-json`) nos elementos que mostram texto.
|
|
65
69
|
|
|
66
70
|
---
|
|
@@ -68,34 +72,34 @@ Declare o `color-scheme` da página para escolher o tema (`light`, `dark` ou `li
|
|
|
68
72
|
## 📦 Componentes
|
|
69
73
|
|
|
70
74
|
- `ark-alert` — Alerta/banner: o host é a caixa na cor suave do intent, os filhos são a mensagem (texto livre ou elementos), `slot="icon"` à esquerda, `slot="action"` à direita, `heading`, `dismissible` com saída animada, `live` region (`status`/`alert`).
|
|
71
|
-
- `ark-avatar` — Avatar (`role="img"` nomeado por `name`): iniciais de `name`, imagem `src` que cai para as iniciais em erro de carga, `size`, `shape` circle/square, `color` própria.
|
|
75
|
+
- `ark-avatar` — Avatar (`role="img"` nomeado por `name`): iniciais de `name`, imagem `src` que cai para as iniciais em erro de carga, `size`, `shape` circle/square, `color` própria, `variant` soft/solid.
|
|
72
76
|
- `ark-badge` — Rótulo curto de status/categoria: intents, `soft`/`solid`/`outline`, `xs`–`md`, `rounded`, `color` própria via `color-mix`. O host é o badge; ícone e texto ficam como filhos.
|
|
73
77
|
- `ark-button` — Intents, tamanhos, variantes (solid/outline/ghost), `rounded` (até `full`), estados `loading`/`icon-only`/`full-width`, feedback `status` (glifo de sucesso/erro + anúncio) e modo link (`href`).
|
|
74
78
|
- `ark-calendar` — Grid de mês inline (no estilo do DateCalendar do MUI): localizado, teclado WAI-ARIA, motion, views de mês/ano no título e eventos com cor (`dots`/`count`/`list`).
|
|
75
79
|
- `ark-card` — Cartão: o host é a caixa (`surface`, `border`, `rounded`) e uma grid: `heading` (h2) ou `slot="header"` com `slot="actions"` na linha de cima, filhos sem slot como corpo, `slot="footer"` por último com divisor; `padding` none–lg.
|
|
76
80
|
- `ark-carousel` — CSS scroll snap nativo (touch/trackpad rolam nativamente, arrasto com mouse emulado), autoplay, loop, dots e setas. Os slides continuam sendo seus filhos diretos.
|
|
77
|
-
- `ark-checkbox` — Checkbox desenhado pelo componente (botão `role="checkbox"` + input nativo oculto para formulário e `<fieldset disabled>`): `checked`, `indeterminate`, `label`/`aria-label`/filhos livres como rótulo, tamanhos, intents. Emite `change`.
|
|
81
|
+
- `ark-checkbox` — Checkbox desenhado pelo componente (botão `role="checkbox"` + input nativo oculto para formulário e `<fieldset disabled>`): `checked`, `indeterminate`, `label`/`aria-label`/filhos livres como rótulo, dica `helper` abaixo dele, tamanhos, intents. Emite `change`.
|
|
78
82
|
- `ark-clock` — Seleção de hora em colunas digitais (hora/minuto/segundo), 24h/12h, step de minutos, localizado.
|
|
79
83
|
- `ark-color-swatches` — Paleta de cores como `radiogroup`: amostras de `colors` (`{ name, value }[]`, atributo JSON ou propriedade JS), `value`, setas navegam, `disabled`, `size`. Emite `change` com o valor.
|
|
80
84
|
- `ark-command-item` — Item da paleta de comandos (o host é o `role="option"`): filhos livres, `slot="trailing"` para o atalho, `value`, `group`, `label` (texto do filtro), `disabled`. Emite `ark-select`.
|
|
81
|
-
- `ark-command-palette` — Paleta de comandos sobre a Popover API: campo de busca (um `ark-input` próprio), filhos `ark-command-item` agrupados e filtrados (`filter`) ou buscados pelo app (`ark-query`), setas + Enter, `hotkey` (`/`, `mod+k`). Emite `ark-select`, `ark-query`, `ark-open`, `ark-close`.
|
|
85
|
+
- `ark-command-palette` — Paleta de comandos sobre a Popover API: campo de busca (um `ark-input` próprio), filhos `ark-command-item` agrupados e filtrados (`filter`) ou buscados pelo app (`ark-query`), setas + Enter, `hotkey` (`/`, `mod+k`), `hint` e `busy` para a mensagem de vazio. Emite `ark-select`, `ark-query`, `ark-open`, `ark-close`.
|
|
82
86
|
- `ark-copy-button` — Botão de copiar: estende o `ark-button` (mesmas variantes, tamanhos, `icon-only`, formulário, hooks); copia `value` ou o elemento de `for`, troca o ícone por um check e o texto/`title` por "copiado" durante `feedback-ms`, anuncia. Emite `ark-copy`.
|
|
83
87
|
- `ark-datepicker` — Seletor de data/hora que compõe `ark-input` + `ark-calendar` + `ark-clock`: `mode` datetime (padrão)/date/time, inline ou modo `input` com campo + popup, formatação localizada, parse da digitação, formulário.
|
|
84
88
|
- `ark-dialog` — Diálogo modal sobre a Popover API (top layer, scrim por `::backdrop`, sem portal): o host é o painel, seus filhos são o corpo, `slot="footer"` é o rodapé; cabeçalho de `label`, focus trap, Esc/scrim, `sm`–`xl` ou `full`.
|
|
85
|
-
- `ark-drawer` — Gaveta ancorada numa borda: `overlay` (Popover API, scrim, focus trap, Esc) ou `inline` (no fluxo da página, ex.: console inferior); `side`, `size` preset ou comprimento CSS, cabeçalho de `label`, `slot="footer"`, slide com o easing `sheet`. Emite `ark-open`/`ark-close`.
|
|
89
|
+
- `ark-drawer` — Gaveta ancorada numa borda: `overlay` (Popover API, scrim, focus trap, Esc) ou `inline` (no fluxo da página, ex.: console inferior); `side`, `size` preset ou comprimento CSS, cabeçalho de `label` com a linha `slot="actions"`, `slot="footer"`, slide com o easing `sheet`. Emite `ark-open`/`ark-close`.
|
|
86
90
|
- `ark-empty` — Estado vazio: caixa tracejada com `slot="icon"` apagado, `heading` (h3), `description` e um botão opcional em `slot="action"`; os filhos ficam no lugar, ordenados por CSS.
|
|
87
91
|
- `ark-file-input` — Campo de arquivo com a grid do `ark-input` (label, helper/erro): `<input type="file">` nativo oculto para o formulário, zona de soltar com realce em `dragover`, botão de escolher acessível por teclado, lista dos nomes escolhidos, `accept`/`multiple`. Emite `change` com os arquivos e os anuncia.
|
|
88
92
|
- `ark-input` — Campo de texto padronizado: label, helper/erro com aria, prefixo/sufixo via `slot`, `reveal` de senha, atributos nativos repassados, tamanhos, intents, `rounded`.
|
|
89
93
|
- `ark-kbd` — Tecla de atalho: o host é a tecla (mono, borda, `surface-muted`, aresta inferior) em volta do seu texto; `size`.
|
|
90
|
-
- `ark-kv-editor` — Editor chave/valor: linhas `{ id, key, value, enabled }` (propriedade JS) com ativar, editar, remover, adicionar, colunas opcionais `types`/`secret`/`description`, modo em massa em linhas `chave:valor` ou JSON. Compõe outros controles ark-\*. Emite `change`, `ark-add`, `ark-delete`.
|
|
91
|
-
- `ark-mark` — Marca de escopo: uma de
|
|
94
|
+
- `ark-kv-editor` — Editor chave/valor: linhas `{ id, key, value, enabled }` (propriedade JS) com ativar, editar, remover, adicionar, colunas opcionais `types`/`secret`/`description`, modo em massa em linhas `chave:valor` ou JSON, `valueField` opcional para uma célula de valor sua. Compõe outros controles ark-\*. Emite `change`, `ark-add`, `ark-delete`.
|
|
95
|
+
- `ark-mark` — Marca de escopo: uma de dez formas (`circle`, `square`, `triangle`, `diamond`, `star`, `hexagon`, `cross`, `pentagon`, `moon`, `asterisk`) numa `color`, cor e forma juntas para a identidade nunca depender só da cor; `size`, `label`.
|
|
92
96
|
- `ark-menu` — Menu suspenso/de contexto sobre a Popover API (`role="menu"`, `popover="auto"`): ancorado ao gatilho por `for`, `align`/`direction` com flip, teclado, `openAt(x, y)`; itens ficam como filhos. Emite `ark-select`.
|
|
93
97
|
- `ark-menu-item` — Item de menu (o host é o item): filhos livres, `slot="trailing"`, `disabled`, `intent`, `checked` (item checkbox), `divider`, `static` (conteúdo não interativo).
|
|
94
98
|
- `ark-progress` — Barra de progresso (`role="progressbar"` no host): `value`/`max` com transição de largura pelos tokens, `show-value`, `indeterminate` em loop isento de movimento reduzido, `label`, tamanhos, intents.
|
|
95
|
-
- `ark-radio` — Radio desenhado pelo componente (botão `role="radio"` + input nativo oculto): agrupa por `name` no mesmo form, um tab stop por grupo, setas movem e marcam, `label`/filhos como rótulo
|
|
99
|
+
- `ark-radio` — Radio desenhado pelo componente (botão `role="radio"` + input nativo oculto): agrupa por `name` no mesmo form, um tab stop por grupo, setas movem e marcam, `label`/filhos como rótulo, dica `helper`. Emite `change` na que marcou.
|
|
96
100
|
- `ark-scheduler` — Agenda com views `week`/`day` (timeline por horário e sobreposição em colunas), `month` e `agenda`; eventos coloridos e clicáveis.
|
|
97
101
|
- `ark-select` — `<select>` nativo estilizado como o `ark-input`: label, helper/erro com aria, `placeholder`, opções por dados (atributo `options` em JSON ou propriedade JS, `group` → `<optgroup>`), tamanhos, intents, `rounded`.
|
|
98
|
-
- `ark-shape-picker` — Seletor de forma como `radiogroup`: as
|
|
102
|
+
- `ark-shape-picker` — Seletor de forma como `radiogroup`: as dez formas do `ark-mark` (ou as que `shapes` listar) desenhadas em `color`, `value`, setas navegam, nomes das formas localizados, `disabled`, `size`. Emite `change` com a forma.
|
|
99
103
|
- `ark-skeleton` — Placeholder de carregamento: o host é o bloco (`.ark-skeleton`, `aria-hidden`), dimensionado pela sua class/style; `rows` renderiza barras, `animated` liga o shimmer (um brilho que varre), `rounded`.
|
|
100
104
|
- `ark-spinner` — Indicador de carregamento solto (`role="status"`): o SVG do spinner do botão em `.ark-animate-spin` (continua girando sob movimento reduzido), rótulo para leitor de tela por `lang` ou `label`, `size`, `intent` opcional (senão herda a cor do texto).
|
|
101
105
|
- `ark-split-pane` — Painéis redimensionáveis: os seus filhos são os painéis, as alças são nós próprios do componente ao fim do host; `direction`, `sizes` (percentuais, reescritos a cada mudança), `data-min`/`data-max` por painel, teclado e arrasto com pointer capture. Emite `ark-resize`.
|
|
@@ -182,8 +186,8 @@ Instaladas automaticamente, salvo as marcadas como peer, que ficam por sua conta
|
|
|
182
186
|
|
|
183
187
|
| Pacote | Versão | Descrição |
|
|
184
188
|
| ---------------------------------------------------------------- | ------ | -------------------------------------------------------------------- |
|
|
185
|
-
| [`@tooark/core`](https://www.npmjs.com/package/@tooark/core) | ^1.
|
|
186
|
-
| [`@tooark/tokens`](https://www.npmjs.com/package/@tooark/tokens) | ^1.
|
|
189
|
+
| [`@tooark/core`](https://www.npmjs.com/package/@tooark/core) | ^1.4.0 | Tipos, i18n, serviços de toast/announce, motion e helpers de overlay |
|
|
190
|
+
| [`@tooark/tokens`](https://www.npmjs.com/package/@tooark/tokens) | ^1.4.0 | Design tokens (cores, tamanhos, motion) e tipos primitivos |
|
|
187
191
|
| [`tslib`](https://www.npmjs.com/package/tslib) | ^2.8.1 | Helpers de runtime do TypeScript |
|
|
188
192
|
|
|
189
193
|
---
|
|
@@ -194,6 +198,24 @@ Contribuições são bem-vindas! Abra issues e pull requests no repositório [To
|
|
|
194
198
|
|
|
195
199
|
---
|
|
196
200
|
|
|
201
|
+
## 🆘 Ajuda & Segurança
|
|
202
|
+
|
|
203
|
+
- ❓ **Dúvidas, bugs e ideias** — veja o [SUPPORT.md](https://github.com/Tooark/web-components/blob/main/SUPPORT.md) para escolher o canal certo
|
|
204
|
+
- 🔒 **Vulnerabilidades de segurança** — **não** abra issue pública; siga o [SECURITY.md](https://github.com/Tooark/web-components/blob/main/SECURITY.md)
|
|
205
|
+
|
|
206
|
+
---
|
|
207
|
+
|
|
208
|
+
## 💖 Apoie
|
|
209
|
+
|
|
210
|
+
Se este projeto ajuda no seu dia a dia, considere apoiar o desenvolvimento:
|
|
211
|
+
|
|
212
|
+
- 💙 [GitHub Sponsors](https://github.com/sponsors/paulosfjunior)
|
|
213
|
+
- ☕ [Ko-fi](https://ko-fi.com/paulosfjunior)
|
|
214
|
+
|
|
215
|
+
Cada contribuição ajuda a manter o projeto ativo e em evolução. Obrigado! 🙏
|
|
216
|
+
|
|
217
|
+
---
|
|
218
|
+
|
|
197
219
|
## 📄 Licença
|
|
198
220
|
|
|
199
221
|
Este projeto está licenciado sob a licença Apache 2.0. Veja o arquivo [LICENSE](https://github.com/Tooark/web-components/blob/main/LICENSE) para mais detalhes.
|