@tooark/react 1.3.0 → 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 CHANGED
@@ -9,7 +9,7 @@ Typed React wrappers for the Tooark Web Components: camelCase props, custom even
9
9
 
10
10
  ---
11
11
 
12
- ## Contents
12
+ ## 📑 Contents
13
13
 
14
14
  - [Overview](#-overview)
15
15
  - [Installation](#-installation)
@@ -18,6 +18,8 @@ Typed React wrappers for the Tooark Web Components: camelCase props, custom even
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
  ---
@@ -165,8 +167,8 @@ Installed automatically unless marked as peer; peer dependencies are yours to in
165
167
 
166
168
  | Package | Version | Description |
167
169
  | -------------------------------------------------------------------------------- | ----------- | ---------------------------------------------------------------- |
168
- | [`@tooark/core`](https://www.npmjs.com/package/@tooark/core) | ^1.3.0 | Types, i18n, toast/announce services, motion and overlay helpers |
169
- | [`@tooark/web-components`](https://www.npmjs.com/package/@tooark/web-components) | ^1.3.0 | The `ark-*` Custom Elements and their stylesheet |
170
+ | [`@tooark/core`](https://www.npmjs.com/package/@tooark/core) | ^1.4.0 | Types, i18n, toast/announce services, motion and overlay helpers |
171
+ | [`@tooark/web-components`](https://www.npmjs.com/package/@tooark/web-components) | ^1.4.0 | The `ark-*` Custom Elements and their stylesheet |
170
172
  | [`react`](https://www.npmjs.com/package/react) | >=18 (peer) | React 18 or 19 |
171
173
  | [`react-dom`](https://www.npmjs.com/package/react-dom) | >=18 (peer) | React DOM renderer |
172
174
 
@@ -178,6 +180,24 @@ Contributions are welcome! Open issues and pull requests in the [Tooark/web-comp
178
180
 
179
181
  ---
180
182
 
183
+ ## 🆘 Help & Security
184
+
185
+ - ❓ **Questions, bugs, feature ideas** — see [SUPPORT.md](https://github.com/Tooark/web-components/blob/main/SUPPORT.md) for the right channel
186
+ - 🔒 **Security vulnerabilities** — do **not** open a public issue; follow [SECURITY.md](https://github.com/Tooark/web-components/blob/main/SECURITY.md)
187
+
188
+ ---
189
+
190
+ ## 💖 Support
191
+
192
+ If this project helps your workflow, consider supporting its development:
193
+
194
+ - 💙 [GitHub Sponsors](https://github.com/sponsors/paulosfjunior)
195
+ - ☕ [Ko-fi](https://ko-fi.com/paulosfjunior)
196
+
197
+ Every contribution helps keep the project maintained and improving. Thank you! 🙏
198
+
199
+ ---
200
+
181
201
  ## 📄 License
182
202
 
183
203
  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 @@ Wrappers React tipados dos Tooark Web Components: props camelCase, eventos custo
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 @@ Wrappers React tipados dos Tooark Web Components: props camelCase, eventos custo
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
  ---
@@ -165,8 +167,8 @@ Instaladas automaticamente, salvo as marcadas como peer, que ficam por sua conta
165
167
 
166
168
  | Pacote | Versão | Descrição |
167
169
  | -------------------------------------------------------------------------------- | ----------- | -------------------------------------------------------------------- |
168
- | [`@tooark/core`](https://www.npmjs.com/package/@tooark/core) | ^1.3.0 | Tipos, i18n, serviços de toast/announce, motion e helpers de overlay |
169
- | [`@tooark/web-components`](https://www.npmjs.com/package/@tooark/web-components) | ^1.3.0 | Os Custom Elements `ark-*` e a folha de estilo deles |
170
+ | [`@tooark/core`](https://www.npmjs.com/package/@tooark/core) | ^1.4.0 | Tipos, i18n, serviços de toast/announce, motion e helpers de overlay |
171
+ | [`@tooark/web-components`](https://www.npmjs.com/package/@tooark/web-components) | ^1.4.0 | Os Custom Elements `ark-*` e a folha de estilo deles |
170
172
  | [`react`](https://www.npmjs.com/package/react) | >=18 (peer) | React 18 ou 19 |
171
173
  | [`react-dom`](https://www.npmjs.com/package/react-dom) | >=18 (peer) | Renderizador React DOM |
172
174
 
@@ -178,6 +180,24 @@ Contribuições são bem-vindas! Abra issues e pull requests no repositório [To
178
180
 
179
181
  ---
180
182
 
183
+ ## 🆘 Ajuda & Segurança
184
+
185
+ - ❓ **Dúvidas, bugs e ideias** — veja o [SUPPORT.md](https://github.com/Tooark/web-components/blob/main/SUPPORT.md) para escolher o canal certo
186
+ - 🔒 **Vulnerabilidades de segurança** — **não** abra issue pública; siga o [SECURITY.md](https://github.com/Tooark/web-components/blob/main/SECURITY.md)
187
+
188
+ ---
189
+
190
+ ## 💖 Apoie
191
+
192
+ Se este projeto ajuda no seu dia a dia, considere apoiar o desenvolvimento:
193
+
194
+ - 💙 [GitHub Sponsors](https://github.com/sponsors/paulosfjunior)
195
+ - ☕ [Ko-fi](https://ko-fi.com/paulosfjunior)
196
+
197
+ Cada contribuição ajuda a manter o projeto ativo e em evolução. Obrigado! 🙏
198
+
199
+ ---
200
+
181
201
  ## 📄 Licença
182
202
 
183
203
  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.
@@ -9,6 +9,8 @@ export type ArkCheckboxProps = PropsWithChildren<ArkCheckboxStyleOptions & {
9
9
  value?: string;
10
10
  /** Rotulo proprio (<label for>); sem ele use aria-label ou filhos como rotulo livre. */
11
11
  label?: string;
12
+ /** Dica abaixo do rotulo, ligada ao controle por aria-describedby. */
13
+ helper?: string;
12
14
  className?: string;
13
15
  onChange?: (event: CustomEvent<{
14
16
  checked: boolean;
@@ -22,6 +24,8 @@ export declare const ArkCheckbox: React.ForwardRefExoticComponent<ArkCheckboxSty
22
24
  value?: string;
23
25
  /** Rotulo proprio (<label for>); sem ele use aria-label ou filhos como rotulo livre. */
24
26
  label?: string;
27
+ /** Dica abaixo do rotulo, ligada ao controle por aria-describedby. */
28
+ helper?: string;
25
29
  className?: string;
26
30
  onChange?: (event: CustomEvent<{
27
31
  checked: boolean;
@@ -15,6 +15,10 @@ export type ArkCommandPaletteProps = PropsWithChildren<ArkCommandPaletteStyleOpt
15
15
  queryDelay?: number;
16
16
  /** Nome acessivel do dialogo. */
17
17
  label?: string;
18
+ /** Mensagem sem opcoes enquanto o campo esta vazio (no lugar de `noResults`). */
19
+ hint?: string;
20
+ /** Busca assincrona em andamento: sem opcoes a mensagem vira `searching`, e o listbox fica aria-busy. */
21
+ busy?: boolean;
18
22
  /** A pagina continua rolando com a paleta aberta. */
19
23
  noScrollLock?: boolean;
20
24
  "aria-label"?: string;
@@ -41,6 +45,10 @@ export declare const ArkCommandPalette: React.ForwardRefExoticComponent<ArkComma
41
45
  queryDelay?: number;
42
46
  /** Nome acessivel do dialogo. */
43
47
  label?: string;
48
+ /** Mensagem sem opcoes enquanto o campo esta vazio (no lugar de `noResults`). */
49
+ hint?: string;
50
+ /** Busca assincrona em andamento: sem opcoes a mensagem vira `searching`, e o listbox fica aria-busy. */
51
+ busy?: boolean;
44
52
  /** A pagina continua rolando com a paleta aberta. */
45
53
  noScrollLock?: boolean;
46
54
  "aria-label"?: string;
@@ -3,7 +3,7 @@ import { ensureTooarkComponentsRegistered } from "./register.js";
3
3
  import { useForwardedRef } from "./use-forwarded-ref.js";
4
4
  import { useIsomorphicLayoutEffect } from "./use-isomorphic-layout-effect.js";
5
5
  export const ArkCommandPalette = forwardRef(function ArkCommandPalette(props, forwardedRef) {
6
- const { children, className, open, filter, queryDelay, noScrollLock, localeJson, onSelect, onQuery, onOpen, onClose, ...rest } = props;
6
+ const { children, className, open, filter, busy, queryDelay, noScrollLock, localeJson, onSelect, onQuery, onOpen, onClose, ...rest } = props;
7
7
  const [ref, setRef] = useForwardedRef(forwardedRef);
8
8
  useEffect(() => {
9
9
  ensureTooarkComponentsRegistered();
@@ -33,6 +33,7 @@ export const ArkCommandPalette = forwardRef(function ArkCommandPalette(props, fo
33
33
  class: className,
34
34
  open: open ? "" : undefined,
35
35
  filter: filter ? "" : undefined,
36
+ busy: busy ? "" : undefined,
36
37
  "no-scroll-lock": noScrollLock ? "" : undefined,
37
38
  "query-delay": queryDelay === undefined ? undefined : String(queryDelay),
38
39
  "locale-json": localeJson
@@ -9,6 +9,8 @@ export type ArkRadioProps = PropsWithChildren<ArkRadioStyleOptions & {
9
9
  value?: string;
10
10
  /** Rotulo proprio (<label for>); sem ele use aria-label ou filhos como rotulo livre. */
11
11
  label?: string;
12
+ /** Dica abaixo do rotulo, ligada ao controle por aria-describedby. */
13
+ helper?: string;
12
14
  className?: string;
13
15
  /** Dispara so no radio que ganhou a marca. */
14
16
  onChange?: (event: CustomEvent<{
@@ -23,6 +25,8 @@ export declare const ArkRadio: React.ForwardRefExoticComponent<ArkRadioStyleOpti
23
25
  value?: string;
24
26
  /** Rotulo proprio (<label for>); sem ele use aria-label ou filhos como rotulo livre. */
25
27
  label?: string;
28
+ /** Dica abaixo do rotulo, ligada ao controle por aria-describedby. */
29
+ helper?: string;
26
30
  className?: string;
27
31
  /** Dispara so no radio que ganhou a marca. */
28
32
  onChange?: (event: CustomEvent<{
@@ -2,6 +2,7 @@ import type {
2
2
  ArkAlertLive,
3
3
  ArkAlertVariant,
4
4
  ArkAvatarShape,
5
+ ArkAvatarVariant,
5
6
  ArkBadgeSize,
6
7
  ArkBadgeVariant,
7
8
  ArkButtonStatus,
@@ -49,6 +50,7 @@ interface ArkIntrinsicElements {
49
50
  size?: ArkSize;
50
51
  shape?: ArkAvatarShape;
51
52
  color?: string;
53
+ variant?: ArkAvatarVariant;
52
54
  theme?: ArkTheme;
53
55
  };
54
56
  "ark-badge": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
@@ -90,6 +92,7 @@ interface ArkIntrinsicElements {
90
92
  name?: string;
91
93
  value?: string;
92
94
  label?: string;
95
+ helper?: string;
93
96
  };
94
97
  "ark-progress": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
95
98
  testid?: string;
@@ -112,6 +115,7 @@ interface ArkIntrinsicElements {
112
115
  name?: string;
113
116
  value?: string;
114
117
  label?: string;
118
+ helper?: string;
115
119
  };
116
120
  "ark-spinner": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
117
121
  testid?: string;
@@ -212,6 +216,8 @@ interface ArkIntrinsicElements {
212
216
  "no-scroll-lock"?: boolean;
213
217
  "query-delay"?: number | string;
214
218
  label?: string;
219
+ hint?: string;
220
+ busy?: boolean;
215
221
  theme?: ArkTheme;
216
222
  lang?: ArkLang;
217
223
  "locale-json"?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tooark/react",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "Tooark React — typed wrappers for ark-* components for React 18 and 19",
5
5
  "keywords": [
6
6
  "tooark",
@@ -61,8 +61,8 @@
61
61
  "react-dom": ">=18"
62
62
  },
63
63
  "dependencies": {
64
- "@tooark/core": "^1.3.0",
65
- "@tooark/web-components": "^1.3.0"
64
+ "@tooark/core": "^1.4.0",
65
+ "@tooark/web-components": "^1.4.0"
66
66
  },
67
67
  "scripts": {
68
68
  "build": "tsc -p tsconfig.json && node postbuild.mjs",