@prasadj28/react-neu 1.0.29 → 1.0.30
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/App.d.ts +2 -0
- package/dist/components/Button/Button.css.d.ts +1 -0
- package/dist/components/Button/Button.d.ts +3 -0
- package/dist/components/Card/Card.css.d.ts +1 -0
- package/dist/components/Card/Card.d.ts +3 -0
- package/dist/components/Checkbox/Checkbox.css.d.ts +5 -0
- package/dist/components/Checkbox/Checkbox.d.ts +23 -0
- package/dist/components/Icon/Icon.css.d.ts +3 -0
- package/dist/components/Icon/Icon.d.ts +18 -0
- package/dist/components/Icon/IconPaths.d.ts +3 -0
- package/dist/components/Radio/Radio.css.d.ts +6 -0
- package/dist/components/Radio/Radio.d.ts +25 -0
- package/dist/components/Ridge/Ridge.css.d.ts +1 -0
- package/dist/components/Ridge/Ridge.d.ts +15 -0
- package/dist/components/Slider/Slider.css.d.ts +3 -0
- package/dist/components/Slider/Slider.d.ts +15 -0
- package/dist/components/TextInput/TextInput.css.d.ts +1 -0
- package/dist/components/TextInput/TextInput.d.ts +5 -0
- package/dist/components/Toggle/Toggle.css.d.ts +6 -0
- package/dist/components/Toggle/Toggle.d.ts +29 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/index.cjs +7 -6294
- package/dist/index.d.ts +13 -165
- package/dist/index.js +590 -5975
- package/dist/main.d.ts +0 -0
- package/dist/react-neu.css +1 -0
- package/dist/styles/colorUtils.d.ts +3 -0
- package/dist/styles/neumorphicEngine.d.ts +14 -0
- package/dist/styles/theme.css.d.ts +11 -0
- package/dist/styles/types.d.ts +31 -0
- package/dist/utils/colorUtils.d.ts +3 -0
- package/dist/utils/neuEngine.d.ts +13 -0
- package/dist/vite.svg +1 -0
- package/package.json +9 -8
- package/dist/index.d.cts +0 -165
package/dist/App.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const baseButton: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const baseCard: string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { NeumorphicProps } from '../../styles/types';
|
|
3
|
+
interface CheckboxProps extends NeumorphicProps, Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "color"> {
|
|
4
|
+
/**
|
|
5
|
+
* The visual style when checked.
|
|
6
|
+
* - 'check': Shows a checkmark.
|
|
7
|
+
* - 'cross': Shows an X.
|
|
8
|
+
* - 'fill': No icon, the button just sinks (simulates pressing/filling).
|
|
9
|
+
*/
|
|
10
|
+
selectionStyle?: "check" | "cross" | "fill";
|
|
11
|
+
/**
|
|
12
|
+
* Color of the Check or Cross icon.
|
|
13
|
+
* @default "#333"
|
|
14
|
+
*/
|
|
15
|
+
selectedColor?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Width/Height of the checkbox.
|
|
18
|
+
* @default "26px"
|
|
19
|
+
*/
|
|
20
|
+
size?: number | string;
|
|
21
|
+
}
|
|
22
|
+
export declare const NeuCheckbox: React.FC<CheckboxProps>;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IconName } from './IconPaths';
|
|
3
|
+
import { NeumorphicProps } from '../../styles/types';
|
|
4
|
+
interface IconProps extends NeumorphicProps {
|
|
5
|
+
icon: IconName;
|
|
6
|
+
filled?: boolean;
|
|
7
|
+
fillColor?: string;
|
|
8
|
+
size?: string;
|
|
9
|
+
/** * If true, removes the background button shape entirely.
|
|
10
|
+
* You will see ONLY the icon.
|
|
11
|
+
*/
|
|
12
|
+
transparent?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
style?: React.CSSProperties;
|
|
15
|
+
onClick?: () => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const NeuIcon: React.FC<IconProps>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type IconName = "heart" | "bookmark" | "comment" | "star" | "circle" | "square" | "triangle" | "diamond" | "user" | "gear" | "bell" | "search" | "share" | "mail" | "send" | "camera" | "mic";
|
|
3
|
+
export declare const iconRegistry: Record<IconName, React.ReactElement>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { NeumorphicProps } from '../../styles/types';
|
|
3
|
+
interface RadioProps extends NeumorphicProps, Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "color"> {
|
|
4
|
+
/**
|
|
5
|
+
* Visual style when selected.
|
|
6
|
+
* - 'dot': Standard radio circle.
|
|
7
|
+
* - 'check': Checkmark.
|
|
8
|
+
* - 'cross': X mark.
|
|
9
|
+
* - 'fill': Sinks in (Inset) without an icon.
|
|
10
|
+
* @default "dot"
|
|
11
|
+
*/
|
|
12
|
+
selectionStyle?: "dot" | "check" | "cross" | "fill";
|
|
13
|
+
/**
|
|
14
|
+
* Color of the Dot/Icon.
|
|
15
|
+
* @default "#1e1e1e"
|
|
16
|
+
*/
|
|
17
|
+
selectedColor?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Size of the radio button.
|
|
20
|
+
* @default "26px"
|
|
21
|
+
*/
|
|
22
|
+
size?: number | string;
|
|
23
|
+
}
|
|
24
|
+
export declare const NeuRadio: React.FC<RadioProps>;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ridgeContainer: string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { NeumorphicProps } from '../../styles/types';
|
|
3
|
+
interface RidgeProps extends NeumorphicProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
/**
|
|
6
|
+
* Sets the thickness of the ridge frame (padding).
|
|
7
|
+
* Can be a number (pixels) or string (e.g., "1rem").
|
|
8
|
+
* @default "10px"
|
|
9
|
+
*/
|
|
10
|
+
ridgeWidth?: number | string;
|
|
11
|
+
className?: string;
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
}
|
|
14
|
+
export declare const NeuRidge: React.FC<RidgeProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { NeumorphicProps } from '../../styles/types';
|
|
3
|
+
interface SliderProps extends NeumorphicProps {
|
|
4
|
+
min?: number;
|
|
5
|
+
max?: number;
|
|
6
|
+
step?: number;
|
|
7
|
+
value: number;
|
|
8
|
+
onChange: (value: number) => void;
|
|
9
|
+
className?: string;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
thumbSize?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const NeuSlider: React.FC<SliderProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const baseInput: string;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { NeumorphicProps } from '../../styles/types';
|
|
3
|
+
interface SwitchProps extends NeumorphicProps, Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "color" | "shape"> {
|
|
4
|
+
/**
|
|
5
|
+
* Visual style of the thumb when active.
|
|
6
|
+
* - 'plain': Standard empty thumb.
|
|
7
|
+
* - 'check': Shows a checkmark when ON.
|
|
8
|
+
* - 'cross': Shows an X when ON.
|
|
9
|
+
*/
|
|
10
|
+
selectionStyle?: "plain" | "check" | "cross";
|
|
11
|
+
/**
|
|
12
|
+
* Color of the Icon (if used).
|
|
13
|
+
* @default "#1e1e1e"
|
|
14
|
+
*/
|
|
15
|
+
selectedColor?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Width of the switch track. Height is automatically calculated (approx 1/2 of width).
|
|
18
|
+
* @default "50px"
|
|
19
|
+
*/
|
|
20
|
+
width?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Shape of the switch.
|
|
23
|
+
* - 'pill': Standard capsule.
|
|
24
|
+
* - 'square': Rectangular box.
|
|
25
|
+
*/
|
|
26
|
+
shape?: "pill" | "square" | "rounded";
|
|
27
|
+
}
|
|
28
|
+
export declare const NeuSwitch: React.FC<SwitchProps>;
|
|
29
|
+
export {};
|