@drivenets/design-system 0.18.0 → 0.18.1
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/CHANGELOG.md +6 -0
- package/dist/index.cjs +153 -187
- package/dist/index.d.cts +2 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +153 -187
- package/dist/index.js.map +1 -1
- package/dist/index.min.css +1 -1
- package/package.json +3 -3
- package/src/components/ds-tag-filter/ds-tag-filter.module.scss +7 -35
- package/src/components/ds-tag-filter/ds-tag-filter.tsx +34 -57
- package/src/components/ds-tag-filter/ds-tag-filter.types.ts +2 -1
- package/src/components/ds-tag-filter/hooks/use-tag-overflow-calculation.ts +13 -18
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -9058,13 +9058,8 @@ const DsDrawer = Object.assign(DsDrawerRoot, {
|
|
|
9058
9058
|
//#region src/components/ds-tag-filter/ds-tag-filter.module.scss
|
|
9059
9059
|
var ds_tag_filter_module_default = {
|
|
9060
9060
|
"actionButton": "pHs_ea_actionButton",
|
|
9061
|
+
"actions": "pHs_ea_actions",
|
|
9061
9062
|
"container": "pHs_ea_container",
|
|
9062
|
-
"expanded": "pHs_ea_expanded",
|
|
9063
|
-
"ghostButtonContent": "pHs_ea_ghostButtonContent",
|
|
9064
|
-
"header": "pHs_ea_header",
|
|
9065
|
-
"headerActions": "pHs_ea_headerActions",
|
|
9066
|
-
"itemCheckbox": "pHs_ea_itemCheckbox",
|
|
9067
|
-
"label": "pHs_ea_label",
|
|
9068
9063
|
"measurementContainer": "pHs_ea_measurementContainer",
|
|
9069
9064
|
"tagsArea": "pHs_ea_tagsArea"
|
|
9070
9065
|
};
|
|
@@ -9114,14 +9109,11 @@ function getElementMeasurements(measurementContainer) {
|
|
|
9114
9109
|
//#endregion
|
|
9115
9110
|
//#region src/components/ds-tag-filter/hooks/use-tag-overflow-calculation.ts
|
|
9116
9111
|
/**
|
|
9117
|
-
* Custom hook to calculate how many tags fit
|
|
9118
|
-
*
|
|
9119
|
-
* Tags occupy the full container width. Non-tag elements (label, clear button,
|
|
9120
|
-
* expand control) live in a separate header row and don't affect the calculation.
|
|
9112
|
+
* Custom hook to calculate how many tags fit on the first row of the tags-area.
|
|
9121
9113
|
*/
|
|
9122
9114
|
const useTagOverflowCalculation = (t0) => {
|
|
9123
9115
|
const $ = (0, react_compiler_runtime.c)(15);
|
|
9124
|
-
const {
|
|
9116
|
+
const { tagsAreaRef, measurementRef, totalItems, expanded } = t0;
|
|
9125
9117
|
let t1;
|
|
9126
9118
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
9127
9119
|
t1 = {
|
|
@@ -9132,10 +9124,10 @@ const useTagOverflowCalculation = (t0) => {
|
|
|
9132
9124
|
} else t1 = $[0];
|
|
9133
9125
|
const [state, setState] = (0, react.useState)(t1);
|
|
9134
9126
|
let t2;
|
|
9135
|
-
if ($[1] !==
|
|
9127
|
+
if ($[1] !== measurementRef || $[2] !== tagsAreaRef) {
|
|
9136
9128
|
t2 = () => {
|
|
9137
|
-
if (!
|
|
9138
|
-
const
|
|
9129
|
+
if (!tagsAreaRef.current || !measurementRef.current) return;
|
|
9130
|
+
const tagsArea = tagsAreaRef.current;
|
|
9139
9131
|
const measurementContainer = measurementRef.current;
|
|
9140
9132
|
const { tagWidths, gap } = getElementMeasurements(measurementContainer);
|
|
9141
9133
|
if (tagWidths.length === 0) {
|
|
@@ -9145,20 +9137,20 @@ const useTagOverflowCalculation = (t0) => {
|
|
|
9145
9137
|
});
|
|
9146
9138
|
return;
|
|
9147
9139
|
}
|
|
9148
|
-
const { count } = fitTagsInRow(tagWidths, getContainerAvailableWidth(
|
|
9140
|
+
const { count } = fitTagsInRow(tagWidths, getContainerAvailableWidth(tagsArea), gap);
|
|
9149
9141
|
const hasOverflow = count < tagWidths.length;
|
|
9150
9142
|
setState({
|
|
9151
9143
|
visibleTagCount: count,
|
|
9152
9144
|
hasOverflow
|
|
9153
9145
|
});
|
|
9154
9146
|
};
|
|
9155
|
-
$[1] =
|
|
9156
|
-
$[2] =
|
|
9147
|
+
$[1] = measurementRef;
|
|
9148
|
+
$[2] = tagsAreaRef;
|
|
9157
9149
|
$[3] = t2;
|
|
9158
9150
|
} else t2 = $[3];
|
|
9159
9151
|
const calculateLayout = t2;
|
|
9160
9152
|
let t3;
|
|
9161
|
-
if ($[4] !== calculateLayout || $[5] !==
|
|
9153
|
+
if ($[4] !== calculateLayout || $[5] !== tagsAreaRef) {
|
|
9162
9154
|
t3 = () => {
|
|
9163
9155
|
const rafId = requestAnimationFrame(() => {
|
|
9164
9156
|
calculateLayout();
|
|
@@ -9168,41 +9160,41 @@ const useTagOverflowCalculation = (t0) => {
|
|
|
9168
9160
|
calculateLayout();
|
|
9169
9161
|
});
|
|
9170
9162
|
});
|
|
9171
|
-
if (
|
|
9163
|
+
if (tagsAreaRef.current) resizeObserver.observe(tagsAreaRef.current);
|
|
9172
9164
|
return () => {
|
|
9173
9165
|
cancelAnimationFrame(rafId);
|
|
9174
9166
|
resizeObserver.disconnect();
|
|
9175
9167
|
};
|
|
9176
9168
|
};
|
|
9177
9169
|
$[4] = calculateLayout;
|
|
9178
|
-
$[5] =
|
|
9170
|
+
$[5] = tagsAreaRef;
|
|
9179
9171
|
$[6] = t3;
|
|
9180
9172
|
} else t3 = $[6];
|
|
9181
9173
|
let t4;
|
|
9182
|
-
if ($[7] !== calculateLayout || $[8] !==
|
|
9174
|
+
if ($[7] !== calculateLayout || $[8] !== expanded || $[9] !== measurementRef || $[10] !== tagsAreaRef || $[11] !== totalItems) {
|
|
9183
9175
|
t4 = [
|
|
9184
|
-
|
|
9176
|
+
tagsAreaRef,
|
|
9185
9177
|
measurementRef,
|
|
9186
9178
|
totalItems,
|
|
9187
9179
|
expanded,
|
|
9188
9180
|
calculateLayout
|
|
9189
9181
|
];
|
|
9190
9182
|
$[7] = calculateLayout;
|
|
9191
|
-
$[8] =
|
|
9192
|
-
$[9] =
|
|
9193
|
-
$[10] =
|
|
9183
|
+
$[8] = expanded;
|
|
9184
|
+
$[9] = measurementRef;
|
|
9185
|
+
$[10] = tagsAreaRef;
|
|
9194
9186
|
$[11] = totalItems;
|
|
9195
9187
|
$[12] = t4;
|
|
9196
9188
|
} else t4 = $[12];
|
|
9197
9189
|
(0, react.useLayoutEffect)(t3, t4);
|
|
9198
9190
|
if (expanded) {
|
|
9199
9191
|
let t5;
|
|
9200
|
-
if ($[13] !==
|
|
9192
|
+
if ($[13] !== state) {
|
|
9201
9193
|
t5 = {
|
|
9202
|
-
|
|
9194
|
+
...state,
|
|
9203
9195
|
hasOverflow: true
|
|
9204
9196
|
};
|
|
9205
|
-
$[13] =
|
|
9197
|
+
$[13] = state;
|
|
9206
9198
|
$[14] = t5;
|
|
9207
9199
|
} else t5 = $[14];
|
|
9208
9200
|
return t5;
|
|
@@ -9213,13 +9205,9 @@ const useTagOverflowCalculation = (t0) => {
|
|
|
9213
9205
|
//#region src/components/ds-tag-filter/ds-tag-filter.tsx
|
|
9214
9206
|
/**
|
|
9215
9207
|
* Design system TagFilter component
|
|
9216
|
-
*
|
|
9217
|
-
* A component for displaying active filters as tags with overflow handling.
|
|
9218
|
-
* Non-tag elements (label, expand/collapse, clear) sit in a header row.
|
|
9219
|
-
* Tags occupy the full width below, wrapping as needed.
|
|
9220
9208
|
*/
|
|
9221
9209
|
const DsTagFilter = (t0) => {
|
|
9222
|
-
const $ = (0, react_compiler_runtime.c)(
|
|
9210
|
+
const $ = (0, react_compiler_runtime.c)(55);
|
|
9223
9211
|
const { items, locale: t1, className, style, onClearAll, onItemDelete, onItemSelect, onExpand } = t0;
|
|
9224
9212
|
let t2;
|
|
9225
9213
|
if ($[0] !== t1) {
|
|
@@ -9229,12 +9217,12 @@ const DsTagFilter = (t0) => {
|
|
|
9229
9217
|
} else t2 = $[1];
|
|
9230
9218
|
const locale = t2;
|
|
9231
9219
|
const [expanded, setExpanded] = (0, react.useState)(false);
|
|
9232
|
-
const
|
|
9220
|
+
const tagsAreaRef = (0, react.useRef)(null);
|
|
9233
9221
|
const measurementRef = (0, react.useRef)(null);
|
|
9234
9222
|
let t3;
|
|
9235
9223
|
if ($[2] !== expanded || $[3] !== items.length) {
|
|
9236
9224
|
t3 = {
|
|
9237
|
-
|
|
9225
|
+
tagsAreaRef,
|
|
9238
9226
|
measurementRef,
|
|
9239
9227
|
totalItems: items.length,
|
|
9240
9228
|
expanded
|
|
@@ -9244,25 +9232,24 @@ const DsTagFilter = (t0) => {
|
|
|
9244
9232
|
$[4] = t3;
|
|
9245
9233
|
} else t3 = $[4];
|
|
9246
9234
|
const { visibleTagCount, hasOverflow } = useTagOverflowCalculation(t3);
|
|
9247
|
-
const {
|
|
9248
|
-
const
|
|
9249
|
-
const
|
|
9250
|
-
const
|
|
9251
|
-
|
|
9252
|
-
let t8;
|
|
9235
|
+
const { clearButton: t4, showMore: t5, showLess: t6 } = locale;
|
|
9236
|
+
const clearButton = t4 === void 0 ? "Clear all filters" : t4;
|
|
9237
|
+
const showMore = t5 === void 0 ? "Show more" : t5;
|
|
9238
|
+
const showLess = t6 === void 0 ? "Show less" : t6;
|
|
9239
|
+
let t7;
|
|
9253
9240
|
if ($[5] !== expanded || $[6] !== items || $[7] !== visibleTagCount) {
|
|
9254
|
-
|
|
9241
|
+
t7 = expanded ? items : items.slice(0, visibleTagCount);
|
|
9255
9242
|
$[5] = expanded;
|
|
9256
9243
|
$[6] = items;
|
|
9257
9244
|
$[7] = visibleTagCount;
|
|
9258
|
-
$[8] =
|
|
9259
|
-
} else
|
|
9260
|
-
const visibleTags =
|
|
9245
|
+
$[8] = t7;
|
|
9246
|
+
} else t7 = $[8];
|
|
9247
|
+
const visibleTags = t7;
|
|
9261
9248
|
const hiddenCount = items.length - visibleTagCount;
|
|
9262
9249
|
if (items.length === 0) return null;
|
|
9263
|
-
let
|
|
9250
|
+
let t8;
|
|
9264
9251
|
if ($[9] !== onItemDelete || $[10] !== onItemSelect) {
|
|
9265
|
-
|
|
9252
|
+
t8 = (item) => ({
|
|
9266
9253
|
...item.slotProps?.tag,
|
|
9267
9254
|
label: item.label,
|
|
9268
9255
|
selected: item.selected,
|
|
@@ -9271,180 +9258,159 @@ const DsTagFilter = (t0) => {
|
|
|
9271
9258
|
});
|
|
9272
9259
|
$[9] = onItemDelete;
|
|
9273
9260
|
$[10] = onItemSelect;
|
|
9274
|
-
$[11] =
|
|
9275
|
-
} else
|
|
9276
|
-
const buildTagProps =
|
|
9277
|
-
let
|
|
9261
|
+
$[11] = t8;
|
|
9262
|
+
} else t8 = $[11];
|
|
9263
|
+
const buildTagProps = t8;
|
|
9264
|
+
let t9;
|
|
9278
9265
|
if ($[12] !== buildTagProps) {
|
|
9279
|
-
|
|
9266
|
+
t9 = (item_0) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DsTag, { ...buildTagProps(item_0) }, item_0.id);
|
|
9280
9267
|
$[12] = buildTagProps;
|
|
9281
|
-
$[13] =
|
|
9282
|
-
} else
|
|
9283
|
-
const renderTag =
|
|
9284
|
-
let
|
|
9268
|
+
$[13] = t9;
|
|
9269
|
+
} else t9 = $[13];
|
|
9270
|
+
const renderTag = t9;
|
|
9271
|
+
let t10;
|
|
9285
9272
|
if ($[14] !== expanded || $[15] !== onExpand) {
|
|
9286
|
-
|
|
9273
|
+
t10 = () => {
|
|
9287
9274
|
const newExpanded = !expanded;
|
|
9288
9275
|
setExpanded(newExpanded);
|
|
9289
9276
|
onExpand?.(newExpanded);
|
|
9290
9277
|
};
|
|
9291
9278
|
$[14] = expanded;
|
|
9292
9279
|
$[15] = onExpand;
|
|
9293
|
-
$[16] =
|
|
9294
|
-
} else
|
|
9295
|
-
const handleExpandToggle =
|
|
9296
|
-
let
|
|
9280
|
+
$[16] = t10;
|
|
9281
|
+
} else t10 = $[16];
|
|
9282
|
+
const handleExpandToggle = t10;
|
|
9283
|
+
let t11;
|
|
9297
9284
|
if ($[17] !== buildTagProps || $[18] !== items) {
|
|
9298
|
-
let
|
|
9285
|
+
let t12;
|
|
9299
9286
|
if ($[20] !== buildTagProps) {
|
|
9300
|
-
|
|
9287
|
+
t12 = (item_1) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DsTag, {
|
|
9301
9288
|
"data-measure-tag": "",
|
|
9302
9289
|
...buildTagProps(item_1)
|
|
9303
9290
|
}, item_1.id);
|
|
9304
9291
|
$[20] = buildTagProps;
|
|
9305
|
-
$[21] =
|
|
9306
|
-
} else
|
|
9307
|
-
|
|
9292
|
+
$[21] = t12;
|
|
9293
|
+
} else t12 = $[21];
|
|
9294
|
+
t11 = items.map(t12);
|
|
9308
9295
|
$[17] = buildTagProps;
|
|
9309
9296
|
$[18] = items;
|
|
9310
|
-
$[19] =
|
|
9311
|
-
} else
|
|
9312
|
-
let
|
|
9313
|
-
if ($[22] !==
|
|
9314
|
-
|
|
9297
|
+
$[19] = t11;
|
|
9298
|
+
} else t11 = $[19];
|
|
9299
|
+
let t12;
|
|
9300
|
+
if ($[22] !== t11) {
|
|
9301
|
+
t12 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
9315
9302
|
ref: measurementRef,
|
|
9316
9303
|
className: ds_tag_filter_module_default.measurementContainer,
|
|
9317
9304
|
"aria-hidden": "true",
|
|
9318
|
-
children:
|
|
9305
|
+
children: t11
|
|
9319
9306
|
});
|
|
9320
|
-
$[22] =
|
|
9321
|
-
$[23] =
|
|
9322
|
-
} else
|
|
9323
|
-
const measurementContainer =
|
|
9324
|
-
const
|
|
9325
|
-
let
|
|
9326
|
-
if ($[24] !== className
|
|
9327
|
-
|
|
9307
|
+
$[22] = t11;
|
|
9308
|
+
$[23] = t12;
|
|
9309
|
+
} else t12 = $[23];
|
|
9310
|
+
const measurementContainer = t12;
|
|
9311
|
+
const toggleLabel = expanded ? showLess : showMore;
|
|
9312
|
+
let t13;
|
|
9313
|
+
if ($[24] !== className) {
|
|
9314
|
+
t13 = (0, classnames.default)(ds_tag_filter_module_default.container, className);
|
|
9328
9315
|
$[24] = className;
|
|
9329
|
-
$[25] =
|
|
9330
|
-
|
|
9331
|
-
|
|
9316
|
+
$[25] = t13;
|
|
9317
|
+
} else t13 = $[25];
|
|
9318
|
+
let t14;
|
|
9319
|
+
if ($[26] !== renderTag || $[27] !== visibleTags) {
|
|
9320
|
+
let t15;
|
|
9321
|
+
if ($[29] !== renderTag) {
|
|
9322
|
+
t15 = (item_2) => renderTag(item_2);
|
|
9323
|
+
$[29] = renderTag;
|
|
9324
|
+
$[30] = t15;
|
|
9325
|
+
} else t15 = $[30];
|
|
9326
|
+
t14 = visibleTags.map(t15);
|
|
9327
|
+
$[26] = renderTag;
|
|
9328
|
+
$[27] = visibleTags;
|
|
9329
|
+
$[28] = t14;
|
|
9330
|
+
} else t14 = $[28];
|
|
9331
|
+
let t15;
|
|
9332
|
+
if ($[31] !== t14) {
|
|
9333
|
+
t15 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
9334
|
+
ref: tagsAreaRef,
|
|
9335
|
+
className: ds_tag_filter_module_default.tagsArea,
|
|
9336
|
+
"aria-live": "polite",
|
|
9337
|
+
children: t14
|
|
9338
|
+
});
|
|
9339
|
+
$[31] = t14;
|
|
9340
|
+
$[32] = t15;
|
|
9341
|
+
} else t15 = $[32];
|
|
9332
9342
|
let t16;
|
|
9333
|
-
if ($[
|
|
9334
|
-
t16 =
|
|
9335
|
-
variant: "
|
|
9336
|
-
|
|
9337
|
-
|
|
9343
|
+
if ($[33] !== expanded || $[34] !== handleExpandToggle || $[35] !== hasOverflow || $[36] !== hiddenCount || $[37] !== toggleLabel) {
|
|
9344
|
+
t16 = hasOverflow && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(DsButtonV3, {
|
|
9345
|
+
variant: "tertiary",
|
|
9346
|
+
size: "small",
|
|
9347
|
+
className: ds_tag_filter_module_default.actionButton,
|
|
9348
|
+
"aria-expanded": expanded,
|
|
9349
|
+
onClick: handleExpandToggle,
|
|
9350
|
+
children: [`${toggleLabel} (${String(hiddenCount)})`, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DsIcon, {
|
|
9351
|
+
icon: expanded ? "keyboard_arrow_up" : "keyboard_arrow_down",
|
|
9352
|
+
size: "tiny",
|
|
9353
|
+
"aria-hidden": true
|
|
9354
|
+
})]
|
|
9338
9355
|
});
|
|
9339
|
-
$[
|
|
9340
|
-
$[
|
|
9341
|
-
|
|
9356
|
+
$[33] = expanded;
|
|
9357
|
+
$[34] = handleExpandToggle;
|
|
9358
|
+
$[35] = hasOverflow;
|
|
9359
|
+
$[36] = hiddenCount;
|
|
9360
|
+
$[37] = toggleLabel;
|
|
9361
|
+
$[38] = t16;
|
|
9362
|
+
} else t16 = $[38];
|
|
9342
9363
|
let t17;
|
|
9343
|
-
if ($[
|
|
9344
|
-
t17 =
|
|
9345
|
-
|
|
9346
|
-
buttonType: "tertiary",
|
|
9347
|
-
variant: "ghost",
|
|
9348
|
-
className: ds_tag_filter_module_default.actionButton,
|
|
9349
|
-
contentClassName: ds_tag_filter_module_default.ghostButtonContent,
|
|
9364
|
+
if ($[39] !== clearButton || $[40] !== onClearAll) {
|
|
9365
|
+
t17 = onClearAll && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DsButtonV3, {
|
|
9366
|
+
variant: "tertiary",
|
|
9350
9367
|
size: "small",
|
|
9351
|
-
|
|
9352
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(DsIcon, { icon: expanded ? "keyboard_arrow_up" : "keyboard_arrow_down" }), expanded ? showLess : `${showMore} (${String(hiddenCount)})`]
|
|
9353
|
-
});
|
|
9354
|
-
$[29] = expanded;
|
|
9355
|
-
$[30] = handleExpandToggle;
|
|
9356
|
-
$[31] = hasOverflow;
|
|
9357
|
-
$[32] = hiddenCount;
|
|
9358
|
-
$[33] = showLess;
|
|
9359
|
-
$[34] = showMore;
|
|
9360
|
-
$[35] = t17;
|
|
9361
|
-
} else t17 = $[35];
|
|
9362
|
-
let t18;
|
|
9363
|
-
if ($[36] !== clearButton || $[37] !== onClearAll) {
|
|
9364
|
-
t18 = onClearAll && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(DsButton, {
|
|
9365
|
-
design: "v1.2",
|
|
9366
|
-
buttonType: "tertiary",
|
|
9367
|
-
variant: "ghost",
|
|
9368
|
+
icon: "close",
|
|
9368
9369
|
className: ds_tag_filter_module_default.actionButton,
|
|
9369
|
-
contentClassName: ds_tag_filter_module_default.ghostButtonContent,
|
|
9370
|
-
size: "small",
|
|
9371
9370
|
onClick: onClearAll,
|
|
9372
|
-
children:
|
|
9371
|
+
children: clearButton
|
|
9372
|
+
});
|
|
9373
|
+
$[39] = clearButton;
|
|
9374
|
+
$[40] = onClearAll;
|
|
9375
|
+
$[41] = t17;
|
|
9376
|
+
} else t17 = $[41];
|
|
9377
|
+
let t18;
|
|
9378
|
+
if ($[42] !== t16 || $[43] !== t17) {
|
|
9379
|
+
t18 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
9380
|
+
className: ds_tag_filter_module_default.actions,
|
|
9381
|
+
children: [t16, t17]
|
|
9373
9382
|
});
|
|
9374
|
-
$[
|
|
9375
|
-
$[
|
|
9376
|
-
$[
|
|
9377
|
-
} else t18 = $[
|
|
9383
|
+
$[42] = t16;
|
|
9384
|
+
$[43] = t17;
|
|
9385
|
+
$[44] = t18;
|
|
9386
|
+
} else t18 = $[44];
|
|
9378
9387
|
let t19;
|
|
9379
|
-
if ($[
|
|
9388
|
+
if ($[45] !== style || $[46] !== t13 || $[47] !== t15 || $[48] !== t18) {
|
|
9380
9389
|
t19 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
9381
|
-
className:
|
|
9382
|
-
|
|
9390
|
+
className: t13,
|
|
9391
|
+
style,
|
|
9392
|
+
children: [t15, t18]
|
|
9383
9393
|
});
|
|
9384
|
-
$[
|
|
9385
|
-
$[
|
|
9386
|
-
$[
|
|
9387
|
-
|
|
9394
|
+
$[45] = style;
|
|
9395
|
+
$[46] = t13;
|
|
9396
|
+
$[47] = t15;
|
|
9397
|
+
$[48] = t18;
|
|
9398
|
+
$[49] = t19;
|
|
9399
|
+
} else t19 = $[49];
|
|
9388
9400
|
let t20;
|
|
9389
|
-
if ($[
|
|
9390
|
-
t20 =
|
|
9391
|
-
|
|
9392
|
-
|
|
9393
|
-
|
|
9394
|
-
$[42] = t16;
|
|
9395
|
-
$[43] = t19;
|
|
9396
|
-
$[44] = t20;
|
|
9397
|
-
} else t20 = $[44];
|
|
9401
|
+
if ($[50] !== measurementContainer) {
|
|
9402
|
+
t20 = (0, react_dom.createPortal)(measurementContainer, document.body);
|
|
9403
|
+
$[50] = measurementContainer;
|
|
9404
|
+
$[51] = t20;
|
|
9405
|
+
} else t20 = $[51];
|
|
9398
9406
|
let t21;
|
|
9399
|
-
if ($[
|
|
9400
|
-
|
|
9401
|
-
|
|
9402
|
-
|
|
9403
|
-
|
|
9404
|
-
|
|
9405
|
-
|
|
9406
|
-
t21 = visibleTags.map(t22);
|
|
9407
|
-
$[45] = renderTag;
|
|
9408
|
-
$[46] = visibleTags;
|
|
9409
|
-
$[47] = t21;
|
|
9410
|
-
} else t21 = $[47];
|
|
9411
|
-
let t22;
|
|
9412
|
-
if ($[50] !== t21) {
|
|
9413
|
-
t22 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
9414
|
-
className: ds_tag_filter_module_default.tagsArea,
|
|
9415
|
-
children: t21
|
|
9416
|
-
});
|
|
9417
|
-
$[50] = t21;
|
|
9418
|
-
$[51] = t22;
|
|
9419
|
-
} else t22 = $[51];
|
|
9420
|
-
let t23;
|
|
9421
|
-
if ($[52] !== style || $[53] !== t15 || $[54] !== t20 || $[55] !== t22) {
|
|
9422
|
-
t23 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
9423
|
-
ref: containerRef,
|
|
9424
|
-
className: t15,
|
|
9425
|
-
style,
|
|
9426
|
-
children: [t20, t22]
|
|
9427
|
-
});
|
|
9428
|
-
$[52] = style;
|
|
9429
|
-
$[53] = t15;
|
|
9430
|
-
$[54] = t20;
|
|
9431
|
-
$[55] = t22;
|
|
9432
|
-
$[56] = t23;
|
|
9433
|
-
} else t23 = $[56];
|
|
9434
|
-
let t24;
|
|
9435
|
-
if ($[57] !== measurementContainer) {
|
|
9436
|
-
t24 = (0, react_dom.createPortal)(measurementContainer, document.body);
|
|
9437
|
-
$[57] = measurementContainer;
|
|
9438
|
-
$[58] = t24;
|
|
9439
|
-
} else t24 = $[58];
|
|
9440
|
-
let t25;
|
|
9441
|
-
if ($[59] !== t23 || $[60] !== t24) {
|
|
9442
|
-
t25 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [t23, t24] });
|
|
9443
|
-
$[59] = t23;
|
|
9444
|
-
$[60] = t24;
|
|
9445
|
-
$[61] = t25;
|
|
9446
|
-
} else t25 = $[61];
|
|
9447
|
-
return t25;
|
|
9407
|
+
if ($[52] !== t19 || $[53] !== t20) {
|
|
9408
|
+
t21 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [t19, t20] });
|
|
9409
|
+
$[52] = t19;
|
|
9410
|
+
$[53] = t20;
|
|
9411
|
+
$[54] = t21;
|
|
9412
|
+
} else t21 = $[54];
|
|
9413
|
+
return t21;
|
|
9448
9414
|
};
|
|
9449
9415
|
DsTagFilter.displayName = "DsTagFilter";
|
|
9450
9416
|
//#endregion
|
package/dist/index.d.cts
CHANGED
|
@@ -12330,7 +12330,8 @@ interface DsTagFilterProps {
|
|
|
12330
12330
|
*/
|
|
12331
12331
|
locale?: {
|
|
12332
12332
|
/**
|
|
12333
|
-
*
|
|
12333
|
+
* @deprecated No longer rendered. Retained for backwards compatibility;
|
|
12334
|
+
* Will be removed in the future.
|
|
12334
12335
|
*/
|
|
12335
12336
|
label?: string;
|
|
12336
12337
|
/**
|