@trackunit/filters-filter-bar 0.0.29 → 0.0.31

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/index.cjs.js CHANGED
@@ -330,12 +330,11 @@ const uniqueKeysFromGroups = (filters) => [...new Set(filters.map(filter => filt
330
330
  */
331
331
  const reduceFilterText = (input) => {
332
332
  if (!Array.isArray(input)) {
333
- return sharedUtils.titleCase(input);
333
+ return input;
334
334
  }
335
- const humanCased = input.map(str => sharedUtils.titleCase(str));
336
335
  // Only first two elements
337
- const firstTwo = humanCased.slice(0, 2);
338
- const remainder = humanCased.slice(2, humanCased.length).length;
336
+ const firstTwo = input.slice(0, 2);
337
+ const remainder = input.slice(2, input.length).length;
339
338
  const firstTwoJoined = firstTwo.join(", ");
340
339
  const remainderStr = remainder > 0 ? `, +${remainder}` : "";
341
340
  return firstTwoJoined + remainderStr;
package/index.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
2
  import { registerTranslations, useNamespaceTranslation } from '@trackunit/i18n-library-translation';
3
- import { titleCase, truthy, capitalize as capitalize$1, nonNullable } from '@trackunit/shared-utils';
3
+ import { truthy, capitalize as capitalize$1, nonNullable } from '@trackunit/shared-utils';
4
4
  import React, { useMemo, Fragment as Fragment$1, useRef, useState, useEffect, useCallback } from 'react';
5
5
  import { Filter as Filter$1, FilterBody, RadioFilterItem, CheckBoxFilterItem, FilterHeader as FilterHeader$1, FilterFooter } from '@trackunit/react-filter-components';
6
6
  import { Button, Popover, PopoverTrigger, IconButton, Icon, PopoverContent, MenuList, Text, StarButton, DayRangePicker } from '@trackunit/react-components';
@@ -322,12 +322,11 @@ const uniqueKeysFromGroups = (filters) => [...new Set(filters.map(filter => filt
322
322
  */
323
323
  const reduceFilterText = (input) => {
324
324
  if (!Array.isArray(input)) {
325
- return titleCase(input);
325
+ return input;
326
326
  }
327
- const humanCased = input.map(str => titleCase(str));
328
327
  // Only first two elements
329
- const firstTwo = humanCased.slice(0, 2);
330
- const remainder = humanCased.slice(2, humanCased.length).length;
328
+ const firstTwo = input.slice(0, 2);
329
+ const remainder = input.slice(2, input.length).length;
331
330
  const firstTwoJoined = firstTwo.join(", ");
332
331
  const remainderStr = remainder > 0 ? `, +${remainder}` : "";
333
332
  return firstTwoJoined + remainderStr;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/filters-filter-bar",
3
- "version": "0.0.29",
3
+ "version": "0.0.31",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -10,12 +10,12 @@
10
10
  "@trackunit/i18n-library-translation": "0.0.87",
11
11
  "@trackunit/iris-app-api": "0.0.125",
12
12
  "@trackunit/iris-app-runtime-core-api": "0.3.78",
13
- "@trackunit/react-components": "0.1.180",
13
+ "@trackunit/react-components": "0.1.181",
14
14
  "@trackunit/react-core-contexts-api": "0.2.64",
15
15
  "@trackunit/react-core-contexts-test": "0.1.121",
16
16
  "@trackunit/react-core-hooks": "0.2.106",
17
- "@trackunit/react-filter-components": "0.0.237",
18
- "@trackunit/react-form-components": "0.0.178",
17
+ "@trackunit/react-filter-components": "0.0.238",
18
+ "@trackunit/react-form-components": "0.0.179",
19
19
  "@trackunit/shared-utils": "0.0.12",
20
20
  "dequal": "2.0.3",
21
21
  "lodash": "4.17.21",