@deckai/deck-ui 0.0.13 → 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.
Files changed (221) hide show
  1. package/README.md +4 -2
  2. package/dist/components/AboutCard.cjs +1 -9
  3. package/dist/components/AboutCard.cjs.map +1 -1
  4. package/dist/components/AboutCard.js +1 -9
  5. package/dist/components/AboutCard.js.map +1 -1
  6. package/dist/components/Accordion.cjs +2 -0
  7. package/dist/components/Accordion.cjs.map +1 -0
  8. package/dist/components/Accordion.js +2 -0
  9. package/dist/components/Accordion.js.map +1 -0
  10. package/dist/components/AddWorkCard.cjs +117 -0
  11. package/dist/components/AddWorkCard.cjs.map +1 -0
  12. package/dist/components/AddWorkCard.js +117 -0
  13. package/dist/components/AddWorkCard.js.map +1 -0
  14. package/dist/components/Avatar.cjs +1 -1
  15. package/dist/components/Avatar.cjs.map +1 -1
  16. package/dist/components/Avatar.js +1 -1
  17. package/dist/components/Avatar.js.map +1 -1
  18. package/dist/components/Badge.cjs +1 -1
  19. package/dist/components/Badge.cjs.map +1 -1
  20. package/dist/components/Badge.js +1 -1
  21. package/dist/components/Badge.js.map +1 -1
  22. package/dist/components/Breadcrumbs.cjs +1 -1
  23. package/dist/components/Breadcrumbs.cjs.map +1 -1
  24. package/dist/components/Breadcrumbs.js +1 -1
  25. package/dist/components/Breadcrumbs.js.map +1 -1
  26. package/dist/components/Button.cjs +2 -2
  27. package/dist/components/Button.cjs.map +1 -1
  28. package/dist/components/Button.js +2 -2
  29. package/dist/components/Button.js.map +1 -1
  30. package/dist/components/Carousel.cjs +2 -0
  31. package/dist/components/Carousel.cjs.map +1 -0
  32. package/dist/components/Carousel.js +2 -0
  33. package/dist/components/Carousel.js.map +1 -0
  34. package/dist/components/Collapsible.cjs +1 -1
  35. package/dist/components/Collapsible.cjs.map +1 -1
  36. package/dist/components/Collapsible.js +1 -1
  37. package/dist/components/Collapsible.js.map +1 -1
  38. package/dist/components/Combobox.cjs +1 -1
  39. package/dist/components/Combobox.cjs.map +1 -1
  40. package/dist/components/Combobox.js +1 -1
  41. package/dist/components/Combobox.js.map +1 -1
  42. package/dist/components/ContactItem.cjs +1 -1
  43. package/dist/components/ContactItem.cjs.map +1 -1
  44. package/dist/components/ContactItem.js +1 -1
  45. package/dist/components/ContactItem.js.map +1 -1
  46. package/dist/components/Dropdown.cjs +2 -0
  47. package/dist/components/Dropdown.cjs.map +1 -0
  48. package/dist/components/Dropdown.js +2 -0
  49. package/dist/components/Dropdown.js.map +1 -0
  50. package/dist/components/EditButton.cjs +2 -2
  51. package/dist/components/EditButton.cjs.map +1 -1
  52. package/dist/components/EditButton.js +2 -2
  53. package/dist/components/EditButton.js.map +1 -1
  54. package/dist/components/Icon.cjs +1 -1
  55. package/dist/components/Icon.cjs.map +1 -1
  56. package/dist/components/Icon.js +1 -1
  57. package/dist/components/Icon.js.map +1 -1
  58. package/dist/components/Input.cjs +1 -1
  59. package/dist/components/Input.cjs.map +1 -1
  60. package/dist/components/Input.js +1 -1
  61. package/dist/components/Input.js.map +1 -1
  62. package/dist/components/Link.cjs +1 -1
  63. package/dist/components/Link.cjs.map +1 -1
  64. package/dist/components/Link.js +1 -1
  65. package/dist/components/Link.js.map +1 -1
  66. package/dist/components/MultiSelectCombobox.cjs +1 -1
  67. package/dist/components/MultiSelectCombobox.cjs.map +1 -1
  68. package/dist/components/MultiSelectCombobox.js +1 -1
  69. package/dist/components/MultiSelectCombobox.js.map +1 -1
  70. package/dist/components/Navbar.cjs +2 -2
  71. package/dist/components/Navbar.cjs.map +1 -1
  72. package/dist/components/Navbar.js +2 -2
  73. package/dist/components/Navbar.js.map +1 -1
  74. package/dist/components/NavbarItem.cjs +1 -1
  75. package/dist/components/NavbarItem.cjs.map +1 -1
  76. package/dist/components/NavbarItem.js +1 -1
  77. package/dist/components/NavbarItem.js.map +1 -1
  78. package/dist/components/Option.cjs +1 -1
  79. package/dist/components/Option.cjs.map +1 -1
  80. package/dist/components/Option.js +1 -1
  81. package/dist/components/Option.js.map +1 -1
  82. package/dist/components/Pressable.cjs +1 -1
  83. package/dist/components/Pressable.cjs.map +1 -1
  84. package/dist/components/Pressable.js +1 -1
  85. package/dist/components/Pressable.js.map +1 -1
  86. package/dist/components/ProfileCard.cjs +1 -9
  87. package/dist/components/ProfileCard.cjs.map +1 -1
  88. package/dist/components/ProfileCard.js +1 -9
  89. package/dist/components/ProfileCard.js.map +1 -1
  90. package/dist/components/ProgressBar.cjs +2 -0
  91. package/dist/components/ProgressBar.cjs.map +1 -0
  92. package/dist/components/ProgressBar.js +2 -0
  93. package/dist/components/ProgressBar.js.map +1 -0
  94. package/dist/components/SegmentedTabs.cjs +10 -0
  95. package/dist/components/SegmentedTabs.cjs.map +1 -0
  96. package/dist/components/SegmentedTabs.js +10 -0
  97. package/dist/components/SegmentedTabs.js.map +1 -0
  98. package/dist/components/Sidebar.cjs +1 -1
  99. package/dist/components/Sidebar.cjs.map +1 -1
  100. package/dist/components/Sidebar.js +1 -1
  101. package/dist/components/Sidebar.js.map +1 -1
  102. package/dist/components/SocialCard.cjs +1 -1
  103. package/dist/components/SocialCard.cjs.map +1 -1
  104. package/dist/components/SocialCard.js +1 -1
  105. package/dist/components/SocialCard.js.map +1 -1
  106. package/dist/components/Spinner.cjs +1 -1
  107. package/dist/components/Spinner.cjs.map +1 -1
  108. package/dist/components/Spinner.js +1 -1
  109. package/dist/components/Spinner.js.map +1 -1
  110. package/dist/components/Switch.cjs +1 -1
  111. package/dist/components/Switch.cjs.map +1 -1
  112. package/dist/components/Switch.js +1 -1
  113. package/dist/components/Switch.js.map +1 -1
  114. package/dist/components/Tabs.cjs +9 -1
  115. package/dist/components/Tabs.cjs.map +1 -1
  116. package/dist/components/Tabs.js +9 -1
  117. package/dist/components/Tabs.js.map +1 -1
  118. package/dist/components/Tag.cjs +1 -1
  119. package/dist/components/Tag.cjs.map +1 -1
  120. package/dist/components/Tag.js +1 -1
  121. package/dist/components/Tag.js.map +1 -1
  122. package/dist/components/Text.cjs +1 -1
  123. package/dist/components/Text.cjs.map +1 -1
  124. package/dist/components/Text.js +1 -1
  125. package/dist/components/Text.js.map +1 -1
  126. package/dist/components/TextArea.cjs +1 -1
  127. package/dist/components/TextArea.cjs.map +1 -1
  128. package/dist/components/TextArea.js +1 -1
  129. package/dist/components/TextArea.js.map +1 -1
  130. package/dist/components/Toast.cjs +10 -0
  131. package/dist/components/Toast.cjs.map +1 -0
  132. package/dist/components/Toast.js +10 -0
  133. package/dist/components/Toast.js.map +1 -0
  134. package/dist/components/ToastProvider.cjs +2 -0
  135. package/dist/components/ToastProvider.cjs.map +1 -0
  136. package/dist/components/ToastProvider.js +2 -0
  137. package/dist/components/ToastProvider.js.map +1 -0
  138. package/dist/components/Tooltip.cjs +1 -1
  139. package/dist/components/Tooltip.cjs.map +1 -1
  140. package/dist/components/Tooltip.js +1 -1
  141. package/dist/components/Tooltip.js.map +1 -1
  142. package/dist/components/WorkCard.cjs +1 -1
  143. package/dist/components/WorkCard.cjs.map +1 -1
  144. package/dist/components/WorkCard.js +1 -1
  145. package/dist/components/WorkCard.js.map +1 -1
  146. package/dist/index.cjs +111 -3
  147. package/dist/index.cjs.map +1 -1
  148. package/dist/index.js +111 -3
  149. package/dist/index.js.map +1 -1
  150. package/dist/styles/styles.css +1 -1
  151. package/package.json +7 -2
  152. package/dist/components/AboutCard.d.cts +0 -13
  153. package/dist/components/AboutCard.d.ts +0 -13
  154. package/dist/components/Avatar.d.cts +0 -12
  155. package/dist/components/Avatar.d.ts +0 -12
  156. package/dist/components/Badge.d.cts +0 -13
  157. package/dist/components/Badge.d.ts +0 -13
  158. package/dist/components/Breadcrumbs.d.cts +0 -15
  159. package/dist/components/Breadcrumbs.d.ts +0 -15
  160. package/dist/components/Button.d.cts +0 -38
  161. package/dist/components/Button.d.ts +0 -38
  162. package/dist/components/Collapsible.d.cts +0 -12
  163. package/dist/components/Collapsible.d.ts +0 -12
  164. package/dist/components/Combobox.d.cts +0 -20
  165. package/dist/components/Combobox.d.ts +0 -20
  166. package/dist/components/ContactItem.d.cts +0 -10
  167. package/dist/components/ContactItem.d.ts +0 -10
  168. package/dist/components/EditButton.d.cts +0 -12
  169. package/dist/components/EditButton.d.ts +0 -12
  170. package/dist/components/Icon.d.cts +0 -19
  171. package/dist/components/Icon.d.ts +0 -19
  172. package/dist/components/IconRenderer.d.cts +0 -13
  173. package/dist/components/IconRenderer.d.ts +0 -13
  174. package/dist/components/Illustration.d.cts +0 -10
  175. package/dist/components/Illustration.d.ts +0 -10
  176. package/dist/components/Input.d.cts +0 -18
  177. package/dist/components/Input.d.ts +0 -18
  178. package/dist/components/Link.d.cts +0 -13
  179. package/dist/components/Link.d.ts +0 -13
  180. package/dist/components/Logo.d.cts +0 -8
  181. package/dist/components/Logo.d.ts +0 -8
  182. package/dist/components/MultiSelectCombobox.d.cts +0 -21
  183. package/dist/components/MultiSelectCombobox.d.ts +0 -21
  184. package/dist/components/Navbar.d.cts +0 -19
  185. package/dist/components/Navbar.d.ts +0 -19
  186. package/dist/components/NavbarItem.d.cts +0 -13
  187. package/dist/components/NavbarItem.d.ts +0 -13
  188. package/dist/components/Option.d.cts +0 -11
  189. package/dist/components/Option.d.ts +0 -11
  190. package/dist/components/Pressable.d.cts +0 -6
  191. package/dist/components/Pressable.d.ts +0 -6
  192. package/dist/components/ProfileCard.d.cts +0 -17
  193. package/dist/components/ProfileCard.d.ts +0 -17
  194. package/dist/components/Sidebar.d.cts +0 -37
  195. package/dist/components/Sidebar.d.ts +0 -37
  196. package/dist/components/SocialCard.d.cts +0 -12
  197. package/dist/components/SocialCard.d.ts +0 -12
  198. package/dist/components/Spinner.d.cts +0 -19
  199. package/dist/components/Spinner.d.ts +0 -19
  200. package/dist/components/Switch.d.cts +0 -13
  201. package/dist/components/Switch.d.ts +0 -13
  202. package/dist/components/Tabs.d.cts +0 -16
  203. package/dist/components/Tabs.d.ts +0 -16
  204. package/dist/components/Tag.d.cts +0 -12
  205. package/dist/components/Tag.d.ts +0 -12
  206. package/dist/components/Text.d.cts +0 -46
  207. package/dist/components/Text.d.ts +0 -46
  208. package/dist/components/TextArea.d.cts +0 -19
  209. package/dist/components/TextArea.d.ts +0 -19
  210. package/dist/components/Tooltip.d.cts +0 -13
  211. package/dist/components/Tooltip.d.ts +0 -13
  212. package/dist/components/WorkCard.d.cts +0 -13
  213. package/dist/components/WorkCard.d.ts +0 -13
  214. package/dist/index.d.cts +0 -153
  215. package/dist/index.d.ts +0 -153
  216. package/dist/styles/fonts.d.cts +0 -2
  217. package/dist/styles/fonts.d.ts +0 -2
  218. package/dist/styles/styles.d.cts +0 -2
  219. package/dist/styles/styles.d.ts +0 -2
  220. package/dist/tailwind-CIZ10fKA.d.cts +0 -36
  221. package/dist/tailwind-CIZ10fKA.d.ts +0 -36
