@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.
- package/dist/components/avatar/avatar-type.d.ts +7 -0
- package/dist/components/avatar/avatar.d.ts +1 -7
- package/dist/components/badge/badge-type.d.ts +10 -0
- package/dist/components/badge/base-badge.d.ts +2 -0
- package/dist/components/badge/icon-text-badge.d.ts +7 -0
- package/dist/components/badge/icon-text-option-badge.d.ts +9 -0
- package/dist/components/badge/option-badge.d.ts +6 -0
- package/dist/components/button/base-button.d.ts +2 -5
- package/dist/components/button/button-type.d.ts +13 -0
- package/dist/components/button/cta-button.d.ts +1 -9
- package/dist/components/loading/{Loading.d.ts → loading.d.ts} +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.html +1 -1
- package/dist/index.js +1546 -0
- package/package.json +2 -7
- package/dist/components/badge/badge.d.ts +0 -27
- package/dist/main.js +0 -1507
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
1
|
import "./avatar-style.css";
|
|
3
|
-
|
|
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,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;
|
|
@@ -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
|
-
|
|
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 {
|
|
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;
|
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="
|
|
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>
|