@tooark/react 1.9.4 → 1.10.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 +70 -5
- package/README.pt-BR.md +70 -5
- package/dist/ark-accordion.d.ts +28 -0
- package/dist/ark-accordion.js +65 -0
- package/dist/ark-alert.d.ts +2 -2
- package/dist/ark-alert.js +5 -3
- package/dist/ark-avatar.d.ts +1 -1
- package/dist/ark-avatar.js +3 -2
- package/dist/ark-badge.d.ts +6 -2
- package/dist/ark-badge.js +23 -6
- package/dist/ark-breadcrumb.d.ts +38 -0
- package/dist/ark-breadcrumb.js +48 -0
- package/dist/ark-button.d.ts +7 -3
- package/dist/ark-button.js +9 -6
- package/dist/ark-calendar.d.ts +2 -2
- package/dist/ark-calendar.js +3 -2
- package/dist/ark-card.d.ts +10 -2
- package/dist/ark-card.js +22 -5
- package/dist/ark-carousel.d.ts +1 -1
- package/dist/ark-carousel.js +3 -2
- package/dist/ark-checkbox.d.ts +2 -2
- package/dist/ark-checkbox.js +5 -3
- package/dist/ark-clock.d.ts +2 -2
- package/dist/ark-clock.js +3 -2
- package/dist/ark-color-swatches.d.ts +2 -2
- package/dist/ark-color-swatches.js +3 -2
- package/dist/ark-combobox.d.ts +54 -0
- package/dist/ark-combobox.js +44 -0
- package/dist/ark-command-palette.d.ts +3 -3
- package/dist/ark-command-palette.js +12 -6
- package/dist/ark-copy-button.d.ts +6 -2
- package/dist/ark-copy-button.js +7 -4
- package/dist/ark-data-view.d.ts +1 -1
- package/dist/ark-data-view.js +5 -3
- package/dist/ark-datepicker.d.ts +2 -2
- package/dist/ark-datepicker.js +11 -4
- package/dist/ark-dialog.d.ts +2 -2
- package/dist/ark-dialog.js +5 -3
- package/dist/ark-drawer.d.ts +2 -2
- package/dist/ark-drawer.js +5 -3
- package/dist/ark-empty.d.ts +1 -1
- package/dist/ark-empty.js +5 -3
- package/dist/ark-file-input.d.ts +7 -3
- package/dist/ark-file-input.js +16 -4
- package/dist/ark-input.d.ts +2 -2
- package/dist/ark-input.js +5 -3
- package/dist/ark-kbd.d.ts +1 -1
- package/dist/ark-kbd.js +5 -3
- package/dist/ark-kv-editor.d.ts +2 -2
- package/dist/ark-kv-editor.js +3 -2
- package/dist/ark-mark.d.ts +1 -1
- package/dist/ark-mark.js +3 -2
- package/dist/ark-menu.d.ts +1 -1
- package/dist/ark-menu.js +9 -7
- package/dist/ark-nav.d.ts +4 -4
- package/dist/ark-nav.js +9 -7
- package/dist/ark-otp-input.d.ts +40 -0
- package/dist/ark-otp-input.js +38 -0
- package/dist/ark-pagination.d.ts +1 -1
- package/dist/ark-pagination.js +3 -2
- package/dist/ark-popover.d.ts +24 -0
- package/dist/ark-popover.js +42 -0
- package/dist/ark-progress.d.ts +2 -2
- package/dist/ark-progress.js +3 -2
- package/dist/ark-radio.d.ts +3 -3
- package/dist/ark-radio.js +7 -5
- package/dist/ark-scheduler.d.ts +1 -1
- package/dist/ark-scheduler.js +3 -2
- package/dist/ark-select.d.ts +2 -2
- package/dist/ark-select.js +5 -3
- package/dist/ark-shape-picker.d.ts +2 -2
- package/dist/ark-shape-picker.js +3 -2
- package/dist/ark-skeleton.d.ts +1 -1
- package/dist/ark-skeleton.js +5 -3
- package/dist/ark-slider.d.ts +45 -0
- package/dist/ark-slider.js +49 -0
- package/dist/ark-spinner.d.ts +1 -1
- package/dist/ark-spinner.js +3 -2
- package/dist/ark-split-pane.d.ts +1 -1
- package/dist/ark-split-pane.js +5 -3
- package/dist/ark-status-dot.d.ts +1 -1
- package/dist/ark-status-dot.js +3 -2
- package/dist/ark-stepper.d.ts +50 -0
- package/dist/ark-stepper.js +57 -0
- package/dist/ark-switch.d.ts +2 -2
- package/dist/ark-switch.js +8 -5
- package/dist/ark-tabs.d.ts +19 -3
- package/dist/ark-tabs.js +20 -5
- package/dist/ark-textarea.d.ts +6 -2
- package/dist/ark-textarea.js +7 -4
- package/dist/ark-time.d.ts +1 -1
- package/dist/ark-time.js +3 -2
- package/dist/ark-timeline.d.ts +32 -0
- package/dist/ark-timeline.js +26 -0
- package/dist/ark-timer.d.ts +26 -0
- package/dist/ark-timer.js +41 -0
- package/dist/ark-toaster.d.ts +1 -1
- package/dist/ark-toaster.js +3 -2
- package/dist/ark-toggle.d.ts +1 -1
- package/dist/ark-toggle.js +7 -5
- package/dist/ark-tooltip.d.ts +1 -1
- package/dist/ark-tooltip.js +5 -3
- package/dist/ark-tree.d.ts +3 -3
- package/dist/ark-tree.js +7 -5
- package/dist/code.d.ts +1 -1
- package/dist/elements.d.ts +104 -0
- package/dist/elements.js +52 -0
- package/dist/index.d.ts +1 -85
- package/dist/index.js +7 -43
- package/dist/jsx-intrinsics.d.ts +190 -0
- package/dist/register-elements.d.ts +8 -0
- package/dist/register-elements.js +22 -0
- package/dist/text-child.d.ts +3 -0
- package/dist/text-child.js +8 -0
- package/package.json +17 -7
package/dist/ark-radio.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ArkRadioGroupStyleOptions, ArkRadioStyleOptions } from "@tooark/core";
|
|
2
|
-
import
|
|
2
|
+
import { ArkRadio as ArkRadioElement, ArkRadioGroup as ArkRadioGroupElement } from "@tooark/web-components";
|
|
3
3
|
import React, { type PropsWithChildren } from "react";
|
|
4
4
|
import { type ArkDomProps } from "./dom-props.js";
|
|
5
5
|
export type ArkRadioProps = PropsWithChildren<ArkDomProps<ArkRadioStyleOptions & {
|
|
@@ -33,7 +33,7 @@ export declare const ArkRadio: React.ForwardRefExoticComponent<ArkRadioStyleOpti
|
|
|
33
33
|
onChange?: (event: CustomEvent<{
|
|
34
34
|
value: string;
|
|
35
35
|
}>) => void;
|
|
36
|
-
} & Omit<React.HTMLAttributes<HTMLElement>, "children" | "className" | "onChange" | "
|
|
36
|
+
} & Omit<React.HTMLAttributes<HTMLElement>, "children" | "className" | "onChange" | "disabled" | "value" | "label" | "name" | "helper" | keyof ArkRadioStyleOptions> & {
|
|
37
37
|
children?: React.ReactNode | undefined;
|
|
38
38
|
} & React.RefAttributes<ArkRadioElement>>;
|
|
39
39
|
/** Props do ArkRadioGroup: name, size, intent e theme valem para todos os rádios do grupo. */
|
|
@@ -82,6 +82,6 @@ export declare const ArkRadioGroup: React.ForwardRefExoticComponent<ArkRadioGrou
|
|
|
82
82
|
onChange?: (event: CustomEvent<{
|
|
83
83
|
value: string;
|
|
84
84
|
}>) => void;
|
|
85
|
-
} & Omit<React.HTMLAttributes<HTMLElement>, "children" | "className" | "onChange" | "
|
|
85
|
+
} & Omit<React.HTMLAttributes<HTMLElement>, "children" | "className" | "onChange" | "disabled" | "value" | "error" | "label" | "name" | "helper" | "errorMessage" | "required" | keyof ArkRadioGroupStyleOptions> & {
|
|
86
86
|
children?: React.ReactNode | undefined;
|
|
87
87
|
} & React.RefAttributes<ArkRadioGroupElement>>;
|
package/dist/ark-radio.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
import { ArkRadio as ArkRadioElement, ArkRadioGroup as ArkRadioGroupElement } from "@tooark/web-components";
|
|
1
2
|
import { createElement, forwardRef, useEffect } from "react";
|
|
2
3
|
import { domAttrs } from "./dom-props.js";
|
|
3
|
-
import {
|
|
4
|
+
import { ensureTooarkElementsRegistered } from "./register-elements.js";
|
|
5
|
+
import { textChild } from "./text-child.js";
|
|
4
6
|
import { useForwardedRef } from "./use-forwarded-ref.js";
|
|
5
7
|
export const ArkRadio = forwardRef(function ArkRadio(props, forwardedRef) {
|
|
6
8
|
const { children, className, checked, disabled, onChange, ...rest } = props;
|
|
7
9
|
const [ref, setRef] = useForwardedRef(forwardedRef);
|
|
8
10
|
useEffect(() => {
|
|
9
|
-
|
|
11
|
+
ensureTooarkElementsRegistered(ArkRadioElement);
|
|
10
12
|
}, []);
|
|
11
13
|
useEffect(() => {
|
|
12
14
|
const el = ref.current;
|
|
@@ -23,12 +25,12 @@ export const ArkRadio = forwardRef(function ArkRadio(props, forwardedRef) {
|
|
|
23
25
|
checked: checked ? "" : undefined,
|
|
24
26
|
disabled: disabled ? "" : undefined
|
|
25
27
|
};
|
|
26
|
-
return createElement("ark-radio", attrs, children);
|
|
28
|
+
return createElement("ark-radio", attrs, textChild(children));
|
|
27
29
|
});
|
|
28
30
|
export const ArkRadioGroup = forwardRef(function ArkRadioGroup(props, forwardedRef) {
|
|
29
31
|
const { children, className, error, errorMessage, required, disabled, onChange, ...rest } = props;
|
|
30
32
|
useEffect(() => {
|
|
31
|
-
|
|
33
|
+
ensureTooarkElementsRegistered(ArkRadioGroupElement);
|
|
32
34
|
}, []);
|
|
33
35
|
const [ref, setRef] = useForwardedRef(forwardedRef);
|
|
34
36
|
useEffect(() => {
|
|
@@ -52,5 +54,5 @@ export const ArkRadioGroup = forwardRef(function ArkRadioGroup(props, forwardedR
|
|
|
52
54
|
required: required ? "" : undefined,
|
|
53
55
|
disabled: disabled ? "" : undefined
|
|
54
56
|
};
|
|
55
|
-
return createElement("ark-radio-group", attrs, children);
|
|
57
|
+
return createElement("ark-radio-group", attrs, textChild(children));
|
|
56
58
|
});
|
package/dist/ark-scheduler.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ArkDatepickerLang, ArkSchedulerEvent, ArkSchedulerStyleOptions } from "@tooark/core";
|
|
2
|
-
import
|
|
2
|
+
import { ArkScheduler as ArkSchedulerElement } from "@tooark/web-components";
|
|
3
3
|
import type React from "react";
|
|
4
4
|
import { type ArkDomProps } from "./dom-props.js";
|
|
5
5
|
export type ArkSchedulerProps = ArkDomProps<ArkSchedulerStyleOptions & {
|
package/dist/ark-scheduler.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import { ArkScheduler as ArkSchedulerElement } from "@tooark/web-components";
|
|
1
2
|
import { createElement, forwardRef, useEffect } from "react";
|
|
2
3
|
import { domAttrs } from "./dom-props.js";
|
|
3
|
-
import {
|
|
4
|
+
import { ensureTooarkElementsRegistered } from "./register-elements.js";
|
|
4
5
|
import { useForwardedRef } from "./use-forwarded-ref.js";
|
|
5
6
|
export const ArkScheduler = forwardRef(function ArkScheduler(props, forwardedRef) {
|
|
6
7
|
const { className, events, hourStart, hourEnd, slotMinutes, hoursFormat, localeJson, onEventClick, onSlotClick, onViewChange, onRangeChange, ...rest } = props;
|
|
7
8
|
const [ref, setRef] = useForwardedRef(forwardedRef);
|
|
8
9
|
useEffect(() => {
|
|
9
|
-
|
|
10
|
+
ensureTooarkElementsRegistered(ArkSchedulerElement);
|
|
10
11
|
}, []);
|
|
11
12
|
useEffect(() => {
|
|
12
13
|
const el = ref.current;
|
package/dist/ark-select.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ArkSelectOption, ArkSelectStyleOptions } from "@tooark/core";
|
|
2
|
-
import
|
|
2
|
+
import { ArkSelect as ArkSelectElement } from "@tooark/web-components";
|
|
3
3
|
import React, { type PropsWithChildren } from "react";
|
|
4
4
|
import { type ArkDomProps } from "./dom-props.js";
|
|
5
5
|
export type ArkSelectProps = PropsWithChildren<ArkDomProps<ArkSelectStyleOptions & {
|
|
@@ -35,6 +35,6 @@ export declare const ArkSelect: React.ForwardRefExoticComponent<ArkSelectStyleOp
|
|
|
35
35
|
onChange?: (event: CustomEvent<{
|
|
36
36
|
value: string;
|
|
37
37
|
}>) => void;
|
|
38
|
-
} & Omit<React.HTMLAttributes<HTMLElement>, "children" | "className" | "onChange" | "onInput" | "
|
|
38
|
+
} & Omit<React.HTMLAttributes<HTMLElement>, "children" | "className" | "onChange" | "onInput" | "disabled" | "value" | "error" | "label" | "name" | "helper" | "placeholder" | "options" | "errorMessage" | "required" | keyof ArkSelectStyleOptions> & {
|
|
39
39
|
children?: React.ReactNode | undefined;
|
|
40
40
|
} & React.RefAttributes<ArkSelectElement>>;
|
package/dist/ark-select.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
import { ArkSelect as ArkSelectElement } from "@tooark/web-components";
|
|
1
2
|
import { createElement, forwardRef, useEffect } from "react";
|
|
2
3
|
import { domAttrs } from "./dom-props.js";
|
|
3
|
-
import {
|
|
4
|
+
import { ensureTooarkElementsRegistered } from "./register-elements.js";
|
|
5
|
+
import { textChild } from "./text-child.js";
|
|
4
6
|
import { useForwardedRef } from "./use-forwarded-ref.js";
|
|
5
7
|
export const ArkSelect = forwardRef(function ArkSelect(props, forwardedRef) {
|
|
6
8
|
const { children, className, options, errorMessage, error, disabled, required, onInput, onChange, ...rest } = props;
|
|
7
9
|
const [ref, setRef] = useForwardedRef(forwardedRef);
|
|
8
10
|
useEffect(() => {
|
|
9
|
-
|
|
11
|
+
ensureTooarkElementsRegistered(ArkSelectElement);
|
|
10
12
|
}, []);
|
|
11
13
|
useEffect(() => {
|
|
12
14
|
const el = ref.current;
|
|
@@ -31,5 +33,5 @@ export const ArkSelect = forwardRef(function ArkSelect(props, forwardedRef) {
|
|
|
31
33
|
disabled: disabled ? "" : undefined,
|
|
32
34
|
required: required ? "" : undefined
|
|
33
35
|
};
|
|
34
|
-
return createElement("ark-select", attrs, children);
|
|
36
|
+
return createElement("ark-select", attrs, textChild(children));
|
|
35
37
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ArkMarkShape, ArkShapePickerStyleOptions } from "@tooark/core";
|
|
2
|
-
import
|
|
2
|
+
import { ArkShapePicker as ArkShapePickerElement } from "@tooark/web-components";
|
|
3
3
|
import type React from "react";
|
|
4
4
|
import { type ArkDomProps } from "./dom-props.js";
|
|
5
5
|
export type ArkShapePickerProps = ArkDomProps<ArkShapePickerStyleOptions & {
|
|
@@ -29,4 +29,4 @@ export declare const ArkShapePicker: React.ForwardRefExoticComponent<ArkShapePic
|
|
|
29
29
|
onChange?: (event: CustomEvent<{
|
|
30
30
|
value: ArkMarkShape;
|
|
31
31
|
}>) => void;
|
|
32
|
-
} & Omit<React.HTMLAttributes<HTMLElement>, "children" | "className" | "onChange" | "
|
|
32
|
+
} & Omit<React.HTMLAttributes<HTMLElement>, "children" | "className" | "onChange" | "disabled" | "value" | "label" | keyof ArkShapePickerStyleOptions | "shapes"> & React.RefAttributes<ArkShapePickerElement>>;
|
package/dist/ark-shape-picker.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import { ArkShapePicker as ArkShapePickerElement } from "@tooark/web-components";
|
|
1
2
|
import { createElement, forwardRef, useEffect } from "react";
|
|
2
3
|
import { domAttrs } from "./dom-props.js";
|
|
3
|
-
import {
|
|
4
|
+
import { ensureTooarkElementsRegistered } from "./register-elements.js";
|
|
4
5
|
import { useForwardedRef } from "./use-forwarded-ref.js";
|
|
5
6
|
export const ArkShapePicker = forwardRef(function ArkShapePicker(props, forwardedRef) {
|
|
6
7
|
const { className, disabled, shapes, localeJson, onChange, ...rest } = props;
|
|
7
8
|
const [ref, setRef] = useForwardedRef(forwardedRef);
|
|
8
9
|
useEffect(() => {
|
|
9
|
-
|
|
10
|
+
ensureTooarkElementsRegistered(ArkShapePickerElement);
|
|
10
11
|
}, []);
|
|
11
12
|
useEffect(() => {
|
|
12
13
|
const el = ref.current;
|
package/dist/ark-skeleton.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ArkSkeletonStyleOptions } from "@tooark/core";
|
|
2
|
-
import
|
|
2
|
+
import { ArkSkeleton as ArkSkeletonElement } from "@tooark/web-components";
|
|
3
3
|
import React, { type PropsWithChildren } from "react";
|
|
4
4
|
import { type ArkDomProps } from "./dom-props.js";
|
|
5
5
|
export type ArkSkeletonProps = PropsWithChildren<ArkDomProps<ArkSkeletonStyleOptions & {
|
package/dist/ark-skeleton.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { ArkSkeleton as ArkSkeletonElement } from "@tooark/web-components";
|
|
1
2
|
import { createElement, forwardRef, useEffect } from "react";
|
|
2
3
|
import { domAttrs } from "./dom-props.js";
|
|
3
|
-
import {
|
|
4
|
+
import { ensureTooarkElementsRegistered } from "./register-elements.js";
|
|
5
|
+
import { textChild } from "./text-child.js";
|
|
4
6
|
export const ArkSkeleton = forwardRef(function ArkSkeleton(props, forwardedRef) {
|
|
5
7
|
const { children, className, rows, animated, ...rest } = props;
|
|
6
8
|
useEffect(() => {
|
|
7
|
-
|
|
9
|
+
ensureTooarkElementsRegistered(ArkSkeletonElement);
|
|
8
10
|
}, []);
|
|
9
11
|
const attrs = {
|
|
10
12
|
...domAttrs(rest),
|
|
@@ -13,5 +15,5 @@ export const ArkSkeleton = forwardRef(function ArkSkeleton(props, forwardedRef)
|
|
|
13
15
|
rows: rows === undefined ? undefined : String(rows),
|
|
14
16
|
animated: animated ? "" : undefined
|
|
15
17
|
};
|
|
16
|
-
return createElement("ark-skeleton", attrs, children);
|
|
18
|
+
return createElement("ark-skeleton", attrs, textChild(children));
|
|
17
19
|
});
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { ArkSliderMark, ArkSliderStyleOptions } from "@tooark/core";
|
|
2
|
+
import { ArkSlider as ArkSliderElement } from "@tooark/web-components";
|
|
3
|
+
import type React from "react";
|
|
4
|
+
import { type ArkDomProps } from "./dom-props.js";
|
|
5
|
+
/** `detail` do `input` e do `change` do ark-slider: `value` com uma alça, `values` com `range`. */
|
|
6
|
+
export type ArkSliderChangeDetail = {
|
|
7
|
+
value?: number;
|
|
8
|
+
values?: number[];
|
|
9
|
+
};
|
|
10
|
+
export type ArkSliderProps = ArkDomProps<ArkSliderStyleOptions & {
|
|
11
|
+
/** O número da alça, ou "baixo,alto" (ou `[baixo, alto]`) com `range`. */
|
|
12
|
+
value?: number | string | number[];
|
|
13
|
+
/** Rótulo visível, que nomeia a alça. */
|
|
14
|
+
label?: string;
|
|
15
|
+
/** Nome no formulário (inputs ocultos). */
|
|
16
|
+
name?: string;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/** Marcas embaixo da faixa. */
|
|
19
|
+
marks?: Array<number | ArkSliderMark>;
|
|
20
|
+
/** Escreve o valor mostrado e lido. */
|
|
21
|
+
format?: (value: number) => string;
|
|
22
|
+
className?: string;
|
|
23
|
+
/** Durante o movimento (arraste ou tecla). */
|
|
24
|
+
onInput?: (event: CustomEvent<ArkSliderChangeDetail>) => void;
|
|
25
|
+
/** Ao soltar (ou a cada tecla). */
|
|
26
|
+
onChange?: (event: CustomEvent<ArkSliderChangeDetail>) => void;
|
|
27
|
+
}>;
|
|
28
|
+
export declare const ArkSlider: React.ForwardRefExoticComponent<ArkSliderStyleOptions & {
|
|
29
|
+
/** O número da alça, ou "baixo,alto" (ou `[baixo, alto]`) com `range`. */
|
|
30
|
+
value?: number | string | number[];
|
|
31
|
+
/** Rótulo visível, que nomeia a alça. */
|
|
32
|
+
label?: string;
|
|
33
|
+
/** Nome no formulário (inputs ocultos). */
|
|
34
|
+
name?: string;
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
/** Marcas embaixo da faixa. */
|
|
37
|
+
marks?: Array<number | ArkSliderMark>;
|
|
38
|
+
/** Escreve o valor mostrado e lido. */
|
|
39
|
+
format?: (value: number) => string;
|
|
40
|
+
className?: string;
|
|
41
|
+
/** Durante o movimento (arraste ou tecla). */
|
|
42
|
+
onInput?: (event: CustomEvent<ArkSliderChangeDetail>) => void;
|
|
43
|
+
/** Ao soltar (ou a cada tecla). */
|
|
44
|
+
onChange?: (event: CustomEvent<ArkSliderChangeDetail>) => void;
|
|
45
|
+
} & Omit<React.HTMLAttributes<HTMLElement>, "children" | "className" | "onChange" | "onInput" | "disabled" | "value" | "label" | "name" | "format" | keyof ArkSliderStyleOptions | "marks"> & React.RefAttributes<ArkSliderElement>>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ArkSlider as ArkSliderElement } from "@tooark/web-components";
|
|
2
|
+
import { createElement, forwardRef, useEffect } from "react";
|
|
3
|
+
import { domAttrs } from "./dom-props.js";
|
|
4
|
+
import { ensureTooarkElementsRegistered } from "./register-elements.js";
|
|
5
|
+
import { useForwardedRef } from "./use-forwarded-ref.js";
|
|
6
|
+
export const ArkSlider = forwardRef(function ArkSlider(props, forwardedRef) {
|
|
7
|
+
const { className, value, range, showValue, disabled, marks, format, localeJson, onInput, onChange, ...rest } = props;
|
|
8
|
+
const [ref, setRef] = useForwardedRef(forwardedRef);
|
|
9
|
+
useEffect(() => {
|
|
10
|
+
ensureTooarkElementsRegistered(ArkSliderElement);
|
|
11
|
+
}, []);
|
|
12
|
+
// Função vai pela propriedade, e só quando a referência muda.
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
const el = ref.current;
|
|
15
|
+
if (el && el.format !== (format ?? null))
|
|
16
|
+
el.format = format ?? null;
|
|
17
|
+
}, [ref, format]);
|
|
18
|
+
useEffect(() => {
|
|
19
|
+
const el = ref.current;
|
|
20
|
+
if (!el)
|
|
21
|
+
return;
|
|
22
|
+
const handleInput = (event) => {
|
|
23
|
+
if (event.target === event.currentTarget)
|
|
24
|
+
onInput?.(event);
|
|
25
|
+
};
|
|
26
|
+
const handleChange = (event) => {
|
|
27
|
+
if (event.target === event.currentTarget)
|
|
28
|
+
onChange?.(event);
|
|
29
|
+
};
|
|
30
|
+
el.addEventListener("input", handleInput);
|
|
31
|
+
el.addEventListener("change", handleChange);
|
|
32
|
+
return () => {
|
|
33
|
+
el.removeEventListener("input", handleInput);
|
|
34
|
+
el.removeEventListener("change", handleChange);
|
|
35
|
+
};
|
|
36
|
+
}, [ref, onInput, onChange]);
|
|
37
|
+
const attrs = {
|
|
38
|
+
...domAttrs(rest),
|
|
39
|
+
ref: setRef,
|
|
40
|
+
class: className,
|
|
41
|
+
value: Array.isArray(value) ? value.join(",") : value,
|
|
42
|
+
range: range ? "" : undefined,
|
|
43
|
+
"show-value": showValue ? "" : undefined,
|
|
44
|
+
disabled: disabled ? "" : undefined,
|
|
45
|
+
marks: marks ? JSON.stringify(marks) : undefined,
|
|
46
|
+
"locale-json": localeJson
|
|
47
|
+
};
|
|
48
|
+
return createElement("ark-slider", attrs);
|
|
49
|
+
});
|
package/dist/ark-spinner.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ArkSpinnerStyleOptions } from "@tooark/core";
|
|
2
|
-
import
|
|
2
|
+
import { ArkSpinner as ArkSpinnerElement } from "@tooark/web-components";
|
|
3
3
|
import type React from "react";
|
|
4
4
|
import { type ArkDomProps } from "./dom-props.js";
|
|
5
5
|
export type ArkSpinnerProps = ArkDomProps<ArkSpinnerStyleOptions & {
|
package/dist/ark-spinner.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { ArkSpinner as ArkSpinnerElement } from "@tooark/web-components";
|
|
1
2
|
import { createElement, forwardRef, useEffect } from "react";
|
|
2
3
|
import { domAttrs } from "./dom-props.js";
|
|
3
|
-
import {
|
|
4
|
+
import { ensureTooarkElementsRegistered } from "./register-elements.js";
|
|
4
5
|
export const ArkSpinner = forwardRef(function ArkSpinner(props, forwardedRef) {
|
|
5
6
|
const { className, localeJson, ...rest } = props;
|
|
6
7
|
useEffect(() => {
|
|
7
|
-
|
|
8
|
+
ensureTooarkElementsRegistered(ArkSpinnerElement);
|
|
8
9
|
}, []);
|
|
9
10
|
const attrs = {
|
|
10
11
|
...domAttrs(rest),
|
package/dist/ark-split-pane.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ArkSplitPaneStyleOptions } from "@tooark/core";
|
|
2
|
-
import
|
|
2
|
+
import { ArkSplitPane as ArkSplitPaneElement } from "@tooark/web-components";
|
|
3
3
|
import type React from "react";
|
|
4
4
|
import { type PropsWithChildren } from "react";
|
|
5
5
|
import { type ArkDomProps } from "./dom-props.js";
|
package/dist/ark-split-pane.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
import { ArkSplitPane as ArkSplitPaneElement } from "@tooark/web-components";
|
|
1
2
|
import { createElement, forwardRef, useEffect } from "react";
|
|
2
3
|
import { domAttrs } from "./dom-props.js";
|
|
3
|
-
import {
|
|
4
|
+
import { ensureTooarkElementsRegistered } from "./register-elements.js";
|
|
5
|
+
import { textChild } from "./text-child.js";
|
|
4
6
|
import { useForwardedRef } from "./use-forwarded-ref.js";
|
|
5
7
|
export const ArkSplitPane = forwardRef(function ArkSplitPane(props, forwardedRef) {
|
|
6
8
|
const { children, className, sizes, localeJson, onResize, ...rest } = props;
|
|
7
9
|
const [ref, setRef] = useForwardedRef(forwardedRef);
|
|
8
10
|
useEffect(() => {
|
|
9
|
-
|
|
11
|
+
ensureTooarkElementsRegistered(ArkSplitPaneElement);
|
|
10
12
|
}, []);
|
|
11
13
|
useEffect(() => {
|
|
12
14
|
const el = ref.current;
|
|
@@ -28,5 +30,5 @@ export const ArkSplitPane = forwardRef(function ArkSplitPane(props, forwardedRef
|
|
|
28
30
|
sizes: sizes ? sizes.join(",") : undefined,
|
|
29
31
|
"locale-json": localeJson
|
|
30
32
|
};
|
|
31
|
-
return createElement("ark-split-pane", attrs, children);
|
|
33
|
+
return createElement("ark-split-pane", attrs, textChild(children));
|
|
32
34
|
});
|
package/dist/ark-status-dot.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ArkStatusDotStyleOptions } from "@tooark/core";
|
|
2
|
-
import
|
|
2
|
+
import { ArkStatusDot as ArkStatusDotElement } from "@tooark/web-components";
|
|
3
3
|
import type React from "react";
|
|
4
4
|
import { type ArkDomProps } from "./dom-props.js";
|
|
5
5
|
export type ArkStatusDotProps = ArkDomProps<ArkStatusDotStyleOptions & {
|
package/dist/ark-status-dot.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { ArkStatusDot as ArkStatusDotElement } from "@tooark/web-components";
|
|
1
2
|
import { createElement, forwardRef, useEffect } from "react";
|
|
2
3
|
import { domAttrs } from "./dom-props.js";
|
|
3
|
-
import {
|
|
4
|
+
import { ensureTooarkElementsRegistered } from "./register-elements.js";
|
|
4
5
|
export const ArkStatusDot = forwardRef(function ArkStatusDot(props, forwardedRef) {
|
|
5
6
|
const { className, ...rest } = props;
|
|
6
7
|
useEffect(() => {
|
|
7
|
-
|
|
8
|
+
ensureTooarkElementsRegistered(ArkStatusDotElement);
|
|
8
9
|
}, []);
|
|
9
10
|
const attrs = {
|
|
10
11
|
...domAttrs(rest),
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { ArkStepperStyleOptions, ArkStepStyleOptions } from "@tooark/core";
|
|
2
|
+
import { ArkStep as ArkStepElement, ArkStepper as ArkStepperElement } from "@tooark/web-components";
|
|
3
|
+
import React, { type PropsWithChildren } from "react";
|
|
4
|
+
import { type ArkDomProps } from "./dom-props.js";
|
|
5
|
+
export type ArkStepperProps = PropsWithChildren<ArkDomProps<ArkStepperStyleOptions & {
|
|
6
|
+
/** Índice do passo atual, a partir de 0. */
|
|
7
|
+
value?: number;
|
|
8
|
+
/** Nome do grupo. Padrão: a string do idioma ("Etapas"). */
|
|
9
|
+
label?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
/** A pessoa (ou o avanço automático) trocou de passo. */
|
|
12
|
+
onChange?: (event: CustomEvent<{
|
|
13
|
+
value: number;
|
|
14
|
+
previous: number;
|
|
15
|
+
}>) => void;
|
|
16
|
+
onPlay?: (event: CustomEvent) => void;
|
|
17
|
+
onPause?: (event: CustomEvent) => void;
|
|
18
|
+
}>>;
|
|
19
|
+
export declare const ArkStepper: React.ForwardRefExoticComponent<ArkStepperStyleOptions & {
|
|
20
|
+
/** Índice do passo atual, a partir de 0. */
|
|
21
|
+
value?: number;
|
|
22
|
+
/** Nome do grupo. Padrão: a string do idioma ("Etapas"). */
|
|
23
|
+
label?: string;
|
|
24
|
+
className?: string;
|
|
25
|
+
/** A pessoa (ou o avanço automático) trocou de passo. */
|
|
26
|
+
onChange?: (event: CustomEvent<{
|
|
27
|
+
value: number;
|
|
28
|
+
previous: number;
|
|
29
|
+
}>) => void;
|
|
30
|
+
onPlay?: (event: CustomEvent) => void;
|
|
31
|
+
onPause?: (event: CustomEvent) => void;
|
|
32
|
+
} & Omit<React.HTMLAttributes<HTMLElement>, "children" | "className" | "onChange" | "onPause" | "onPlay" | "value" | "label" | keyof ArkStepperStyleOptions> & {
|
|
33
|
+
children?: React.ReactNode | undefined;
|
|
34
|
+
} & React.RefAttributes<ArkStepperElement>>;
|
|
35
|
+
export type ArkStepProps = PropsWithChildren<ArkDomProps<ArkStepStyleOptions & {
|
|
36
|
+
/** Rótulo do passo. */
|
|
37
|
+
label?: string;
|
|
38
|
+
/** Fora da navegação. */
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
className?: string;
|
|
41
|
+
}>>;
|
|
42
|
+
export declare const ArkStep: React.ForwardRefExoticComponent<ArkStepStyleOptions & {
|
|
43
|
+
/** Rótulo do passo. */
|
|
44
|
+
label?: string;
|
|
45
|
+
/** Fora da navegação. */
|
|
46
|
+
disabled?: boolean;
|
|
47
|
+
className?: string;
|
|
48
|
+
} & Omit<React.HTMLAttributes<HTMLElement>, "children" | "className" | "disabled" | "label" | keyof ArkStepStyleOptions> & {
|
|
49
|
+
children?: React.ReactNode | undefined;
|
|
50
|
+
} & React.RefAttributes<ArkStepElement>>;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { ArkStep as ArkStepElement, ArkStepper as ArkStepperElement } from "@tooark/web-components";
|
|
2
|
+
import { createElement, forwardRef, useEffect } from "react";
|
|
3
|
+
import { domAttrs } from "./dom-props.js";
|
|
4
|
+
import { ensureTooarkElementsRegistered } from "./register-elements.js";
|
|
5
|
+
import { textChild } from "./text-child.js";
|
|
6
|
+
import { useForwardedRef } from "./use-forwarded-ref.js";
|
|
7
|
+
export const ArkStepper = forwardRef(function ArkStepper(props, forwardedRef) {
|
|
8
|
+
const { children, className, linear, controls, autoplayMs, localeJson, onChange, onPlay, onPause, ...rest } = props;
|
|
9
|
+
const [ref, setRef] = useForwardedRef(forwardedRef);
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
ensureTooarkElementsRegistered(ArkStepperElement);
|
|
12
|
+
}, []);
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
const el = ref.current;
|
|
15
|
+
if (!el)
|
|
16
|
+
return;
|
|
17
|
+
// Só os do próprio indicador: o `change` de um campo dentro da descrição de um passo também sobe até aqui.
|
|
18
|
+
const own = (handler) => (event) => {
|
|
19
|
+
if (event.target === event.currentTarget)
|
|
20
|
+
handler?.(event);
|
|
21
|
+
};
|
|
22
|
+
const handleChange = own(onChange);
|
|
23
|
+
const handlePlay = own(onPlay);
|
|
24
|
+
const handlePause = own(onPause);
|
|
25
|
+
el.addEventListener("change", handleChange);
|
|
26
|
+
el.addEventListener("ark-play", handlePlay);
|
|
27
|
+
el.addEventListener("ark-pause", handlePause);
|
|
28
|
+
return () => {
|
|
29
|
+
el.removeEventListener("change", handleChange);
|
|
30
|
+
el.removeEventListener("ark-play", handlePlay);
|
|
31
|
+
el.removeEventListener("ark-pause", handlePause);
|
|
32
|
+
};
|
|
33
|
+
}, [ref, onChange, onPlay, onPause]);
|
|
34
|
+
const attrs = {
|
|
35
|
+
...domAttrs(rest),
|
|
36
|
+
ref: setRef,
|
|
37
|
+
class: className,
|
|
38
|
+
linear: linear ? "" : undefined,
|
|
39
|
+
controls: controls ? "" : undefined,
|
|
40
|
+
"autoplay-ms": autoplayMs,
|
|
41
|
+
"locale-json": localeJson
|
|
42
|
+
};
|
|
43
|
+
return createElement("ark-stepper", attrs, textChild(children));
|
|
44
|
+
});
|
|
45
|
+
export const ArkStep = forwardRef(function ArkStep(props, forwardedRef) {
|
|
46
|
+
const { children, className, disabled, ...rest } = props;
|
|
47
|
+
useEffect(() => {
|
|
48
|
+
ensureTooarkElementsRegistered(ArkStepElement);
|
|
49
|
+
}, []);
|
|
50
|
+
const attrs = {
|
|
51
|
+
...domAttrs(rest),
|
|
52
|
+
ref: forwardedRef,
|
|
53
|
+
class: className,
|
|
54
|
+
disabled: disabled ? "" : undefined
|
|
55
|
+
};
|
|
56
|
+
return createElement("ark-step", attrs, textChild(children));
|
|
57
|
+
});
|
package/dist/ark-switch.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ArkSwitchStyleOptions } from "@tooark/core";
|
|
2
|
-
import
|
|
2
|
+
import { ArkSwitch as ArkSwitchElement } from "@tooark/web-components";
|
|
3
3
|
import type React from "react";
|
|
4
4
|
import { type PropsWithChildren } from "react";
|
|
5
5
|
import { type ArkDomProps } from "./dom-props.js";
|
|
@@ -22,6 +22,6 @@ export declare const ArkSwitch: React.ForwardRefExoticComponent<ArkSwitchStyleOp
|
|
|
22
22
|
onChange?: (event: CustomEvent<{
|
|
23
23
|
checked: boolean;
|
|
24
24
|
}>) => void;
|
|
25
|
-
} & Omit<React.HTMLAttributes<HTMLElement>, "children" | "className" | "onChange" | "
|
|
25
|
+
} & Omit<React.HTMLAttributes<HTMLElement>, "children" | "className" | "onChange" | "disabled" | "value" | "label" | "name" | keyof ArkSwitchStyleOptions> & {
|
|
26
26
|
children?: React.ReactNode | undefined;
|
|
27
27
|
} & React.RefAttributes<ArkSwitchElement>>;
|
package/dist/ark-switch.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
import { ArkSwitch as ArkSwitchElement } from "@tooark/web-components";
|
|
1
2
|
import { createElement, forwardRef, useEffect } from "react";
|
|
2
3
|
import { domAttrs } from "./dom-props.js";
|
|
3
|
-
import {
|
|
4
|
+
import { ensureTooarkElementsRegistered } from "./register-elements.js";
|
|
5
|
+
import { textChild } from "./text-child.js";
|
|
4
6
|
import { useForwardedRef } from "./use-forwarded-ref.js";
|
|
5
7
|
export const ArkSwitch = forwardRef(function ArkSwitch(props, forwardedRef) {
|
|
6
|
-
const { children, className, checked, labels, labelOn, labelOff, icons, disabled, onChange, ...rest } = props;
|
|
8
|
+
const { children, className, checked, labels, labelOn, labelOff, labelPosition, icons, disabled, onChange, ...rest } = props;
|
|
7
9
|
useEffect(() => {
|
|
8
|
-
|
|
10
|
+
ensureTooarkElementsRegistered(ArkSwitchElement);
|
|
9
11
|
}, []);
|
|
10
12
|
const [ref, setRef] = useForwardedRef(forwardedRef);
|
|
11
13
|
useEffect(() => {
|
|
@@ -25,8 +27,9 @@ export const ArkSwitch = forwardRef(function ArkSwitch(props, forwardedRef) {
|
|
|
25
27
|
labels: labels ? "" : undefined,
|
|
26
28
|
icons: icons ? "" : undefined,
|
|
27
29
|
"label-on": labelOn,
|
|
28
|
-
"label-off": labelOff
|
|
30
|
+
"label-off": labelOff,
|
|
31
|
+
"label-position": labelPosition
|
|
29
32
|
};
|
|
30
33
|
// Filhos viram o rótulo visível do switch (o host inteiro alterna ao clique).
|
|
31
|
-
return createElement("ark-switch", attrs, children);
|
|
34
|
+
return createElement("ark-switch", attrs, textChild(children));
|
|
32
35
|
});
|
package/dist/ark-tabs.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ArkTabStyleOptions, ArkTabsStyleOptions } from "@tooark/core";
|
|
2
|
-
import
|
|
1
|
+
import type { ArkTabPanelStyleOptions, ArkTabStyleOptions, ArkTabsStyleOptions } from "@tooark/core";
|
|
2
|
+
import { ArkTab as ArkTabElement, ArkTabPanel as ArkTabPanelElement, ArkTabs as ArkTabsElement } from "@tooark/web-components";
|
|
3
3
|
import React, { type PropsWithChildren } from "react";
|
|
4
4
|
import { type ArkDomProps } from "./dom-props.js";
|
|
5
5
|
export type ArkTabsProps = PropsWithChildren<ArkDomProps<ArkTabsStyleOptions & {
|
|
@@ -29,7 +29,7 @@ export declare const ArkTabs: React.ForwardRefExoticComponent<ArkTabsStyleOption
|
|
|
29
29
|
onClose?: (event: CustomEvent<{
|
|
30
30
|
value: string;
|
|
31
31
|
}>) => void;
|
|
32
|
-
} & Omit<React.HTMLAttributes<HTMLElement>, "children" | "className" | "onChange" | "
|
|
32
|
+
} & Omit<React.HTMLAttributes<HTMLElement>, "children" | "className" | "onChange" | "value" | "label" | "onClose" | keyof ArkTabsStyleOptions> & {
|
|
33
33
|
children?: React.ReactNode | undefined;
|
|
34
34
|
} & React.RefAttributes<ArkTabsElement>>;
|
|
35
35
|
export type ArkTabProps = PropsWithChildren<ArkDomProps<ArkTabStyleOptions & {
|
|
@@ -56,3 +56,19 @@ export declare const ArkTab: React.ForwardRefExoticComponent<ArkTabStyleOptions
|
|
|
56
56
|
} & Omit<React.HTMLAttributes<HTMLElement>, "children" | "className" | "testid" | "disabled" | "value" | "controls" | "closable" | "dirty"> & {
|
|
57
57
|
children?: React.ReactNode | undefined;
|
|
58
58
|
} & React.RefAttributes<ArkTabElement>>;
|
|
59
|
+
export type ArkTabPanelProps = PropsWithChildren<ArkDomProps<ArkTabPanelStyleOptions & {
|
|
60
|
+
/** Valor da aba deste painel. */
|
|
61
|
+
value: string;
|
|
62
|
+
/** id do ark-tabs (vira o atributo for), quando o painel não fica depois da faixa no mesmo contêiner. */
|
|
63
|
+
htmlFor?: string;
|
|
64
|
+
className?: string;
|
|
65
|
+
}>>;
|
|
66
|
+
export declare const ArkTabPanel: React.ForwardRefExoticComponent<ArkTabPanelStyleOptions & {
|
|
67
|
+
/** Valor da aba deste painel. */
|
|
68
|
+
value: string;
|
|
69
|
+
/** id do ark-tabs (vira o atributo for), quando o painel não fica depois da faixa no mesmo contêiner. */
|
|
70
|
+
htmlFor?: string;
|
|
71
|
+
className?: string;
|
|
72
|
+
} & Omit<React.HTMLAttributes<HTMLElement>, "children" | "className" | "testid" | "value" | "htmlFor"> & {
|
|
73
|
+
children?: React.ReactNode | undefined;
|
|
74
|
+
} & React.RefAttributes<ArkTabPanelElement>>;
|
package/dist/ark-tabs.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
import { ArkTab as ArkTabElement, ArkTabPanel as ArkTabPanelElement, ArkTabs as ArkTabsElement } from "@tooark/web-components";
|
|
1
2
|
import { createElement, forwardRef, useEffect } from "react";
|
|
2
3
|
import { domAttrs } from "./dom-props.js";
|
|
3
|
-
import {
|
|
4
|
+
import { ensureTooarkElementsRegistered } from "./register-elements.js";
|
|
5
|
+
import { textChild } from "./text-child.js";
|
|
4
6
|
import { useForwardedRef } from "./use-forwarded-ref.js";
|
|
5
7
|
export const ArkTabs = forwardRef(function ArkTabs(props, forwardedRef) {
|
|
6
8
|
const { children, className, localeJson, onChange, onClose, ...rest } = props;
|
|
7
9
|
const [ref, setRef] = useForwardedRef(forwardedRef);
|
|
8
10
|
useEffect(() => {
|
|
9
|
-
|
|
11
|
+
ensureTooarkElementsRegistered(ArkTabsElement);
|
|
10
12
|
}, []);
|
|
11
13
|
useEffect(() => {
|
|
12
14
|
const el = ref.current;
|
|
@@ -32,12 +34,12 @@ export const ArkTabs = forwardRef(function ArkTabs(props, forwardedRef) {
|
|
|
32
34
|
class: className,
|
|
33
35
|
"locale-json": localeJson
|
|
34
36
|
};
|
|
35
|
-
return createElement("ark-tabs", attrs, children);
|
|
37
|
+
return createElement("ark-tabs", attrs, textChild(children));
|
|
36
38
|
});
|
|
37
39
|
export const ArkTab = forwardRef(function ArkTab(props, forwardedRef) {
|
|
38
40
|
const { children, className, disabled, closable, dirty, ...rest } = props;
|
|
39
41
|
useEffect(() => {
|
|
40
|
-
|
|
42
|
+
ensureTooarkElementsRegistered(ArkTabElement);
|
|
41
43
|
}, []);
|
|
42
44
|
const attrs = {
|
|
43
45
|
...domAttrs(rest),
|
|
@@ -47,5 +49,18 @@ export const ArkTab = forwardRef(function ArkTab(props, forwardedRef) {
|
|
|
47
49
|
closable: closable ? "" : undefined,
|
|
48
50
|
dirty: dirty ? "" : undefined
|
|
49
51
|
};
|
|
50
|
-
return createElement("ark-tab", attrs, children);
|
|
52
|
+
return createElement("ark-tab", attrs, textChild(children));
|
|
53
|
+
});
|
|
54
|
+
export const ArkTabPanel = forwardRef(function ArkTabPanel(props, forwardedRef) {
|
|
55
|
+
const { children, className, htmlFor, ...rest } = props;
|
|
56
|
+
useEffect(() => {
|
|
57
|
+
ensureTooarkElementsRegistered(ArkTabPanelElement);
|
|
58
|
+
}, []);
|
|
59
|
+
const attrs = {
|
|
60
|
+
...domAttrs(rest),
|
|
61
|
+
ref: forwardedRef,
|
|
62
|
+
class: className,
|
|
63
|
+
for: htmlFor
|
|
64
|
+
};
|
|
65
|
+
return createElement("ark-tab-panel", attrs, textChild(children));
|
|
51
66
|
});
|