nntc-ui 0.0.58 → 0.0.59
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/{chunk-3HESG6EU.js → chunk-64SOJQ5A.js} +23 -5
- package/icons/index.js +1 -1
- package/index.js +8 -6
- package/package.json +1 -1
|
@@ -92,13 +92,31 @@ var FileUploadIcon = (props) => /* @__PURE__ */ jsx17(Icon, { ...props, children
|
|
|
92
92
|
|
|
93
93
|
// src/icons/FilterIcon.tsx
|
|
94
94
|
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
95
|
-
var FilterIcon = (props) => /* @__PURE__ */ jsx18(Icon, { ...props, children: /* @__PURE__ */ jsx18(
|
|
95
|
+
var FilterIcon = (props) => /* @__PURE__ */ jsx18(Icon, { ...props, children: /* @__PURE__ */ jsx18(
|
|
96
|
+
"path",
|
|
97
|
+
{
|
|
98
|
+
d: `M4.24993 5.61C6.26993 8.2 9.99993 13 9.99993 13V19C9.99993 19.55 10.4499
|
|
99
|
+
20 10.9999 20H12.9999C13.5499 20 13.9999 19.55 13.9999 19V13C13.9999 13 17.7199 8.2
|
|
100
|
+
19.7399 5.61C20.2499 4.95 19.7799 4 18.9499 4H5.03993C4.20993 4 3.73993 4.95 4.24993 5.61Z`
|
|
101
|
+
}
|
|
102
|
+
) });
|
|
96
103
|
|
|
97
104
|
// src/icons/FilterClearIcon.tsx
|
|
98
105
|
import { jsx as jsx19, jsxs } from "react/jsx-runtime";
|
|
99
106
|
var FilterClearIcon = (props) => /* @__PURE__ */ jsxs(Icon, { ...props, children: [
|
|
100
|
-
/* @__PURE__ */ jsx19("
|
|
101
|
-
|
|
107
|
+
/* @__PURE__ */ jsx19("g", { "clip-path": "url(#clip0_851_25267)", children: /* @__PURE__ */ jsx19(
|
|
108
|
+
"path",
|
|
109
|
+
{
|
|
110
|
+
"fill-rule": "evenodd",
|
|
111
|
+
"clip-rule": "evenodd",
|
|
112
|
+
d: `M7.00015 4L3.46792 0.467773L2.05371 1.88199L4.4002 4.22847C4.01467 4.55071 3.89485 5.1506 4.24984
|
|
113
|
+
5.61C6.26984 8.2 9.99984 13 9.99984 13V19C9.99984 19.55 10.4498 20 10.9998 20H12.9998C13.5498 20
|
|
114
|
+
13.9998 19.55 13.9998 19V13.8281L18.9708 18.7991L20.385 17.3849L20.3849 17.3847L14.8734 11.8733L7.00015
|
|
115
|
+
4ZM16.1091 10.2805C17.2922 8.75591 18.7289 6.90619 19.7398 5.61C20.2498 4.95 19.7798 4 18.9498
|
|
116
|
+
4H9.82861L16.1091 10.2805Z`
|
|
117
|
+
}
|
|
118
|
+
) }),
|
|
119
|
+
/* @__PURE__ */ jsx19("defs", { children: /* @__PURE__ */ jsx19("clipPath", { id: "clip0_851_25267", children: /* @__PURE__ */ jsx19("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
102
120
|
] });
|
|
103
121
|
|
|
104
122
|
// src/icons/InfoIcon.tsx
|
|
@@ -144,11 +162,11 @@ var SettingsIcon = (props) => /* @__PURE__ */ jsx26(Icon, { ...props, children:
|
|
|
144
162
|
|
|
145
163
|
// src/icons/SortDownIcon.tsx
|
|
146
164
|
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
147
|
-
var SortDownIcon = (props) => /* @__PURE__ */ jsx27(Icon, { ...props, children: /* @__PURE__ */ jsx27("path", { d: "
|
|
165
|
+
var SortDownIcon = (props) => /* @__PURE__ */ jsx27(Icon, { ...props, children: /* @__PURE__ */ jsx27("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M3 18V16H21V18H3ZM3 6H9V8H3V6ZM15 11H3V13H15V11Z" }) });
|
|
148
166
|
|
|
149
167
|
// src/icons/SortUpIcon.tsx
|
|
150
168
|
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
151
|
-
var SortUpIcon = (props) => /* @__PURE__ */ jsx28(Icon, { ...props, children: /* @__PURE__ */ jsx28("path", {
|
|
169
|
+
var SortUpIcon = (props) => /* @__PURE__ */ jsx28(Icon, { ...props, children: /* @__PURE__ */ jsx28("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M3 6V8H21V6H3ZM3 18H9V16H3V18ZM15 13H3V11H15V13Z" }) });
|
|
152
170
|
|
|
153
171
|
// src/icons/TableChartIcon.tsx
|
|
154
172
|
import { jsx as jsx29 } from "react/jsx-runtime";
|
package/icons/index.js
CHANGED
package/index.js
CHANGED
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
SortDownIcon,
|
|
17
17
|
SortUpIcon,
|
|
18
18
|
__export
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-64SOJQ5A.js";
|
|
20
20
|
|
|
21
21
|
// src/components/common/Button/Button.tsx
|
|
22
22
|
import classnames from "classnames";
|
|
@@ -3100,7 +3100,9 @@ function HeaderDropdown(props) {
|
|
|
3100
3100
|
return newResult;
|
|
3101
3101
|
});
|
|
3102
3102
|
};
|
|
3103
|
-
const hasAnyFilter = Object.keys(filterSelectedItems).length
|
|
3103
|
+
const hasAnyFilter = Object.keys(filterSelectedItems).length;
|
|
3104
|
+
const sortUp = sortBy.some((sb) => sb.columnName === headerResultName && sb.direction === "desc");
|
|
3105
|
+
const sortDown = sortBy.some((sb) => sb.columnName === headerResultName && sb.direction === "asc");
|
|
3104
3106
|
const { t } = useTranslation();
|
|
3105
3107
|
return /* @__PURE__ */ jsxs18("div", { className: classnames21(root18), children: [
|
|
3106
3108
|
additionalContent?.(headerResultName),
|
|
@@ -3133,14 +3135,14 @@ function HeaderDropdown(props) {
|
|
|
3133
3135
|
{
|
|
3134
3136
|
type: "item",
|
|
3135
3137
|
name: t("\u041F\u043E \u0432\u043E\u0437\u0440\u0430\u0441\u0442\u0430\u043D\u0438\u044E"),
|
|
3136
|
-
icon: /* @__PURE__ */ jsx33(
|
|
3138
|
+
icon: /* @__PURE__ */ jsx33(SortDownIcon, {}),
|
|
3137
3139
|
selected: sortBy.some((sb) => sb.columnName === headerResultName && sb.direction === "asc"),
|
|
3138
3140
|
onClick: handleSortClick("asc")
|
|
3139
3141
|
},
|
|
3140
3142
|
{
|
|
3141
3143
|
type: "item",
|
|
3142
3144
|
name: t("\u041F\u043E \u0443\u0431\u044B\u0432\u0430\u043D\u0438\u044E"),
|
|
3143
|
-
icon: /* @__PURE__ */ jsx33(
|
|
3145
|
+
icon: /* @__PURE__ */ jsx33(SortUpIcon, {}),
|
|
3144
3146
|
selected: sortBy.some((sb) => sb.columnName === headerResultName && sb.direction === "desc"),
|
|
3145
3147
|
onClick: handleSortClick("desc")
|
|
3146
3148
|
}
|
|
@@ -3153,8 +3155,8 @@ function HeaderDropdown(props) {
|
|
|
3153
3155
|
{
|
|
3154
3156
|
size: "small",
|
|
3155
3157
|
variant: "text",
|
|
3156
|
-
textSecondary:
|
|
3157
|
-
icon: hasAnyFilter ? /* @__PURE__ */ jsx33(FilterIcon, {}) : /* @__PURE__ */ jsx33(ArrowDropDownIcon, {})
|
|
3158
|
+
textSecondary: !hasAnyFilter && !sortUp && !sortDown,
|
|
3159
|
+
icon: hasAnyFilter ? /* @__PURE__ */ jsx33(FilterIcon, {}) : sortUp ? /* @__PURE__ */ jsx33(SortUpIcon, {}) : sortDown ? /* @__PURE__ */ jsx33(SortDownIcon, {}) : /* @__PURE__ */ jsx33(ArrowDropDownIcon, {})
|
|
3158
3160
|
}
|
|
3159
3161
|
) })
|
|
3160
3162
|
}
|