@enya-learning/nova 0.4.3 → 0.6.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/README.md +8 -19
- package/dist/chunks/dist-fahbq1psobj0ox6s.js +1327 -0
- package/dist/chunks/dist-fahbq1psobj0ox6s.js.map +1 -0
- package/dist/chunks/dist-o8x0ip0z71xkr2oh.js +37 -0
- package/dist/chunks/dist-o8x0ip0z71xkr2oh.js.map +1 -0
- package/dist/components/accordion.js +62 -0
- package/dist/components/accordion.js.map +1 -0
- package/dist/components/alert-dialog.js +108 -0
- package/dist/components/alert-dialog.js.map +1 -0
- package/dist/components/alert.js +49 -0
- package/dist/components/alert.js.map +1 -0
- package/dist/components/aspect-ratio.js +16 -0
- package/dist/components/aspect-ratio.js.map +1 -0
- package/dist/components/avatar.js +58 -0
- package/dist/components/avatar.js.map +1 -0
- package/dist/components/badge.js +33 -0
- package/dist/components/badge.js.map +1 -0
- package/dist/components/box.js +16 -0
- package/dist/components/box.js.map +1 -0
- package/dist/components/breadcrumb.js +85 -0
- package/dist/components/breadcrumb.js.map +1 -0
- package/dist/components/button-group.js +47 -0
- package/dist/components/button-group.js.map +1 -0
- package/dist/components/button.js +48 -3
- package/dist/components/button.js.map +1 -0
- package/dist/components/calendar.js +3004 -0
- package/dist/components/calendar.js.map +1 -0
- package/dist/components/card.js +65 -0
- package/dist/components/card.js.map +1 -0
- package/dist/components/carousel.js +1198 -0
- package/dist/components/carousel.js.map +1 -0
- package/dist/components/chart.js +10596 -0
- package/dist/components/chart.js.map +1 -0
- package/dist/components/checkbox.js +23 -0
- package/dist/components/checkbox.js.map +1 -0
- package/dist/components/collapsible.js +28 -0
- package/dist/components/collapsible.js.map +1 -0
- package/dist/components/combobox.js +192 -0
- package/dist/components/combobox.js.map +1 -0
- package/dist/components/command.js +663 -0
- package/dist/components/command.js.map +1 -0
- package/dist/components/context-menu.js +153 -0
- package/dist/components/context-menu.js.map +1 -0
- package/dist/components/dialog.js +104 -0
- package/dist/components/dialog.js.map +1 -0
- package/dist/components/direction.js +6 -0
- package/dist/components/drawer.js +1042 -0
- package/dist/components/drawer.js.map +1 -0
- package/dist/components/dropdown-menu.js +157 -0
- package/dist/components/dropdown-menu.js.map +1 -0
- package/dist/components/empty.js +67 -0
- package/dist/components/empty.js.map +1 -0
- package/dist/components/enya-logo.js +42 -42
- package/dist/components/enya-logo.js.map +1 -1
- package/dist/components/field.js +119 -0
- package/dist/components/field.js.map +1 -0
- package/dist/components/heading.js +39 -0
- package/dist/components/heading.js.map +1 -0
- package/dist/components/hover-card.js +40 -0
- package/dist/components/hover-card.js.map +1 -0
- package/dist/components/input-group.js +85 -0
- package/dist/components/input-group.js.map +1 -0
- package/dist/components/input-otp.js +417 -0
- package/dist/components/input-otp.js.map +1 -0
- package/dist/components/input.js +18 -0
- package/dist/components/input.js.map +1 -0
- package/dist/components/item.js +133 -0
- package/dist/components/item.js.map +1 -0
- package/dist/components/kbd.js +23 -0
- package/dist/components/kbd.js.map +1 -0
- package/dist/components/label.js +16 -0
- package/dist/components/label.js.map +1 -0
- package/dist/components/menubar.js +154 -0
- package/dist/components/menubar.js.map +1 -0
- package/dist/components/native-select.js +45 -0
- package/dist/components/native-select.js.map +1 -0
- package/dist/components/navigation-menu.js +95 -0
- package/dist/components/navigation-menu.js.map +1 -0
- package/dist/components/pagination.js +98 -0
- package/dist/components/pagination.js.map +1 -0
- package/dist/components/popover.js +62 -0
- package/dist/components/popover.js.map +1 -0
- package/dist/components/progress.js +50 -0
- package/dist/components/progress.js.map +1 -0
- package/dist/components/radio-group.js +30 -0
- package/dist/components/radio-group.js.map +1 -0
- package/dist/components/resizable.js +1562 -0
- package/dist/components/resizable.js.map +1 -0
- package/dist/components/scroll-area.js +40 -0
- package/dist/components/scroll-area.js.map +1 -0
- package/dist/components/select.js +116 -0
- package/dist/components/select.js.map +1 -0
- package/dist/components/separator.js +17 -0
- package/dist/components/separator.js.map +1 -0
- package/dist/components/sheet.js +99 -0
- package/dist/components/sheet.js.map +1 -0
- package/dist/components/sidebar.js +399 -0
- package/dist/components/sidebar.js.map +1 -0
- package/dist/components/skeleton.js +15 -0
- package/dist/components/skeleton.js.map +1 -0
- package/dist/components/slider.js +36 -0
- package/dist/components/slider.js.map +1 -0
- package/dist/components/sonner.js +738 -0
- package/dist/components/sonner.js.map +1 -0
- package/dist/components/spinner.js +19 -0
- package/dist/components/spinner.js.map +1 -0
- package/dist/components/switch.js +21 -0
- package/dist/components/switch.js.map +1 -0
- package/dist/components/table.js +76 -0
- package/dist/components/table.js.map +1 -0
- package/dist/components/tabs.js +51 -0
- package/dist/components/tabs.js.map +1 -0
- package/dist/components/text.js +47 -0
- package/dist/components/text.js.map +1 -0
- package/dist/components/textarea.js +16 -0
- package/dist/components/textarea.js.map +1 -0
- package/dist/components/toggle-group.js +55 -0
- package/dist/components/toggle-group.js.map +1 -0
- package/dist/components/toggle.js +39 -0
- package/dist/components/toggle.js.map +1 -0
- package/dist/components/tooltip.js +46 -0
- package/dist/components/tooltip.js.map +1 -0
- package/dist/index.js +25 -23241
- package/dist/src/components/badge/badge.d.ts +1 -1
- package/dist/src/components/box/box.d.ts +7 -0
- package/dist/src/components/box/index.d.ts +1 -0
- package/dist/src/components/button/button.d.ts +1 -1
- package/dist/src/components/heading/heading.d.ts +15 -0
- package/dist/src/components/heading/index.d.ts +1 -0
- package/dist/src/components/item/item.d.ts +1 -1
- package/dist/src/components/spinner/spinner.d.ts +2 -1
- package/dist/src/components/tabs/tabs.d.ts +1 -1
- package/dist/src/components/text/index.d.ts +1 -0
- package/dist/src/components/text/text.d.ts +13 -0
- package/dist/src/index.d.ts +4 -53
- package/dist/styles/nova-binding.css +355 -255
- package/dist/styles/nova.css +205 -38
- package/dist/styles/typography.css +22 -130
- package/package.json +31 -10
- package/src/eslint/no-primitive-colors.js +2 -2
- package/src/eslint/no-primitive-colors.test.ts +97 -0
- package/dist/chunks/button-kvgr8g13fe959ju0.js +0 -81
- package/dist/chunks/button-kvgr8g13fe959ju0.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/styles/globals.css +0 -77
- package/dist/styles/theme-nova.css +0 -201
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useRender } from '@base-ui/react/use-render';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
declare const badgeVariants: (props?: ({
|
|
4
|
-
variant?: "
|
|
4
|
+
variant?: "default" | "outline" | "secondary" | "ghost" | "destructive" | "link" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
declare function Badge({ className, variant, render, ...props }: useRender.ComponentProps<"span"> & VariantProps<typeof badgeVariants>): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
7
7
|
export { Badge, badgeVariants };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
type BoxTag = "div" | "nav" | "section" | "article";
|
|
3
|
+
type BoxProps = React.ComponentProps<"div"> & {
|
|
4
|
+
as?: BoxTag;
|
|
5
|
+
};
|
|
6
|
+
declare function Box({ as, className, ...props }: BoxProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { Box };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './box';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Button as ButtonPrimitive } from '@base-ui/react/button';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "
|
|
4
|
+
variant?: "default" | "accent" | "outline" | "secondary" | "ghost" | "destructive" | "link" | null | undefined;
|
|
5
5
|
size?: "default" | "xs" | "sm" | "lg" | "xl" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | "icon-xl" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
declare function Button({ className, variant, size, ...props }: ButtonPrimitive.Props & VariantProps<typeof buttonVariants>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const headingVariants: (props?: ({
|
|
4
|
+
size?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | null | undefined;
|
|
5
|
+
color?: "black" | "grey" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
type HeadingLevel = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
8
|
+
type HeadingProps = React.ComponentProps<"h1"> & {
|
|
9
|
+
as: HeadingLevel;
|
|
10
|
+
size?: HeadingLevel;
|
|
11
|
+
color?: VariantProps<typeof headingVariants>["color"];
|
|
12
|
+
};
|
|
13
|
+
declare function Heading({ as, size, color, className, ...props }: HeadingProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export { Heading, headingVariants };
|
|
15
|
+
export type { HeadingProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './heading';
|
|
@@ -10,7 +10,7 @@ declare const itemVariants: (props?: ({
|
|
|
10
10
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
11
11
|
declare function Item({ className, variant, size, render, ...props }: useRender.ComponentProps<"div"> & VariantProps<typeof itemVariants>): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
12
12
|
declare const itemMediaVariants: (props?: ({
|
|
13
|
-
variant?: "
|
|
13
|
+
variant?: "default" | "icon" | "image" | null | undefined;
|
|
14
14
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
15
15
|
declare function ItemMedia({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof itemMediaVariants>): import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
declare function ItemContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { HugeiconsIcon } from '@hugeicons/react';
|
|
2
|
+
declare function Spinner({ className, ...props }: Omit<React.ComponentProps<typeof HugeiconsIcon>, "icon">): import("react/jsx-runtime").JSX.Element;
|
|
2
3
|
export { Spinner };
|
|
@@ -2,7 +2,7 @@ import { Tabs as TabsPrimitive } from '@base-ui/react/tabs';
|
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
declare function Tabs({ className, orientation, ...props }: TabsPrimitive.Root.Props): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare const tabsListVariants: (props?: ({
|
|
5
|
-
variant?: "
|
|
5
|
+
variant?: "default" | "line" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
declare function TabsList({ className, variant, ...props }: TabsPrimitive.List.Props & VariantProps<typeof tabsListVariants>): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
declare function TabsTrigger({ className, ...props }: TabsPrimitive.Tab.Props): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './text';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const textVariants: (props?: ({
|
|
4
|
+
size?: "xs" | "sm" | "lg" | "xl" | "md" | null | undefined;
|
|
5
|
+
color?: "black" | "grey" | null | undefined;
|
|
6
|
+
weight?: "regular" | "medium" | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
+
type TextTag = "p" | "span";
|
|
9
|
+
type TextProps = React.ComponentProps<"p"> & VariantProps<typeof textVariants> & {
|
|
10
|
+
as?: TextTag;
|
|
11
|
+
};
|
|
12
|
+
declare function Text({ as, size, color, weight, className, ...props }: TextProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export { Text, textVariants };
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,57 +1,8 @@
|
|
|
1
|
-
export * from './components/accordion';
|
|
2
|
-
export * from './components/alert';
|
|
3
|
-
export * from './components/alert-dialog';
|
|
4
|
-
export * from './components/aspect-ratio';
|
|
5
|
-
export * from './components/avatar';
|
|
6
|
-
export * from './components/badge';
|
|
7
|
-
export * from './components/breadcrumb';
|
|
8
1
|
export * from './components/button';
|
|
9
2
|
export * from './components/button-group';
|
|
10
|
-
export * from './components/calendar';
|
|
11
|
-
export * from './components/card';
|
|
12
|
-
export * from './components/carousel';
|
|
13
|
-
export * from './components/chart';
|
|
14
|
-
export * from './components/checkbox';
|
|
15
|
-
export * from './components/collapsible';
|
|
16
|
-
export * from './components/combobox';
|
|
17
|
-
export * from './components/command';
|
|
18
|
-
export * from './components/context-menu';
|
|
19
|
-
export * from './components/dialog';
|
|
20
|
-
export * from './components/direction';
|
|
21
|
-
export * from './components/drawer';
|
|
22
|
-
export * from './components/dropdown-menu';
|
|
23
|
-
export * from './components/empty';
|
|
24
|
-
export * from './components/enya-logo';
|
|
25
|
-
export * from './components/field';
|
|
26
|
-
export * from './components/hover-card';
|
|
27
|
-
export * from './components/input';
|
|
28
|
-
export * from './components/input-group';
|
|
29
|
-
export * from './components/input-otp';
|
|
30
|
-
export * from './components/item';
|
|
31
|
-
export * from './components/kbd';
|
|
32
|
-
export * from './components/label';
|
|
33
|
-
export * from './components/menubar';
|
|
34
|
-
export * from './components/native-select';
|
|
35
|
-
export * from './components/navigation-menu';
|
|
36
|
-
export * from './components/pagination';
|
|
37
|
-
export * from './components/popover';
|
|
38
|
-
export * from './components/progress';
|
|
39
|
-
export * from './components/radio-group';
|
|
40
|
-
export * from './components/resizable';
|
|
41
|
-
export * from './components/scroll-area';
|
|
42
|
-
export * from './components/select';
|
|
43
|
-
export * from './components/separator';
|
|
44
|
-
export * from './components/sheet';
|
|
45
|
-
export * from './components/sidebar';
|
|
46
|
-
export * from './components/skeleton';
|
|
47
|
-
export * from './components/slider';
|
|
48
|
-
export * from './components/sonner';
|
|
49
3
|
export * from './components/spinner';
|
|
50
|
-
export * from './components/
|
|
51
|
-
export * from './components/
|
|
52
|
-
export * from './components/
|
|
53
|
-
export * from './components/
|
|
54
|
-
export * from './components/toggle';
|
|
55
|
-
export * from './components/toggle-group';
|
|
56
|
-
export * from './components/tooltip';
|
|
4
|
+
export * from './components/enya-logo';
|
|
5
|
+
export * from './components/heading';
|
|
6
|
+
export * from './components/text';
|
|
7
|
+
export * from './components/box';
|
|
57
8
|
export * from './utils';
|