buildgrid-ui 1.1.0-alpha.1 → 1.1.0-alpha.10

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 (104) hide show
  1. package/README.md +1 -1
  2. package/dist/blocks/help-carousel/help-carousel.d.ts +9 -0
  3. package/dist/blocks/help-carousel/index.d.ts +1 -0
  4. package/dist/blocks/index.d.ts +4 -0
  5. package/dist/blocks/month-navigator/index.d.ts +1 -0
  6. package/dist/blocks/month-navigator/month-navigator.d.ts +9 -0
  7. package/dist/blocks/pagination-controls/index.d.ts +1 -0
  8. package/dist/blocks/pagination-controls/pagination-controls.d.ts +7 -0
  9. package/dist/blocks/sidebar/index.d.ts +1 -0
  10. package/dist/blocks/sidebar/sidebar.d.ts +26 -0
  11. package/dist/buildgrid-ui.es.js +13424 -0
  12. package/dist/buildgrid-ui.umd.js +197 -0
  13. package/dist/components/adaptive-input/adaptive-input.d.ts +9 -0
  14. package/dist/components/adaptive-input/index.d.ts +1 -0
  15. package/dist/components/alert-dialog/alert-dialog.d.ts +20 -0
  16. package/dist/components/alert-dialog/index.d.ts +1 -0
  17. package/dist/components/autocomplete/autocomplete.d.ts +14 -0
  18. package/dist/components/autocomplete/index.d.ts +1 -0
  19. package/dist/components/avatar/avatar.d.ts +6 -0
  20. package/dist/components/avatar/index.d.ts +1 -0
  21. package/dist/components/badge/badge.d.ts +9 -0
  22. package/dist/components/badge/index.d.ts +1 -0
  23. package/dist/components/button/button.d.ts +12 -0
  24. package/dist/components/button/index.d.ts +1 -0
  25. package/dist/components/calendar/calendar.d.ts +8 -0
  26. package/dist/components/calendar/index.d.ts +1 -0
  27. package/dist/components/card/card.d.ts +8 -0
  28. package/dist/components/card/index.d.ts +1 -0
  29. package/dist/components/checkbox/checkbox.d.ts +4 -0
  30. package/dist/components/checkbox/index.d.ts +1 -0
  31. package/dist/components/currency-input/currency-input.d.ts +10 -0
  32. package/dist/components/currency-input/index.d.ts +1 -0
  33. package/dist/components/dialog/dialog.d.ts +19 -0
  34. package/dist/components/dialog/index.d.ts +1 -0
  35. package/dist/components/dropdown-menu/dropdown-menu.d.ts +27 -0
  36. package/dist/components/dropdown-menu/index.d.ts +1 -0
  37. package/dist/components/index.d.ts +30 -0
  38. package/dist/components/input/index.d.ts +1 -0
  39. package/dist/components/input/input.d.ts +9 -0
  40. package/dist/components/label/index.d.ts +1 -0
  41. package/dist/components/label/label.d.ts +5 -0
  42. package/dist/components/navigation-menu/index.d.ts +1 -0
  43. package/dist/components/navigation-menu/navigation-menu.d.ts +12 -0
  44. package/dist/components/pagination/index.d.ts +1 -0
  45. package/dist/components/pagination/pagination.d.ts +28 -0
  46. package/dist/components/password-input/index.d.ts +1 -0
  47. package/dist/components/password-input/password-input.d.ts +16 -0
  48. package/dist/components/popover/index.d.ts +1 -0
  49. package/dist/components/popover/popover.d.ts +7 -0
  50. package/dist/components/progress/index.d.ts +1 -0
  51. package/dist/components/progress/progress.d.ts +4 -0
  52. package/dist/components/radio-group/index.d.ts +1 -0
  53. package/dist/components/radio-group/radio-group.d.ts +5 -0
  54. package/dist/components/select/index.d.ts +1 -0
  55. package/dist/components/select/select.d.ts +13 -0
  56. package/dist/components/skeleton/index.d.ts +1 -0
  57. package/dist/components/skeleton/skeleton.d.ts +5 -0
  58. package/dist/components/switch/index.d.ts +1 -0
  59. package/dist/components/switch/switch.d.ts +4 -0
  60. package/dist/components/table/index.d.ts +1 -0
  61. package/dist/components/table/table.d.ts +10 -0
  62. package/dist/components/tabs/index.d.ts +1 -0
  63. package/dist/components/tabs/tabs.d.ts +7 -0
  64. package/dist/components/textarea/index.d.ts +1 -0
  65. package/dist/components/textarea/textarea.d.ts +3 -0
  66. package/dist/components/toaster/index.d.ts +2 -0
  67. package/dist/components/toaster/toaster.d.ts +9 -0
  68. package/dist/components/toggle/index.d.ts +1 -0
  69. package/dist/components/toggle/toggle.d.ts +12 -0
  70. package/dist/components/toggle-group/index.d.ts +1 -0
  71. package/dist/components/toggle-group/toggle-group.d.ts +12 -0
  72. package/dist/components/tooltip/index.d.ts +1 -0
  73. package/dist/components/tooltip/tooltip.d.ts +7 -0
  74. package/dist/index.d.ts +4 -0
  75. package/dist/lib/hooks/index.d.ts +5 -0
  76. package/dist/lib/hooks/use-debounce.d.ts +2 -0
  77. package/dist/lib/hooks/use-dialog.d.ts +30 -0
  78. package/dist/lib/hooks/use-media-query.d.ts +1 -0
  79. package/dist/lib/hooks/use-mobile.d.ts +1 -0
  80. package/dist/lib/hooks/use-pwa-install.d.ts +7 -0
  81. package/dist/lib/utils/cn.d.ts +2 -0
  82. package/dist/lib/utils/formatters.d.ts +8 -0
  83. package/dist/lib/utils/index.d.ts +2 -0
  84. package/package.json +98 -57
  85. package/.github/workflows/release.yml +0 -25
  86. package/.husky/commit-msg +0 -1
  87. package/.releaserc.json +0 -40
  88. package/.storybook/main.ts +0 -27
  89. package/.storybook/preview.ts +0 -15
  90. package/CHANGELOG.md +0 -14
  91. package/commitlint.config.js +0 -3
  92. package/components.json +0 -21
  93. package/postcss.config.js +0 -6
  94. package/src/components/button/Button.stories.tsx +0 -27
  95. package/src/components/button/Button.tsx +0 -57
  96. package/src/components/button/index.ts +0 -1
  97. package/src/index.ts +0 -1
  98. package/src/lib/utils/cn.ts +0 -6
  99. package/src/lib/utils.ts +0 -6
  100. package/src/styles/tailwind.css +0 -66
  101. package/tailwind.config.js +0 -57
  102. package/tsconfig.app.json +0 -10
  103. package/tsconfig.json +0 -19
  104. package/vite.config.ts +0 -34
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ### This lib is under construction, take a look again soon 🚧
4
4
 
