@nurihaus/web-design-system 0.0.28 → 1.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.
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from "react";
2
+ export interface AvatarProps {
3
+ size: "xl" | "l" | "m" | "s";
4
+ src?: string;
5
+ alt?: string;
6
+ badgeOption?: ReactNode | string;
7
+ }
@@ -1,10 +1,4 @@
1
- import { ReactNode } from "react";
2
1
  import "./avatar-style.css";
3
- interface AvatarProps {
4
- size: "xl" | "l" | "m" | "s";
5
- src?: string;
6
- alt?: string;
7
- badgeOption?: ReactNode | string;
8
- }
2
+ import { AvatarProps } from "./avatar-type";
9
3
  declare const Avatar: (props: AvatarProps) => import("react/jsx-runtime").JSX.Element;
10
4
  export default Avatar;
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from "react";
2
+ import { colors } from "../../styles/token/colors";
3
+ export interface BaseBadgeProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ borderColor?: keyof typeof colors;
5
+ textColor?: keyof typeof colors;
6
+ backgroundColor?: keyof typeof colors;
7
+ size?: "l" | "m" | "r" | "s" | "sm";
8
+ asChild?: boolean;
9
+ children?: ReactNode;
10
+ }
@@ -0,0 +1,2 @@
1
+ import { BaseBadgeProps } from "./badge-type";
2
+ export declare const BaseBadge: (props: BaseBadgeProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from "react";
2
+ import { BaseBadgeProps } from "./badge-type";
3
+ declare const IconTextBadge: (props: Omit<BaseBadgeProps, "asChild" | "children"> & {
4
+ icon: ReactNode;
5
+ text: ReactNode;
6
+ }) => import("react/jsx-runtime").JSX.Element;
7
+ export default IconTextBadge;
@@ -0,0 +1,9 @@
1
+ import "./badge-style.css";
2
+ import { ReactNode } from "react";
3
+ import { BaseBadgeProps } from "./badge-type";
4
+ declare const IconTextOptionBadge: (props: Omit<BaseBadgeProps, "asChild" | "children"> & {
5
+ icon: ReactNode;
6
+ text: ReactNode;
7
+ option: ReactNode;
8
+ }) => import("react/jsx-runtime").JSX.Element;
9
+ export default IconTextOptionBadge;
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from "react";
2
+ import { BaseBadgeProps } from "./badge-type";
3
+ declare const OptionBadge: (props: Omit<BaseBadgeProps, "asChild" | "children"> & {
4
+ option: ReactNode;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ export default OptionBadge;
@@ -1,9 +1,6 @@
1
- import "./button.css";
1
+ import "./button-style.css";
2
2
  import "../../styles/token/color.css";
3
3
  import "../../styles/token/font.css";
4
- interface BaseButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
5
- children?: React.ReactNode;
6
- asChild?: boolean;
7
- }
4
+ import { BaseButtonProps } from "./button-type";
8
5
  declare const BaseButton: import("react").ForwardRefExoticComponent<BaseButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
9
6
  export default BaseButton;
@@ -0,0 +1,13 @@
1
+ import { ReactNode } from "react";
2
+ export interface BaseButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
3
+ children?: React.ReactNode;
4
+ asChild?: boolean;
5
+ }
6
+ export interface CTAButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
7
+ variant?: "primary" | "secondary" | "ghost" | "white";
8
+ size?: "xl" | "l" | "m" | "r" | "s";
9
+ disabled?: boolean;
10
+ loading?: boolean;
11
+ icon?: ReactNode;
12
+ text: string;
13
+ }
@@ -1,11 +1,3 @@
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
- }
1
+ import { CTAButtonProps } from "./button-type";
10
2
  declare const CTAButton: (props: CTAButtonProps) => import("react/jsx-runtime").JSX.Element;
11
3
  export default CTAButton;
@@ -1,3 +1,3 @@
1
- import "./loading.css";
1
+ import "./loading-style.css";
2
2
  declare const Loading: () => import("react/jsx-runtime").JSX.Element;
3
3
  export default Loading;
package/dist/index.d.ts CHANGED
@@ -1,2 +1,5 @@
1
1
  export { default as Avatar } from "./components/avatar/avatar";
2
2
  export { default as CTAButton } from "./components/button/cta-button";
3
+ export { default as OptionBadge } from "./components/badge/option-badge";
4
+ export { default as IconTextBadge } from "./components/badge/icon-text-badge";
5
+ export { default as IconTextOptionBadge } from "./components/badge/icon-text-option-badge";
package/dist/index.html CHANGED
@@ -1 +1 @@
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="main.js"></script></head><body></body></html>
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>