@nurihaus/web-design-system 0.0.12 → 0.0.14
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.js +473 -691
- package/package.json +1 -1
- package/dist/components/avatar/avatar.d.ts +0 -10
- package/dist/components/badge/badge.d.ts +0 -27
- package/dist/components/button/base-button.d.ts +0 -9
- package/dist/components/button/cta-button.d.ts +0 -11
- package/dist/components/core/composer/index.d.ts +0 -6
- package/dist/components/loading/Loading.d.ts +0 -3
- package/dist/index.d.ts +0 -2
- package/dist/styles/token/colors.d.ts +0 -24
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
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;
|
|
@@ -1,27 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
|
@@ -1,11 +0,0 @@
|
|
|
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;
|
|
@@ -1,6 +0,0 @@
|
|
|
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;
|
package/dist/index.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export declare const colors: {
|
|
2
|
-
readonly black: "var(--color-primary-black)";
|
|
3
|
-
readonly white: "var(--color-primary-white)";
|
|
4
|
-
readonly grayFa: "var(--color-primary-gray-fa)";
|
|
5
|
-
readonly grayF4: "var(--color-primary-gray-f4)";
|
|
6
|
-
readonly grayE4: "var(--color-primary-gray-e4)";
|
|
7
|
-
readonly grayD4: "var(--color-primary-gray-d4)";
|
|
8
|
-
readonly grayA1: "var(--color-primary-gray-a1)";
|
|
9
|
-
readonly gray71: "var(--color-primary-gray-71)";
|
|
10
|
-
readonly gray52: "var(--color-primary-gray-52)";
|
|
11
|
-
readonly gray3f: "var(--color-primary-gray-3f)";
|
|
12
|
-
readonly gray27: "var(--color-primary-gray-27)";
|
|
13
|
-
readonly gray18: "var(--color-primary-gray-18)";
|
|
14
|
-
readonly purple39: "var(--color-point-purple-39)";
|
|
15
|
-
readonly purple4c: "var(--color-point-purple-4c)";
|
|
16
|
-
readonly purpleDd: "var(--color-point-purple-dd)";
|
|
17
|
-
readonly purpleE9: "var(--color-point-purple-e9)";
|
|
18
|
-
readonly purpleF4: "var(--color-point-purple-f4)";
|
|
19
|
-
readonly purple41: "var(--color-point-purple-41)";
|
|
20
|
-
readonly purple95: "var(--color-point-purple-95)";
|
|
21
|
-
readonly accentRed: "var(--color-accent-red-df)";
|
|
22
|
-
readonly accentMagenta: "var(--color-accent-magenta-b0)";
|
|
23
|
-
readonly accentGreen: "var(--color-accent-green-28)";
|
|
24
|
-
};
|