@skeletonlabs/skeleton-react 1.0.0-next.5 → 1.0.0-next.6
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/FileUpload/FileUpload.d.ts +3 -0
- package/dist/components/FileUpload/FileUpload.js +37 -0
- package/dist/components/FileUpload/types.d.ts +68 -0
- package/dist/components/FileUpload/types.js +1 -0
- package/dist/components/Segment/Segment.js +3 -2
- package/dist/components/Segment/types.d.ts +2 -0
- package/dist/components/Slider/Slider.d.ts +3 -0
- package/dist/components/Slider/Slider.js +42 -0
- package/dist/components/Slider/types.d.ts +72 -0
- package/dist/components/Slider/types.js +1 -0
- package/dist/components/Switch/Switch.js +5 -2
- package/dist/components/Switch/types.d.ts +2 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/package.json +19 -13
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useId } from 'react';
|
|
4
|
+
import * as fileUpload from '@zag-js/file-upload';
|
|
5
|
+
import { normalizeProps, useMachine } from '@zag-js/react';
|
|
6
|
+
export const FileUpload = ({ label = `Select file or drag here`, subtext = '',
|
|
7
|
+
// Root
|
|
8
|
+
base = '', classes = '',
|
|
9
|
+
// Interface
|
|
10
|
+
interfaceBase = 'flex flex-col items-center gap-2 hover:cursor-pointer', interfaceBg = 'hover:preset-tonal', interfaceBorder = 'border-[1px] border-dashed', interfaceBorderColor = 'border-surface-200-800', interfacePadding = 'p-4 py-10', interfaceRounded = 'rounded-container', interfaceClasses = '',
|
|
11
|
+
// Interface (content)
|
|
12
|
+
interfaceIcon = '', interfaceText = '', interfaceSubtext = 'type-scale-1 opacity-60',
|
|
13
|
+
// Files List
|
|
14
|
+
filesListBase = 'mt-2 space-y-2', filesListClasses = '',
|
|
15
|
+
// File
|
|
16
|
+
fileBase = 'grid grid-cols-[auto_auto_1fr_auto] rtl:grid-cols-[auto_1fr_auto_auto] items-center', fileBg = 'preset-tonal', fileGap = 'gap-4 px-4', filePadding = 'py-2', fileRounded = 'rounded', fileClasses = '',
|
|
17
|
+
// File (content)
|
|
18
|
+
fileIcon = '', fileName = 'type-scale-2', fileSize = 'type-scale-1 opacity-60', fileButton = '',
|
|
19
|
+
// State
|
|
20
|
+
stateInvalid = 'border-error-500', stateDisabled = 'disabled', stateDragging = 'preset-filled-primary-500',
|
|
21
|
+
// Children
|
|
22
|
+
children, iconInterface, iconFile, iconFileRemove,
|
|
23
|
+
// Zag
|
|
24
|
+
...zagProps }) => {
|
|
25
|
+
// Zag
|
|
26
|
+
const [state, send] = useMachine(fileUpload.machine({
|
|
27
|
+
id: useId()
|
|
28
|
+
}), { context: zagProps });
|
|
29
|
+
const api = fileUpload.connect(state, send, normalizeProps);
|
|
30
|
+
// Reactive
|
|
31
|
+
const rxDisabled = state.context.disabled ? stateDisabled : '';
|
|
32
|
+
const rxInvalid = api.rejectedFiles.length > 0 ? stateInvalid : interfaceBorderColor;
|
|
33
|
+
const rxDragging = api.dragging && !children ? stateDragging : '';
|
|
34
|
+
return (_jsxs("div", { ...api.getRootProps(), className: `${base} ${rxDisabled} ${classes}`, style: { display: children ? 'inline-block' : 'block' }, "data-testid": "uploader", children: [_jsxs("div", { ...api.getDropzoneProps(), children: [_jsx("input", { ...api.getHiddenInputProps(), "data-testid": "uploader-input" }), children ?? (_jsxs("div", { className: `${interfaceBase} ${interfaceBg} ${interfaceBorder} ${interfacePadding} ${interfaceRounded} ${rxInvalid} ${rxDragging} ${interfaceClasses}`, "data-testid": "uploader-interface", children: [iconInterface && (_jsx("span", { className: interfaceIcon, "data-testid": "uploader-interface-icon", children: iconInterface })), label && (_jsx("p", { className: interfaceText, "data-testid": "uploader-interface-text", children: label })), subtext && (_jsx("small", { className: interfaceSubtext, "data-testid": "uploader-interface-subtext", children: subtext }))] }))] }), !children && (_jsx("ul", { ...api.getItemGroupProps(), className: `${filesListBase} ${filesListClasses}`, "data-testid": "uploader-files-list", children: api.acceptedFiles.map((file) => (
|
|
35
|
+
// File
|
|
36
|
+
_jsxs("li", { ...api.getItemProps({ file }), className: `${fileBase} ${fileBg} ${fileGap} ${filePadding} ${fileRounded} ${fileClasses}`, "data-testid": "uploader-file", children: [_jsx("span", { className: fileIcon, "data-testid": "uploader-file-icon", children: iconFile ?? '•' }), _jsx("p", { ...api.getItemNameProps({ file }), className: fileName, "data-testid": "uploader-file-name", children: file.name }), _jsxs("p", { ...api.getItemNameProps({ file }), className: fileSize, "data-testid": "uploader-file-size", children: [(file.size / 100000).toFixed(1), " mb"] }), _jsx("button", { ...api.getItemDeleteTriggerProps({ file }), className: fileButton, "data-testid": "uploader-file-button", children: iconFileRemove ?? _jsx("span", { children: "\u2715" }) })] }, file.name))) }))] }));
|
|
37
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import * as fileUpload from '@zag-js/file-upload';
|
|
3
|
+
export interface FileUploadProps extends React.PropsWithChildren, Omit<fileUpload.Context, 'id'> {
|
|
4
|
+
/** Set the interface text value. */
|
|
5
|
+
label?: string;
|
|
6
|
+
/** Set the interface subtext value. */
|
|
7
|
+
subtext?: string;
|
|
8
|
+
/** Set root base classes */
|
|
9
|
+
base?: string;
|
|
10
|
+
/** Set root arbitrary classes */
|
|
11
|
+
classes?: string;
|
|
12
|
+
/** Set interface base classes */
|
|
13
|
+
interfaceBase?: string;
|
|
14
|
+
/** Set interface background classes */
|
|
15
|
+
interfaceBg?: string;
|
|
16
|
+
/** Set interface border classes */
|
|
17
|
+
interfaceBorder?: string;
|
|
18
|
+
/** Set interface border color classes */
|
|
19
|
+
interfaceBorderColor?: string;
|
|
20
|
+
/** Set interface border classes */
|
|
21
|
+
interfacePadding?: string;
|
|
22
|
+
/** Set interface border radius classes */
|
|
23
|
+
interfaceRounded?: string;
|
|
24
|
+
/** Set interface arbitrary classes */
|
|
25
|
+
interfaceClasses?: string;
|
|
26
|
+
/** Set interface icon classes */
|
|
27
|
+
interfaceIcon?: string;
|
|
28
|
+
/** Set interface text classes */
|
|
29
|
+
interfaceText?: string;
|
|
30
|
+
/** Set interface subtext classes */
|
|
31
|
+
interfaceSubtext?: string;
|
|
32
|
+
/** Set file list base classes */
|
|
33
|
+
filesListBase?: string;
|
|
34
|
+
/** Set file list arbitrary classes */
|
|
35
|
+
filesListClasses?: string;
|
|
36
|
+
/** Set file base classes */
|
|
37
|
+
fileBase?: string;
|
|
38
|
+
/** Set file background classes */
|
|
39
|
+
fileBg?: string;
|
|
40
|
+
/** Set file gap classes */
|
|
41
|
+
fileGap?: string;
|
|
42
|
+
/** Set file padding classes */
|
|
43
|
+
filePadding?: string;
|
|
44
|
+
/** Set file border-radius classes */
|
|
45
|
+
fileRounded?: string;
|
|
46
|
+
/** Set file arbitrary classes */
|
|
47
|
+
fileClasses?: string;
|
|
48
|
+
/** Set file icon classes */
|
|
49
|
+
fileIcon?: string;
|
|
50
|
+
/** Set file name classes */
|
|
51
|
+
fileName?: string;
|
|
52
|
+
/** Set file size classes */
|
|
53
|
+
fileSize?: string;
|
|
54
|
+
/** Set file button classes */
|
|
55
|
+
fileButton?: string;
|
|
56
|
+
/** Set disabled state classes for the root. */
|
|
57
|
+
stateDisabled?: string;
|
|
58
|
+
/** Set invalid state classes for the interface. */
|
|
59
|
+
stateInvalid?: string;
|
|
60
|
+
/** Set dragging state classes for the interface. */
|
|
61
|
+
stateDragging?: string;
|
|
62
|
+
/** Provide an icon for the interface. */
|
|
63
|
+
iconInterface?: ReactNode;
|
|
64
|
+
/** Provide an icon proceeding each file. */
|
|
65
|
+
iconFile?: ReactNode;
|
|
66
|
+
/** Provide an icon for the remove file action. */
|
|
67
|
+
iconFileRemove?: ReactNode;
|
|
68
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -44,7 +44,7 @@ base = 'btn cursor-pointer z-[1]', classes = '',
|
|
|
44
44
|
// Label
|
|
45
45
|
labelBase = 'pointer-events-none transition-colors duration-100', labelClasses = '',
|
|
46
46
|
// State
|
|
47
|
-
stateDisabled = 'disabled',
|
|
47
|
+
stateDisabled = 'disabled', stateFocused = 'focused',
|
|
48
48
|
// Children
|
|
49
49
|
children,
|
|
50
50
|
// Zag
|
|
@@ -55,7 +55,8 @@ children,
|
|
|
55
55
|
// Reactive
|
|
56
56
|
const rxDisabled = state.disabled ? stateDisabled : '';
|
|
57
57
|
const rxActiveText = state.checked ? ctx.indicatorText : '';
|
|
58
|
-
|
|
58
|
+
const rxFocused = state.focused ? stateFocused : '';
|
|
59
|
+
return (_jsxs("label", { ...ctx.api.getItemProps(zagProps), className: `${base} ${rxDisabled} ${rxFocused} ${classes}`, "data-testid": "segment-item", children: [_jsx("span", { ...ctx.api.getItemTextProps(zagProps), className: `${labelBase} ${rxActiveText} ${labelClasses}`, "data-testid": "segment-item-label", children: children }), _jsx("input", { ...ctx.api.getItemHiddenInputProps(zagProps), "data-testid": "segment-item-input" })] }));
|
|
59
60
|
};
|
|
60
61
|
export const Segment = Object.assign(SegmentRoot, {
|
|
61
62
|
Item: SegmentItem
|
|
@@ -52,6 +52,8 @@ export interface SegmentItemsProps extends React.PropsWithChildren, Omit<radio.I
|
|
|
52
52
|
classes?: string;
|
|
53
53
|
/** Set claseses for the disabled state. */
|
|
54
54
|
stateDisabled?: string;
|
|
55
|
+
/** Set claseses for the focus state. */
|
|
56
|
+
stateFocused?: string;
|
|
55
57
|
/** Sets base classes for the label element. */
|
|
56
58
|
labelBase?: string;
|
|
57
59
|
/** Provide arbitrary CSS classes for the label element. */
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useId } from 'react';
|
|
3
|
+
import * as slider from '@zag-js/slider';
|
|
4
|
+
import { useMachine, normalizeProps } from '@zag-js/react';
|
|
5
|
+
import { noop } from '../../internal/noop.js';
|
|
6
|
+
export const Slider = ({ height = 'h-1.5', markers = [],
|
|
7
|
+
// Root ---
|
|
8
|
+
base = 'w-full', classes = '',
|
|
9
|
+
// Control ---
|
|
10
|
+
controlBase = '', controlClasses = '',
|
|
11
|
+
// Track ---
|
|
12
|
+
trackBase = 'overflow-hidden', trackBg = 'bg-surface-200-800', trackRounded = 'rounded-full', trackClasses = '',
|
|
13
|
+
// Meter ---
|
|
14
|
+
meterBase = '', meterBg = 'bg-surface-950-50', materRounded = 'rounded-container', meterClasses = '',
|
|
15
|
+
// Thumb ---
|
|
16
|
+
thumbBase = 'ring-inset transition-scale duration-100 ease-in-out', thumbSize = 'size-8 md:size-5', thumbBg = 'bg-surface-50-950', thumbRingSize = 'ring-2', thumbRingColor = 'ring-surface-950-50', thumbRounded = 'rounded-full', thumbScale = 'hover:scale-125', thumbCursor = 'hover:cursor-pointer', thumbClasses = '',
|
|
17
|
+
// Markers ---
|
|
18
|
+
markersBase = '', markerslasses = '',
|
|
19
|
+
// Mark ---
|
|
20
|
+
markBase = '', markText = 'text-[10px]', markOpacity = 'opacity-50', markClasses = '',
|
|
21
|
+
// State ---
|
|
22
|
+
stateDisabled = 'disabled', stateReadOnly = 'cursor-not-allowed',
|
|
23
|
+
// Events ---
|
|
24
|
+
onValueChange = noop, onValueChangeEnd = noop,
|
|
25
|
+
// Children ---
|
|
26
|
+
mark,
|
|
27
|
+
// Zag ---
|
|
28
|
+
...zagProps }) => {
|
|
29
|
+
// Zag
|
|
30
|
+
const [state, send] = useMachine(slider.machine({
|
|
31
|
+
id: useId(),
|
|
32
|
+
onValueChange: (details) => onValueChange(details.value),
|
|
33
|
+
onValueChangeEnd: (details) => onValueChangeEnd(details.value)
|
|
34
|
+
}), { context: zagProps });
|
|
35
|
+
const api = slider.connect(state, send, normalizeProps);
|
|
36
|
+
// Reactive
|
|
37
|
+
const rxDisabled = state.context.disabled ? stateDisabled : '';
|
|
38
|
+
const rxReadOnly = state.context.readOnly ? stateReadOnly : `${thumbScale} ${thumbCursor}`;
|
|
39
|
+
return (_jsxs("div", { ...api.getRootProps(), className: `${base} ${height} ${rxDisabled} ${classes}`, "data-testid": "slider", children: [_jsxs("div", { ...api.getControlProps(), className: `${controlBase} ${controlClasses}`, "data-testid": "slider-control", children: [_jsx("div", { ...api.getTrackProps(), className: `${trackBase} ${trackBg} ${height} ${trackRounded} ${trackClasses}`, "data-testid": "slider-track", children: _jsx("div", { ...api.getRangeProps(), className: `${meterBase} ${height} ${meterBg} ${materRounded} ${meterClasses}`, "data-testid": "slider-meter" }) }), _jsx("div", { className: `${height}`, style: { display: 'flex', alignItems: 'center', transform: 'translateY(-100%)' }, "data-testid": "slider-thumb-wrapper", children: api.value.map((_, index) => (_jsxs("div", { ...api.getThumbProps({ index }), children: [_jsx("div", { className: `${thumbBase} ${thumbSize} ${thumbBg} ${thumbRingSize} ${thumbRingColor} ${thumbRounded} ${rxReadOnly} ${thumbClasses}`, "data-testid": "slider-thumb" }), _jsx("input", { ...api.getHiddenInputProps({ index }), "data-testid": "slider-input" })] }, index))) })] }), markers.length > 0 && (_jsx("div", { ...api.getMarkerGroupProps(), className: `${markersBase} ${markerslasses}`, "data-testid": "slider-markers", children: markers.map((value) => (
|
|
40
|
+
// Mark
|
|
41
|
+
_jsx("span", { ...api.getMarkerProps({ value }), className: `${markBase} ${markText} ${markOpacity} ${markClasses}`, "data-testid": "slider-mark", children: mark ? mark : value }, value))) }))] }));
|
|
42
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import * as slider from '@zag-js/slider';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export interface SliderProps extends Omit<slider.Context, 'id' | 'onValueChange' | `onValueChangeEnd` | 'thumbSize'> {
|
|
4
|
+
/** Provide an array of value markers */
|
|
5
|
+
markers?: number[];
|
|
6
|
+
/** Set height classes for the overall slider. */
|
|
7
|
+
height?: string;
|
|
8
|
+
/** Set base classes. */
|
|
9
|
+
base?: string;
|
|
10
|
+
/** Provide arbitrary classes for the root. */
|
|
11
|
+
classes?: string;
|
|
12
|
+
/** Set base classes for the control. */
|
|
13
|
+
controlBase?: string;
|
|
14
|
+
/** Provide arbitrary classes for the control. */
|
|
15
|
+
controlClasses?: string;
|
|
16
|
+
/** Set base classes for the track. */
|
|
17
|
+
trackBase?: string;
|
|
18
|
+
/** Set background classes for the track. */
|
|
19
|
+
trackBg?: string;
|
|
20
|
+
/** Set border radius classes for the track. */
|
|
21
|
+
trackRounded?: string;
|
|
22
|
+
/** Provide arbitrary classes for the track. */
|
|
23
|
+
trackClasses?: string;
|
|
24
|
+
/** Set base classes for the meter. */
|
|
25
|
+
meterBase?: string;
|
|
26
|
+
/** Set background classes for the meter. */
|
|
27
|
+
meterBg?: string;
|
|
28
|
+
/** Set border radius classes for the meter. */
|
|
29
|
+
materRounded?: string;
|
|
30
|
+
/** Provide arbitrary classes for the meter. */
|
|
31
|
+
meterClasses?: string;
|
|
32
|
+
/** Set base classes for the thumb. */
|
|
33
|
+
thumbBase?: string;
|
|
34
|
+
/** Set size classes for the thumb. */
|
|
35
|
+
thumbSize?: string;
|
|
36
|
+
/** Set background classes for the thumb. */
|
|
37
|
+
thumbBg?: string;
|
|
38
|
+
/** Set ring size classes for the thumb. */
|
|
39
|
+
thumbRingSize?: string;
|
|
40
|
+
/** Set ring color classes for the thumb. */
|
|
41
|
+
thumbRingColor?: string;
|
|
42
|
+
/** Set border-radius classes for the thumb. */
|
|
43
|
+
thumbRounded?: string;
|
|
44
|
+
/** Set scale classes for the thumb. */
|
|
45
|
+
thumbScale?: string;
|
|
46
|
+
/** Set cursor classes for the thumb. */
|
|
47
|
+
thumbCursor?: string;
|
|
48
|
+
/** Provide arbitrary classes for the thumb. */
|
|
49
|
+
thumbClasses?: string;
|
|
50
|
+
/** Set base classes for the markers. */
|
|
51
|
+
markersBase?: string;
|
|
52
|
+
/** Provide arbitrary classes for the markers. */
|
|
53
|
+
markerslasses?: string;
|
|
54
|
+
/** Set base classes for each mark. */
|
|
55
|
+
markBase?: string;
|
|
56
|
+
/** Set text size classes for each mark. */
|
|
57
|
+
markText?: string;
|
|
58
|
+
/** Set opacity classes for each mark. */
|
|
59
|
+
markOpacity?: string;
|
|
60
|
+
/** Provide arbitrary classes for each mark. */
|
|
61
|
+
markClasses?: string;
|
|
62
|
+
/** Set disabled state classes for the root element. */
|
|
63
|
+
stateDisabled?: string;
|
|
64
|
+
/** Set read-only state classes for the root element. */
|
|
65
|
+
stateReadOnly?: string;
|
|
66
|
+
/** Triggers when the value state is being changed. */
|
|
67
|
+
onValueChange?: (value: number[]) => void;
|
|
68
|
+
/** Triggers when the value change has ended. */
|
|
69
|
+
onValueChangeEnd?: (value: number[]) => void;
|
|
70
|
+
/** Replace numeric markers with symbol, such as a icon. */
|
|
71
|
+
mark?: ReactNode;
|
|
72
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -6,7 +6,9 @@ import { useMachine, normalizeProps } from '@zag-js/react';
|
|
|
6
6
|
import { noop } from '../../internal/noop.js';
|
|
7
7
|
export const Switch = ({ name = '', checked = false, disabled = false, compact = false,
|
|
8
8
|
// Root (Track)
|
|
9
|
-
base = 'inline-flex items-center gap-4',
|
|
9
|
+
base = 'inline-flex items-center gap-4',
|
|
10
|
+
// State
|
|
11
|
+
stateFocused = '[&>span]:focused', classes = '',
|
|
10
12
|
// Control
|
|
11
13
|
controlBase = 'cursor-pointer transition duration-200', controlInactive = 'preset-filled-surface-200-800', controlActive = 'preset-filled-primary-500', controlDisabled = 'opacity-50 cursor-not-allowed', controlWidth = 'w-10', controlHeight = 'h-6', controlPadding = 'p-0.5', controlRounded = 'rounded-full', controlHover = 'hover:brightness-90 dark:hover:brightness-110', controlClasses = '',
|
|
12
14
|
// Thumb
|
|
@@ -44,5 +46,6 @@ children, inactiveChild, activeChild }) => {
|
|
|
44
46
|
const rxTrackState = api.checked ? controlActive : controlInactive;
|
|
45
47
|
const rxThumbState = api.checked ? `${thumbActive} ${thumbTranslateX}` : thumbInactive;
|
|
46
48
|
const rxDisabled = api.disabled ? controlDisabled : '';
|
|
47
|
-
|
|
49
|
+
const rxFocused = api.focused ? stateFocused : '';
|
|
50
|
+
return (_jsxs("label", { ...api.getRootProps(), className: `${base} ${rxFocused} ${classes}`, "data-testid": "switch", children: [_jsx("input", { ...api.getHiddenInputProps(), "data-testid": "switch-input" }), _jsx("span", { ...api.getControlProps(), className: `${controlBase} ${rxTrackState} ${controlWidth} ${controlHeight} ${controlPadding} ${controlRounded} ${controlHover} ${rxDisabled} ${controlClasses}`, "data-testid": "switch-control", children: _jsxs("span", { ...api.getThumbProps(), className: `${thumbBase} ${rxThumbState} ${thumbRounded} ${thumbTransition} ${thumbEase} ${thumbDuration} ${thumbClasses}`, "data-testid": "switch-thumb", children: [!checked && inactiveChild ? (_jsx("span", { className: iconInactiveBase, "data-testid": "switch-icon-inactive", children: inactiveChild })) : null, checked && activeChild ? (_jsx("span", { className: iconActiveBase, "data-testid": "switch-icon-active", children: activeChild })) : null] }) }), _jsx("span", { ...api.getLabelProps(), className: `${labelBase} ${labelClasses}`, "data-testid": "switch-label", children: children })] }));
|
|
48
51
|
};
|
|
@@ -13,6 +13,8 @@ export interface SwitchProps extends React.PropsWithChildren, Omit<zagSwitch.Con
|
|
|
13
13
|
base?: string;
|
|
14
14
|
/** Provide arbitrary classes to the root element. */
|
|
15
15
|
classes?: string;
|
|
16
|
+
/** Set claseses for the focus state. */
|
|
17
|
+
stateFocused?: string;
|
|
16
18
|
/** Set base classes for the control element. */
|
|
17
19
|
controlBase?: string;
|
|
18
20
|
/** Set inactive state classes for the control element. */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export { Accordion } from './components/Accordion/Accordion.js';
|
|
2
2
|
export { Avatar } from './components/Avatar/Avatar.js';
|
|
3
3
|
export { AppBar } from './components/AppBar/AppBar.js';
|
|
4
|
+
export { FileUpload } from './components/FileUpload/FileUpload.js';
|
|
4
5
|
export { Nav } from './components/Navigation/Navigation.js';
|
|
5
6
|
export { Progress } from './components/Progress/Progress.js';
|
|
6
7
|
export { ProgressRing } from './components/ProgressRing/ProgressRing.js';
|
|
7
|
-
export { Switch } from './components/Switch/Switch.js';
|
|
8
8
|
export { Segment } from './components/Segment/Segment.js';
|
|
9
|
+
export { Slider } from './components/Slider/Slider.js';
|
|
10
|
+
export { Switch } from './components/Switch/Switch.js';
|
|
9
11
|
export { Tabs } from './components/Tabs/Tabs.js';
|
|
10
12
|
export { Rating } from './components/Rating/Rating.js';
|
package/dist/index.js
CHANGED
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
export { Accordion } from './components/Accordion/Accordion.js';
|
|
3
3
|
export { Avatar } from './components/Avatar/Avatar.js';
|
|
4
4
|
export { AppBar } from './components/AppBar/AppBar.js';
|
|
5
|
+
export { FileUpload } from './components/FileUpload/FileUpload.js';
|
|
5
6
|
export { Nav } from './components/Navigation/Navigation.js';
|
|
6
7
|
export { Progress } from './components/Progress/Progress.js';
|
|
7
8
|
export { ProgressRing } from './components/ProgressRing/ProgressRing.js';
|
|
8
|
-
export { Switch } from './components/Switch/Switch.js';
|
|
9
9
|
export { Segment } from './components/Segment/Segment.js';
|
|
10
|
+
export { Slider } from './components/Slider/Slider.js';
|
|
11
|
+
export { Switch } from './components/Switch/Switch.js';
|
|
10
12
|
export { Tabs } from './components/Tabs/Tabs.js';
|
|
11
13
|
export { Rating } from './components/Rating/Rating.js';
|
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.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -29,16 +29,20 @@
|
|
|
29
29
|
"!./dist/schemas.d.ts"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@zag-js/accordion": "^0.65.
|
|
33
|
-
"@zag-js/avatar": "^0.65.
|
|
34
|
-
"@zag-js/
|
|
35
|
-
"@zag-js/
|
|
36
|
-
"@zag-js/
|
|
37
|
-
"@zag-js/
|
|
38
|
-
"@zag-js/
|
|
39
|
-
"@zag-js/
|
|
40
|
-
"
|
|
41
|
-
"
|
|
32
|
+
"@zag-js/accordion": "^0.65.1",
|
|
33
|
+
"@zag-js/avatar": "^0.65.1",
|
|
34
|
+
"@zag-js/file-upload": "^0.65.1",
|
|
35
|
+
"@zag-js/progress": "^0.65.1",
|
|
36
|
+
"@zag-js/radio-group": "^0.65.1",
|
|
37
|
+
"@zag-js/rating-group": "^0.65.1",
|
|
38
|
+
"@zag-js/react": "^0.65.1",
|
|
39
|
+
"@zag-js/slider": "^0.65.1",
|
|
40
|
+
"@zag-js/switch": "^0.65.1",
|
|
41
|
+
"@zag-js/tabs": "^0.65.1"
|
|
42
|
+
},
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"react": "^18.0.0",
|
|
45
|
+
"react-dom": "^18.0.0"
|
|
42
46
|
},
|
|
43
47
|
"devDependencies": {
|
|
44
48
|
"@tailwindcss/forms": "^0.5.7",
|
|
@@ -52,14 +56,16 @@
|
|
|
52
56
|
"jsdom": "^24.1.1",
|
|
53
57
|
"lucide-react": "^0.341.0",
|
|
54
58
|
"postcss": "^8.4.39",
|
|
59
|
+
"react": "^18.2.0",
|
|
60
|
+
"react-dom": "^18.2.0",
|
|
55
61
|
"react-router-dom": "^6.25.1",
|
|
56
62
|
"tailwindcss": "^3.4.6",
|
|
57
|
-
"typescript": "^5.5.
|
|
63
|
+
"typescript": "^5.5.4",
|
|
58
64
|
"typescript-json-schema": "^0.63.0",
|
|
59
65
|
"vite": "^5.3.4",
|
|
60
66
|
"vite-plugin-remix-router": "^2.0.0",
|
|
61
67
|
"vitest": "^1.6.0",
|
|
62
|
-
"@skeletonlabs/skeleton": "3.0.0-next.
|
|
68
|
+
"@skeletonlabs/skeleton": "3.0.0-next.4",
|
|
63
69
|
"vite-plugin-tw-plugin-watcher": "0.0.1-next.0"
|
|
64
70
|
},
|
|
65
71
|
"scripts": {
|