@a2v2ai/uikit 0.0.4 → 0.0.6

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.
@@ -1,16 +1,19 @@
1
1
  import * as React from "react";
2
2
  declare const typographyVariants: (props?: ({
3
+ align?: "center" | "left" | "right" | "justify" | null | undefined;
3
4
  variant?: "h5" | "h2" | "h3" | "caption" | "h1" | "h4" | "h6" | "subtitle1" | "subtitle2" | "body1" | "body2" | "body3" | null | undefined;
4
5
  color?: "default" | "main-50" | "main-100" | "main-200" | "main-300" | "main-400" | "main-500" | "main-600" | "main-700" | "main-800" | "main-900" | "main-950" | "success-50" | "success-100" | "success-200" | "success-300" | "success-400" | "success-500" | "success-600" | "success-700" | "success-800" | "success-900" | "success-950" | "accent-50" | "accent-100" | "accent-200" | "accent-300" | "accent-400" | "accent-500" | "accent-600" | "accent-700" | "accent-800" | "accent-900" | "accent-950" | "error-50" | "error-100" | "error-200" | "error-300" | "error-400" | "error-500" | "error-600" | "error-700" | "error-800" | "error-900" | "error-950" | "warning-50" | "warning-100" | "warning-200" | "warning-300" | "warning-400" | "warning-500" | "warning-600" | "warning-700" | "warning-800" | "warning-900" | "warning-950" | "grey-50" | "grey-100" | "grey-200" | "grey-300" | "grey-400" | "grey-500" | "grey-600" | "grey-700" | "grey-800" | "grey-900" | "grey-950" | null | undefined;
5
6
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
6
7
  type TypographyVariant = "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "subtitle1" | "subtitle2" | "body1" | "body2" | "body3" | "caption";
7
8
  type TypographyColor = "default" | "main-50" | "main-100" | "main-200" | "main-300" | "main-400" | "main-500" | "main-600" | "main-700" | "main-800" | "main-900" | "main-950" | "success-50" | "success-100" | "success-200" | "success-300" | "success-400" | "success-500" | "success-600" | "success-700" | "success-800" | "success-900" | "success-950" | "accent-50" | "accent-100" | "accent-200" | "accent-300" | "accent-400" | "accent-500" | "accent-600" | "accent-700" | "accent-800" | "accent-900" | "accent-950" | "error-50" | "error-100" | "error-200" | "error-300" | "error-400" | "error-500" | "error-600" | "error-700" | "error-800" | "error-900" | "error-950" | "warning-50" | "warning-100" | "warning-200" | "warning-300" | "warning-400" | "warning-500" | "warning-600" | "warning-700" | "warning-800" | "warning-900" | "warning-950" | "grey-50" | "grey-100" | "grey-200" | "grey-300" | "grey-400" | "grey-500" | "grey-600" | "grey-700" | "grey-800" | "grey-900" | "grey-950";
9
+ type TypographyAlign = "left" | "center" | "right" | "justify";
8
10
  type TypographyProps<T extends React.ElementType = "p"> = {
9
11
  as?: T;
10
12
  asChild?: boolean;
11
13
  variant?: TypographyVariant;
12
14
  color?: TypographyColor;
13
- } & Omit<React.ComponentPropsWithoutRef<T>, "as" | "asChild" | "color" | "variant">;
14
- declare function Typography<T extends React.ElementType = "p">({ className, variant, color, as, asChild, ...props }: TypographyProps<T>): import("react/jsx-runtime").JSX.Element;
15
+ align?: TypographyAlign;
16
+ } & Omit<React.ComponentPropsWithoutRef<T>, "as" | "asChild" | "color" | "variant" | "align">;
17
+ declare function Typography<T extends React.ElementType = "p">({ className, variant, color, align, as, asChild, ...props }: TypographyProps<T>): import("react/jsx-runtime").JSX.Element;
15
18
  export { Typography, typographyVariants };
16
- export type { TypographyVariant, TypographyColor };
19
+ export type { TypographyVariant, TypographyColor, TypographyAlign };
@@ -8,6 +8,12 @@ const class_variance_authority_1 = require("class-variance-authority");
8
8
  const utils_1 = require("../lib/utils");
9
9
  const typographyVariants = (0, class_variance_authority_1.cva)("", {
10
10
  variants: {
11
+ align: {
12
+ left: "text-left",
13
+ center: "text-center",
14
+ right: "text-right",
15
+ justify: "text-justify",
16
+ },
11
17
  variant: {
12
18
  h1: "font-extrabold text-[64px] leading-none tracking-normal font-sans",
13
19
  h2: "font-bold text-[48px] leading-none tracking-normal font-sans",
@@ -118,8 +124,8 @@ const variantElementMap = {
118
124
  body3: "p",
119
125
  caption: "span",
120
126
  };
121
- function Typography({ className, variant = "body1", color = "default", as, asChild = false, ...props }) {
127
+ function Typography({ className, variant = "body1", color = "default", align, as, asChild = false, ...props }) {
122
128
  const defaultElement = variant ? variantElementMap[variant] : "p";
123
129
  const Component = asChild ? react_slot_1.Slot : (as ?? defaultElement);
124
- return ((0, jsx_runtime_1.jsx)(Component, { "data-slot": "typography", className: (0, utils_1.cn)(typographyVariants({ variant, color, className })), ...props }));
130
+ return ((0, jsx_runtime_1.jsx)(Component, { "data-slot": "typography", className: (0, utils_1.cn)(typographyVariants({ variant, color, align, className })), ...props }));
125
131
  }
package/index.css CHANGED
@@ -85,6 +85,20 @@
85
85
  --color-error-900: #7f1d1d;
86
86
  --color-error-950: #450a0a;
87
87
 
88
+ /* Accent colors */
89
+ --color-accent-50: #EFF6FF;
90
+ --color-accent-100: #DBEAFE;
91
+ --color-accent-200: #BFDBFE;
92
+ --color-accent-300: #93C5FD;
93
+ --color-accent-400: #60A5FA;
94
+ --color-accent-500: #3B82F6;
95
+ --color-accent-600: #2563EB;
96
+ --color-accent-700: #1D4ED8;
97
+ --color-accent-800: #1E40AF;
98
+ --color-accent-900: #1E3A8A;
99
+ --color-accent-950: #172554;
100
+
101
+
88
102
  /* Info colors */
89
103
  --color-info-50: #f0f9ff;
90
104
  --color-info-100: #e0f2fe;
@@ -98,6 +112,13 @@
98
112
  --color-info-900: #0c4a6e;
99
113
  --color-info-950: #082f49;
100
114
 
115
+ /* Neutral colors */
116
+ --color-background-neutral-0: #ffffff;
117
+ --color-background-neutral-50: #ededed;
118
+ --color-background-neutral-100: #f2f2f2;
119
+ --color-background-neutral-200: #f9f9f9;
120
+ --color-background-neutral-300: #fcfcfc;
121
+
101
122
  /* Border radius */
102
123
  --radius-sm: 0.25rem;
103
124
  --radius-md: 0.375rem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a2v2ai/uikit",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "author": "Arulraj V & abofficial1997@gmail.com",
5
5
  "description": "A React UI component library built with shadcn/ui and Tailwind CSS",
6
6
  "license": "MIT",