@skeletonlabs/skeleton-react 1.0.0-next.3 → 1.0.0-next.4
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 +38 -59
- package/dist/components/Accordion/types.d.ts +23 -24
- package/dist/components/Avatar/Avatar.js +17 -3
- package/dist/components/Avatar/types.d.ts +10 -5
- package/dist/components/Navigation/types.d.ts +0 -1
- package/dist/components/Progress/Progress.d.ts +2 -2
- package/dist/components/Progress/Progress.js +21 -14
- package/dist/components/Progress/types.d.ts +20 -8
- package/dist/components/ProgressRing/ProgressRing.d.ts +2 -2
- package/dist/components/ProgressRing/ProgressRing.js +18 -24
- package/dist/components/ProgressRing/types.d.ts +8 -12
- package/dist/components/Rating/Rating.d.ts +3 -3
- package/dist/components/Rating/Rating.js +50 -79
- package/dist/components/Rating/types.d.ts +35 -54
- package/dist/components/Segment/Segment.d.ts +4 -4
- package/dist/components/Segment/Segment.js +41 -39
- package/dist/components/Segment/types.d.ts +28 -25
- package/dist/components/Switch/Switch.js +31 -22
- package/dist/components/Switch/types.d.ts +27 -24
- package/dist/components/Tabs/Tabs.d.ts +12 -7
- package/dist/components/Tabs/Tabs.js +61 -102
- package/dist/components/Tabs/types.d.ts +48 -85
- 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 +24 -19
|
@@ -1,128 +1,87 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import { createContext, useContext, useId } from 'react';
|
|
4
|
+
import * as tabs from '@zag-js/tabs';
|
|
5
|
+
import { useMachine, normalizeProps } from '@zag-js/react';
|
|
6
|
+
import { noop } from '../../internal/noop.js';
|
|
7
|
+
// Context ---
|
|
8
|
+
export const TabsContext = createContext({
|
|
9
|
+
fluid: false,
|
|
10
|
+
api: {}
|
|
11
|
+
});
|
|
12
|
+
// Components ---
|
|
13
|
+
const TabsRoot = ({ fluid = false,
|
|
6
14
|
// Root
|
|
7
|
-
base = 'w-full',
|
|
15
|
+
base = 'w-full', classes = '',
|
|
16
|
+
// Events
|
|
17
|
+
onValueChange = noop,
|
|
8
18
|
// Children
|
|
9
|
-
children
|
|
10
|
-
|
|
19
|
+
children,
|
|
20
|
+
// Zag
|
|
21
|
+
...zagProps }) => {
|
|
22
|
+
// Zag
|
|
23
|
+
const [state, send] = useMachine(tabs.machine({
|
|
24
|
+
id: useId(),
|
|
25
|
+
onValueChange: (details) => onValueChange(details.value)
|
|
26
|
+
}), { context: zagProps });
|
|
27
|
+
const api = tabs.connect(state, send, normalizeProps);
|
|
28
|
+
return (_jsx("div", { ...api.getRootProps(), className: `${base} ${classes}`, "data-testid": "tabs", children: _jsx(TabsContext.Provider, { value: { fluid, api }, children: children }) }));
|
|
11
29
|
};
|
|
12
|
-
/** The list of `<Tab.Control>` components. */
|
|
13
30
|
const TabsList = ({
|
|
14
31
|
// Root
|
|
15
|
-
base = 'flex', justify = 'justify-start',
|
|
32
|
+
base = 'flex', justify = 'justify-start', border = 'border-b border-surface-200-800', margin = 'mb-4', gap = 'gap-2', classes = '',
|
|
16
33
|
// Children
|
|
17
34
|
children }) => {
|
|
18
|
-
|
|
35
|
+
const ctx = useContext(TabsContext);
|
|
36
|
+
return (_jsx("div", { ...ctx.api.getListProps(), className: `${base} ${justify} ${border} ${margin} ${gap} ${classes}`, "data-testid": "tabs-list", children: children }));
|
|
19
37
|
};
|
|
20
|
-
|
|
21
|
-
const TabsControl = ({ id = '', name, group, title = '',
|
|
22
|
-
// A11y
|
|
23
|
-
label = '', controls = '',
|
|
38
|
+
const TabsControl = ({
|
|
24
39
|
// Root
|
|
25
|
-
base = '
|
|
26
|
-
//
|
|
27
|
-
|
|
28
|
-
//
|
|
29
|
-
|
|
40
|
+
base = 'border-b border-transparent', padding = 'pb-2', translateX = 'translate-y-[1px]', classes = '',
|
|
41
|
+
// Label
|
|
42
|
+
labelBase = 'btn hover:preset-tonal-primary', labelClasses = '',
|
|
43
|
+
// State
|
|
44
|
+
stateInactive = '[&:not(:hover)]:opacity-50', stateActive = 'border-surface-950-50 opacity-100', stateLabelInactive = '', stateLabelActive = '',
|
|
45
|
+
// Nodes
|
|
46
|
+
lead,
|
|
30
47
|
// Children
|
|
31
|
-
children
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
const elemInputRef = useRef(null);
|
|
44
|
-
function onKeyDownHandler(event) {
|
|
45
|
-
// Fire Event Handler
|
|
46
|
-
onKeydown(event);
|
|
47
|
-
// If select key events
|
|
48
|
-
if (!['ArrowRight', 'ArrowLeft', 'Home', 'End'].includes(event.code))
|
|
49
|
-
return;
|
|
50
|
-
const elemInput = elemInputRef.current;
|
|
51
|
-
if (!elemInput)
|
|
52
|
-
return;
|
|
53
|
-
// Prevent default behavior
|
|
54
|
-
event.preventDefault();
|
|
55
|
-
// Find the closest tab/tablelist
|
|
56
|
-
const currTab = elemInput.closest('[role="tab"]');
|
|
57
|
-
if (!currTab)
|
|
58
|
-
return;
|
|
59
|
-
const tabList = elemInput.closest('[role="tablist"]');
|
|
60
|
-
if (!tabList)
|
|
61
|
-
return;
|
|
62
|
-
// Get RTL mode
|
|
63
|
-
const isRTL = getComputedStyle(tabList).direction === 'rtl';
|
|
64
|
-
// Get list of tab elements
|
|
65
|
-
const tabs = Array.from(tabList.querySelectorAll('[role="tab"]'));
|
|
66
|
-
// Get a reference to the current tab
|
|
67
|
-
const currIndex = tabs.indexOf(currTab);
|
|
68
|
-
// Determine the index of the next tab
|
|
69
|
-
let nextIndex = -1;
|
|
70
|
-
switch (event.code) {
|
|
71
|
-
case 'ArrowRight':
|
|
72
|
-
if (isRTL) {
|
|
73
|
-
nextIndex = currIndex - 1 < 0 ? tabs.length - 1 : currIndex - 1;
|
|
74
|
-
break;
|
|
75
|
-
}
|
|
76
|
-
nextIndex = currIndex + 1 >= tabs.length ? 0 : currIndex + 1;
|
|
77
|
-
break;
|
|
78
|
-
case 'ArrowLeft':
|
|
79
|
-
if (isRTL) {
|
|
80
|
-
nextIndex = currIndex + 1 >= tabs.length ? 0 : currIndex + 1;
|
|
81
|
-
break;
|
|
82
|
-
}
|
|
83
|
-
nextIndex = currIndex - 1 < 0 ? tabs.length - 1 : currIndex - 1;
|
|
84
|
-
break;
|
|
85
|
-
case 'Home':
|
|
86
|
-
nextIndex = 0;
|
|
87
|
-
break;
|
|
88
|
-
case 'End':
|
|
89
|
-
nextIndex = tabs.length - 1;
|
|
90
|
-
break;
|
|
91
|
-
}
|
|
92
|
-
if (nextIndex < 0)
|
|
93
|
-
return;
|
|
94
|
-
// Set Active Tab
|
|
95
|
-
const nextTab = tabs[nextIndex];
|
|
96
|
-
const nextTabInput = nextTab?.querySelector('input');
|
|
97
|
-
if (nextTabInput) {
|
|
98
|
-
nextTabInput.click();
|
|
99
|
-
nextTab.focus();
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
return (_jsx("label", { id: id, className: `${base} ${width} ${rxActive} ${flex} ${background} ${border} ${text} ${padding} ${rounded} ${gap} ${cursor} ${classes}`, "aria-label": label, title: title, children: _jsxs("div", { className: "size-full", role: "tab", "aria-controls": controls, "aria-selected": selected, "data-testid": "tabs-control", tabIndex: selected ? 0 : -1, onKeyDown: onKeyDownHandler, onKeyUp: onKeyup, children: [_jsx("div", { className: "h-0 w-0 flex-none overflow-hidden", children: _jsx("input", { ref: elemInputRef, type: "radio", name: name, value: name, checked: selected, onChange: handleOnChange, onClick: onClick, tabIndex: -1 }) }), children && (_jsx("div", { className: `${contentBase} ${contentFlex} ${contentGap} ${contentBg} ${contentPadding} ${contentRounded} ${contentClasses}`, children: children }))] }) }));
|
|
48
|
+
children,
|
|
49
|
+
// Zag
|
|
50
|
+
...zagProps }) => {
|
|
51
|
+
const ctx = useContext(TabsContext);
|
|
52
|
+
const state = ctx.api.getTriggerState(zagProps);
|
|
53
|
+
// Reactive
|
|
54
|
+
const rxActive = state.selected ? stateActive : stateInactive;
|
|
55
|
+
const rxLabelActive = state.selected ? stateLabelActive : stateLabelInactive;
|
|
56
|
+
// Styles
|
|
57
|
+
const commonStyles = { width: ctx.fluid ? '100%' : '' };
|
|
58
|
+
return (_jsx("button", { ...ctx.api.getTriggerProps(zagProps), className: `${base} ${padding} ${translateX} ${rxActive} ${classes}`, style: commonStyles, "data-testid": "tabs-control", children: _jsxs("div", { className: `${labelBase} ${rxLabelActive} ${labelClasses}`, style: commonStyles, "data-testid": "tabs-control-label", children: [lead && _jsx("span", { "data-testid": "tabs-control-lead", children: lead }), _jsx("span", { "data-testid": "tabs-control-children", children: children })] }) }));
|
|
103
59
|
};
|
|
104
|
-
|
|
105
|
-
const TabPanels = ({
|
|
60
|
+
const TabsContent = ({
|
|
106
61
|
// Root
|
|
107
62
|
base = '', classes = '',
|
|
108
63
|
// Children
|
|
109
64
|
children }) => {
|
|
110
|
-
return _jsx("div", { className: `${base} ${classes}`, children: children });
|
|
65
|
+
return (_jsx("div", { className: `${base} ${classes}`, "data-testid": "tabs-content", children: children }));
|
|
111
66
|
};
|
|
112
|
-
|
|
113
|
-
const TabsPanel = ({ id = '', value, group,
|
|
114
|
-
// A11y
|
|
115
|
-
labelledBy,
|
|
67
|
+
const TabsPanel = ({
|
|
116
68
|
// Root
|
|
117
|
-
classes = '',
|
|
69
|
+
base = '', classes = '',
|
|
118
70
|
// Children
|
|
119
|
-
children
|
|
120
|
-
|
|
121
|
-
|
|
71
|
+
children,
|
|
72
|
+
// Zag
|
|
73
|
+
...zagProps }) => {
|
|
74
|
+
const ctx = useContext(TabsContext);
|
|
75
|
+
return (_jsx("div", { ...ctx.api.getContentProps(zagProps), className: `${base} ${classes}`, "data-testid": "tabs-panel", children: children }));
|
|
122
76
|
};
|
|
77
|
+
// Export ---
|
|
123
78
|
export const Tabs = Object.assign(TabsRoot, {
|
|
79
|
+
/** A group of tab controls. */
|
|
124
80
|
List: TabsList,
|
|
81
|
+
/** An individual tab control. */
|
|
125
82
|
Control: TabsControl,
|
|
126
|
-
|
|
83
|
+
/** A group of tab panels. */
|
|
84
|
+
Content: TabsContent,
|
|
85
|
+
/** An individual tab panel. */
|
|
127
86
|
Panel: TabsPanel
|
|
128
87
|
});
|
|
@@ -1,103 +1,66 @@
|
|
|
1
|
-
import React from 'react';
|
|
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
|
-
|
|
71
|
-
/**
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
|
|
77
|
-
/** Triggers on Tab Control click. */
|
|
78
|
-
onClick?: (event: React.MouseEvent<HTMLInputElement>) => void;
|
|
79
|
-
/** Triggers on Tab Control key down. */
|
|
80
|
-
onKeydown?: (event: React.KeyboardEvent<HTMLDivElement>) => void;
|
|
81
|
-
/** Triggers on Tab Control key up. */
|
|
82
|
-
onKeyup?: (event: React.KeyboardEvent<HTMLDivElement>) => void;
|
|
83
|
-
/** Triggers on Tab Control group change. */
|
|
84
|
-
onChange?: (group: string) => void;
|
|
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;
|
|
85
54
|
}
|
|
86
|
-
export interface
|
|
87
|
-
/**
|
|
55
|
+
export interface TabsContentProps extends React.PropsWithChildren {
|
|
56
|
+
/** Set base classes for the panel group element. */
|
|
88
57
|
base?: string;
|
|
89
|
-
/** Provide arbitrary
|
|
58
|
+
/** Provide arbitrary classes for the panel group element. */
|
|
90
59
|
classes?: string;
|
|
91
60
|
}
|
|
92
|
-
export interface TabsPanelProps extends React.PropsWithChildren {
|
|
93
|
-
/**
|
|
94
|
-
|
|
95
|
-
/** Provide the
|
|
96
|
-
value: string;
|
|
97
|
-
/** Provide the tab control radio group. */
|
|
98
|
-
group: string;
|
|
99
|
-
/** Sets the A11y labelledby. */
|
|
100
|
-
labelledBy?: string;
|
|
101
|
-
/** 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. */
|
|
102
65
|
classes?: string;
|
|
103
66
|
}
|
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skeletonlabs/skeleton-react",
|
|
3
|
-
"version": "1.0.0-next.
|
|
3
|
+
"version": "1.0.0-next.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -29,34 +29,39 @@
|
|
|
29
29
|
"!./dist/schemas.d.ts"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"react": "^18.
|
|
33
|
-
"react-dom": "^18.
|
|
32
|
+
"react": "^18.3.1",
|
|
33
|
+
"react-dom": "^18.3.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@tailwindcss/forms": "^0.5.7",
|
|
37
|
-
"@testing-library/jest-dom": "^6.4.
|
|
38
|
-
"@testing-library/react": "^14.
|
|
37
|
+
"@testing-library/jest-dom": "^6.4.7",
|
|
38
|
+
"@testing-library/react": "^14.3.1",
|
|
39
39
|
"@testing-library/user-event": "^14.5.2",
|
|
40
|
-
"@types/react": "^18.
|
|
41
|
-
"@types/react-dom": "^18.
|
|
42
|
-
"@vitejs/plugin-react": "^4.
|
|
40
|
+
"@types/react": "^18.3.3",
|
|
41
|
+
"@types/react-dom": "^18.3.0",
|
|
42
|
+
"@vitejs/plugin-react": "^4.3.1",
|
|
43
|
+
"@zag-js/accordion": "^0.65.0",
|
|
44
|
+
"@zag-js/avatar": "^0.65.0",
|
|
45
|
+
"@zag-js/progress": "^0.65.0",
|
|
46
|
+
"@zag-js/radio-group": "^0.65.0",
|
|
47
|
+
"@zag-js/rating-group": "^0.65.0",
|
|
48
|
+
"@zag-js/react": "^0.65.0",
|
|
49
|
+
"@zag-js/switch": "^0.65.0",
|
|
50
|
+
"@zag-js/tabs": "^0.65.0",
|
|
43
51
|
"autoprefixer": "^10.4.19",
|
|
44
|
-
"jsdom": "^24.
|
|
52
|
+
"jsdom": "^24.1.1",
|
|
45
53
|
"lucide-react": "^0.341.0",
|
|
46
|
-
"postcss": "^8.4.
|
|
47
|
-
"react-router-dom": "^6.
|
|
48
|
-
"tailwindcss": "^3.4.
|
|
49
|
-
"typescript": "^5.
|
|
54
|
+
"postcss": "^8.4.39",
|
|
55
|
+
"react-router-dom": "^6.25.1",
|
|
56
|
+
"tailwindcss": "^3.4.6",
|
|
57
|
+
"typescript": "^5.5.3",
|
|
50
58
|
"typescript-json-schema": "^0.63.0",
|
|
51
|
-
"vite": "^5.
|
|
59
|
+
"vite": "^5.3.4",
|
|
52
60
|
"vite-plugin-remix-router": "^2.0.0",
|
|
53
|
-
"vitest": "^1.
|
|
54
|
-
"@skeletonlabs/skeleton": "3.0.0-next.
|
|
61
|
+
"vitest": "^1.6.0",
|
|
62
|
+
"@skeletonlabs/skeleton": "3.0.0-next.3",
|
|
55
63
|
"vite-plugin-tw-plugin-watcher": "0.0.1-next.0"
|
|
56
64
|
},
|
|
57
|
-
"peerDependencies": {
|
|
58
|
-
"framer-motion": "^11.0.24"
|
|
59
|
-
},
|
|
60
65
|
"scripts": {
|
|
61
66
|
"dev": "vite",
|
|
62
67
|
"build": "vite build",
|