@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
|
@@ -6,7 +6,7 @@ var clsx = require('clsx');
|
|
|
6
6
|
var ReactDOM = require('react-dom');
|
|
7
7
|
var useDeviceTargetClassGenerator = require('../hooks/useDeviceTargetClassGenerator.js');
|
|
8
8
|
var useStyles = require('../hooks/useStyles.js');
|
|
9
|
-
var Overlay = require('../../Overlay-
|
|
9
|
+
var Overlay = require('../../Overlay-CCx7yAPc.js');
|
|
10
10
|
var Loader = require('../../Loader-Dn036JwE.js');
|
|
11
11
|
require('../../tslib.es6-CCZ3TN_7.js');
|
|
12
12
|
require('lodash/camelCase');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Overlay = require('../../Overlay-
|
|
3
|
+
var Overlay = require('../../Overlay-CCx7yAPc.js');
|
|
4
4
|
require('react/jsx-runtime');
|
|
5
5
|
require('clsx');
|
|
6
6
|
require('../hooks/useDeviceTargetClassGenerator.js');
|
|
@@ -19,3 +19,5 @@ require('../hooks/styleAttributes.js');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
exports.Overlay = Overlay.Overlay;
|
|
22
|
+
exports.overlayAppearance = Overlay.overlayAppearance;
|
|
23
|
+
exports.overlayConfig = Overlay.overlayConfig;
|
|
@@ -6,8 +6,8 @@ var clsx = require('clsx');
|
|
|
6
6
|
var ceil = require('lodash/ceil');
|
|
7
7
|
var ReactPaginate = require('react-paginate');
|
|
8
8
|
var useDeviceTargetClassGenerator = require('../hooks/useDeviceTargetClassGenerator.js');
|
|
9
|
-
var DropdownItem = require('../../DropdownItem-
|
|
10
|
-
var Icon = require('../../Icon-
|
|
9
|
+
var DropdownItem = require('../../DropdownItem-DXz1l415.js');
|
|
10
|
+
var Icon = require('../../Icon-3VtRLW-J.js');
|
|
11
11
|
var Text = require('../../Text-Beslj4Ns.js');
|
|
12
12
|
require('../../tslib.es6-CCZ3TN_7.js');
|
|
13
13
|
require('lodash/camelCase');
|
|
@@ -20,7 +20,7 @@ require('lodash/maxBy');
|
|
|
20
20
|
require('lodash/upperFirst');
|
|
21
21
|
require('../hooks/styleAttributes.js');
|
|
22
22
|
require('../../Divider-Goh6mpPK.js');
|
|
23
|
-
require('../../Link-
|
|
23
|
+
require('../../Link-C2dn5VUy.js');
|
|
24
24
|
require('react-inlinesvg');
|
|
25
25
|
require('../../Tooltip-CNua1g76.js');
|
|
26
26
|
require('../../Title-DBaHcpvB.js');
|
|
@@ -7,7 +7,7 @@ var clsx = require('clsx');
|
|
|
7
7
|
var SVG = require('react-inlinesvg');
|
|
8
8
|
var useDeviceTargetClassGenerator = require('../hooks/useDeviceTargetClassGenerator.js');
|
|
9
9
|
var useStyles = require('../hooks/useStyles.js');
|
|
10
|
-
var Button = require('../../Button-
|
|
10
|
+
var Button = require('../../Button-DHQeSUSA.js');
|
|
11
11
|
var Group = require('../../Group-D6CXN4hS.js');
|
|
12
12
|
var Text = require('../../Text-Beslj4Ns.js');
|
|
13
13
|
var Title = require('../../Title-DBaHcpvB.js');
|
|
@@ -19,8 +19,8 @@ require('react-responsive');
|
|
|
19
19
|
require('lodash/maxBy');
|
|
20
20
|
require('lodash/upperFirst');
|
|
21
21
|
require('../hooks/styleAttributes.js');
|
|
22
|
-
require('../../Icon-
|
|
23
|
-
require('../../Link-
|
|
22
|
+
require('../../Icon-3VtRLW-J.js');
|
|
23
|
+
require('../../Link-C2dn5VUy.js');
|
|
24
24
|
require('../../Tooltip-CNua1g76.js');
|
|
25
25
|
require('../../Loader-Dn036JwE.js');
|
|
26
26
|
|
|
@@ -5,7 +5,7 @@ var React = require('react');
|
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var useDeviceTargetClassGenerator = require('../hooks/useDeviceTargetClassGenerator.js');
|
|
7
7
|
var useStyles = require('../hooks/useStyles.js');
|
|
8
|
-
var Icon = require('../../Icon-
|
|
8
|
+
var Icon = require('../../Icon-3VtRLW-J.js');
|
|
9
9
|
var Text = require('../../Text-Beslj4Ns.js');
|
|
10
10
|
var Scrollbar = require('../../Scrollbar-CKbA0jQU.js');
|
|
11
11
|
require('../../tslib.es6-CCZ3TN_7.js');
|
|
@@ -18,7 +18,7 @@ require('lodash/maxBy');
|
|
|
18
18
|
require('lodash/upperFirst');
|
|
19
19
|
require('../hooks/styleAttributes.js');
|
|
20
20
|
require('react-inlinesvg');
|
|
21
|
-
require('../../Link-
|
|
21
|
+
require('../../Link-C2dn5VUy.js');
|
|
22
22
|
require('../../Tooltip-CNua1g76.js');
|
|
23
23
|
require('../../Title-DBaHcpvB.js');
|
|
24
24
|
require('react-scrollbars-custom');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var tslib_es6 = require('../../tslib.es6-CCZ3TN_7.js');
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
var Select = require('react-select');
|
|
6
|
-
var Icon = require('../../Icon-
|
|
6
|
+
var Icon = require('../../Icon-3VtRLW-J.js');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var clsx = require('clsx');
|
|
9
9
|
var CreatableSelect = require('react-select/creatable');
|
|
@@ -21,7 +21,7 @@ require('../context/UIContext.js');
|
|
|
21
21
|
require('../hooks/useMediaQueries.js');
|
|
22
22
|
require('react-responsive');
|
|
23
23
|
require('../hooks/styleAttributes.js');
|
|
24
|
-
require('../../Link-
|
|
24
|
+
require('../../Link-C2dn5VUy.js');
|
|
25
25
|
require('../../Tooltip-CNua1g76.js');
|
|
26
26
|
require('../../Title-DBaHcpvB.js');
|
|
27
27
|
require('lodash/castArray');
|
|
@@ -5,7 +5,7 @@ var React = require('react');
|
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var UIContext = require('../context/UIContext.js');
|
|
7
7
|
var useDeviceTargetClassGenerator = require('../hooks/useDeviceTargetClassGenerator.js');
|
|
8
|
-
var Icon = require('../../Icon-
|
|
8
|
+
var Icon = require('../../Icon-3VtRLW-J.js');
|
|
9
9
|
var Text = require('../../Text-Beslj4Ns.js');
|
|
10
10
|
require('../hooks/useMediaQueries.js');
|
|
11
11
|
require('react-responsive');
|
|
@@ -17,7 +17,7 @@ require('../hooks/useStyles.js');
|
|
|
17
17
|
require('lodash/maxBy');
|
|
18
18
|
require('lodash/upperFirst');
|
|
19
19
|
require('../hooks/styleAttributes.js');
|
|
20
|
-
require('../../Link-
|
|
20
|
+
require('../../Link-C2dn5VUy.js');
|
|
21
21
|
require('../../Tooltip-CNua1g76.js');
|
|
22
22
|
require('../../Title-DBaHcpvB.js');
|
|
23
23
|
|
|
@@ -7,7 +7,7 @@ var useDeviceTargetClassGenerator = require('../hooks/useDeviceTargetClassGenera
|
|
|
7
7
|
var useStyles = require('../hooks/useStyles.js');
|
|
8
8
|
var Badge = require('../../Badge-B9tt2YPa.js');
|
|
9
9
|
var Divider = require('../../Divider-Goh6mpPK.js');
|
|
10
|
-
var Link = require('../../Link-
|
|
10
|
+
var Link = require('../../Link-C2dn5VUy.js');
|
|
11
11
|
var Text = require('../../Text-Beslj4Ns.js');
|
|
12
12
|
require('../../tslib.es6-CCZ3TN_7.js');
|
|
13
13
|
require('lodash/camelCase');
|
|
@@ -7,7 +7,7 @@ import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGene
|
|
|
7
7
|
import { useStyles } from '../hooks/useStyles.js';
|
|
8
8
|
import { icon16 } from '@itcase/icons/default';
|
|
9
9
|
import { D as Divider } from '../Divider-DBvDCUqP.js';
|
|
10
|
-
import { I as Icon } from '../Icon-
|
|
10
|
+
import { I as Icon } from '../Icon-C9FlOMr9.js';
|
|
11
11
|
import { T as Text } from '../Text-JayJa3hj.js';
|
|
12
12
|
import 'lodash/camelCase';
|
|
13
13
|
import '../context/UIContext.js';
|
|
@@ -17,12 +17,25 @@ import 'lodash/maxBy';
|
|
|
17
17
|
import 'lodash/upperFirst';
|
|
18
18
|
import '../hooks/styleAttributes.js';
|
|
19
19
|
import 'react-inlinesvg';
|
|
20
|
-
import '../Link-
|
|
20
|
+
import '../Link-CPzqprR1.js';
|
|
21
21
|
import '../Tooltip-1Jbub0K6.js';
|
|
22
22
|
import '../Title-CHgrIarR.js';
|
|
23
23
|
|
|
24
|
+
var accordionAppearance = {
|
|
25
|
+
dev: {},
|
|
26
|
+
};
|
|
27
|
+
var accordionItemAppearance = {
|
|
28
|
+
dev: {},
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
var accordionItemConfig = {
|
|
32
|
+
appearance: accordionItemAppearance,
|
|
33
|
+
setAppearance: function (newComponent) {
|
|
34
|
+
accordionItemConfig.appearance = newComponent;
|
|
35
|
+
},
|
|
36
|
+
};
|
|
24
37
|
function AccordionItem(props) {
|
|
25
|
-
var id = props.id, children = props.children, isExpanded = props.isExpanded, afterContent = props.afterContent, beforeContent = props.beforeContent, className = props.className, content = props.content, contentTextColor = props.contentTextColor, contentTextSize = props.contentTextSize, contentTextWeight = props.contentTextWeight, dividerDirection = props.dividerDirection, dividerFill = props.dividerFill, dividerSize = props.dividerSize, icon = props.icon, _a = props.iconFill, iconFill = _a === void 0 ? 'surfaceItemAccent' : _a, showDivider = props.showDivider, size = props.size, title = props.title, titleTextColor = props.titleTextColor, titleTextSize = props.titleTextSize, titleTextWeight = props.titleTextWeight, onClick = props.onClick;
|
|
38
|
+
var id = props.id, children = props.children, isExpanded = props.isExpanded, afterContent = props.afterContent, appearance = props.appearance, beforeContent = props.beforeContent, className = props.className, content = props.content, contentTextColor = props.contentTextColor, contentTextSize = props.contentTextSize, contentTextWeight = props.contentTextWeight, dividerDirection = props.dividerDirection, dividerFill = props.dividerFill, dividerSize = props.dividerSize, icon = props.icon, _a = props.iconFill, iconFill = _a === void 0 ? 'surfaceItemAccent' : _a, showDivider = props.showDivider, size = props.size, title = props.title, titleTextColor = props.titleTextColor, titleTextSize = props.titleTextSize, titleTextWeight = props.titleTextWeight, onClick = props.onClick;
|
|
26
39
|
var onClickTitle = useCallback(function () {
|
|
27
40
|
// "!isExpanded" - is next state of expanded
|
|
28
41
|
var thisItemData = {
|
|
@@ -33,7 +46,9 @@ function AccordionItem(props) {
|
|
|
33
46
|
};
|
|
34
47
|
onClick && onClick(thisItemData);
|
|
35
48
|
}, [id, title, content, isExpanded, onClick]);
|
|
36
|
-
|
|
49
|
+
// @ts-expect-error
|
|
50
|
+
var appearanceConfig = accordionItemConfig.appearance && accordionItemConfig.appearance[appearance];
|
|
51
|
+
var classGenerator = useDeviceTargetClassGenerator(props, appearanceConfig);
|
|
37
52
|
var borderColorClass = classGenerator.borderColorClass, contentBorderColorClass = classGenerator.contentBorderColorClass, contentFillClass = classGenerator.contentFillClass, contentFillHoverClass = classGenerator.contentFillHoverClass, fillClass = classGenerator.fillClass, fillHoverClass = classGenerator.fillHoverClass, shapeClass = classGenerator.shapeClass, titleBorderColorClass = classGenerator.titleBorderColorClass, titleFillClass = classGenerator.titleFillClass, titleFillHoverClass = classGenerator.titleFillHoverClass;
|
|
38
53
|
// @ts-expect-error
|
|
39
54
|
var styles = useStyles(props).styles;
|
|
@@ -41,8 +56,14 @@ function AccordionItem(props) {
|
|
|
41
56
|
(content && (jsx(Text, { size: contentTextSize, textColor: contentTextColor, textWeight: contentTextWeight, children: content }))) })), afterContent && afterContent] }));
|
|
42
57
|
}
|
|
43
58
|
|
|
59
|
+
var accordionConfig = {
|
|
60
|
+
appearance: accordionAppearance,
|
|
61
|
+
setAppearance: function (newComponent) {
|
|
62
|
+
accordionConfig.appearance = newComponent;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
44
65
|
function Accordion(props) {
|
|
45
|
-
var children = props.children, isMultiple = props.isMultiple, className = props.className, _a = props.initial, initial = _a === void 0 ? [] : _a, items = props.items, onClickItem = props.onClickItem;
|
|
66
|
+
var children = props.children, isMultiple = props.isMultiple, appearance = props.appearance, className = props.className, _a = props.initial, initial = _a === void 0 ? [] : _a, items = props.items, onClickItem = props.onClickItem;
|
|
46
67
|
var _b = useState(function () { return castArray(initial); }), expandedItems = _b[0], setExpandedItems = _b[1];
|
|
47
68
|
var onClickAccordionItem = useCallback(function (targetItem) {
|
|
48
69
|
setExpandedItems(function (prevState) {
|
|
@@ -88,7 +109,9 @@ function Accordion(props) {
|
|
|
88
109
|
}
|
|
89
110
|
return [];
|
|
90
111
|
}, [children, items, expandedItems, onClickAccordionItem]);
|
|
91
|
-
|
|
112
|
+
// @ts-expect-error
|
|
113
|
+
var appearanceConfig = accordionConfig.appearance && accordionConfig.appearance[appearance];
|
|
114
|
+
var classGenerator = useDeviceTargetClassGenerator(props, appearanceConfig);
|
|
92
115
|
var borderColorClass = classGenerator.borderColorClass, directionClass = classGenerator.directionClass, fillClass = classGenerator.fillClass, shapeClass = classGenerator.shapeClass, widthClass = classGenerator.widthClass;
|
|
93
116
|
/*
|
|
94
117
|
* paddingHorizontalWrapper="16px"
|
|
@@ -100,4 +123,4 @@ function Accordion(props) {
|
|
|
100
123
|
return (jsx("div", { className: clsx(className, 'accordion', borderColorClass && "border-color_".concat(borderColorClass), directionClass && "accordion_direction_".concat(directionClass), fillClass && "fill_".concat(fillClass), shapeClass && "accordion_shape_".concat(shapeClass), widthClass && "width_".concat(widthClass)), style: accordionStyles, children: jsx("div", { className: "accordion__wrapper", style: accordionWrapperStyles, children: accordionItemsList }) }));
|
|
101
124
|
}
|
|
102
125
|
|
|
103
|
-
export { Accordion, AccordionItem };
|
|
126
|
+
export { Accordion, AccordionItem, accordionAppearance, accordionConfig, accordionItemAppearance, accordionItemConfig };
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
5
|
-
import { I as Icon } from '../Icon-
|
|
5
|
+
import { I as Icon } from '../Icon-C9FlOMr9.js';
|
|
6
6
|
import { I as Image } from '../Image-Dx4AWHLO.js';
|
|
7
7
|
import { T as Text } from '../Text-JayJa3hj.js';
|
|
8
8
|
import '../tslib.es6-5FtW-kfi.js';
|
|
@@ -16,7 +16,7 @@ import '../hooks/useStyles.js';
|
|
|
16
16
|
import 'lodash/maxBy';
|
|
17
17
|
import 'lodash/upperFirst';
|
|
18
18
|
import '../hooks/styleAttributes.js';
|
|
19
|
-
import '../Link-
|
|
19
|
+
import '../Link-CPzqprR1.js';
|
|
20
20
|
import '../Tooltip-1Jbub0K6.js';
|
|
21
21
|
import '../Title-CHgrIarR.js';
|
|
22
22
|
|
|
@@ -5,8 +5,8 @@ import clsx from 'clsx';
|
|
|
5
5
|
import camelCase from 'lodash/camelCase';
|
|
6
6
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
7
7
|
import { useStyles } from '../hooks/useStyles.js';
|
|
8
|
-
import { I as Icon } from '../Icon-
|
|
9
|
-
import { a as LinkWrapper } from '../Link-
|
|
8
|
+
import { I as Icon } from '../Icon-C9FlOMr9.js';
|
|
9
|
+
import { a as LinkWrapper } from '../Link-CPzqprR1.js';
|
|
10
10
|
import { T as Text } from '../Text-JayJa3hj.js';
|
|
11
11
|
import 'lodash/castArray';
|
|
12
12
|
import '../context/UIContext.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as Button, a as buttonAppearance, b as buttonConfig } from '../Button-
|
|
1
|
+
export { B as Button, a as buttonAppearance, b as buttonConfig } from '../Button-BVQet4JC.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -13,9 +13,9 @@ import '../hooks/useStyles.js';
|
|
|
13
13
|
import 'lodash/maxBy';
|
|
14
14
|
import 'lodash/upperFirst';
|
|
15
15
|
import '../hooks/styleAttributes.js';
|
|
16
|
-
import '../Icon-
|
|
16
|
+
import '../Icon-C9FlOMr9.js';
|
|
17
17
|
import 'react-inlinesvg';
|
|
18
|
-
import '../Link-
|
|
18
|
+
import '../Link-CPzqprR1.js';
|
|
19
19
|
import '../Tooltip-1Jbub0K6.js';
|
|
20
20
|
import '../Text-JayJa3hj.js';
|
|
21
21
|
import '../Title-CHgrIarR.js';
|
package/dist/components/Cell.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
4
4
|
import { useStyles } from '../hooks/useStyles.js';
|
|
5
|
-
import { I as Icon } from '../Icon-
|
|
5
|
+
import { I as Icon } from '../Icon-C9FlOMr9.js';
|
|
6
6
|
import { L as Label } from '../Label-DQyB2ThM.js';
|
|
7
7
|
import { T as Text } from '../Text-JayJa3hj.js';
|
|
8
8
|
import '../tslib.es6-5FtW-kfi.js';
|
|
@@ -16,17 +16,29 @@ 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
|
|
|
23
|
+
var cellAppearance = {
|
|
24
|
+
dev: {},
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
var cellConfig = {
|
|
28
|
+
appearance: cellAppearance,
|
|
29
|
+
setAppearance: function (newComponent) {
|
|
30
|
+
cellConfig.appearance = newComponent;
|
|
31
|
+
},
|
|
32
|
+
};
|
|
23
33
|
function Cell(props) {
|
|
24
|
-
var isActive = props.isActive, _a = props.isDisabled, isDisabled = _a === void 0 ? false : _a, isEqual = props.isEqual, after = props.after, before = props.before, className = props.className, mode = props.mode, reverse = props.reverse, set = props.set, showTitleLabel = props.showTitleLabel, showValueLabel = props.showValueLabel, size = props.size, title = props.title, titleIcon = props.titleIcon, titleIconFill = props.titleIconFill, titleIconFillHover = props.titleIconFillHover, titleIconFillSize = props.titleIconFillSize, titleIconItemFill = props.titleIconItemFill, titleIconShape = props.titleIconShape, titleIconSrc = props.titleIconSrc, titleLabel = props.titleLabel, titleLabelAppearance = props.titleLabelAppearance, titleLabelShape = props.titleLabelShape, titleLabelSize = props.titleLabelSize, titleLabelTextSize = props.titleLabelTextSize, titleTag = props.titleTag, titleTextColor = props.titleTextColor, titleTextSize = props.titleTextSize, titleTextTruncate = props.titleTextTruncate, titleTextWeight = props.titleTextWeight, titleTextWrap = props.titleTextWrap, value = props.value, valueIcon = props.valueIcon, valueIconFill = props.valueIconFill, valueIconFillHover = props.valueIconFillHover, valueIconFillSize = props.valueIconFillSize, valueIconItemFill = props.valueIconItemFill, valueIconShape = props.valueIconShape, valueIconSrc = props.valueIconSrc, valueLabel = props.valueLabel, valueLabelAppearance = props.valueLabelAppearance, valueLabelShape = props.valueLabelShape, valueLabelSize = props.valueLabelSize, valueLabelTextSize = props.valueLabelTextSize, valueTag = props.valueTag, valueTextAlign = props.valueTextAlign, valueTextColor = props.valueTextColor, valueTextSize = props.valueTextSize, valueTextTruncate = props.valueTextTruncate, valueTextWeight = props.valueTextWeight, valueTextWrap = props.valueTextWrap, zeroGap = props.zeroGap, zeroPadding = props.zeroPadding, onClick = props.onClick, onMouseEnter = props.onMouseEnter;
|
|
25
|
-
|
|
34
|
+
var isActive = props.isActive, _a = props.isDisabled, isDisabled = _a === void 0 ? false : _a, isEqual = props.isEqual, after = props.after, appearance = props.appearance, before = props.before, className = props.className, mode = props.mode, reverse = props.reverse, set = props.set, showTitleLabel = props.showTitleLabel, showValueLabel = props.showValueLabel, size = props.size, title = props.title, titleIcon = props.titleIcon, titleIconFill = props.titleIconFill, titleIconFillHover = props.titleIconFillHover, titleIconFillSize = props.titleIconFillSize, titleIconItemFill = props.titleIconItemFill, titleIconShape = props.titleIconShape, titleIconSrc = props.titleIconSrc, titleLabel = props.titleLabel, titleLabelAppearance = props.titleLabelAppearance, titleLabelShape = props.titleLabelShape, titleLabelSize = props.titleLabelSize, titleLabelTextSize = props.titleLabelTextSize, titleTag = props.titleTag, titleTextColor = props.titleTextColor, titleTextSize = props.titleTextSize, titleTextTruncate = props.titleTextTruncate, titleTextWeight = props.titleTextWeight, titleTextWrap = props.titleTextWrap, value = props.value, valueIcon = props.valueIcon, valueIconFill = props.valueIconFill, valueIconFillHover = props.valueIconFillHover, valueIconFillSize = props.valueIconFillSize, valueIconItemFill = props.valueIconItemFill, valueIconShape = props.valueIconShape, valueIconSrc = props.valueIconSrc, valueLabel = props.valueLabel, valueLabelAppearance = props.valueLabelAppearance, valueLabelShape = props.valueLabelShape, valueLabelSize = props.valueLabelSize, valueLabelTextSize = props.valueLabelTextSize, valueTag = props.valueTag, valueTextAlign = props.valueTextAlign, valueTextColor = props.valueTextColor, valueTextSize = props.valueTextSize, valueTextTruncate = props.valueTextTruncate, valueTextWeight = props.valueTextWeight, valueTextWrap = props.valueTextWrap, zeroGap = props.zeroGap, zeroPadding = props.zeroPadding, onClick = props.onClick, onMouseEnter = props.onMouseEnter;
|
|
35
|
+
// @ts-expect-error
|
|
36
|
+
var appearanceConfig = cellConfig.appearance && cellConfig.appearance[appearance];
|
|
37
|
+
var classGenerator = useDeviceTargetClassGenerator(props, appearanceConfig);
|
|
26
38
|
var bgFillActiveClass = classGenerator.bgFillActiveClass, bgFillClass = classGenerator.bgFillClass, bgFillDisabledClass = classGenerator.bgFillDisabledClass, bgFillHoverClass = classGenerator.bgFillHoverClass, bgShapeClass = classGenerator.bgShapeClass, directionClass = classGenerator.directionClass, fillActiveClass = classGenerator.fillActiveClass, fillClass = classGenerator.fillClass, fillDisabledClass = classGenerator.fillDisabledClass, fillHoverClass = classGenerator.fillHoverClass, gapClass = classGenerator.gapClass, shapeClass = classGenerator.shapeClass, widthClass = classGenerator.widthClass;
|
|
27
39
|
// @ts-expect-error
|
|
28
40
|
var cellStyles = useStyles(props).styles;
|
|
29
41
|
return (jsxs("div", { className: clsx(className, 'cell', mode && "cell_mode_".concat(mode), size && "cell_size_".concat(size), set && "cell_set_".concat(set), bgFillClass && "fill_".concat(bgFillClass), bgFillHoverClass && "fill_hover_".concat(bgFillHoverClass), isActive && bgFillActiveClass && "fill_active_".concat(bgFillActiveClass), isDisabled && bgFillDisabledClass && "fill_disabled_".concat(bgFillDisabledClass), bgShapeClass && "cell_shape_".concat(bgShapeClass), widthClass && "width_".concat(widthClass), gapClass && "gap_".concat(gapClass), zeroPadding && 'cell_reset-padding', zeroGap && 'cell_reset-gap', reverse && 'cell_reverse'), style: cellStyles, onClick: onClick, onMouseEnter: onMouseEnter, children: [before && jsx("div", { className: "cell__before", children: before }), jsxs("div", { className: clsx('cell__wrapper', directionClass && "cell__wrapper_direction_".concat(directionClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), isActive && fillActiveClass && "fill_active_".concat(fillActiveClass), isDisabled && fillDisabledClass && "fill_disabled_".concat(fillDisabledClass), shapeClass && "cell__wrapper_shape_".concat(shapeClass), isEqual && 'cell__wrapper-equal'), children: [title && (jsxs("div", { className: "cell__data", children: [jsx(Text, { className: "cell__title", size: titleTextSize, tag: titleTag, textColor: titleTextColor, textTruncate: titleTextTruncate, textWeight: titleTextWeight, textWrap: titleTextWrap, children: title }), (titleIcon || titleIconSrc) && (jsx(Icon, { className: "cell__icon", fill: titleIconFill, fillSize: titleIconFillSize, iconFill: titleIconItemFill, iconFillHover: titleIconFillHover, imageSrc: titleIconSrc, shape: titleIconShape, SvgImage: titleIcon })), showTitleLabel && (jsx(Label, { labelTextSize: titleLabelTextSize, appearance: titleLabelAppearance, label: titleLabel, shape: titleLabelShape, size: titleLabelSize }))] })), value && (jsxs("div", { className: "cell__data", children: [jsx(Text, { className: "cell__value", size: valueTextSize, tag: valueTag, textAlign: valueTextAlign, textColor: valueTextColor, textTruncate: valueTextTruncate, textWeight: valueTextWeight, textWrap: valueTextWrap, children: value }), (valueIcon || valueIconSrc) && (jsx(Icon, { className: "cell__icon", fill: valueIconFill, fillSize: valueIconFillSize, iconFill: valueIconItemFill, iconFillHover: valueIconFillHover, imageSrc: valueIconSrc, shape: valueIconShape, SvgImage: valueIcon })), showValueLabel && (jsx(Label, { labelTextSize: valueLabelTextSize, appearance: valueLabelAppearance, label: valueLabel, shape: valueLabelShape, size: valueLabelSize }))] }))] }), after && jsx("div", { className: "cell__after", children: after })] }));
|
|
30
42
|
}
|
|
31
43
|
|
|
32
|
-
export { Cell };
|
|
44
|
+
export { Cell, cellAppearance, cellConfig };
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import React, { useRef, useMemo, createRef, useCallback } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
5
|
-
import { I as Icon } from '../Icon-
|
|
5
|
+
import { I as Icon } from '../Icon-C9FlOMr9.js';
|
|
6
6
|
import { L as Loader } from '../Loader-K_DJmah6.js';
|
|
7
7
|
import { T as Text } from '../Text-JayJa3hj.js';
|
|
8
8
|
import '../tslib.es6-5FtW-kfi.js';
|
|
@@ -16,7 +16,7 @@ import '../hooks/useStyles.js';
|
|
|
16
16
|
import 'lodash/maxBy';
|
|
17
17
|
import 'lodash/upperFirst';
|
|
18
18
|
import '../hooks/styleAttributes.js';
|
|
19
|
-
import '../Link-
|
|
19
|
+
import '../Link-CPzqprR1.js';
|
|
20
20
|
import '../Tooltip-1Jbub0K6.js';
|
|
21
21
|
import '../Title-CHgrIarR.js';
|
|
22
22
|
|
|
@@ -3,7 +3,7 @@ import { useRef, useMemo, useCallback, useEffect } from 'react';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import Cookies from 'js-cookie';
|
|
5
5
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
6
|
-
import { B as Button } from '../Button-
|
|
6
|
+
import { B as Button } from '../Button-BVQet4JC.js';
|
|
7
7
|
import { G as Group } from '../Group-B9L2NTgM.js';
|
|
8
8
|
import { T as Text } from '../Text-JayJa3hj.js';
|
|
9
9
|
import '../tslib.es6-5FtW-kfi.js';
|
|
@@ -16,9 +16,9 @@ import '../hooks/useStyles.js';
|
|
|
16
16
|
import 'lodash/maxBy';
|
|
17
17
|
import 'lodash/upperFirst';
|
|
18
18
|
import '../hooks/styleAttributes.js';
|
|
19
|
-
import '../Icon-
|
|
19
|
+
import '../Icon-C9FlOMr9.js';
|
|
20
20
|
import 'react-inlinesvg';
|
|
21
|
-
import '../Link-
|
|
21
|
+
import '../Link-CPzqprR1.js';
|
|
22
22
|
import '../Tooltip-1Jbub0K6.js';
|
|
23
23
|
import '../Title-CHgrIarR.js';
|
|
24
24
|
import '../Loader-K_DJmah6.js';
|
|
@@ -6,8 +6,8 @@ import { ru } from 'date-fns/locale';
|
|
|
6
6
|
import DatePicker from 'react-datepicker';
|
|
7
7
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
8
8
|
import { useStyles } from '../hooks/useStyles.js';
|
|
9
|
-
import { B as Button } from '../Button-
|
|
10
|
-
import { I as Icon } from '../Icon-
|
|
9
|
+
import { B as Button } from '../Button-BVQet4JC.js';
|
|
10
|
+
import { I as Icon } from '../Icon-C9FlOMr9.js';
|
|
11
11
|
import { I as Input } from '../Input-BrV5_NoV.js';
|
|
12
12
|
import { L as Label } from '../Label-DQyB2ThM.js';
|
|
13
13
|
import { T as Text } from '../Text-JayJa3hj.js';
|
|
@@ -19,7 +19,7 @@ import 'react-responsive';
|
|
|
19
19
|
import 'lodash/maxBy';
|
|
20
20
|
import 'lodash/upperFirst';
|
|
21
21
|
import '../hooks/styleAttributes.js';
|
|
22
|
-
import '../Link-
|
|
22
|
+
import '../Link-CPzqprR1.js';
|
|
23
23
|
import '../Loader-K_DJmah6.js';
|
|
24
24
|
import 'react-inlinesvg';
|
|
25
25
|
import '../Tooltip-1Jbub0K6.js';
|
|
@@ -1,12 +1,33 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
+
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
3
4
|
import ReactDrawer from 'react-modern-drawer';
|
|
5
|
+
import '../tslib.es6-5FtW-kfi.js';
|
|
6
|
+
import 'react';
|
|
7
|
+
import 'lodash/camelCase';
|
|
8
|
+
import 'lodash/castArray';
|
|
9
|
+
import '../context/UIContext.js';
|
|
10
|
+
import '../hooks/useMediaQueries.js';
|
|
11
|
+
import 'react-responsive';
|
|
4
12
|
|
|
13
|
+
var drawerAppearance = {
|
|
14
|
+
dev: {},
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
var drawerConfig = {
|
|
18
|
+
appearance: drawerAppearance,
|
|
19
|
+
setAppearance: function (newComponent) {
|
|
20
|
+
drawerConfig.appearance = newComponent;
|
|
21
|
+
},
|
|
22
|
+
};
|
|
5
23
|
function Drawer(props) {
|
|
6
|
-
var children = props.children, direction = props.direction, isOpenModal = props.isOpenModal, after = props.after, before = props.before, className = props.className, closeModal = props.closeModal, dataTour = props.dataTour, enableOverlay = props.enableOverlay, size = props.size, type = props.type;
|
|
24
|
+
var children = props.children, direction = props.direction, isOpenModal = props.isOpenModal, after = props.after, appearance = props.appearance, before = props.before, className = props.className, closeModal = props.closeModal, dataTour = props.dataTour, enableOverlay = props.enableOverlay, size = props.size, type = props.type;
|
|
25
|
+
// @ts-expect-error
|
|
26
|
+
var appearanceConfig = drawerConfig.appearance && drawerConfig.appearance[appearance];
|
|
27
|
+
useDeviceTargetClassGenerator(props, appearanceConfig);
|
|
7
28
|
return (jsxs(ReactDrawer, { className: clsx('drawer', type && "drawer_type_".concat(type), className, dataTour && "data-tour-".concat(dataTour)), direction: direction || 'right', enableOverlay: enableOverlay, lockBackgroundScroll: false,
|
|
8
29
|
// @ts-expect-error
|
|
9
30
|
open: isOpenModal, overlayClassName: "drawer__overlay", size: size || 600, onClose: closeModal, children: [before && jsx("div", { className: "drawer__before", children: before }), children && jsx("div", { className: "drawer__wrapper", children: children }), after && jsx("div", { className: "drawer__after", children: after })] }));
|
|
10
31
|
}
|
|
11
32
|
|
|
12
|
-
export { Drawer };
|
|
33
|
+
export { Drawer, drawerAppearance, drawerConfig };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../DropdownItem-
|
|
1
|
+
export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../DropdownItem-DxGxdjUr.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -14,5 +14,5 @@ import 'lodash/maxBy';
|
|
|
14
14
|
import 'lodash/upperFirst';
|
|
15
15
|
import '../hooks/styleAttributes.js';
|
|
16
16
|
import '../Divider-DBvDCUqP.js';
|
|
17
|
-
import '../Link-
|
|
17
|
+
import '../Link-CPzqprR1.js';
|
|
18
18
|
import '../Text-JayJa3hj.js';
|
package/dist/components/Icon.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as Icon, a as iconAppearance, i as iconConfig } from '../Icon-
|
|
1
|
+
export { I as Icon, a as iconAppearance, i as iconConfig } from '../Icon-C9FlOMr9.js';
|
|
2
2
|
import '../tslib.es6-5FtW-kfi.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -14,7 +14,7 @@ import '../hooks/useStyles.js';
|
|
|
14
14
|
import 'lodash/maxBy';
|
|
15
15
|
import 'lodash/upperFirst';
|
|
16
16
|
import '../hooks/styleAttributes.js';
|
|
17
|
-
import '../Link-
|
|
17
|
+
import '../Link-CPzqprR1.js';
|
|
18
18
|
import '../Tooltip-1Jbub0K6.js';
|
|
19
19
|
import '../Text-JayJa3hj.js';
|
|
20
20
|
import '../Title-CHgrIarR.js';
|
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { useState, useMemo, useCallback } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
5
|
-
import { I as Icon } from '../Icon-
|
|
5
|
+
import { I as Icon } from '../Icon-C9FlOMr9.js';
|
|
6
6
|
import '../tslib.es6-5FtW-kfi.js';
|
|
7
7
|
import 'lodash/camelCase';
|
|
8
8
|
import 'lodash/castArray';
|
|
@@ -14,7 +14,7 @@ import '../hooks/useStyles.js';
|
|
|
14
14
|
import 'lodash/maxBy';
|
|
15
15
|
import 'lodash/upperFirst';
|
|
16
16
|
import '../hooks/styleAttributes.js';
|
|
17
|
-
import '../Link-
|
|
17
|
+
import '../Link-CPzqprR1.js';
|
|
18
18
|
import '../Tooltip-1Jbub0K6.js';
|
|
19
19
|
import '../Text-JayJa3hj.js';
|
|
20
20
|
import '../Title-CHgrIarR.js';
|
package/dist/components/Link.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { L as Link, a as LinkWrapper, l as linkConfig } from '../Link-
|
|
1
|
+
export { L as Link, a as LinkWrapper, l as linkConfig } from '../Link-CPzqprR1.js';
|
|
2
2
|
import '../tslib.es6-5FtW-kfi.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -13,3 +13,9 @@ import '../hooks/useStyles.js';
|
|
|
13
13
|
import 'lodash/maxBy';
|
|
14
14
|
import 'lodash/upperFirst';
|
|
15
15
|
import '../hooks/styleAttributes.js';
|
|
16
|
+
|
|
17
|
+
var linkAppearance = {
|
|
18
|
+
dev: {},
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export { linkAppearance };
|
package/dist/components/List.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
4
4
|
import { useStyles } from '../hooks/useStyles.js';
|
|
5
|
-
import { L as Link } from '../Link-
|
|
5
|
+
import { L as Link } from '../Link-CPzqprR1.js';
|
|
6
6
|
import '../tslib.es6-5FtW-kfi.js';
|
|
7
7
|
import 'react';
|
|
8
8
|
import 'lodash/camelCase';
|
package/dist/components/Logo.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
4
4
|
import { useStyles } from '../hooks/useStyles.js';
|
|
5
|
-
import { a as LinkWrapper } from '../Link-
|
|
5
|
+
import { a as LinkWrapper } from '../Link-CPzqprR1.js';
|
|
6
6
|
import '../tslib.es6-5FtW-kfi.js';
|
|
7
7
|
import 'react';
|
|
8
8
|
import 'lodash/camelCase';
|
package/dist/components/Menu.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
4
4
|
import { useStyles } from '../hooks/useStyles.js';
|
|
5
|
-
import { M as MenuItem } from '../MenuItem-
|
|
5
|
+
import { M as MenuItem } from '../MenuItem-Cw2Lry6S.js';
|
|
6
6
|
import '../tslib.es6-5FtW-kfi.js';
|
|
7
7
|
import 'react';
|
|
8
8
|
import 'lodash/camelCase';
|
|
@@ -13,12 +13,24 @@ import 'react-responsive';
|
|
|
13
13
|
import 'lodash/maxBy';
|
|
14
14
|
import 'lodash/upperFirst';
|
|
15
15
|
import '../hooks/styleAttributes.js';
|
|
16
|
-
import '../Link-
|
|
16
|
+
import '../Link-CPzqprR1.js';
|
|
17
17
|
import '../Text-JayJa3hj.js';
|
|
18
18
|
|
|
19
|
+
var menuAppearance = {
|
|
20
|
+
dev: {},
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
var menuConfig = {
|
|
24
|
+
appearance: menuAppearance,
|
|
25
|
+
setAppearance: function (newComponent) {
|
|
26
|
+
menuConfig.appearance = newComponent;
|
|
27
|
+
},
|
|
28
|
+
};
|
|
19
29
|
function Menu(props) {
|
|
20
|
-
var children = props.children, after = props.after, before = props.before, className = props.className, items = props.items, type = props.type, onClickItem = props.onClickItem;
|
|
21
|
-
|
|
30
|
+
var children = props.children, after = props.after, appearance = props.appearance, before = props.before, className = props.className, items = props.items, type = props.type, onClickItem = props.onClickItem;
|
|
31
|
+
// @ts-expect-error
|
|
32
|
+
var appearanceConfig = menuConfig.appearance && menuConfig.appearance[appearance];
|
|
33
|
+
var classGenerator = useDeviceTargetClassGenerator(props, appearanceConfig);
|
|
22
34
|
var columnsClass = classGenerator.columnsClass, directionClass = classGenerator.directionClass, flexGrowClass = classGenerator.flexGrowClass, widthClass = classGenerator.widthClass;
|
|
23
35
|
// @ts-expect-error
|
|
24
36
|
var menuStyles = useStyles(props).styles;
|
|
@@ -29,4 +41,4 @@ Menu.defaultProps = {
|
|
|
29
41
|
direction: 'horizontal',
|
|
30
42
|
};
|
|
31
43
|
|
|
32
|
-
export { Menu };
|
|
44
|
+
export { Menu, menuAppearance, menuConfig };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { M as MenuItem, a as menuItemAppearance, m as menuItemConfig } from '../MenuItem-
|
|
1
|
+
export { M as MenuItem, a as menuItemAppearance, m as menuItemConfig } from '../MenuItem-Cw2Lry6S.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -13,5 +13,5 @@ import '../hooks/useStyles.js';
|
|
|
13
13
|
import 'lodash/maxBy';
|
|
14
14
|
import 'lodash/upperFirst';
|
|
15
15
|
import '../hooks/styleAttributes.js';
|
|
16
|
-
import '../Link-
|
|
16
|
+
import '../Link-CPzqprR1.js';
|
|
17
17
|
import '../Text-JayJa3hj.js';
|
package/dist/components/Modal.js
CHANGED
|
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|
|
4
4
|
import ReactDOM from 'react-dom';
|
|
5
5
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles.js';
|
|
7
|
-
import { O as Overlay } from '../Overlay-
|
|
7
|
+
import { O as Overlay } from '../Overlay-DcGWchjp.js';
|
|
8
8
|
import { L as Loader } from '../Loader-K_DJmah6.js';
|
|
9
9
|
import '../tslib.es6-5FtW-kfi.js';
|
|
10
10
|
import 'lodash/camelCase';
|
|
@@ -4,8 +4,8 @@ import clsx from 'clsx';
|
|
|
4
4
|
import ceil from 'lodash/ceil';
|
|
5
5
|
import ReactPaginate from 'react-paginate';
|
|
6
6
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
7
|
-
import { D as Dropdown, a as DropdownItem } from '../DropdownItem-
|
|
8
|
-
import { I as Icon } from '../Icon-
|
|
7
|
+
import { D as Dropdown, a as DropdownItem } from '../DropdownItem-DxGxdjUr.js';
|
|
8
|
+
import { I as Icon } from '../Icon-C9FlOMr9.js';
|
|
9
9
|
import { T as Text } from '../Text-JayJa3hj.js';
|
|
10
10
|
import '../tslib.es6-5FtW-kfi.js';
|
|
11
11
|
import 'lodash/camelCase';
|
|
@@ -18,7 +18,7 @@ import 'lodash/maxBy';
|
|
|
18
18
|
import 'lodash/upperFirst';
|
|
19
19
|
import '../hooks/styleAttributes.js';
|
|
20
20
|
import '../Divider-DBvDCUqP.js';
|
|
21
|
-
import '../Link-
|
|
21
|
+
import '../Link-CPzqprR1.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
23
|
import '../Tooltip-1Jbub0K6.js';
|
|
24
24
|
import '../Title-CHgrIarR.js';
|
|
@@ -5,7 +5,7 @@ import clsx from 'clsx';
|
|
|
5
5
|
import SVG from 'react-inlinesvg';
|
|
6
6
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
7
7
|
import { useStyles } from '../hooks/useStyles.js';
|
|
8
|
-
import { B as Button } from '../Button-
|
|
8
|
+
import { B as Button } from '../Button-BVQet4JC.js';
|
|
9
9
|
import { G as Group } from '../Group-B9L2NTgM.js';
|
|
10
10
|
import { T as Text } from '../Text-JayJa3hj.js';
|
|
11
11
|
import { T as Title } from '../Title-CHgrIarR.js';
|
|
@@ -17,8 +17,8 @@ import 'react-responsive';
|
|
|
17
17
|
import 'lodash/maxBy';
|
|
18
18
|
import 'lodash/upperFirst';
|
|
19
19
|
import '../hooks/styleAttributes.js';
|
|
20
|
-
import '../Icon-
|
|
21
|
-
import '../Link-
|
|
20
|
+
import '../Icon-C9FlOMr9.js';
|
|
21
|
+
import '../Link-CPzqprR1.js';
|
|
22
22
|
import '../Tooltip-1Jbub0K6.js';
|
|
23
23
|
import '../Loader-K_DJmah6.js';
|
|
24
24
|
|