@skeletonlabs/skeleton-react 1.0.0-next.1 → 1.0.0-next.11
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/Accordion/Accordion.d.ts +9 -8
- package/dist/components/Accordion/Accordion.js +47 -68
- package/dist/components/Accordion/types.d.ts +24 -25
- package/dist/components/AppBar/AppBar.d.ts +6 -8
- package/dist/components/AppBar/AppBar.js +28 -32
- package/dist/components/AppBar/types.d.ts +5 -5
- package/dist/components/Avatar/Avatar.d.ts +2 -2
- package/dist/components/Avatar/Avatar.js +21 -7
- package/dist/components/Avatar/types.d.ts +10 -5
- package/dist/components/FileUpload/FileUpload.d.ts +3 -0
- package/dist/components/FileUpload/FileUpload.js +41 -0
- package/dist/components/FileUpload/types.d.ts +73 -0
- package/dist/components/FileUpload/types.js +1 -0
- package/dist/components/Navigation/Navigation.d.ts +11 -0
- package/dist/components/Navigation/Navigation.js +103 -0
- package/dist/components/Navigation/types.d.ts +132 -0
- package/dist/components/Navigation/types.js +2 -0
- package/dist/components/Pagination/Pagination.d.ts +3 -0
- package/dist/components/Pagination/Pagination.js +38 -0
- package/dist/components/Pagination/types.d.ts +54 -0
- package/dist/components/Pagination/types.js +1 -0
- package/dist/components/Progress/Progress.d.ts +2 -2
- package/dist/components/Progress/Progress.js +22 -14
- package/dist/components/Progress/types.d.ts +20 -8
- package/dist/components/ProgressRing/ProgressRing.d.ts +3 -0
- package/dist/components/ProgressRing/ProgressRing.js +31 -0
- package/dist/components/ProgressRing/types.d.ts +53 -0
- package/dist/components/ProgressRing/types.js +1 -0
- package/dist/components/Rating/Rating.d.ts +3 -0
- package/dist/components/Rating/Rating.js +52 -0
- package/dist/components/Rating/types.d.ts +40 -0
- package/dist/components/Rating/types.js +1 -0
- package/dist/components/Segment/Segment.d.ts +6 -0
- package/dist/components/Segment/Segment.js +63 -0
- package/dist/components/Segment/types.d.ts +61 -0
- package/dist/components/Segment/types.js +2 -0
- package/dist/components/Slider/Slider.d.ts +3 -0
- package/dist/components/Slider/Slider.js +43 -0
- package/dist/components/Slider/types.d.ts +72 -0
- package/dist/components/Slider/types.js +1 -0
- package/dist/components/Switch/Switch.d.ts +2 -2
- package/dist/components/Switch/Switch.js +37 -27
- package/dist/components/Switch/types.d.ts +30 -25
- package/dist/components/Tabs/Tabs.d.ts +12 -7
- package/dist/components/Tabs/Tabs.js +65 -99
- package/dist/components/Tabs/types.d.ts +48 -81
- package/dist/components/TagsInput/TagsInput.d.ts +3 -0
- package/dist/components/TagsInput/TagsInput.js +42 -0
- package/dist/components/TagsInput/types.d.ts +44 -0
- package/dist/components/TagsInput/types.js +1 -0
- package/dist/index.d.ts +15 -7
- package/dist/index.js +14 -7
- package/dist/internal/nodes.d.ts +3 -0
- package/dist/internal/nodes.js +4 -0
- package/dist/internal/noop.d.ts +1 -0
- package/dist/internal/noop.js +2 -0
- package/package.json +46 -41
- package/dist/components/Test/Test.d.ts +0 -2
- package/dist/components/Test/Test.js +0 -10
- package/dist/utils/react-compose.d.ts +0 -4
- package/dist/utils/react-compose.js +0 -3
|
@@ -1,99 +1,66 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import * as tabs from '@zag-js/tabs';
|
|
3
|
+
export interface TabsContextState {
|
|
4
|
+
fluid: boolean;
|
|
5
|
+
api: ReturnType<typeof tabs.connect>;
|
|
6
|
+
}
|
|
7
|
+
export interface TabsRootProps extends React.PropsWithChildren, Omit<tabs.Context, 'id' | 'orientation' | 'onValueChange'> {
|
|
8
|
+
/** Set tabs to stretch to fill the available width. */
|
|
9
|
+
fluid?: boolean;
|
|
10
|
+
/** Set base classes for the root element. */
|
|
6
11
|
base?: string;
|
|
7
|
-
/**
|
|
8
|
-
spaceY?: string;
|
|
9
|
-
/** Provide arbitrary CSS classes. */
|
|
12
|
+
/** Provide arbitrary classes for the root element. */
|
|
10
13
|
classes?: string;
|
|
14
|
+
/** Triggers when the value state is changed. */
|
|
15
|
+
onValueChange?: (value: string) => void;
|
|
11
16
|
}
|
|
12
17
|
export interface TabsListProps extends React.PropsWithChildren {
|
|
13
|
-
/**
|
|
18
|
+
/** Set base classes for the list element. */
|
|
14
19
|
base?: string;
|
|
15
|
-
/**
|
|
20
|
+
/** Set justify classes for the list element. */
|
|
16
21
|
justify?: string;
|
|
17
|
-
/**
|
|
18
|
-
gap?: string;
|
|
19
|
-
/** Sets the border styles. */
|
|
22
|
+
/** Set border classes for the list element. */
|
|
20
23
|
border?: string;
|
|
21
|
-
/**
|
|
24
|
+
/** Set margin classes for the list element. */
|
|
25
|
+
margin?: string;
|
|
26
|
+
/** Set gap classes for the list element. */
|
|
27
|
+
gap?: string;
|
|
28
|
+
/** Provide arbitrary classes for the list element. */
|
|
22
29
|
classes?: string;
|
|
23
30
|
}
|
|
24
|
-
export interface TabsControlProps extends React.PropsWithChildren {
|
|
25
|
-
/**
|
|
26
|
-
id?: string;
|
|
27
|
-
/** Provide the tab control name. */
|
|
28
|
-
name: string;
|
|
29
|
-
/** Provide the tab control radio group. */
|
|
30
|
-
group: string;
|
|
31
|
-
/** Provide a hoverable title attribute. */
|
|
32
|
-
title?: string;
|
|
33
|
-
/** Sets the A11y label. */
|
|
34
|
-
label?: string;
|
|
35
|
-
/** Sets ARIA controls value to define which panel this tab controls. */
|
|
36
|
-
controls?: string;
|
|
37
|
-
/** Sets base styles. */
|
|
31
|
+
export interface TabsControlProps extends React.PropsWithChildren, tabs.TriggerProps {
|
|
32
|
+
/** Set base classes for the control element. */
|
|
38
33
|
base?: string;
|
|
39
|
-
/**
|
|
40
|
-
width?: string;
|
|
41
|
-
/** Sets the active control styles. */
|
|
42
|
-
active?: string;
|
|
43
|
-
/** Sets the inactive control styles. */
|
|
44
|
-
inactive?: string;
|
|
45
|
-
/** Sets flex styles. */
|
|
46
|
-
flex?: string;
|
|
47
|
-
/** Sets background styles. */
|
|
48
|
-
background?: string;
|
|
49
|
-
/** Sets border styles. */
|
|
50
|
-
border?: string;
|
|
51
|
-
/** Sets text size styles. */
|
|
52
|
-
text?: string;
|
|
53
|
-
/** Sets padding styles. */
|
|
34
|
+
/** Set padding classes for the control element. */
|
|
54
35
|
padding?: string;
|
|
55
|
-
/**
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
gap?: string;
|
|
59
|
-
/** Sets cursor styles. */
|
|
60
|
-
cursor?: string;
|
|
61
|
-
/** Provide arbitrary CSS classes. */
|
|
36
|
+
/** Set x-axis translate classes for the control element. */
|
|
37
|
+
translateX?: string;
|
|
38
|
+
/** Provide arbitrary classes for the control element. */
|
|
62
39
|
classes?: string;
|
|
63
|
-
/**
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
|
|
40
|
+
/** Set base classes for the label element. */
|
|
41
|
+
labelBase?: string;
|
|
42
|
+
/** Provide arbitrary classes for the label element. */
|
|
43
|
+
labelClasses?: string;
|
|
44
|
+
/** Set inactive classes for the control element. */
|
|
45
|
+
stateInactive?: string;
|
|
46
|
+
/** Set active classes for the control element. */
|
|
47
|
+
stateActive?: string;
|
|
48
|
+
/** Set inactive classes for the label element. */
|
|
49
|
+
stateLabelInactive?: string;
|
|
50
|
+
/** Set active classes for the label element. */
|
|
51
|
+
stateLabelActive?: string;
|
|
52
|
+
/** The lead node for the control element. */
|
|
53
|
+
lead?: ReactNode;
|
|
71
54
|
}
|
|
72
|
-
export interface
|
|
73
|
-
/**
|
|
55
|
+
export interface TabsContentProps extends React.PropsWithChildren {
|
|
56
|
+
/** Set base classes for the panel group element. */
|
|
74
57
|
base?: string;
|
|
75
|
-
/**
|
|
76
|
-
flex?: string;
|
|
77
|
-
/** Sets gap styles. */
|
|
78
|
-
gap?: string;
|
|
79
|
-
/** Sets background styles. */
|
|
80
|
-
background?: string;
|
|
81
|
-
/** Sets padding styles. */
|
|
82
|
-
padding?: string;
|
|
83
|
-
/** Sets rounded styles. */
|
|
84
|
-
rounded?: string;
|
|
85
|
-
/** Provide arbitrary CSS classes. */
|
|
58
|
+
/** Provide arbitrary classes for the panel group element. */
|
|
86
59
|
classes?: string;
|
|
87
60
|
}
|
|
88
|
-
export interface
|
|
89
|
-
/**
|
|
90
|
-
|
|
91
|
-
/** Provide the
|
|
92
|
-
value: string;
|
|
93
|
-
/** Provide the tab control radio group. */
|
|
94
|
-
group: string;
|
|
95
|
-
/** Sets the A11y labelledby. */
|
|
96
|
-
labelledBy?: string;
|
|
97
|
-
/** Provide arbitrary CSS classes. */
|
|
61
|
+
export interface TabsPanelProps extends React.PropsWithChildren, tabs.ContentProps {
|
|
62
|
+
/** Set base classes for the panel element. */
|
|
63
|
+
base?: string;
|
|
64
|
+
/** Provide arbitrary classes for the panel element. */
|
|
98
65
|
classes?: string;
|
|
99
66
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useId } from 'react';
|
|
4
|
+
import * as tagsInput from '@zag-js/tags-input';
|
|
5
|
+
import { useMachine, normalizeProps } from '@zag-js/react';
|
|
6
|
+
import { noop } from '../../internal/noop.js';
|
|
7
|
+
export const TagsInput = ({ placeholder = '',
|
|
8
|
+
// Root
|
|
9
|
+
base = 'grid input', gap = 'gap-2', padding = 'p-3', classes = '',
|
|
10
|
+
// Input: Add
|
|
11
|
+
inputBase = 'input-ghost', inputClasses = '',
|
|
12
|
+
// Tag List
|
|
13
|
+
tagListBase = 'flex gap-2', tagListClasses = '',
|
|
14
|
+
// Tag
|
|
15
|
+
tagBase = 'chip', tagBackground = 'preset-filled', tagClasses = '',
|
|
16
|
+
// Input: Edit
|
|
17
|
+
inputEditBase = 'chip-input -translate-y-0.25', tagEditBackground = 'preset-outlined-surface-200-800', inputEditClasses,
|
|
18
|
+
// Delete Button
|
|
19
|
+
buttonDeleteBase = '', buttonDeleteClasses = '',
|
|
20
|
+
// Snippets
|
|
21
|
+
buttonDelete,
|
|
22
|
+
// State
|
|
23
|
+
stateDisabled = 'disabled',
|
|
24
|
+
// Events
|
|
25
|
+
onValueChange = noop,
|
|
26
|
+
// Zag
|
|
27
|
+
...zagProps }) => {
|
|
28
|
+
// Zag
|
|
29
|
+
const [state, send] = useMachine(tagsInput.machine({
|
|
30
|
+
id: useId(),
|
|
31
|
+
onValueChange: (details) => onValueChange(details.value)
|
|
32
|
+
}), { context: { ...zagProps } });
|
|
33
|
+
const api = tagsInput.connect(state, send, normalizeProps);
|
|
34
|
+
// Reactive
|
|
35
|
+
const rxDisabled = state.context.disabled ? stateDisabled : '';
|
|
36
|
+
return (_jsxs("div", { ...api.getRootProps(), className: `${base} ${padding} ${gap} ${rxDisabled} ${classes}`, "data-testid": "tags", children: [_jsx("input", { ...api.getInputProps(), placeholder: placeholder, className: `${inputBase} ${inputClasses}`, "data-testid": "tags-input-add" }), api.value.length > 0 && (_jsx("div", { className: `${tagListBase} ${tagListClasses}`, "data-testid": "tags-list", children: api.value.map((value, index) => {
|
|
37
|
+
const itemState = api.getItemState({ index, value });
|
|
38
|
+
return (
|
|
39
|
+
// Tag
|
|
40
|
+
_jsxs("div", { ...api.getItemProps({ value, index }), "data-testid": "tags-tag", children: [_jsxs("div", { ...api.getItemPreviewProps({ index, value }), className: `${tagBase} ${tagBackground} ${tagClasses}`, style: { display: itemState.editing ? 'none' : '' }, "data-testid": "tag-display", children: [_jsx("span", { children: value }), _jsx("button", { ...api.getItemDeleteTriggerProps({ index, value }), className: `${buttonDeleteBase} ${buttonDeleteClasses}`, "data-testid": "tag-delete", children: buttonDelete ?? _jsx("strong", { children: "\u00D7" }) })] }), _jsx("input", { ...api.getItemInputProps({ index, value }), className: `${inputEditBase} ${tagEditBackground} ${inputEditClasses}`, style: { display: itemState.editing ? '' : 'none' }, "data-testid": "tags-input-edit" })] }, value));
|
|
41
|
+
}) }))] }));
|
|
42
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import * as tagsInput from '@zag-js/tags-input';
|
|
3
|
+
export interface TagsInputProps extends Omit<tagsInput.Context, 'id' | 'onValueChange'> {
|
|
4
|
+
/** Set the add tag input placeholder. */
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
/** Set base classes for the root. */
|
|
7
|
+
base?: string;
|
|
8
|
+
/** Set gap classes for the root. */
|
|
9
|
+
gap?: string;
|
|
10
|
+
/** Set padding classes for the root. */
|
|
11
|
+
padding?: string;
|
|
12
|
+
/** Provide arbitrary classes to the root. */
|
|
13
|
+
classes?: string;
|
|
14
|
+
/** Set base classes for the add tag input. */
|
|
15
|
+
inputBase?: string;
|
|
16
|
+
/** Provide arbitrary classes to the add tag input. */
|
|
17
|
+
inputClasses?: string;
|
|
18
|
+
/** Set base classes for the tag list. */
|
|
19
|
+
tagListBase?: string;
|
|
20
|
+
/** Provide arbitrary classes to the tag list. */
|
|
21
|
+
tagListClasses?: string;
|
|
22
|
+
/** Set base classes for each tag. */
|
|
23
|
+
tagBase?: string;
|
|
24
|
+
/** Set background classes for each tag. */
|
|
25
|
+
tagBackground?: string;
|
|
26
|
+
/** Provide arbitrary classes to each tag. */
|
|
27
|
+
tagClasses?: string;
|
|
28
|
+
/** Set base classes for the edit tag input. */
|
|
29
|
+
inputEditBase?: string;
|
|
30
|
+
/** Set background classes for the edit tag input. */
|
|
31
|
+
tagEditBackground?: string;
|
|
32
|
+
/** Provide arbitrary classes to the edit tag input. */
|
|
33
|
+
inputEditClasses?: string;
|
|
34
|
+
/** Set base classes for the delete button. */
|
|
35
|
+
buttonDeleteBase?: string;
|
|
36
|
+
/** Provide arbitrary classes to the delete button. */
|
|
37
|
+
buttonDeleteClasses?: string;
|
|
38
|
+
/** The delete button label snippet. */
|
|
39
|
+
buttonDelete?: ReactNode;
|
|
40
|
+
/** Set the component disabled state. */
|
|
41
|
+
stateDisabled?: string;
|
|
42
|
+
/** Triggers when the switch is toggled. */
|
|
43
|
+
onValueChange?: (value: string[]) => void;
|
|
44
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
1
|
+
export { Accordion } from './components/Accordion/Accordion.js';
|
|
2
|
+
export { Avatar } from './components/Avatar/Avatar.js';
|
|
3
|
+
export { AppBar } from './components/AppBar/AppBar.js';
|
|
4
|
+
export { FileUpload } from './components/FileUpload/FileUpload.js';
|
|
5
|
+
export { Navigation } from './components/Navigation/Navigation.js';
|
|
6
|
+
export { Pagination } from './components/Pagination/Pagination.js';
|
|
7
|
+
export { Progress } from './components/Progress/Progress.js';
|
|
8
|
+
export { ProgressRing } from './components/ProgressRing/ProgressRing.js';
|
|
9
|
+
export { Rating } from './components/Rating/Rating.js';
|
|
10
|
+
export { Segment } from './components/Segment/Segment.js';
|
|
11
|
+
export { Slider } from './components/Slider/Slider.js';
|
|
12
|
+
export { Switch } from './components/Switch/Switch.js';
|
|
13
|
+
export { Tabs } from './components/Tabs/Tabs.js';
|
|
14
|
+
export type { FileUploadApi } from './components/FileUpload/types.js';
|
|
15
|
+
export { TagsInput } from './components/TagsInput/TagsInput.js';
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
export { default as TestReact } from "./components/Test/Test.js";
|
|
2
1
|
// Components
|
|
3
|
-
export { Accordion } from
|
|
4
|
-
export { Avatar } from
|
|
5
|
-
export { AppBar
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
2
|
+
export { Accordion } from './components/Accordion/Accordion.js';
|
|
3
|
+
export { Avatar } from './components/Avatar/Avatar.js';
|
|
4
|
+
export { AppBar } from './components/AppBar/AppBar.js';
|
|
5
|
+
export { FileUpload } from './components/FileUpload/FileUpload.js';
|
|
6
|
+
export { Navigation } from './components/Navigation/Navigation.js';
|
|
7
|
+
export { Pagination } from './components/Pagination/Pagination.js';
|
|
8
|
+
export { Progress } from './components/Progress/Progress.js';
|
|
9
|
+
export { ProgressRing } from './components/ProgressRing/ProgressRing.js';
|
|
10
|
+
export { Rating } from './components/Rating/Rating.js';
|
|
11
|
+
export { Segment } from './components/Segment/Segment.js';
|
|
12
|
+
export { Slider } from './components/Slider/Slider.js';
|
|
13
|
+
export { Switch } from './components/Switch/Switch.js';
|
|
14
|
+
export { Tabs } from './components/Tabs/Tabs.js';
|
|
15
|
+
export { TagsInput } from './components/TagsInput/TagsInput.js';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
export const starEmpty = (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: "1.5", stroke: "currentColor", height: "24", width: "24", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M11.48 3.499a.562.562 0 0 1 1.04 0l2.125 5.111a.563.563 0 0 0 .475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 0 0-.182.557l1.285 5.385a.562.562 0 0 1-.84.61l-4.725-2.885a.562.562 0 0 0-.586 0L6.982 20.54a.562.562 0 0 1-.84-.61l1.285-5.386a.562.562 0 0 0-.182-.557l-4.204-3.602a.562.562 0 0 1 .321-.988l5.518-.442a.563.563 0 0 0 .475-.345L11.48 3.5Z" }) }));
|
|
3
|
+
export const starHalf = (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", height: "24", width: "24", children: [_jsx("defs", { children: _jsxs("linearGradient", { id: "half-fill", children: [_jsx("stop", { offset: "50%", stopColor: "currentColor" }), _jsx("stop", { offset: "50%", stopColor: "transparent" })] }) }), _jsx("path", { fill: "url(#half-fill)", d: "M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.006 5.404.434c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.434 2.082-5.005Z" })] }));
|
|
4
|
+
export const starFull = (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", height: "24", width: "24", children: _jsx("path", { fillRule: "evenodd", d: "M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.006 5.404.434c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.434 2.082-5.005Z", clipRule: "evenodd" }) }));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function noop(): void;
|
package/package.json
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skeletonlabs/skeleton-react",
|
|
3
|
-
"version": "1.0.0-next.
|
|
3
|
+
"version": "1.0.0-next.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
9
9
|
"default": "./dist/index.js"
|
|
10
|
+
},
|
|
11
|
+
"./schemas": "./src/lib/schemas.ts"
|
|
12
|
+
},
|
|
13
|
+
"typesVersions": {
|
|
14
|
+
">4.0": {
|
|
15
|
+
"index.d.ts": [
|
|
16
|
+
"./dist/index.d.ts"
|
|
17
|
+
]
|
|
10
18
|
}
|
|
11
19
|
},
|
|
12
20
|
"files": [
|
|
@@ -21,55 +29,52 @@
|
|
|
21
29
|
"!./dist/schemas.d.ts"
|
|
22
30
|
],
|
|
23
31
|
"dependencies": {
|
|
24
|
-
"
|
|
25
|
-
"
|
|
32
|
+
"@zag-js/accordion": "^0.75.0",
|
|
33
|
+
"@zag-js/avatar": "^0.75.0",
|
|
34
|
+
"@zag-js/file-upload": "^0.75.0",
|
|
35
|
+
"@zag-js/pagination": "^0.75.0",
|
|
36
|
+
"@zag-js/progress": "^0.75.0",
|
|
37
|
+
"@zag-js/radio-group": "^0.75.0",
|
|
38
|
+
"@zag-js/rating-group": "^0.75.0",
|
|
39
|
+
"@zag-js/react": "^0.75.0",
|
|
40
|
+
"@zag-js/slider": "^0.75.0",
|
|
41
|
+
"@zag-js/switch": "^0.75.0",
|
|
42
|
+
"@zag-js/tabs": "^0.75.0",
|
|
43
|
+
"@zag-js/tags-input": "^0.75.0"
|
|
44
|
+
},
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"react": "^18.0.0",
|
|
47
|
+
"react-dom": "^18.0.0"
|
|
26
48
|
},
|
|
27
49
|
"devDependencies": {
|
|
28
|
-
"@tailwindcss/forms": "^0.5.
|
|
29
|
-
"@testing-library/jest-dom": "^6.
|
|
30
|
-
"@testing-library/react": "^
|
|
50
|
+
"@tailwindcss/forms": "^0.5.9",
|
|
51
|
+
"@testing-library/jest-dom": "^6.6.2",
|
|
52
|
+
"@testing-library/react": "^16.0.1",
|
|
31
53
|
"@testing-library/user-event": "^14.5.2",
|
|
32
|
-
"@types/react": "^18.
|
|
33
|
-
"@types/react-dom": "^18.
|
|
34
|
-
"@
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"tailwindcss": "^3.4.3",
|
|
46
|
-
"typescript": "^5.4.4",
|
|
47
|
-
"typescript-json-schema": "^0.63.0",
|
|
48
|
-
"vite": "^5.2.8",
|
|
54
|
+
"@types/react": "^18.3.12",
|
|
55
|
+
"@types/react-dom": "^18.3.1",
|
|
56
|
+
"@vitejs/plugin-react": "^4.3.3",
|
|
57
|
+
"autoprefixer": "^10.4.20",
|
|
58
|
+
"jsdom": "^25.0.1",
|
|
59
|
+
"lucide-react": "^0.453.0",
|
|
60
|
+
"postcss": "^8.4.47",
|
|
61
|
+
"react": "^18.3.1",
|
|
62
|
+
"react-dom": "^18.3.1",
|
|
63
|
+
"react-router-dom": "^6.27.0",
|
|
64
|
+
"tailwindcss": "^3.4.14",
|
|
65
|
+
"typescript": "^5.6.3",
|
|
66
|
+
"vite": "^5.4.10",
|
|
49
67
|
"vite-plugin-remix-router": "^2.0.0",
|
|
50
|
-
"vitest": "^1.
|
|
51
|
-
"@skeletonlabs/skeleton": "3.0.0-next.
|
|
52
|
-
"vite-plugin-tw-plugin-watcher": "0.0.0"
|
|
53
|
-
},
|
|
54
|
-
"peerDependencies": {
|
|
55
|
-
"framer-motion": "^11.0.24"
|
|
68
|
+
"vitest": "^2.1.3",
|
|
69
|
+
"@skeletonlabs/skeleton": "3.0.0-next.9",
|
|
70
|
+
"vite-plugin-tw-plugin-watcher": "0.0.1-next.0"
|
|
56
71
|
},
|
|
57
72
|
"scripts": {
|
|
58
73
|
"dev": "vite",
|
|
59
74
|
"build": "vite build",
|
|
75
|
+
"preview": "vite preview",
|
|
60
76
|
"package": "tsc --project tsconfig.package.json",
|
|
61
77
|
"package:watch": "tsc --project tsconfig.package.json --watch --preserveWatchOutput",
|
|
62
|
-
"
|
|
63
|
-
"preview": "vite preview",
|
|
64
|
-
"test": "vitest run",
|
|
65
|
-
"test:watch": "vitest",
|
|
66
|
-
"schema": "node ./scripts/generator.js"
|
|
67
|
-
},
|
|
68
|
-
"typesVersions": {
|
|
69
|
-
">4.0": {
|
|
70
|
-
"index.d.ts": [
|
|
71
|
-
"./dist/index.d.ts"
|
|
72
|
-
]
|
|
73
|
-
}
|
|
78
|
+
"test": "vitest"
|
|
74
79
|
}
|
|
75
80
|
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { jsxs as _jsxs, Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useState } from "react";
|
|
3
|
-
function Test() {
|
|
4
|
-
const [count, setCount] = useState(0);
|
|
5
|
-
function countUp() {
|
|
6
|
-
setCount((count) => count + 1);
|
|
7
|
-
}
|
|
8
|
-
return (_jsx(_Fragment, { children: _jsxs("button", { className: "btn preset-filled", onClick: countUp, children: ["Count is ", count] }) }));
|
|
9
|
-
}
|
|
10
|
-
export default Test;
|