tc-dazzle-ui 1.2.0 → 1.4.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/Atoms/Icons/Icons.d.ts +47 -1
- package/dist/components/Atoms/Icons/index.d.ts +1 -1
- package/dist/components/Atoms/Logo/Logo.d.ts +0 -1
- package/dist/components/Atoms/index.d.ts +1 -1
- package/dist/components/Molecules/DropdownMenu/DropdownMenu.d.ts +2 -0
- package/dist/components/Organisms/MainHeader/MainHeader.d.ts +0 -2
- package/dist/index.esm.js +68 -21
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +67 -21
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +551 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/lib/browser.d.ts +22 -0
- package/dist/lib/index.d.ts +1 -1
- package/dist/styles.css +1 -1
- package/dist/web-components.css +1 -1
- package/package.json +2 -2
|
@@ -11,4 +11,50 @@ export declare const SearchIcon: React.FC<IconProps>;
|
|
|
11
11
|
export declare const ChevronDownIcon: React.FC<IconProps>;
|
|
12
12
|
export declare const ChevronUpIcon: React.FC<IconProps>;
|
|
13
13
|
export declare const CaretDownIcon: React.FC<IconProps>;
|
|
14
|
-
export declare const
|
|
14
|
+
export declare const CloseIcon: React.FC<IconProps>;
|
|
15
|
+
export declare const MenuIcon: React.FC<IconProps>;
|
|
16
|
+
export declare const CheckIcon: React.FC<IconProps>;
|
|
17
|
+
export declare const PlusIcon: React.FC<IconProps>;
|
|
18
|
+
export declare const MinusIcon: React.FC<IconProps>;
|
|
19
|
+
export declare const EditIcon: React.FC<IconProps>;
|
|
20
|
+
export declare const DeleteIcon: React.FC<IconProps>;
|
|
21
|
+
export declare const SettingsIcon: React.FC<IconProps>;
|
|
22
|
+
export declare const UserIcon: React.FC<IconProps>;
|
|
23
|
+
export declare const HomeIcon: React.FC<IconProps>;
|
|
24
|
+
export declare const ArrowLeftIcon: React.FC<IconProps>;
|
|
25
|
+
export declare const ArrowRightIcon: React.FC<IconProps>;
|
|
26
|
+
export declare const ArrowUpIcon: React.FC<IconProps>;
|
|
27
|
+
export declare const ArrowDownIcon: React.FC<IconProps>;
|
|
28
|
+
export declare const StarIcon: React.FC<IconProps>;
|
|
29
|
+
export declare const StarOutlineIcon: React.FC<IconProps>;
|
|
30
|
+
export declare const FilterIcon: React.FC<IconProps>;
|
|
31
|
+
export declare const SortIcon: React.FC<IconProps>;
|
|
32
|
+
export declare const RefreshIcon: React.FC<IconProps>;
|
|
33
|
+
export declare const DownloadIcon: React.FC<IconProps>;
|
|
34
|
+
export declare const UploadIcon: React.FC<IconProps>;
|
|
35
|
+
export declare const CopyIcon: React.FC<IconProps>;
|
|
36
|
+
export declare const CalendarIcon: React.FC<IconProps>;
|
|
37
|
+
export declare const ClockIcon: React.FC<IconProps>;
|
|
38
|
+
export declare const EmailIcon: React.FC<IconProps>;
|
|
39
|
+
export declare const PhoneIcon: React.FC<IconProps>;
|
|
40
|
+
export declare const LockIcon: React.FC<IconProps>;
|
|
41
|
+
export declare const UnlockIcon: React.FC<IconProps>;
|
|
42
|
+
export declare const EyeIcon: React.FC<IconProps>;
|
|
43
|
+
export declare const EyeOffIcon: React.FC<IconProps>;
|
|
44
|
+
export declare const NotificationIcon: React.FC<IconProps>;
|
|
45
|
+
export declare const WarningIcon: React.FC<IconProps>;
|
|
46
|
+
export declare const ErrorIcon: React.FC<IconProps>;
|
|
47
|
+
export declare const SuccessIcon: React.FC<IconProps>;
|
|
48
|
+
export declare const HelpIcon: React.FC<IconProps>;
|
|
49
|
+
export declare const LinkIcon: React.FC<IconProps>;
|
|
50
|
+
export declare const AttachmentIcon: React.FC<IconProps>;
|
|
51
|
+
export declare const FolderIcon: React.FC<IconProps>;
|
|
52
|
+
export declare const FileIcon: React.FC<IconProps>;
|
|
53
|
+
export declare const PrintIcon: React.FC<IconProps>;
|
|
54
|
+
export declare const ShareIcon: React.FC<IconProps>;
|
|
55
|
+
export declare const MoreVerticalIcon: React.FC<IconProps>;
|
|
56
|
+
export declare const MoreHorizontalIcon: React.FC<IconProps>;
|
|
57
|
+
export declare const ExpandIcon: React.FC<IconProps>;
|
|
58
|
+
export declare const CollapseIcon: React.FC<IconProps>;
|
|
59
|
+
export declare const FullscreenIcon: React.FC<IconProps>;
|
|
60
|
+
export declare const FullscreenExitIcon: React.FC<IconProps>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { InfoIcon, SearchIcon, ChevronDownIcon, ChevronUpIcon, CaretDownIcon,
|
|
1
|
+
export { InfoIcon, SearchIcon, ChevronDownIcon, ChevronUpIcon, CaretDownIcon, CloseIcon, MenuIcon, CheckIcon, PlusIcon, MinusIcon, EditIcon, DeleteIcon, SettingsIcon, UserIcon, HomeIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowDownIcon, StarIcon, StarOutlineIcon, FilterIcon, SortIcon, RefreshIcon, DownloadIcon, UploadIcon, CopyIcon, CalendarIcon, ClockIcon, EmailIcon, PhoneIcon, LockIcon, UnlockIcon, EyeIcon, EyeOffIcon, NotificationIcon, WarningIcon, ErrorIcon, SuccessIcon, HelpIcon, LinkIcon, AttachmentIcon, FolderIcon, FileIcon, PrintIcon, ShareIcon, MoreVerticalIcon, MoreHorizontalIcon, ExpandIcon, CollapseIcon, FullscreenIcon, FullscreenExitIcon, } from './Icons';
|
|
2
2
|
export type { IconProps, IconSize } from './Icons';
|
|
@@ -8,7 +8,7 @@ export { GlobalSearch } from './GlobalSearch';
|
|
|
8
8
|
export type { GlobalSearchProps, GlobalSearchOption } from './GlobalSearch';
|
|
9
9
|
export { IconButton } from './IconButton';
|
|
10
10
|
export type { IconButtonProps, IconButtonSize, IconButtonColor, IconButtonState } from './IconButton';
|
|
11
|
-
export { InfoIcon, SearchIcon, ChevronDownIcon, ChevronUpIcon, CaretDownIcon,
|
|
11
|
+
export { InfoIcon, SearchIcon, ChevronDownIcon, ChevronUpIcon, CaretDownIcon, CloseIcon, MenuIcon, CheckIcon, PlusIcon, MinusIcon, EditIcon, DeleteIcon, SettingsIcon, UserIcon, HomeIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowDownIcon, StarIcon, StarOutlineIcon, FilterIcon, SortIcon, RefreshIcon, DownloadIcon, UploadIcon, CopyIcon, CalendarIcon, ClockIcon, EmailIcon, PhoneIcon, LockIcon, UnlockIcon, EyeIcon, EyeOffIcon, NotificationIcon, WarningIcon, ErrorIcon, SuccessIcon, HelpIcon, LinkIcon, AttachmentIcon, FolderIcon, FileIcon, PrintIcon, ShareIcon, MoreVerticalIcon, MoreHorizontalIcon, ExpandIcon, CollapseIcon, FullscreenIcon, FullscreenExitIcon } from './Icons';
|
|
12
12
|
export type { IconProps, IconSize } from './Icons';
|
|
13
13
|
export { Logo } from './Logo';
|
|
14
14
|
export type { LogoProps, LogoSize, LogoVariant } from './Logo';
|
|
@@ -4,12 +4,14 @@ export interface DropdownMenuItem {
|
|
|
4
4
|
id: string;
|
|
5
5
|
label: string;
|
|
6
6
|
icon?: React.ReactNode;
|
|
7
|
+
subItems?: DropdownMenuItem[];
|
|
7
8
|
onClick?: () => void;
|
|
8
9
|
}
|
|
9
10
|
export interface DropdownMenuProps {
|
|
10
11
|
items: DropdownMenuItem[];
|
|
11
12
|
selectedId?: string;
|
|
12
13
|
onItemClick?: (item: DropdownMenuItem) => void;
|
|
14
|
+
showIcons?: boolean;
|
|
13
15
|
className?: string;
|
|
14
16
|
}
|
|
15
17
|
export declare const DropdownMenu: React.FC<DropdownMenuProps>;
|
|
@@ -4,8 +4,6 @@ import type { DropdownMenuItem } from '../../Molecules';
|
|
|
4
4
|
import type { GlobalSearchOption } from '../../Atoms';
|
|
5
5
|
import './MainHeader.css';
|
|
6
6
|
export interface MainHeaderProps {
|
|
7
|
-
showSandbox?: boolean;
|
|
8
|
-
menuItems?: HeaderMenuItem[];
|
|
9
7
|
searchFilterOptions?: GlobalSearchOption[];
|
|
10
8
|
searchPlaceholder?: string;
|
|
11
9
|
searchFilterPlaceholder?: string;
|
package/dist/index.esm.js
CHANGED
|
@@ -248,13 +248,11 @@ const ChevronDownIcon = (props) => (jsx(IconWrapper, { ...props, children: jsx("
|
|
|
248
248
|
// Chevron Up Icon
|
|
249
249
|
const ChevronUpIcon = (props) => (jsx(IconWrapper, { ...props, children: jsx("svg", { viewBox: "0 0 10 6", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: jsx("path", { d: "M10 6L5 1L0 6H10Z", fill: "currentColor" }) }) }));
|
|
250
250
|
// Caret Down Icon
|
|
251
|
-
const CaretDownIcon = (props) => (jsx(IconWrapper, { ...props, children: jsx("svg", { viewBox: "0 0 10 6", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: jsx("path", { d: "M5 6L0 0H10L5 6Z", fill: "currentColor" }) }) }));
|
|
252
|
-
// TeamConnect Logo Icon (honeycomb hexagon pattern)
|
|
253
|
-
const TeamConnectIcon = (props) => (jsx(IconWrapper, { ...props, children: jsxs("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [jsx("path", { d: "M5.5 4L8 2.5L10.5 4V7L8 8.5L5.5 7V4Z", fill: "#E91E63" }), jsx("path", { d: "M10.5 4L13 2.5L15.5 4V7L13 8.5L10.5 7V4Z", fill: "#9C27B0" }), jsx("path", { d: "M3 8.5L5.5 7L8 8.5V11.5L5.5 13L3 11.5V8.5Z", fill: "#7B1FA2" }), jsx("path", { d: "M8 8.5L10.5 7L13 8.5V11.5L10.5 13L8 11.5V8.5Z", fill: "#673AB7" }), jsx("path", { d: "M13 8.5L15.5 7L18 8.5V11.5L15.5 13L13 11.5V8.5Z", fill: "#3F51B5" }), jsx("path", { d: "M5.5 13L8 11.5L10.5 13V16L8 17.5L5.5 16V13Z", fill: "#303F9F" }), jsx("path", { d: "M10.5 13L13 11.5L15.5 13V16L13 17.5L10.5 16V13Z", fill: "#1A237E" })] }) }));
|
|
251
|
+
const CaretDownIcon = (props) => (jsx(IconWrapper, { ...props, children: jsx("svg", { viewBox: "0 0 10 6", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: jsx("path", { d: "M5 6L0 0H10L5 6Z", fill: "currentColor" }) }) }));
|
|
254
252
|
|
|
255
|
-
// TeamConnect Logo Icon (
|
|
256
|
-
const LogoIcon = ({ className }) => (jsxs("svg", { className: className, viewBox: "0 0
|
|
257
|
-
const Logo = ({ size = 'medium', variant = 'full',
|
|
253
|
+
// TeamConnect Logo Icon - Default (hexagon cluster pattern)
|
|
254
|
+
const LogoIcon = ({ className }) => (jsxs("svg", { className: className, viewBox: "0 0 32 33", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [jsx("path", { d: "M8.95902 16.0675L11.9454 10.8724L8.95902 5.68262H2.98634L0 10.8724L2.98634 16.0675H8.95902Z", fill: "#EC822A" }), jsx("path", { d: "M18.71 10.3849L21.6963 5.19515L18.71 0H12.7373L9.75098 5.19515L12.7373 10.3849H18.71Z", fill: "#E65A36" }), jsx("path", { d: "M22.5537 17.084L19.5674 22.2737L22.5537 27.4689H28.5264L31.5127 22.2737L28.5264 17.084H22.5537Z", fill: "#002453" }), jsx("path", { d: "M8.95902 17.084H2.98634L0 22.2737L2.98634 27.4689H8.95902L11.9454 22.2737L8.95902 17.084Z", fill: "#67666B" }), jsx("path", { d: "M22.5537 16.0675H28.5264L31.5127 10.8724L28.5264 5.68262H22.5537L19.5674 10.8724L22.5537 16.0675Z", fill: "#1CB3CD" }), jsx("path", { d: "M12.7373 22.6152L9.75098 27.805L12.7373 33.0001H18.71L21.6963 27.805L18.71 22.6152H12.7373Z", fill: "#B41E80" })] }));
|
|
255
|
+
const Logo = ({ size = 'medium', variant = 'full', className = '', onClick, }) => {
|
|
258
256
|
const getSizeClass = () => {
|
|
259
257
|
switch (size) {
|
|
260
258
|
case 'small':
|
|
@@ -270,7 +268,7 @@ const Logo = ({ size = 'medium', variant = 'full', showSandbox = false, classNam
|
|
|
270
268
|
e.preventDefault();
|
|
271
269
|
onClick();
|
|
272
270
|
}
|
|
273
|
-
} : undefined, children: [jsx(LogoIcon, { className: "tc-logo__icon" }), variant === 'full' && (jsxs("span", { className: "tc-logo__text", children: [jsx("span", { className: "tc-logo__text-team", children: "Team" }), jsx("span", { className: "tc-logo__text-connect", children: "Connect" })
|
|
271
|
+
} : undefined, children: [jsx(LogoIcon, { className: "tc-logo__icon" }), variant === 'full' && (jsxs("span", { className: "tc-logo__text", children: [jsx("span", { className: "tc-logo__text-team", children: "Team" }), jsx("span", { className: "tc-logo__text-connect", children: "Connect" })] }))] }));
|
|
274
272
|
};
|
|
275
273
|
|
|
276
274
|
const Search = ({ placeholder = 'Search', filterPlaceholder = 'All', filterOptions = [
|
|
@@ -295,23 +293,39 @@ const Search = ({ placeholder = 'Search', filterPlaceholder = 'All', filterOptio
|
|
|
295
293
|
return (jsxs("div", { className: `tc-search ${className}`.trim(), children: [jsx(GlobalSearch, { placeholder: placeholder, filterPlaceholder: filterPlaceholder, filterOptions: filterOptions, filterValue: controlledFilterValue !== undefined ? controlledFilterValue : filterValue, searchValue: controlledSearchValue !== undefined ? controlledSearchValue : searchValue, disabled: disabled, onSearch: handleSearch, onFilterChange: handleFilterChange, onSubmit: handleSubmit }), showInfoIcon && (jsx(IconButton, { icon: jsx(InfoIcon, { size: "medium" }), size: "medium", color: "default", onClick: handleInfoClick, disabled: disabled, ariaLabel: "More information", className: "tc-search__info-button" }))] }));
|
|
296
294
|
};
|
|
297
295
|
|
|
296
|
+
// Chevron Right Icon for submenu indicator
|
|
297
|
+
const ChevronRightIcon = ({ className }) => (jsx("svg", { className: className, viewBox: "0 0 6 10", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", children: jsx("path", { d: "M1 1L5 5L1 9", stroke: "currentColor", strokeWidth: "1.5", fill: "none" }) }));
|
|
298
298
|
// Default Wrench Icon (from Figma design)
|
|
299
299
|
const WrenchIcon = ({ className }) => (jsx("svg", { className: className, viewBox: "0 0 14 14", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", children: jsx("path", { d: "M13.6 3.5C13.4 3.3 13.1 3.3 12.9 3.5L10.5 5.9L8.1 3.5L10.5 1.1C10.7 0.9 10.7 0.6 10.5 0.4C9.3 -0.4 7.7 -0.1 6.6 1C5.7 1.9 5.4 3.2 5.8 4.3L0.4 9.7C-0.1 10.2 -0.1 11 0.4 11.5L2.5 13.6C3 14.1 3.8 14.1 4.3 13.6L9.7 8.2C10.8 8.6 12.1 8.3 13 7.4C14.1 6.3 14.4 4.7 13.6 3.5Z" }) }));
|
|
300
|
-
|
|
300
|
+
// Submenu component
|
|
301
|
+
const SubMenu = ({ items, onItemClick, showIcons }) => {
|
|
302
|
+
return (jsx("div", { className: "tc-dropdown-menu__submenu", children: items.map((item) => (jsxs("div", { className: "tc-dropdown-menu__submenu-item", onClick: (e) => {
|
|
303
|
+
var _a;
|
|
304
|
+
e.stopPropagation();
|
|
305
|
+
(_a = item.onClick) === null || _a === void 0 ? void 0 : _a.call(item);
|
|
306
|
+
onItemClick === null || onItemClick === void 0 ? void 0 : onItemClick(item);
|
|
307
|
+
}, role: "menuitem", tabIndex: 0, children: [showIcons && item.icon && (jsx("span", { className: "tc-dropdown-menu__icon", children: item.icon })), jsx("span", { className: "tc-dropdown-menu__label", children: item.label })] }, item.id))) }));
|
|
308
|
+
};
|
|
309
|
+
const DropdownMenu = ({ items, selectedId, onItemClick, showIcons = true, className = '', }) => {
|
|
310
|
+
const [hoveredItemId, setHoveredItemId] = useState(null);
|
|
301
311
|
const handleItemClick = (item) => {
|
|
302
312
|
var _a;
|
|
303
|
-
(
|
|
304
|
-
|
|
313
|
+
if (!item.subItems || item.subItems.length === 0) {
|
|
314
|
+
(_a = item.onClick) === null || _a === void 0 ? void 0 : _a.call(item);
|
|
315
|
+
onItemClick === null || onItemClick === void 0 ? void 0 : onItemClick(item);
|
|
316
|
+
}
|
|
305
317
|
};
|
|
306
|
-
return (jsx("div", { className: `tc-dropdown-menu ${className}`.trim(), children: items.map((item, index) => {
|
|
318
|
+
return (jsx("div", { className: `tc-dropdown-menu ${className}`.trim(), role: "menu", children: items.map((item, index) => {
|
|
307
319
|
const isSelected = item.id === selectedId;
|
|
308
320
|
const isLast = index === items.length - 1;
|
|
309
|
-
|
|
321
|
+
const hasSubItems = item.subItems && item.subItems.length > 0;
|
|
322
|
+
const isHovered = hoveredItemId === item.id;
|
|
323
|
+
return (jsxs("div", { className: `tc-dropdown-menu__item ${isSelected ? 'tc-dropdown-menu__item--selected' : ''} ${isLast ? 'tc-dropdown-menu__item--last' : ''} ${hasSubItems ? 'tc-dropdown-menu__item--has-submenu' : ''}`, onClick: () => handleItemClick(item), onMouseEnter: () => setHoveredItemId(item.id), onMouseLeave: () => setHoveredItemId(null), role: "menuitem", tabIndex: 0, onKeyDown: (e) => {
|
|
310
324
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
311
325
|
e.preventDefault();
|
|
312
326
|
handleItemClick(item);
|
|
313
327
|
}
|
|
314
|
-
}, children: jsxs("div", { className: "tc-dropdown-menu__link", children: [jsx("span", { className: "tc-dropdown-menu__icon", children: item.icon || jsx(WrenchIcon, {}) }), jsx("span", { className: "tc-dropdown-menu__label", children: item.label })] }) }, item.id));
|
|
328
|
+
}, children: [jsxs("div", { className: "tc-dropdown-menu__link", children: [showIcons && (jsx("span", { className: "tc-dropdown-menu__icon", children: item.icon || jsx(WrenchIcon, {}) })), jsx("span", { className: "tc-dropdown-menu__label", children: item.label }), hasSubItems && (jsx("span", { className: "tc-dropdown-menu__chevron", children: jsx(ChevronRightIcon, {}) }))] }), hasSubItems && isHovered && (jsx(SubMenu, { items: item.subItems, onItemClick: onItemClick, showIcons: showIcons }))] }, item.id));
|
|
315
329
|
}) }));
|
|
316
330
|
};
|
|
317
331
|
|
|
@@ -356,15 +370,48 @@ const HeaderMenu = ({ items, onItemClick, onDropdownItemClick, className = '', }
|
|
|
356
370
|
return (jsx("div", { ref: menuRef, className: `tc-header-menu ${className}`.trim(), children: items.map((item) => {
|
|
357
371
|
const isOpen = openMenuId === item.id;
|
|
358
372
|
const hasDropdown = item.dropdownItems && item.dropdownItems.length > 0;
|
|
359
|
-
return (jsxs("div", { className: "tc-header-menu__item-wrapper", children: [jsxs("button", { className: `tc-header-menu__item ${isOpen ? 'tc-header-menu__item--active' : ''}`, onClick: () => handleItemClick(item), type: "button", "aria-expanded": hasDropdown ? isOpen : undefined, "aria-haspopup": hasDropdown ? 'menu' : undefined, children: [jsx("span", { className: "tc-header-menu__icon", children: item.icon || defaultIcons[item.id.toLowerCase()] || jsx(BookmarkIcon, {}) }), jsx("span", { className: "tc-header-menu__label", children: item.label })] }), hasDropdown && isOpen && (jsx("div", { className: "tc-header-menu__dropdown", children: jsx(DropdownMenu, { items: item.dropdownItems, onItemClick: (dropdownItem) => handleDropdownItemClick(item, dropdownItem) }) }))] }, item.id));
|
|
373
|
+
return (jsxs("div", { className: "tc-header-menu__item-wrapper", children: [jsxs("button", { className: `tc-header-menu__item ${isOpen ? 'tc-header-menu__item--active' : ''}`, onClick: () => handleItemClick(item), type: "button", "aria-expanded": hasDropdown ? isOpen : undefined, "aria-haspopup": hasDropdown ? 'menu' : undefined, children: [jsx("span", { className: "tc-header-menu__icon", children: item.icon || defaultIcons[item.id.toLowerCase()] || jsx(BookmarkIcon, {}) }), jsx("span", { className: "tc-header-menu__label", children: item.label })] }), hasDropdown && isOpen && (jsx("div", { className: "tc-header-menu__dropdown", children: jsx(DropdownMenu, { items: item.dropdownItems, onItemClick: (dropdownItem) => handleDropdownItemClick(item, dropdownItem), showIcons: false }) }))] }, item.id));
|
|
360
374
|
}) }));
|
|
361
375
|
};
|
|
362
376
|
|
|
363
|
-
//
|
|
364
|
-
const
|
|
377
|
+
// Fixed menu items - always the same
|
|
378
|
+
const menuItems = [
|
|
365
379
|
{ id: 'bookmarks', label: 'Bookmarks', dropdownItems: [] },
|
|
366
|
-
{
|
|
367
|
-
|
|
380
|
+
{
|
|
381
|
+
id: 'recent',
|
|
382
|
+
label: 'Recent',
|
|
383
|
+
dropdownItems: [
|
|
384
|
+
{ id: 'unsaved-items', label: 'Unsaved Items', subItems: [
|
|
385
|
+
{ id: 'no-unsaved', label: 'No Unsaved Items' },
|
|
386
|
+
] },
|
|
387
|
+
{ id: 'recently-viewed', label: 'Recently Viewed', subItems: [] },
|
|
388
|
+
{ id: 'recent-searches', label: 'Recent Searches', subItems: [] },
|
|
389
|
+
]
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
id: 'all',
|
|
393
|
+
label: 'All',
|
|
394
|
+
dropdownItems: [
|
|
395
|
+
{ id: 'view-full-list', label: 'View Full List' },
|
|
396
|
+
{ id: 'accounts', label: 'Accounts' },
|
|
397
|
+
{ id: 'action-matrix', label: 'Action Matrix', subItems: [
|
|
398
|
+
{ id: 'action-items', label: 'Action Items' },
|
|
399
|
+
] },
|
|
400
|
+
{ id: 'advanced-docket', label: 'Advanced Docket Management', subItems: [
|
|
401
|
+
{ id: 'scheduling-orders', label: 'Scheduling Orders' },
|
|
402
|
+
] },
|
|
403
|
+
{ id: 'appointments', label: 'Appointments' },
|
|
404
|
+
{ id: 'approvals', label: 'Approvals' },
|
|
405
|
+
{ id: 'ap-settings', label: 'AP Settings' },
|
|
406
|
+
{ id: 'aries', label: 'ARIES' },
|
|
407
|
+
{ id: 'aries-feedback', label: 'ARIES Feedback' },
|
|
408
|
+
{ id: 'aries-settings', label: 'ARIES Settings' },
|
|
409
|
+
{ id: 'billing-profiles', label: 'Billing Profiles' },
|
|
410
|
+
{ id: 'budget-settings', label: 'Budget Settings' },
|
|
411
|
+
{ id: 'budget-tests', label: 'Budget Tests' },
|
|
412
|
+
{ id: 'cats-matters', label: 'Cats Matters' },
|
|
413
|
+
]
|
|
414
|
+
},
|
|
368
415
|
{ id: 'tools', label: 'Tools', dropdownItems: [] },
|
|
369
416
|
{ id: 'help', label: 'Help', dropdownItems: [] },
|
|
370
417
|
{ id: 'client', label: 'Client', dropdownItems: [] },
|
|
@@ -373,8 +420,8 @@ const defaultMenuItems = [
|
|
|
373
420
|
const defaultFilterOptions = [
|
|
374
421
|
{ value: 'all', label: 'All' },
|
|
375
422
|
];
|
|
376
|
-
const MainHeader = ({
|
|
377
|
-
return (jsxs("header", { className: `tc-main-header ${className}`.trim(), children: [jsx("div", { className: "tc-main-header__logo", children: jsx(Logo, { size: "medium",
|
|
423
|
+
const MainHeader = ({ searchFilterOptions = defaultFilterOptions, searchPlaceholder = 'Search', searchFilterPlaceholder = 'All', onLogoClick, onSearch, onMenuItemClick, onDropdownItemClick, onInfoClick, className = '', }) => {
|
|
424
|
+
return (jsxs("header", { className: `tc-main-header ${className}`.trim(), children: [jsx("div", { className: "tc-main-header__logo", children: jsx(Logo, { size: "medium", onClick: onLogoClick }) }), jsx("div", { className: "tc-main-header__search", children: jsx(Search, { placeholder: searchPlaceholder, filterPlaceholder: searchFilterPlaceholder, filterOptions: searchFilterOptions, onSubmit: onSearch, onInfoClick: onInfoClick }) }), jsx("div", { className: "tc-main-header__menu", children: jsx(HeaderMenu, { items: menuItems, onItemClick: onMenuItemClick, onDropdownItemClick: onDropdownItemClick }) })] }));
|
|
378
425
|
};
|
|
379
426
|
|
|
380
427
|
var x = Object.defineProperty;
|
|
@@ -593,5 +640,5 @@ function registerWebComponents() {
|
|
|
593
640
|
// Auto-register when loaded in browser
|
|
594
641
|
registerWebComponents();
|
|
595
642
|
|
|
596
|
-
export { Button, ButtonGroup, CaretDownIcon, ChevronDownIcon, ChevronUpIcon, DropdownMenu, FilterDropdown, GlobalSearch, HeaderMenu, IconButton, InfoIcon, Input, Logo, MainHeader, SearchIcon, TCButton, TCButtonGroup, TCInput,
|
|
643
|
+
export { Button, ButtonGroup, CaretDownIcon, ChevronDownIcon, ChevronUpIcon, DropdownMenu, FilterDropdown, GlobalSearch, HeaderMenu, IconButton, InfoIcon, Input, Logo, MainHeader, SearchIcon, TCButton, TCButtonGroup, TCInput, defaultIcons, registerWebComponents };
|
|
597
644
|
//# sourceMappingURL=index.esm.js.map
|