@rovula/ui 0.0.14 → 0.0.15

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.
Files changed (30) hide show
  1. package/dist/cjs/bundle.js +3 -3
  2. package/dist/cjs/bundle.js.map +1 -1
  3. package/dist/cjs/types/components/Avatar/Avatar.d.ts +4 -5
  4. package/dist/cjs/types/components/Avatar/Avatar.stories.d.ts +3 -3
  5. package/dist/cjs/types/components/Avatar/Avatar.styles.d.ts +1 -1
  6. package/dist/cjs/types/components/Avatar/index.d.ts +3 -0
  7. package/dist/cjs/types/components/Navbar/Navbar.d.ts +1 -1
  8. package/dist/cjs/types/components/Navbar/Navbar.stories.d.ts +1 -9
  9. package/dist/cjs/types/components/Navbar/index.d.ts +2 -0
  10. package/dist/cjs/types/index.d.ts +5 -0
  11. package/dist/components/Avatar/index.js +3 -0
  12. package/dist/components/Navbar/index.js +2 -0
  13. package/dist/esm/bundle.js +3 -3
  14. package/dist/esm/bundle.js.map +1 -1
  15. package/dist/esm/types/components/Avatar/Avatar.d.ts +4 -5
  16. package/dist/esm/types/components/Avatar/Avatar.stories.d.ts +3 -3
  17. package/dist/esm/types/components/Avatar/Avatar.styles.d.ts +1 -1
  18. package/dist/esm/types/components/Avatar/index.d.ts +3 -0
  19. package/dist/esm/types/components/Navbar/Navbar.d.ts +1 -1
  20. package/dist/esm/types/components/Navbar/Navbar.stories.d.ts +1 -9
  21. package/dist/esm/types/components/Navbar/index.d.ts +2 -0
  22. package/dist/esm/types/index.d.ts +5 -0
  23. package/dist/index.d.ts +52 -2
  24. package/dist/index.js +2 -0
  25. package/package.json +1 -1
  26. package/src/components/Avatar/Avatar.tsx +4 -4
  27. package/src/components/Avatar/index.ts +4 -0
  28. package/src/components/Navbar/Navbar.tsx +1 -1
  29. package/src/components/Navbar/index.ts +3 -0
  30. package/src/index.ts +5 -0
@@ -1,5 +1,4 @@
1
1
  import * as React from "react";
