venice-ui 3.0.3 → 3.0.5
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/cjs/components/Button/Button.styles.js +1 -0
- package/dist/cjs/components/Checkbox/Checkbox.js +1 -1
- package/dist/cjs/components/Checkbox/Checkbox.styles.js +5 -4
- package/dist/cjs/components/List/List.js +8 -8
- package/dist/cjs/components/List/{iLst.styles.js → List.styles.js} +7 -1
- package/dist/cjs/components/Modal/Modal.styles.js +1 -1
- package/dist/cjs/components/Pagination/Pagination.js +1 -1
- package/dist/cjs/components/Pagination/Pagination.styles.js +3 -3
- package/dist/cjs/config/config.js +3 -4
- package/dist/esm/components/Button/Button.styles.js +1 -0
- package/dist/esm/components/Checkbox/Checkbox.js +1 -1
- package/dist/esm/components/Checkbox/Checkbox.styles.js +5 -4
- package/dist/esm/components/List/List.js +2 -2
- package/dist/esm/components/List/{iLst.styles.js → List.styles.js} +6 -0
- package/dist/esm/components/Modal/Modal.styles.js +1 -1
- package/dist/esm/components/Pagination/Pagination.js +1 -1
- package/dist/esm/components/Pagination/Pagination.styles.js +3 -3
- package/dist/esm/config/config.js +3 -4
- package/dist/types/components/List/{iLst.styles.d.ts → List.styles.d.ts} +10 -4
- package/dist/types/config/config.d.ts +19 -22
- package/package.json +1 -1
|
@@ -31,6 +31,7 @@ exports.ButtonRoot = styled_components_1.default.div `
|
|
|
31
31
|
justify-content: center;
|
|
32
32
|
white-space: nowrap;
|
|
33
33
|
flex-shrink: 0;
|
|
34
|
+
font-weight: normal;
|
|
34
35
|
width: auto;
|
|
35
36
|
min-width: ${({ config, size }) => config.sizes[size].minWidth}px;
|
|
36
37
|
height: ${({ config, size }) => config.sizes[size].height}px;
|
|
@@ -27,7 +27,7 @@ const Checkbox = ({ name, value = false, size = 'md', label, labelPosition = 'to
|
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
return (react_1.default.createElement(ComponentRoot_1.ComponentRoot, { labelPosition: labelPosition, size: size, disabled: isDisabled, error: error, readOnly: false, required: required, optional: optional, optionalLabel: optionalLabel, helperText: helperText, themeVariant: themeVariant, theme: resolvedTheme, componentConfig: checkboxConfig, label: label, isActive: value, labelInversed: labelInversed, smallSize: true },
|
|
30
|
-
react_1.default.createElement(Checkbox_styles_1.CheckboxRoot, { onClick: onClick, isDisabled: isDisabled },
|
|
30
|
+
react_1.default.createElement(Checkbox_styles_1.CheckboxRoot, { onClick: onClick, isDisabled: isDisabled, id: 'dupa' },
|
|
31
31
|
react_1.default.createElement(Checkbox_styles_1.CheckboxBox, { theme: resolvedTheme, config: checkboxConfig, size: size, isDisabled: isDisabled, isIntermedian: isIntermedian, isActive: value }, (value || isIntermedian) && (react_1.default.createElement("svg", { width: resolvedSize.iconSize, height: resolvedSize.iconSize, viewBox: '0 0 24 24', preserveAspectRatio: "xMidYMid meet", x: "0", y: "0", name: name },
|
|
32
32
|
react_1.default.createElement("path", { d: iconName, fill: isDisabled
|
|
33
33
|
? checkboxConfig.color.disabled.icon
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.CheckboxBox = exports.CheckboxRoot = void 0;
|
|
7
7
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
8
|
exports.CheckboxRoot = styled_components_1.default.div `
|
|
9
|
+
box-sizing: border-box;
|
|
9
10
|
display: flex;
|
|
10
11
|
align-items: center;
|
|
11
12
|
justify-content: start-flex;
|
|
@@ -14,6 +15,7 @@ exports.CheckboxRoot = styled_components_1.default.div `
|
|
|
14
15
|
cursor: ${({ isDisabled }) => (isDisabled ? 'not-allowed' : 'pointer')};
|
|
15
16
|
`;
|
|
16
17
|
exports.CheckboxBox = styled_components_1.default.div `
|
|
18
|
+
box-sizing: border-box;
|
|
17
19
|
display: flex;
|
|
18
20
|
align-content: center;
|
|
19
21
|
align-items: center;
|
|
@@ -31,14 +33,14 @@ exports.CheckboxBox = styled_components_1.default.div `
|
|
|
31
33
|
: config.color.default.boxBorder};
|
|
32
34
|
background: ${({ theme, config, isActive, isDisabled, isIntermedian }) => isDisabled
|
|
33
35
|
? config.color.disabled.boxBackground
|
|
34
|
-
: isIntermedian
|
|
35
|
-
config.color.intermedian.boxBackground
|
|
36
|
+
: isIntermedian
|
|
37
|
+
? config.color.intermedian.boxBackground
|
|
36
38
|
: isActive
|
|
37
39
|
? config.color.focus.boxBackground
|
|
38
40
|
: config.color.default.background};
|
|
39
41
|
border-radius: ${({ config, size }) => config.size[size].radius}px;
|
|
40
42
|
cursor: ${({ isDisabled }) => (isDisabled ? 'not-allowed' : 'pointer')};
|
|
41
|
-
:hover{
|
|
43
|
+
:hover {
|
|
42
44
|
border-color: ${({ theme, config, isActive, isDisabled, isIntermedian }) => isDisabled
|
|
43
45
|
? config.color.disabled.boxBorder
|
|
44
46
|
: isIntermedian
|
|
@@ -46,6 +48,5 @@ exports.CheckboxBox = styled_components_1.default.div `
|
|
|
46
48
|
: isActive
|
|
47
49
|
? config.color.focus.boxBorder
|
|
48
50
|
: config.color.hover.boxBorder};
|
|
49
|
-
|
|
50
51
|
}
|
|
51
52
|
`;
|
|
@@ -8,7 +8,7 @@ const react_1 = __importDefault(require("react"));
|
|
|
8
8
|
const styled_components_1 = require("styled-components");
|
|
9
9
|
const config_1 = require("../../config");
|
|
10
10
|
const Aligment_1 = require("../Aligment");
|
|
11
|
-
const
|
|
11
|
+
const List_styles_1 = require("./List.styles");
|
|
12
12
|
const Icon_1 = require("../Icon");
|
|
13
13
|
const Checkbox_1 = require("../Checkbox");
|
|
14
14
|
const DropdownMenu_1 = require("../DropdownMenu");
|
|
@@ -84,13 +84,13 @@ const List = ({ theme, themeVariant = 'default', items, handleChange, handleSele
|
|
|
84
84
|
const renderRow = (row, level) => {
|
|
85
85
|
const rowHaveStatus = row.statusDone || row.statusError || row.statusWarnning;
|
|
86
86
|
return (react_1.default.createElement(styled_components_1.ThemeProvider, { theme: resolvedTheme },
|
|
87
|
-
react_1.default.createElement(
|
|
87
|
+
react_1.default.createElement(List_styles_1.ListRowRoot, { theme: resolvedTheme, config: checkboxConfig,
|
|
88
88
|
// action={}
|
|
89
89
|
level: level },
|
|
90
|
-
react_1.default.createElement(
|
|
90
|
+
react_1.default.createElement(List_styles_1.ListRow, { theme: resolvedTheme, config: checkboxConfig, isSelected: isSelectable && selected ? selected === row.id : false },
|
|
91
91
|
react_1.default.createElement(react_1.default.Fragment, null,
|
|
92
92
|
react_1.default.createElement(Aligment_1.Aligment, { justify: "start-flex", gap: checkboxConfig.size.gap, align: "center" },
|
|
93
|
-
isCollapsable && (react_1.default.createElement(
|
|
93
|
+
isCollapsable && (react_1.default.createElement(List_styles_1.ListIconWrapper, { theme: resolvedTheme, config: checkboxConfig, isExtended: row.extend || false, onClick: (e) => {
|
|
94
94
|
e.stopPropagation();
|
|
95
95
|
} },
|
|
96
96
|
row.children.length !== 0 && (react_1.default.createElement(Icon_1.Icon, { name: "chevron_down", onClick: () => showRow(row.id), hoverBackground: "transparent" })),
|
|
@@ -111,16 +111,16 @@ const List = ({ theme, themeVariant = 'default', items, handleChange, handleSele
|
|
|
111
111
|
: checkboxConfig.color.status.success })))),
|
|
112
112
|
isCheckbox && (react_1.default.createElement("div", { onClick: (e) => e.stopPropagation() },
|
|
113
113
|
react_1.default.createElement(Checkbox_1.Checkbox, { handleClick: () => handleClick(row), value: getValue(row), isIntermedian: getIntermedian(row), size: "sm" }))),
|
|
114
|
-
row.value),
|
|
115
|
-
react_1.default.createElement(
|
|
116
|
-
row.children.length > 0 && (react_1.default.createElement(
|
|
114
|
+
react_1.default.createElement(List_styles_1.ListValue, { theme: resolvedTheme, config: checkboxConfig }, row.value)),
|
|
115
|
+
react_1.default.createElement(List_styles_1.ListRowOptionsWrapper, { onClick: (e) => e.stopPropagation() }, haveMoreOptions && levelActions[level]?.moreActions && (react_1.default.createElement(DropdownMenu_1.DropdownMenu, { options: levelActions[level]?.moreActions || [], targetID: row.id, position: 'right' })))))),
|
|
116
|
+
row.children.length > 0 && (react_1.default.createElement(List_styles_1.ListRowExtend, { isExtended: row.extend || false },
|
|
117
117
|
react_1.default.createElement("div", null, row.children.map((_chiledRow) => {
|
|
118
118
|
return renderRow(_chiledRow, level + 1);
|
|
119
119
|
}))))));
|
|
120
120
|
};
|
|
121
121
|
let level = 0;
|
|
122
122
|
return (react_1.default.createElement(styled_components_1.ThemeProvider, { theme: resolvedTheme },
|
|
123
|
-
react_1.default.createElement(
|
|
123
|
+
react_1.default.createElement(List_styles_1.ListRoot, { theme: resolvedTheme, config: checkboxConfig },
|
|
124
124
|
react_1.default.createElement(Aligment_1.Aligment, { direction: "column", width: "100%", align: "flex-start" }, items.map((_row) => {
|
|
125
125
|
return renderRow(_row, level);
|
|
126
126
|
})))));
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ListRowOptionsWrapper = exports.ListRowExtend = exports.ListIconWrapper = exports.ListRow = exports.ListRowRoot = exports.ListRoot = void 0;
|
|
6
|
+
exports.ListValue = exports.ListRowOptionsWrapper = exports.ListRowExtend = exports.ListIconWrapper = exports.ListRow = exports.ListRowRoot = exports.ListRoot = void 0;
|
|
7
7
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
8
|
exports.ListRoot = styled_components_1.default.div `
|
|
9
9
|
width: 100%;
|
|
@@ -66,3 +66,9 @@ exports.ListRowExtend = styled_components_1.default.div `
|
|
|
66
66
|
exports.ListRowOptionsWrapper = styled_components_1.default.div `
|
|
67
67
|
display: flex;
|
|
68
68
|
`;
|
|
69
|
+
exports.ListValue = styled_components_1.default.div `
|
|
70
|
+
font-weight: normal;
|
|
71
|
+
line-height: ${({ config }) => config.size.lineHeight}px;
|
|
72
|
+
font-size: ${({ theme, config }) => config.size.font}px;
|
|
73
|
+
color: ${({ theme, config }) => config.color.default.text};
|
|
74
|
+
`;
|
|
@@ -66,7 +66,7 @@ exports.ModalOverlayer = styled_components_1.default.div `
|
|
|
66
66
|
padding: ${({ config, theme }) => config.size.common.overlayerPadding}px;
|
|
67
67
|
width: 100%;
|
|
68
68
|
position: fixed;
|
|
69
|
-
z-index: ${({ config, theme }) => config.size.common.zIndex
|
|
69
|
+
z-index: ${({ config, theme }) => config.size.common.zIndex};
|
|
70
70
|
`;
|
|
71
71
|
exports.ModalRoot = styled_components_1.default.div `
|
|
72
72
|
box-sizing: border-box;
|
|
@@ -61,6 +61,6 @@ const Pagination = ({ theme, themeVariant = 'default', currentPage, totalPages,
|
|
|
61
61
|
if (!isNaN(num) && num > 0) {
|
|
62
62
|
onPageSizeChange(num);
|
|
63
63
|
}
|
|
64
|
-
}, name: "pageSize", value: String(pageSize), options: dropdownOptions, width: 'auto', componentWidth: '
|
|
64
|
+
}, name: "pageSize", value: String(pageSize), options: dropdownOptions, width: 'auto', componentWidth: '80px' }))));
|
|
65
65
|
};
|
|
66
66
|
exports.Pagination = Pagination;
|
|
@@ -7,9 +7,9 @@ exports.PaginationDropdownWrapper = exports.PaginationItem = exports.PaginationI
|
|
|
7
7
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
8
|
exports.PaginationRoot = styled_components_1.default.div `
|
|
9
9
|
display: flex;
|
|
10
|
-
justify-content:
|
|
10
|
+
justify-content: flex-end;
|
|
11
11
|
align-items: center;
|
|
12
|
-
width:
|
|
12
|
+
width: auto;
|
|
13
13
|
box-sizing: border-box;
|
|
14
14
|
height: ${({ theme, config }) => config.size.paginationHeight}px;
|
|
15
15
|
gap: ${({ theme, config }) => config.size.elementGap}px;
|
|
@@ -18,7 +18,7 @@ exports.PaginationItemWrapper = styled_components_1.default.div `
|
|
|
18
18
|
display: flex;
|
|
19
19
|
align-items: center;
|
|
20
20
|
justify-content: flex-start;
|
|
21
|
-
width:
|
|
21
|
+
width:auto;
|
|
22
22
|
gap: ${({ theme, config }) => config.size.itemGap}px;
|
|
23
23
|
`;
|
|
24
24
|
exports.PaginationItem = styled_components_1.default.button `Ś
|
|
@@ -225,14 +225,14 @@ exports.measurements = {
|
|
|
225
225
|
},
|
|
226
226
|
table: {
|
|
227
227
|
sm: 80,
|
|
228
|
-
md:
|
|
228
|
+
md: 160,
|
|
229
229
|
lg: 240,
|
|
230
230
|
},
|
|
231
231
|
},
|
|
232
232
|
},
|
|
233
233
|
zIndex: {
|
|
234
234
|
dropdown: 800,
|
|
235
|
-
modal:
|
|
235
|
+
modal: 1001,
|
|
236
236
|
sidepanel: 900,
|
|
237
237
|
sidepanelOverlayer: 850,
|
|
238
238
|
},
|
|
@@ -1362,13 +1362,12 @@ const createComponentsConfig = (theme = 'default') => {
|
|
|
1362
1362
|
color: {
|
|
1363
1363
|
default: {
|
|
1364
1364
|
background: Theme.surface.default,
|
|
1365
|
-
text: Theme.text.primary,
|
|
1366
1365
|
counterText: Theme.text.inverse,
|
|
1367
1366
|
counterBackground: Theme.action.primary.default,
|
|
1368
1367
|
headerText: Theme.text.secondary,
|
|
1369
1368
|
},
|
|
1370
1369
|
hover: {
|
|
1371
|
-
background: Theme.surface.
|
|
1370
|
+
background: Theme.surface.hover,
|
|
1372
1371
|
activeBackground: Theme.action.primary.selectedHover,
|
|
1373
1372
|
clearText: Theme.action.primary.default,
|
|
1374
1373
|
},
|
|
@@ -25,6 +25,7 @@ export const ButtonRoot = styled.div `
|
|
|
25
25
|
justify-content: center;
|
|
26
26
|
white-space: nowrap;
|
|
27
27
|
flex-shrink: 0;
|
|
28
|
+
font-weight: normal;
|
|
28
29
|
width: auto;
|
|
29
30
|
min-width: ${({ config, size }) => config.sizes[size].minWidth}px;
|
|
30
31
|
height: ${({ config, size }) => config.sizes[size].height}px;
|
|
@@ -21,7 +21,7 @@ export const Checkbox = ({ name, value = false, size = 'md', label, labelPositio
|
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
return (React.createElement(ComponentRoot, { labelPosition: labelPosition, size: size, disabled: isDisabled, error: error, readOnly: false, required: required, optional: optional, optionalLabel: optionalLabel, helperText: helperText, themeVariant: themeVariant, theme: resolvedTheme, componentConfig: checkboxConfig, label: label, isActive: value, labelInversed: labelInversed, smallSize: true },
|
|
24
|
-
React.createElement(CheckboxRoot, { onClick: onClick, isDisabled: isDisabled },
|
|
24
|
+
React.createElement(CheckboxRoot, { onClick: onClick, isDisabled: isDisabled, id: 'dupa' },
|
|
25
25
|
React.createElement(CheckboxBox, { theme: resolvedTheme, config: checkboxConfig, size: size, isDisabled: isDisabled, isIntermedian: isIntermedian, isActive: value }, (value || isIntermedian) && (React.createElement("svg", { width: resolvedSize.iconSize, height: resolvedSize.iconSize, viewBox: '0 0 24 24', preserveAspectRatio: "xMidYMid meet", x: "0", y: "0", name: name },
|
|
26
26
|
React.createElement("path", { d: iconName, fill: isDisabled
|
|
27
27
|
? checkboxConfig.color.disabled.icon
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
export const CheckboxRoot = styled.div `
|
|
3
|
+
box-sizing: border-box;
|
|
3
4
|
display: flex;
|
|
4
5
|
align-items: center;
|
|
5
6
|
justify-content: start-flex;
|
|
@@ -8,6 +9,7 @@ export const CheckboxRoot = styled.div `
|
|
|
8
9
|
cursor: ${({ isDisabled }) => (isDisabled ? 'not-allowed' : 'pointer')};
|
|
9
10
|
`;
|
|
10
11
|
export const CheckboxBox = styled.div `
|
|
12
|
+
box-sizing: border-box;
|
|
11
13
|
display: flex;
|
|
12
14
|
align-content: center;
|
|
13
15
|
align-items: center;
|
|
@@ -25,14 +27,14 @@ export const CheckboxBox = styled.div `
|
|
|
25
27
|
: config.color.default.boxBorder};
|
|
26
28
|
background: ${({ theme, config, isActive, isDisabled, isIntermedian }) => isDisabled
|
|
27
29
|
? config.color.disabled.boxBackground
|
|
28
|
-
: isIntermedian
|
|
29
|
-
config.color.intermedian.boxBackground
|
|
30
|
+
: isIntermedian
|
|
31
|
+
? config.color.intermedian.boxBackground
|
|
30
32
|
: isActive
|
|
31
33
|
? config.color.focus.boxBackground
|
|
32
34
|
: config.color.default.background};
|
|
33
35
|
border-radius: ${({ config, size }) => config.size[size].radius}px;
|
|
34
36
|
cursor: ${({ isDisabled }) => (isDisabled ? 'not-allowed' : 'pointer')};
|
|
35
|
-
:hover{
|
|
37
|
+
:hover {
|
|
36
38
|
border-color: ${({ theme, config, isActive, isDisabled, isIntermedian }) => isDisabled
|
|
37
39
|
? config.color.disabled.boxBorder
|
|
38
40
|
: isIntermedian
|
|
@@ -40,6 +42,5 @@ export const CheckboxBox = styled.div `
|
|
|
40
42
|
: isActive
|
|
41
43
|
? config.color.focus.boxBorder
|
|
42
44
|
: config.color.hover.boxBorder};
|
|
43
|
-
|
|
44
45
|
}
|
|
45
46
|
`;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { ThemeProvider } from 'styled-components';
|
|
3
3
|
import { resolveThemeWithComponentsConfig } from '../../config';
|
|
4
4
|
import { Aligment } from '../Aligment';
|
|
5
|
-
import { ListIconWrapper, ListRoot, ListRow, ListRowExtend, ListRowOptionsWrapper, ListRowRoot, } from './
|
|
5
|
+
import { ListIconWrapper, ListRoot, ListRow, ListRowExtend, ListRowOptionsWrapper, ListRowRoot, ListValue, } from './List.styles';
|
|
6
6
|
import { Icon } from '../Icon';
|
|
7
7
|
import { Checkbox } from '../Checkbox';
|
|
8
8
|
import { DropdownMenu } from '../DropdownMenu';
|
|
@@ -105,7 +105,7 @@ export const List = ({ theme, themeVariant = 'default', items, handleChange, han
|
|
|
105
105
|
: checkboxConfig.color.status.success })))),
|
|
106
106
|
isCheckbox && (React.createElement("div", { onClick: (e) => e.stopPropagation() },
|
|
107
107
|
React.createElement(Checkbox, { handleClick: () => handleClick(row), value: getValue(row), isIntermedian: getIntermedian(row), size: "sm" }))),
|
|
108
|
-
row.value),
|
|
108
|
+
React.createElement(ListValue, { theme: resolvedTheme, config: checkboxConfig }, row.value)),
|
|
109
109
|
React.createElement(ListRowOptionsWrapper, { onClick: (e) => e.stopPropagation() }, haveMoreOptions && levelActions[level]?.moreActions && (React.createElement(DropdownMenu, { options: levelActions[level]?.moreActions || [], targetID: row.id, position: 'right' })))))),
|
|
110
110
|
row.children.length > 0 && (React.createElement(ListRowExtend, { isExtended: row.extend || false },
|
|
111
111
|
React.createElement("div", null, row.children.map((_chiledRow) => {
|
|
@@ -60,3 +60,9 @@ export const ListRowExtend = styled.div `
|
|
|
60
60
|
export const ListRowOptionsWrapper = styled.div `
|
|
61
61
|
display: flex;
|
|
62
62
|
`;
|
|
63
|
+
export const ListValue = styled.div `
|
|
64
|
+
font-weight: normal;
|
|
65
|
+
line-height: ${({ config }) => config.size.lineHeight}px;
|
|
66
|
+
font-size: ${({ theme, config }) => config.size.font}px;
|
|
67
|
+
color: ${({ theme, config }) => config.color.default.text};
|
|
68
|
+
`;
|
|
@@ -30,7 +30,7 @@ export const ModalOverlayer = styled.div `
|
|
|
30
30
|
padding: ${({ config, theme }) => config.size.common.overlayerPadding}px;
|
|
31
31
|
width: 100%;
|
|
32
32
|
position: fixed;
|
|
33
|
-
z-index: ${({ config, theme }) => config.size.common.zIndex
|
|
33
|
+
z-index: ${({ config, theme }) => config.size.common.zIndex};
|
|
34
34
|
`;
|
|
35
35
|
export const ModalRoot = styled.div `
|
|
36
36
|
box-sizing: border-box;
|
|
@@ -55,5 +55,5 @@ export const Pagination = ({ theme, themeVariant = 'default', currentPage, total
|
|
|
55
55
|
if (!isNaN(num) && num > 0) {
|
|
56
56
|
onPageSizeChange(num);
|
|
57
57
|
}
|
|
58
|
-
}, name: "pageSize", value: String(pageSize), options: dropdownOptions, width: 'auto', componentWidth: '
|
|
58
|
+
}, name: "pageSize", value: String(pageSize), options: dropdownOptions, width: 'auto', componentWidth: '80px' }))));
|
|
59
59
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
export const PaginationRoot = styled.div `
|
|
3
3
|
display: flex;
|
|
4
|
-
justify-content:
|
|
4
|
+
justify-content: flex-end;
|
|
5
5
|
align-items: center;
|
|
6
|
-
width:
|
|
6
|
+
width: auto;
|
|
7
7
|
box-sizing: border-box;
|
|
8
8
|
height: ${({ theme, config }) => config.size.paginationHeight}px;
|
|
9
9
|
gap: ${({ theme, config }) => config.size.elementGap}px;
|
|
@@ -12,7 +12,7 @@ export const PaginationItemWrapper = styled.div `
|
|
|
12
12
|
display: flex;
|
|
13
13
|
align-items: center;
|
|
14
14
|
justify-content: flex-start;
|
|
15
|
-
width:
|
|
15
|
+
width:auto;
|
|
16
16
|
gap: ${({ theme, config }) => config.size.itemGap}px;
|
|
17
17
|
`;
|
|
18
18
|
export const PaginationItem = styled.button `Ś
|
|
@@ -221,14 +221,14 @@ export const measurements = {
|
|
|
221
221
|
},
|
|
222
222
|
table: {
|
|
223
223
|
sm: 80,
|
|
224
|
-
md:
|
|
224
|
+
md: 160,
|
|
225
225
|
lg: 240,
|
|
226
226
|
},
|
|
227
227
|
},
|
|
228
228
|
},
|
|
229
229
|
zIndex: {
|
|
230
230
|
dropdown: 800,
|
|
231
|
-
modal:
|
|
231
|
+
modal: 1001,
|
|
232
232
|
sidepanel: 900,
|
|
233
233
|
sidepanelOverlayer: 850,
|
|
234
234
|
},
|
|
@@ -1357,13 +1357,12 @@ export const createComponentsConfig = (theme = 'default') => {
|
|
|
1357
1357
|
color: {
|
|
1358
1358
|
default: {
|
|
1359
1359
|
background: Theme.surface.default,
|
|
1360
|
-
text: Theme.text.primary,
|
|
1361
1360
|
counterText: Theme.text.inverse,
|
|
1362
1361
|
counterBackground: Theme.action.primary.default,
|
|
1363
1362
|
headerText: Theme.text.secondary,
|
|
1364
1363
|
},
|
|
1365
1364
|
hover: {
|
|
1366
|
-
background: Theme.surface.
|
|
1365
|
+
background: Theme.surface.hover,
|
|
1367
1366
|
activeBackground: Theme.action.primary.selectedHover,
|
|
1368
1367
|
clearText: Theme.action.primary.default,
|
|
1369
1368
|
},
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
+
import { AppTheme } from 'config/themes';
|
|
1
2
|
interface IListRoot {
|
|
2
|
-
theme:
|
|
3
|
+
theme: AppTheme;
|
|
3
4
|
config: any;
|
|
4
5
|
}
|
|
5
6
|
export declare const ListRoot: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, IListRoot, never>;
|
|
6
7
|
interface IListRowRoot {
|
|
7
|
-
theme:
|
|
8
|
+
theme: AppTheme;
|
|
8
9
|
config: any;
|
|
9
10
|
level: number;
|
|
10
11
|
}
|
|
11
12
|
export declare const ListRowRoot: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, IListRowRoot, never>;
|
|
12
13
|
interface IListRow {
|
|
13
|
-
theme:
|
|
14
|
+
theme: AppTheme;
|
|
14
15
|
config: any;
|
|
15
16
|
isSelected: boolean;
|
|
16
17
|
}
|
|
17
18
|
export declare const ListRow: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, IListRow, never>;
|
|
18
19
|
interface IListIconWrapper {
|
|
19
|
-
theme:
|
|
20
|
+
theme: AppTheme;
|
|
20
21
|
isExtended: boolean;
|
|
21
22
|
config: any;
|
|
22
23
|
}
|
|
@@ -26,4 +27,9 @@ interface IListRowExtend {
|
|
|
26
27
|
}
|
|
27
28
|
export declare const ListRowExtend: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, IListRowExtend, never>;
|
|
28
29
|
export declare const ListRowOptionsWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
30
|
+
interface IListValueProps {
|
|
31
|
+
theme: AppTheme;
|
|
32
|
+
config: any;
|
|
33
|
+
}
|
|
34
|
+
export declare const ListValue: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, IListValueProps, never>;
|
|
29
35
|
export {};
|
|
@@ -218,14 +218,14 @@ export declare const measurements: {
|
|
|
218
218
|
};
|
|
219
219
|
readonly table: {
|
|
220
220
|
readonly sm: 80;
|
|
221
|
-
readonly md:
|
|
221
|
+
readonly md: 160;
|
|
222
222
|
readonly lg: 240;
|
|
223
223
|
};
|
|
224
224
|
};
|
|
225
225
|
};
|
|
226
226
|
readonly zIndex: {
|
|
227
227
|
readonly dropdown: 800;
|
|
228
|
-
readonly modal:
|
|
228
|
+
readonly modal: 1001;
|
|
229
229
|
readonly sidepanel: 900;
|
|
230
230
|
readonly sidepanelOverlayer: 850;
|
|
231
231
|
};
|
|
@@ -987,7 +987,7 @@ export declare const createComponentsConfig: (theme?: ThemeName | AppTheme) => {
|
|
|
987
987
|
paddingX: 16;
|
|
988
988
|
paddingY: 16;
|
|
989
989
|
overlayerPadding: 20;
|
|
990
|
-
zIndex:
|
|
990
|
+
zIndex: 1001;
|
|
991
991
|
};
|
|
992
992
|
sm: {
|
|
993
993
|
width: "500px";
|
|
@@ -1176,7 +1176,7 @@ export declare const createComponentsConfig: (theme?: ThemeName | AppTheme) => {
|
|
|
1176
1176
|
};
|
|
1177
1177
|
common: {
|
|
1178
1178
|
iconGap: 8;
|
|
1179
|
-
zIndex:
|
|
1179
|
+
zIndex: 1001;
|
|
1180
1180
|
};
|
|
1181
1181
|
};
|
|
1182
1182
|
color: {
|
|
@@ -1212,7 +1212,7 @@ export declare const createComponentsConfig: (theme?: ThemeName | AppTheme) => {
|
|
|
1212
1212
|
calendarCard: {
|
|
1213
1213
|
size: {
|
|
1214
1214
|
width: 320;
|
|
1215
|
-
zIndex:
|
|
1215
|
+
zIndex: 1001;
|
|
1216
1216
|
padding: 16;
|
|
1217
1217
|
borderRadius: 6;
|
|
1218
1218
|
overlayerZIndex: 850;
|
|
@@ -1400,13 +1400,12 @@ export declare const createComponentsConfig: (theme?: ThemeName | AppTheme) => {
|
|
|
1400
1400
|
color: {
|
|
1401
1401
|
default: {
|
|
1402
1402
|
background: "#FFFFFF";
|
|
1403
|
-
text: "#111827";
|
|
1404
1403
|
counterText: "#FFFFFF";
|
|
1405
1404
|
counterBackground: "#3B90CB";
|
|
1406
1405
|
headerText: "#4B5563";
|
|
1407
1406
|
};
|
|
1408
1407
|
hover: {
|
|
1409
|
-
background: "#
|
|
1408
|
+
background: "#F2F8FD";
|
|
1410
1409
|
activeBackground: "#9FD0EC";
|
|
1411
1410
|
clearText: "#3B90CB";
|
|
1412
1411
|
};
|
|
@@ -1435,7 +1434,7 @@ export declare const createComponentsConfig: (theme?: ThemeName | AppTheme) => {
|
|
|
1435
1434
|
width: 80;
|
|
1436
1435
|
};
|
|
1437
1436
|
md: {
|
|
1438
|
-
width:
|
|
1437
|
+
width: 160;
|
|
1439
1438
|
};
|
|
1440
1439
|
lg: {
|
|
1441
1440
|
width: 240;
|
|
@@ -2309,7 +2308,7 @@ export declare const componentsConfig: {
|
|
|
2309
2308
|
paddingX: 16;
|
|
2310
2309
|
paddingY: 16;
|
|
2311
2310
|
overlayerPadding: 20;
|
|
2312
|
-
zIndex:
|
|
2311
|
+
zIndex: 1001;
|
|
2313
2312
|
};
|
|
2314
2313
|
sm: {
|
|
2315
2314
|
width: "500px";
|
|
@@ -2498,7 +2497,7 @@ export declare const componentsConfig: {
|
|
|
2498
2497
|
};
|
|
2499
2498
|
common: {
|
|
2500
2499
|
iconGap: 8;
|
|
2501
|
-
zIndex:
|
|
2500
|
+
zIndex: 1001;
|
|
2502
2501
|
};
|
|
2503
2502
|
};
|
|
2504
2503
|
color: {
|
|
@@ -2534,7 +2533,7 @@ export declare const componentsConfig: {
|
|
|
2534
2533
|
calendarCard: {
|
|
2535
2534
|
size: {
|
|
2536
2535
|
width: 320;
|
|
2537
|
-
zIndex:
|
|
2536
|
+
zIndex: 1001;
|
|
2538
2537
|
padding: 16;
|
|
2539
2538
|
borderRadius: 6;
|
|
2540
2539
|
overlayerZIndex: 850;
|
|
@@ -2722,13 +2721,12 @@ export declare const componentsConfig: {
|
|
|
2722
2721
|
color: {
|
|
2723
2722
|
default: {
|
|
2724
2723
|
background: "#FFFFFF";
|
|
2725
|
-
text: "#111827";
|
|
2726
2724
|
counterText: "#FFFFFF";
|
|
2727
2725
|
counterBackground: "#3B90CB";
|
|
2728
2726
|
headerText: "#4B5563";
|
|
2729
2727
|
};
|
|
2730
2728
|
hover: {
|
|
2731
|
-
background: "#
|
|
2729
|
+
background: "#F2F8FD";
|
|
2732
2730
|
activeBackground: "#9FD0EC";
|
|
2733
2731
|
clearText: "#3B90CB";
|
|
2734
2732
|
};
|
|
@@ -2757,7 +2755,7 @@ export declare const componentsConfig: {
|
|
|
2757
2755
|
width: 80;
|
|
2758
2756
|
};
|
|
2759
2757
|
md: {
|
|
2760
|
-
width:
|
|
2758
|
+
width: 160;
|
|
2761
2759
|
};
|
|
2762
2760
|
lg: {
|
|
2763
2761
|
width: 240;
|
|
@@ -3019,14 +3017,14 @@ export declare const createConfig: (theme?: ThemeName | AppTheme) => {
|
|
|
3019
3017
|
};
|
|
3020
3018
|
readonly table: {
|
|
3021
3019
|
readonly sm: 80;
|
|
3022
|
-
readonly md:
|
|
3020
|
+
readonly md: 160;
|
|
3023
3021
|
readonly lg: 240;
|
|
3024
3022
|
};
|
|
3025
3023
|
};
|
|
3026
3024
|
};
|
|
3027
3025
|
readonly zIndex: {
|
|
3028
3026
|
readonly dropdown: 800;
|
|
3029
|
-
readonly modal:
|
|
3027
|
+
readonly modal: 1001;
|
|
3030
3028
|
readonly sidepanel: 900;
|
|
3031
3029
|
readonly sidepanelOverlayer: 850;
|
|
3032
3030
|
};
|
|
@@ -3774,7 +3772,7 @@ export declare const createConfig: (theme?: ThemeName | AppTheme) => {
|
|
|
3774
3772
|
paddingX: 16;
|
|
3775
3773
|
paddingY: 16;
|
|
3776
3774
|
overlayerPadding: 20;
|
|
3777
|
-
zIndex:
|
|
3775
|
+
zIndex: 1001;
|
|
3778
3776
|
};
|
|
3779
3777
|
sm: {
|
|
3780
3778
|
width: "500px";
|
|
@@ -3963,7 +3961,7 @@ export declare const createConfig: (theme?: ThemeName | AppTheme) => {
|
|
|
3963
3961
|
};
|
|
3964
3962
|
common: {
|
|
3965
3963
|
iconGap: 8;
|
|
3966
|
-
zIndex:
|
|
3964
|
+
zIndex: 1001;
|
|
3967
3965
|
};
|
|
3968
3966
|
};
|
|
3969
3967
|
color: {
|
|
@@ -3999,7 +3997,7 @@ export declare const createConfig: (theme?: ThemeName | AppTheme) => {
|
|
|
3999
3997
|
calendarCard: {
|
|
4000
3998
|
size: {
|
|
4001
3999
|
width: 320;
|
|
4002
|
-
zIndex:
|
|
4000
|
+
zIndex: 1001;
|
|
4003
4001
|
padding: 16;
|
|
4004
4002
|
borderRadius: 6;
|
|
4005
4003
|
overlayerZIndex: 850;
|
|
@@ -4187,13 +4185,12 @@ export declare const createConfig: (theme?: ThemeName | AppTheme) => {
|
|
|
4187
4185
|
color: {
|
|
4188
4186
|
default: {
|
|
4189
4187
|
background: "#FFFFFF";
|
|
4190
|
-
text: "#111827";
|
|
4191
4188
|
counterText: "#FFFFFF";
|
|
4192
4189
|
counterBackground: "#3B90CB";
|
|
4193
4190
|
headerText: "#4B5563";
|
|
4194
4191
|
};
|
|
4195
4192
|
hover: {
|
|
4196
|
-
background: "#
|
|
4193
|
+
background: "#F2F8FD";
|
|
4197
4194
|
activeBackground: "#9FD0EC";
|
|
4198
4195
|
clearText: "#3B90CB";
|
|
4199
4196
|
};
|
|
@@ -4222,7 +4219,7 @@ export declare const createConfig: (theme?: ThemeName | AppTheme) => {
|
|
|
4222
4219
|
width: 80;
|
|
4223
4220
|
};
|
|
4224
4221
|
md: {
|
|
4225
|
-
width:
|
|
4222
|
+
width: 160;
|
|
4226
4223
|
};
|
|
4227
4224
|
lg: {
|
|
4228
4225
|
width: 240;
|