tharaday 0.3.2 → 0.5.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.
Files changed (78) hide show
  1. package/dist/components/Badge/Badge.types.d.ts +1 -0
  2. package/dist/components/Card/Card.types.d.ts +1 -0
  3. package/dist/components/Checkbox/Checkbox.types.d.ts +1 -0
  4. package/dist/components/Header/Header.d.ts +1 -1
  5. package/dist/components/Header/Header.stories.d.ts +1 -1
  6. package/dist/components/Header/Header.types.d.ts +2 -0
  7. package/dist/components/Input/Input.d.ts +1 -1
  8. package/dist/components/Input/Input.stories.d.ts +4 -1
  9. package/dist/components/Input/Input.types.d.ts +2 -0
  10. package/dist/components/NavBar/NavBar.d.ts +1 -1
  11. package/dist/components/NavBar/NavBar.types.d.ts +4 -0
  12. package/dist/components/Notification/Notification.types.d.ts +1 -0
  13. package/dist/components/RadioButton/RadioButton.types.d.ts +1 -0
  14. package/dist/components/Select/Select.d.ts +1 -1
  15. package/dist/components/Select/Select.stories.d.ts +4 -1
  16. package/dist/components/Select/Select.types.d.ts +2 -0
  17. package/dist/components/Skeleton/Skeleton.types.d.ts +1 -0
  18. package/dist/components/Stepper/Step.d.ts +1 -1
  19. package/dist/components/Stepper/Step.types.d.ts +1 -0
  20. package/dist/components/Stepper/Stepper.types.d.ts +1 -0
  21. package/dist/components/Switch/Switch.types.d.ts +1 -0
  22. package/dist/components/Table/Table.types.d.ts +1 -0
  23. package/dist/components/Text/Text.types.d.ts +2 -0
  24. package/dist/components/Textarea/Textarea.d.ts +1 -1
  25. package/dist/components/Textarea/Textarea.stories.d.ts +4 -1
  26. package/dist/components/Textarea/Textarea.types.d.ts +2 -0
  27. package/dist/ds.css +1 -1
  28. package/dist/ds.js +797 -777
  29. package/dist/ds.umd.cjs +1 -1
  30. package/dist/layouts/AppLayout/AppLayout.d.ts +1 -1
  31. package/dist/layouts/AppLayout/AppLayout.stories.d.ts +1 -1
  32. package/dist/layouts/AppLayout/AppLayout.types.d.ts +8 -0
  33. package/dist/layouts/AuthLayout/AuthLayout.d.ts +1 -1
  34. package/dist/layouts/AuthLayout/AuthLayout.stories.d.ts +1 -1
  35. package/dist/layouts/AuthLayout/AuthLayout.types.d.ts +1 -0
  36. package/dist/layouts/DashboardLayout/DashboardLayout.d.ts +1 -1
  37. package/dist/layouts/DashboardLayout/DashboardLayout.stories.d.ts +1 -1
  38. package/dist/layouts/DashboardLayout/DashboardLayout.types.d.ts +2 -0
  39. package/dist/layouts/SettingsLayout/SettingsLayout.d.ts +1 -1
  40. package/dist/layouts/SettingsLayout/SettingsLayout.stories.d.ts +1 -1
  41. package/dist/layouts/SettingsLayout/SettingsLayout.types.d.ts +2 -0
  42. package/package.json +1 -1
  43. package/src/components/Badge/Badge.types.ts +1 -0
  44. package/src/components/Card/Card.types.ts +1 -0
  45. package/src/components/Checkbox/Checkbox.types.ts +1 -0
  46. package/src/components/Header/Header.tsx +6 -2
  47. package/src/components/Header/Header.types.ts +2 -0
  48. package/src/components/Input/Input.module.css +11 -2
  49. package/src/components/Input/Input.stories.tsx +3 -0
  50. package/src/components/Input/Input.tsx +2 -1
  51. package/src/components/Input/Input.types.ts +2 -0
  52. package/src/components/NavBar/NavBar.tsx +2 -1
  53. package/src/components/NavBar/NavBar.types.ts +4 -0
  54. package/src/components/Notification/Notification.types.ts +1 -0
  55. package/src/components/RadioButton/RadioButton.types.ts +1 -0
  56. package/src/components/Select/Select.module.css +11 -2
  57. package/src/components/Select/Select.stories.tsx +3 -0
  58. package/src/components/Select/Select.tsx +2 -1
  59. package/src/components/Select/Select.types.ts +2 -0
  60. package/src/components/Skeleton/Skeleton.types.ts +1 -0
  61. package/src/components/Stepper/Step.tsx +2 -1
  62. package/src/components/Stepper/Step.types.ts +1 -0
  63. package/src/components/Stepper/Stepper.types.ts +1 -0
  64. package/src/components/Switch/Switch.types.ts +1 -0
  65. package/src/components/Table/Table.types.ts +1 -0
  66. package/src/components/Text/Text.types.ts +2 -0
  67. package/src/components/Textarea/Textarea.module.css +11 -2
  68. package/src/components/Textarea/Textarea.stories.tsx +3 -0
  69. package/src/components/Textarea/Textarea.tsx +2 -1
  70. package/src/components/Textarea/Textarea.types.ts +2 -0
  71. package/src/layouts/AppLayout/AppLayout.tsx +8 -2
  72. package/src/layouts/AppLayout/AppLayout.types.ts +8 -0
  73. package/src/layouts/AuthLayout/AuthLayout.tsx +4 -2
  74. package/src/layouts/AuthLayout/AuthLayout.types.tsx +1 -0
  75. package/src/layouts/DashboardLayout/DashboardLayout.tsx +7 -2
  76. package/src/layouts/DashboardLayout/DashboardLayout.types.tsx +2 -0
  77. package/src/layouts/SettingsLayout/SettingsLayout.tsx +7 -2
  78. package/src/layouts/SettingsLayout/SettingsLayout.types.tsx +2 -0
