@nurihaus/web-design-system 0.0.25 → 0.0.27
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.d.ts +10 -0
- package/dist/components/badge/badge.d.ts +27 -0
- package/dist/index.html +1 -1
- package/dist/main.js +1507 -0
- package/package.json +2 -2
- package/dist/components/button/base-button.js +0 -34
- package/dist/components/button/cta-button.js +0 -1125
- package/dist/components/core/composer/index.js +0 -107
- package/dist/components/loading/Loading.js +0 -6
- package/dist/index.js +0 -2
- package/dist/styles/token/colors.js +0 -24
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import "./avatar-style.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,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 {};
|
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="main.js"></script></head><body></body></html>
|