@tooark/react 1.3.0 → 1.5.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 +24 -4
- package/README.pt-BR.md +24 -4
- package/dist/ark-alert.d.ts +4 -3
- package/dist/ark-avatar.d.ts +4 -3
- package/dist/ark-badge.d.ts +4 -3
- package/dist/ark-button.d.ts +5 -4
- package/dist/ark-calendar.d.ts +4 -3
- package/dist/ark-card.d.ts +4 -3
- package/dist/ark-carousel.d.ts +4 -3
- package/dist/ark-checkbox.d.ts +8 -3
- package/dist/ark-clock.d.ts +8 -3
- package/dist/ark-clock.js +3 -2
- package/dist/ark-color-swatches.d.ts +4 -3
- package/dist/ark-command-palette.d.ts +15 -6
- package/dist/ark-command-palette.js +2 -1
- package/dist/ark-copy-button.d.ts +4 -3
- package/dist/ark-datepicker.d.ts +4 -3
- package/dist/ark-dialog.d.ts +4 -3
- package/dist/ark-drawer.d.ts +4 -3
- package/dist/ark-empty.d.ts +4 -3
- package/dist/ark-file-input.d.ts +12 -5
- package/dist/ark-file-input.js +2 -1
- package/dist/ark-input.d.ts +4 -3
- package/dist/ark-kbd.d.ts +4 -3
- package/dist/ark-kv-editor.d.ts +4 -3
- package/dist/ark-mark.d.ts +4 -3
- package/dist/ark-menu.d.ts +7 -6
- package/dist/ark-progress.d.ts +4 -3
- package/dist/ark-radio.d.ts +8 -3
- package/dist/ark-scheduler.d.ts +4 -3
- package/dist/ark-select.d.ts +4 -3
- package/dist/ark-shape-picker.d.ts +4 -3
- package/dist/ark-skeleton.d.ts +4 -3
- package/dist/ark-spinner.d.ts +4 -3
- package/dist/ark-split-pane.d.ts +4 -3
- package/dist/ark-status-dot.d.ts +4 -3
- package/dist/ark-switch.d.ts +4 -3
- package/dist/ark-tabs.d.ts +7 -6
- package/dist/ark-textarea.d.ts +4 -3
- package/dist/ark-toaster.d.ts +4 -3
- package/dist/ark-toggle.d.ts +7 -6
- package/dist/ark-tooltip.d.ts +4 -3
- package/dist/dom-props.d.ts +8 -0
- package/dist/dom-props.js +1 -0
- package/dist/jsx-intrinsics.d.ts +8 -0
- package/package.json +4 -4
package/dist/ark-tooltip.d.ts
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import type { ArkTooltipStyleOptions } from "@tooark/core";
|
|
2
2
|
import type { ArkTooltip as ArkTooltipElement } from "@tooark/web-components";
|
|
3
3
|
import React, { type PropsWithChildren } from "react";
|
|
4
|
-
|
|
4
|
+
import type { ArkDomProps } from "./dom-props.js";
|
|
5
|
+
export type ArkTooltipProps = PropsWithChildren<ArkDomProps<ArkTooltipStyleOptions & {
|
|
5
6
|
/** Texto do balao; para conteudo rico, passe um filho com slot="content". */
|
|
6
7
|
content?: string;
|
|
7
8
|
/** Aberto; refletido do estado do balao. */
|
|
8
9
|
open?: boolean;
|
|
9
10
|
className?: string;
|
|
10
|
-
}
|
|
11
|
+
}>>;
|
|
11
12
|
export declare const ArkTooltip: React.ForwardRefExoticComponent<ArkTooltipStyleOptions & {
|
|
12
13
|
/** Texto do balao; para conteudo rico, passe um filho com slot="content". */
|
|
13
14
|
content?: string;
|
|
14
15
|
/** Aberto; refletido do estado do balao. */
|
|
15
16
|
open?: boolean;
|
|
16
17
|
className?: string;
|
|
17
|
-
} & {
|
|
18
|
+
} & Omit<React.HTMLAttributes<HTMLElement>, "children" | "className" | "content" | "open" | keyof ArkTooltipStyleOptions> & {
|
|
18
19
|
children?: React.ReactNode | undefined;
|
|
19
20
|
} & React.RefAttributes<ArkTooltipElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Props de um wrapper somadas aos atributos e handlers DOM do React (`id`, `style`, `title`, `tabIndex`, `aria-*`,
|
|
4
|
+
* `onClick`, `onKeyDown`...), que o wrapper repassa ao elemento `ark-*`. O que o wrapper define vale sobre o homônimo
|
|
5
|
+
* do React: `className`, e um `onChange` que recebe o `CustomEvent` do elemento em vez do `FormEvent`. `children` fica
|
|
6
|
+
* de fora: só os wrappers de elementos com conteúdo o declaram.
|
|
7
|
+
*/
|
|
8
|
+
export type ArkDomProps<Props> = Props & Omit<React.HTMLAttributes<HTMLElement>, keyof Props | "children">;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/jsx-intrinsics.d.ts
CHANGED
|
@@ -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;
|
|
@@ -187,6 +191,7 @@ interface ArkIntrinsicElements {
|
|
|
187
191
|
"ark-clock": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
|
|
188
192
|
testid?: string;
|
|
189
193
|
lang?: ArkDatepickerLang;
|
|
194
|
+
"locale-json"?: string;
|
|
190
195
|
theme?: ArkTheme;
|
|
191
196
|
intent?: ArkIntent;
|
|
192
197
|
value?: string;
|
|
@@ -212,6 +217,8 @@ interface ArkIntrinsicElements {
|
|
|
212
217
|
"no-scroll-lock"?: boolean;
|
|
213
218
|
"query-delay"?: number | string;
|
|
214
219
|
label?: string;
|
|
220
|
+
hint?: string;
|
|
221
|
+
busy?: boolean;
|
|
215
222
|
theme?: ArkTheme;
|
|
216
223
|
lang?: ArkLang;
|
|
217
224
|
"locale-json"?: string;
|
|
@@ -419,6 +426,7 @@ interface ArkIntrinsicElements {
|
|
|
419
426
|
testid?: string;
|
|
420
427
|
accept?: string;
|
|
421
428
|
multiple?: boolean;
|
|
429
|
+
directory?: boolean;
|
|
422
430
|
label?: string;
|
|
423
431
|
helper?: string;
|
|
424
432
|
"error-message"?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tooark/react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "Tooark React — typed wrappers for ark-* components for React 18 and 19",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tooark",
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
"react-dom": ">=18"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@tooark/core": "^1.
|
|
65
|
-
"@tooark/web-components": "^1.
|
|
64
|
+
"@tooark/core": "^1.5.0",
|
|
65
|
+
"@tooark/web-components": "^1.5.0"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
|
-
"build": "tsc -p tsconfig.json && node postbuild.mjs",
|
|
68
|
+
"build": "tsc -p tsconfig.json && tsc -p tsconfig.typecheck.json && node postbuild.mjs",
|
|
69
69
|
"clean": "rimraf dist"
|
|
70
70
|
}
|
|
71
71
|
}
|