@@ -3,6 +3,7 @@ export type BadgeVariant = 'solid' | 'subtle' | 'outline';
3
3
  export type BadgeSize = 'sm' | 'md' | 'lg';
4
4
  export type BadgeIntent = 'neutral' | 'success' | 'warning' | 'danger' | 'info';
5
5
  export interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
6
+ className?: string;
6
7
  variant?: BadgeVariant;
7
8
  size?: BadgeSize;
8
9
  intent?: BadgeIntent;
@@ -1,6 +1,7 @@
1
1
  import { HTMLAttributes, ReactNode } from 'react';
2
2
  import { BoxBackgroundColor, BoxBorderColor } from '../Box/Box.types.ts';
3
3
  export interface CardProps extends HTMLAttributes<HTMLDivElement> {
4
+ className?: string;
4
5
  padding?: 'none' | 'sm' | 'md' | 'lg';
5
6
  shadow?: 'none' | 'sm' | 'md';
6
7
  bordered?: boolean;
@@ -1,5 +1,6 @@
1
1
  import { InputHTMLAttributes } from 'react';
2
2
  export interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
3
+ className?: string;
3
4
  label?: string;
4
5
  error?: boolean;
5
6
  helperText?: string;
@@ -1,2 +1,2 @@
1
1
  import { HeaderProps } from './Header.types.ts';
2
- export declare const Header: ({ id, logo, title, user, onLogin, onLogout, onCreateAccount, }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const Header: ({ id, logo, title, user, onLogin, onLogout, onCreateAccount, className, maxWidth, }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { StoryObj } from '@storybook/react-vite';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: ({ id, logo, title, user, onLogin, onLogout, onCreateAccount, }: import('./Header.types.ts').HeaderProps) => import("react/jsx-runtime").JSX.Element;
4
+ component: ({ id, logo, title, user, onLogin, onLogout, onCreateAccount, className, maxWidth, }: import('./Header.types.ts').HeaderProps) => import("react/jsx-runtime").JSX.Element;
5
5
  tags: string[];
6
6
  parameters: {
7
7
  layout: string;
@@ -4,6 +4,8 @@ type User = {
4
4
  };
5
5
  export interface HeaderProps {
6
6
  id?: string;
7
+ className?: string;
8
+ maxWidth?: string | number;
7
9
  logo?: ReactNode;
8
10
  title?: string;
9
11
  user?: User;
@@ -1,2 +1,2 @@
1
1
  import { InputProps } from './Input.types.ts';
2
- export declare const Input: ({ size, error, label, helperText, className, id, ...props }: InputProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const Input: ({ size, error, label, helperText, fullWidth, className, id, ...props }: InputProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { StoryObj } from '@storybook/react-vite';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: ({ size, error, label, helperText, className, id, ...props }: import('./Input.types.ts').InputProps) => import("react/jsx-runtime").JSX.Element;
4
+ component: ({ size, error, label, helperText, fullWidth, className, id, ...props }: import('./Input.types.ts').InputProps) => import("react/jsx-runtime").JSX.Element;
5
5
  tags: string[];
6
6
  parameters: {
7
7
  layout: string;
@@ -17,6 +17,9 @@ declare const meta: {
17
17
  disabled: {
18
18
  control: "boolean";
19
19
  };
20
+ fullWidth: {
21
+ control: "boolean";
22
+ };
20
23
  };
21
24
  };
22
25
  export default meta;
@@ -1,8 +1,10 @@
1
1
  import { InputHTMLAttributes } from 'react';
2
2
  export type InputSize = 'sm' | 'md' | 'lg';
3
3
  export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
4
+ className?: string;
4
5
  size?: InputSize;
5
6
  error?: boolean;
6
7
  label?: string;
7
8
  helperText?: string;
9
+ fullWidth?: boolean;
8
10
  }
@@ -3,4 +3,4 @@ import { NavBarProps } from './NavBar.types.ts';
3
3
  * NavBar is a navigation component typically used for application-wide navigation.
4
4
  * It differs from Header as it focuses on navigational links rather than just branding and user actions.
5
5
  */
6
- export declare const NavBar: ({ id, items, activeId, logo, actions, onItemClick, className, }: NavBarProps) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const NavBar: ({ id, items, activeId, logo, actions, onItemClick, className, maxWidth, }: NavBarProps) => import("react/jsx-runtime").JSX.Element;
@@ -31,4 +31,8 @@ export interface NavBarProps {
31
31
  * Additional class names
32
32
  */
33
33
  className?: string;
34
+ /**
35
+ * Optional max width for the container
36
+ */
37
+ maxWidth?: string | number;
34
38
  }
@@ -1,6 +1,7 @@
1
1
  import { HTMLAttributes, ReactNode } from 'react';
2
2
  export type NotificationIntent = 'neutral' | 'success' | 'warning' | 'danger' | 'info';
3
3
  export interface NotificationProps extends HTMLAttributes<HTMLDivElement> {
4
+ className?: string;
4
5
  intent?: NotificationIntent;
5
6
  title?: string;
6
7
  children: ReactNode;
@@ -1,6 +1,7 @@
1
1
  import { InputHTMLAttributes } from 'react';
2
2
  export type RadioButtonSize = 'sm' | 'md' | 'lg';
3
3
  export interface RadioButtonProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
4
+ className?: string;
4
5
  size?: RadioButtonSize;
5
6
  label?: string;
6
7
  helperText?: string;
@@ -1,2 +1,2 @@
1
1
  import { SelectProps } from './Select.types.ts';
2
- export declare const Select: ({ size, error, label, helperText, className, id, options, children, ...props }: SelectProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const Select: ({ size, error, label, helperText, fullWidth, className, id, options, children, ...props }: SelectProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { StoryObj } from '@storybook/react-vite';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: ({ size, error, label, helperText, className, id, options, children, ...props }: import('./Select.types.ts').SelectProps) => import("react/jsx-runtime").JSX.Element;
4
+ component: ({ size, error, label, helperText, fullWidth, className, id, options, children, ...props }: import('./Select.types.ts').SelectProps) => import("react/jsx-runtime").JSX.Element;
5
5
  tags: string[];
6
6
  parameters: {
7
7
  layout: string;
@@ -17,6 +17,9 @@ declare const meta: {
17
17
  disabled: {
18
18
  control: "boolean";
19
19
  };
20
+ fullWidth: {
21
+ control: "boolean";
22
+ };
20
23
  };
21
24
  };
22
25
  export default meta;
@@ -6,10 +6,12 @@ export interface SelectOption {
6
6
  disabled?: boolean;
7
7
  }
8
8
  export interface SelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, 'size'> {
9
+ className?: string;
9
10
  size?: SelectSize;
10
11
  error?: boolean;
11
12
  label?: string;
12
13
  helperText?: string;
13
14
  options?: SelectOption[];
14
15
  children?: ReactNode;
16
+ fullWidth?: boolean;
15
17
  }
@@ -1,6 +1,7 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
  export type SkeletonVariant = 'text' | 'circular' | 'rectangular' | 'rounded';
3
3
  export interface SkeletonProps extends HTMLAttributes<HTMLDivElement> {
4
+ className?: string;
4
5
  variant?: SkeletonVariant;
5
6
  width?: string | number;
6
7
  height?: string | number;
@@ -1,2 +1,2 @@
1
1
  import { StepProps } from './Step.types.ts';
2
- export declare const Step: ({ step, index, status, isInteractive, onStepClick, isLast, id, }: StepProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const Step: ({ step, index, status, isInteractive, onStepClick, isLast, id, className, }: StepProps) => import("react/jsx-runtime").JSX.Element;
@@ -7,6 +7,7 @@ export interface StepOptions {
7
7
  disabled?: boolean;
8
8
  }
9
9
  export interface StepProps {
10
+ className?: string;
10
11
  step: StepOptions;
11
12
  index: number;
12
13
  status: StepperStatus;
@@ -3,6 +3,7 @@ import { StepOptions } from './Step.types.ts';
3
3
  export type StepperOrientation = 'horizontal' | 'vertical';
4
4
  export type StepperSize = 'sm' | 'md' | 'lg';
5
5
  export interface StepperProps extends HTMLAttributes<HTMLOListElement> {
6
+ className?: string;
6
7
  steps: StepOptions[];
7
8
  currentStep?: number | string;
8
9
  orientation?: StepperOrientation;
@@ -1,5 +1,6 @@
1
1
  import { InputHTMLAttributes } from 'react';
2
2
  export interface SwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
3
+ className?: string;
3
4
  label?: string;
4
5
  helperText?: string;
5
6
  }
@@ -1,5 +1,6 @@
1
1
  import { HTMLAttributes, TableHTMLAttributes, TdHTMLAttributes, ThHTMLAttributes } from 'react';
2
2
  export interface TableProps extends TableHTMLAttributes<HTMLTableElement> {
3
+ className?: string;
3
4
  striped?: boolean;
4
5
  hoverable?: boolean;
5
6
  dense?: boolean;
@@ -4,6 +4,8 @@ export type TextAlign = 'left' | 'center' | 'right' | 'justify';
4
4
  export type FontWeight = 'regular' | 'medium' | 'bold';
5
5
  export type TextColor = 'main' | 'subtle' | 'subtle' | 'on-brand' | 'danger' | 'success' | 'warning' | 'info';
6
6
  export interface TextProps extends HTMLAttributes<HTMLElement> {
7
+ /** Additional class name */
8
+ className?: string;
7
9
  /** The content to display */
8
10
  children: ReactNode;
9
11
  /** The typographic style to apply */
@@ -1,2 +1,2 @@
1
1
  import { TextareaProps } from './Textarea.types.ts';
2
- export declare const Textarea: ({ size, error, label, helperText, className, id, rows, ...props }: TextareaProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const Textarea: ({ size, error, label, helperText, fullWidth, className, id, rows, ...props }: TextareaProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { StoryObj } from '@storybook/react-vite';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: ({ size, error, label, helperText, className, id, rows, ...props }: import('./Textarea.types.ts').TextareaProps) => import("react/jsx-runtime").JSX.Element;
4
+ component: ({ size, error, label, helperText, fullWidth, className, id, rows, ...props }: import('./Textarea.types.ts').TextareaProps) => import("react/jsx-runtime").JSX.Element;
5
5
  tags: string[];
6
6
  parameters: {
7
7
  layout: string;
@@ -17,6 +17,9 @@ declare const meta: {
17
17
  disabled: {
18
18
  control: "boolean";
19
19
  };
20
+ fullWidth: {
21
+ control: "boolean";
22
+ };
20
23
  };
21
24
  };
22
25
  export default meta;
@@ -1,9 +1,11 @@
1
1
  import { TextareaHTMLAttributes } from 'react';
2
2
  export type TextareaSize = 'sm' | 'md' | 'lg';
3
3
  export interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
4
+ className?: string;
4
5
  size?: TextareaSize;
5
6
  error?: boolean;
6
7
  label?: string;
7
8
  helperText?: string;
8
9
  rows?: number;
10
+ fullWidth?: boolean;
9
11
  }