@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.
Files changed (35) hide show
  1. package/dist/App.d.ts +2 -0
  2. package/dist/components/Button/Button.css.d.ts +1 -0
  3. package/dist/components/Button/Button.d.ts +3 -0
  4. package/dist/components/Card/Card.css.d.ts +1 -0
  5. package/dist/components/Card/Card.d.ts +3 -0
  6. package/dist/components/Checkbox/Checkbox.css.d.ts +5 -0
  7. package/dist/components/Checkbox/Checkbox.d.ts +23 -0
  8. package/dist/components/Icon/Icon.css.d.ts +3 -0
  9. package/dist/components/Icon/Icon.d.ts +18 -0
  10. package/dist/components/Icon/IconPaths.d.ts +3 -0
  11. package/dist/components/Radio/Radio.css.d.ts +6 -0
  12. package/dist/components/Radio/Radio.d.ts +25 -0
  13. package/dist/components/Ridge/Ridge.css.d.ts +1 -0
  14. package/dist/components/Ridge/Ridge.d.ts +15 -0
  15. package/dist/components/Slider/Slider.css.d.ts +3 -0
  16. package/dist/components/Slider/Slider.d.ts +15 -0
  17. package/dist/components/TextInput/TextInput.css.d.ts +1 -0
  18. package/dist/components/TextInput/TextInput.d.ts +5 -0
  19. package/dist/components/Toggle/Toggle.css.d.ts +6 -0
  20. package/dist/components/Toggle/Toggle.d.ts +29 -0
  21. package/dist/components/index.d.ts +2 -0
  22. package/dist/index.cjs +7 -6294
  23. package/dist/index.d.ts +13 -165
  24. package/dist/index.js +590 -5975
  25. package/dist/main.d.ts +0 -0
  26. package/dist/react-neu.css +1 -0
  27. package/dist/styles/colorUtils.d.ts +3 -0
  28. package/dist/styles/neumorphicEngine.d.ts +14 -0
  29. package/dist/styles/theme.css.d.ts +11 -0
  30. package/dist/styles/types.d.ts +31 -0
  31. package/dist/utils/colorUtils.d.ts +3 -0
  32. package/dist/utils/neuEngine.d.ts +13 -0
  33. package/dist/vite.svg +1 -0
  34. package/package.json +9 -8
  35. package/dist/index.d.cts +0 -165
package/dist/App.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ declare function App(): import("react/jsx-runtime").JSX.Element;
2
+ export default App;
@@ -0,0 +1 @@
1
+ export declare const baseButton: string;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { NeuComponentProps } from '../../styles/types';
3
+ export declare const NeuButton: React.FC<NeuComponentProps<HTMLButtonElement>>;
@@ -0,0 +1 @@
1
+ export declare const baseCard: string;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { NeuComponentProps } from '../../styles/types';
3
+ export declare const NeuCard: React.FC<NeuComponentProps<HTMLDivElement>>;
@@ -0,0 +1,5 @@
1
+ export declare const checkboxLabel: string;
2
+ export declare const hiddenInput: string;
3
+ export declare const visualBox: string;
4
+ export declare const iconContainer: string;
5
+ export declare const svgIcon: 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,3 @@
1
+ export declare const iconWrapper: string;
2
+ export declare const layer: string;
3
+ export declare const svgStyle: string;
@@ -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,6 @@
1
+ export declare const radioLabel: string;
2
+ export declare const hiddenRadio: string;
3
+ export declare const visualBox: string;
4
+ export declare const iconContainer: string;
5
+ export declare const radioDot: string;
6
+ export declare const svgIcon: string;
@@ -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,3 @@
1
+ export declare const sliderContainer: string;
2
+ export declare const sliderTrack: string;
3
+ export declare const sliderThumb: string;
@@ -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,5 @@
1
+ import { default as React } from 'react';
2
+ import { NeumorphicProps } from '../../styles/types';
3
+ type TextInputProps = NeumorphicProps & React.InputHTMLAttributes<HTMLInputElement>;
4
+ export declare const NeuTextInput: React.FC<TextInputProps>;
5
+ export {};
@@ -0,0 +1,6 @@
1
+ export declare const switchLabel: string;
2
+ export declare const hiddenInput: string;
3
+ export declare const switchTrack: string;
4
+ export declare const switchThumb: string;
5
+ export declare const iconContainer: string;
6
+ export declare const svgIcon: 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 {};
@@ -0,0 +1,2 @@
1
+ export * from './Button/Button';
2
+ export * from './TextInput/TextInput';