@midas-ds/layout 0.0.21 → 0.0.23
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/CHANGELOG.md +14 -0
- package/assets/Header.css +1 -1
- package/assets/NavigationSubMenu.css +1 -1
- package/assets/PanelRegion.css +1 -0
- package/assets/PanelTitle.css +1 -0
- package/assets/Sidebar.css +1 -0
- package/chunks/Header-B1Nk3vII.js +89 -0
- package/chunks/LayoutContent-CvlzZxeo.js +23 -0
- package/chunks/Main-Dt0CIYBE.js +14 -0
- package/chunks/Navbar-Do2dFMRr.js +14 -0
- package/chunks/NavigationSubMenu-G-WkaNZA.js +164 -0
- package/chunks/PanelRegion-zsKP1Rye.js +177 -0
- package/chunks/PanelTitle-xkONCSrW.js +38 -0
- package/chunks/Sidebar-BFIjN5q6.js +70 -0
- package/chunks/SidebarContext-CoDRKR2m.js +8 -0
- package/chunks/clsx-OuTLNxxd.js +16 -0
- package/header/index.js +1 -1
- package/header/mobile-menu/MobileMenu.d.ts +6 -7
- package/index.d.ts +1 -0
- package/index.js +31 -31
- package/layout/index.js +1 -1
- package/main/index.js +1 -1
- package/navbar/index.js +1 -1
- package/navigation/index.js +1 -1
- package/navigation/navigation-header/NavigationHeader.d.ts +1 -2
- package/navigation/navigation-section/NavigationSection.d.ts +2 -2
- package/package.json +2 -2
- package/panel/Panel.d.ts +10 -10
- package/panel/Panel.stories.d.ts +2 -4
- package/panel/PanelContext.d.ts +12 -3
- package/panel/PanelProvider.d.ts +9 -0
- package/panel/PanelRegion.d.ts +3 -0
- package/panel/index.d.ts +5 -4
- package/panel/index.js +9 -13
- package/panel/intl/translations.json.d.ts +0 -4
- package/panel/panel-body/PanelBody.d.ts +3 -3
- package/panel/usePanels.d.ts +1 -0
- package/sidebar/Sidebar.d.ts +7 -0
- package/sidebar/SidebarContext.d.ts +3 -0
- package/sidebar/index.d.ts +2 -0
- package/sidebar/index.js +6 -0
- package/sidebar/intl/translations.json.d.ts +13 -0
- package/assets/Panel.css +0 -1
- package/chunks/Header-T5EUvNY7.js +0 -98
- package/chunks/LayoutContent-DhVL-boV.js +0 -22
- package/chunks/Main-Ce4U9_ce.js +0 -13
- package/chunks/Navbar-wOOCcsru.js +0 -13
- package/chunks/NavigationSubMenu-C-M26YYp.js +0 -171
- package/chunks/Panel-C-B48gnt.js +0 -281
- package/chunks/PanelContext-D6WQ7_yb.js +0 -11
- package/panel/collapse-panel/CollapsePanel.d.ts +0 -8
- package/panel/collapse-panel/CollapsePanelContext.d.ts +0 -3
- package/panel/collapse-panel/index.d.ts +0 -2
- package/panel/dismiss-panel/DismissPanel.d.ts +0 -11
- package/panel/dismiss-panel/DismissPanelContext.d.ts +0 -12
- package/panel/dismiss-panel/DismissPanelOutlet.d.ts +0 -3
- package/panel/dismiss-panel/DismissPanelProvider.d.ts +0 -9
- package/panel/dismiss-panel/index.d.ts +0 -5
- package/panel/dismiss-panel/useDismissPanels.d.ts +0 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface MobileMenuProps {
|
|
3
|
-
|
|
1
|
+
import { ModalOverlayProps } from 'react-aria-components';
|
|
2
|
+
export interface MobileMenuProps extends ModalOverlayProps {
|
|
3
|
+
/**
|
|
4
|
+
* A visible title for the menu
|
|
5
|
+
*/
|
|
4
6
|
title?: string;
|
|
5
|
-
isDrawerOpen?: boolean;
|
|
6
|
-
defaultDrawerOpen?: boolean;
|
|
7
|
-
onDrawerOpenChange?: (isDrawerOpen: boolean) => void;
|
|
8
7
|
}
|
|
9
|
-
export declare const MobileMenu: ({ children,
|
|
8
|
+
export declare const MobileMenu: ({ children, className, title, ...rest }: MobileMenuProps) => import("react/jsx-runtime").JSX.Element | null;
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { H as
|
|
2
|
-
import { L as
|
|
3
|
-
import { M as m } from "./chunks/Main-
|
|
4
|
-
import { N as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { H as o, a as t, b as r, M as n } from "./chunks/Header-B1Nk3vII.js";
|
|
2
|
+
import { L as i, a as x } from "./chunks/LayoutContent-CvlzZxeo.js";
|
|
3
|
+
import { M as m } from "./chunks/Main-Dt0CIYBE.js";
|
|
4
|
+
import { N as b, a as d, b as f, c as p, d as M, e as N } from "./chunks/NavigationSubMenu-G-WkaNZA.js";
|
|
5
|
+
import { P as v, a as g, b as H, c as S, u as c } from "./chunks/PanelRegion-zsKP1Rye.js";
|
|
6
|
+
import { S as L } from "./chunks/Sidebar-BFIjN5q6.js";
|
|
7
|
+
import { S as A } from "./chunks/SidebarContext-CoDRKR2m.js";
|
|
8
|
+
import { N as B } from "./chunks/Navbar-Do2dFMRr.js";
|
|
9
|
+
import { M as R } from "./chunks/MobileMenuContext-Coj0sJ0N.js";
|
|
10
|
+
import { P as h, a as j, b as q } from "./chunks/PanelTitle-xkONCSrW.js";
|
|
9
11
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
H as DismissPanelProvider,
|
|
16
|
-
s as Header,
|
|
17
|
-
o as HeaderAction,
|
|
18
|
-
t as HeaderActions,
|
|
19
|
-
r as Layout,
|
|
20
|
-
l as LayoutContent,
|
|
12
|
+
o as Header,
|
|
13
|
+
t as HeaderAction,
|
|
14
|
+
r as HeaderActions,
|
|
15
|
+
i as Layout,
|
|
16
|
+
x as LayoutContent,
|
|
21
17
|
m as Main,
|
|
22
18
|
n as MobileMenu,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
R as MobileMenuContext,
|
|
20
|
+
B as Navbar,
|
|
21
|
+
b as Navigation,
|
|
26
22
|
d as NavigationHeader,
|
|
27
23
|
f as NavigationItem,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
S as
|
|
24
|
+
p as NavigationLink,
|
|
25
|
+
M as NavigationSection,
|
|
26
|
+
N as NavigationSubMenu,
|
|
27
|
+
v as Panel,
|
|
28
|
+
h as PanelBody,
|
|
29
|
+
g as PanelContext,
|
|
30
|
+
j as PanelHeader,
|
|
31
|
+
H as PanelProvider,
|
|
32
|
+
S as PanelRegion,
|
|
33
|
+
q as PanelTitle,
|
|
34
|
+
L as Sidebar,
|
|
35
|
+
A as SidebarContext,
|
|
36
|
+
c as usePanels
|
|
37
37
|
};
|
package/layout/index.js
CHANGED
package/main/index.js
CHANGED
package/navbar/index.js
CHANGED
package/navigation/index.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { TextProps } from '../../../../components/src/index.ts';
|
|
2
|
-
export
|
|
3
|
-
export declare const NavigationHeader: ({ className, ...rest }: NavigationHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const NavigationHeader: ({ className, ...rest }: TextProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DetailedHTMLProps, HTMLAttributes } from 'react';
|
|
2
1
|
import { CollectionProps } from '@react-aria/collections';
|
|
3
|
-
export interface NavigationSectionProps<T extends object> extends CollectionProps<T
|
|
2
|
+
export interface NavigationSectionProps<T extends object> extends CollectionProps<T> {
|
|
4
3
|
title?: string;
|
|
4
|
+
className?: string;
|
|
5
5
|
}
|
|
6
6
|
export declare const NavigationSection: <T extends object>({ className, title, ...rest }: NavigationSectionProps<T>) => import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"description": "Midas Layout components",
|
|
15
15
|
"homepage": "https://designsystem.migrationsverket.se/",
|
|
16
16
|
"license": "CC0-1.0",
|
|
17
|
-
"version": "0.0.
|
|
17
|
+
"version": "0.0.23",
|
|
18
18
|
"module": "./index.js",
|
|
19
19
|
"type": "module",
|
|
20
20
|
"main": "./index.js",
|
|
@@ -36,6 +36,6 @@
|
|
|
36
36
|
"./*": "./*/index.js"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@midas-ds/components": "17.10.
|
|
39
|
+
"@midas-ds/components": "17.10.1"
|
|
40
40
|
}
|
|
41
41
|
}
|
package/panel/Panel.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Key } from 'react-aria-components';
|
|
2
|
-
import { CollapseTriggerProps } from './collapse-panel';
|
|
3
|
-
import { DismissTriggerProps } from './dismiss-panel';
|
|
4
1
|
import { PanelBodyProps } from './panel-body';
|
|
5
2
|
import { PanelTitleProps } from './panel-title';
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
export interface PanelProps extends PanelBodyProps, Pick<PanelTitleProps, 'title'> {
|
|
4
|
+
id: string;
|
|
5
|
+
isOpen?: boolean;
|
|
6
|
+
defaultOpen?: boolean;
|
|
7
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
8
|
+
onExited?: () => void;
|
|
9
|
+
promoting?: boolean;
|
|
10
|
+
onPromotionEnd?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const Panel: (props: PanelProps) => import("react/jsx-runtime").JSX.Element | null;
|
package/panel/Panel.stories.d.ts
CHANGED
|
@@ -2,15 +2,13 @@ import { StoryObj } from '@storybook/react-vite';
|
|
|
2
2
|
import { Panel } from '.';
|
|
3
3
|
type Story = StoryObj<typeof Panel>;
|
|
4
4
|
declare const _default: {
|
|
5
|
-
component:
|
|
5
|
+
component: (props: import('./Panel').PanelProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
6
6
|
title: string;
|
|
7
7
|
tags: string[];
|
|
8
8
|
args: {
|
|
9
|
-
isCollapsed: false;
|
|
10
9
|
isOpen: false;
|
|
11
10
|
title: string;
|
|
12
11
|
};
|
|
13
12
|
};
|
|
14
13
|
export default _default;
|
|
15
|
-
export declare const
|
|
16
|
-
export declare const Dismiss: Story;
|
|
14
|
+
export declare const Primary: Story;
|
package/panel/PanelContext.d.ts
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
-
import { PanelProps
|
|
2
|
-
export
|
|
3
|
-
|
|
1
|
+
import { PanelProps } from './Panel';
|
|
2
|
+
export interface PanelItem extends PanelProps {
|
|
3
|
+
promoting?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export interface PanelContextValue {
|
|
6
|
+
panels: PanelItem[];
|
|
7
|
+
addPanel: (panel: Omit<PanelItem, 'isOpen' | 'defaultOpen'>) => void;
|
|
8
|
+
closePanel: (id: string) => void;
|
|
9
|
+
removePanel: (id: string) => void;
|
|
10
|
+
resetPromoting: (id: string) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const PanelContext: import('react').Context<PanelContextValue>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { PanelItem } from './PanelContext';
|
|
3
|
+
export type PanelBehavior = 'bring-to-front' | 'pop-to';
|
|
4
|
+
export interface PanelProviderProps {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
defaultPanels?: PanelItem[];
|
|
7
|
+
panelBehavior?: PanelBehavior;
|
|
8
|
+
}
|
|
9
|
+
export declare const PanelProvider: ({ children, defaultPanels, panelBehavior, }: PanelProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { DetailedHTMLProps, HTMLAttributes } from 'react';
|
|
2
|
+
export type PanelRegionProps = DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
3
|
+
export declare const PanelRegion: ({ children, className, ...rest }: PanelRegionProps) => import("react/jsx-runtime").JSX.Element;
|
package/panel/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export * from './Panel';
|
|
2
|
-
export * from './PanelContext';
|
|
3
|
-
export * from './collapse-panel';
|
|
4
|
-
export * from './dismiss-panel';
|
|
5
1
|
export * from './panel-body';
|
|
6
2
|
export * from './panel-header';
|
|
7
3
|
export * from './panel-title';
|
|
4
|
+
export * from './Panel';
|
|
5
|
+
export * from './PanelContext';
|
|
6
|
+
export * from './PanelProvider';
|
|
7
|
+
export * from './PanelRegion';
|
|
8
|
+
export * from './usePanels';
|
package/panel/index.js
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { P, a as n, b as s, c as l, u as o } from "../chunks/PanelRegion-zsKP1Rye.js";
|
|
2
|
+
import { P as t, a as d, b as i } from "../chunks/PanelTitle-xkONCSrW.js";
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
x as CollapsePanelContext,
|
|
6
|
-
l as DismissPanel,
|
|
7
|
-
n as DismissPanelContext,
|
|
8
|
-
P as DismissPanelOutlet,
|
|
9
|
-
i as DismissPanelProvider,
|
|
10
|
-
o as Panel,
|
|
4
|
+
P as Panel,
|
|
11
5
|
t as PanelBody,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
n as PanelContext,
|
|
7
|
+
d as PanelHeader,
|
|
8
|
+
s as PanelProvider,
|
|
9
|
+
l as PanelRegion,
|
|
10
|
+
i as PanelTitle,
|
|
11
|
+
o as usePanels
|
|
16
12
|
};
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
"en": {
|
|
3
|
-
"expandSidebar": "Expand sidebar",
|
|
4
|
-
"collapseSidebar": "Collapse sidebar",
|
|
5
3
|
"closePanel": "Close panel"
|
|
6
4
|
},
|
|
7
5
|
"sv": {
|
|
8
|
-
"expandSidebar": "Expandera sidopanel",
|
|
9
|
-
"collapseSidebar": "Minimera sidopanel",
|
|
10
6
|
"closePanel": "Stäng panel"
|
|
11
7
|
}
|
|
12
8
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
2
|
-
export type PanelBodyProps = HTMLAttributes<HTMLDivElement>;
|
|
3
|
-
export declare const PanelBody: import('react').ForwardRefExoticComponent<PanelBodyProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
1
|
+
import { DetailedHTMLProps, HTMLAttributes } from 'react';
|
|
2
|
+
export type PanelBodyProps = DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
3
|
+
export declare const PanelBody: import('react').ForwardRefExoticComponent<Omit<PanelBodyProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const usePanels: () => import('./PanelContext').PanelContextValue;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PanelBodyProps, PanelTitleProps } from '../panel';
|
|
2
|
+
export interface SidebarProps extends PanelBodyProps, Pick<PanelTitleProps, 'title'> {
|
|
3
|
+
isCollapsed?: boolean;
|
|
4
|
+
defaultCollapsed?: boolean;
|
|
5
|
+
onCollapseChange?: (isCollapsed: boolean) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const Sidebar: ({ children, className, title, ...props }: SidebarProps) => import("react/jsx-runtime").JSX.Element | null;
|
package/sidebar/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"en": {
|
|
3
|
+
"expandSidebar": "Expand sidebar",
|
|
4
|
+
"collapseSidebar": "Collapse sidebar"
|
|
5
|
+
},
|
|
6
|
+
"sv": {
|
|
7
|
+
"expandSidebar": "Expandera sidopanel",
|
|
8
|
+
"collapseSidebar": "Minimera sidopanel"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
;
|
|
12
|
+
|
|
13
|
+
export default _default;
|
package/assets/Panel.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._collapsePanel_5za0f_1{width:15rem;transition:width var(--midas-transition-duration-fast) ease-out}._collapsePanel_5za0f_1._collapsed_5za0f_5{width:80px}@media(max-width:640px){._collapsePanel_5za0f_1{display:none}}._panelHeader_5za0f_14{gap:0}._panelTitle_5za0f_18{font-size:var(--midas-typography-font-size-20);display:block}._panelBody_aouaw_1{background-color:var(--midas-background-base);box-sizing:border-box;padding:1rem}._panelHeader_11qv1_1{align-items:center;display:flex;justify-content:space-between}._panelTitle_w7y4m_1{display:block}._dismissPanel_11141_1{position:absolute!important;top:0;right:0;width:320px;height:100%;overflow:hidden}._dismissPanel_11141_1[data-promoting]{animation:_promote_11141_1 var(--midas-transition-duration-fast) ease-out}@media(prefers-reduced-motion:reduce){._dismissPanel_11141_1[data-promoting]{animation-duration:1ms}}._dismissPanel_11141_1[data-entering]{animation:_slide-horizontally_11141_1 var(--midas-transition-duration-fast)}._dismissPanel_11141_1[data-exiting]{animation:_slide-horizontally_11141_1 var(--midas-transition-duration-fast) reverse ease-in}@media(prefers-reduced-motion:reduce){._dismissPanel_11141_1[data-entering],._dismissPanel_11141_1[data-exiting]{animation-duration:1ms}}@media not (min-width:800px){._dismissPanel_11141_1{bottom:0;width:100%;height:25%;left:0;top:unset}._dismissPanel_11141_1[data-entering]{animation:_slide-vertically_11141_1 var(--midas-transition-duration-fast)}._dismissPanel_11141_1[data-exiting]{animation:_slide-vertically_11141_1 var(--midas-transition-duration-fast) reverse ease-in}}._panelTitle_11141_54{font-size:var(--midas-typography-font-size-20);display:block}@keyframes _promote_11141_1{0%{opacity:.7;transform:scale(.97)}to{opacity:1;transform:scale(1)}}@keyframes _slide-horizontally_11141_1{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes _slide-vertically_11141_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as e, jsxs as l, Fragment as v } from "react/jsx-runtime";
|
|
3
|
-
import { forwardRef as f } from "react";
|
|
4
|
-
import { composeRenderProps as d, ModalOverlay as b, Modal as y, Dialog as M } from "react-aria-components";
|
|
5
|
-
import { Button as h, DialogTrigger as w, Text as N, LogoContext as g, clsx as x } from "@midas-ds/components";
|
|
6
|
-
import { useControlledState as A } from "@react-stately/utils";
|
|
7
|
-
import { u as m } from "./useIsMobileDevice-D0iMVFPx.js";
|
|
8
|
-
import { M as D } from "./MobileMenuContext-Coj0sJ0N.js";
|
|
9
|
-
import { c as O } from "./createLucideIcon-CP-mMPfa.js";
|
|
10
|
-
import '../assets/Header.css';const H = "_headerActions_1rka5_1", P = {
|
|
11
|
-
headerActions: H
|
|
12
|
-
}, Q = ({ className: r, ...a }) => /* @__PURE__ */ e(
|
|
13
|
-
"div",
|
|
14
|
-
{
|
|
15
|
-
className: `${r} ${P.headerActions}`,
|
|
16
|
-
...a
|
|
17
|
-
}
|
|
18
|
-
), $ = "_label_1191f_1", k = {
|
|
19
|
-
label: $
|
|
20
|
-
}, j = f(
|
|
21
|
-
({ children: r, icon: a, ...s }, n) => (!r && !s["aria-label"] && process.env.NODE_ENV !== "production" && console.warn(
|
|
22
|
-
"Please provide an 'aria-label' for HeaderAction components that doesnt have a visible label (children)"
|
|
23
|
-
), /* @__PURE__ */ e(
|
|
24
|
-
h,
|
|
25
|
-
{
|
|
26
|
-
ref: n,
|
|
27
|
-
size: "medium",
|
|
28
|
-
variant: "tertiary",
|
|
29
|
-
...s,
|
|
30
|
-
children: d(r, (o) => /* @__PURE__ */ l(v, { children: [
|
|
31
|
-
a,
|
|
32
|
-
typeof o < "u" && /* @__PURE__ */ e("span", { className: k.label, children: o })
|
|
33
|
-
] }))
|
|
34
|
-
}
|
|
35
|
-
))
|
|
36
|
-
);
|
|
37
|
-
j.displayName = "HeaderAction";
|
|
38
|
-
const C = [
|
|
39
|
-
["path", { d: "M4 5h16", key: "1tepv9" }],
|
|
40
|
-
["path", { d: "M4 12h16", key: "1lakjw" }],
|
|
41
|
-
["path", { d: "M4 19h16", key: "1djgab" }]
|
|
42
|
-
], I = O("menu", C), z = "_overlay_12sw8_1", E = "_drawer_12sw8_19", L = "_header_12sw8_44", i = {
|
|
43
|
-
overlay: z,
|
|
44
|
-
drawer: E,
|
|
45
|
-
header: L
|
|
46
|
-
}, U = ({
|
|
47
|
-
children: r,
|
|
48
|
-
title: a,
|
|
49
|
-
isDrawerOpen: s,
|
|
50
|
-
defaultDrawerOpen: n = !1,
|
|
51
|
-
onDrawerOpenChange: o
|
|
52
|
-
}) => {
|
|
53
|
-
const p = m(), [_, c] = A(
|
|
54
|
-
s,
|
|
55
|
-
n,
|
|
56
|
-
o
|
|
57
|
-
), u = () => c((t) => !t);
|
|
58
|
-
return p ? /* @__PURE__ */ e(D.Provider, { value: {}, children: /* @__PURE__ */ l(w, { children: [
|
|
59
|
-
/* @__PURE__ */ e(
|
|
60
|
-
h,
|
|
61
|
-
{
|
|
62
|
-
icon: I,
|
|
63
|
-
variant: "icon",
|
|
64
|
-
onPress: u
|
|
65
|
-
}
|
|
66
|
-
),
|
|
67
|
-
/* @__PURE__ */ e(
|
|
68
|
-
b,
|
|
69
|
-
{
|
|
70
|
-
className: i.overlay,
|
|
71
|
-
isDismissable: !0,
|
|
72
|
-
isOpen: _,
|
|
73
|
-
onOpenChange: c,
|
|
74
|
-
children: d(r, (t) => /* @__PURE__ */ e(y, { className: i.drawer, children: /* @__PURE__ */ l(M, { children: [
|
|
75
|
-
a && /* @__PURE__ */ e(N, { className: i.header, children: a }),
|
|
76
|
-
t
|
|
77
|
-
] }) }))
|
|
78
|
-
}
|
|
79
|
-
)
|
|
80
|
-
] }) }) : null;
|
|
81
|
-
}, R = "_header_105ne_1", T = {
|
|
82
|
-
header: R
|
|
83
|
-
}, W = ({ className: r, ...a }) => {
|
|
84
|
-
const s = m();
|
|
85
|
-
return /* @__PURE__ */ e(g.Provider, { value: { size: s ? "x-small" : "large" }, children: /* @__PURE__ */ e(
|
|
86
|
-
"header",
|
|
87
|
-
{
|
|
88
|
-
className: x(r, T.header),
|
|
89
|
-
...a
|
|
90
|
-
}
|
|
91
|
-
) });
|
|
92
|
-
};
|
|
93
|
-
export {
|
|
94
|
-
W as H,
|
|
95
|
-
U as M,
|
|
96
|
-
j as a,
|
|
97
|
-
Q as b
|
|
98
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import '../assets/LayoutContent.css';const a = "_layout_4r2tn_1", s = {
|
|
3
|
-
layout: a
|
|
4
|
-
}, u = ({ className: t, ...o }) => /* @__PURE__ */ n(
|
|
5
|
-
"div",
|
|
6
|
-
{
|
|
7
|
-
className: `${t ?? ""} ${s.layout}`,
|
|
8
|
-
...o
|
|
9
|
-
}
|
|
10
|
-
), y = "_layoutContent_yqjxz_1", l = {
|
|
11
|
-
layoutContent: y
|
|
12
|
-
}, c = ({ className: t, ...o }) => /* @__PURE__ */ n(
|
|
13
|
-
"div",
|
|
14
|
-
{
|
|
15
|
-
className: `${t ?? ""} ${l.layoutContent}`,
|
|
16
|
-
...o
|
|
17
|
-
}
|
|
18
|
-
);
|
|
19
|
-
export {
|
|
20
|
-
u as L,
|
|
21
|
-
c as a
|
|
22
|
-
};
|
package/chunks/Main-Ce4U9_ce.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import '../assets/Main.css';const o = "_main_vtpiw_1", s = {
|
|
3
|
-
main: o
|
|
4
|
-
}, t = ({ className: n, ...a }) => /* @__PURE__ */ i(
|
|
5
|
-
"main",
|
|
6
|
-
{
|
|
7
|
-
className: [n, s.main].filter(Boolean).join(" "),
|
|
8
|
-
...a
|
|
9
|
-
}
|
|
10
|
-
);
|
|
11
|
-
export {
|
|
12
|
-
t as M
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import '../assets/Navbar.css';const s = "_navbar_18aqo_1", n = {
|
|
3
|
-
navbar: s
|
|
4
|
-
}, b = ({ className: a, ...o }) => /* @__PURE__ */ r(
|
|
5
|
-
"footer",
|
|
6
|
-
{
|
|
7
|
-
className: `${a ?? ""} ${n.navbar}`,
|
|
8
|
-
...o
|
|
9
|
-
}
|
|
10
|
-
);
|
|
11
|
-
export {
|
|
12
|
-
b as N
|
|
13
|
-
};
|