@tooark/web-components 1.2.2 → 1.3.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 CHANGED
@@ -61,6 +61,8 @@ import "@tooark/web-components/styles.css";
61
61
  registerTooarkComponents(); // idempotent
62
62
  ```
63
63
 
64
+ 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.
65
+
64
66
  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
67
 
66
68
  ---
@@ -87,15 +89,15 @@ Declare the page's `color-scheme` to pick the theme (`light`, `dark` or `light d
87
89
  - `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
90
  - `ark-input` — Standardized text field: label, helper/error with aria, prefix/suffix via `slot`, password `reveal`, native attributes passed through, sizes, intents, `rounded`.
89
91
  - `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 six shapes (`circle`, `square`, `triangle`, `diamond`, `star`, `hexagon`) in a `color`, color and shape together so identity never relies on color alone; `size`, `label`.
92
+ - `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`.
93
+ - `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
94
  - `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
95
  - `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
96
  - `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
97
  - `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.
96
98
  - `ark-scheduler` — Scheduler with `week`/`day` views (time grid with overlap resolved into columns), plus `month` and `agenda`; colored, clickable events.
97
99
  - `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 six `ark-mark` shapes drawn in `color`, `value`, arrows navigate, localized shape names, `disabled`, `size`. Emits `change` with the shape.
100
+ - `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
101
  - `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
102
  - `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
103
  - `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 +184,8 @@ Installed automatically unless marked as peer; peer dependencies are yours to in
182
184
 
183
185
  | Package | Version | Description |
184
186
  | ---------------------------------------------------------------- | ------- | ---------------------------------------------------------------- |
185
- | [`@tooark/core`](https://www.npmjs.com/package/@tooark/core) | ^1.2.2 | Types, i18n, toast/announce services, motion and overlay helpers |
186
- | [`@tooark/tokens`](https://www.npmjs.com/package/@tooark/tokens) | ^1.2.2 | Design tokens (colors, sizes, motion) and primitive types |
187
+ | [`@tooark/core`](https://www.npmjs.com/package/@tooark/core) | ^1.3.0 | Types, i18n, toast/announce services, motion and overlay helpers |
188
+ | [`@tooark/tokens`](https://www.npmjs.com/package/@tooark/tokens) | ^1.3.0 | Design tokens (colors, sizes, motion) and primitive types |
187
189
  | [`tslib`](https://www.npmjs.com/package/tslib) | ^2.8.1 | TypeScript runtime helpers |
188
190
 
189
191
  ---
package/README.pt-BR.md CHANGED
@@ -61,6 +61,8 @@ import "@tooark/web-components/styles.css";
61
61
  registerTooarkComponents(); // idempotente
62
62
  ```
63
63
 
64
+ 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.
65
+
64
66
  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
67
 
66
68
  ---
@@ -87,15 +89,15 @@ Declare o `color-scheme` da página para escolher o tema (`light`, `dark` ou `li
87
89
  - `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
90
  - `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
91
  - `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 seis formas (`circle`, `square`, `triangle`, `diamond`, `star`, `hexagon`) numa `color`, cor e forma juntas para a identidade nunca depender só da cor; `size`, `label`.
92
+ - `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`.
93
+ - `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
94
  - `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
95
  - `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
96
  - `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
97
  - `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. Emite `change` na que marcou.
96
98
  - `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
99
  - `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 seis formas do `ark-mark` desenhadas em `color`, `value`, setas navegam, nomes das formas localizados, `disabled`, `size`. Emite `change` com a forma.
100
+ - `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
101
  - `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
102
  - `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
103
  - `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 +184,8 @@ Instaladas automaticamente, salvo as marcadas como peer, que ficam por sua conta
182
184
 
183
185
  | Pacote | Versão | Descrição |
184
186
  | ---------------------------------------------------------------- | ------ | -------------------------------------------------------------------- |
185
- | [`@tooark/core`](https://www.npmjs.com/package/@tooark/core) | ^1.2.2 | Tipos, i18n, serviços de toast/announce, motion e helpers de overlay |
186
- | [`@tooark/tokens`](https://www.npmjs.com/package/@tooark/tokens) | ^1.2.2 | Design tokens (cores, tamanhos, motion) e tipos primitivos |
187
+ | [`@tooark/core`](https://www.npmjs.com/package/@tooark/core) | ^1.3.0 | Tipos, i18n, serviços de toast/announce, motion e helpers de overlay |
188
+ | [`@tooark/tokens`](https://www.npmjs.com/package/@tooark/tokens) | ^1.3.0 | Design tokens (cores, tamanhos, motion) e tipos primitivos |
187
189
  | [`tslib`](https://www.npmjs.com/package/tslib) | ^2.8.1 | Helpers de runtime do TypeScript |
188
190
 
189
191
  ---