tharaday 0.4.0 → 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.
- package/dist/components/Badge/Badge.types.d.ts +1 -0
- package/dist/components/Card/Card.types.d.ts +1 -0
- package/dist/components/Checkbox/Checkbox.types.d.ts +1 -0
- package/dist/components/Header/Header.d.ts +1 -1
- package/dist/components/Header/Header.stories.d.ts +1 -1
- package/dist/components/Header/Header.types.d.ts +2 -0
- package/dist/components/Input/Input.types.d.ts +1 -0
- package/dist/components/NavBar/NavBar.d.ts +1 -1
- package/dist/components/NavBar/NavBar.types.d.ts +4 -0
- package/dist/components/Notification/Notification.types.d.ts +1 -0
- package/dist/components/RadioButton/RadioButton.types.d.ts +1 -0
- package/dist/components/Select/Select.types.d.ts +1 -0
- package/dist/components/Skeleton/Skeleton.types.d.ts +1 -0
- package/dist/components/Stepper/Step.d.ts +1 -1
- package/dist/components/Stepper/Step.types.d.ts +1 -0
- package/dist/components/Stepper/Stepper.types.d.ts +1 -0
- package/dist/components/Switch/Switch.types.d.ts +1 -0
- package/dist/components/Table/Table.types.d.ts +1 -0
- package/dist/components/Text/Text.types.d.ts +2 -0
- package/dist/components/Textarea/Textarea.types.d.ts +1 -0
- package/dist/ds.js +668 -654
- package/dist/ds.umd.cjs +1 -1
- package/dist/layouts/AppLayout/AppLayout.d.ts +1 -1
- package/dist/layouts/AppLayout/AppLayout.stories.d.ts +1 -1
- package/dist/layouts/AppLayout/AppLayout.types.d.ts +8 -0
- package/dist/layouts/AuthLayout/AuthLayout.d.ts +1 -1
- package/dist/layouts/AuthLayout/AuthLayout.stories.d.ts +1 -1
- package/dist/layouts/AuthLayout/AuthLayout.types.d.ts +1 -0
- package/dist/layouts/DashboardLayout/DashboardLayout.d.ts +1 -1
- package/dist/layouts/DashboardLayout/DashboardLayout.stories.d.ts +1 -1
- package/dist/layouts/DashboardLayout/DashboardLayout.types.d.ts +2 -0
- package/dist/layouts/SettingsLayout/SettingsLayout.d.ts +1 -1
- package/dist/layouts/SettingsLayout/SettingsLayout.stories.d.ts +1 -1
- package/dist/layouts/SettingsLayout/SettingsLayout.types.d.ts +2 -0
- package/package.json +1 -1
- package/src/components/Badge/Badge.types.ts +1 -0
- package/src/components/Card/Card.types.ts +1 -0
- package/src/components/Checkbox/Checkbox.types.ts +1 -0
- package/src/components/Header/Header.tsx +6 -2
- package/src/components/Header/Header.types.ts +2 -0
- package/src/components/Input/Input.types.ts +1 -0
- package/src/components/NavBar/NavBar.tsx +2 -1
- package/src/components/NavBar/NavBar.types.ts +4 -0
- package/src/components/Notification/Notification.types.ts +1 -0
- package/src/components/RadioButton/RadioButton.types.ts +1 -0
- package/src/components/Select/Select.types.ts +1 -0
- package/src/components/Skeleton/Skeleton.types.ts +1 -0
- package/src/components/Stepper/Step.tsx +2 -1
- package/src/components/Stepper/Step.types.ts +1 -0
- package/src/components/Stepper/Stepper.types.ts +1 -0
- package/src/components/Switch/Switch.types.ts +1 -0
- package/src/components/Table/Table.types.ts +1 -0
- package/src/components/Text/Text.types.ts +2 -0
- package/src/components/Textarea/Textarea.types.ts +1 -0
- package/src/layouts/AppLayout/AppLayout.tsx +8 -2
- package/src/layouts/AppLayout/AppLayout.types.ts +8 -0
- package/src/layouts/AuthLayout/AuthLayout.tsx +4 -2
- package/src/layouts/AuthLayout/AuthLayout.types.tsx +1 -0
- package/src/layouts/DashboardLayout/DashboardLayout.tsx +7 -2
- package/src/layouts/DashboardLayout/DashboardLayout.types.tsx +2 -0
- package/src/layouts/SettingsLayout/SettingsLayout.tsx +7 -2
- 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,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;
|
|
@@ -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;
|
|
@@ -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,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;
|
|
@@ -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;
|
|
@@ -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 */
|