@skeletonlabs/skeleton-react 1.0.0-next.3 → 1.0.0-next.5

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.
Files changed (34) hide show
  1. package/dist/components/Accordion/Accordion.d.ts +9 -8
  2. package/dist/components/Accordion/Accordion.js +38 -59
  3. package/dist/components/Accordion/types.d.ts +23 -24
  4. package/dist/components/AppBar/AppBar.js +5 -5
  5. package/dist/components/Avatar/Avatar.js +17 -3
  6. package/dist/components/Avatar/types.d.ts +10 -5
  7. package/dist/components/Navigation/Navigation.js +2 -2
  8. package/dist/components/Navigation/types.d.ts +0 -1
  9. package/dist/components/Progress/Progress.d.ts +2 -2
  10. package/dist/components/Progress/Progress.js +21 -14
  11. package/dist/components/Progress/types.d.ts +20 -8
  12. package/dist/components/ProgressRing/ProgressRing.d.ts +2 -2
  13. package/dist/components/ProgressRing/ProgressRing.js +18 -24
  14. package/dist/components/ProgressRing/types.d.ts +8 -12
  15. package/dist/components/Rating/Rating.d.ts +3 -3
  16. package/dist/components/Rating/Rating.js +50 -79
  17. package/dist/components/Rating/types.d.ts +35 -54
  18. package/dist/components/Segment/Segment.d.ts +4 -4
  19. package/dist/components/Segment/Segment.js +41 -39
  20. package/dist/components/Segment/types.d.ts +28 -25
  21. package/dist/components/Switch/Switch.js +31 -22
  22. package/dist/components/Switch/types.d.ts +27 -24
  23. package/dist/components/Tabs/Tabs.d.ts +12 -7
  24. package/dist/components/Tabs/Tabs.js +61 -102
  25. package/dist/components/Tabs/types.d.ts +48 -85
  26. package/dist/index.d.ts +0 -1
  27. package/dist/index.js +0 -1
  28. package/dist/internal/nodes.d.ts +3 -0
  29. package/dist/internal/nodes.js +4 -0
  30. package/dist/internal/noop.d.ts +1 -0
  31. package/dist/internal/noop.js +2 -0
  32. package/package.json +24 -19
  33. package/dist/components/Test/Test.d.ts +0 -2
  34. package/dist/components/Test/Test.js +0 -10
