@nurihaus/web-design-system 0.0.2 → 0.0.4

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.
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from "react";
2
+ import "./avatar.css";
3
+ interface AvatarProps {
4
+ size: "xl" | "l" | "m" | "s";
5
+ src?: string;
6
+ alt?: string;
7
+ badgeOption?: ReactNode | string;
8
+ }
9
+ declare const Avatar: (props: AvatarProps) => import("react/jsx-runtime").JSX.Element;
10
+ export default Avatar;
@@ -0,0 +1 @@
1
+ export { default as Avatar } from "./avatar";
@@ -0,0 +1,27 @@
1
+ import "./badge.css";
2
+ import { colors } from "../../styles/token/colors";
3
+ import "../../styles/token/color.css";
4
+ import "../../styles/token/font.css";
5
+ import { ReactNode } from "react";
6
+ interface BaseBadgeProps extends React.HTMLAttributes<HTMLDivElement> {
7
+ borderColor?: keyof typeof colors;
8
+ textColor?: keyof typeof colors;
9
+ backgroundColor?: keyof typeof colors;
10
+ size?: "l" | "m" | "r" | "s" | "sm";
11
+ asChild?: boolean;
12
+ children?: ReactNode;
13
+ }
14
+ export declare const BaseBadge: (props: BaseBadgeProps) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const OptionBadge: (props: Omit<BaseBadgeProps, "asChild" | "children"> & {
16
+ option: ReactNode;
17
+ }) => import("react/jsx-runtime").JSX.Element;
18
+ export declare const IconTextBadge: (props: Omit<BaseBadgeProps, "asChild" | "children"> & {
19
+ icon: ReactNode;
20
+ text: ReactNode;
21
+ }) => import("react/jsx-runtime").JSX.Element;
22
+ export declare const IconTextOptionBadge: (props: Omit<BaseBadgeProps, "asChild" | "children"> & {
23
+ icon: ReactNode;
24
+ text: ReactNode;
25
+ option: ReactNode;
26
+ }) => import("react/jsx-runtime").JSX.Element;
27
+ export {};
@@ -0,0 +1,9 @@
1
+ import "./button.css";
2
+ import "../../styles/token/color.css";
3
+ import "../../styles/token/font.css";
4
+ interface BaseButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
5
+ children?: React.ReactNode;
6
+ asChild?: boolean;
7
+ }
8
+ declare const BaseButton: import("react").ForwardRefExoticComponent<BaseButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
9
+ export default BaseButton;
@@ -0,0 +1,11 @@
1
+ import { ReactNode } from "react";
2
+ interface CTAButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
3
+ variant?: "primary" | "secondary" | "ghost" | "white";
4
+ size?: "xl" | "l" | "m" | "r" | "s";
5
+ disabled?: boolean;
6
+ loading?: boolean;
7
+ icon?: ReactNode;
8
+ text: string;
9
+ }
10
+ declare const CTAButton: (props: CTAButtonProps) => import("react/jsx-runtime").JSX.Element;
11
+ export default CTAButton;
@@ -0,0 +1,6 @@
1
+ interface ComposerProps extends React.HTMLAttributes<HTMLElement> {
2
+ children?: React.ReactNode;
3
+ }
4
+ declare const Composer: import("react").ForwardRefExoticComponent<ComposerProps & import("react").RefAttributes<HTMLElement>>;
5
+ export type { ComposerProps };
6
+ export default Composer;
@@ -0,0 +1,3 @@
1
+ import "./loading.css";
2
+ declare const Loading: () => import("react/jsx-runtime").JSX.Element;
3
+ export default Loading;
@@ -0,0 +1 @@
1
+ export { Avatar } from "./components/avatar";
package/dist/index.html CHANGED
@@ -1 +1,10 @@
1
- <!doctype html><html><head><meta charset="utf-8"><title>Development</title><meta name="viewport" content="width=device-width,initial-scale=1"><script defer="defer" src="index.js"></script></head><body></body></html>
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>Getting Started</title>
6
+ </head>
7
+ <body>
8
+ <script src="main.js"></script>
9
+ </body>
10
+ </html>