jiffy-ui 1.0.2 → 1.0.4

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 (83) hide show
  1. package/README.md +82 -51
  2. package/dist/components/Accordion/Accordion.d.ts +14 -3
  3. package/dist/components/Accordion/Accordion.stories.d.ts +95 -0
  4. package/dist/components/Actionlist/Actionlist.d.ts +105 -5
  5. package/dist/components/Actionlist/Actionlist.stories.d.ts +64 -3
  6. package/dist/components/Alert/Alert.d.ts +20 -9
  7. package/dist/components/Alert/Alert.stories.d.ts +13 -7
  8. package/dist/components/AppWrapper/AppWrapper.stories.d.ts +5 -1
  9. package/dist/components/Avatar/Avatar.stories.d.ts +5 -1
  10. package/dist/components/Badge/Badge.d.ts +29 -7
  11. package/dist/components/Badge/Badge.stories.d.ts +35 -15
  12. package/dist/components/BottomSheet/BottomSheet.stories.d.ts +5 -1
  13. package/dist/components/Breadcrumb/Breadcrumb.stories.d.ts +5 -1
  14. package/dist/components/Button/Button.d.ts +18 -4
  15. package/dist/components/Button/Button.stories.d.ts +46 -30
  16. package/dist/components/ButtonGroup/ButtonGroup.stories.d.ts +5 -1
  17. package/dist/components/Card/Card.d.ts +66 -14
  18. package/dist/components/Card/Card.stories.d.ts +59 -29
  19. package/dist/components/Divider/Divider.stories.d.ts +5 -1
  20. package/dist/components/Dropdown/Dropdown.d.ts +82 -11
  21. package/dist/components/Dropdown/Dropdown.stories.d.ts +48 -2
  22. package/dist/components/FlexItem/FlexItem.d.ts +1 -3
  23. package/dist/components/FlexLayout/FlexLayout.d.ts +85 -0
  24. package/dist/components/FlexLayout/FlexLayout.stories.d.ts +228 -0
  25. package/dist/components/HorizontalFlex/BootstrapStyleTest.d.ts +3 -0
  26. package/dist/components/HorizontalFlex/ColumnTest.d.ts +3 -0
  27. package/dist/components/HorizontalFlex/HorizontalFlex.d.ts +6 -1
  28. package/dist/components/HorizontalFlex/HorizontalFlex.stories.d.ts +35 -3
  29. package/dist/components/HorizontalFlex/HorizontalFlexTest.d.ts +3 -0
  30. package/dist/components/HorizontalFlex/StructureTest.d.ts +3 -0
  31. package/dist/components/Indicator/Indicator.stories.d.ts +5 -1
  32. package/dist/components/Input/Checkbox/Checkbox.d.ts +52 -6
  33. package/dist/components/Input/Checkbox/Checkbox.stories.d.ts +60 -3
  34. package/dist/components/Input/CheckboxGroup/CheckboxGroup.d.ts +96 -11
  35. package/dist/components/Input/CheckboxGroup/CheckboxGroup.stories.d.ts +87 -3
  36. package/dist/components/Input/FileUpload/FileUpload.d.ts +90 -5
  37. package/dist/components/Input/FileUpload/FileUpload.stories.d.ts +117 -4
  38. package/dist/components/Input/Radio/Radio.d.ts +51 -7
  39. package/dist/components/Input/Radio/Radio.stories.d.ts +79 -2
  40. package/dist/components/Input/RadioGroup/RadioGroup.d.ts +94 -11
  41. package/dist/components/Input/RadioGroup/RadioGroup.stories.d.ts +87 -3
  42. package/dist/components/Input/Select/Select.d.ts +57 -9
  43. package/dist/components/Input/Select/Select.stories.d.ts +80 -7
  44. package/dist/components/Input/TextArea/TextArea.d.ts +87 -9
  45. package/dist/components/Input/TextArea/TextArea.stories.d.ts +126 -2
  46. package/dist/components/Input/TextField/TextField.d.ts +95 -14
  47. package/dist/components/Input/TextField/story/TextField.stories.d.ts +24 -95
  48. package/dist/components/List/List.stories.d.ts +5 -1
  49. package/dist/components/MediaCard/MediaCard.d.ts +51 -11
  50. package/dist/components/MediaCard/MediaCard.stories.d.ts +35 -17
  51. package/dist/components/Modal/Modal.stories.d.ts +5 -1
  52. package/dist/components/PageTitle/PageTitle.d.ts +67 -12
  53. package/dist/components/PageTitle/PageTitle.stories.d.ts +49 -11
  54. package/dist/components/Pagination/Pagination.stories.d.ts +5 -1
  55. package/dist/components/ProgressBar/ProgressBar.stories.d.ts +5 -1
  56. package/dist/components/SideSheet/SideSheet.stories.d.ts +5 -1
  57. package/dist/components/Skeleton/SkeletonBadge/SkeletonBadge.stories.d.ts +5 -1
  58. package/dist/components/Skeleton/SkeletonButton/SkeletonButton.stories.d.ts +5 -1
  59. package/dist/components/Skeleton/SkeletonCustom/SkeletonCustom.stories.d.ts +5 -1
  60. package/dist/components/Skeleton/SkeletonLine/SkeletonLine.stories.d.ts +5 -1
  61. package/dist/components/Skeleton/SkeletonList/SkeletonList.stories.d.ts +5 -1
  62. package/dist/components/Skeleton/SkeletonTabs/SkeletonTabs.stories.d.ts +5 -1
  63. package/dist/components/Skeleton/SkeletonThumbnail/SkeletonThumbnail.stories.d.ts +5 -1
  64. package/dist/components/Spinner/Spinner.stories.d.ts +5 -1
  65. package/dist/components/StepWizard/story/StepWizard.stories.d.ts +5 -1
  66. package/dist/components/Switcher/Switcher.stories.d.ts +5 -1
  67. package/dist/components/Table/Table.stories.d.ts +5 -1
  68. package/dist/components/Tabs/Tabs.d.ts +66 -9
  69. package/dist/components/Tabs/Tabs.stories.d.ts +75 -3
  70. package/dist/components/Template/Template.stories.d.ts +5 -1
  71. package/dist/components/TextLink/TextLink.stories.d.ts +5 -1
  72. package/dist/components/TextStyle/TextStyle.d.ts +30 -10
  73. package/dist/components/TextStyle/TextStyle.stories.d.ts +63 -11
  74. package/dist/components/Thumbnail/Thumbnail.stories.d.ts +5 -1
  75. package/dist/components/Tooltip/Tooltip.stories.d.ts +5 -1
  76. package/dist/components/TopBar/TopBar.stories.d.ts +5 -1
  77. package/dist/components/VerticalFlex/VerticalFlex.d.ts +19 -1
  78. package/dist/components/VerticalFlex/VerticalFlex.stories.d.ts +26 -3
  79. package/dist/components/index.d.ts +0 -2
  80. package/dist/index.css +10811 -5439
  81. package/dist/index.js +5 -5
  82. package/dist/index.modern.js +5 -5
  83. package/package.json +2 -2