@@ -1,18 +0,0 @@
1
- import * as React from 'react';
2
- import { IconName } from '@deckai/icons';
3
- import { IconProps } from './Icon.js';
4
- import '../tailwind-CIZ10fKA.js';
5
-
6
- type InputProps = {
7
- className?: string;
8
- end?: React.ReactNode;
9
- /** renders an icon in the end slot */
10
- iconName?: IconName;
11
- /** Label text for the input */
12
- label?: string;
13
- /** Additional classes for the label */
14
- labelClassName?: string;
15
- } & React.InputHTMLAttributes<HTMLInputElement> & Pick<IconProps, "color" | "size" | "title">;
16
- declare const Input: ({ className, end, iconName, color, size, title, label, labelClassName, id, ...props }: InputProps) => React.JSX.Element;
17
-
18
- export { Input, type InputProps };
@@ -1,13 +0,0 @@
1
- import React__default from 'react';
2
- import { TextProps } from './Text.cjs';
3
- import '../tailwind-CIZ10fKA.cjs';
4
-
5
- type LinkProps = {
6
- href: string;
7
- children: React__default.ReactNode;
8
- className?: string;
9
- style?: React__default.CSSProperties;
10
- } & Pick<TextProps, "variant" | "color"> & React__default.AnchorHTMLAttributes<HTMLAnchorElement>;
11
- declare const Link: ({ children, color, variant, href, className, ...props }: LinkProps) => React__default.JSX.Element;
12
-
13
- export { Link, type LinkProps };
@@ -1,13 +0,0 @@
1
- import React__default from 'react';
2
- import { TextProps } from './Text.js';
3
- import '../tailwind-CIZ10fKA.js';
4
-
5
- type LinkProps = {
6
- href: string;
7
- children: React__default.ReactNode;
8
- className?: string;
9
- style?: React__default.CSSProperties;
10
- } & Pick<TextProps, "variant" | "color"> & React__default.AnchorHTMLAttributes<HTMLAnchorElement>;
11
- declare const Link: ({ children, color, variant, href, className, ...props }: LinkProps) => React__default.JSX.Element;
12
-
13
- export { Link, type LinkProps };
@@ -1,8 +0,0 @@
1
- import React__default from 'react';
2
-
3
- type LogoProps = {
4
- className?: string;
5
- };
6
- declare const Logo: ({ className }: LogoProps) => React__default.JSX.Element;
7
-
8
- export { Logo, type LogoProps };
@@ -1,8 +0,0 @@
1
- import React__default from 'react';
2
-
3
- type LogoProps = {
4
- className?: string;
5
- };
6
- declare const Logo: ({ className }: LogoProps) => React__default.JSX.Element;
7
-
8
- export { Logo, type LogoProps };
@@ -1,21 +0,0 @@
1
- import React__default from 'react';
2
- import { OptionProps } from './Option.cjs';
3
-
4
- type MultiSelectComboboxProps = {
5
- options: OptionProps[];
6
- selectedValues: string[];
7
- onSelectionChange: (values: string[]) => void;
8
- placeholder?: string;
9
- className?: string;
10
- label?: string;
11
- disabled?: boolean;
12
- labelClassName?: string;
13
- id?: string;
14
- maxSelections?: number;
15
- noOptionsMessage?: string;
16
- loading?: boolean;
17
- errorMessage?: string;
18
- };
19
- declare const MultiSelectCombobox: ({ options, selectedValues, onSelectionChange, placeholder, className, label, labelClassName, id, maxSelections, disabled, noOptionsMessage, loading, errorMessage }: MultiSelectComboboxProps) => React__default.JSX.Element;
20
-
21
- export { MultiSelectCombobox, type MultiSelectComboboxProps };
@@ -1,21 +0,0 @@
1
- import React__default from 'react';
2
- import { OptionProps } from './Option.js';
3
-
4
- type MultiSelectComboboxProps = {
5
- options: OptionProps[];
6
- selectedValues: string[];
7
- onSelectionChange: (values: string[]) => void;
8
- placeholder?: string;
9
- className?: string;
10
- label?: string;
11
- disabled?: boolean;
12
- labelClassName?: string;
13
- id?: string;
14
- maxSelections?: number;
15
- noOptionsMessage?: string;
16
- loading?: boolean;
17
- errorMessage?: string;
18
- };
19
- declare const MultiSelectCombobox: ({ options, selectedValues, onSelectionChange, placeholder, className, label, labelClassName, id, maxSelections, disabled, noOptionsMessage, loading, errorMessage }: MultiSelectComboboxProps) => React__default.JSX.Element;
20
-
21
- export { MultiSelectCombobox, type MultiSelectComboboxProps };
@@ -1,19 +0,0 @@
1
- import React__default from 'react';
2
- import { OptionProps } from './Option.cjs';
3
- import { NavbarItemProps } from './NavbarItem.cjs';
4
- import '@deckai/icons';
5
- import './Icon.cjs';
6
- import '../tailwind-CIZ10fKA.cjs';
7
- import './Pressable.cjs';
8
-
9
- type NavbarProps = {
10
- searchOptions: OptionProps[];
11
- onSearchChange: (value: string) => void;
12
- navbarItems: NavbarItemProps[];
13
- onLogoClick?: () => void;
14
- onProfileClick?: () => void;
15
- avatarImage: string;
16
- };
17
- declare const Navbar: ({ searchOptions, onSearchChange, navbarItems, onLogoClick, onProfileClick, avatarImage }: NavbarProps) => React__default.JSX.Element;
18
-
19
- export { Navbar, type NavbarProps };
@@ -1,19 +0,0 @@
1
- import React__default from 'react';
2
- import { OptionProps } from './Option.js';
3
- import { NavbarItemProps } from './NavbarItem.js';
4
- import '@deckai/icons';
5
- import './Icon.js';
6
- import '../tailwind-CIZ10fKA.js';
7
- import './Pressable.js';
8
-
9
- type NavbarProps = {
10
- searchOptions: OptionProps[];
11
- onSearchChange: (value: string) => void;
12
- navbarItems: NavbarItemProps[];
13
- onLogoClick?: () => void;
14
- onProfileClick?: () => void;
15
- avatarImage: string;
16
- };
17
- declare const Navbar: ({ searchOptions, onSearchChange, navbarItems, onLogoClick, onProfileClick, avatarImage }: NavbarProps) => React__default.JSX.Element;
18
-
19
- export { Navbar, type NavbarProps };
@@ -1,13 +0,0 @@
1
- import React__default from 'react';
2
- import { IconName } from '@deckai/icons';
3
- import { IconProps } from './Icon.cjs';
4
- import { PressableProps } from './Pressable.cjs';
5
- import '../tailwind-CIZ10fKA.cjs';
6
-
7
- type NavbarItemProps = {
8
- iconName: IconName;
9
- hasNotification?: boolean;
10
- } & Pick<IconProps, "color" | "title"> & PressableProps;
11
- declare const NavbarItem: ({ iconName, hasNotification, color, title, ...props }: NavbarItemProps) => React__default.JSX.Element;
12
-
13
- export { NavbarItem, type NavbarItemProps };
@@ -1,13 +0,0 @@
1
- import React__default from 'react';
2
- import { IconName } from '@deckai/icons';
3
- import { IconProps } from './Icon.js';
4
- import { PressableProps } from './Pressable.js';
5
- import '../tailwind-CIZ10fKA.js';
6
-
7
- type NavbarItemProps = {
8
- iconName: IconName;
9
- hasNotification?: boolean;
10
- } & Pick<IconProps, "color" | "title"> & PressableProps;
11
- declare const NavbarItem: ({ iconName, hasNotification, color, title, ...props }: NavbarItemProps) => React__default.JSX.Element;
12
-
13
- export { NavbarItem, type NavbarItemProps };
@@ -1,11 +0,0 @@
1
- import React__default from 'react';
2
-
3
- type OptionProps = {
4
- label: string;
5
- value: string;
6
- onChange?: (value: string) => void;
7
- selected?: boolean;
8
- };
9
- declare const Option: ({ value, label, onChange, selected }: OptionProps) => React__default.JSX.Element;
10
-
11
- export { Option, type OptionProps };
@@ -1,11 +0,0 @@
1
- import React__default from 'react';
2
-
3
- type OptionProps = {
4
- label: string;
5
- value: string;
6
- onChange?: (value: string) => void;
7
- selected?: boolean;
8
- };
9
- declare const Option: ({ value, label, onChange, selected }: OptionProps) => React__default.JSX.Element;
10
-
11
- export { Option, type OptionProps };
@@ -1,6 +0,0 @@
1
- import React__default, { ButtonHTMLAttributes } from 'react';
2
-
3
- type PressableProps = ButtonHTMLAttributes<HTMLButtonElement>;
4
- declare const Pressable: React__default.FC<PressableProps>;
5
-
6
- export { Pressable, type PressableProps };
@@ -1,6 +0,0 @@
1
- import React__default, { ButtonHTMLAttributes } from 'react';
2
-
3
- type PressableProps = ButtonHTMLAttributes<HTMLButtonElement>;
4
- declare const Pressable: React__default.FC<PressableProps>;
5
-
6
- export { Pressable, type PressableProps };
@@ -1,17 +0,0 @@
1
- import React__default from 'react';
2
- import { BadgeProps } from './Badge.cjs';
3
- import '@deckai/icons';
4
-
5
- type ProfileCardProps = {
6
- profileImage: string;
7
- name: string;
8
- location: string;
9
- memberSince?: string;
10
- interests?: string[];
11
- badges?: BadgeProps[];
12
- isEditMode?: boolean;
13
- onEditClick?: () => void;
14
- };
15
- declare const ProfileCard: ({ profileImage, name, location, memberSince, interests, badges, isEditMode, onEditClick }: ProfileCardProps) => React__default.JSX.Element;
16
-
17
- export { ProfileCard, type ProfileCardProps };
@@ -1,17 +0,0 @@
1
- import React__default from 'react';
2
- import { BadgeProps } from './Badge.js';
3
- import '@deckai/icons';
4
-
5
- type ProfileCardProps = {
6
- profileImage: string;
7
- name: string;
8
- location: string;
9
- memberSince?: string;
10
- interests?: string[];
11
- badges?: BadgeProps[];
12
- isEditMode?: boolean;
13
- onEditClick?: () => void;
14
- };
15
- declare const ProfileCard: ({ profileImage, name, location, memberSince, interests, badges, isEditMode, onEditClick }: ProfileCardProps) => React__default.JSX.Element;
16
-
17
- export { ProfileCard, type ProfileCardProps };
@@ -1,37 +0,0 @@
1
- import React__default, { ReactNode } from 'react';
2
-
3
- type SidebarProps = {
4
- /**
5
- * The content to be rendered inside the sidebar
6
- */
7
- children: ReactNode;
8
- /**
9
- * Whether the sidebar is open
10
- */
11
- open: boolean;
12
- /**
13
- * Callback fired when the sidebar is closed
14
- */
15
- onClose: () => void;
16
- /** @default left */
17
- position?: "left" | "right";
18
- /**
19
- * The width of the sidebar on desktop. Defaults to 480px.
20
- */
21
- width?: number;
22
- /**
23
- * Additional class names to be applied to the sidebar
24
- */
25
- className?: string;
26
- /**
27
- * The title to display in the header
28
- */
29
- title?: string;
30
- /**
31
- * Optional footer content
32
- */
33
- footer?: ReactNode;
34
- };
35
- declare const Sidebar: ({ children, open, onClose, width, className, title, footer, position }: SidebarProps) => React__default.JSX.Element;
36
-
37
- export { Sidebar, type SidebarProps };
@@ -1,37 +0,0 @@
1
- import React__default, { ReactNode } from 'react';
2
-
3
- type SidebarProps = {
4
- /**
5
- * The content to be rendered inside the sidebar
6
- */
7
- children: ReactNode;
8
- /**
9
- * Whether the sidebar is open
10
- */
11
- open: boolean;
12
- /**
13
- * Callback fired when the sidebar is closed
14
- */
15
- onClose: () => void;
16
- /** @default left */
17
- position?: "left" | "right";
18
- /**
19
- * The width of the sidebar on desktop. Defaults to 480px.
20
- */
21
- width?: number;
22
- /**
23
- * Additional class names to be applied to the sidebar
24
- */
25
- className?: string;
26
- /**
27
- * The title to display in the header
28
- */
29
- title?: string;
30
- /**
31
- * Optional footer content
32
- */
33
- footer?: ReactNode;
34
- };
35
- declare const Sidebar: ({ children, open, onClose, width, className, title, footer, position }: SidebarProps) => React__default.JSX.Element;
36
-
37
- export { Sidebar, type SidebarProps };
@@ -1,12 +0,0 @@
1
- import React__default from 'react';
2
- import { PressableProps } from './Pressable.cjs';
3
- import { IconName } from '@deckai/icons';
4
-
5
- type SocialCardProps = {
6
- icon: IconName;
7
- followers: string;
8
- engagement: string;
9
- } & PressableProps;
10
- declare const SocialCard: ({ icon, followers, engagement, ...pressableProps }: SocialCardProps) => React__default.JSX.Element;
11
-
12
- export { SocialCard, type SocialCardProps };
@@ -1,12 +0,0 @@
1
- import React__default from 'react';
2
- import { PressableProps } from './Pressable.js';
3
- import { IconName } from '@deckai/icons';
4
-
5
- type SocialCardProps = {
6
- icon: IconName;
7
- followers: string;
8
- engagement: string;
9
- } & PressableProps;
10
- declare const SocialCard: ({ icon, followers, engagement, ...pressableProps }: SocialCardProps) => React__default.JSX.Element;
11
-
12
- export { SocialCard, type SocialCardProps };
@@ -1,19 +0,0 @@
1
- import * as class_variance_authority_types from 'class-variance-authority/types';
2
- import * as React from 'react';
3
- import { VariantProps } from 'class-variance-authority';
4
-
5
- declare const spinnerVariants: (props?: ({
6
- size?: "lg" | "md" | "sm" | null | undefined;
7
- } & class_variance_authority_types.ClassProp) | undefined) => string;
8
- type SpinnerProps = {
9
- className?: string;
10
- customSize?: number;
11
- } & VariantProps<typeof spinnerVariants>;
12
- declare const Spinner: React.ForwardRefExoticComponent<{
13
- className?: string;
14
- customSize?: number;
15
- } & VariantProps<(props?: ({
16
- size?: "lg" | "md" | "sm" | null | undefined;
17
- } & class_variance_authority_types.ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
18
-
19
- export { Spinner, type SpinnerProps };
@@ -1,19 +0,0 @@
1
- import * as class_variance_authority_types from 'class-variance-authority/types';
2
- import * as React from 'react';
3
- import { VariantProps } from 'class-variance-authority';
4
-
5
- declare const spinnerVariants: (props?: ({
6
- size?: "lg" | "md" | "sm" | null | undefined;
7
- } & class_variance_authority_types.ClassProp) | undefined) => string;
8
- type SpinnerProps = {
9
- className?: string;
10
- customSize?: number;
11
- } & VariantProps<typeof spinnerVariants>;
12
- declare const Spinner: React.ForwardRefExoticComponent<{
13
- className?: string;
14
- customSize?: number;
15
- } & VariantProps<(props?: ({
16
- size?: "lg" | "md" | "sm" | null | undefined;
17
- } & class_variance_authority_types.ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
18
-
19
- export { Spinner, type SpinnerProps };
@@ -1,13 +0,0 @@
1
- import * as React from 'react';
2
- import * as SwitchPrimitive from '@radix-ui/react-switch';
3
-
4
- type SwitchProps = React.ComponentPropsWithoutRef<typeof SwitchPrimitive.Root> & {
5
- label?: string;
6
- description?: string;
7
- };
8
- declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitive.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
9
- label?: string;
10
- description?: string;
11
- } & React.RefAttributes<HTMLButtonElement>>;
12
-
13
- export { Switch, type SwitchProps };
@@ -1,13 +0,0 @@
1
- import * as React from 'react';
2
- import * as SwitchPrimitive from '@radix-ui/react-switch';
3
-
4
- type SwitchProps = React.ComponentPropsWithoutRef<typeof SwitchPrimitive.Root> & {
5
- label?: string;
6
- description?: string;
7
- };
8
- declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitive.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
9
- label?: string;
10
- description?: string;
11
- } & React.RefAttributes<HTMLButtonElement>>;
12
-
13
- export { Switch, type SwitchProps };
@@ -1,16 +0,0 @@
1
- import React__default from 'react';
2
-
3
- type TabItem = {
4
- value: string;
5
- label: string;
6
- content: React__default.ReactNode;
7
- };
8
- type TabsProps = {
9
- items: TabItem[];
10
- defaultValue?: string;
11
- className?: string;
12
- onChange?: (value: string) => void;
13
- };
14
- declare const Tabs: React__default.ForwardRefExoticComponent<TabsProps & React__default.RefAttributes<HTMLDivElement>>;
15
-
16
- export { type TabItem, Tabs, type TabsProps };
@@ -1,16 +0,0 @@
1
- import React__default from 'react';
2
-
3
- type TabItem = {
4
- value: string;
5
- label: string;
6
- content: React__default.ReactNode;
7
- };
8
- type TabsProps = {
9
- items: TabItem[];
10
- defaultValue?: string;
11
- className?: string;
12
- onChange?: (value: string) => void;
13
- };
14
- declare const Tabs: React__default.ForwardRefExoticComponent<TabsProps & React__default.RefAttributes<HTMLDivElement>>;
15
-
16
- export { type TabItem, Tabs, type TabsProps };
@@ -1,12 +0,0 @@
1
- import React__default, { HTMLAttributes } from 'react';
2
- import { PressableProps } from './Pressable.cjs';
3
-
4
- type TagProps = {
5
- children: React__default.ReactNode;
6
- padded?: boolean;
7
- color?: "primary" | "text";
8
- onClose?: () => void;
9
- } & HTMLAttributes<HTMLDivElement> & PressableProps;
10
- declare const Tag: ({ children, color, className, onClose, ...pressableProps }: TagProps) => React__default.JSX.Element;
11
-
12
- export { Tag, type TagProps };
@@ -1,12 +0,0 @@
1
- import React__default, { HTMLAttributes } from 'react';
2
- import { PressableProps } from './Pressable.js';
3
-
4
- type TagProps = {
5
- children: React__default.ReactNode;
6
- padded?: boolean;
7
- color?: "primary" | "text";
8
- onClose?: () => void;
9
- } & HTMLAttributes<HTMLDivElement> & PressableProps;
10
- declare const Tag: ({ children, color, className, onClose, ...pressableProps }: TagProps) => React__default.JSX.Element;
11
-
12
- export { Tag, type TagProps };
@@ -1,46 +0,0 @@
1
- import React__default from 'react';
2
- import { C as Colors, T as TextColorVariant, P as PrimaryShades, S as SecondaryShades, a as TertiaryShades, b as Typography } from '../tailwind-CIZ10fKA.cjs';
3
-
4
- type TextElement = "p" | "span" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "strong" | "em" | "blockquote" | "pre" | "code" | "small" | "label" | "a";
5
- type HTMLPropsMap = {
6
- p: React__default.HTMLAttributes<HTMLParagraphElement>;
7
- span: React__default.HTMLAttributes<HTMLSpanElement>;
8
- h1: React__default.HTMLAttributes<HTMLHeadingElement>;
9
- h2: React__default.HTMLAttributes<HTMLHeadingElement>;
10
- h3: React__default.HTMLAttributes<HTMLHeadingElement>;
11
- h4: React__default.HTMLAttributes<HTMLHeadingElement>;
12
- h5: React__default.HTMLAttributes<HTMLHeadingElement>;
13
- h6: React__default.HTMLAttributes<HTMLHeadingElement>;
14
- strong: React__default.HTMLAttributes<HTMLElement>;
15
- em: React__default.HTMLAttributes<HTMLElement>;
16
- blockquote: React__default.HTMLAttributes<HTMLQuoteElement>;
17
- pre: React__default.HTMLAttributes<HTMLPreElement>;
18
- code: React__default.HTMLAttributes<HTMLElement>;
19
- small: React__default.HTMLAttributes<HTMLElement>;
20
- label: React__default.LabelHTMLAttributes<HTMLLabelElement>;
21
- a: Omit<React__default.AnchorHTMLAttributes<HTMLAnchorElement>, "color">;
22
- };
23
- type ColorCategory = keyof Omit<Colors, "stroke" | "background">;
24
- type ColorValue<T extends ColorCategory> = T extends "text" ? TextColorVariant : T extends "primary" ? keyof PrimaryShades : T extends "secondary" ? keyof SecondaryShades : T extends "tertiary" ? keyof TertiaryShades : never;
25
- type ColorKey = {
26
- [T in ColorCategory]: `${T}-${ColorValue<T>}`;
27
- }[ColorCategory];
28
- type TypographyCategory = keyof Typography;
29
- type TypographyValue<T extends TypographyCategory> = Extract<keyof Typography[T], string | number | bigint | boolean | null | undefined>;
30
- type TypographyKey = {
31
- [T in TypographyCategory]: `${T}-${TypographyValue<T>}`;
32
- }[TypographyCategory];
33
- type Weight = "light" | "regular" | "semibold" | "bold";
34
- type Breakpoint = "sm" | "md" | "lg" | "xl" | "2xl";
35
- type ResponsiveVariant = TypographyKey | `${Breakpoint}:${TypographyKey}`;
36
- type TextProps<T extends TextElement = "p"> = {
37
- variant?: ResponsiveVariant | ResponsiveVariant[];
38
- color?: ColorKey | "inherit";
39
- as?: T;
40
- className?: string;
41
- children: React__default.ReactNode;
42
- weight?: Weight;
43
- } & HTMLPropsMap[T];
44
- declare const Text: React__default.ForwardRefExoticComponent<TextProps<TextElement> & React__default.RefAttributes<HTMLElement | HTMLLabelElement | HTMLParagraphElement | HTMLSpanElement | HTMLHeadingElement | HTMLQuoteElement | HTMLPreElement | HTMLAnchorElement>>;
45
-
46
- export { Text, type TextProps };
@@ -1,46 +0,0 @@
1
- import React__default from 'react';
2
- import { C as Colors, T as TextColorVariant, P as PrimaryShades, S as SecondaryShades, a as TertiaryShades, b as Typography } from '../tailwind-CIZ10fKA.js';
3
-
4
- type TextElement = "p" | "span" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "strong" | "em" | "blockquote" | "pre" | "code" | "small" | "label" | "a";
5
- type HTMLPropsMap = {
6
- p: React__default.HTMLAttributes<HTMLParagraphElement>;
7
- span: React__default.HTMLAttributes<HTMLSpanElement>;
8
- h1: React__default.HTMLAttributes<HTMLHeadingElement>;
9
- h2: React__default.HTMLAttributes<HTMLHeadingElement>;
10
- h3: React__default.HTMLAttributes<HTMLHeadingElement>;
11
- h4: React__default.HTMLAttributes<HTMLHeadingElement>;
12
- h5: React__default.HTMLAttributes<HTMLHeadingElement>;
13
- h6: React__default.HTMLAttributes<HTMLHeadingElement>;
14
- strong: React__default.HTMLAttributes<HTMLElement>;
15
- em: React__default.HTMLAttributes<HTMLElement>;
16
- blockquote: React__default.HTMLAttributes<HTMLQuoteElement>;
17
- pre: React__default.HTMLAttributes<HTMLPreElement>;
18
- code: React__default.HTMLAttributes<HTMLElement>;
19
- small: React__default.HTMLAttributes<HTMLElement>;
20
- label: React__default.LabelHTMLAttributes<HTMLLabelElement>;
21
- a: Omit<React__default.AnchorHTMLAttributes<HTMLAnchorElement>, "color">;
22
- };
23
- type ColorCategory = keyof Omit<Colors, "stroke" | "background">;
24
- type ColorValue<T extends ColorCategory> = T extends "text" ? TextColorVariant : T extends "primary" ? keyof PrimaryShades : T extends "secondary" ? keyof SecondaryShades : T extends "tertiary" ? keyof TertiaryShades : never;
25
- type ColorKey = {
26
- [T in ColorCategory]: `${T}-${ColorValue<T>}`;
27
- }[ColorCategory];
28
- type TypographyCategory = keyof Typography;
29
- type TypographyValue<T extends TypographyCategory> = Extract<keyof Typography[T], string | number | bigint | boolean | null | undefined>;
30
- type TypographyKey = {
31
- [T in TypographyCategory]: `${T}-${TypographyValue<T>}`;
32
- }[TypographyCategory];
33
- type Weight = "light" | "regular" | "semibold" | "bold";
34
- type Breakpoint = "sm" | "md" | "lg" | "xl" | "2xl";
35
- type ResponsiveVariant = TypographyKey | `${Breakpoint}:${TypographyKey}`;
36
- type TextProps<T extends TextElement = "p"> = {
37
- variant?: ResponsiveVariant | ResponsiveVariant[];
38
- color?: ColorKey | "inherit";
39
- as?: T;
40
- className?: string;
41
- children: React__default.ReactNode;
42
- weight?: Weight;
43
- } & HTMLPropsMap[T];
44
- declare const Text: React__default.ForwardRefExoticComponent<TextProps<TextElement> & React__default.RefAttributes<HTMLElement | HTMLLabelElement | HTMLParagraphElement | HTMLSpanElement | HTMLHeadingElement | HTMLQuoteElement | HTMLPreElement | HTMLAnchorElement>>;
45
-
46
- export { Text, type TextProps };
@@ -1,19 +0,0 @@
1
- import * as React from 'react';
2
-
3
- type TextAreaProps = {
4
- /** Additional classes for the container */
5
- className?: string;
6
- /** Label text for the textarea */
7
- label?: string;
8
- /** Additional classes for the label */
9
- labelClassName?: string;
10
- /** Helper text displayed below the textarea */
11
- helperText?: string;
12
- /** Character count display */
13
- showCharacterCount?: boolean;
14
- /** Maximum number of characters */
15
- maxLength?: number;
16
- } & React.TextareaHTMLAttributes<HTMLTextAreaElement>;
17
- declare const TextArea: ({ className, label, labelClassName, helperText, showCharacterCount, maxLength, id, value, defaultValue, ...props }: TextAreaProps) => React.JSX.Element;
18
-
19
- export { TextArea, type TextAreaProps };
@@ -1,19 +0,0 @@
1
- import * as React from 'react';
2
-
3
- type TextAreaProps = {
4
- /** Additional classes for the container */
5
- className?: string;
6
- /** Label text for the textarea */
7
- label?: string;
8
- /** Additional classes for the label */
9
- labelClassName?: string;
10
- /** Helper text displayed below the textarea */
11
- helperText?: string;
12
- /** Character count display */
13
- showCharacterCount?: boolean;
14
- /** Maximum number of characters */
15
- maxLength?: number;
16
- } & React.TextareaHTMLAttributes<HTMLTextAreaElement>;
17
- declare const TextArea: ({ className, label, labelClassName, helperText, showCharacterCount, maxLength, id, value, defaultValue, ...props }: TextAreaProps) => React.JSX.Element;
18
-
19
- export { TextArea, type TextAreaProps };
@@ -1,13 +0,0 @@
1
- import * as React from 'react';
2
-
3
- interface TooltipProps {
4
- content: React.ReactNode;
5
- children: React.ReactNode;
6
- side?: "top" | "right" | "bottom" | "left";
7
- align?: "start" | "center" | "end";
8
- className?: string;
9
- delayDuration?: number;
10
- }
11
- declare const Tooltip: ({ content, children, side, align, className, delayDuration }: TooltipProps) => React.JSX.Element;
12
-
13
- export { Tooltip, type TooltipProps };