@@ -1,128 +1,87 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { useEffect, useRef, useState } from 'react';
4
- /** The root Tab component. */
5
- const TabsRoot = ({ id = '',
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', spaceY = 'space-y-4', classes = '',
15
+ base = 'w-full', classes = '',
16
+ // Events
17
+ onValueChange = noop,
8
18
  // Children
9
- children }) => {
10
- return (_jsx("div", { id: id, className: `${base} ${spaceY} ${classes}`, "data-testid": "tabs", children: children }));
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', gap = 'gap-2', border = 'border-b border-surface-200-800', classes = '',
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
- return (_jsx("div", { className: `${base} ${gap} ${justify} ${border} ${classes}`, role: "tablist", children: children }));
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
- /** The individual Tab control component. */
21
- const TabsControl = ({ id = '', name, group, title = '',
22
- // A11y
23
- label = '', controls = '',
38
+ const TabsControl = ({
24
39
  // Root
25
- base = 'group', width = '', active = 'text-surface-950-50 border-surface-950-50', inactive = 'text-surface-600-400 border-transparent', flex = 'flex justify-center items-center', background = '', border = 'border-b', text = 'type-scale-3', padding = 'pb-2', rounded = '', gap = 'gap-1', cursor = 'cursor-pointer', classes = '',
26
- // Content
27
- contentBase = 'w-full', contentFlex = 'flex justify-center items-center', contentGap = 'gap-2', contentBg = 'group-hover:preset-tonal-primary', contentPadding = 'p-2 px-4', contentRounded = 'rounded-container', contentClasses = '',
28
- // Events
29
- onClick = () => { }, onKeydown = () => { }, onKeyup = () => { }, onChange = () => { },
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
- const [selected, setSelected] = useState(group === name);
33
- useEffect(() => {
34
- setSelected(group === name);
35
- }, [group, name]);
36
- const [rxActive, setRxActive] = useState(selected ? active : inactive);
37
- useEffect(() => {
38
- setRxActive(selected ? active : inactive);
39
- }, [selected, active, inactive]);
40
- function handleOnChange(event) {
41
- onChange(event.target.value);
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
- /** The list of `<Tab.Panel>` components. */
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
- /** The individual Panel component. */
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
- return (value === group &&
121
- children && (_jsx("div", { id: id, role: "tabpanel", tabIndex: 0, "aria-labelledby": labelledBy, className: classes, children: children })));
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
- Panels: TabPanels,
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
- export interface TabsProps extends React.PropsWithChildren {
3
- /** Provide a unique ID. */
4
- id?: string;
5
- /** Sets base styles. */
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
- /** Set vertical spacing between list and panels. */
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
- /** Sets the base styles. */
18
+ /** Set base classes for the list element. */
14
19
  base?: string;
15
- /** Sets the justification styles. */
20
+ /** Set justify classes for the list element. */
16
21
  justify?: string;
17
- /** Sets the gap spacing. */
18
- gap?: string;
19
- /** Sets the border styles. */
22
+ /** Set border classes for the list element. */
20
23
  border?: string;
21
- /** Provide arbitrary CSS classes. */
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
- /** Provide a unique ID. */
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
- /** Sets width styles. */
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
- /** Sets rounded styles. */
56
- rounded?: string;
57
- /** Sets vertical gap styles. */
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
- /** Sets tab content base styles. */
64
- contentBase?: string;
65
- /** Sets tab content flex styles. */
66
- contentFlex?: string;
67
- /** Sets the tab content gap styles. */
68
- contentGap?: string;
69
- /** Sets the tab content background styles. */
70
- contentBg?: string;
71
- /** Sets the tab content padding styles. */
72
- contentPadding?: string;
73
- /** Sets the tab content rounded styles. */
74
- contentRounded?: string;
75
- /** Provide arbitrary CSS classes for the tab content. */
76
- contentClasses?: string;
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 TabPanelsProps extends React.PropsWithChildren {
87
- /** Sets wrapping panel base styles. */
55
+ export interface TabsContentProps extends React.PropsWithChildren {
56
+ /** Set base classes for the panel group element. */
88
57
  base?: string;
89
- /** Provide arbitrary CSS classes to the wrapping panel element. */
58
+ /** Provide arbitrary classes for the panel group element. */
90
59
  classes?: string;
91
60
  }
92
- export interface TabsPanelProps extends React.PropsWithChildren {
93
- /** Provide a unique ID. */
94
- id?: string;
95
- /** Provide the tab panel value. */
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
  }
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- export { default as TestReact } from './components/Test/Test.js';
2
1
  export { Accordion } from './components/Accordion/Accordion.js';
3
2
  export { Avatar } from './components/Avatar/Avatar.js';
4
3
  export { AppBar } from './components/AppBar/AppBar.js';
package/dist/index.js CHANGED
@@ -1,4 +1,3 @@
1
- export { default as TestReact } from './components/Test/Test.js';
2
1
  // Components
3
2
  export { Accordion } from './components/Accordion/Accordion.js';
4
3
  export { Avatar } from './components/Avatar/Avatar.js';
@@ -0,0 +1,3 @@
1
+ export declare const starEmpty: import("react/jsx-runtime").JSX.Element;
2
+ export declare const starHalf: import("react/jsx-runtime").JSX.Element;
3
+ export declare const starFull: import("react/jsx-runtime").JSX.Element;
@@ -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;
@@ -0,0 +1,2 @@
1
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
2
+ export function noop() { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skeletonlabs/skeleton-react",
3
- "version": "1.0.0-next.3",
3
+ "version": "1.0.0-next.5",
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.2.0",
33
- "react-dom": "^18.2.0"
32
+ "@zag-js/accordion": "^0.65.0",
33
+ "@zag-js/avatar": "^0.65.0",
34
+ "@zag-js/progress": "^0.65.0",
35
+ "@zag-js/radio-group": "^0.65.0",
36
+ "@zag-js/rating-group": "^0.65.0",
37
+ "@zag-js/react": "^0.65.0",
38
+ "@zag-js/switch": "^0.65.0",
39
+ "@zag-js/tabs": "^0.65.0",
40
+ "react": "^18.3.1",
41
+ "react-dom": "^18.3.1"
34
42
  },
35
43
  "devDependencies": {
36
44
  "@tailwindcss/forms": "^0.5.7",
37
- "@testing-library/jest-dom": "^6.4.2",
38
- "@testing-library/react": "^14.2.2",
45
+ "@testing-library/jest-dom": "^6.4.7",
46
+ "@testing-library/react": "^14.3.1",
39
47
  "@testing-library/user-event": "^14.5.2",
40
- "@types/react": "^18.2.74",
41
- "@types/react-dom": "^18.2.24",
42
- "@vitejs/plugin-react": "^4.2.1",
48
+ "@types/react": "^18.3.3",
49
+ "@types/react-dom": "^18.3.0",
50
+ "@vitejs/plugin-react": "^4.3.1",
43
51
  "autoprefixer": "^10.4.19",
44
- "jsdom": "^24.0.0",
52
+ "jsdom": "^24.1.1",
45
53
  "lucide-react": "^0.341.0",
46
- "postcss": "^8.4.38",
47
- "react-router-dom": "^6.22.3",
48
- "tailwindcss": "^3.4.3",
49
- "typescript": "^5.4.4",
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.2.8",
59
+ "vite": "^5.3.4",
52
60
  "vite-plugin-remix-router": "^2.0.0",
53
- "vitest": "^1.4.0",
54
- "@skeletonlabs/skeleton": "3.0.0-next.2",
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",
@@ -1,2 +0,0 @@
1
- declare function Test(): import("react/jsx-runtime").JSX.Element;
2
- export default Test;
@@ -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;