package/README.md CHANGED
@@ -6,11 +6,11 @@
6
6
  [![npm version](https://img.shields.io/npm/v/jiffy-ui.svg)](https://www.npmjs.com/package/jiffy-ui)
7
7
  [![TypeScript](https://img.shields.io/badge/TypeScript-Ready-blue.svg)](https://www.typescriptlang.org/)
8
8
 
9
- **Jiffy UI Demo** showcases a comprehensive React component library with 35+ production-ready components. Built with modern web standards, TypeScript support, and accessibility in mind.
9
+ **Jiffy UI Demo** showcases a comprehensive React component library with 50+ production-ready components. Built with modern web standards, TypeScript support, and accessibility in mind.
10
10
 
11
11
  ## ✨ Features
12
12
 
13
- - 🎯 **35+ Production Ready Components** - Comprehensive component library
13
+ - 🎯 **50+ Production Ready Components** - Comprehensive component library
14
14
  - 📝 **TypeScript Native** - Fully typed API with excellent DX
15
15
  - ♿ **Accessibility First** - WAI-ARIA compliant with keyboard support
16
16
  - 🚀 **React Server Components** - Compatible with Next.js 13+ and RSC
@@ -53,38 +53,90 @@ function App() {
53
53
 
54
54
  ## 🎮 Demo & Documentation
55
55
 
56
- 🔗 **[Live Demo](https://jiffytechsolutions.github.io/JiffyDemo/)**
56
+ 🔗 **[Live Demo](https://jiffytechsolutions.github.io/jiffy-ui-demo/)**
57
57
 
58
58
  Explore our interactive component playground to see all components in action with live code examples.
59
59
 
60
60
  ## 📦 Available Components
61
61
 
62
- ### Layout Components
63
- - **Card** - Flexible containers for content
64
- - **Grid** - Responsive grid system
65
- - **HorizontalFlex / VerticalFlex** - Flexbox layout utilities
66
-
67
- ### Input Components
68
- - **TextField** - Text input with validation
69
- - **TextArea** - Multi-line text input
70
- - **Checkbox** - Boolean input control
71
- - **CheckboxGroup** - Multiple selection groups
72
- - **FileUpload** - File upload component
73
- - **AutoComplete** - Smart input with suggestions
74
-
75
- ### Action Components
76
- - **Button** - Primary action component
77
- - **ButtonGroup** - Grouped button actions
78
- - **TextLink** - Styled text links
79
-
80
- ### Display Components
81
- - **TextStyle** - Typography component
82
- - **Accordion** - Collapsible content panels
83
- - **Alert** - Contextual feedback messages
84
- - **Sidebar** - Navigation sidebar
85
-
86
- ### Icons
87
- - **35+ Icons** - Comprehensive icon set
62
+ ### 🏗️ Layout & Structure
63
+ - **AppWrapper** - Application layout wrapper and container
64
+ - **Card** - Flexible containers for content with various styles
65
+ - **FlexLayout** - Modern flexbox layout component with gap controls
66
+ - **Grid** - Responsive grid system for complex layouts
67
+ - **Divider** - Visual separator for content sections
68
+
69
+ ### 🧭 Navigation & Actions
70
+ - **Button** - Primary interactive element with multiple variants
71
+ - **ButtonGroup** - Group related buttons together
72
+ - **ActionList** - Dropdown menu for multiple actions *(Performance Optimized)*
73
+ - **PageTitle** - Page header with title, actions, and navigation *(Recently Redesigned)*
74
+ - **Breadcrumb** - Navigation breadcrumb trail
75
+ - **Pagination** - Navigate through paginated content
76
+ - **Tabs** - Tabbed interface for content organization
77
+ - **TextLink** - Styled text links and navigation elements
78
+
79
+ ### 📝 Form Controls & Input
80
+ - **TextField** - Text input with validation and multiple states
81
+ - **TextArea** - Multi-line text input with auto-resize
82
+ - **Select** - Dropdown selection component
83
+ - **Checkbox** - Single checkbox with label and states
84
+ - **CheckboxGroup** - Multiple checkbox management
85
+ - **Radio** - Single radio button with label
86
+ - **RadioGroup** - Radio button group management
87
+ - **Switcher** - Toggle switch for binary choices
88
+ - **FileUpload** - File upload with drag and drop support
89
+
90
+ ### 📊 Data Display & Visualization
91
+ - **Table** - Feature-rich data table with sorting and selection
92
+ - **List** - Simple list component for displaying items
93
+ - **Avatar** - User profile pictures and initials
94
+ - **Badge** - Status indicators and labels
95
+ - **Tag** - Removable labels and categories
96
+ - **Thumbnail** - Image thumbnails with fallbacks
97
+ - **MediaCard** - Rich media content cards
98
+ - **Indicator** - Status and notification indicators
99
+
100
+ ### 💬 Feedback & Overlays
101
+ - **Alert** - Important messages and notifications
102
+ - **Modal** - Overlay dialogs for important actions
103
+ - **SideSheet** - Slide-out panels for secondary content
104
+ - **BottomSheet** - Mobile-friendly bottom slide-up panels
105
+ - **Tooltip** - Contextual help and information popups
106
+ - **Sidebar** - Navigation sidebar for applications
107
+ - **TopBar** - Application header and navigation
108
+
109
+ ### ⏳ Loading & Progress
110
+ - **ProgressBar** - Progress indication for long operations
111
+ - **Spinner** - Loading indicators with various styles
112
+ - **Skeleton** - Loading placeholders for content
113
+ - **SkeletonBadge** - Badge loading placeholder
114
+ - **SkeletonButton** - Button loading placeholder
115
+ - **SkeletonCustom** - Custom skeleton shapes
116
+ - **SkeletonLine** - Text line loading placeholder
117
+ - **SkeletonList** - List loading placeholder
118
+ - **SkeletonTabs** - Tab loading placeholder
119
+ - **SkeletonThumbnail** - Image loading placeholder
120
+
121
+ ### 🎨 Typography & Content
122
+ - **TextStyle** - Typography styles and text formatting
123
+ - **Accordion** - Collapsible content sections
124
+ - **CopyClipboard** - One-click copy functionality
125
+
126
+ ### 🔧 Specialized Components
127
+ - **StepWizard** - Multi-step process guidance
128
+ - **Dropdown** - Generic dropdown component with positioning
129
+
130
+ ### 🎯 Foundation Elements
131
+ - **Foundation/Colors** - Color system and palette
132
+ - **Foundation/Icons** - Icon system and guidelines
133
+ - **Foundation/BorderWidth** - Border width tokens
134
+ - **Foundation/Elevation** - Shadow and elevation system
135
+ - **Foundation/RorderRadius** - Border radius design tokens
136
+ - **Foundation/UsedColor** - Applied color examples
137
+
138
+ ### 🧪 Development & Testing
139
+ - **SimpleTest** - Simple test component for development
88
140
 
89
141
  ## 🛠️ Development
90
142
 
@@ -97,7 +149,7 @@ Explore our interactive component playground to see all components in action wit
97
149
 
98
150
  ```bash
99
151
  # Clone the repository
100
- git clone https://github.com/JiffytechSolutions/JiffyDemo.git
152
+ git clone https://github.com/JiffytechSolutions/jiffy-ui.git
101
153
 
102
154
  # Navigate to project directory
103
155
  cd JiffyDemo
@@ -116,28 +168,7 @@ npm start
116
168
  - `npm test` - Run test suite
117
169
  - `npm eject` - Eject from Create React App
118
170
 
119
- ## 🏗️ Project Structure
120
171
 
121
- ```
122
- JiffyDemo/
123
- ├── public/
124
- │ ├── index.html
125
- │ └── assets/
126
- ├── src/
127
- │ ├── Components/
128
- │ │ ├── Banner/ # Hero section
129
- │ │ ├── ComponentList/ # Component showcase
130
- │ │ ├── CallToAction/ # CTA section
131
- │ │ ├── Header/ # Navigation
132
- │ │ ├── Home/ # Main page
133
- │ │ ├── Pannel/ # Component docs
134
- │ │ └── component/ # Demo components
135
- │ ├── assets/ # Images and static files
136
- │ ├── context/ # React context
137
- │ └── index.tsx
138
- ├── package.json
139
- └── README.md
140
- ```
141
172
 
142
173
  ## 🎯 Key Features Showcase
143
174
 
@@ -2,11 +2,22 @@ import React from "react";
2
2
  import './accordion.css';
3
3
  export interface AccordionI {
4
4
  accordionHeader?: string | React.ReactNode;
5
- onClick?: any;
6
- isExpended: boolean;
5
+ onClick?: () => void;
6
+ isExpanded: boolean;
7
7
  children?: string | React.ReactNode;
8
8
  icon?: React.ReactNode;
9
9
  withNumber?: boolean;
10
+ variant?: 'default' | 'bordered' | 'elevated';
11
+ size?: 'small' | 'medium' | 'large';
12
+ disabled?: boolean;
13
+ className?: string;
14
+ headerClassName?: string;
15
+ bodyClassName?: string;
16
+ showChevron?: boolean;
17
+ chevronPosition?: 'left' | 'right';
18
+ iconPosition?: 'left' | 'right';
19
+ numberPosition?: 'left' | 'right';
20
+ number?: number | string;
10
21
  }
11
- declare const Accordion: ({ accordionHeader, onClick, isExpended, children, icon, ...props }: AccordionI) => React.JSX.Element;
22
+ declare const Accordion: ({ accordionHeader, onClick, isExpanded, children, icon, withNumber, variant, size, disabled, className, headerClassName, bodyClassName, showChevron, chevronPosition, iconPosition, numberPosition, number, ...props }: AccordionI) => React.JSX.Element;
12
23
  export default Accordion;
@@ -0,0 +1,95 @@
1
+ import React from "react";
2
+ declare const _default: {
3
+ title: string;
4
+ component: ({ accordionHeader, onClick, isExpanded, children, icon, withNumber, variant, size, disabled, className, headerClassName, bodyClassName, showChevron, chevronPosition, iconPosition, numberPosition, number, ...props }: import("./Accordion").AccordionI) => React.JSX.Element;
5
+ parameters: {
6
+ docs: {
7
+ description: {
8
+ component: string;
9
+ };
10
+ };
11
+ };
12
+ argTypes: {
13
+ accordionHeader: {
14
+ description: string;
15
+ control: {
16
+ type: string;
17
+ };
18
+ };
19
+ isExpanded: {
20
+ description: string;
21
+ control: {
22
+ type: string;
23
+ };
24
+ };
25
+ disabled: {
26
+ description: string;
27
+ control: {
28
+ type: string;
29
+ };
30
+ };
31
+ variant: {
32
+ description: string;
33
+ control: {
34
+ type: string;
35
+ };
36
+ options: string[];
37
+ };
38
+ size: {
39
+ description: string;
40
+ control: {
41
+ type: string;
42
+ };
43
+ options: string[];
44
+ };
45
+ showChevron: {
46
+ description: string;
47
+ control: {
48
+ type: string;
49
+ };
50
+ };
51
+ chevronPosition: {
52
+ description: string;
53
+ control: {
54
+ type: string;
55
+ };
56
+ options: string[];
57
+ };
58
+ iconPosition: {
59
+ description: string;
60
+ control: {
61
+ type: string;
62
+ };
63
+ options: string[];
64
+ };
65
+ withNumber: {
66
+ description: string;
67
+ control: {
68
+ type: string;
69
+ };
70
+ };
71
+ numberPosition: {
72
+ description: string;
73
+ control: {
74
+ type: string;
75
+ };
76
+ options: string[];
77
+ };
78
+ number: {
79
+ description: string;
80
+ control: {
81
+ type: string;
82
+ };
83
+ };
84
+ };
85
+ };
86
+ export default _default;
87
+ export declare const Default: any;
88
+ export declare const Variants: () => React.JSX.Element;
89
+ export declare const Sizes: () => React.JSX.Element;
90
+ export declare const WithIcons: () => React.JSX.Element;
91
+ export declare const WithNumbers: () => React.JSX.Element;
92
+ export declare const ChevronPositions: () => React.JSX.Element;
93
+ export declare const DisabledState: () => React.JSX.Element;
94
+ export declare const ComplexExample: () => React.JSX.Element;
95
+ export declare const FAQExample: () => React.JSX.Element;
@@ -1,18 +1,112 @@
1
- import "./actionlist.css";
2
1
  import React from "react";
3
- export interface ActionListI {
4
- open: boolean;
2
+ import "./actionlist.css";
3
+ export interface ActionItem {
4
+ /** Unique identifier */
5
+ id?: string | number;
6
+ /** Item label/text */
7
+ label: string;
8
+ /** Optional description */
9
+ description?: string;
10
+ /** Click handler */
11
+ onClick?: () => void;
12
+ /** Leading icon or element */
13
+ leading?: React.ReactNode;
14
+ /** Trailing icon or element */
15
+ trailing?: React.ReactNode;
16
+ /** Badge text */
17
+ badge?: string | number;
18
+ /** Badge variant */
19
+ badgeVariant?: "default" | "primary" | "success" | "warning" | "error";
20
+ /** Keyboard shortcut display */
21
+ shortcut?: string;
22
+ /** Visual variant */
23
+ variant?: "default" | "primary" | "secondary" | "destructive";
24
+ /** Whether item is disabled */
25
+ disabled?: boolean;
26
+ /** Whether item is destructive (red styling) */
27
+ destructive?: boolean;
28
+ /** Whether item is selected */
29
+ selected?: boolean;
30
+ /** Custom class names */
31
+ className?: string;
32
+ }
33
+ export interface ActionGroup {
34
+ /** Unique identifier */
35
+ id?: string | number;
36
+ /** Group title */
37
+ title?: string;
38
+ /** Items in this group */
39
+ items: ActionItem[];
40
+ /** Whether to show separator after this group */
41
+ separator?: boolean;
42
+ /** Whether entire group is disabled */
43
+ disabled?: boolean;
44
+ }
45
+ export interface ActionListProps {
46
+ /** Trigger element */
47
+ children: React.ReactElement;
48
+ /** Action items or groups */
49
+ items: (ActionItem | ActionGroup)[];
50
+ /** Trigger behavior */
51
+ trigger?: "click" | "hover" | "focus";
52
+ /** Placement relative to trigger */
53
+ placement?: "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end";
54
+ /** Size of the action list */
55
+ size?: "Small" | "Medium" | "Large";
56
+ /** Visual variant */
57
+ variant?: "Default" | "Bordered" | "Elevated";
58
+ /** Whether the action list is disabled */
59
+ disabled?: boolean;
60
+ /** Whether to close on item selection */
61
+ closeOnSelect?: boolean;
62
+ /** Maximum height of dropdown */
63
+ maxHeight?: number;
64
+ /** Additional CSS classes */
65
+ className?: string;
66
+ /** Additional inline styles */
67
+ style?: React.CSSProperties;
68
+ /** Item selection handler */
69
+ onItemSelect?: (item: ActionItem) => void;
70
+ /** Open/close state change handler */
71
+ onOpenChange?: (open: boolean) => void;
72
+ /** Additional HTML attributes */
73
+ [key: string]: any;
74
+ }
75
+ export interface ActionListI extends Omit<ActionListProps, 'children' | 'items'> {
76
+ /** @deprecated Use children instead */
5
77
  activator: React.ReactNode;
78
+ /** @deprecated Use items instead */
6
79
  options: ActionListObjI[];
80
+ /** @deprecated Use isOpen state internally */
81
+ open: boolean;
82
+ /** @deprecated Use onOpenChange instead */
7
83
  onClose: () => void;
84
+ /** @deprecated Use placement instead */
8
85
  direction?: "left" | "right" | "auto";
86
+ /** @deprecated Use variant instead */
87
+ variant?: "default" | "bordered" | "elevated";
88
+ /** @deprecated Use size instead */
89
+ size?: "small" | "medium" | "large";
90
+ /** @deprecated Use maxHeight instead */
91
+ maxHeight?: string | number;
92
+ /** @deprecated Use style.width instead */
93
+ width?: string | number;
94
+ /** @deprecated Use className instead */
95
+ itemClassName?: string;
96
+ /** @deprecated Use className instead */
97
+ titleClassName?: string;
98
+ /** @deprecated Use separator in groups instead */
99
+ showDividers?: boolean;
9
100
  }
10
101
  export interface ActionListObjI {
102
+ /** @deprecated Use ActionGroup instead */
11
103
  title?: string;
12
104
  id?: number | string;
13
105
  items: ActionListItemsI[];
106
+ disabled?: boolean;
14
107
  }
15
108
  export interface ActionListItemsI {
109
+ /** @deprecated Use ActionItem instead */
16
110
  id?: number | string;
17
111
  content?: string;
18
112
  destructive?: boolean;
@@ -21,6 +115,12 @@ export interface ActionListItemsI {
21
115
  prefixIcon?: React.ReactNode;
22
116
  suffixIcon?: React.ReactNode;
23
117
  isDisabled?: boolean;
118
+ variant?: "default" | "primary" | "secondary" | "destructive";
119
+ size?: "small" | "medium" | "large";
120
+ badge?: string | number;
121
+ badgeVariant?: "default" | "primary" | "success" | "warning" | "error";
122
+ divider?: boolean;
24
123
  }
25
- export declare const Actionlist: React.ForwardRefExoticComponent<ActionListI & React.RefAttributes<unknown>>;
26
- export default Actionlist;
124
+ declare const ActionList: ({ children, items, trigger, placement, size, variant, disabled, closeOnSelect, maxHeight, className, style, onItemSelect, onOpenChange, ...props }: ActionListProps) => React.JSX.Element;
125
+ export default ActionList;
126
+ export { ActionList as Actionlist };
@@ -1,11 +1,72 @@
1
1
  import React from "react";
2
2
  declare const _default: {
3
3
  title: string;
4
- component: React.ForwardRefExoticComponent<import("./Actionlist").ActionListI & React.RefAttributes<unknown>>;
4
+ component: ({ children, items, trigger, placement, size, variant, disabled, closeOnSelect, maxHeight, className, style, onItemSelect, onOpenChange, ...props }: import("./Actionlist").ActionListProps) => React.JSX.Element;
5
5
  tags: string[];
6
+ argTypes: {
7
+ trigger: {
8
+ description: string;
9
+ control: {
10
+ type: string;
11
+ options: string[];
12
+ };
13
+ defaultValue: string;
14
+ };
15
+ placement: {
16
+ description: string;
17
+ control: {
18
+ type: string;
19
+ options: string[];
20
+ };
21
+ defaultValue: string;
22
+ };
23
+ size: {
24
+ description: string;
25
+ control: {
26
+ type: string;
27
+ options: string[];
28
+ };
29
+ defaultValue: string;
30
+ };
31
+ variant: {
32
+ description: string;
33
+ control: {
34
+ type: string;
35
+ options: string[];
36
+ };
37
+ defaultValue: string;
38
+ };
39
+ disabled: {
40
+ description: string;
41
+ control: {
42
+ type: string;
43
+ };
44
+ defaultValue: boolean;
45
+ };
46
+ closeOnSelect: {
47
+ description: string;
48
+ control: {
49
+ type: string;
50
+ };
51
+ defaultValue: boolean;
52
+ };
53
+ };
54
+ args: {
55
+ trigger: string;
56
+ placement: string;
57
+ size: string;
58
+ variant: string;
59
+ disabled: boolean;
60
+ closeOnSelect: boolean;
61
+ };
6
62
  };
7
63
  export default _default;
8
- export declare const Default: ({ ...rest }: {
64
+ export declare const Primary: ({ ...rest }: {
9
65
  [x: string]: any;
10
66
  }) => React.JSX.Element;
11
- export declare const ActionList_with_GroupedOption: any;
67
+ export declare const SimpleTest: () => React.JSX.Element;
68
+ export declare const ActionList_basic_examples: any;
69
+ export declare const ActionList_different_sizes: any;
70
+ export declare const ActionList_different_variants: any;
71
+ export declare const ActionList_grouped_actions: any;
72
+ export declare const ActionList_different_states: any;
@@ -1,16 +1,27 @@
1
1
  import React from "react";
2
+ import type { ButtonI } from "../Button/Button";
2
3
  import "./alert.css";
3
- import { ButtonI } from "../Button/Button";
4
- import { TextLinkI } from "../TextLink/TextLink";
5
- declare const Alert: ({ title, description, color, emphasis, onDismiss, icon, secondaryAction, primaryAction, ...props }: AlertI) => React.JSX.Element;
6
- export interface AlertI {
4
+ declare const Alert: ({ children, title, variant, emphasis, onDismiss, primaryAction, secondaryAction, className, style, ...props }: AlertProps) => React.JSX.Element;
5
+ export interface AlertProps {
6
+ /** Alert content */
7
+ children?: React.ReactNode;
8
+ /** Alert title */
7
9
  title?: string;
8
- description: React.ReactNode | string;
9
- color: "Primary" | "Positive" | "Negative" | "Waiting" | "Neutral";
10
- emphasis?: "Subtile" | "Intense";
10
+ /** Visual variant of the alert */
11
+ variant?: "default" | "success" | "error" | "warning" | "info";
12
+ /** Emphasis level */
13
+ emphasis?: "Subtle" | "Intense";
14
+ /** Callback when dismiss button is clicked */
11
15
  onDismiss?: () => void;
16
+ /** Primary action button configuration */
12
17
  primaryAction?: ButtonI;
13
- secondaryAction?: TextLinkI;
14
- icon: React.ReactNode;
18
+ /** Secondary action button configuration */
19
+ secondaryAction?: ButtonI;
20
+ /** Additional CSS classes */
21
+ className?: string;
22
+ /** Additional inline styles */
23
+ style?: React.CSSProperties;
24
+ /** Additional HTML attributes */
25
+ [key: string]: any;
15
26
  }
16
27
  export default Alert;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  declare const _default: {
3
3
  title: string;
4
- component: ({ title, description, color, emphasis, onDismiss, icon, secondaryAction, primaryAction, ...props }: import("./Alert").AlertI) => React.JSX.Element;
4
+ component: ({ children, title, variant, emphasis, onDismiss, primaryAction, secondaryAction, className, style, ...props }: import("./Alert").AlertProps) => React.JSX.Element;
5
5
  tags: string[];
6
6
  argTypes: {
7
7
  title: {
@@ -11,14 +11,14 @@ declare const _default: {
11
11
  };
12
12
  defaultValue: string;
13
13
  };
14
- description: {
14
+ children: {
15
15
  description: string;
16
16
  control: {
17
17
  type: string;
18
18
  };
19
19
  defaultValue: string;
20
20
  };
21
- color: {
21
+ variant: {
22
22
  description: string;
23
23
  control: {
24
24
  type: string;
@@ -34,13 +34,19 @@ declare const _default: {
34
34
  };
35
35
  defaultValue: string;
36
36
  };
37
- onDismiss: {};
37
+ };
38
+ args: {
39
+ title: string;
40
+ children: string;
41
+ variant: string;
42
+ emphasis: string;
38
43
  };
39
44
  };
40
45
  export default _default;
41
46
  export declare const Primary: ({ ...rest }: {
42
47
  [x: string]: any;
43
48
  }) => React.JSX.Element;
44
- export declare const Alert_without_action: any;
45
- export declare const Alert_with_multiple_color: any;
46
- export declare const Alert_with_multiple_color_and_Intense: any;
49
+ export declare const Alert_with_multiple_variants: any;
50
+ export declare const Alert_with_emphasis_levels: any;
51
+ export declare const Alert_with_dismiss_action: any;
52
+ export declare const Alert_with_primary_and_secondary_actions: any;
@@ -2,7 +2,11 @@ import React from "react";
2
2
  declare const _default: {
3
3
  title: string;
4
4
  component: ({ topBar, sideBar, footer, announcementBar, content, ...props }: import("./AppWrapper").AppWrapperI) => React.JSX.Element;
5
- tags: string[];
5
+ parameters: {
6
+ docs: {
7
+ autodocs: boolean;
8
+ };
9
+ };
6
10
  argTypes: {};
7
11
  };
8
12
  export default _default;
@@ -2,7 +2,11 @@ import React from "react";
2
2
  declare const _default: {
3
3
  title: string;
4
4
  component: ({ size, shape, label, icon, srcIco, indicator, onClick, ...props }: import("./Avatar").AvatarI) => React.JSX.Element;
5
- tags: string[];
5
+ parameters: {
6
+ docs: {
7
+ autodocs: boolean;
8
+ };
9
+ };
6
10
  argTypes: {
7
11
  size: {
8
12
  description: string;
@@ -1,11 +1,33 @@
1
1
  import React from "react";
2
2
  import "./badge.css";
3
- declare const Badge: ({ size, color, children, type, emphasis, ...props }: BadgeI) => React.JSX.Element;
4
- export interface BadgeI {
5
- size?: "Small" | "Medium" | "Large";
6
- color: "Primary" | "Positive" | "Negative" | "Notice" | "Neutral";
7
- type?: "Partial" | "Full" | "None";
8
- emphasis?: "Subtile" | "Intense" | "OutLine";
9
- children?: string;
3
+ declare const Badge: ({ children, tone, size, progress, icon, className, style, disabled, ...props }: BadgeProps) => React.JSX.Element;
4
+ export interface BadgeProps {
5
+ /** Badge content */
6
+ children: React.ReactNode;
7
+ /** Tone of the badge */
8
+ tone?: "default" | "success" | "attention" | "warning" | "critical" | "info";
9
+ /** Size of the badge */
10
+ size?: "default" | "small";
11
+ /** Progress state */
12
+ progress?: "incomplete" | "partiallyComplete" | "complete";
13
+ /** Custom icon component or icon name */
14
+ icon?: React.ComponentType<{
15
+ size?: number;
16
+ }> | "success" | "error" | "warning" | "info" | "pending" | "default";
17
+ /** Additional CSS classes */
18
+ className?: string;
19
+ /** Additional inline styles */
20
+ style?: React.CSSProperties;
21
+ /** Whether the badge is disabled */
22
+ disabled?: boolean;
23
+ /** Click handler for the badge */
24
+ onClick?: (e: React.MouseEvent) => void;
25
+ /** Accessibility label */
26
+ "aria-label"?: string;
27
+ /** Additional HTML attributes */
28
+ [key: string]: any;
10
29
  }
30
+ export type BadgeSize = "default" | "small";
31
+ export type BadgeTone = "default" | "success" | "attention" | "warning" | "critical" | "info";
32
+ export type BadgeProgress = "incomplete" | "partiallyComplete" | "complete";
11
33
  export default Badge;