5
- A React component library built using [Vite](https://vitejs.dev) and [shadcn](https://shadcn.dev) as the foundation. This library is designed to integrate seamlessly with React and Next.js applications and includes support for [TailwindCSS](https://tailwindcss.com). It also provides a Storybook setup to display and document the components.
5
+ A React component library built using [Vite](https://vitejs.dev) and [shadcn](https://ui.shadcn.com/) as the foundation. This library is designed to integrate seamlessly with React and Next.js applications and includes support for [TailwindCSS](https://tailwindcss.com). It also provides a Storybook setup to display and document the components.
6
6
 
7
7
  ## Features
8
8
 
@@ -0,0 +1,9 @@
1
+ interface HelpCarouselProps {
2
+ triggerElement: React.ReactNode;
3
+ steps: {
4
+ title: string;
5
+ description: string | React.ReactNode;
6
+ }[];
7
+ }
8
+ export declare function HelpCarousel(props: HelpCarouselProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1 @@
1
+ export * from './help-carousel';
@@ -0,0 +1,4 @@
1
+ export * from './help-carousel';
2
+ export * from './month-navigator';
3
+ export * from './pagination-controls';
4
+ export * from './sidebar';
@@ -0,0 +1 @@
1
+ export * from './month-navigator';
@@ -0,0 +1,9 @@
1
+ import { Locale } from 'date-fns/locale';
2
+ export type Month = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11;
3
+ export interface MonthNavigatorProps {
4
+ locale?: Locale;
5
+ currentMonth: Month;
6
+ currentYear: number;
7
+ onChangeMonthYear: (month: Month, year: number) => void;
8
+ }
9
+ export declare const MonthNavigator: (props: MonthNavigatorProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './pagination-controls';
@@ -0,0 +1,7 @@
1
+ interface PaginationControlsProps {
2
+ currentPage: number;
3
+ totalPages: number;
4
+ onPageChange: (page: number) => void;
5
+ }
6
+ export declare function PaginationControls({ currentPage, totalPages, onPageChange, }: PaginationControlsProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1 @@
1
+ export * from './sidebar';
@@ -0,0 +1,26 @@
1
+ import React, { PropsWithChildren } from 'react';
2
+ interface SidebarProps {
3
+ fixed: boolean;
4
+ isOpen?: boolean;
5
+ onToggle?: (open: boolean) => void;
6
+ children: React.ReactNode;
7
+ className?: string;
8
+ }
9
+ export declare const Sidebar: React.FC<SidebarProps>;
10
+ export declare const SidebarHeader: ({ children, className, }: PropsWithChildren<{
11
+ className?: string;
12
+ }>) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const SidebarNav: ({ children, className, }: PropsWithChildren<{
14
+ className?: string;
15
+ }>) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const SidebarList: ({ children, className, }: PropsWithChildren<{
17
+ className?: string;
18
+ }>) => import("react/jsx-runtime").JSX.Element;
19
+ export declare const SidebarListItem: ({ children, className, onClick, }: PropsWithChildren<{
20
+ className?: string;
21
+ onClick?: () => void;
22
+ }>) => import("react/jsx-runtime").JSX.Element;
23
+ export declare const SidebarFooter: ({ children, className, }: PropsWithChildren<{
24
+ className?: string;
25
+ }>) => import("react/jsx-runtime").JSX.Element;
26
+ export {};