@neoptocom/neopto-ui 0.9.0 → 0.9.1
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/index.cjs +25 -0
- package/dist/index.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +25 -1
- package/package.json +1 -1
- package/src/components/Card.tsx +35 -0
- package/src/index.ts +2 -0
package/dist/index.cjs
CHANGED
|
@@ -147,6 +147,30 @@ function BackgroundBlur({
|
|
|
147
147
|
}
|
|
148
148
|
);
|
|
149
149
|
}
|
|
150
|
+
function Card({
|
|
151
|
+
children,
|
|
152
|
+
className = "",
|
|
153
|
+
style,
|
|
154
|
+
...props
|
|
155
|
+
}) {
|
|
156
|
+
const mergedStyle = {
|
|
157
|
+
borderRadius: "30px",
|
|
158
|
+
background: "rgba(112, 133, 233, 0.05)",
|
|
159
|
+
backdropFilter: "blur(75px)",
|
|
160
|
+
WebkitBackdropFilter: "blur(75px)",
|
|
161
|
+
// Safari support
|
|
162
|
+
...style
|
|
163
|
+
};
|
|
164
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
165
|
+
"div",
|
|
166
|
+
{
|
|
167
|
+
className: `p-6 ${className}`,
|
|
168
|
+
style: mergedStyle,
|
|
169
|
+
...props,
|
|
170
|
+
children
|
|
171
|
+
}
|
|
172
|
+
);
|
|
173
|
+
}
|
|
150
174
|
var Input = React2__namespace.forwardRef(
|
|
151
175
|
({ className, disabled, ...props }, ref) => {
|
|
152
176
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1211,6 +1235,7 @@ exports.Avatar = Avatar;
|
|
|
1211
1235
|
exports.AvatarGroup = AvatarGroup;
|
|
1212
1236
|
exports.BackgroundBlur = BackgroundBlur;
|
|
1213
1237
|
exports.Button = Button;
|
|
1238
|
+
exports.Card = Card;
|
|
1214
1239
|
exports.ChatButton = ChatButton_default;
|
|
1215
1240
|
exports.Chip = Chip;
|
|
1216
1241
|
exports.Counter = Counter;
|
package/dist/index.d.cts
CHANGED
|
@@ -40,6 +40,14 @@ type BackgroundBlurProps = {
|
|
|
40
40
|
};
|
|
41
41
|
declare function BackgroundBlur({ open, children, onClose, zIndex, className, }: BackgroundBlurProps): react_jsx_runtime.JSX.Element | null;
|
|
42
42
|
|
|
43
|
+
type CardProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
44
|
+
/** Content to render inside the card */
|
|
45
|
+
children: React.ReactNode;
|
|
46
|
+
/** Additional CSS classes */
|
|
47
|
+
className?: string;
|
|
48
|
+
};
|
|
49
|
+
declare function Card({ children, className, style, ...props }: CardProps): react_jsx_runtime.JSX.Element;
|
|
50
|
+
|
|
43
51
|
type InputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'>;
|
|
44
52
|
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
45
53
|
|
|
@@ -273,4 +281,4 @@ interface AnimatedBgRectangleProps {
|
|
|
273
281
|
}
|
|
274
282
|
declare const AnimatedBgRectangle: ({ colors, delay }: AnimatedBgRectangleProps) => react_jsx_runtime.JSX.Element;
|
|
275
283
|
|
|
276
|
-
export { AnimatedBgCircle, AnimatedBgRectangle, AppBackground, type AppBackgroundProps, Autocomplete, type AutocompleteOption, type AutocompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, BackgroundBlur, type BackgroundBlurProps, Button, type ButtonProps, ChatButton, type ChatButtonProps, Chip, type ChipProps, Counter, type CounterProps, Icon, IconButton, type IconButtonProps, type IconProps, Input, type InputProps, Modal, type ModalProps, Search, type SearchOption, type SearchProps, Skeleton, type SkeletonProps, Typo, type TypoProps, type TypoVariant, type TypoWeight, index as assets };
|
|
284
|
+
export { AnimatedBgCircle, AnimatedBgRectangle, AppBackground, type AppBackgroundProps, Autocomplete, type AutocompleteOption, type AutocompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, BackgroundBlur, type BackgroundBlurProps, Button, type ButtonProps, Card, type CardProps, ChatButton, type ChatButtonProps, Chip, type ChipProps, Counter, type CounterProps, Icon, IconButton, type IconButtonProps, type IconProps, Input, type InputProps, Modal, type ModalProps, Search, type SearchOption, type SearchProps, Skeleton, type SkeletonProps, Typo, type TypoProps, type TypoVariant, type TypoWeight, index as assets };
|
package/dist/index.d.ts
CHANGED
|
@@ -40,6 +40,14 @@ type BackgroundBlurProps = {
|
|
|
40
40
|
};
|
|
41
41
|
declare function BackgroundBlur({ open, children, onClose, zIndex, className, }: BackgroundBlurProps): react_jsx_runtime.JSX.Element | null;
|
|
42
42
|
|
|
43
|
+
type CardProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
44
|
+
/** Content to render inside the card */
|
|
45
|
+
children: React.ReactNode;
|
|
46
|
+
/** Additional CSS classes */
|
|
47
|
+
className?: string;
|
|
48
|
+
};
|
|
49
|
+
declare function Card({ children, className, style, ...props }: CardProps): react_jsx_runtime.JSX.Element;
|
|
50
|
+
|
|
43
51
|
type InputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'>;
|
|
44
52
|
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
45
53
|
|
|
@@ -273,4 +281,4 @@ interface AnimatedBgRectangleProps {
|
|
|
273
281
|
}
|
|
274
282
|
declare const AnimatedBgRectangle: ({ colors, delay }: AnimatedBgRectangleProps) => react_jsx_runtime.JSX.Element;
|
|
275
283
|
|
|
276
|
-
export { AnimatedBgCircle, AnimatedBgRectangle, AppBackground, type AppBackgroundProps, Autocomplete, type AutocompleteOption, type AutocompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, BackgroundBlur, type BackgroundBlurProps, Button, type ButtonProps, ChatButton, type ChatButtonProps, Chip, type ChipProps, Counter, type CounterProps, Icon, IconButton, type IconButtonProps, type IconProps, Input, type InputProps, Modal, type ModalProps, Search, type SearchOption, type SearchProps, Skeleton, type SkeletonProps, Typo, type TypoProps, type TypoVariant, type TypoWeight, index as assets };
|
|
284
|
+
export { AnimatedBgCircle, AnimatedBgRectangle, AppBackground, type AppBackgroundProps, Autocomplete, type AutocompleteOption, type AutocompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, BackgroundBlur, type BackgroundBlurProps, Button, type ButtonProps, Card, type CardProps, ChatButton, type ChatButtonProps, Chip, type ChipProps, Counter, type CounterProps, Icon, IconButton, type IconButtonProps, type IconProps, Input, type InputProps, Modal, type ModalProps, Search, type SearchOption, type SearchProps, Skeleton, type SkeletonProps, Typo, type TypoProps, type TypoVariant, type TypoWeight, index as assets };
|
package/dist/index.js
CHANGED
|
@@ -126,6 +126,30 @@ function BackgroundBlur({
|
|
|
126
126
|
}
|
|
127
127
|
);
|
|
128
128
|
}
|
|
129
|
+
function Card({
|
|
130
|
+
children,
|
|
131
|
+
className = "",
|
|
132
|
+
style,
|
|
133
|
+
...props
|
|
134
|
+
}) {
|
|
135
|
+
const mergedStyle = {
|
|
136
|
+
borderRadius: "30px",
|
|
137
|
+
background: "rgba(112, 133, 233, 0.05)",
|
|
138
|
+
backdropFilter: "blur(75px)",
|
|
139
|
+
WebkitBackdropFilter: "blur(75px)",
|
|
140
|
+
// Safari support
|
|
141
|
+
...style
|
|
142
|
+
};
|
|
143
|
+
return /* @__PURE__ */ jsx(
|
|
144
|
+
"div",
|
|
145
|
+
{
|
|
146
|
+
className: `p-6 ${className}`,
|
|
147
|
+
style: mergedStyle,
|
|
148
|
+
...props,
|
|
149
|
+
children
|
|
150
|
+
}
|
|
151
|
+
);
|
|
152
|
+
}
|
|
129
153
|
var Input = React2.forwardRef(
|
|
130
154
|
({ className, disabled, ...props }, ref) => {
|
|
131
155
|
return /* @__PURE__ */ jsx(
|
|
@@ -1182,4 +1206,4 @@ var ChatButton = ({
|
|
|
1182
1206
|
};
|
|
1183
1207
|
var ChatButton_default = ChatButton;
|
|
1184
1208
|
|
|
1185
|
-
export { AnimatedBgCircle_default as AnimatedBgCircle, AnimatedBgRectangle_default as AnimatedBgRectangle, AppBackground, Autocomplete, Avatar, AvatarGroup, BackgroundBlur, Button, ChatButton_default as ChatButton, Chip, Counter, Icon, IconButton, Input, Modal, Search, Skeleton, Typo, assets_exports as assets };
|
|
1209
|
+
export { AnimatedBgCircle_default as AnimatedBgCircle, AnimatedBgRectangle_default as AnimatedBgRectangle, AppBackground, Autocomplete, Avatar, AvatarGroup, BackgroundBlur, Button, Card, ChatButton_default as ChatButton, Chip, Counter, Icon, IconButton, Input, Modal, Search, Skeleton, Typo, assets_exports as assets };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neoptocom/neopto-ui",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A modern React component library built with Tailwind CSS v4 and TypeScript. Features dark mode, design tokens, and comprehensive Storybook documentation. Requires Tailwind v4+.",
|
|
6
6
|
"keywords": [
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
|
|
3
|
+
export type CardProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
4
|
+
/** Content to render inside the card */
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
/** Additional CSS classes */
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export function Card({
|
|
11
|
+
children,
|
|
12
|
+
className = "",
|
|
13
|
+
style,
|
|
14
|
+
...props
|
|
15
|
+
}: CardProps) {
|
|
16
|
+
// Merge user styles with card styles
|
|
17
|
+
const mergedStyle: React.CSSProperties = {
|
|
18
|
+
borderRadius: "30px",
|
|
19
|
+
background: "rgba(112, 133, 233, 0.05)",
|
|
20
|
+
backdropFilter: "blur(75px)",
|
|
21
|
+
WebkitBackdropFilter: "blur(75px)", // Safari support
|
|
22
|
+
...style,
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
return (
|
|
26
|
+
<div
|
|
27
|
+
className={`p-6 ${className}`}
|
|
28
|
+
style={mergedStyle}
|
|
29
|
+
{...props}
|
|
30
|
+
>
|
|
31
|
+
{children}
|
|
32
|
+
</div>
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
|
package/src/index.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * as assets from "./assets";
|
|
|
4
4
|
// Components
|
|
5
5
|
export { AppBackground } from "./components/AppBackground";
|
|
6
6
|
export { BackgroundBlur } from "./components/BackgroundBlur";
|
|
7
|
+
export { Card } from "./components/Card";
|
|
7
8
|
export * from "./components/Input";
|
|
8
9
|
export * from "./components/Modal";
|
|
9
10
|
export { default as Typo } from "./components/Typo";
|
|
@@ -22,6 +23,7 @@ export * from "./components/Chat";
|
|
|
22
23
|
// Types
|
|
23
24
|
export type { AppBackgroundProps } from "./components/AppBackground";
|
|
24
25
|
export type { BackgroundBlurProps } from "./components/BackgroundBlur";
|
|
26
|
+
export type { CardProps } from "./components/Card";
|
|
25
27
|
export type { InputProps } from "./components/Input";
|
|
26
28
|
export type { ModalProps } from "./components/Modal";
|
|
27
29
|
export type { TypoProps, TypoVariant, TypoWeight } from "./components/Typo";
|