@flipdish/ui-library 0.7.5 → 0.8.1
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/FlipdishLogo/flipdish-logo.paths.cjs +56 -0
- package/dist/components/atoms/FlipdishLogo/flipdish-logo.paths.cjs.map +1 -0
- package/dist/components/atoms/FlipdishLogo/flipdish-logo.paths.d.ts +7 -0
- package/dist/components/atoms/FlipdishLogo/flipdish-logo.paths.d.ts.map +1 -0
- package/dist/components/atoms/FlipdishLogo/flipdish-logo.paths.js +49 -0
- package/dist/components/atoms/FlipdishLogo/flipdish-logo.paths.js.map +1 -0
- package/dist/components/atoms/FlipdishLogo/index.cjs +30 -6
- package/dist/components/atoms/FlipdishLogo/index.cjs.map +1 -1
- package/dist/components/atoms/FlipdishLogo/index.d.ts +65 -4
- package/dist/components/atoms/FlipdishLogo/index.d.ts.map +1 -1
- package/dist/components/atoms/FlipdishLogo/index.js +30 -6
- package/dist/components/atoms/FlipdishLogo/index.js.map +1 -1
- package/dist/components/organisms/HeaderNavigation/components/mobile-header.cjs +1 -1
- package/dist/components/organisms/HeaderNavigation/components/mobile-header.cjs.map +1 -1
- package/dist/components/organisms/HeaderNavigation/components/mobile-header.js +1 -1
- package/dist/components/organisms/HeaderNavigation/components/mobile-header.js.map +1 -1
- package/dist/components/organisms/HeaderNavigation/index.cjs +1 -1
- package/dist/components/organisms/HeaderNavigation/index.cjs.map +1 -1
- package/dist/components/organisms/HeaderNavigation/index.js +1 -1
- package/dist/components/organisms/HeaderNavigation/index.js.map +1 -1
- package/dist/components/organisms/SidebarNavigation/components/mobile-header.cjs +16 -3
- package/dist/components/organisms/SidebarNavigation/components/mobile-header.cjs.map +1 -1
- package/dist/components/organisms/SidebarNavigation/components/mobile-header.d.ts +31 -1
- package/dist/components/organisms/SidebarNavigation/components/mobile-header.d.ts.map +1 -1
- package/dist/components/organisms/SidebarNavigation/components/mobile-header.js +18 -6
- package/dist/components/organisms/SidebarNavigation/components/mobile-header.js.map +1 -1
- package/dist/components/organisms/SidebarNavigation/components/nav-account-card.cjs +6 -45
- package/dist/components/organisms/SidebarNavigation/components/nav-account-card.cjs.map +1 -1
- package/dist/components/organisms/SidebarNavigation/components/nav-account-card.d.ts +16 -25
- package/dist/components/organisms/SidebarNavigation/components/nav-account-card.d.ts.map +1 -1
- package/dist/components/organisms/SidebarNavigation/components/nav-account-card.js +8 -47
- package/dist/components/organisms/SidebarNavigation/components/nav-account-card.js.map +1 -1
- package/dist/components/organisms/SidebarNavigation/components/nav-button.cjs +2 -2
- package/dist/components/organisms/SidebarNavigation/components/nav-button.cjs.map +1 -1
- package/dist/components/organisms/SidebarNavigation/components/nav-button.d.ts +5 -1
- package/dist/components/organisms/SidebarNavigation/components/nav-button.d.ts.map +1 -1
- package/dist/components/organisms/SidebarNavigation/components/nav-button.js +2 -2
- package/dist/components/organisms/SidebarNavigation/components/nav-button.js.map +1 -1
- package/dist/components/organisms/SidebarNavigation/components/nav-item.cjs +14 -8
- package/dist/components/organisms/SidebarNavigation/components/nav-item.cjs.map +1 -1
- package/dist/components/organisms/SidebarNavigation/components/nav-item.d.ts +9 -3
- package/dist/components/organisms/SidebarNavigation/components/nav-item.d.ts.map +1 -1
- package/dist/components/organisms/SidebarNavigation/components/nav-item.js +14 -8
- package/dist/components/organisms/SidebarNavigation/components/nav-item.js.map +1 -1
- package/dist/components/organisms/SidebarNavigation/components/sidebar-menu-button.cjs +19 -0
- package/dist/components/organisms/SidebarNavigation/components/sidebar-menu-button.cjs.map +1 -0
- package/dist/components/organisms/SidebarNavigation/components/sidebar-menu-button.d.ts +22 -0
- package/dist/components/organisms/SidebarNavigation/components/sidebar-menu-button.d.ts.map +1 -0
- package/dist/components/organisms/SidebarNavigation/components/sidebar-menu-button.js +17 -0
- package/dist/components/organisms/SidebarNavigation/components/sidebar-menu-button.js.map +1 -0
- package/dist/components/organisms/SidebarNavigation/index.cjs +139 -11
- package/dist/components/organisms/SidebarNavigation/index.cjs.map +1 -1
- package/dist/components/organisms/SidebarNavigation/index.d.ts +55 -7
- package/dist/components/organisms/SidebarNavigation/index.d.ts.map +1 -1
- package/dist/components/organisms/SidebarNavigation/index.js +143 -7
- package/dist/components/organisms/SidebarNavigation/index.js.map +1 -1
- package/dist/utilities/localStorageUtils/index.cjs +125 -0
- package/dist/utilities/localStorageUtils/index.cjs.map +1 -0
- package/dist/utilities/localStorageUtils/index.d.ts +43 -0
- package/dist/utilities/localStorageUtils/index.d.ts.map +1 -0
- package/dist/utilities/localStorageUtils/index.js +121 -0
- package/dist/utilities/localStorageUtils/index.js.map +1 -0
- package/dist/utilities/localStorageUtils/localStorageUtils.constants.cjs +15 -0
- package/dist/utilities/localStorageUtils/localStorageUtils.constants.cjs.map +1 -0
- package/dist/utilities/localStorageUtils/localStorageUtils.constants.d.ts +11 -0
- package/dist/utilities/localStorageUtils/localStorageUtils.constants.d.ts.map +1 -0
- package/dist/utilities/localStorageUtils/localStorageUtils.constants.js +13 -0
- package/dist/utilities/localStorageUtils/localStorageUtils.constants.js.map +1 -0
- package/package.json +1 -1
- package/dist/components/atoms/FlipdishLogo/components/flipdish-logo-minimal.cjs +0 -16
- package/dist/components/atoms/FlipdishLogo/components/flipdish-logo-minimal.cjs.map +0 -1
- package/dist/components/atoms/FlipdishLogo/components/flipdish-logo-minimal.d.ts +0 -3
- package/dist/components/atoms/FlipdishLogo/components/flipdish-logo-minimal.d.ts.map +0 -1
- package/dist/components/atoms/FlipdishLogo/components/flipdish-logo-minimal.js +0 -14
- package/dist/components/atoms/FlipdishLogo/components/flipdish-logo-minimal.js.map +0 -1
- package/dist/components/organisms/SidebarNavigation/components/sidebar-dual-tier.cjs +0 -32
- package/dist/components/organisms/SidebarNavigation/components/sidebar-dual-tier.cjs.map +0 -1
- package/dist/components/organisms/SidebarNavigation/components/sidebar-dual-tier.d.ts +0 -20
- package/dist/components/organisms/SidebarNavigation/components/sidebar-dual-tier.d.ts.map +0 -1
- package/dist/components/organisms/SidebarNavigation/components/sidebar-dual-tier.js +0 -30
- package/dist/components/organisms/SidebarNavigation/components/sidebar-dual-tier.js.map +0 -1
- package/dist/components/organisms/SidebarNavigation/components/sidebar-section-dividers.cjs +0 -23
- package/dist/components/organisms/SidebarNavigation/components/sidebar-section-dividers.cjs.map +0 -1
- package/dist/components/organisms/SidebarNavigation/components/sidebar-section-dividers.d.ts +0 -15
- package/dist/components/organisms/SidebarNavigation/components/sidebar-section-dividers.d.ts.map +0 -1
- package/dist/components/organisms/SidebarNavigation/components/sidebar-section-dividers.js +0 -21
- package/dist/components/organisms/SidebarNavigation/components/sidebar-section-dividers.js.map +0 -1
- package/dist/components/organisms/SidebarNavigation/components/sidebar-sections-subheadings.cjs +0 -22
- package/dist/components/organisms/SidebarNavigation/components/sidebar-sections-subheadings.cjs.map +0 -1
- package/dist/components/organisms/SidebarNavigation/components/sidebar-sections-subheadings.d.ts +0 -18
- package/dist/components/organisms/SidebarNavigation/components/sidebar-sections-subheadings.d.ts.map +0 -1
- package/dist/components/organisms/SidebarNavigation/components/sidebar-sections-subheadings.js +0 -20
- package/dist/components/organisms/SidebarNavigation/components/sidebar-sections-subheadings.js.map +0 -1
- package/dist/components/organisms/SidebarNavigation/components/sidebar-simple.cjs +0 -24
- package/dist/components/organisms/SidebarNavigation/components/sidebar-simple.cjs.map +0 -1
- package/dist/components/organisms/SidebarNavigation/components/sidebar-simple.d.ts +0 -21
- package/dist/components/organisms/SidebarNavigation/components/sidebar-simple.d.ts.map +0 -1
- package/dist/components/organisms/SidebarNavigation/components/sidebar-simple.js +0 -22
- package/dist/components/organisms/SidebarNavigation/components/sidebar-simple.js.map +0 -1
- package/dist/components/organisms/SidebarNavigation/components/sidebar-slim.cjs +0 -35
- package/dist/components/organisms/SidebarNavigation/components/sidebar-slim.cjs.map +0 -1
- package/dist/components/organisms/SidebarNavigation/components/sidebar-slim.d.ts +0 -28
- package/dist/components/organisms/SidebarNavigation/components/sidebar-slim.d.ts.map +0 -1
- package/dist/components/organisms/SidebarNavigation/components/sidebar-slim.js +0 -33
- package/dist/components/organisms/SidebarNavigation/components/sidebar-slim.js.map +0 -1
|
@@ -1,8 +1,144 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { ChevronRightDouble, ChevronLeftDouble } from '@flipdish/ui-icons';
|
|
3
|
+
import { FlipdishLogo } from '@flipdish/ui-library/components/atoms/FlipdishLogo';
|
|
4
|
+
import { ButtonUtility } from '@flipdish/ui-library/components/atoms/UtilityButton';
|
|
5
|
+
import { cx } from '@flipdish/ui-library/utilities/cx';
|
|
6
|
+
import { sidebarCollapsedStorage } from '@flipdish/ui-library/utilities/localStorageUtils';
|
|
7
|
+
import { motion, AnimatePresence } from 'motion/react';
|
|
8
|
+
import { useState, useEffect, useId, useRef } from 'react';
|
|
9
|
+
import { MobileNavigationHeader, MobileNavigationDrawer } from './components/mobile-header.js';
|
|
10
|
+
import { NavAccountCard } from './components/nav-account-card.js';
|
|
11
|
+
export { NavAccountMenu } from './components/nav-account-card.js';
|
|
12
|
+
import { NavButton } from './components/nav-button.js';
|
|
13
|
+
import { NavItemBase } from './components/nav-item.js';
|
|
14
|
+
import { NavList } from './components/nav-list.js';
|
|
15
|
+
export { SidebarMenuButton } from './components/sidebar-menu-button.js';
|
|
16
|
+
|
|
17
|
+
const COLLAPSED_WIDTH = 68;
|
|
18
|
+
const EXPANDED_WIDTH = 280;
|
|
19
|
+
const SECONDARY_SIDEBAR_WIDTH = 256;
|
|
20
|
+
/**
|
|
21
|
+
* The primary app-shell navigation rail. It renders a logo, a list of
|
|
22
|
+
* destinations, footer links, and an account card, and can be toggled between a
|
|
23
|
+
* labelled list and an icon-only strip (the choice persists across reloads).
|
|
24
|
+
* Hovering, focusing, or pressing ArrowRight on a section with children reveals a
|
|
25
|
+
* secondary sub-navigation panel. Below the `lg` breakpoint it collapses into a
|
|
26
|
+
* mobile header with a slide-over menu.
|
|
27
|
+
*
|
|
28
|
+
* @summary collapsible app-shell sidebar with a hover-revealed sub-navigation panel
|
|
29
|
+
*/
|
|
30
|
+
const SidebarNavigation = ({ activeUrl, items, footerItems = [], account, collapsed, defaultCollapsed = false, onCollapsedChange, persistCollapsed = true, hideBorder, hideRightBorder, showMobileHeader = true, mobileMenuOpen, onMobileMenuOpenChange, }) => {
|
|
31
|
+
const isControlled = collapsed !== undefined;
|
|
32
|
+
const [internalCollapsed, setInternalCollapsed] = useState(defaultCollapsed);
|
|
33
|
+
const isCollapsed = isControlled ? collapsed : internalCollapsed;
|
|
34
|
+
// Mobile drawer open-state: controlled when `mobileMenuOpen` is provided, else internal.
|
|
35
|
+
const isMobileMenuControlled = mobileMenuOpen !== undefined;
|
|
36
|
+
const [internalMobileMenuOpen, setInternalMobileMenuOpen] = useState(false);
|
|
37
|
+
const isMobileMenuOpen = isMobileMenuControlled ? mobileMenuOpen : internalMobileMenuOpen;
|
|
38
|
+
const setMobileMenuOpen = (next) => {
|
|
39
|
+
onMobileMenuOpenChange?.(next);
|
|
40
|
+
if (!isMobileMenuControlled)
|
|
41
|
+
setInternalMobileMenuOpen(next);
|
|
42
|
+
};
|
|
43
|
+
// Hydrate the persisted preference after mount to avoid an SSR hydration mismatch.
|
|
44
|
+
useEffect(() => {
|
|
45
|
+
if (isControlled || !persistCollapsed)
|
|
46
|
+
return;
|
|
47
|
+
const stored = sidebarCollapsedStorage.get();
|
|
48
|
+
if (stored !== null)
|
|
49
|
+
setInternalCollapsed(stored);
|
|
50
|
+
}, [isControlled, persistCollapsed]);
|
|
51
|
+
const setCollapsed = (next) => {
|
|
52
|
+
onCollapsedChange?.(next);
|
|
53
|
+
if (isControlled)
|
|
54
|
+
return;
|
|
55
|
+
setInternalCollapsed(next);
|
|
56
|
+
if (persistCollapsed)
|
|
57
|
+
sidebarCollapsedStorage.set(next);
|
|
58
|
+
};
|
|
59
|
+
const isActive = (item) => item.href === activeUrl || item.items?.some((sub) => sub.href === activeUrl);
|
|
60
|
+
// The secondary sub-navigation panel is revealed on hover/focus of a parent
|
|
61
|
+
// item (one with children); leaf items and clicks navigate straight to `href`.
|
|
62
|
+
const [panelItem, setPanelItem] = useState(undefined);
|
|
63
|
+
const [showSubNav, setShowSubNav] = useState(false);
|
|
64
|
+
const isSecondarySidebarVisible = showSubNav && Boolean(panelItem?.items?.length);
|
|
65
|
+
const panelId = useId();
|
|
66
|
+
// Ties the built-in mobile toggle to the drawer it opens via `aria-controls`.
|
|
67
|
+
const mobileMenuId = useId();
|
|
68
|
+
const panelRef = useRef(null);
|
|
69
|
+
// The primary item that opened the panel, so ArrowLeft/Escape can restore focus.
|
|
70
|
+
const triggerRef = useRef(null);
|
|
71
|
+
// Set when a keyboard action should move focus into the panel once it renders.
|
|
72
|
+
const focusPanelOnOpen = useRef(false);
|
|
73
|
+
// Guards the focus-reveal so restoring focus to a parent doesn't re-open the panel.
|
|
74
|
+
const suppressReveal = useRef(false);
|
|
75
|
+
const focusFirstPanelItem = () => panelRef.current?.querySelector('a, button')?.focus();
|
|
76
|
+
// Move focus into the panel once it has rendered after a keyboard-triggered open.
|
|
77
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: focusFirstPanelItem only reads the stable panelRef
|
|
78
|
+
useEffect(() => {
|
|
79
|
+
if (isSecondarySidebarVisible && focusPanelOnOpen.current) {
|
|
80
|
+
focusPanelOnOpen.current = false;
|
|
81
|
+
focusFirstPanelItem();
|
|
82
|
+
}
|
|
83
|
+
}, [isSecondarySidebarVisible]);
|
|
84
|
+
const revealSubNav = (item) => {
|
|
85
|
+
if (suppressReveal.current) {
|
|
86
|
+
suppressReveal.current = false;
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
if (item.items?.length) {
|
|
90
|
+
setPanelItem(item);
|
|
91
|
+
setShowSubNav(true);
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
// Hovering/focusing a leaf destination closes any open panel.
|
|
95
|
+
setShowSubNav(false);
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
const hideSubNav = () => setShowSubNav(false);
|
|
99
|
+
const handleContainerBlur = (event) => {
|
|
100
|
+
if (!event.currentTarget.contains(event.relatedTarget))
|
|
101
|
+
hideSubNav();
|
|
102
|
+
};
|
|
103
|
+
// ArrowRight on a parent item opens (if needed) and moves focus into the panel.
|
|
104
|
+
const handlePrimaryKeyDown = (item) => (event) => {
|
|
105
|
+
if (event.key !== 'ArrowRight' || !item.items?.length)
|
|
106
|
+
return;
|
|
107
|
+
event.preventDefault();
|
|
108
|
+
triggerRef.current = event.currentTarget.querySelector('a, button');
|
|
109
|
+
if (isSecondarySidebarVisible && panelItem?.label === item.label) {
|
|
110
|
+
focusFirstPanelItem();
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
focusPanelOnOpen.current = true;
|
|
114
|
+
setPanelItem(item);
|
|
115
|
+
setShowSubNav(true);
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
// ArrowLeft/Escape inside the panel closes it and restores focus to the parent.
|
|
119
|
+
const handlePanelKeyDown = (event) => {
|
|
120
|
+
if (event.key !== 'ArrowLeft' && event.key !== 'Escape')
|
|
121
|
+
return;
|
|
122
|
+
event.preventDefault();
|
|
123
|
+
suppressReveal.current = true;
|
|
124
|
+
hideSubNav();
|
|
125
|
+
triggerRef.current?.focus();
|
|
126
|
+
};
|
|
127
|
+
const renderPrimaryItems = (list) => list.map((item) => {
|
|
128
|
+
const hasChildren = Boolean(item.items?.length);
|
|
129
|
+
const isOpen = hasChildren && isSecondarySidebarVisible && panelItem?.label === item.label;
|
|
130
|
+
// Disclosure semantics: parents announce their expanded state and, once open, the panel they control.
|
|
131
|
+
const disclosure = {
|
|
132
|
+
'aria-expanded': hasChildren ? isOpen : undefined,
|
|
133
|
+
'aria-controls': isOpen ? panelId : undefined,
|
|
134
|
+
};
|
|
135
|
+
return (jsx("li", { className: isCollapsed ? undefined : 'py-px', onMouseEnter: () => revealSubNav(item), onFocus: () => revealSubNav(item), onKeyDown: handlePrimaryKeyDown(item), children: isCollapsed ? (jsx(NavButton, { current: isActive(item), href: item.href, label: item.label || '', icon: item.icon, ...disclosure })) : (jsx(NavItemBase, { type: "link", current: isActive(item), href: item.href, icon: item.icon, badge: item.badge, ...disclosure, children: item.label })) }, item.label));
|
|
136
|
+
});
|
|
137
|
+
const mainSidebar = (jsxs(motion.aside, { animate: { width: isCollapsed ? COLLAPSED_WIDTH : EXPANDED_WIDTH }, transition: { type: 'spring', damping: 26, stiffness: 220, bounce: 0 }, className: cx('flex h-full max-h-full flex-col justify-between overflow-x-hidden overflow-y-auto bg-secondary', !hideBorder && 'border-r border-secondary'), children: [jsxs("div", { className: "flex flex-col", children: [isCollapsed ? (jsx("div", { className: "flex justify-center px-3 py-5", children: jsx(ButtonUtility, { size: "sm", color: "tertiary", tooltip: "Expand", "aria-label": "Expand navigation", icon: ChevronRightDouble, onClick: () => setCollapsed(false) }) })) : (jsxs("div", { className: "relative flex items-center px-5 py-5", children: [jsx(FlipdishLogo, { size: "md" }), jsx("div", { className: "absolute top-5 right-4", children: jsx(ButtonUtility, { size: "sm", color: "tertiary", tooltip: "Collapse", "aria-label": "Collapse navigation", icon: ChevronLeftDouble, onClick: () => setCollapsed(true) }) })] })), jsx("ul", { className: cx('flex flex-col gap-0.5', isCollapsed ? 'items-center px-3.5' : 'px-4 pt-1'), children: renderPrimaryItems(items) })] }), jsxs("div", { className: cx('mt-auto flex flex-col gap-3 py-4', isCollapsed ? 'items-center px-3' : 'px-4'), children: [footerItems.length > 0 && jsx("ul", { className: cx('flex flex-col gap-0.5', isCollapsed && 'items-center'), children: renderPrimaryItems(footerItems) }), account &&
|
|
138
|
+
(isCollapsed ? (jsx(NavAccountCard, { variant: "avatar", account: account.account, menuItems: account.menuItems, bottomMenuItems: account.bottomMenuItems })) : (jsx(NavAccountCard, { account: account.account, menuItems: account.menuItems, bottomMenuItems: account.bottomMenuItems })))] })] }));
|
|
139
|
+
const secondarySidebar = panelItem && (jsx(AnimatePresence, { initial: false, children: isSecondarySidebarVisible && (jsx(motion.div, { ref: panelRef, id: panelId, onKeyDown: handlePanelKeyDown, role: "group", "aria-label": `${panelItem.label} pages`, initial: { width: 0, borderColor: 'var(--color-border-secondary)' }, animate: { width: SECONDARY_SIDEBAR_WIDTH, borderColor: 'var(--color-border-secondary)' }, exit: { width: 0, borderColor: 'rgba(0,0,0,0)', transition: { borderColor: { type: 'tween', delay: 0.05 } } }, transition: { type: 'spring', damping: 26, stiffness: 220, bounce: 0 }, className: cx('relative h-full overflow-x-hidden overflow-y-auto bg-primary', !(hideBorder || hideRightBorder) && 'box-content border-r border-secondary'), children: jsxs("div", { style: { width: SECONDARY_SIDEBAR_WIDTH }, className: "flex h-full flex-col px-4 pt-6", children: [jsx("h3", { className: "px-2 text-sm font-semibold text-tertiary", children: panelItem.label }), jsx("ul", { className: "py-2", children: panelItem.items?.map((item) => (jsx("li", { className: "py-px", children: jsx(NavItemBase, { type: "link", current: activeUrl === item.href, href: item.href, icon: item.icon, badge: item.badge, children: item.label }) }, item.label))) })] }) })) }));
|
|
140
|
+
return (jsxs(Fragment, { children: [jsxs("div", { className: "z-50 hidden lg:fixed lg:inset-y-0 lg:left-0 lg:flex", onMouseLeave: hideSubNav, onBlur: handleContainerBlur, children: [mainSidebar, secondarySidebar] }), jsx("div", { style: { paddingLeft: isCollapsed ? COLLAPSED_WIDTH : EXPANDED_WIDTH }, className: "invisible hidden lg:sticky lg:top-0 lg:bottom-0 lg:left-0 lg:block" }), showMobileHeader && jsx(MobileNavigationHeader, { isOpen: isMobileMenuOpen, onOpenChange: setMobileMenuOpen, controls: mobileMenuId }), jsx(MobileNavigationDrawer, { id: mobileMenuId, isOpen: isMobileMenuOpen, onOpenChange: setMobileMenuOpen, children: jsxs("aside", { className: "group flex h-full max-h-full w-full max-w-full flex-col justify-between overflow-y-auto bg-secondary pt-4", children: [jsx("div", { className: "px-4", children: jsx(FlipdishLogo, { size: "sm" }) }), jsx(NavList, { activeUrl: activeUrl, items: items }), jsxs("div", { className: "mt-auto flex flex-col gap-3 p-4", children: [footerItems.length > 0 && (jsx("ul", { className: "flex flex-col gap-0.5", children: footerItems.map((item) => (jsx("li", { children: jsx(NavItemBase, { type: "link", current: activeUrl === item.href, href: item.href, icon: item.icon, badge: item.badge, children: item.label }) }, item.label))) })), account && jsx(NavAccountCard, { account: account.account, menuItems: account.menuItems, bottomMenuItems: account.bottomMenuItems })] })] }) })] }));
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
export { NavAccountCard, NavItemBase, SidebarNavigation };
|
|
8
144
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/organisms/SidebarNavigation/index.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;;;;;;AAyDA,MAAM,eAAe,GAAG,EAAE;AAC1B,MAAM,cAAc,GAAG,GAAG;AAC1B,MAAM,uBAAuB,GAAG,GAAG;AAEnC;;;;;;;;;AASG;AACI,MAAM,iBAAiB,GAAG,CAAC,EAChC,SAAS,EACT,KAAK,EACL,WAAW,GAAG,EAAE,EAChB,OAAO,EACP,SAAS,EACT,gBAAgB,GAAG,KAAK,EACxB,iBAAiB,EACjB,gBAAgB,GAAG,IAAI,EACvB,UAAU,EACV,eAAe,EACf,gBAAgB,GAAG,IAAI,EACvB,cAAc,EACd,sBAAsB,GACC,KAAI;AAC3B,IAAA,MAAM,YAAY,GAAG,SAAS,KAAK,SAAS;IAC5C,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,QAAQ,CAAC,gBAAgB,CAAC;IAC5E,MAAM,WAAW,GAAG,YAAY,GAAG,SAAS,GAAG,iBAAiB;;AAGhE,IAAA,MAAM,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|
+
* Web-only, typed `localStorage` persistence. DOM access (`window.localStorage`)
|
|
7
|
+
* lives here rather than in components, so component code stays free of `window.*`
|
|
8
|
+
* and keeps React Native parity — see `useBreakpoint` for the same isolation
|
|
9
|
+
* pattern. Every helper no-ops / returns `null` when `localStorage` is
|
|
10
|
+
* unavailable (SSR, React Native, private mode, quota errors).
|
|
11
|
+
*
|
|
12
|
+
* Every key this package persists is registered in `localStorageUtils.constants.ts`
|
|
13
|
+
* — check there for the full list before adding a new one.
|
|
14
|
+
*/
|
|
15
|
+
const isBrowser = typeof window !== 'undefined';
|
|
16
|
+
/**
|
|
17
|
+
* Internal `localStorage` primitives backing `createLocalStorageItem`. Not
|
|
18
|
+
* exported — everything a consumer needs goes through `createLocalStorageItem`,
|
|
19
|
+
* which adds typed serialization/validation on top. Add a raw string export
|
|
20
|
+
* here only once a real caller needs plain-string storage without JSON typing.
|
|
21
|
+
*/
|
|
22
|
+
/** Read a raw string value, or `null` when unset/unavailable. */
|
|
23
|
+
const safeLocalGet = (key) => {
|
|
24
|
+
if (!isBrowser)
|
|
25
|
+
return null;
|
|
26
|
+
try {
|
|
27
|
+
return window.localStorage.getItem(key);
|
|
28
|
+
}
|
|
29
|
+
catch {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
/** Persist a raw string value; returns whether the write succeeded. */
|
|
34
|
+
const safeLocalSet = (key, value) => {
|
|
35
|
+
if (!isBrowser)
|
|
36
|
+
return false;
|
|
37
|
+
try {
|
|
38
|
+
window.localStorage.setItem(key, value);
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
catch {
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
/** Remove a value; returns whether the removal succeeded. */
|
|
46
|
+
const safeLocalRemove = (key) => {
|
|
47
|
+
if (!isBrowser)
|
|
48
|
+
return false;
|
|
49
|
+
try {
|
|
50
|
+
window.localStorage.removeItem(key);
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
catch {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Reusable `validate` guard for a `createLocalStorageItem<boolean>` item.
|
|
59
|
+
*/
|
|
60
|
+
const isBoolean = (value) => typeof value === 'boolean';
|
|
61
|
+
/**
|
|
62
|
+
* Parse a plain `'true'`/`'false'` string (not JSON) into a boolean; throws
|
|
63
|
+
* `errorMessage` for anything else so `createLocalStorageItem.get()` treats it
|
|
64
|
+
* as invalid data and returns `null`.
|
|
65
|
+
*/
|
|
66
|
+
const parseBooleanString = (raw, errorMessage) => {
|
|
67
|
+
if (raw === 'true')
|
|
68
|
+
return true;
|
|
69
|
+
if (raw === 'false')
|
|
70
|
+
return false;
|
|
71
|
+
throw new Error(errorMessage);
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Build a typed, failure-safe accessor for a single `localStorage` key.
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* const draft = createLocalStorageItem<Draft>('fd-draft');
|
|
78
|
+
* draft.set({ title: 'Hi' });
|
|
79
|
+
* const value = draft.get(); // Draft | null
|
|
80
|
+
*/
|
|
81
|
+
const createLocalStorageItem = (key, options = {}) => {
|
|
82
|
+
const { serialize = JSON.stringify, deserialize = JSON.parse, validate } = options;
|
|
83
|
+
return {
|
|
84
|
+
get() {
|
|
85
|
+
const raw = safeLocalGet(key);
|
|
86
|
+
if (raw == null)
|
|
87
|
+
return null;
|
|
88
|
+
try {
|
|
89
|
+
const value = deserialize(raw);
|
|
90
|
+
if (validate && !validate(value))
|
|
91
|
+
return null;
|
|
92
|
+
return value;
|
|
93
|
+
}
|
|
94
|
+
catch {
|
|
95
|
+
return null;
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
set(value) {
|
|
99
|
+
try {
|
|
100
|
+
safeLocalSet(key, serialize(value));
|
|
101
|
+
}
|
|
102
|
+
catch {
|
|
103
|
+
// serialize() can throw (e.g. circular refs); matches the documented
|
|
104
|
+
// failure-safe contract — silently ignore, same as a write failure.
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
clear() {
|
|
108
|
+
safeLocalRemove(key);
|
|
109
|
+
},
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* Persistence for the `SidebarNavigation` collapsed preference. Stored as the
|
|
114
|
+
* plain strings `'true'` / `'false'` to preserve the original on-disk format.
|
|
115
|
+
*/
|
|
116
|
+
const sidebarCollapsedStorage = createLocalStorageItem(localStorageUtils_constants.LOCAL_STORAGE_KEYS.sidebarCollapsed, {
|
|
117
|
+
serialize: String,
|
|
118
|
+
deserialize: (raw) => parseBooleanString(raw, 'Invalid sidebar collapsed value'),
|
|
119
|
+
validate: isBoolean,
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
exports.LOCAL_STORAGE_KEYS = localStorageUtils_constants.LOCAL_STORAGE_KEYS;
|
|
123
|
+
exports.createLocalStorageItem = createLocalStorageItem;
|
|
124
|
+
exports.sidebarCollapsedStorage = sidebarCollapsedStorage;
|
|
125
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/utilities/localStorageUtils/index.ts"],"sourcesContent":[null],"names":["LOCAL_STORAGE_KEYS"],"mappings":";;;;AAAA;;;;;;;;;AASG;AAMH,MAAM,SAAS,GAAG,OAAO,MAAM,KAAK,WAAW;AAE/C;;;;;AAKG;AAEH;AACA,MAAM,YAAY,GAAG,CAAC,GAAW,KAAmB;AAClD,IAAA,IAAI,CAAC,SAAS;AAAE,QAAA,OAAO,IAAI;AAC3B,IAAA,IAAI;QACF,OAAO,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC;IACzC;AAAE,IAAA,MAAM;AACN,QAAA,OAAO,IAAI;IACb;AACF,CAAC;AAED;AACA,MAAM,YAAY,GAAG,CAAC,GAAW,EAAE,KAAa,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AG,CAAC;AAC9B,gBAAA,IAAI,QAAQ,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;AAAE,oBAAA,OAAO,IAAI;AAC7C,gBAAA,OAAO,KAAK;YACd;AAAE,YAAA,MAAM;AACN,gBAAA,OAAO,IAAI;YACb;QACF,CAAC;AACD,QAAA,GAAG,CAAC,KAAK,EAAA;AACP,YAAA,IAAI;gBACF,YAAY,CAAC,GAAG,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC;YACrC;AAAE,YAAA,MAAM;;;YAGR;QACF,CAAC;QACD,KAAK,GAAA;YACH,eAAe,CAAC,GAAG,CAAC;QACtB,CAAC;KACF;AACH;AAEA;;;AAGG;MACU,uBAAuB,GAAG,sBAAsB,CAAUA,8CAAkB,CAAC,gBAAgB,EAAE;AAC1G,IAAA,SAAS,EAAE,MAAM;IACjB,WAAW,EAAE,CAAC,GAAG,KAAK,kBAAkB,CAAC,GAAG,EAAE,iCAAiC,CAAC;AAChF,IAAA,QAAQ,EAAE,SAAS;AACpB,CAAA;;;;;;"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Web-only, typed `localStorage` persistence. DOM access (`window.localStorage`)
|
|
3
|
+
* lives here rather than in components, so component code stays free of `window.*`
|
|
4
|
+
* and keeps React Native parity — see `useBreakpoint` for the same isolation
|
|
5
|
+
* pattern. Every helper no-ops / returns `null` when `localStorage` is
|
|
6
|
+
* unavailable (SSR, React Native, private mode, quota errors).
|
|
7
|
+
*
|
|
8
|
+
* Every key this package persists is registered in `localStorageUtils.constants.ts`
|
|
9
|
+
* — check there for the full list before adding a new one.
|
|
10
|
+
*/
|
|
11
|
+
import { LOCAL_STORAGE_KEYS } from './localStorageUtils.constants';
|
|
12
|
+
export { LOCAL_STORAGE_KEYS };
|
|
13
|
+
export interface LocalStorageItem<T> {
|
|
14
|
+
/** Read and deserialize the value, or `null` when unset/invalid/unavailable. */
|
|
15
|
+
get(): T | null;
|
|
16
|
+
/** Serialize and persist the value; silently ignores write failures. */
|
|
17
|
+
set(value: T): void;
|
|
18
|
+
/** Remove the value; silently ignores failures. */
|
|
19
|
+
clear(): void;
|
|
20
|
+
}
|
|
21
|
+
export interface LocalStorageItemOptions<T> {
|
|
22
|
+
/** Serialize before writing. Defaults to `JSON.stringify`. */
|
|
23
|
+
serialize?: (value: T) => string;
|
|
24
|
+
/** Deserialize after reading. Defaults to `JSON.parse`. */
|
|
25
|
+
deserialize?: (raw: string) => T;
|
|
26
|
+
/** Optional runtime guard; `get()` returns `null` when it fails. */
|
|
27
|
+
validate?: (value: unknown) => value is T;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Build a typed, failure-safe accessor for a single `localStorage` key.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* const draft = createLocalStorageItem<Draft>('fd-draft');
|
|
34
|
+
* draft.set({ title: 'Hi' });
|
|
35
|
+
* const value = draft.get(); // Draft | null
|
|
36
|
+
*/
|
|
37
|
+
export declare const createLocalStorageItem: <T>(key: string, options?: LocalStorageItemOptions<T>) => LocalStorageItem<T>;
|
|
38
|
+
/**
|
|
39
|
+
* Persistence for the `SidebarNavigation` collapsed preference. Stored as the
|
|
40
|
+
* plain strings `'true'` / `'false'` to preserve the original on-disk format.
|
|
41
|
+
*/
|
|
42
|
+
export declare const sidebarCollapsedStorage: LocalStorageItem<boolean>;
|
|
43
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utilities/localStorageUtils/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAEnE,OAAO,EAAE,kBAAkB,EAAE,CAAC;AA2C9B,MAAM,WAAW,gBAAgB,CAAC,CAAC;IACjC,gFAAgF;IAChF,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;IAChB,wEAAwE;IACxE,GAAG,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC;IACpB,mDAAmD;IACnD,KAAK,IAAI,IAAI,CAAC;CACf;AAED,MAAM,WAAW,uBAAuB,CAAC,CAAC;IACxC,8DAA8D;IAC9D,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,MAAM,CAAC;IACjC,2DAA2D;IAC3D,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,CAAC,CAAC;IACjC,oEAAoE;IACpE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,KAAK,IAAI,CAAC,CAAC;CAC3C;AAkBD;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,GAAI,CAAC,EAAE,KAAK,MAAM,EAAE,UAAS,uBAAuB,CAAC,CAAC,CAAM,KAAG,gBAAgB,CAAC,CAAC,CA2BnH,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,2BAIlC,CAAC"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { LOCAL_STORAGE_KEYS } from './localStorageUtils.constants.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Web-only, typed `localStorage` persistence. DOM access (`window.localStorage`)
|
|
5
|
+
* lives here rather than in components, so component code stays free of `window.*`
|
|
6
|
+
* and keeps React Native parity — see `useBreakpoint` for the same isolation
|
|
7
|
+
* pattern. Every helper no-ops / returns `null` when `localStorage` is
|
|
8
|
+
* unavailable (SSR, React Native, private mode, quota errors).
|
|
9
|
+
*
|
|
10
|
+
* Every key this package persists is registered in `localStorageUtils.constants.ts`
|
|
11
|
+
* — check there for the full list before adding a new one.
|
|
12
|
+
*/
|
|
13
|
+
const isBrowser = typeof window !== 'undefined';
|
|
14
|
+
/**
|
|
15
|
+
* Internal `localStorage` primitives backing `createLocalStorageItem`. Not
|
|
16
|
+
* exported — everything a consumer needs goes through `createLocalStorageItem`,
|
|
17
|
+
* which adds typed serialization/validation on top. Add a raw string export
|
|
18
|
+
* here only once a real caller needs plain-string storage without JSON typing.
|
|
19
|
+
*/
|
|
20
|
+
/** Read a raw string value, or `null` when unset/unavailable. */
|
|
21
|
+
const safeLocalGet = (key) => {
|
|
22
|
+
if (!isBrowser)
|
|
23
|
+
return null;
|
|
24
|
+
try {
|
|
25
|
+
return window.localStorage.getItem(key);
|
|
26
|
+
}
|
|
27
|
+
catch {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
/** Persist a raw string value; returns whether the write succeeded. */
|
|
32
|
+
const safeLocalSet = (key, value) => {
|
|
33
|
+
if (!isBrowser)
|
|
34
|
+
return false;
|
|
35
|
+
try {
|
|
36
|
+
window.localStorage.setItem(key, value);
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
catch {
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
/** Remove a value; returns whether the removal succeeded. */
|
|
44
|
+
const safeLocalRemove = (key) => {
|
|
45
|
+
if (!isBrowser)
|
|
46
|
+
return false;
|
|
47
|
+
try {
|
|
48
|
+
window.localStorage.removeItem(key);
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
catch {
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Reusable `validate` guard for a `createLocalStorageItem<boolean>` item.
|
|
57
|
+
*/
|
|
58
|
+
const isBoolean = (value) => typeof value === 'boolean';
|
|
59
|
+
/**
|
|
60
|
+
* Parse a plain `'true'`/`'false'` string (not JSON) into a boolean; throws
|
|
61
|
+
* `errorMessage` for anything else so `createLocalStorageItem.get()` treats it
|
|
62
|
+
* as invalid data and returns `null`.
|
|
63
|
+
*/
|
|
64
|
+
const parseBooleanString = (raw, errorMessage) => {
|
|
65
|
+
if (raw === 'true')
|
|
66
|
+
return true;
|
|
67
|
+
if (raw === 'false')
|
|
68
|
+
return false;
|
|
69
|
+
throw new Error(errorMessage);
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* Build a typed, failure-safe accessor for a single `localStorage` key.
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* const draft = createLocalStorageItem<Draft>('fd-draft');
|
|
76
|
+
* draft.set({ title: 'Hi' });
|
|
77
|
+
* const value = draft.get(); // Draft | null
|
|
78
|
+
*/
|
|
79
|
+
const createLocalStorageItem = (key, options = {}) => {
|
|
80
|
+
const { serialize = JSON.stringify, deserialize = JSON.parse, validate } = options;
|
|
81
|
+
return {
|
|
82
|
+
get() {
|
|
83
|
+
const raw = safeLocalGet(key);
|
|
84
|
+
if (raw == null)
|
|
85
|
+
return null;
|
|
86
|
+
try {
|
|
87
|
+
const value = deserialize(raw);
|
|
88
|
+
if (validate && !validate(value))
|
|
89
|
+
return null;
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
catch {
|
|
93
|
+
return null;
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
set(value) {
|
|
97
|
+
try {
|
|
98
|
+
safeLocalSet(key, serialize(value));
|
|
99
|
+
}
|
|
100
|
+
catch {
|
|
101
|
+
// serialize() can throw (e.g. circular refs); matches the documented
|
|
102
|
+
// failure-safe contract — silently ignore, same as a write failure.
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
clear() {
|
|
106
|
+
safeLocalRemove(key);
|
|
107
|
+
},
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* Persistence for the `SidebarNavigation` collapsed preference. Stored as the
|
|
112
|
+
* plain strings `'true'` / `'false'` to preserve the original on-disk format.
|
|
113
|
+
*/
|
|
114
|
+
const sidebarCollapsedStorage = createLocalStorageItem(LOCAL_STORAGE_KEYS.sidebarCollapsed, {
|
|
115
|
+
serialize: String,
|
|
116
|
+
deserialize: (raw) => parseBooleanString(raw, 'Invalid sidebar collapsed value'),
|
|
117
|
+
validate: isBoolean,
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
export { LOCAL_STORAGE_KEYS, createLocalStorageItem, sidebarCollapsedStorage };
|
|
121
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/utilities/localStorageUtils/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;;;;;;;AASG;AAMH,MAAM,SAAS,GAAG,OAAO,MAAM,KAAK,WAAW;AAE/C;;;;;AAKG;AAEH;AACA,MAAM,YAAY,GAAG,CAAC,GAAW,KAAmB;AAClD,IAAA,IAAI,CAAC,SAAS;AAAE,QAAA,OAAO,IAAI;AAC3B,IAAA,IAAI;QACF,OAAO,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC;IACzC;AAAE,IAAA,MAAM;AACN,QAAA,OAAO,IAAI;IACb;AACF,CAAC;AAED;AACA,MAAM,YAAY,GAAG,CAAC,GAAW,EAAE,KAAa,KAAa;AAC3D,IAAA,IAAI,CAAC,SAAS;AAAE,QAAA,OAAO,KAAK;AAC5B,IAAA,IAAI;QACF,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC;AACvC,QAAA,OAAO,IAAI;IACb;AAAE,IAAA,MAAM;AACN,QAAA,OAAO,KAAK;IACd;AACF,CAAC;AAED;AACA,MAAM,eAAe,GAAG,CAAC,GAAW,KAAa;AAC/C,IAAA,IAAI,CAAC,SAAS;AAAE,QAAA,OAAO,KAAK;AAC5B,IAAA,IAAI;AACF,QAAA,MAAM,CAAC,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC;AACnC,QAAA,OAAO,IAAI;IACb;AAAE,IAAA,MAAM;AACN,QAAA,OAAO,KAAK;IACd;AACF,CAAC;AAoBD;;AAEG;AACH,MAAM,SAAS,GAAG,CAAC,KAAc,KAAuB,OAAO,KAAK,KAAK,SAAS;AAElF;;;;AAIG;AACH,MAAM,kBAAkB,GAAG,CAAC,GAAW,EAAE,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AAA;;;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Central registry of every `localStorage` key `@flipdish/ui-library` writes.
|
|
5
|
+
* Add a new key here whenever a component needs to persist a preference via
|
|
6
|
+
* `createLocalStorageItem` (see `index.ts`), so this file stays the single
|
|
7
|
+
* place to see everything the library puts in `localStorage`.
|
|
8
|
+
*/
|
|
9
|
+
const LOCAL_STORAGE_KEYS = {
|
|
10
|
+
/** `SidebarNavigation` collapsed/expanded preference. */
|
|
11
|
+
sidebarCollapsed: 'fd-sidebar-collapsed',
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
exports.LOCAL_STORAGE_KEYS = LOCAL_STORAGE_KEYS;
|
|
15
|
+
//# sourceMappingURL=localStorageUtils.constants.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"localStorageUtils.constants.cjs","sources":["../../../src/utilities/localStorageUtils/localStorageUtils.constants.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;;;AAKG;AACI,MAAM,kBAAkB,GAAG;;AAEhC,IAAA,gBAAgB,EAAE,sBAAsB;;;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Central registry of every `localStorage` key `@flipdish/ui-library` writes.
|
|
3
|
+
* Add a new key here whenever a component needs to persist a preference via
|
|
4
|
+
* `createLocalStorageItem` (see `index.ts`), so this file stays the single
|
|
5
|
+
* place to see everything the library puts in `localStorage`.
|
|
6
|
+
*/
|
|
7
|
+
export declare const LOCAL_STORAGE_KEYS: {
|
|
8
|
+
/** `SidebarNavigation` collapsed/expanded preference. */
|
|
9
|
+
readonly sidebarCollapsed: "fd-sidebar-collapsed";
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=localStorageUtils.constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"localStorageUtils.constants.d.ts","sourceRoot":"","sources":["../../../src/utilities/localStorageUtils/localStorageUtils.constants.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB;IAC7B,yDAAyD;;CAEjD,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Central registry of every `localStorage` key `@flipdish/ui-library` writes.
|
|
3
|
+
* Add a new key here whenever a component needs to persist a preference via
|
|
4
|
+
* `createLocalStorageItem` (see `index.ts`), so this file stays the single
|
|
5
|
+
* place to see everything the library puts in `localStorage`.
|
|
6
|
+
*/
|
|
7
|
+
const LOCAL_STORAGE_KEYS = {
|
|
8
|
+
/** `SidebarNavigation` collapsed/expanded preference. */
|
|
9
|
+
sidebarCollapsed: 'fd-sidebar-collapsed',
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { LOCAL_STORAGE_KEYS };
|
|
13
|
+
//# sourceMappingURL=localStorageUtils.constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"localStorageUtils.constants.js","sources":["../../../src/utilities/localStorageUtils/localStorageUtils.constants.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;;AAKG;AACI,MAAM,kBAAkB,GAAG;;AAEhC,IAAA,gBAAgB,EAAE,sBAAsB;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var cx = require('@flipdish/ui-library/utilities/cx');
|
|
5
|
-
var React = require('react');
|
|
6
|
-
|
|
7
|
-
// TODO: Replace with the actual Flipdish logo minimal
|
|
8
|
-
const FlipdishLogoMinimal = (props) => {
|
|
9
|
-
const id = React.useId();
|
|
10
|
-
return (
|
|
11
|
-
// biome-ignore lint/a11y/noSvgWithoutTitle: SVG does not need a title
|
|
12
|
-
jsxRuntime.jsxs("svg", { viewBox: "0 0 38 38", fill: "none", ...props, className: cx.cx('size-8 origin-center scale-[1.2]', props.className), children: [jsxRuntime.jsxs("g", { filter: `url(#filter0-${id}`, children: [jsxRuntime.jsxs("g", { clipPath: `url(#clip0-${id}`, children: [jsxRuntime.jsx("path", { d: "M3 14.8C3 10.3196 3 8.07937 3.87195 6.36808C4.63893 4.86278 5.86278 3.63893 7.36808 2.87195C9.07937 2 11.3196 2 15.8 2H22.2C26.6804 2 28.9206 2 30.6319 2.87195C32.1372 3.63893 33.3611 4.86278 34.1281 6.36808C35 8.07937 35 10.3196 35 14.8V21.2C35 25.6804 35 27.9206 34.1281 29.6319C33.3611 31.1372 32.1372 32.3611 30.6319 33.1281C28.9206 34 26.6804 34 22.2 34H15.8C11.3196 34 9.07937 34 7.36808 33.1281C5.86278 32.3611 4.63893 31.1372 3.87195 29.6319C3 27.9206 3 25.6804 3 21.2V14.8Z", fill: "white" }), jsxRuntime.jsx("path", { d: "M3 14.8C3 10.3196 3 8.07937 3.87195 6.36808C4.63893 4.86278 5.86278 3.63893 7.36808 2.87195C9.07937 2 11.3196 2 15.8 2H22.2C26.6804 2 28.9206 2 30.6319 2.87195C32.1372 3.63893 33.3611 4.86278 34.1281 6.36808C35 8.07937 35 10.3196 35 14.8V21.2C35 25.6804 35 27.9206 34.1281 29.6319C33.3611 31.1372 32.1372 32.3611 30.6319 33.1281C28.9206 34 26.6804 34 22.2 34H15.8C11.3196 34 9.07937 34 7.36808 33.1281C5.86278 32.3611 4.63893 31.1372 3.87195 29.6319C3 27.9206 3 25.6804 3 21.2V14.8Z", fill: `url(#paint0_linear-${id}`, fillOpacity: "0.2" }), jsxRuntime.jsx("g", { opacity: "0.14", clipPath: `url(#clip1-${id}`, children: jsxRuntime.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M18.9612 2H19.0388V3.96123C20.8929 3.96625 22.6625 4.33069 24.2816 4.98855V2H24.3592V5.02038C25.7339 5.58859 26.9986 6.36882 28.1126 7.32031H29.602V2H29.6796V7.32031H35V7.39798H29.6796V8.88728C30.6311 10.0013 31.4113 11.266 31.9796 12.6406H35V12.7183H32.0114C32.6693 14.3373 33.0337 16.1069 33.0388 17.9609H35V18.0386H33.0388C33.0338 19.8927 32.6694 21.6622 32.0116 23.2812H35V23.3589H31.9798C31.4115 24.7337 30.6312 25.9986 29.6796 27.1128V28.6016H35V28.6792H29.6796V34H29.602V28.6792H28.1132C26.999 29.6309 25.7341 30.4113 24.3592 30.9797V34H24.2816V31.0115C22.6625 31.6693 20.8929 32.0338 19.0388 32.0388V34H18.9612V32.0388C17.1071 32.0338 15.3375 31.6693 13.7184 31.0115V34H13.6408V30.9797C12.2659 30.4113 11.001 29.6309 9.88678 28.6792H8.39804V34H8.32037V28.6792H3V28.6016H8.32037V27.1128C7.36877 25.9986 6.58847 24.7337 6.02023 23.3589H3V23.2812H5.9884C5.3306 21.6622 4.96621 19.8927 4.96122 18.0386H3V17.9609H4.96122C4.96627 16.1069 5.33073 14.3373 5.9886 12.7183H3V12.6406H6.02044C6.58866 11.266 7.36889 10.0013 8.32037 8.88728V7.39798H3V7.32031H8.32037V2H8.39804V7.32031H9.88736C11.0014 6.36882 12.2661 5.58859 13.6408 5.02038V2H13.7184V4.98855C15.3375 4.33069 17.1071 3.96626 18.9612 3.96123V2ZM18.9612 4.0389C17.1062 4.04396 15.3364 4.41075 13.7184 5.07245V7.32031H18.9612V4.0389ZM13.6408 5.10449C12.3137 5.65662 11.0902 6.40763 10.0074 7.32031H13.6408V5.10449ZM9.79719 7.39798H8.39804V8.79711C8.8311 8.29865 9.29872 7.83103 9.79719 7.39798ZM8.39804 8.91598C8.86452 8.37206 9.37213 7.86446 9.91606 7.39798H13.6408V12.6406H8.39804V8.91598ZM8.32037 9.00733C7.4077 10.0901 6.65669 11.3136 6.10454 12.6406H8.32037V9.00733ZM6.0725 12.7183C5.41078 14.3362 5.04397 16.106 5.03889 17.9609H8.32037V12.7183H6.0725ZM5.03889 18.0386C5.04391 19.8935 5.41065 21.6633 6.0723 23.2812H8.32037V18.0386H5.03889ZM6.10434 23.3589C6.6565 24.6861 7.40759 25.9098 8.32037 26.9927V23.3589H6.10434ZM8.39804 27.2029V28.6016H9.79662C9.29837 28.1686 8.83093 27.7012 8.39804 27.2029ZM9.91548 28.6016C9.37178 28.1352 8.86436 27.6278 8.39804 27.0841V23.3589H13.6408V28.6016H9.91548ZM10.0068 28.6792C11.0898 29.5921 12.3135 30.3433 13.6408 30.8955V28.6792H10.0068ZM13.7184 30.9276C15.3364 31.5893 17.1062 31.9561 18.9612 31.9611V28.6792H13.7184V30.9276ZM19.0388 31.9611C20.8937 31.9561 22.6636 31.5893 24.2816 30.9276V28.6792H19.0388V31.9611ZM24.3592 30.8955C25.6865 30.3433 26.9102 29.5921 27.9932 28.6792H24.3592V30.8955ZM28.2034 28.6016H29.602V27.2029C29.1691 27.7012 28.7016 28.1686 28.2034 28.6016ZM29.602 27.0841C29.1356 27.6278 28.6282 28.1352 28.0845 28.6016H24.3592V23.3589H29.602V27.0841ZM29.6796 26.9927C30.5924 25.9098 31.3435 24.6861 31.8957 23.3589H29.6796V26.9927ZM31.9277 23.2812C32.5894 21.6633 32.9561 19.8935 32.9611 18.0386H29.6796V23.2812H31.9277ZM32.9611 17.9609C32.956 16.1061 32.5892 14.3362 31.9275 12.7183H29.6796V17.9609H32.9611ZM31.8955 12.6406C31.3433 11.3136 30.5923 10.0901 29.6796 9.00733V12.6406H31.8955ZM29.602 8.79711V7.39798H28.2028C28.7013 7.83103 29.1689 8.29865 29.602 8.79711ZM28.0839 7.39798C28.6279 7.86446 29.1355 8.37206 29.602 8.91598V12.6406H24.3592V7.39798H28.0839ZM27.9926 7.32031C26.9098 6.40763 25.6863 5.65662 24.3592 5.10449V7.32031H27.9926ZM24.2816 5.07245C22.6636 4.41074 20.8937 4.04395 19.0388 4.0389V7.32031H24.2816V5.07245ZM13.7184 7.39798H18.9612V12.6406H13.7184V7.39798ZM24.2816 7.39798H19.0388V12.6406H24.2816V7.39798ZM13.6408 23.2812H8.39804V18.0386H13.6408V23.2812ZM13.7184 23.3589V28.6016H18.9612V23.3589H13.7184ZM18.9612 23.2812H13.7184V18.0386H18.9612V23.2812ZM19.0388 23.3589V28.6016H24.2816V23.3589H19.0388ZM24.2816 23.2812H19.0388V18.0386H24.2816V23.2812ZM29.602 23.2812H24.3592V18.0386H29.602V23.2812ZM13.7184 12.7183H18.9612V17.9609H13.7184V12.7183ZM8.39804 12.7183L13.6408 12.7183V17.9609H8.39804V12.7183ZM24.2816 12.7183H19.0388V17.9609H24.2816V12.7183ZM24.3592 17.9609V12.7183L29.602 12.7183V17.9609H24.3592Z", fill: "#000000" }) }), jsxRuntime.jsxs("g", { filter: `url(#filter1_dd-${id}`, children: [jsxRuntime.jsx("rect", { x: "11", y: "10", width: "16", height: "16", rx: "8", fill: `url(#paint1_linear-${id}` }), jsxRuntime.jsx("rect", { x: "11", y: "10", width: "16", height: "16", rx: "8", fill: `url(#paint2_radial-${id}`, fillOpacity: "0.08" }), jsxRuntime.jsx("rect", { x: "11", y: "10", width: "16", height: "16", rx: "8", fill: `url(#paint3_radial-${id}`, fillOpacity: "0.18" }), jsxRuntime.jsx("rect", { x: "11", y: "10", width: "16", height: "16", rx: "8", fill: `url(#paint4_radial-${id}`, fillOpacity: "0.05" }), jsxRuntime.jsx("path", { d: "M23.8 14.0414C23.8 15.3898 21.651 14.5297 19 14.5297C16.349 14.5297 14.2 15.3898 14.2 14.0414C14.2 12.693 16.349 11.6 19 11.6C21.651 11.6 23.8 12.693 23.8 14.0414Z", fill: `url(#paint5_linear-${id}`, fillOpacity: "0.4" })] })] }), jsxRuntime.jsx("path", { d: "M3.1 14.8C3.1 12.5581 3.10008 10.8828 3.20866 9.55376C3.31715 8.22593 3.53345 7.25268 3.96105 6.41348C4.71845 4.92699 5.92699 3.71845 7.41348 2.96105C8.25268 2.53345 9.22593 2.31715 10.5538 2.20866C11.8828 2.10008 13.5581 2.1 15.8 2.1H22.2C24.4419 2.1 26.1172 2.10008 27.4462 2.20866C28.7741 2.31715 29.7473 2.53345 30.5865 2.96105C32.073 3.71845 33.2816 4.92699 34.039 6.41348C34.4665 7.25268 34.6828 8.22593 34.7913 9.55376C34.8999 10.8828 34.9 12.5581 34.9 14.8V21.2C34.9 23.4419 34.8999 25.1172 34.7913 26.4462C34.6828 27.7741 34.4665 28.7473 34.039 29.5865C33.2816 31.073 32.073 32.2816 30.5865 33.039C29.7473 33.4665 28.7741 33.6828 27.4462 33.7913C26.1172 33.8999 24.4419 33.9 22.2 33.9H15.8C13.5581 33.9 11.8828 33.8999 10.5538 33.7913C9.22593 33.6828 8.25268 33.4665 7.41348 33.039C5.92699 32.2816 4.71845 31.073 3.96105 29.5865C3.53345 28.7473 3.31715 27.7741 3.20866 26.4462C3.10008 25.1172 3.1 23.4419 3.1 21.2V14.8Z", stroke: "#000000", strokeOpacity: "0.12", strokeWidth: "0.2" })] }), jsxRuntime.jsx("image", { href: "data:image/webp;base64,UklGRoYHAABXRUJQVlA4WAoAAAAQAAAAnwAATwAAQUxQSIcFAAABD9D/iAjY3/9PbSp7ed+ZTNJJKWUSCpsenYbSDay1rPukpGxgrV3WtfCsu16XSSmc9NgTuLa+Qa+7e1h3d3ff/em6RvQ/jjUcsJXcxqnp73y0Dd1iS99JJiIk8ActCkLbexBTRwGAiRepAc0DWAxNoPI469jGE+uApSJKwSaxwH/SDuvFRgSL+iF90f0/uOinRfp2jRkl3Nff8aS4scgmTK8WSJAVeVMRv8MPmIiL0AL18jbT0iUQ4DLPPF/UJ4mbkQ4c4NfrQGJI7ocYCmQLUqQGLS9i1ZjJ9YD0wfkBRF/XQbJCuVeo1XGMePjwSf2n48dncwVJ5gjukhRfrTlAVTy4rpscDVXOijJypxQS6iZgBm9Q/kbbeQC8WMyky2I1RSACacETMY7ld3aOWZWw7g04bJcNNfCX6IsL4cz9WT+HbkzgHlngSQGIuajVbyZkyV32WwfZg2CY/K69d78dyr19p3jzASrzrYmkoHQM/2cGci2NjEfmfsjszTI6mhxAeqmb/h72AaqBsGWdCr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3yUeHlfcazjLbQQhds194PAPDZwgj71n+VRxDXHscni/Wky7ywckRU4/JqDpVmuOed3eBwCb10sD55/TfECEJNPJPYeG6UuvcrtswWvQOGXDft/1xrxR7Az/JQWtisbGGbQrgbQjx2rJRUh0am0G/Yj0Cu/NQy7f8JtQVbh+ZCgIt7gOEADvJFKwEr7/GrgQql3CM/urtBzm9nMnCj53WEWr3/5BJROomYBUwsRXInvP5O3DqZfVoD9WRpEsUH4yx6BI4JaaMQZUYZ8F7y0KBvD/PTDSR/CgBWUDgg2AEAAFATAJ0BKqAAUAA+KRKHQqGhCj4CcgwBQlnAM4spE3mv/5foxj7CIWswa6AqkXFI+Yh0P/x5D3Ezvirfp0TGLFgI7x9F5fO5IHYoatU6Evly836v+YqU0oO2cfVypfHDsDw29g1p0iydYsDT1vJNxjinCDWybXmWiyxS9UEu/eRrG49iyvR67gMIAazf0vPgtrbCHQlTv5rJV7PPFdfirZtz+MAA/v5sJNKJKeJ/hzR4FAhZT+MvOLxH42j6POGLQ5xx2In90EX/MqvckpWMe6weKHop6T9BUAz/qmeY0d8DTiGxEk9YU598XXHiiNGKd3N9bWu4tL9X/OTRVy1Rn7PiG3QoRIX3J93WJsqnemrvJRVh5OFlmDx8B2NZglxXEALZRATlzsBOth3ETpiwt4j0QGUWf9bqg+8o+N9xVYJQdwytiTyuepp1FCA/u6R5xx93RhFIuyDILKBC2Y5InXCxD6GMe2LENm7ZJ/grDJ4/Sw87hS1FBNG9/Q83pgBC8DNlOmf4pz//jBR6YIzM9rp4182sAr4cYbiEejZB40FUN1LWRAjTwjz+qDQMg6IT9yo01SmHMkGkr4vQZayROK4PIIkRRSAlJALZq89W30VJUep6YrggAAA=", x: "0", y: "19", width: "38", height: "19", transform: "scale(0.84) translate(0, -1.5)", className: "origin-center", preserveAspectRatio: "xMidYMax slice", clipPath: `url(#imageClip-${id})` }), jsxRuntime.jsxs("defs", { children: [jsxRuntime.jsx("clipPath", { id: `imageClip-${id}`, children: jsxRuntime.jsx("path", { d: "M 0 19 L 38 19 L 38 28.88 A 9.12 9.12 0 0 1 28.88 38 L 9.12 38 A 9.12 9.12 0 0 1 0 28.88 Z" }) }), jsxRuntime.jsxs("filter", { id: `filter0-${id}`, x: "0", y: "0", width: "38", height: "38", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB", children: [jsxRuntime.jsx("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }), jsxRuntime.jsx("feColorMatrix", { in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), jsxRuntime.jsx("feOffset", { dy: "1" }), jsxRuntime.jsx("feGaussianBlur", { stdDeviation: "1" }), jsxRuntime.jsx("feColorMatrix", { type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0" }), jsxRuntime.jsx("feBlend", { mode: "normal", in2: "BackgroundImageFix", result: "effect1_dropShadow" }), jsxRuntime.jsx("feColorMatrix", { in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), jsxRuntime.jsx("feOffset", { dy: "1" }), jsxRuntime.jsx("feGaussianBlur", { stdDeviation: "1.5" }), jsxRuntime.jsx("feColorMatrix", { type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" }), jsxRuntime.jsx("feBlend", { mode: "normal", in2: "effect1_dropShadow", result: "effect2_dropShadow" }), jsxRuntime.jsx("feColorMatrix", { in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), jsxRuntime.jsx("feMorphology", { radius: "0.5", operator: "erode", in: "SourceAlpha", result: "effect3_dropShadow" }), jsxRuntime.jsx("feOffset", { dy: "1" }), jsxRuntime.jsx("feGaussianBlur", { stdDeviation: "0.5" }), jsxRuntime.jsx("feComposite", { in2: "hardAlpha", operator: "out" }), jsxRuntime.jsx("feColorMatrix", { type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.13 0" }), jsxRuntime.jsx("feBlend", { mode: "normal", in2: "effect2_dropShadow", result: "effect3_dropShadow" }), jsxRuntime.jsx("feBlend", { mode: "normal", in: "SourceGraphic", in2: "effect3_dropShadow", result: "shape" }), jsxRuntime.jsx("feColorMatrix", { in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), jsxRuntime.jsx("feOffset", { dy: "-0.5" }), jsxRuntime.jsx("feGaussianBlur", { stdDeviation: "0.25" }), jsxRuntime.jsx("feComposite", { in2: "hardAlpha", operator: "arithmetic", k2: "-1", k3: "1" }), jsxRuntime.jsx("feColorMatrix", { type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" }), jsxRuntime.jsx("feBlend", { mode: "normal", in2: "shape", result: "effect4_innerShadow" })] }), jsxRuntime.jsxs("filter", { id: `filter1_dd-${id}`, x: "8", y: "8", width: "22", height: "22", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB", children: [jsxRuntime.jsx("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }), jsxRuntime.jsx("feColorMatrix", { in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), jsxRuntime.jsx("feOffset", { dy: "1" }), jsxRuntime.jsx("feGaussianBlur", { stdDeviation: "1" }), jsxRuntime.jsx("feColorMatrix", { type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0" }), jsxRuntime.jsx("feBlend", { mode: "normal", in2: "BackgroundImageFix", result: "effect1_dropShadow" }), jsxRuntime.jsx("feColorMatrix", { in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), jsxRuntime.jsx("feOffset", { dy: "1" }), jsxRuntime.jsx("feGaussianBlur", { stdDeviation: "1.5" }), jsxRuntime.jsx("feColorMatrix", { type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" }), jsxRuntime.jsx("feBlend", { mode: "normal", in2: "effect1_dropShadow", result: "effect2_dropShadow" }), jsxRuntime.jsx("feBlend", { mode: "normal", in: "SourceGraphic", in2: "effect2_dropShadow", result: "shape" })] }), jsxRuntime.jsxs("filter", { id: `filter2_b-${id}`, x: "-2", y: "13", width: "42", height: "26", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB", children: [jsxRuntime.jsx("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }), jsxRuntime.jsx("feGaussianBlur", { in: "BackgroundImageFix", stdDeviation: "2.5" }), jsxRuntime.jsx("feComposite", { in2: "SourceAlpha", operator: "in", result: "effect1_backgroundBlur" }), jsxRuntime.jsx("feBlend", { mode: "normal", in: "SourceGraphic", in2: "effect1_backgroundBlur", result: "shape" })] }), jsxRuntime.jsxs("linearGradient", { id: `paint0_linear-${id}`, x1: "19", y1: "2", x2: "19", y2: "34", gradientUnits: "userSpaceOnUse", children: [jsxRuntime.jsx("stop", { stopColor: "white" }), jsxRuntime.jsx("stop", { offset: "1", stopColor: "#000000" })] }), jsxRuntime.jsxs("linearGradient", { id: `paint1_linear-${id}`, x1: "15", y1: "26", x2: "23", y2: "10", gradientUnits: "userSpaceOnUse", children: [jsxRuntime.jsx("stop", { stopColor: "#53389E" }), jsxRuntime.jsx("stop", { offset: "1", stopColor: "#6941C6" })] }), jsxRuntime.jsxs("radialGradient", { id: `paint2_radial-${id}`, cx: "0", cy: "0", r: "1", gradientUnits: "userSpaceOnUse", gradientTransform: "translate(19 10) rotate(90) scale(12)", children: [jsxRuntime.jsx("stop", { stopColor: "white", stopOpacity: "0" }), jsxRuntime.jsx("stop", { offset: "0.5", stopColor: "white", stopOpacity: "0" }), jsxRuntime.jsx("stop", { offset: "0.99", stopColor: "white" }), jsxRuntime.jsx("stop", { offset: "1", stopColor: "white", stopOpacity: "0" })] }), jsxRuntime.jsxs("radialGradient", { id: `paint3_radial-${id}`, cx: "0", cy: "0", r: "1", gradientUnits: "userSpaceOnUse", gradientTransform: "translate(19 18) rotate(90) scale(8)", children: [jsxRuntime.jsx("stop", { offset: "0.746599", stopColor: "white", stopOpacity: "0" }), jsxRuntime.jsx("stop", { offset: "1", stopColor: "white" })] }), jsxRuntime.jsxs("radialGradient", { id: `paint4_radial-${id}`, cx: "0", cy: "0", r: "1", gradientUnits: "userSpaceOnUse", gradientTransform: "translate(19 14.6) rotate(90) scale(7)", children: [jsxRuntime.jsx("stop", { stopColor: "white" }), jsxRuntime.jsx("stop", { offset: "1", stopColor: "white", stopOpacity: "0" })] }), jsxRuntime.jsxs("linearGradient", { id: `paint5_linear-${id}`, x1: "19", y1: "11.6", x2: "19", y2: "14.8", gradientUnits: "userSpaceOnUse", children: [jsxRuntime.jsx("stop", { stopColor: "white" }), jsxRuntime.jsx("stop", { offset: "1", stopColor: "white", stopOpacity: "0.1" })] }), jsxRuntime.jsx("clipPath", { id: `clip0-${id}`, children: jsxRuntime.jsx("path", { d: "M3 14.8C3 10.3196 3 8.07937 3.87195 6.36808C4.63893 4.86278 5.86278 3.63893 7.36808 2.87195C9.07937 2 11.3196 2 15.8 2H22.2C26.6804 2 28.9206 2 30.6319 2.87195C32.1372 3.63893 33.3611 4.86278 34.1281 6.36808C35 8.07937 35 10.3196 35 14.8V21.2C35 25.6804 35 27.9206 34.1281 29.6319C33.3611 31.1372 32.1372 32.3611 30.6319 33.1281C28.9206 34 26.6804 34 22.2 34H15.8C11.3196 34 9.07937 34 7.36808 33.1281C5.86278 32.3611 4.63893 31.1372 3.87195 29.6319C3 27.9206 3 25.6804 3 21.2V14.8Z", fill: "white" }) }), jsxRuntime.jsx("clipPath", { id: `clip1-${id}`, children: jsxRuntime.jsx("rect", { width: "32", height: "32", fill: "white", transform: "translate(3 2)" }) })] })] }));
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
exports.FlipdishLogoMinimal = FlipdishLogoMinimal;
|
|
16
|
-
//# sourceMappingURL=flipdish-logo-minimal.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"flipdish-logo-minimal.cjs","sources":["../../../../../src/components/atoms/FlipdishLogo/components/flipdish-logo-minimal.tsx"],"sourcesContent":[null],"names":["useId","_jsxs","cx","_jsx"],"mappings":";;;;;;AAMA;AACO,MAAM,mBAAmB,GAAG,CAAC,KAA8B,KAAI;AACpE,IAAA,MAAM,EAAE,GAAGA,WAAK,EAAE;IAElB;;AAEE,IAAAC,eAAA,CAAA,KAAA,EAAA,EAAK,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAA,GAAK,KAAK,EAAE,SAAS,EAAEC,KAAE,CAAC,kCAAkC,EAAE,KAAK,CAAC,SAAS,CAAC,EAAA,QAAA,EAAA,CAChHD,eAAA,CAAA,GAAA,EAAA,EAAG,MAAM,EAAE,gBAAgB,EAAE,CAAA,CAAE,EAAA,QAAA,EAAA,CAC7BA,eAAA,CAAA,GAAA,EAAA,EAAG,QAAQ,EAAE,CAAA,WAAA,EAAc,EAAE,CAAA,CAAE,aAC7BE,cAAA,CAAA,MAAA,EAAA,EACE,CAAC,EAAC,oeAAoe,EACte,IAAI,EAAC,OAAO,GACZ,EACFA,cAAA,CAAA,MAAA,EAAA,EACE,CAAC,EAAC,oeAAoe,EACte,IAAI,EAAE,CAAA,mBAAA,EAAsB,EAAE,CAAA,CAAE,EAChC,WAAW,EAAC,KAAK,EAAA,CACjB,EACFA,cAAA,CAAA,GAAA,EAAA,EAAG,OAAO,EAAC,MAAM,EAAC,QAAQ,EAAE,cAAc,EAAE,CAAA,CAAE,EAAA,QAAA,EAC5CA,cAAA,CAAA,MAAA,EAAA,EACE,QAAQ,EAAC,SAAS,EAClB,QAAQ,EA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