@camtomlabs/malix-design-system 0.1.2 → 0.1.3
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/LICENSE +19 -5
- package/dist/index.cjs +2338 -0
- package/dist/index.d.cts +524 -0
- package/dist/index.d.ts +524 -0
- package/dist/index.js +2251 -0
- package/package.json +21 -8
- package/src/components/Accordion.tsx +0 -52
- package/src/components/Avatar.tsx +0 -18
- package/src/components/Badge.tsx +0 -27
- package/src/components/Banner.tsx +0 -75
- package/src/components/Breadcrumb.tsx +0 -58
- package/src/components/Button.tsx +0 -47
- package/src/components/Card.tsx +0 -34
- package/src/components/ChatInput.tsx +0 -53
- package/src/components/Checkbox.tsx +0 -85
- package/src/components/CreditsIndicator.tsx +0 -41
- package/src/components/DataTable.tsx +0 -75
- package/src/components/DateInput.tsx +0 -57
- package/src/components/Divider.tsx +0 -12
- package/src/components/Dropzone.tsx +0 -94
- package/src/components/EmptyState.tsx +0 -65
- package/src/components/FileCard.tsx +0 -78
- package/src/components/FilterTabs.tsx +0 -49
- package/src/components/FlyoutMenu.tsx +0 -36
- package/src/components/GlassPopover.tsx +0 -38
- package/src/components/Header.tsx +0 -22
- package/src/components/Input.tsx +0 -18
- package/src/components/InputGroup.tsx +0 -37
- package/src/components/LanguageSelector.tsx +0 -81
- package/src/components/Modal.tsx +0 -104
- package/src/components/OnboardingPopover.tsx +0 -61
- package/src/components/OperationStatus.tsx +0 -73
- package/src/components/Overlay.tsx +0 -66
- package/src/components/Pagination.tsx +0 -89
- package/src/components/Pill.tsx +0 -19
- package/src/components/PricingCard.tsx +0 -74
- package/src/components/ProgressBar.tsx +0 -47
- package/src/components/Radio.tsx +0 -56
- package/src/components/SectionHeader.tsx +0 -32
- package/src/components/SegmentedControl.tsx +0 -42
- package/src/components/Select.tsx +0 -62
- package/src/components/SelectGroup.tsx +0 -32
- package/src/components/SelectionCard.tsx +0 -47
- package/src/components/SidebarItem.tsx +0 -27
- package/src/components/SidebarPanel.tsx +0 -84
- package/src/components/SplitPane.tsx +0 -85
- package/src/components/StatCard.tsx +0 -64
- package/src/components/StatusDot.tsx +0 -26
- package/src/components/Stepper.tsx +0 -40
- package/src/components/TabBar.tsx +0 -45
- package/src/components/Textarea.tsx +0 -43
- package/src/components/Toggle.tsx +0 -50
- package/src/components/Tooltip.tsx +0 -33
- package/src/components/UserProfilePopover.tsx +0 -100
- package/src/components/ValidationAlert.tsx +0 -72
- package/src/index.ts +0 -177
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
export type ValidationAlertVariant = 'error' | 'warning' | 'info';
|
|
4
|
-
|
|
5
|
-
export type ValidationAlertProps = {
|
|
6
|
-
title: string;
|
|
7
|
-
message: string;
|
|
8
|
-
onClose?: () => void;
|
|
9
|
-
variant?: ValidationAlertVariant;
|
|
10
|
-
className?: string;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
function AlertIcon({ variant }: { variant: ValidationAlertVariant }) {
|
|
14
|
-
const shared = { width: 16, height: 16, viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', strokeWidth: 2, strokeLinecap: 'round' as const, strokeLinejoin: 'round' as const };
|
|
15
|
-
|
|
16
|
-
switch (variant) {
|
|
17
|
-
case 'error':
|
|
18
|
-
case 'warning':
|
|
19
|
-
return (
|
|
20
|
-
<svg {...shared}>
|
|
21
|
-
<path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z" />
|
|
22
|
-
<line x1="12" y1="9" x2="12" y2="13" />
|
|
23
|
-
<line x1="12" y1="17" x2="12.01" y2="17" />
|
|
24
|
-
</svg>
|
|
25
|
-
);
|
|
26
|
-
case 'info':
|
|
27
|
-
return (
|
|
28
|
-
<svg {...shared}>
|
|
29
|
-
<circle cx="12" cy="12" r="10" />
|
|
30
|
-
<line x1="12" y1="16" x2="12" y2="12" />
|
|
31
|
-
<line x1="12" y1="8" x2="12.01" y2="8" />
|
|
32
|
-
</svg>
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export function ValidationAlert({
|
|
38
|
-
title,
|
|
39
|
-
message,
|
|
40
|
-
onClose,
|
|
41
|
-
variant = 'error',
|
|
42
|
-
className,
|
|
43
|
-
}: ValidationAlertProps) {
|
|
44
|
-
return (
|
|
45
|
-
<div
|
|
46
|
-
className={`malix-validation-alert${className ? ` ${className}` : ''}`}
|
|
47
|
-
data-variant={variant}
|
|
48
|
-
role="alert"
|
|
49
|
-
>
|
|
50
|
-
<span className="malix-validation-alert__icon">
|
|
51
|
-
<AlertIcon variant={variant} />
|
|
52
|
-
</span>
|
|
53
|
-
<div className="malix-validation-alert__content">
|
|
54
|
-
<span className="malix-validation-alert__title">{title}</span>
|
|
55
|
-
<span className="malix-validation-alert__message">{message}</span>
|
|
56
|
-
</div>
|
|
57
|
-
{onClose ? (
|
|
58
|
-
<button
|
|
59
|
-
type="button"
|
|
60
|
-
className="malix-validation-alert__close"
|
|
61
|
-
onClick={onClose}
|
|
62
|
-
aria-label="Close"
|
|
63
|
-
>
|
|
64
|
-
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
|
|
65
|
-
<line x1="18" y1="6" x2="6" y2="18" />
|
|
66
|
-
<line x1="6" y1="6" x2="18" y2="18" />
|
|
67
|
-
</svg>
|
|
68
|
-
</button>
|
|
69
|
-
) : null}
|
|
70
|
-
</div>
|
|
71
|
-
);
|
|
72
|
-
}
|
package/src/index.ts
DELETED
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
export { default as tokenRegistry } from './tokens.registry.json' with { type: 'json' };
|
|
2
|
-
|
|
3
|
-
// Atoms
|
|
4
|
-
export { Divider } from './components/Divider';
|
|
5
|
-
export type { DividerProps } from './components/Divider';
|
|
6
|
-
export { Avatar } from './components/Avatar';
|
|
7
|
-
export type { AvatarProps } from './components/Avatar';
|
|
8
|
-
export { Pill } from './components/Pill';
|
|
9
|
-
export type { PillProps, PillVariant } from './components/Pill';
|
|
10
|
-
|
|
11
|
-
// Button
|
|
12
|
-
export { Button } from './components/Button';
|
|
13
|
-
export type { ButtonProps, ButtonHierarchy, ButtonVariant } from './components/Button';
|
|
14
|
-
|
|
15
|
-
// Inputs
|
|
16
|
-
export { Input, SearchInput } from './components/Input';
|
|
17
|
-
export type { InputProps } from './components/Input';
|
|
18
|
-
export { InputGroup } from './components/InputGroup';
|
|
19
|
-
export type { InputGroupProps } from './components/InputGroup';
|
|
20
|
-
|
|
21
|
-
// Feedback
|
|
22
|
-
export { Tooltip } from './components/Tooltip';
|
|
23
|
-
export type { TooltipProps, TooltipPlacement } from './components/Tooltip';
|
|
24
|
-
|
|
25
|
-
// Navigation
|
|
26
|
-
export { SidebarItem } from './components/SidebarItem';
|
|
27
|
-
export type { SidebarItemProps } from './components/SidebarItem';
|
|
28
|
-
export { FlyoutMenu } from './components/FlyoutMenu';
|
|
29
|
-
export type { FlyoutMenuProps, FlyoutMenuItem } from './components/FlyoutMenu';
|
|
30
|
-
export { SidebarPanel } from './components/SidebarPanel';
|
|
31
|
-
export type { SidebarPanelProps } from './components/SidebarPanel';
|
|
32
|
-
export { Header } from './components/Header';
|
|
33
|
-
export type { HeaderProps } from './components/Header';
|
|
34
|
-
|
|
35
|
-
// Layout
|
|
36
|
-
export { Card } from './components/Card';
|
|
37
|
-
export type { CardProps, CardLevel } from './components/Card';
|
|
38
|
-
|
|
39
|
-
// Data display
|
|
40
|
-
export { StatCard } from './components/StatCard';
|
|
41
|
-
export type { StatCardProps, StatCardChangeType } from './components/StatCard';
|
|
42
|
-
|
|
43
|
-
// Date
|
|
44
|
-
export { DateInput } from './components/DateInput';
|
|
45
|
-
export type { DateInputProps } from './components/DateInput';
|
|
46
|
-
|
|
47
|
-
// Tabs
|
|
48
|
-
export { FilterTabs } from './components/FilterTabs';
|
|
49
|
-
export type { FilterTabsProps, FilterTabItem } from './components/FilterTabs';
|
|
50
|
-
|
|
51
|
-
// Navigation (continued)
|
|
52
|
-
export { Breadcrumb } from './components/Breadcrumb';
|
|
53
|
-
export type { BreadcrumbProps, BreadcrumbItem } from './components/Breadcrumb';
|
|
54
|
-
|
|
55
|
-
// Feedback (continued)
|
|
56
|
-
export { ProgressBar } from './components/ProgressBar';
|
|
57
|
-
export type { ProgressBarProps, ProgressBarVariant } from './components/ProgressBar';
|
|
58
|
-
export { EmptyState } from './components/EmptyState';
|
|
59
|
-
export type { EmptyStateProps } from './components/EmptyState';
|
|
60
|
-
|
|
61
|
-
// Stepper
|
|
62
|
-
export { Stepper } from './components/Stepper';
|
|
63
|
-
export type { StepperProps, StepItem, StepStatus } from './components/Stepper';
|
|
64
|
-
|
|
65
|
-
// Textarea
|
|
66
|
-
export { Textarea } from './components/Textarea';
|
|
67
|
-
export type { TextareaProps } from './components/Textarea';
|
|
68
|
-
|
|
69
|
-
// Chat
|
|
70
|
-
export { ChatInput } from './components/ChatInput';
|
|
71
|
-
export type { ChatInputProps } from './components/ChatInput';
|
|
72
|
-
|
|
73
|
-
// Section / Page structure
|
|
74
|
-
export { SectionHeader } from './components/SectionHeader';
|
|
75
|
-
export type { SectionHeaderProps } from './components/SectionHeader';
|
|
76
|
-
|
|
77
|
-
// File display
|
|
78
|
-
export { FileCard } from './components/FileCard';
|
|
79
|
-
export type { FileCardProps } from './components/FileCard';
|
|
80
|
-
|
|
81
|
-
// Tabs (continued)
|
|
82
|
-
export { TabBar } from './components/TabBar';
|
|
83
|
-
export type { TabBarProps, TabItem } from './components/TabBar';
|
|
84
|
-
|
|
85
|
-
// Status / Alerts
|
|
86
|
-
export { OperationStatus } from './components/OperationStatus';
|
|
87
|
-
export type { OperationStatusProps, OperationStatusType } from './components/OperationStatus';
|
|
88
|
-
export { ValidationAlert } from './components/ValidationAlert';
|
|
89
|
-
export type { ValidationAlertProps, ValidationAlertVariant } from './components/ValidationAlert';
|
|
90
|
-
|
|
91
|
-
// Selection
|
|
92
|
-
export { SelectionCard } from './components/SelectionCard';
|
|
93
|
-
export type { SelectionCardProps } from './components/SelectionCard';
|
|
94
|
-
|
|
95
|
-
// Overlays
|
|
96
|
-
export { Overlay } from './components/Overlay';
|
|
97
|
-
export type { OverlayProps } from './components/Overlay';
|
|
98
|
-
export { Modal } from './components/Modal';
|
|
99
|
-
export type { ModalProps } from './components/Modal';
|
|
100
|
-
export { GlassPopover } from './components/GlassPopover';
|
|
101
|
-
export type { GlassPopoverProps } from './components/GlassPopover';
|
|
102
|
-
|
|
103
|
-
// Accordion
|
|
104
|
-
export { Accordion } from './components/Accordion';
|
|
105
|
-
export type { AccordionProps } from './components/Accordion';
|
|
106
|
-
|
|
107
|
-
// Badge
|
|
108
|
-
export { Badge } from './components/Badge';
|
|
109
|
-
export type { BadgeProps, BadgeVariant } from './components/Badge';
|
|
110
|
-
|
|
111
|
-
// Banner
|
|
112
|
-
export { Banner } from './components/Banner';
|
|
113
|
-
export type { BannerProps, BannerVariant } from './components/Banner';
|
|
114
|
-
|
|
115
|
-
// Checkbox
|
|
116
|
-
export { Checkbox } from './components/Checkbox';
|
|
117
|
-
export type { CheckboxProps } from './components/Checkbox';
|
|
118
|
-
|
|
119
|
-
// Radio
|
|
120
|
-
export { Radio } from './components/Radio';
|
|
121
|
-
export type { RadioProps } from './components/Radio';
|
|
122
|
-
|
|
123
|
-
// Toggle
|
|
124
|
-
export { Toggle } from './components/Toggle';
|
|
125
|
-
export type { ToggleProps } from './components/Toggle';
|
|
126
|
-
|
|
127
|
-
// Select
|
|
128
|
-
export { Select } from './components/Select';
|
|
129
|
-
export type { SelectProps, SelectOption } from './components/Select';
|
|
130
|
-
|
|
131
|
-
// SelectGroup
|
|
132
|
-
export { SelectGroup } from './components/SelectGroup';
|
|
133
|
-
export type { SelectGroupProps } from './components/SelectGroup';
|
|
134
|
-
|
|
135
|
-
// SegmentedControl
|
|
136
|
-
export { SegmentedControl } from './components/SegmentedControl';
|
|
137
|
-
export type { SegmentedControlProps, SegmentedControlItem } from './components/SegmentedControl';
|
|
138
|
-
|
|
139
|
-
// DataTable
|
|
140
|
-
export { DataTable } from './components/DataTable';
|
|
141
|
-
export type { DataTableProps, TableColumn, TableRow } from './components/DataTable';
|
|
142
|
-
|
|
143
|
-
// Pagination
|
|
144
|
-
export { Pagination } from './components/Pagination';
|
|
145
|
-
export type { PaginationProps, PaginationVariant } from './components/Pagination';
|
|
146
|
-
|
|
147
|
-
// StatusDot
|
|
148
|
-
export { StatusDot } from './components/StatusDot';
|
|
149
|
-
export type { StatusDotProps, StatusDotVariant } from './components/StatusDot';
|
|
150
|
-
|
|
151
|
-
// Dropzone
|
|
152
|
-
export { Dropzone } from './components/Dropzone';
|
|
153
|
-
export type { DropzoneProps } from './components/Dropzone';
|
|
154
|
-
|
|
155
|
-
// SplitPane
|
|
156
|
-
export { SplitPane } from './components/SplitPane';
|
|
157
|
-
export type { SplitPaneProps } from './components/SplitPane';
|
|
158
|
-
|
|
159
|
-
// PricingCard
|
|
160
|
-
export { PricingCard } from './components/PricingCard';
|
|
161
|
-
export type { PricingCardProps } from './components/PricingCard';
|
|
162
|
-
|
|
163
|
-
// OnboardingPopover
|
|
164
|
-
export { OnboardingPopover } from './components/OnboardingPopover';
|
|
165
|
-
export type { OnboardingPopoverProps } from './components/OnboardingPopover';
|
|
166
|
-
|
|
167
|
-
// CreditsIndicator
|
|
168
|
-
export { CreditsIndicator } from './components/CreditsIndicator';
|
|
169
|
-
export type { CreditsIndicatorProps } from './components/CreditsIndicator';
|
|
170
|
-
|
|
171
|
-
// LanguageSelector
|
|
172
|
-
export { LanguageSelector } from './components/LanguageSelector';
|
|
173
|
-
export type { LanguageSelectorProps, LanguageSelectorOption } from './components/LanguageSelector';
|
|
174
|
-
|
|
175
|
-
// UserProfilePopover
|
|
176
|
-
export { UserProfilePopover } from './components/UserProfilePopover';
|
|
177
|
-
export type { UserProfilePopoverProps, UserProfileMenuItem } from './components/UserProfilePopover';
|