2
- import { AvatarImage } from "./AvatarBase";
3
2
  type BaseAvatarProps = {
4
3
  imageUrl?: string;
5
4
  text?: string;
@@ -13,20 +12,20 @@ type BaseAvatarProps = {
13
12
  fallbackClassName?: string;
14
13
  style?: React.CSSProperties;
15
14
  };
16
- type AvatarText = {
15
+ type AvatarTextProps = {
17
16
  text: string;
18
17
  type: "text";
19
18
  } & BaseAvatarProps;
20
- type AvatarImage = {
19
+ type AvatarImageProps = {
21
20
  imageUrl: string;
22
21
  fallback: React.ReactNode;
23
22
  type: "image";
24
23
  } & BaseAvatarProps;
25
- type AvatarIcon = {
24
+ type AvatarIconProps = {
26
25
  icon: string;
27
26
  type: "icon";
28
27
  } & BaseAvatarProps;
29
- export type AvatarProps = AvatarText | AvatarImage | AvatarIcon;
28
+ export type AvatarProps = AvatarTextProps | AvatarImageProps | AvatarIconProps;
30
29
  export declare const formatAvatarName: (text: string) => string;
31
30
  declare const Avatar: React.FC<AvatarProps>;
32
31
  export default Avatar;
@@ -14,7 +14,7 @@ declare const meta: {
14
14
  fallback?: React.ReactNode;
15
15
  icon?: React.ReactNode;
16
16
  children?: React.ReactNode;
17
- size?: "sm" | "md" | "lg" | "xs" | "xxs" | undefined;
17
+ size?: "sm" | "md" | "lg" | "xxs" | "xs" | undefined;
18
18
  rounded?: "none" | "normal" | "full" | undefined;
19
19
  className?: string | undefined;
20
20
  imageClassName?: string | undefined;
@@ -27,7 +27,7 @@ declare const meta: {
27
27
  text?: string | undefined;
28
28
  icon?: React.ReactNode;
29
29
  children?: React.ReactNode;
30
- size?: "sm" | "md" | "lg" | "xs" | "xxs" | undefined;
30
+ size?: "sm" | "md" | "lg" | "xxs" | "xs" | undefined;
31
31
  rounded?: "none" | "normal" | "full" | undefined;
32
32
  className?: string | undefined;
33
33
  imageClassName?: string | undefined;
@@ -40,7 +40,7 @@ declare const meta: {
40
40
  text?: string | undefined;
41
41
  fallback?: React.ReactNode;
42
42
  children?: React.ReactNode;
43
- size?: "sm" | "md" | "lg" | "xs" | "xxs" | undefined;
43
+ size?: "sm" | "md" | "lg" | "xxs" | "xs" | undefined;
44
44
  rounded?: "none" | "normal" | "full" | undefined;
45
45
  className?: string | undefined;
46
46
  imageClassName?: string | undefined;
@@ -1,4 +1,4 @@
1
1
  export declare const avatarVariants: (props?: ({
2
- size?: "sm" | "md" | "lg" | "xs" | "xxs" | null | undefined;
2
+ size?: "sm" | "md" | "lg" | "xxs" | "xs" | null | undefined;
3
3
  rounded?: "none" | "normal" | "full" | null | undefined;
4
4
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -0,0 +1,3 @@
1
+ import Avatar from "./Avatar";
2
+ import AvatarGroup from "./AvatarGroup";
3
+ export { Avatar, AvatarGroup };
@@ -1,5 +1,5 @@
1
1
  import { FC, ReactNode } from "react";
2
- type NavbarProps = {
2
+ export type NavbarProps = {
3
3
  position?: "static" | "sticky";
4
4
  children?: ReactNode;
5
5
  leftNav?: ReactNode;
@@ -1,15 +1,7 @@
1
1
  import React from "react";
2
2
  declare const meta: {
3
3
  title: string;
4
- component: React.FC<{
5
- position?: "static" | "sticky" | undefined;
6
- children?: React.ReactNode;
7
- leftNav?: React.ReactNode;
8
- rightNav?: React.ReactNode;
9
- center?: React.ReactNode;
10
- container?: boolean | undefined;
11
- className?: string | undefined;
12
- }>;
4
+ component: React.FC<import("./Navbar").NavbarProps>;
13
5
  tags: string[];
14
6
  parameters: {
15
7
  layout: string;
@@ -0,0 +1,2 @@
1
+ import Navbar from "./Navbar";
2
+ export { Navbar };
@@ -7,6 +7,8 @@ export { default as Dropdown } from "./components/Dropdown/Dropdown";
7
7
  export { Checkbox } from "./components/Checkbox/Checkbox";
8
8
  export { Label } from "./components/Label/Label";
9
9
  export { Input } from "./components/Input/Input";
10
+ export { Navbar } from "./components/Navbar";
11
+ export { Avatar, AvatarGroup } from "./components/Avatar";
10
12
  export * from "./components/Table/Table";
11
13
  export * from "./components/DataTable/DataTable";
12
14
  export * from "./components/Dialog/Dialog";
@@ -14,5 +16,8 @@ export * from "./components/AlertDialog/AlertDialog";
14
16
  export type { ButtonProps } from "./components/Button/Button";
15
17
  export type { InputProps } from "./components/TextInput/TextInput";
16
18
  export type { DropdownProps, Options } from "./components/Dropdown/Dropdown";
19
+ export type { NavbarProps } from "./components/Navbar/Navbar";
20
+ export type { AvatarProps } from "./components/Avatar/Avatar";
21
+ export type { AvatarGroupProps } from "./components/Avatar/AvatarGroup";
17
22
  export { resloveTimestamp, getStartDateOfDay, getEndDateOfDay, getStartEndTimestampOfDay, getTimestampUTC, } from "./utils/datetime";
18
23
  export { cn } from "./utils/cn";
@@ -0,0 +1,3 @@
1
+ import Avatar from "./Avatar";
2
+ import AvatarGroup from "./AvatarGroup";
3
+ export { Avatar, AvatarGroup };
@@ -0,0 +1,2 @@
1
+ import Navbar from "./Navbar";
2
+ export { Navbar };