@itcase/ui 1.3.2 → 1.3.4
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/{Button-CX3x7Z6Q.js → Button-BVQet4JC.js} +2 -2
- package/dist/{Button-P0c3lMg1.js → Button-DHQeSUSA.js} +2 -2
- package/dist/{DropdownItem-DaN20LFe.js → DropdownItem-DXz1l415.js} +1 -1
- package/dist/{DropdownItem-BuMJdUAk.js → DropdownItem-DxGxdjUr.js} +1 -1
- package/dist/{Icon-hqYZoh4h.js → Icon-3VtRLW-J.js} +1 -1
- package/dist/{Icon-CZrDqG76.js → Icon-C9FlOMr9.js} +1 -1
- package/dist/{Link-DGj-cNje.js → Link-C2dn5VUy.js} +9 -1
- package/dist/{Link-_A9ZfNln.js → Link-CPzqprR1.js} +9 -1
- package/dist/{MenuItem-Dokk3UXj.js → MenuItem-Cw2Lry6S.js} +1 -1
- package/dist/{MenuItem-LyqjzhjP.js → MenuItem-DEzP_HLq.js} +1 -1
- package/dist/{Overlay-HlYxCGtp.js → Overlay-CCx7yAPc.js} +16 -2
- package/dist/{Overlay-Dy6JQwJn.js → Overlay-DcGWchjp.js} +15 -3
- package/dist/cjs/components/Accordion.js +33 -6
- package/dist/cjs/components/Avatar.js +2 -2
- package/dist/cjs/components/Breadcrumbs.js +2 -2
- package/dist/cjs/components/Button.js +3 -3
- package/dist/cjs/components/Cell.js +18 -4
- package/dist/cjs/components/Choice.js +2 -2
- package/dist/cjs/components/CookiesWarning.js +3 -3
- package/dist/cjs/components/DatePicker.js +3 -3
- package/dist/cjs/components/Drawer.js +24 -1
- package/dist/cjs/components/Dropdown.js +2 -2
- package/dist/cjs/components/Icon.js +2 -2
- package/dist/cjs/components/InputPassword.js +2 -2
- package/dist/cjs/components/Link.js +5 -2
- package/dist/cjs/components/List.js +1 -1
- package/dist/cjs/components/Logo.js +1 -1
- package/dist/cjs/components/Menu.js +18 -4
- package/dist/cjs/components/MenuItem.js +2 -2
- package/dist/cjs/components/Modal.js +1 -1
- package/dist/cjs/components/Overlay.js +3 -1
- package/dist/cjs/components/Pagination.js +3 -3
- package/dist/cjs/components/Response.js +3 -3
- package/dist/cjs/components/Search.js +2 -2
- package/dist/cjs/components/Select.js +2 -2
- package/dist/cjs/components/SiteMenu.js +2 -2
- package/dist/cjs/components/Tab.js +1 -1
- package/dist/components/Accordion.js +30 -7
- package/dist/components/Avatar.js +2 -2
- package/dist/components/Breadcrumbs.js +2 -2
- package/dist/components/Button.js +3 -3
- package/dist/components/Cell.js +17 -5
- package/dist/components/Choice.js +2 -2
- package/dist/components/CookiesWarning.js +3 -3
- package/dist/components/DatePicker.js +3 -3
- package/dist/components/Drawer.js +23 -2
- package/dist/components/Dropdown.js +2 -2
- package/dist/components/Icon.js +2 -2
- package/dist/components/InputPassword.js +2 -2
- package/dist/components/Link.js +7 -1
- package/dist/components/List.js +1 -1
- package/dist/components/Logo.js +1 -1
- package/dist/components/Menu.js +17 -5
- package/dist/components/MenuItem.js +2 -2
- package/dist/components/Modal.js +1 -1
- package/dist/components/Overlay.js +1 -1
- package/dist/components/Pagination.js +3 -3
- package/dist/components/Response.js +3 -3
- package/dist/components/Search.js +2 -2
- package/dist/components/Select.js +2 -2
- package/dist/components/SiteMenu.js +2 -2
- package/dist/components/Tab.js +1 -1
- package/dist/css/components/Image/Image.css +30 -0
- package/dist/types/components/Accordion/Accordion.appearance.d.ts +3 -0
- package/dist/types/components/Accordion/Accordion.d.ts +3 -2
- package/dist/types/components/Accordion/Accordion.interface.d.ts +24 -2
- package/dist/types/components/Accordion/AccordionItem.d.ts +3 -2
- package/dist/types/components/Accordion/index.d.ts +4 -3
- package/dist/types/components/Cell/Cell.appearance.d.ts +2 -0
- package/dist/types/components/Cell/Cell.d.ts +3 -2
- package/dist/types/components/Cell/Cell.interface.d.ts +12 -1
- package/dist/types/components/Cell/index.d.ts +2 -1
- package/dist/types/components/Drawer/Drawer.appearance.d.ts +2 -0
- package/dist/types/components/Drawer/Drawer.d.ts +3 -2
- package/dist/types/components/Drawer/Drawer.interface.d.ts +15 -1
- package/dist/types/components/Drawer/index.d.ts +2 -1
- package/dist/types/components/Link/Link.appearance.d.ts +2 -0
- package/dist/types/components/Link/Link.interface.d.ts +7 -0
- package/dist/types/components/Link/index.d.ts +1 -0
- package/dist/types/components/Menu/Menu.appearance.d.ts +2 -0
- package/dist/types/components/Menu/Menu.d.ts +3 -2
- package/dist/types/components/Menu/Menu.interface.d.ts +15 -1
- package/dist/types/components/Menu/index.d.ts +2 -1
- package/dist/types/components/Overlay/Overlay.appearance.d.ts +2 -0
- package/dist/types/components/Overlay/Overlay.d.ts +3 -2
- package/dist/types/components/Overlay/Overlay.interface.d.ts +14 -1
- package/dist/types/components/Overlay/index.d.ts +2 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import React, { useCallback } from 'react';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles.js';
|
|
6
|
-
import { I as Icon } from '../Icon-
|
|
6
|
+
import { I as Icon } from '../Icon-C9FlOMr9.js';
|
|
7
7
|
import { T as Text } from '../Text-JayJa3hj.js';
|
|
8
8
|
import { S as Scrollbar } from '../Scrollbar-Bo7z7ELm.js';
|
|
9
9
|
import '../tslib.es6-5FtW-kfi.js';
|
|
@@ -16,7 +16,7 @@ import 'lodash/maxBy';
|
|
|
16
16
|
import 'lodash/upperFirst';
|
|
17
17
|
import '../hooks/styleAttributes.js';
|
|
18
18
|
import 'react-inlinesvg';
|
|
19
|
-
import '../Link-
|
|
19
|
+
import '../Link-CPzqprR1.js';
|
|
20
20
|
import '../Tooltip-1Jbub0K6.js';
|
|
21
21
|
import '../Title-CHgrIarR.js';
|
|
22
22
|
import 'react-scrollbars-custom';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __assign } from '../tslib.es6-5FtW-kfi.js';
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import Select, { components } from 'react-select';
|
|
4
|
-
import { I as Icon } from '../Icon-
|
|
4
|
+
import { I as Icon } from '../Icon-C9FlOMr9.js';
|
|
5
5
|
import React, { useRef, useCallback, useEffect, useMemo } from 'react';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import CreatableSelect from 'react-select/creatable';
|
|
@@ -19,7 +19,7 @@ import '../context/UIContext.js';
|
|
|
19
19
|
import '../hooks/useMediaQueries.js';
|
|
20
20
|
import 'react-responsive';
|
|
21
21
|
import '../hooks/styleAttributes.js';
|
|
22
|
-
import '../Link-
|
|
22
|
+
import '../Link-CPzqprR1.js';
|
|
23
23
|
import '../Tooltip-1Jbub0K6.js';
|
|
24
24
|
import '../Title-CHgrIarR.js';
|
|
25
25
|
import 'lodash/castArray';
|
|
@@ -3,7 +3,7 @@ import { useCallback } from 'react';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useSiteMenuContext } from '../context/UIContext.js';
|
|
5
5
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
6
|
-
import { I as Icon } from '../Icon-
|
|
6
|
+
import { I as Icon } from '../Icon-C9FlOMr9.js';
|
|
7
7
|
import { T as Text } from '../Text-JayJa3hj.js';
|
|
8
8
|
import '../hooks/useMediaQueries.js';
|
|
9
9
|
import 'react-responsive';
|
|
@@ -15,7 +15,7 @@ import '../hooks/useStyles.js';
|
|
|
15
15
|
import 'lodash/maxBy';
|
|
16
16
|
import 'lodash/upperFirst';
|
|
17
17
|
import '../hooks/styleAttributes.js';
|
|
18
|
-
import '../Link-
|
|
18
|
+
import '../Link-CPzqprR1.js';
|
|
19
19
|
import '../Tooltip-1Jbub0K6.js';
|
|
20
20
|
import '../Title-CHgrIarR.js';
|
|
21
21
|
|
package/dist/components/Tab.js
CHANGED
|
@@ -5,7 +5,7 @@ import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGene
|
|
|
5
5
|
import { useStyles } from '../hooks/useStyles.js';
|
|
6
6
|
import { B as Badge } from '../Badge-DMRagi5O.js';
|
|
7
7
|
import { D as Divider } from '../Divider-DBvDCUqP.js';
|
|
8
|
-
import { L as Link } from '../Link-
|
|
8
|
+
import { L as Link } from '../Link-CPzqprR1.js';
|
|
9
9
|
import { T as Text } from '../Text-JayJa3hj.js';
|
|
10
10
|
import '../tslib.es6-5FtW-kfi.js';
|
|
11
11
|
import 'lodash/camelCase';
|
|
@@ -8,6 +8,13 @@
|
|
|
8
8
|
}
|
|
9
9
|
.image {
|
|
10
10
|
&_horizontal-align {
|
|
11
|
+
&_left {
|
|
12
|
+
^^&__wrapper {
|
|
13
|
+
width: 100%;
|
|
14
|
+
display: flex;
|
|
15
|
+
justify-content: flex-start;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
11
18
|
&_center {
|
|
12
19
|
^^&__wrapper {
|
|
13
20
|
width: 100%;
|
|
@@ -15,6 +22,13 @@
|
|
|
15
22
|
justify-content: center;
|
|
16
23
|
}
|
|
17
24
|
}
|
|
25
|
+
&_right {
|
|
26
|
+
^^&__wrapper {
|
|
27
|
+
width: 100%;
|
|
28
|
+
display: flex;
|
|
29
|
+
justify-content: flex-end;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
18
32
|
}
|
|
19
33
|
}
|
|
20
34
|
.image {
|
|
@@ -46,6 +60,7 @@
|
|
|
46
60
|
&_resize-mode {
|
|
47
61
|
&_cover {
|
|
48
62
|
> ^^&__wrapper {
|
|
63
|
+
height: 100%;
|
|
49
64
|
& > ^^^&__item {
|
|
50
65
|
width: 100%;
|
|
51
66
|
height: 100%;
|
|
@@ -55,6 +70,7 @@
|
|
|
55
70
|
}
|
|
56
71
|
&_contain {
|
|
57
72
|
> ^^&__wrapper {
|
|
73
|
+
height: 100%;
|
|
58
74
|
& > ^^^&__item {
|
|
59
75
|
width: 100%;
|
|
60
76
|
height: 100%;
|
|
@@ -121,6 +137,13 @@
|
|
|
121
137
|
}
|
|
122
138
|
.image {
|
|
123
139
|
&_vertical-align {
|
|
140
|
+
&_top {
|
|
141
|
+
^^&__wrapper {
|
|
142
|
+
height: 100%;
|
|
143
|
+
display: flex;
|
|
144
|
+
align-items: flex-start;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
124
147
|
&_center {
|
|
125
148
|
^^&__wrapper {
|
|
126
149
|
height: 100%;
|
|
@@ -128,5 +151,12 @@
|
|
|
128
151
|
align-items: center;
|
|
129
152
|
}
|
|
130
153
|
}
|
|
154
|
+
&_bottom {
|
|
155
|
+
^^&__wrapper {
|
|
156
|
+
height: 100%;
|
|
157
|
+
display: flex;
|
|
158
|
+
align-items: flex-end;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
131
161
|
}
|
|
132
162
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import type { iAccordionProps } from './Accordion.interface';
|
|
1
|
+
import type { iAccordionConfig, iAccordionProps } from './Accordion.interface';
|
|
2
|
+
declare const accordionConfig: iAccordionConfig;
|
|
2
3
|
declare function Accordion(props: iAccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export { Accordion };
|
|
4
|
+
export { Accordion, accordionConfig };
|
|
@@ -1,14 +1,35 @@
|
|
|
1
1
|
import type { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { tAppearanceKeysDefault } from 'types/componentProps/appearanceKeys';
|
|
2
3
|
import type { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
3
4
|
import type { tBorderColorProps, tDirectionProps, tFillHoverProps, tFillProps, tHeightProps, tItemColorProps, tShapeProps, tSizeProps, tTextColorProps, tTextWeightProps, tWidthProps } from '../../types';
|
|
5
|
+
export interface iAccordionThemeColor {
|
|
6
|
+
}
|
|
7
|
+
export interface iAccordionItemThemeColor {
|
|
8
|
+
}
|
|
9
|
+
type tAppearanceKeys = tAppearanceKeysDefault & {};
|
|
10
|
+
export type accordionAppearanceType = {
|
|
11
|
+
[key in tAppearanceKeys]?: iAccordionThemeColor;
|
|
12
|
+
};
|
|
13
|
+
export type accordionItemAppearanceType = {
|
|
14
|
+
[key in tAppearanceKeys]?: iAccordionItemThemeColor;
|
|
15
|
+
};
|
|
16
|
+
export interface iAccordionConfig {
|
|
17
|
+
appearance: accordionAppearanceType | undefined;
|
|
18
|
+
setAppearance: (newComponent: accordionAppearanceType) => void;
|
|
19
|
+
}
|
|
20
|
+
export interface iAccordionItemConfig {
|
|
21
|
+
appearance: accordionItemAppearanceType | undefined;
|
|
22
|
+
setAppearance: (newComponent: accordionItemAppearanceType) => void;
|
|
23
|
+
}
|
|
4
24
|
interface iAccordionItemEventData {
|
|
5
25
|
id: number | string;
|
|
6
26
|
content?: ReactNode;
|
|
7
27
|
title: string;
|
|
8
28
|
isExpanded: boolean;
|
|
9
29
|
}
|
|
10
|
-
interface iAccordionProps extends iStyleAttributes {
|
|
30
|
+
interface iAccordionProps extends iAccordionThemeColor, iStyleAttributes {
|
|
11
31
|
[key: number | string | symbol]: any;
|
|
32
|
+
appearance?: tAppearanceKeys;
|
|
12
33
|
borderColor?: tBorderColorProps;
|
|
13
34
|
children?: Element | React.ReactNode;
|
|
14
35
|
className?: string;
|
|
@@ -27,10 +48,11 @@ interface iAccordionProps extends iStyleAttributes {
|
|
|
27
48
|
isMultiple?: boolean;
|
|
28
49
|
onClickItem?: (T: iAccordionItemEventData) => void;
|
|
29
50
|
}
|
|
30
|
-
interface iAccordionItemProps extends iStyleAttributes {
|
|
51
|
+
interface iAccordionItemProps extends iAccordionItemThemeColor, iStyleAttributes {
|
|
31
52
|
id: number | string;
|
|
32
53
|
[key: number | string | symbol]: any;
|
|
33
54
|
afterContent?: ReactNode;
|
|
55
|
+
appearance?: tAppearanceKeys;
|
|
34
56
|
beforeContent?: ReactNode;
|
|
35
57
|
borderColor?: tBorderColorProps;
|
|
36
58
|
children?: ReactNode;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import type { iAccordionItemProps } from './Accordion.interface';
|
|
1
|
+
import type { iAccordionItemConfig, iAccordionItemProps } from './Accordion.interface';
|
|
2
|
+
declare const accordionItemConfig: iAccordionItemConfig;
|
|
2
3
|
declare function AccordionItem(props: iAccordionItemProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export { AccordionItem };
|
|
4
|
+
export { AccordionItem, accordionItemConfig };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { Accordion } from './Accordion';
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { Accordion, accordionConfig } from './Accordion';
|
|
2
|
+
import { accordionAppearance, accordionItemAppearance } from './Accordion.appearance';
|
|
3
|
+
import { AccordionItem, accordionItemConfig } from './AccordionItem';
|
|
4
|
+
export { Accordion, AccordionItem, accordionConfig, accordionItemConfig, accordionAppearance, accordionItemAppearance, };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import type { iCellProps } from './Cell.interface';
|
|
1
|
+
import type { iCellConfig, iCellProps } from './Cell.interface';
|
|
2
|
+
declare const cellConfig: iCellConfig;
|
|
2
3
|
declare function Cell(props: iCellProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export { Cell };
|
|
4
|
+
export { Cell, cellConfig };
|
|
@@ -2,10 +2,21 @@ import { ElementType, ReactNode } from 'react';
|
|
|
2
2
|
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
3
3
|
import { iconFillSizePropsType, tDirectionProps, tFillProps, tItemColorProps, tShapeProps, tSizeProps, tTextAlignProps, tTextColorProps, tTextSizeProps, tTextWeightProps, tTextWrapProps } from '../../types';
|
|
4
4
|
import { tAppearanceKeysDefault } from '../../types/componentProps/appearanceKeys';
|
|
5
|
+
export interface iCellThemeColor {
|
|
6
|
+
}
|
|
5
7
|
type tAppearanceKeys = tAppearanceKeysDefault & {};
|
|
6
|
-
export
|
|
8
|
+
export type cellAppearanceType = {
|
|
9
|
+
[key in tAppearanceKeys]?: iCellThemeColor;
|
|
10
|
+
};
|
|
11
|
+
export interface iCellConfig {
|
|
12
|
+
[key: number | string | symbol]: any;
|
|
13
|
+
appearance: cellAppearanceType | undefined;
|
|
14
|
+
setAppearance: (newComponent: cellAppearanceType) => void;
|
|
15
|
+
}
|
|
16
|
+
export interface iCellProps extends iCellThemeColor, iStyleAttributes {
|
|
7
17
|
[key: number | string | symbol]: any;
|
|
8
18
|
after?: ReactNode;
|
|
19
|
+
appearance?: tAppearanceKeys;
|
|
9
20
|
before?: ReactNode;
|
|
10
21
|
className?: string;
|
|
11
22
|
direction?: tDirectionProps;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { Cell } from './Cell';
|
|
1
|
+
export { Cell, cellConfig } from './Cell';
|
|
2
|
+
export { cellAppearance } from './Cell.appearance';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import type { iDrawerProps } from './Drawer.interface';
|
|
1
|
+
import type { iDrawerConfig, iDrawerProps } from './Drawer.interface';
|
|
2
|
+
declare const drawerConfig: iDrawerConfig;
|
|
2
3
|
declare function Drawer(props: iDrawerProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export { Drawer };
|
|
4
|
+
export { Drawer, drawerConfig };
|
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
+
import { tAppearanceKeysDefault } from 'types/componentProps/appearanceKeys';
|
|
2
3
|
import type { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
3
|
-
interface
|
|
4
|
+
export interface iDrawerThemeColor {
|
|
5
|
+
}
|
|
6
|
+
type tAppearanceKeys = tAppearanceKeysDefault & {};
|
|
7
|
+
export type drawerAppearanceType = {
|
|
8
|
+
[key in tAppearanceKeys]?: iDrawerThemeColor;
|
|
9
|
+
};
|
|
10
|
+
export interface iDrawerConfig {
|
|
11
|
+
[key: number | string | symbol]: any;
|
|
12
|
+
appearance: drawerAppearanceType | undefined;
|
|
13
|
+
setAppearance: (newComponent: drawerAppearanceType) => void;
|
|
14
|
+
}
|
|
15
|
+
interface iDrawerProps extends iDrawerThemeColor, iStyleAttributes {
|
|
16
|
+
[key: number | string | symbol]: any;
|
|
4
17
|
after?: ReactNode;
|
|
18
|
+
appearance?: tAppearanceKeys;
|
|
5
19
|
before?: ReactNode;
|
|
6
20
|
children?: ReactNode;
|
|
7
21
|
className?: string;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { Drawer } from './Drawer';
|
|
1
|
+
export { Drawer, drawerConfig } from './Drawer';
|
|
2
|
+
export { drawerAppearance } from './Drawer.appearance';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ElementType, ReactNode } from 'react';
|
|
2
|
+
import { tAppearanceKeysDefault } from 'types/componentProps/appearanceKeys';
|
|
2
3
|
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
3
4
|
import { tDirectionProps, tFillProps, tSizeProps, tTextColorHoverProps, tTextColorProps, tTextGradientProps, tTextStyleProps, tTextWeightProps, tUnderlineProps } from '../../types';
|
|
4
5
|
export interface iLinkThemeColor {
|
|
@@ -23,6 +24,10 @@ export interface iLinkThemeColor {
|
|
|
23
24
|
textWeightMobile?: tTextWeightProps;
|
|
24
25
|
textWeightTablet?: tTextWeightProps;
|
|
25
26
|
}
|
|
27
|
+
type tAppearanceKeys = tAppearanceKeysDefault & {};
|
|
28
|
+
export type linkAppearanceType = {
|
|
29
|
+
[key in tAppearanceKeys]?: iLinkThemeColor;
|
|
30
|
+
};
|
|
26
31
|
export interface iLinkConfig {
|
|
27
32
|
LinkComponent: ElementType | undefined;
|
|
28
33
|
setLinkComponent: (LinkComponent: ElementType) => void;
|
|
@@ -30,6 +35,7 @@ export interface iLinkConfig {
|
|
|
30
35
|
export interface iLinkProps extends iLinkThemeColor, iStyleAttributes {
|
|
31
36
|
[key: number | string | symbol]: any;
|
|
32
37
|
after?: ReactNode;
|
|
38
|
+
appearance?: tAppearanceKeys;
|
|
33
39
|
before?: ReactNode;
|
|
34
40
|
children?: ReactNode;
|
|
35
41
|
className?: string;
|
|
@@ -60,3 +66,4 @@ export interface iLinkWrapperProps extends iLinkThemeColor, iStyleAttributes {
|
|
|
60
66
|
onClick?: () => void;
|
|
61
67
|
onMouseDown?: () => void;
|
|
62
68
|
}
|
|
69
|
+
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import type { iMenuProps } from './Menu.interface';
|
|
1
|
+
import type { iMenuConfig, iMenuProps } from './Menu.interface';
|
|
2
|
+
declare const menuConfig: iMenuConfig;
|
|
2
3
|
declare function Menu(props: iMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
declare namespace Menu {
|
|
4
5
|
var defaultProps: {
|
|
5
6
|
direction: string;
|
|
6
7
|
};
|
|
7
8
|
}
|
|
8
|
-
export { Menu };
|
|
9
|
+
export { Menu, menuConfig };
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { tAppearanceKeysDefault } from 'types/componentProps/appearanceKeys';
|
|
2
3
|
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
3
4
|
import { flexGrowPropsType, tDirectionProps, tWidthProps } from '../../types';
|
|
4
|
-
export interface
|
|
5
|
+
export interface iMenuThemeColor {
|
|
6
|
+
}
|
|
7
|
+
type tAppearanceKeys = tAppearanceKeysDefault & {};
|
|
8
|
+
export type menuAppearanceType = {
|
|
9
|
+
[key in tAppearanceKeys]?: iMenuThemeColor;
|
|
10
|
+
};
|
|
11
|
+
export interface iMenuConfig {
|
|
12
|
+
[key: number | string | symbol]: any;
|
|
13
|
+
appearance: menuAppearanceType | undefined;
|
|
14
|
+
setAppearance: (newComponent: menuAppearanceType) => void;
|
|
15
|
+
}
|
|
16
|
+
export interface iMenuProps extends iMenuThemeColor, iStyleAttributes {
|
|
5
17
|
[key: number | string | symbol]: any;
|
|
6
18
|
after?: ReactNode;
|
|
19
|
+
appearance?: tAppearanceKeys;
|
|
7
20
|
before?: ReactNode;
|
|
8
21
|
children?: ReactNode;
|
|
9
22
|
className?: string;
|
|
@@ -19,3 +32,4 @@ export interface iMenuProps extends iStyleAttributes {
|
|
|
19
32
|
width?: tWidthProps;
|
|
20
33
|
onClickItem?: () => void;
|
|
21
34
|
}
|
|
35
|
+
export {};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { Menu } from './Menu';
|
|
1
|
+
export { Menu, menuConfig } from './Menu';
|
|
2
|
+
export { menuAppearance } from './Menu.appearance';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import type { iOverlayProps } from './Overlay.interface';
|
|
1
|
+
import type { iOverlayConfig, iOverlayProps } from './Overlay.interface';
|
|
2
|
+
declare const overlayConfig: iOverlayConfig;
|
|
2
3
|
declare function Overlay(props: iOverlayProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export { Overlay };
|
|
4
|
+
export { Overlay, overlayConfig };
|
|
@@ -1,7 +1,20 @@
|
|
|
1
|
+
import { tAppearanceKeysDefault } from 'types/componentProps/appearanceKeys';
|
|
1
2
|
import type { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
2
3
|
import type { tFillGradientProps, tFillProps } from '../../types';
|
|
3
|
-
interface
|
|
4
|
+
export interface iOverlayThemeColor {
|
|
5
|
+
}
|
|
6
|
+
type tAppearanceKeys = tAppearanceKeysDefault & {};
|
|
7
|
+
export type overlayAppearanceType = {
|
|
8
|
+
[key in tAppearanceKeys]?: iOverlayThemeColor;
|
|
9
|
+
};
|
|
10
|
+
export interface iOverlayConfig {
|
|
11
|
+
[key: number | string | symbol]: any;
|
|
12
|
+
appearance: overlayAppearanceType | undefined;
|
|
13
|
+
setAppearance: (newComponent: overlayAppearanceType) => void;
|
|
14
|
+
}
|
|
15
|
+
interface iOverlayProps extends iOverlayThemeColor, iStyleAttributes {
|
|
4
16
|
[key: number | string | symbol]: any;
|
|
17
|
+
appearance?: tAppearanceKeys;
|
|
5
18
|
className?: string;
|
|
6
19
|
fill?: tFillProps;
|
|
7
20
|
fillGradient?: tFillGradientProps;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { Overlay } from './Overlay';
|
|
1
|
+
export { Overlay, overlayConfig } from './Overlay';
|
|
2
|
+
export { overlayAppearance } from './Overlay.appearance';
|