@ssa-ui-kit/core 2.6.0 → 2.7.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/CollapsibleNavBar/CollapsibleNavBarCustomIconSVG.d.ts +6 -0
- package/dist/components/CollapsibleNavBar/CollapsibleNavBarItemContext.d.ts +10 -0
- package/dist/components/CollapsibleNavBar/{CollapsibleNavBarBase.d.ts → components/CollapsibleNavBarBase.d.ts} +2 -3
- package/dist/components/CollapsibleNavBar/components/CollapsibleNavBarLink.d.ts +7 -0
- package/dist/components/CollapsibleNavBar/{CollapsibleNavBarList.d.ts → components/CollapsibleNavBarList.d.ts} +2 -3
- package/dist/components/CollapsibleNavBar/{CollapsibleNavBarWrapper.d.ts → components/CollapsibleNavBarWrapper.d.ts} +2 -3
- package/dist/components/CollapsibleNavBar/components/CollapsibleNavToggle.d.ts +3 -0
- package/dist/components/CollapsibleNavBar/{CollapsibleNavToggleWrapper.d.ts → components/CollapsibleNavToggleWrapper.d.ts} +1 -2
- package/dist/components/CollapsibleNavBar/{NavBarAccordionContent.d.ts → components/ItemWithSubmenu/AccordionContent.d.ts} +1 -1
- package/dist/components/CollapsibleNavBar/components/ItemWithSubmenu/AccordionContentItem.d.ts +8 -0
- package/dist/components/CollapsibleNavBar/{CollapsibleNavBarItem.d.ts → components/ItemWithSubmenu/CollapsibleNavBarItem.d.ts} +1 -2
- package/dist/components/CollapsibleNavBar/components/ItemWithSubmenu/ItemAccordionTitle.d.ts +9 -0
- package/dist/components/CollapsibleNavBar/{NavBarItemWithSubMenu.d.ts → components/ItemWithSubmenu/ItemWithSubMenu.d.ts} +2 -2
- package/dist/components/CollapsibleNavBar/components/ItemWithSubmenu/index.d.ts +5 -0
- package/dist/components/CollapsibleNavBar/components/ItemWithSubmenu/styles.d.ts +6 -0
- package/dist/components/CollapsibleNavBar/{NavBarItemWithoutSubMenu.d.ts → components/ItemWithoutSubmenu/ItemWithoutSubMenu.d.ts} +2 -2
- package/dist/components/CollapsibleNavBar/components/ItemWithoutSubmenu/index.d.ts +1 -0
- package/dist/components/CollapsibleNavBar/components/NavBarItem.d.ts +8 -0
- package/dist/components/CollapsibleNavBar/{TriggerIcon.d.ts → components/TriggerIcon.d.ts} +1 -1
- package/dist/components/CollapsibleNavBar/components/index.d.ts +12 -0
- package/dist/components/CollapsibleNavBar/index.d.ts +2 -0
- package/dist/components/CollapsibleNavBar/stories/CustomIcon.d.ts +1 -0
- package/dist/components/CollapsibleNavBar/styles.d.ts +0 -4
- package/dist/components/NavBar/types.d.ts +5 -2
- package/dist/index.js +327 -191
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/components/CollapsibleNavBar/CollapsibleNavBarLink.d.ts +0 -8
- package/dist/components/CollapsibleNavBar/CollapsibleNavToggle.d.ts +0 -4
- package/dist/components/DateRangePicker/helpers/ClassnameArray.d.ts +0 -3
- package/dist/components/DateRangePicker/helpers/index.d.ts +0 -1
- /package/dist/components/CollapsibleNavBar/{CollapsibleNavContentToggle.d.ts → components/CollapsibleNavContentToggle.d.ts} +0 -0
- /package/dist/components/CollapsibleNavBar/{NavBarPopover.d.ts → components/NavBarPopover.d.ts} +0 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface CustomIconSVGProps extends React.SVGProps<SVGSVGElement> {
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const CollapsibleNavBarCustomIconSVG: ({ className, css, children, ...rest }: CustomIconSVGProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type ContextType = {
|
|
2
|
+
isActive: boolean;
|
|
3
|
+
isHover: boolean;
|
|
4
|
+
};
|
|
5
|
+
export declare const CollapsibleNavBarItemContext: import("react").Context<ContextType>;
|
|
6
|
+
export declare const CollapsibleNavBarItemProvider: ({ children, isActive, isHover, }: {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
} & ContextType) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const useCollapsibleNavBarItemContext: () => ContextType;
|
|
10
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Theme } from '@emotion/react';
|
|
2
|
-
import { CollapsibleNavBarExtendedProps } from '
|
|
3
|
-
declare const CollapsibleNavBarBase: import("@emotion/styled").StyledComponent<{
|
|
2
|
+
import { CollapsibleNavBarExtendedProps } from '../types';
|
|
3
|
+
export declare const CollapsibleNavBarBase: import("@emotion/styled").StyledComponent<{
|
|
4
4
|
theme?: Theme;
|
|
5
5
|
as?: React.ElementType;
|
|
6
6
|
} & import("react").ClassAttributes<HTMLElement> & import("react").HTMLAttributes<HTMLElement> & {
|
|
@@ -8,4 +8,3 @@ declare const CollapsibleNavBarBase: import("@emotion/styled").StyledComponent<{
|
|
|
8
8
|
} & {
|
|
9
9
|
'data-theme': CollapsibleNavBarExtendedProps["theme"];
|
|
10
10
|
}, {}, {}>;
|
|
11
|
-
export default CollapsibleNavBarBase;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CollapsibleNavBarExtendedProps } from '../types';
|
|
2
|
+
export declare const CollapsibleNavBarLink: import("@emotion/styled").StyledComponent<import("react-router-dom").NavLinkProps & import("react").RefAttributes<HTMLAnchorElement> & {
|
|
3
|
+
theme?: import("@emotion/react").Theme;
|
|
4
|
+
} & {
|
|
5
|
+
navbartheme: CollapsibleNavBarExtendedProps["theme"];
|
|
6
|
+
"data-customicon"?: boolean;
|
|
7
|
+
}, {}, {}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CollapsibleNavBarExtendedProps } from '
|
|
2
|
-
declare const CollapsibleNavBarList: import("@emotion/styled").StyledComponent<{
|
|
1
|
+
import { CollapsibleNavBarExtendedProps } from '../types';
|
|
2
|
+
export declare const CollapsibleNavBarList: import("@emotion/styled").StyledComponent<{
|
|
3
3
|
theme?: import("@emotion/react").Theme;
|
|
4
4
|
as?: React.ElementType;
|
|
5
5
|
} & import("react").ClassAttributes<HTMLUListElement> & import("react").HTMLAttributes<HTMLUListElement> & {
|
|
@@ -7,4 +7,3 @@ declare const CollapsibleNavBarList: import("@emotion/styled").StyledComponent<{
|
|
|
7
7
|
} & {
|
|
8
8
|
navBarTheme?: CollapsibleNavBarExtendedProps["theme"];
|
|
9
9
|
}, {}, {}>;
|
|
10
|
-
export default CollapsibleNavBarList;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CollapsibleNavBarExtendedProps } from '
|
|
2
|
-
declare const CollapsibleNavBarWrapper: import("@emotion/styled").StyledComponent<{
|
|
1
|
+
import { CollapsibleNavBarExtendedProps } from '../types';
|
|
2
|
+
export declare const CollapsibleNavBarWrapper: import("@emotion/styled").StyledComponent<{
|
|
3
3
|
theme?: import("@emotion/react").Theme;
|
|
4
4
|
as?: React.ElementType;
|
|
5
5
|
} & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
@@ -7,4 +7,3 @@ declare const CollapsibleNavBarWrapper: import("@emotion/styled").StyledComponen
|
|
|
7
7
|
} & {
|
|
8
8
|
navBarTheme?: CollapsibleNavBarExtendedProps["theme"];
|
|
9
9
|
}, {}, {}>;
|
|
10
|
-
export default CollapsibleNavBarWrapper;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
declare const CollapsibleNavToggleWrapper: import("@emotion/styled").StyledComponent<{
|
|
1
|
+
export declare const CollapsibleNavToggleWrapper: import("@emotion/styled").StyledComponent<{
|
|
2
2
|
theme?: import("@emotion/react").Theme;
|
|
3
3
|
as?: React.ElementType;
|
|
4
4
|
} & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
5
5
|
theme?: import("@emotion/react").Theme;
|
|
6
6
|
}, {}, {}>;
|
|
7
|
-
export default CollapsibleNavToggleWrapper;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RenderContentProps } from '
|
|
1
|
+
import { RenderContentProps } from '../../../AccordionGroup';
|
|
2
2
|
export declare const NavBarAccordionContent: ({ items, accordionUniqueName, prefix, isPopover, onClick, ...rest }: RenderContentProps & {
|
|
3
3
|
items: Array<{
|
|
4
4
|
path: string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
declare const CollapsibleNavBarItem: import("@emotion/styled").StyledComponent<{
|
|
1
|
+
export declare const CollapsibleNavBarItem: import("@emotion/styled").StyledComponent<{
|
|
2
2
|
theme?: import("@emotion/react").Theme;
|
|
3
3
|
as?: React.ElementType;
|
|
4
4
|
} & import("react").ClassAttributes<HTMLLIElement> & import("react").LiHTMLAttributes<HTMLLIElement> & {
|
|
5
5
|
theme?: import("@emotion/react").Theme;
|
|
6
6
|
}, {}, {}>;
|
|
7
|
-
export default CollapsibleNavBarItem;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PathPattern } from 'react-router-dom';
|
|
2
|
+
import { AccordionProps } from '../../../AccordionGroup';
|
|
3
|
+
import { CollapsibleNavBarGroup } from '../../types';
|
|
4
|
+
export declare const ItemAccordionTitle: ({ data, item, accordionUniqueName, useMatchPattern, }: {
|
|
5
|
+
data: Parameters<AccordionProps["renderTitle"]>[0];
|
|
6
|
+
item: CollapsibleNavBarGroup;
|
|
7
|
+
accordionUniqueName: string;
|
|
8
|
+
useMatchPattern?: (prefix: string) => string | PathPattern<string>;
|
|
9
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PathPattern } from 'react-router-dom';
|
|
2
|
-
import { CollapsibleNavBarGroup } from '
|
|
3
|
-
export declare const
|
|
2
|
+
import { CollapsibleNavBarGroup } from '../../types';
|
|
3
|
+
export declare const Item: ({ item, useMatchPattern, onClick, }: {
|
|
4
4
|
item: CollapsibleNavBarGroup;
|
|
5
5
|
useMatchPattern?: (prefix: string) => string | PathPattern<string>;
|
|
6
6
|
onClick?: () => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Theme } from '@emotion/react';
|
|
2
|
+
import { CollapsibleNavBarExtendedProps } from '../../types';
|
|
3
|
+
export declare const AccordionTitleWrapper: (navBarTheme: CollapsibleNavBarExtendedProps["theme"]) => (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
4
|
+
export declare const AccordionTitle: (navBarTheme: CollapsibleNavBarExtendedProps["theme"]) => (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
5
|
+
export declare const AccordionContent: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
6
|
+
export declare const AccordionContentPopover: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as T from '
|
|
2
|
-
export declare const
|
|
1
|
+
import * as T from '../../types';
|
|
2
|
+
export declare const Item: ({ item, onClick, }: {
|
|
3
3
|
item: T.CollapsibleNavBarItem;
|
|
4
4
|
onClick?: () => void;
|
|
5
5
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ItemWithoutSubMenu';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CollapsibleNavBarExtendedProps } from '../types';
|
|
2
|
+
type NavBarItemProps = {
|
|
3
|
+
item: CollapsibleNavBarExtendedProps['items'][0];
|
|
4
|
+
useMatchPattern?: CollapsibleNavBarExtendedProps['useMatchPattern'];
|
|
5
|
+
onClick: () => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const NavBarItem: ({ item, useMatchPattern, onClick, }: NavBarItemProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * as ItemWithSubMenu from './ItemWithSubmenu';
|
|
2
|
+
export * as ItemWithoutSubmenu from './ItemWithoutSubmenu';
|
|
3
|
+
export * from './CollapsibleNavBarBase';
|
|
4
|
+
export * from './CollapsibleNavBarLink';
|
|
5
|
+
export * from './CollapsibleNavBarList';
|
|
6
|
+
export * from './CollapsibleNavBarWrapper';
|
|
7
|
+
export * from './CollapsibleNavContentToggle';
|
|
8
|
+
export * from './CollapsibleNavToggle';
|
|
9
|
+
export * from './CollapsibleNavToggleWrapper';
|
|
10
|
+
export * from './NavBarItem';
|
|
11
|
+
export * from './NavBarPopover';
|
|
12
|
+
export * from './TriggerIcon';
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import { Theme } from '@emotion/react';
|
|
2
2
|
import { CollapsibleNavBarExtendedProps } from './types';
|
|
3
|
-
export declare const AccordionTitleWrapper: (navBarTheme: CollapsibleNavBarExtendedProps["theme"]) => (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
4
|
-
export declare const AccordionTitle: (navBarTheme: CollapsibleNavBarExtendedProps["theme"]) => (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
5
|
-
export declare const AccordionContent: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
6
|
-
export declare const AccordionContentPopover: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
7
3
|
export declare const LogoWrapper: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
8
4
|
export declare const ContentToggle: (navBarTheme: CollapsibleNavBarExtendedProps["theme"], isChecked: boolean) => (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
@@ -5,8 +5,11 @@ export interface NavBarProps {
|
|
|
5
5
|
iconName: keyof MapIconsType;
|
|
6
6
|
}>;
|
|
7
7
|
}
|
|
8
|
+
export type CustomIconProps = (props: {
|
|
9
|
+
className?: string;
|
|
10
|
+
}) => JSX.Element;
|
|
8
11
|
export type NavBarExtendedItem = {
|
|
9
|
-
CustomIcon?:
|
|
12
|
+
CustomIcon?: CustomIconProps;
|
|
10
13
|
path: string;
|
|
11
14
|
iconName: keyof MapIconsType;
|
|
12
15
|
title: string;
|
|
@@ -16,7 +19,7 @@ export type NavBarExtendedSubItem<T extends object = object> = {
|
|
|
16
19
|
title: string;
|
|
17
20
|
} & T;
|
|
18
21
|
export interface NavBarExtendedGroup<T extends NavBarExtendedSubItem = NavBarExtendedSubItem> {
|
|
19
|
-
CustomIcon?:
|
|
22
|
+
CustomIcon?: CustomIconProps;
|
|
20
23
|
prefix?: string;
|
|
21
24
|
iconName: keyof MapIconsType;
|
|
22
25
|
title: string;
|