@ark-ui/react 5.32.0 → 5.34.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/dist/components/color-picker/color-picker.anatomy.d.cts +1 -1
- package/dist/components/color-picker/color-picker.anatomy.d.ts +1 -1
- package/dist/components/combobox/combobox.anatomy.d.cts +1 -1
- package/dist/components/combobox/combobox.anatomy.d.ts +1 -1
- package/dist/components/date-picker/date-picker-root.cjs +1 -0
- package/dist/components/date-picker/date-picker-root.js +1 -0
- package/dist/components/date-picker/date-picker.anatomy.d.cts +1 -1
- package/dist/components/date-picker/date-picker.anatomy.d.ts +1 -1
- package/dist/components/format/format-time.cjs +21 -0
- package/dist/components/format/format-time.d.cts +11 -0
- package/dist/components/format/format-time.d.ts +11 -0
- package/dist/components/format/format-time.js +17 -0
- package/dist/components/format/format.cjs +2 -0
- package/dist/components/format/format.d.cts +1 -0
- package/dist/components/format/format.d.ts +1 -0
- package/dist/components/format/format.js +1 -0
- package/dist/components/format/index.cjs +2 -0
- package/dist/components/format/index.d.cts +1 -0
- package/dist/components/format/index.d.ts +1 -0
- package/dist/components/format/index.js +1 -0
- package/dist/components/index.cjs +2 -0
- package/dist/components/index.js +1 -0
- package/dist/components/listbox/listbox-label.cjs +1 -1
- package/dist/components/listbox/listbox-label.d.cts +2 -2
- package/dist/components/listbox/listbox-label.d.ts +2 -2
- package/dist/components/listbox/listbox-label.js +1 -1
- package/dist/components/progress/progress-label.cjs +1 -1
- package/dist/components/progress/progress-label.d.cts +2 -2
- package/dist/components/progress/progress-label.d.ts +2 -2
- package/dist/components/progress/progress-label.js +1 -1
- package/dist/components/radio-group/radio-group-label.cjs +1 -1
- package/dist/components/radio-group/radio-group-label.d.cts +2 -2
- package/dist/components/radio-group/radio-group-label.d.ts +2 -2
- package/dist/components/radio-group/radio-group-label.js +1 -1
- package/dist/components/segment-group/segment-group-label.cjs +1 -1
- package/dist/components/segment-group/segment-group-label.d.cts +2 -2
- package/dist/components/segment-group/segment-group-label.d.ts +2 -2
- package/dist/components/segment-group/segment-group-label.js +1 -1
- package/dist/components/tour/tour.anatomy.d.cts +1 -1
- package/dist/components/tour/tour.anatomy.d.ts +1 -1
- package/dist/index.cjs +2 -0
- package/dist/index.js +1 -0
- package/package.json +67 -67
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AnatomyInstance } from '@zag-js/anatomy';
|
|
2
|
-
export declare const colorPickerAnatomy: AnatomyInstance<"root" | "control" | "label" | "
|
|
2
|
+
export declare const colorPickerAnatomy: AnatomyInstance<"root" | "control" | "label" | "trigger" | "positioner" | "content" | "area" | "areaThumb" | "valueText" | "areaBackground" | "channelSlider" | "channelSliderLabel" | "channelSliderTrack" | "channelSliderThumb" | "channelSliderValueText" | "channelInput" | "transparencyGrid" | "swatchGroup" | "swatchTrigger" | "swatchIndicator" | "swatch" | "eyeDropperTrigger" | "formatTrigger" | "formatSelect" | "view">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AnatomyInstance } from '@zag-js/anatomy';
|
|
2
|
-
export declare const colorPickerAnatomy: AnatomyInstance<"root" | "control" | "label" | "
|
|
2
|
+
export declare const colorPickerAnatomy: AnatomyInstance<"root" | "control" | "label" | "trigger" | "positioner" | "content" | "area" | "areaThumb" | "valueText" | "areaBackground" | "channelSlider" | "channelSliderLabel" | "channelSliderTrack" | "channelSliderThumb" | "channelSliderValueText" | "channelInput" | "transparencyGrid" | "swatchGroup" | "swatchTrigger" | "swatchIndicator" | "swatch" | "eyeDropperTrigger" | "formatTrigger" | "formatSelect" | "view">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AnatomyInstance } from '@zag-js/anatomy';
|
|
2
|
-
export declare const comboboxAnatomy: AnatomyInstance<"root" | "itemGroup" | "item" | "control" | "label" | "
|
|
2
|
+
export declare const comboboxAnatomy: AnatomyInstance<"root" | "itemGroup" | "item" | "control" | "label" | "trigger" | "positioner" | "content" | "clearTrigger" | "input" | "itemGroupLabel" | "itemIndicator" | "itemText" | "list" | "empty">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AnatomyInstance } from '@zag-js/anatomy';
|
|
2
|
-
export declare const comboboxAnatomy: AnatomyInstance<"root" | "itemGroup" | "item" | "control" | "label" | "
|
|
2
|
+
export declare const comboboxAnatomy: AnatomyInstance<"root" | "itemGroup" | "item" | "control" | "label" | "trigger" | "positioner" | "content" | "clearTrigger" | "input" | "itemGroupLabel" | "itemIndicator" | "itemText" | "list" | "empty">;
|
|
@@ -19,6 +19,7 @@ const DatePickerRoot = react.forwardRef((props, ref) => {
|
|
|
19
19
|
const [presenceProps, datePickerProps] = splitPresenceProps.splitPresenceProps(props);
|
|
20
20
|
const [useDatePickerProps, localProps] = splitRootProps(datePickerProps, [
|
|
21
21
|
"closeOnSelect",
|
|
22
|
+
"createCalendar",
|
|
22
23
|
"defaultFocusedValue",
|
|
23
24
|
"defaultOpen",
|
|
24
25
|
"defaultValue",
|
|
@@ -15,6 +15,7 @@ const DatePickerRoot = forwardRef((props, ref) => {
|
|
|
15
15
|
const [presenceProps, datePickerProps] = splitPresenceProps(props);
|
|
16
16
|
const [useDatePickerProps, localProps] = splitRootProps(datePickerProps, [
|
|
17
17
|
"closeOnSelect",
|
|
18
|
+
"createCalendar",
|
|
18
19
|
"defaultFocusedValue",
|
|
19
20
|
"defaultOpen",
|
|
20
21
|
"defaultValue",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AnatomyInstance } from '@zag-js/anatomy';
|
|
2
|
-
export declare const datePickerAnatomy: AnatomyInstance<"root" | "control" | "nextTrigger" | "prevTrigger" | "label" | "
|
|
2
|
+
export declare const datePickerAnatomy: AnatomyInstance<"root" | "control" | "nextTrigger" | "prevTrigger" | "label" | "trigger" | "positioner" | "content" | "valueText" | "view" | "clearTrigger" | "input" | "monthSelect" | "presetTrigger" | "rangeText" | "table" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "viewControl" | "viewTrigger" | "yearSelect">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AnatomyInstance } from '@zag-js/anatomy';
|
|
2
|
-
export declare const datePickerAnatomy: AnatomyInstance<"root" | "control" | "nextTrigger" | "prevTrigger" | "label" | "
|
|
2
|
+
export declare const datePickerAnatomy: AnatomyInstance<"root" | "control" | "nextTrigger" | "prevTrigger" | "label" | "trigger" | "positioner" | "content" | "valueText" | "view" | "clearTrigger" | "input" | "monthSelect" | "presetTrigger" | "rangeText" | "table" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "viewControl" | "viewTrigger" | "yearSelect">;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
const i18nUtils = require('@zag-js/i18n-utils');
|
|
8
|
+
const react = require('react');
|
|
9
|
+
const useLocaleContext = require('../../providers/locale/use-locale-context.cjs');
|
|
10
|
+
|
|
11
|
+
const FormatTime = (props) => {
|
|
12
|
+
const { locale } = useLocaleContext.useLocaleContext();
|
|
13
|
+
const text = react.useMemo(() => {
|
|
14
|
+
const { value, ...intlOptions } = props;
|
|
15
|
+
return i18nUtils.formatTime(value, locale, intlOptions);
|
|
16
|
+
}, [props, locale]);
|
|
17
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: text });
|
|
18
|
+
};
|
|
19
|
+
FormatTime.displayName = "FormatTime";
|
|
20
|
+
|
|
21
|
+
exports.FormatTime = FormatTime;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FormatTimeOptions } from '@zag-js/i18n-utils';
|
|
2
|
+
export interface FormatTimeProps extends FormatTimeOptions {
|
|
3
|
+
/**
|
|
4
|
+
* The time to format
|
|
5
|
+
*/
|
|
6
|
+
value: string | Date;
|
|
7
|
+
}
|
|
8
|
+
export declare const FormatTime: {
|
|
9
|
+
(props: FormatTimeProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FormatTimeOptions } from '@zag-js/i18n-utils';
|
|
2
|
+
export interface FormatTimeProps extends FormatTimeOptions {
|
|
3
|
+
/**
|
|
4
|
+
* The time to format
|
|
5
|
+
*/
|
|
6
|
+
value: string | Date;
|
|
7
|
+
}
|
|
8
|
+
export declare const FormatTime: {
|
|
9
|
+
(props: FormatTimeProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
3
|
+
import { formatTime } from '@zag-js/i18n-utils';
|
|
4
|
+
import { useMemo } from 'react';
|
|
5
|
+
import { useLocaleContext } from '../../providers/locale/use-locale-context.js';
|
|
6
|
+
|
|
7
|
+
const FormatTime = (props) => {
|
|
8
|
+
const { locale } = useLocaleContext();
|
|
9
|
+
const text = useMemo(() => {
|
|
10
|
+
const { value, ...intlOptions } = props;
|
|
11
|
+
return formatTime(value, locale, intlOptions);
|
|
12
|
+
}, [props, locale]);
|
|
13
|
+
return /* @__PURE__ */ jsx(Fragment, { children: text });
|
|
14
|
+
};
|
|
15
|
+
FormatTime.displayName = "FormatTime";
|
|
16
|
+
|
|
17
|
+
export { FormatTime };
|
|
@@ -5,9 +5,11 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
5
5
|
const formatByte = require('./format-byte.cjs');
|
|
6
6
|
const formatNumber = require('./format-number.cjs');
|
|
7
7
|
const formatRelativeTime = require('./format-relative-time.cjs');
|
|
8
|
+
const formatTime = require('./format-time.cjs');
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
exports.Byte = formatByte.FormatByte;
|
|
12
13
|
exports.Number = formatNumber.FormatNumber;
|
|
13
14
|
exports.RelativeTime = formatRelativeTime.FormatRelativeTime;
|
|
15
|
+
exports.Time = formatTime.FormatTime;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { FormatByte as Byte, type FormatByteProps as ByteProps } from './format-byte';
|
|
2
2
|
export { FormatNumber as Number, type FormatNumberProps as NumberProps } from './format-number';
|
|
3
3
|
export { FormatRelativeTime as RelativeTime, type FormatRelativeTimeProps as RelativeTimeProps, } from './format-relative-time';
|
|
4
|
+
export { FormatTime as Time, type FormatTimeProps as TimeProps } from './format-time';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { FormatByte as Byte, type FormatByteProps as ByteProps } from './format-byte';
|
|
2
2
|
export { FormatNumber as Number, type FormatNumberProps as NumberProps } from './format-number';
|
|
3
3
|
export { FormatRelativeTime as RelativeTime, type FormatRelativeTimeProps as RelativeTimeProps, } from './format-relative-time';
|
|
4
|
+
export { FormatTime as Time, type FormatTimeProps as TimeProps } from './format-time';
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
5
5
|
const formatByte = require('./format-byte.cjs');
|
|
6
6
|
const formatNumber = require('./format-number.cjs');
|
|
7
7
|
const formatRelativeTime = require('./format-relative-time.cjs');
|
|
8
|
+
const formatTime = require('./format-time.cjs');
|
|
8
9
|
const format = require('./format.cjs');
|
|
9
10
|
|
|
10
11
|
|
|
@@ -12,4 +13,5 @@ const format = require('./format.cjs');
|
|
|
12
13
|
exports.FormatByte = formatByte.FormatByte;
|
|
13
14
|
exports.FormatNumber = formatNumber.FormatNumber;
|
|
14
15
|
exports.FormatRelativeTime = formatRelativeTime.FormatRelativeTime;
|
|
16
|
+
exports.FormatTime = formatTime.FormatTime;
|
|
15
17
|
exports.Format = format;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { FormatByte, type FormatByteProps } from './format-byte';
|
|
2
2
|
export { FormatNumber, type FormatNumberProps } from './format-number';
|
|
3
3
|
export { FormatRelativeTime, type FormatRelativeTimeProps } from './format-relative-time';
|
|
4
|
+
export { FormatTime, type FormatTimeProps } from './format-time';
|
|
4
5
|
export * as Format from './format';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { FormatByte, type FormatByteProps } from './format-byte';
|
|
2
2
|
export { FormatNumber, type FormatNumberProps } from './format-number';
|
|
3
3
|
export { FormatRelativeTime, type FormatRelativeTimeProps } from './format-relative-time';
|
|
4
|
+
export { FormatTime, type FormatTimeProps } from './format-time';
|
|
4
5
|
export * as Format from './format';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { FormatByte } from './format-byte.js';
|
|
2
2
|
export { FormatNumber } from './format-number.js';
|
|
3
3
|
export { FormatRelativeTime } from './format-relative-time.js';
|
|
4
|
+
export { FormatTime } from './format-time.js';
|
|
4
5
|
import * as format from './format.js';
|
|
5
6
|
export { format as Format };
|
|
@@ -293,6 +293,7 @@ const focusTrap = require('./focus-trap/focus-trap.cjs');
|
|
|
293
293
|
const formatByte = require('./format/format-byte.cjs');
|
|
294
294
|
const formatNumber = require('./format/format-number.cjs');
|
|
295
295
|
const formatRelativeTime = require('./format/format-relative-time.cjs');
|
|
296
|
+
const formatTime = require('./format/format-time.cjs');
|
|
296
297
|
const format = require('./format/format.cjs');
|
|
297
298
|
const frame = require('./frame/frame.cjs');
|
|
298
299
|
const highlight = require('./highlight/highlight.cjs');
|
|
@@ -1091,6 +1092,7 @@ exports.FocusTrap = focusTrap.FocusTrap;
|
|
|
1091
1092
|
exports.FormatByte = formatByte.FormatByte;
|
|
1092
1093
|
exports.FormatNumber = formatNumber.FormatNumber;
|
|
1093
1094
|
exports.FormatRelativeTime = formatRelativeTime.FormatRelativeTime;
|
|
1095
|
+
exports.FormatTime = formatTime.FormatTime;
|
|
1094
1096
|
exports.Format = format;
|
|
1095
1097
|
exports.Frame = frame.Frame;
|
|
1096
1098
|
exports.Highlight = highlight.Highlight;
|
package/dist/components/index.js
CHANGED
|
@@ -306,6 +306,7 @@ export { FocusTrap } from './focus-trap/focus-trap.js';
|
|
|
306
306
|
export { FormatByte } from './format/format-byte.js';
|
|
307
307
|
export { FormatNumber } from './format/format-number.js';
|
|
308
308
|
export { FormatRelativeTime } from './format/format-relative-time.js';
|
|
309
|
+
export { FormatTime } from './format/format-time.js';
|
|
309
310
|
import * as format from './format/format.js';
|
|
310
311
|
export { format as Format };
|
|
311
312
|
export { Frame } from './frame/frame.js';
|
|
@@ -12,7 +12,7 @@ const useListboxContext = require('./use-listbox-context.cjs');
|
|
|
12
12
|
const ListboxLabel = react.forwardRef((props, ref) => {
|
|
13
13
|
const listbox = useListboxContext.useListboxContext();
|
|
14
14
|
const mergedProps = react$1.mergeProps(listbox.getLabelProps(), props);
|
|
15
|
-
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.
|
|
15
|
+
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.span, { ...mergedProps, ref });
|
|
16
16
|
});
|
|
17
17
|
ListboxLabel.displayName = "ListboxLabel";
|
|
18
18
|
|
|
@@ -2,6 +2,6 @@ import { HTMLProps, PolymorphicProps } from '../factory';
|
|
|
2
2
|
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
3
|
export interface ListboxLabelBaseProps extends PolymorphicProps {
|
|
4
4
|
}
|
|
5
|
-
export interface ListboxLabelProps extends HTMLProps<'
|
|
5
|
+
export interface ListboxLabelProps extends HTMLProps<'span'>, ListboxLabelBaseProps {
|
|
6
6
|
}
|
|
7
|
-
export declare const ListboxLabel: ForwardRefExoticComponent<ListboxLabelProps & RefAttributes<
|
|
7
|
+
export declare const ListboxLabel: ForwardRefExoticComponent<ListboxLabelProps & RefAttributes<HTMLSpanElement>>;
|
|
@@ -2,6 +2,6 @@ import { HTMLProps, PolymorphicProps } from '../factory';
|
|
|
2
2
|
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
3
|
export interface ListboxLabelBaseProps extends PolymorphicProps {
|
|
4
4
|
}
|
|
5
|
-
export interface ListboxLabelProps extends HTMLProps<'
|
|
5
|
+
export interface ListboxLabelProps extends HTMLProps<'span'>, ListboxLabelBaseProps {
|
|
6
6
|
}
|
|
7
|
-
export declare const ListboxLabel: ForwardRefExoticComponent<ListboxLabelProps & RefAttributes<
|
|
7
|
+
export declare const ListboxLabel: ForwardRefExoticComponent<ListboxLabelProps & RefAttributes<HTMLSpanElement>>;
|
|
@@ -8,7 +8,7 @@ import { useListboxContext } from './use-listbox-context.js';
|
|
|
8
8
|
const ListboxLabel = forwardRef((props, ref) => {
|
|
9
9
|
const listbox = useListboxContext();
|
|
10
10
|
const mergedProps = mergeProps(listbox.getLabelProps(), props);
|
|
11
|
-
return /* @__PURE__ */ jsx(ark.
|
|
11
|
+
return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });
|
|
12
12
|
});
|
|
13
13
|
ListboxLabel.displayName = "ListboxLabel";
|
|
14
14
|
|
|
@@ -12,7 +12,7 @@ const useProgressContext = require('./use-progress-context.cjs');
|
|
|
12
12
|
const ProgressLabel = react.forwardRef((props, ref) => {
|
|
13
13
|
const progress = useProgressContext.useProgressContext();
|
|
14
14
|
const mergedProps = react$1.mergeProps(progress.getLabelProps(), props);
|
|
15
|
-
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.
|
|
15
|
+
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.span, { ...mergedProps, ref });
|
|
16
16
|
});
|
|
17
17
|
ProgressLabel.displayName = "ProgressLabel";
|
|
18
18
|
|
|
@@ -2,6 +2,6 @@ import { HTMLProps, PolymorphicProps } from '../factory';
|
|
|
2
2
|
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
3
|
export interface ProgressLabelBaseProps extends PolymorphicProps {
|
|
4
4
|
}
|
|
5
|
-
export interface ProgressLabelProps extends HTMLProps<'
|
|
5
|
+
export interface ProgressLabelProps extends HTMLProps<'span'>, ProgressLabelBaseProps {
|
|
6
6
|
}
|
|
7
|
-
export declare const ProgressLabel: ForwardRefExoticComponent<ProgressLabelProps & RefAttributes<
|
|
7
|
+
export declare const ProgressLabel: ForwardRefExoticComponent<ProgressLabelProps & RefAttributes<HTMLSpanElement>>;
|
|
@@ -2,6 +2,6 @@ import { HTMLProps, PolymorphicProps } from '../factory';
|
|
|
2
2
|
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
3
|
export interface ProgressLabelBaseProps extends PolymorphicProps {
|
|
4
4
|
}
|
|
5
|
-
export interface ProgressLabelProps extends HTMLProps<'
|
|
5
|
+
export interface ProgressLabelProps extends HTMLProps<'span'>, ProgressLabelBaseProps {
|
|
6
6
|
}
|
|
7
|
-
export declare const ProgressLabel: ForwardRefExoticComponent<ProgressLabelProps & RefAttributes<
|
|
7
|
+
export declare const ProgressLabel: ForwardRefExoticComponent<ProgressLabelProps & RefAttributes<HTMLSpanElement>>;
|
|
@@ -8,7 +8,7 @@ import { useProgressContext } from './use-progress-context.js';
|
|
|
8
8
|
const ProgressLabel = forwardRef((props, ref) => {
|
|
9
9
|
const progress = useProgressContext();
|
|
10
10
|
const mergedProps = mergeProps(progress.getLabelProps(), props);
|
|
11
|
-
return /* @__PURE__ */ jsx(ark.
|
|
11
|
+
return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });
|
|
12
12
|
});
|
|
13
13
|
ProgressLabel.displayName = "ProgressLabel";
|
|
14
14
|
|
|
@@ -12,7 +12,7 @@ const useRadioGroupContext = require('./use-radio-group-context.cjs');
|
|
|
12
12
|
const RadioGroupLabel = react.forwardRef((props, ref) => {
|
|
13
13
|
const radioGroup = useRadioGroupContext.useRadioGroupContext();
|
|
14
14
|
const mergedProps = react$1.mergeProps(radioGroup.getLabelProps(), props);
|
|
15
|
-
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.
|
|
15
|
+
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.span, { ...mergedProps, ref });
|
|
16
16
|
});
|
|
17
17
|
RadioGroupLabel.displayName = "RadioGroupLabel";
|
|
18
18
|
|
|
@@ -2,6 +2,6 @@ import { HTMLProps, PolymorphicProps } from '../factory';
|
|
|
2
2
|
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
3
|
export interface RadioGroupLabelBaseProps extends PolymorphicProps {
|
|
4
4
|
}
|
|
5
|
-
export interface RadioGroupLabelProps extends HTMLProps<'
|
|
5
|
+
export interface RadioGroupLabelProps extends HTMLProps<'span'>, RadioGroupLabelBaseProps {
|
|
6
6
|
}
|
|
7
|
-
export declare const RadioGroupLabel: ForwardRefExoticComponent<RadioGroupLabelProps & RefAttributes<
|
|
7
|
+
export declare const RadioGroupLabel: ForwardRefExoticComponent<RadioGroupLabelProps & RefAttributes<HTMLSpanElement>>;
|
|
@@ -2,6 +2,6 @@ import { HTMLProps, PolymorphicProps } from '../factory';
|
|
|
2
2
|
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
3
|
export interface RadioGroupLabelBaseProps extends PolymorphicProps {
|
|
4
4
|
}
|
|
5
|
-
export interface RadioGroupLabelProps extends HTMLProps<'
|
|
5
|
+
export interface RadioGroupLabelProps extends HTMLProps<'span'>, RadioGroupLabelBaseProps {
|
|
6
6
|
}
|
|
7
|
-
export declare const RadioGroupLabel: ForwardRefExoticComponent<RadioGroupLabelProps & RefAttributes<
|
|
7
|
+
export declare const RadioGroupLabel: ForwardRefExoticComponent<RadioGroupLabelProps & RefAttributes<HTMLSpanElement>>;
|
|
@@ -8,7 +8,7 @@ import { useRadioGroupContext } from './use-radio-group-context.js';
|
|
|
8
8
|
const RadioGroupLabel = forwardRef((props, ref) => {
|
|
9
9
|
const radioGroup = useRadioGroupContext();
|
|
10
10
|
const mergedProps = mergeProps(radioGroup.getLabelProps(), props);
|
|
11
|
-
return /* @__PURE__ */ jsx(ark.
|
|
11
|
+
return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });
|
|
12
12
|
});
|
|
13
13
|
RadioGroupLabel.displayName = "RadioGroupLabel";
|
|
14
14
|
|
|
@@ -13,7 +13,7 @@ const useSegmentGroupContext = require('./use-segment-group-context.cjs');
|
|
|
13
13
|
const SegmentGroupLabel = react.forwardRef((props, ref) => {
|
|
14
14
|
const segmentGroup = useSegmentGroupContext.useSegmentGroupContext();
|
|
15
15
|
const mergedProps = react$1.mergeProps(segmentGroup.getLabelProps(), segmentGroup_anatomy.parts.label.attrs, props);
|
|
16
|
-
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.
|
|
16
|
+
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.span, { ...mergedProps, ref });
|
|
17
17
|
});
|
|
18
18
|
SegmentGroupLabel.displayName = "SegmentGroupLabel";
|
|
19
19
|
|
|
@@ -2,6 +2,6 @@ import { HTMLProps, PolymorphicProps } from '../factory';
|
|
|
2
2
|
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
3
|
export interface SegmentGroupLabelBaseProps extends PolymorphicProps {
|
|
4
4
|
}
|
|
5
|
-
export interface SegmentGroupLabelProps extends HTMLProps<'
|
|
5
|
+
export interface SegmentGroupLabelProps extends HTMLProps<'span'>, SegmentGroupLabelBaseProps {
|
|
6
6
|
}
|
|
7
|
-
export declare const SegmentGroupLabel: ForwardRefExoticComponent<SegmentGroupLabelProps & RefAttributes<
|
|
7
|
+
export declare const SegmentGroupLabel: ForwardRefExoticComponent<SegmentGroupLabelProps & RefAttributes<HTMLSpanElement>>;
|
|
@@ -2,6 +2,6 @@ import { HTMLProps, PolymorphicProps } from '../factory';
|
|
|
2
2
|
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
3
|
export interface SegmentGroupLabelBaseProps extends PolymorphicProps {
|
|
4
4
|
}
|
|
5
|
-
export interface SegmentGroupLabelProps extends HTMLProps<'
|
|
5
|
+
export interface SegmentGroupLabelProps extends HTMLProps<'span'>, SegmentGroupLabelBaseProps {
|
|
6
6
|
}
|
|
7
|
-
export declare const SegmentGroupLabel: ForwardRefExoticComponent<SegmentGroupLabelProps & RefAttributes<
|
|
7
|
+
export declare const SegmentGroupLabel: ForwardRefExoticComponent<SegmentGroupLabelProps & RefAttributes<HTMLSpanElement>>;
|
|
@@ -9,7 +9,7 @@ import { useSegmentGroupContext } from './use-segment-group-context.js';
|
|
|
9
9
|
const SegmentGroupLabel = forwardRef((props, ref) => {
|
|
10
10
|
const segmentGroup = useSegmentGroupContext();
|
|
11
11
|
const mergedProps = mergeProps(segmentGroup.getLabelProps(), parts.label.attrs, props);
|
|
12
|
-
return /* @__PURE__ */ jsx(ark.
|
|
12
|
+
return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });
|
|
13
13
|
});
|
|
14
14
|
SegmentGroupLabel.displayName = "SegmentGroupLabel";
|
|
15
15
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AnatomyInstance } from '@zag-js/anatomy';
|
|
2
|
-
export declare const tourAnatomy: AnatomyInstance<"control" | "progressText" | "
|
|
2
|
+
export declare const tourAnatomy: AnatomyInstance<"control" | "progressText" | "positioner" | "content" | "title" | "actionTrigger" | "closeTrigger" | "description" | "arrow" | "arrowTip" | "backdrop" | "spotlight">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AnatomyInstance } from '@zag-js/anatomy';
|
|
2
|
-
export declare const tourAnatomy: AnatomyInstance<"control" | "progressText" | "
|
|
2
|
+
export declare const tourAnatomy: AnatomyInstance<"control" | "progressText" | "positioner" | "content" | "title" | "actionTrigger" | "closeTrigger" | "description" | "arrow" | "arrowTip" | "backdrop" | "spotlight">;
|
package/dist/index.cjs
CHANGED
|
@@ -293,6 +293,7 @@ const focusTrap = require('./components/focus-trap/focus-trap.cjs');
|
|
|
293
293
|
const formatByte = require('./components/format/format-byte.cjs');
|
|
294
294
|
const formatNumber = require('./components/format/format-number.cjs');
|
|
295
295
|
const formatRelativeTime = require('./components/format/format-relative-time.cjs');
|
|
296
|
+
const formatTime = require('./components/format/format-time.cjs');
|
|
296
297
|
const format = require('./components/format/format.cjs');
|
|
297
298
|
const frame = require('./components/frame/frame.cjs');
|
|
298
299
|
const highlight = require('./components/highlight/highlight.cjs');
|
|
@@ -1100,6 +1101,7 @@ exports.FocusTrap = focusTrap.FocusTrap;
|
|
|
1100
1101
|
exports.FormatByte = formatByte.FormatByte;
|
|
1101
1102
|
exports.FormatNumber = formatNumber.FormatNumber;
|
|
1102
1103
|
exports.FormatRelativeTime = formatRelativeTime.FormatRelativeTime;
|
|
1104
|
+
exports.FormatTime = formatTime.FormatTime;
|
|
1103
1105
|
exports.Format = format;
|
|
1104
1106
|
exports.Frame = frame.Frame;
|
|
1105
1107
|
exports.Highlight = highlight.Highlight;
|
package/dist/index.js
CHANGED
|
@@ -306,6 +306,7 @@ export { FocusTrap } from './components/focus-trap/focus-trap.js';
|
|
|
306
306
|
export { FormatByte } from './components/format/format-byte.js';
|
|
307
307
|
export { FormatNumber } from './components/format/format-number.js';
|
|
308
308
|
export { FormatRelativeTime } from './components/format/format-relative-time.js';
|
|
309
|
+
export { FormatTime } from './components/format/format-time.js';
|
|
309
310
|
import * as format from './components/format/format.js';
|
|
310
311
|
export { format as Format };
|
|
311
312
|
export { Frame } from './components/frame/frame.js';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ark-ui/react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.34.0",
|
|
5
5
|
"description": "A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"accordion",
|
|
@@ -150,70 +150,70 @@
|
|
|
150
150
|
"sideEffects": false,
|
|
151
151
|
"dependencies": {
|
|
152
152
|
"@internationalized/date": "3.11.0",
|
|
153
|
-
"@zag-js/accordion": "1.
|
|
154
|
-
"@zag-js/anatomy": "1.
|
|
155
|
-
"@zag-js/angle-slider": "1.
|
|
156
|
-
"@zag-js/async-list": "1.
|
|
157
|
-
"@zag-js/auto-resize": "1.
|
|
158
|
-
"@zag-js/avatar": "1.
|
|
159
|
-
"@zag-js/carousel": "1.
|
|
160
|
-
"@zag-js/cascade-select": "1.
|
|
161
|
-
"@zag-js/checkbox": "1.
|
|
162
|
-
"@zag-js/clipboard": "1.
|
|
163
|
-
"@zag-js/collapsible": "1.
|
|
164
|
-
"@zag-js/collection": "1.
|
|
165
|
-
"@zag-js/color-picker": "1.
|
|
166
|
-
"@zag-js/color-utils": "1.
|
|
167
|
-
"@zag-js/combobox": "1.
|
|
168
|
-
"@zag-js/core": "1.
|
|
169
|
-
"@zag-js/date-picker": "1.
|
|
170
|
-
"@zag-js/date-utils": "1.
|
|
171
|
-
"@zag-js/dialog": "1.
|
|
172
|
-
"@zag-js/dom-query": "1.
|
|
173
|
-
"@zag-js/drawer": "1.
|
|
174
|
-
"@zag-js/editable": "1.
|
|
175
|
-
"@zag-js/file-upload": "1.
|
|
176
|
-
"@zag-js/file-utils": "1.
|
|
177
|
-
"@zag-js/floating-panel": "1.
|
|
178
|
-
"@zag-js/focus-trap": "1.
|
|
179
|
-
"@zag-js/highlight-word": "1.
|
|
180
|
-
"@zag-js/hover-card": "1.
|
|
181
|
-
"@zag-js/i18n-utils": "1.
|
|
182
|
-
"@zag-js/image-cropper": "1.
|
|
183
|
-
"@zag-js/json-tree-utils": "1.
|
|
184
|
-
"@zag-js/listbox": "1.
|
|
185
|
-
"@zag-js/marquee": "1.
|
|
186
|
-
"@zag-js/menu": "1.
|
|
187
|
-
"@zag-js/navigation-menu": "1.
|
|
188
|
-
"@zag-js/number-input": "1.
|
|
189
|
-
"@zag-js/pagination": "1.
|
|
190
|
-
"@zag-js/password-input": "1.
|
|
191
|
-
"@zag-js/pin-input": "1.
|
|
192
|
-
"@zag-js/popover": "1.
|
|
193
|
-
"@zag-js/presence": "1.
|
|
194
|
-
"@zag-js/progress": "1.
|
|
195
|
-
"@zag-js/qr-code": "1.
|
|
196
|
-
"@zag-js/radio-group": "1.
|
|
197
|
-
"@zag-js/rating-group": "1.
|
|
198
|
-
"@zag-js/react": "1.
|
|
199
|
-
"@zag-js/scroll-area": "1.
|
|
200
|
-
"@zag-js/select": "1.
|
|
201
|
-
"@zag-js/signature-pad": "1.
|
|
202
|
-
"@zag-js/slider": "1.
|
|
203
|
-
"@zag-js/splitter": "1.
|
|
204
|
-
"@zag-js/steps": "1.
|
|
205
|
-
"@zag-js/switch": "1.
|
|
206
|
-
"@zag-js/tabs": "1.
|
|
207
|
-
"@zag-js/tags-input": "1.
|
|
208
|
-
"@zag-js/timer": "1.
|
|
209
|
-
"@zag-js/toast": "1.
|
|
210
|
-
"@zag-js/toggle": "1.
|
|
211
|
-
"@zag-js/toggle-group": "1.
|
|
212
|
-
"@zag-js/tooltip": "1.
|
|
213
|
-
"@zag-js/tour": "1.
|
|
214
|
-
"@zag-js/tree-view": "1.
|
|
215
|
-
"@zag-js/types": "1.
|
|
216
|
-
"@zag-js/utils": "1.
|
|
153
|
+
"@zag-js/accordion": "1.35.2",
|
|
154
|
+
"@zag-js/anatomy": "1.35.2",
|
|
155
|
+
"@zag-js/angle-slider": "1.35.2",
|
|
156
|
+
"@zag-js/async-list": "1.35.2",
|
|
157
|
+
"@zag-js/auto-resize": "1.35.2",
|
|
158
|
+
"@zag-js/avatar": "1.35.2",
|
|
159
|
+
"@zag-js/carousel": "1.35.2",
|
|
160
|
+
"@zag-js/cascade-select": "1.35.2",
|
|
161
|
+
"@zag-js/checkbox": "1.35.2",
|
|
162
|
+
"@zag-js/clipboard": "1.35.2",
|
|
163
|
+
"@zag-js/collapsible": "1.35.2",
|
|
164
|
+
"@zag-js/collection": "1.35.2",
|
|
165
|
+
"@zag-js/color-picker": "1.35.2",
|
|
166
|
+
"@zag-js/color-utils": "1.35.2",
|
|
167
|
+
"@zag-js/combobox": "1.35.2",
|
|
168
|
+
"@zag-js/core": "1.35.2",
|
|
169
|
+
"@zag-js/date-picker": "1.35.2",
|
|
170
|
+
"@zag-js/date-utils": "1.35.2",
|
|
171
|
+
"@zag-js/dialog": "1.35.2",
|
|
172
|
+
"@zag-js/dom-query": "1.35.2",
|
|
173
|
+
"@zag-js/drawer": "1.35.2",
|
|
174
|
+
"@zag-js/editable": "1.35.2",
|
|
175
|
+
"@zag-js/file-upload": "1.35.2",
|
|
176
|
+
"@zag-js/file-utils": "1.35.2",
|
|
177
|
+
"@zag-js/floating-panel": "1.35.2",
|
|
178
|
+
"@zag-js/focus-trap": "1.35.2",
|
|
179
|
+
"@zag-js/highlight-word": "1.35.2",
|
|
180
|
+
"@zag-js/hover-card": "1.35.2",
|
|
181
|
+
"@zag-js/i18n-utils": "1.35.2",
|
|
182
|
+
"@zag-js/image-cropper": "1.35.2",
|
|
183
|
+
"@zag-js/json-tree-utils": "1.35.2",
|
|
184
|
+
"@zag-js/listbox": "1.35.2",
|
|
185
|
+
"@zag-js/marquee": "1.35.2",
|
|
186
|
+
"@zag-js/menu": "1.35.2",
|
|
187
|
+
"@zag-js/navigation-menu": "1.35.2",
|
|
188
|
+
"@zag-js/number-input": "1.35.2",
|
|
189
|
+
"@zag-js/pagination": "1.35.2",
|
|
190
|
+
"@zag-js/password-input": "1.35.2",
|
|
191
|
+
"@zag-js/pin-input": "1.35.2",
|
|
192
|
+
"@zag-js/popover": "1.35.2",
|
|
193
|
+
"@zag-js/presence": "1.35.2",
|
|
194
|
+
"@zag-js/progress": "1.35.2",
|
|
195
|
+
"@zag-js/qr-code": "1.35.2",
|
|
196
|
+
"@zag-js/radio-group": "1.35.2",
|
|
197
|
+
"@zag-js/rating-group": "1.35.2",
|
|
198
|
+
"@zag-js/react": "1.35.2",
|
|
199
|
+
"@zag-js/scroll-area": "1.35.2",
|
|
200
|
+
"@zag-js/select": "1.35.2",
|
|
201
|
+
"@zag-js/signature-pad": "1.35.2",
|
|
202
|
+
"@zag-js/slider": "1.35.2",
|
|
203
|
+
"@zag-js/splitter": "1.35.2",
|
|
204
|
+
"@zag-js/steps": "1.35.2",
|
|
205
|
+
"@zag-js/switch": "1.35.2",
|
|
206
|
+
"@zag-js/tabs": "1.35.2",
|
|
207
|
+
"@zag-js/tags-input": "1.35.2",
|
|
208
|
+
"@zag-js/timer": "1.35.2",
|
|
209
|
+
"@zag-js/toast": "1.35.2",
|
|
210
|
+
"@zag-js/toggle": "1.35.2",
|
|
211
|
+
"@zag-js/toggle-group": "1.35.2",
|
|
212
|
+
"@zag-js/tooltip": "1.35.2",
|
|
213
|
+
"@zag-js/tour": "1.35.2",
|
|
214
|
+
"@zag-js/tree-view": "1.35.2",
|
|
215
|
+
"@zag-js/types": "1.35.2",
|
|
216
|
+
"@zag-js/utils": "1.35.2"
|
|
217
217
|
},
|
|
218
218
|
"devDependencies": {
|
|
219
219
|
"@biomejs/biome": "2.4.4",
|
|
@@ -244,9 +244,9 @@
|
|
|
244
244
|
"resize-observer-polyfill": "1.5.1",
|
|
245
245
|
"storybook": "10.2.10",
|
|
246
246
|
"typescript": "5.9.3",
|
|
247
|
-
"vite": "7.3.
|
|
247
|
+
"vite": "7.3.1",
|
|
248
248
|
"vite-plugin-dts": "4.5.4",
|
|
249
|
-
"vitest": "^4.0.
|
|
249
|
+
"vitest": "^4.0.18",
|
|
250
250
|
"vitest-axe": "1.0.0-pre.5"
|
|
251
251
|
},
|
|
252
252
|
"peerDependencies": {
|