@stackloop/ui 2.4.2 → 3.0.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/README.md +18 -0
- package/dist/AudioRecorder.d.ts +1 -0
- package/dist/Badge.d.ts +1 -0
- package/dist/BottomSheet.d.ts +1 -0
- package/dist/Button.d.ts +1 -0
- package/dist/Card.d.ts +1 -0
- package/dist/Checkbox.d.ts +1 -0
- package/dist/DatePicker.d.ts +1 -0
- package/dist/Drawer.d.ts +1 -0
- package/dist/Dropdown.d.ts +1 -0
- package/dist/DualSlider.d.ts +1 -0
- package/dist/FileUpload.d.ts +2 -0
- package/dist/FloatingActionButton.d.ts +1 -0
- package/dist/Input.d.ts +1 -0
- package/dist/Modal.d.ts +1 -0
- package/dist/Pagination.d.ts +1 -0
- package/dist/RadioPills.d.ts +1 -0
- package/dist/Select.d.ts +1 -0
- package/dist/Slider.d.ts +1 -0
- package/dist/Spinner.d.ts +1 -0
- package/dist/StatusBadges.d.ts +2 -0
- package/dist/StepProgress.d.ts +1 -0
- package/dist/Table.d.ts +2 -1
- package/dist/Textarea.d.ts +1 -0
- package/dist/ThumbnailGrid.d.ts +1 -0
- package/dist/Toast.d.ts +1 -0
- package/dist/Toggle.d.ts +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1663 -1427
- package/dist/index.js.map +1 -1
- package/dist/stackloop-ui.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -147,6 +147,24 @@ You can add dark mode variants:
|
|
|
147
147
|
|
|
148
148
|
- For each component below you'll find a short description, props (type, default, notes) and a minimal usage example.
|
|
149
149
|
|
|
150
|
+
## Animation Control
|
|
151
|
+
|
|
152
|
+
Most components support an `animate?: boolean` prop to enable or disable built-in Framer Motion animations. The default is `true`.
|
|
153
|
+
|
|
154
|
+
```jsx
|
|
155
|
+
import { Button, Modal } from '@stackloop/ui'
|
|
156
|
+
|
|
157
|
+
<Button animate={false}>No animation</Button>
|
|
158
|
+
|
|
159
|
+
<Modal isOpen={open} onClose={() => setOpen(false)} animate={false}>
|
|
160
|
+
...
|
|
161
|
+
</Modal>
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
Components with the `animate` prop:
|
|
165
|
+
|
|
166
|
+
- `AudioRecorder`, `Badge`, `BottomSheet`, `Button`, `Card`, `CameraCapture`, `Checkbox`, `DatePicker`, `Drawer`, `Dropdown`, `DualSlider`, `FileUploader`, `FloatingActionButton`, `Input`, `Modal`, `Pagination`, `RadioPills`, `Select`, `Slider`, `Spinner`, `StepProgress`, `Table`, `Textarea`, `ThumbnailGrid`, `Toggle`, `ToastProvider`
|
|
167
|
+
|
|
150
168
|
**Checkbox**:
|
|
151
169
|
- **Description:** Accessible checkbox with optional label and description.
|
|
152
170
|
- **Props:**
|
package/dist/AudioRecorder.d.ts
CHANGED
package/dist/Badge.d.ts
CHANGED
package/dist/BottomSheet.d.ts
CHANGED
package/dist/Button.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
5
5
|
size?: 'sm' | 'md' | 'lg';
|
|
6
6
|
loading?: boolean;
|
|
7
7
|
icon?: React.ReactNode;
|
|
8
|
+
animate?: boolean;
|
|
8
9
|
}
|
|
9
10
|
type MotionButtonProps = Omit<ButtonProps, 'children' | keyof HTMLMotionProps<'button'>> & {
|
|
10
11
|
children?: React.ReactNode;
|
package/dist/Card.d.ts
CHANGED
package/dist/Checkbox.d.ts
CHANGED
|
@@ -3,5 +3,6 @@ export interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputE
|
|
|
3
3
|
label?: string;
|
|
4
4
|
description?: string;
|
|
5
5
|
onChange?: (checked: boolean) => void;
|
|
6
|
+
animate?: boolean;
|
|
6
7
|
}
|
|
7
8
|
export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
|
package/dist/DatePicker.d.ts
CHANGED
package/dist/Drawer.d.ts
CHANGED
package/dist/Dropdown.d.ts
CHANGED
package/dist/DualSlider.d.ts
CHANGED
package/dist/FileUpload.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export interface CameraCaptureProps {
|
|
|
6
6
|
label?: string;
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
className?: string;
|
|
9
|
+
animate?: boolean;
|
|
9
10
|
}
|
|
10
11
|
export declare const CameraCapture: React.FC<CameraCaptureProps>;
|
|
11
12
|
export interface FileUploaderProps {
|
|
@@ -15,5 +16,6 @@ export interface FileUploaderProps {
|
|
|
15
16
|
label?: string;
|
|
16
17
|
disabled?: boolean;
|
|
17
18
|
className?: string;
|
|
19
|
+
animate?: boolean;
|
|
18
20
|
}
|
|
19
21
|
export declare const FileUploader: React.FC<FileUploaderProps>;
|
|
@@ -16,6 +16,7 @@ export interface FloatingActionButtonProps {
|
|
|
16
16
|
position?: 'bottom-right' | 'bottom-left' | 'bottom-center';
|
|
17
17
|
disabled?: boolean;
|
|
18
18
|
className?: string;
|
|
19
|
+
animate?: boolean;
|
|
19
20
|
}
|
|
20
21
|
export declare const FloatingActionButton: React.FC<FloatingActionButtonProps>;
|
|
21
22
|
export declare const FAB: React.FC<FloatingActionButtonProps>;
|
package/dist/Input.d.ts
CHANGED
|
@@ -5,5 +5,6 @@ export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement>
|
|
|
5
5
|
hint?: string;
|
|
6
6
|
leftIcon?: React.ReactNode;
|
|
7
7
|
rightIcon?: React.ReactNode;
|
|
8
|
+
animate?: boolean;
|
|
8
9
|
}
|
|
9
10
|
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
package/dist/Modal.d.ts
CHANGED
package/dist/Pagination.d.ts
CHANGED
package/dist/RadioPills.d.ts
CHANGED
package/dist/Select.d.ts
CHANGED
|
@@ -16,5 +16,6 @@ export interface SelectProps extends Omit<React.SelectHTMLAttributes<HTMLSelectE
|
|
|
16
16
|
searchable?: boolean;
|
|
17
17
|
clearable?: boolean;
|
|
18
18
|
className?: string;
|
|
19
|
+
animate?: boolean;
|
|
19
20
|
}
|
|
20
21
|
export declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLDivElement>>;
|
package/dist/Slider.d.ts
CHANGED
package/dist/Spinner.d.ts
CHANGED
package/dist/StatusBadges.d.ts
CHANGED
|
@@ -2,11 +2,13 @@ import React from 'react';
|
|
|
2
2
|
export interface OfflineBadgeProps {
|
|
3
3
|
isOffline: boolean;
|
|
4
4
|
className?: string;
|
|
5
|
+
animate?: boolean;
|
|
5
6
|
}
|
|
6
7
|
export declare const OfflineBadge: React.FC<OfflineBadgeProps>;
|
|
7
8
|
export interface SyncIndicatorProps {
|
|
8
9
|
status: 'synced' | 'syncing' | 'unsynced' | 'error';
|
|
9
10
|
count?: number;
|
|
10
11
|
className?: string;
|
|
12
|
+
animate?: boolean;
|
|
11
13
|
}
|
|
12
14
|
export declare const SyncIndicator: React.FC<SyncIndicatorProps>;
|
package/dist/StepProgress.d.ts
CHANGED
package/dist/Table.d.ts
CHANGED
|
@@ -14,5 +14,6 @@ export interface TableProps<T> {
|
|
|
14
14
|
onRowClick?: (item: T) => void;
|
|
15
15
|
keyExtractor: (item: T) => string;
|
|
16
16
|
className?: string;
|
|
17
|
+
animate?: boolean;
|
|
17
18
|
}
|
|
18
|
-
export declare function Table<T>({ data, columns, loading, onRowClick, keyExtractor, className }: TableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare function Table<T>({ data, columns, loading, onRowClick, keyExtractor, className, animate }: TableProps<T>): import("react/jsx-runtime").JSX.Element;
|
package/dist/Textarea.d.ts
CHANGED
|
@@ -3,5 +3,6 @@ export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextArea
|
|
|
3
3
|
label?: string;
|
|
4
4
|
error?: string;
|
|
5
5
|
helperText?: string;
|
|
6
|
+
animate?: boolean;
|
|
6
7
|
}
|
|
7
8
|
export declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
package/dist/ThumbnailGrid.d.ts
CHANGED
package/dist/Toast.d.ts
CHANGED
package/dist/Toggle.d.ts
CHANGED
|
@@ -3,5 +3,6 @@ export interface ToggleProps extends Omit<React.InputHTMLAttributes<HTMLInputEle
|
|
|
3
3
|
label?: string;
|
|
4
4
|
description?: string;
|
|
5
5
|
onChange?: (checked: boolean) => void;
|
|
6
|
+
animate?: boolean;
|
|
6
7
|
}
|
|
7
8
|
export declare const Toggle: React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<HTMLInputElement>>;
|