@ark-ui/solid 3.7.0 → 3.9.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/cjs/index.js +272 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +245 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/source/components/editable/editable-root.jsx +3 -2
- package/dist/source/components/editable/index.js +1 -0
- package/dist/source/components/editable/use-editable.js +2 -0
- package/dist/source/components/index.js +2 -0
- package/dist/source/components/steps/index.js +17 -0
- package/dist/source/components/steps/steps-completed-content.jsx +8 -0
- package/dist/source/components/steps/steps-content.jsx +10 -0
- package/dist/source/components/steps/steps-indicator.jsx +10 -0
- package/dist/source/components/steps/steps-item-context.jsx +5 -0
- package/dist/source/components/steps/steps-item.jsx +18 -0
- package/dist/source/components/steps/steps-list.jsx +8 -0
- package/dist/source/components/steps/steps-next-trigger.jsx +8 -0
- package/dist/source/components/steps/steps-prev-trigger.jsx +8 -0
- package/dist/source/components/steps/steps-progress.jsx +8 -0
- package/dist/source/components/steps/steps-root-provider.jsx +11 -0
- package/dist/source/components/steps/steps-root.jsx +23 -0
- package/dist/source/components/steps/steps-separator.jsx +10 -0
- package/dist/source/components/steps/steps-trigger.jsx +10 -0
- package/dist/source/components/steps/steps.js +12 -0
- package/dist/source/components/steps/use-steps-context.js +5 -0
- package/dist/source/components/steps/use-steps-item-context.js +5 -0
- package/dist/source/components/steps/use-steps-item-props-context.js +5 -0
- package/dist/source/components/steps/use-steps.js +18 -0
- package/dist/source/components/timer/index.js +9 -0
- package/dist/source/components/timer/timer-action-trigger.jsx +8 -0
- package/dist/source/components/timer/timer-context.jsx +2 -0
- package/dist/source/components/timer/timer-item.jsx +10 -0
- package/dist/source/components/timer/timer-root-provider.jsx +11 -0
- package/dist/source/components/timer/timer-root.jsx +22 -0
- package/dist/source/components/timer/timer-separator.jsx +8 -0
- package/dist/source/components/timer/timer.js +6 -0
- package/dist/source/components/timer/use-timer-context.js +5 -0
- package/dist/source/components/timer/use-timer.js +15 -0
- package/dist/types/components/editable/index.d.ts +3 -0
- package/dist/types/components/editable/use-editable.d.ts +6 -1
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/components/steps/index.d.ts +18 -0
- package/dist/types/components/steps/steps-completed-content.d.ts +6 -0
- package/dist/types/components/steps/steps-content.d.ts +7 -0
- package/dist/types/components/steps/steps-indicator.d.ts +6 -0
- package/dist/types/components/steps/steps-item-context.d.ts +9 -0
- package/dist/types/components/steps/steps-item.d.ts +7 -0
- package/dist/types/components/steps/steps-list.d.ts +6 -0
- package/dist/types/components/steps/steps-next-trigger.d.ts +6 -0
- package/dist/types/components/steps/steps-prev-trigger.d.ts +6 -0
- package/dist/types/components/steps/steps-progress.d.ts +6 -0
- package/dist/types/components/steps/steps-root-provider.d.ts +11 -0
- package/dist/types/components/steps/steps-root.d.ts +7 -0
- package/dist/types/components/steps/steps-separator.d.ts +6 -0
- package/dist/types/components/steps/steps-trigger.d.ts +6 -0
- package/dist/types/components/steps/steps.d.ts +13 -0
- package/dist/types/components/steps/use-steps-context.d.ts +4 -0
- package/dist/types/components/steps/use-steps-item-context.d.ts +5 -0
- package/dist/types/components/steps/use-steps-item-props-context.d.ts +4 -0
- package/dist/types/components/steps/use-steps.d.ts +13 -0
- package/dist/types/components/timer/index.d.ts +9 -0
- package/dist/types/components/timer/timer-action-trigger.d.ts +7 -0
- package/dist/types/components/timer/timer-context.d.ts +6 -0
- package/dist/types/components/timer/timer-item.d.ts +7 -0
- package/dist/types/components/timer/timer-root-provider.d.ts +11 -0
- package/dist/types/components/timer/timer-root.d.ts +7 -0
- package/dist/types/components/timer/timer-separator.d.ts +6 -0
- package/dist/types/components/timer/timer.d.ts +6 -0
- package/dist/types/components/timer/use-timer-context.d.ts +4 -0
- package/dist/types/components/timer/use-timer.d.ts +9 -0
- package/package.json +53 -52
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { TimerContext, type TimerContextProps, } from './timer-context';
|
|
2
|
+
export { TimerActionTrigger, type TimerActionTriggerBaseProps, type TimerActionTriggerProps, } from './timer-action-trigger';
|
|
3
|
+
export { TimerItem, type TimerItemProps, type TimerItemBaseProps, } from './timer-item';
|
|
4
|
+
export { TimerSeparator, type TimerSeparatorProps, type TimerSeparatorBaseProps, } from './timer-separator';
|
|
5
|
+
export { TimerRoot, type TimerRootProps, type TimerRootBaseProps, } from './timer-root';
|
|
6
|
+
export { TimerRootProvider, type TimerRootProviderProps, type TimerRootProviderBaseProps, } from './timer-root-provider';
|
|
7
|
+
export { useTimer, type UseTimerProps, type UseTimerReturn } from './use-timer';
|
|
8
|
+
export { useTimerContext, type UseTimerContext } from './use-timer-context';
|
|
9
|
+
export * as Timer from './timer';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ActionTriggerProps } from '@zag-js/timer';
|
|
2
|
+
import { type HTMLProps, type PolymorphicProps } from '../factory';
|
|
3
|
+
export interface TimerActionTriggerBaseProps extends ActionTriggerProps, PolymorphicProps<'button'> {
|
|
4
|
+
}
|
|
5
|
+
export interface TimerActionTriggerProps extends HTMLProps<'button'>, TimerActionTriggerBaseProps {
|
|
6
|
+
}
|
|
7
|
+
export declare const TimerActionTrigger: (props: TimerActionTriggerProps) => import("solid-js").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { type UseTimerContext } from './use-timer-context';
|
|
3
|
+
export interface TimerContextProps {
|
|
4
|
+
children: (context: UseTimerContext) => ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const TimerContext: (props: TimerContextProps) => ReactNode;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ItemProps } from '@zag-js/timer';
|
|
2
|
+
import { type HTMLProps, type PolymorphicProps } from '../factory';
|
|
3
|
+
export interface TimerItemBaseProps extends ItemProps, PolymorphicProps<'div'> {
|
|
4
|
+
}
|
|
5
|
+
export interface TimerItemProps extends HTMLProps<'div'>, TimerItemBaseProps {
|
|
6
|
+
}
|
|
7
|
+
export declare const TimerItem: (props: TimerItemProps) => import("solid-js").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type HTMLProps, type PolymorphicProps } from '../factory';
|
|
2
|
+
import type { UseTimerReturn } from './use-timer';
|
|
3
|
+
interface RootProviderProps {
|
|
4
|
+
value: UseTimerReturn;
|
|
5
|
+
}
|
|
6
|
+
export interface TimerRootProviderBaseProps extends RootProviderProps, PolymorphicProps<'div'> {
|
|
7
|
+
}
|
|
8
|
+
export interface TimerRootProviderProps extends HTMLProps<'div'>, TimerRootProviderBaseProps {
|
|
9
|
+
}
|
|
10
|
+
export declare const TimerRootProvider: (props: TimerRootProviderProps) => import("solid-js").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type HTMLProps, type PolymorphicProps } from '../factory';
|
|
2
|
+
import { type UseTimerProps } from './use-timer';
|
|
3
|
+
export interface TimerRootBaseProps extends UseTimerProps, PolymorphicProps<'div'> {
|
|
4
|
+
}
|
|
5
|
+
export interface TimerRootProps extends HTMLProps<'div'>, TimerRootBaseProps {
|
|
6
|
+
}
|
|
7
|
+
export declare const TimerRoot: (props: TimerRootProps) => import("solid-js").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type HTMLProps, type PolymorphicProps } from '../factory';
|
|
2
|
+
export interface TimerSeparatorBaseProps extends PolymorphicProps<'div'> {
|
|
3
|
+
}
|
|
4
|
+
export interface TimerSeparatorProps extends HTMLProps<'div'>, TimerSeparatorBaseProps {
|
|
5
|
+
}
|
|
6
|
+
export declare const TimerSeparator: (props: TimerSeparatorProps) => import("solid-js").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { TimerContext as Context, type TimerContextProps as ContextProps, } from './timer-context';
|
|
2
|
+
export { TimerActionTrigger as ActionTrigger, type TimerActionTriggerBaseProps as ActionTriggerBaseProps, type TimerActionTriggerProps as ActionTriggerProps, } from './timer-action-trigger';
|
|
3
|
+
export { TimerItem as Item, type TimerItemProps as ItemProps, type TimerItemBaseProps as ItemBaseProps, } from './timer-item';
|
|
4
|
+
export { TimerSeparator as Separator, type TimerSeparatorProps as SeparatorProps, type TimerSeparatorBaseProps as SeparatorBaseProps, } from './timer-separator';
|
|
5
|
+
export { TimerRoot as Root, type TimerRootProps as RootProps, type TimerRootBaseProps as RootBaseProps, } from './timer-root';
|
|
6
|
+
export { TimerRootProvider as RootProvider, type TimerRootProviderProps as RootProviderBaseProps, type TimerRootProviderBaseProps as RootProviderProps, } from './timer-root-provider';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type PropTypes } from '@zag-js/solid';
|
|
2
|
+
import * as timer from '@zag-js/timer';
|
|
3
|
+
import { type Accessor } from 'solid-js';
|
|
4
|
+
import type { Optional } from '../../types';
|
|
5
|
+
export interface UseTimerProps extends Optional<Omit<timer.Context, 'dir' | 'getRootNode'>, 'id'> {
|
|
6
|
+
}
|
|
7
|
+
export interface UseTimerReturn extends Accessor<timer.Api<PropTypes>> {
|
|
8
|
+
}
|
|
9
|
+
export declare const useTimer: (props: UseTimerProps) => UseTimerReturn;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ark-ui/solid",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.9.0",
|
|
4
4
|
"description": "A collection of unstyled, accessible UI components for Solid, utilizing state machines for seamless interaction.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accordion",
|
|
@@ -85,75 +85,76 @@
|
|
|
85
85
|
"sideEffects": false,
|
|
86
86
|
"dependencies": {
|
|
87
87
|
"@internationalized/date": "3.5.5",
|
|
88
|
-
"@zag-js/accordion": "0.
|
|
89
|
-
"@zag-js/anatomy": "0.
|
|
90
|
-
"@zag-js/avatar": "0.
|
|
91
|
-
"@zag-js/carousel": "0.
|
|
92
|
-
"@zag-js/checkbox": "0.
|
|
93
|
-
"@zag-js/clipboard": "0.
|
|
94
|
-
"@zag-js/collapsible": "0.
|
|
95
|
-
"@zag-js/color-picker": "0.
|
|
96
|
-
"@zag-js/combobox": "0.
|
|
97
|
-
"@zag-js/date-picker": "0.
|
|
98
|
-
"@zag-js/dialog": "0.
|
|
99
|
-
"@zag-js/dom-query": "0.
|
|
100
|
-
"@zag-js/editable": "0.
|
|
101
|
-
"@zag-js/file-upload": "0.
|
|
102
|
-
"@zag-js/hover-card": "0.
|
|
103
|
-
"@zag-js/file-utils": "0.
|
|
104
|
-
"@zag-js/i18n-utils": "0.
|
|
105
|
-
"@zag-js/menu": "0.
|
|
106
|
-
"@zag-js/number-input": "0.
|
|
107
|
-
"@zag-js/pagination": "0.
|
|
108
|
-
"@zag-js/pin-input": "0.
|
|
109
|
-
"@zag-js/popover": "0.
|
|
110
|
-
"@zag-js/presence": "0.
|
|
111
|
-
"@zag-js/progress": "0.
|
|
112
|
-
"@zag-js/qr-code": "0.
|
|
113
|
-
"@zag-js/radio-group": "0.
|
|
114
|
-
"@zag-js/rating-group": "0.
|
|
115
|
-
"@zag-js/select": "0.
|
|
116
|
-
"@zag-js/signature-pad": "0.
|
|
117
|
-
"@zag-js/slider": "0.
|
|
118
|
-
"@zag-js/solid": "0.
|
|
119
|
-
"@zag-js/splitter": "0.
|
|
120
|
-
"@zag-js/steps": "0.
|
|
121
|
-
"@zag-js/switch": "0.
|
|
122
|
-
"@zag-js/tabs": "0.
|
|
123
|
-
"@zag-js/tags-input": "0.
|
|
124
|
-
"@zag-js/
|
|
125
|
-
"@zag-js/
|
|
126
|
-
"@zag-js/
|
|
127
|
-
"@zag-js/
|
|
128
|
-
"@zag-js/
|
|
129
|
-
"@zag-js/
|
|
88
|
+
"@zag-js/accordion": "0.65.1",
|
|
89
|
+
"@zag-js/anatomy": "0.65.1",
|
|
90
|
+
"@zag-js/avatar": "0.65.1",
|
|
91
|
+
"@zag-js/carousel": "0.65.1",
|
|
92
|
+
"@zag-js/checkbox": "0.65.1",
|
|
93
|
+
"@zag-js/clipboard": "0.65.1",
|
|
94
|
+
"@zag-js/collapsible": "0.65.1",
|
|
95
|
+
"@zag-js/color-picker": "0.65.1",
|
|
96
|
+
"@zag-js/combobox": "0.65.1",
|
|
97
|
+
"@zag-js/date-picker": "0.65.1",
|
|
98
|
+
"@zag-js/dialog": "0.65.1",
|
|
99
|
+
"@zag-js/dom-query": "0.65.1",
|
|
100
|
+
"@zag-js/editable": "0.65.1",
|
|
101
|
+
"@zag-js/file-upload": "0.65.1",
|
|
102
|
+
"@zag-js/hover-card": "0.65.1",
|
|
103
|
+
"@zag-js/file-utils": "0.65.1",
|
|
104
|
+
"@zag-js/i18n-utils": "0.65.1",
|
|
105
|
+
"@zag-js/menu": "0.65.1",
|
|
106
|
+
"@zag-js/number-input": "0.65.1",
|
|
107
|
+
"@zag-js/pagination": "0.65.1",
|
|
108
|
+
"@zag-js/pin-input": "0.65.1",
|
|
109
|
+
"@zag-js/popover": "0.65.1",
|
|
110
|
+
"@zag-js/presence": "0.65.1",
|
|
111
|
+
"@zag-js/progress": "0.65.1",
|
|
112
|
+
"@zag-js/qr-code": "0.65.1",
|
|
113
|
+
"@zag-js/radio-group": "0.65.1",
|
|
114
|
+
"@zag-js/rating-group": "0.65.1",
|
|
115
|
+
"@zag-js/select": "0.65.1",
|
|
116
|
+
"@zag-js/signature-pad": "0.65.1",
|
|
117
|
+
"@zag-js/slider": "0.65.1",
|
|
118
|
+
"@zag-js/solid": "0.65.1",
|
|
119
|
+
"@zag-js/splitter": "0.65.1",
|
|
120
|
+
"@zag-js/steps": "0.65.1",
|
|
121
|
+
"@zag-js/switch": "0.65.1",
|
|
122
|
+
"@zag-js/tabs": "0.65.1",
|
|
123
|
+
"@zag-js/tags-input": "0.65.1",
|
|
124
|
+
"@zag-js/timer": "0.65.1",
|
|
125
|
+
"@zag-js/time-picker": "0.65.1",
|
|
126
|
+
"@zag-js/toast": "0.65.1",
|
|
127
|
+
"@zag-js/toggle-group": "0.65.1",
|
|
128
|
+
"@zag-js/tooltip": "0.65.1",
|
|
129
|
+
"@zag-js/tree-view": "0.65.1",
|
|
130
|
+
"@zag-js/types": "0.65.1"
|
|
130
131
|
},
|
|
131
132
|
"devDependencies": {
|
|
132
133
|
"@biomejs/biome": "1.8.3",
|
|
133
134
|
"@release-it/keep-a-changelog": "5.0.0",
|
|
134
135
|
"@solidjs/testing-library": "0.8.9",
|
|
135
|
-
"@storybook/addon-a11y": "8.2.
|
|
136
|
-
"@storybook/docs-tools": "8.2.
|
|
137
|
-
"@storybook/addon-essentials": "8.2.
|
|
136
|
+
"@storybook/addon-a11y": "8.2.9",
|
|
137
|
+
"@storybook/docs-tools": "8.2.9",
|
|
138
|
+
"@storybook/addon-essentials": "8.2.9",
|
|
138
139
|
"@testing-library/dom": "10.4.0",
|
|
139
140
|
"@testing-library/jest-dom": "6.4.8",
|
|
140
141
|
"@testing-library/user-event": "14.5.2",
|
|
141
142
|
"@types/jsdom": "21.1.7",
|
|
142
143
|
"globby": "14.0.2",
|
|
143
144
|
"jsdom": "24.1.1",
|
|
144
|
-
"lucide-solid": "0.
|
|
145
|
+
"lucide-solid": "0.428.0",
|
|
145
146
|
"release-it": "17.6.0",
|
|
146
147
|
"resize-observer-polyfill": "1.5.1",
|
|
147
|
-
"rollup": "4.
|
|
148
|
+
"rollup": "4.21.0",
|
|
148
149
|
"rollup-preset-solid": "2.0.1",
|
|
149
|
-
"solid-js": "1.8.
|
|
150
|
-
"storybook": "8.2.
|
|
150
|
+
"solid-js": "1.8.21",
|
|
151
|
+
"storybook": "8.2.9",
|
|
151
152
|
"storybook-solidjs": "1.0.0-beta.2",
|
|
152
153
|
"storybook-solidjs-vite": "1.0.0-beta.2",
|
|
153
154
|
"typescript": "5.5.4",
|
|
154
|
-
"vite": "5.4.
|
|
155
|
+
"vite": "5.4.2",
|
|
155
156
|
"vite-plugin-solid": "2.10.2",
|
|
156
|
-
"vitest": "2.0.
|
|
157
|
+
"vitest": "2.0.5"
|
|
157
158
|
},
|
|
158
159
|
"peerDependencies": {
|
|
159
160
|
"solid-js": ">=1.6.0"
|