@geotab/zenith 1.20.0-beta.1 → 1.20.0-beta.2

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/README.md CHANGED
@@ -42,7 +42,7 @@ Zenith library provides components defined in Zenith Design System. It includes
42
42
 
43
43
  ## 1.20.0
44
44
 
45
- * Add documentation for Charts
45
+ * New component `Chart`
46
46
  * Add feature to detect range value in DateRange
47
47
  * Add possibility to prevent unchecking selection in SelectField
48
48
  * Add icon IconLaptop and deprecated duplicated
@@ -47,7 +47,7 @@ const SortableHeaderCell = ({ columnName, isSortedBy, sortDirection, title, tool
47
47
  sortDirection === columnSortDirection_1.ColumnSortDirection.Ascending
48
48
  ? "zen-sortable-column-button--dir-asc"
49
49
  : "zen-sortable-column-button--dir-desc"
50
- ]), title: iconTitle, "aria-label": iconTitle, onClick: () => {
50
+ ]), title: iconTitle, "aria-label": iconTitle, onMouseDown: () => {
51
51
  onSortChange({
52
52
  sortColumn: columnName,
53
53
  sortDirection: sortDirection === columnSortDirection_1.ColumnSortDirection.Ascending
@@ -49,7 +49,7 @@ export interface IFiltersBarPeriodPicker extends Omit<IFiltersBarPeriodPickerImp
49
49
  export type IPeriodPickerUnsetValue = IDateRangeValueOptionalLabel | IDateRangeValue | undefined;
50
50
  interface IFiltersBarPeriodPickerUnsetValueImp extends IFiltersBarItem<IPeriodPickerUnsetValue, IFiltersBarDateRangePickerUnsetValue> {
51
51
  props: IFiltersBarDateRangePickerUnsetValue;
52
- defaultState: IPeriodPickerUnsetValue;
52
+ defaultState: IDateRangeValue | undefined;
53
53
  className?: string;
54
54
  checkError?: (isError: boolean) => void;
55
55
  sidePanelMaxGroupedItemsLength?: number;
@@ -80,6 +80,6 @@ const SortableHeaderCell = ({ columnName, isSortedBy, sortDirection, title, tool
80
80
  sortDirection === interfaces_1.ColumnSortDirection.Ascending
81
81
  ? "zen-sortable-column-button--dir-asc"
82
82
  : "zen-sortable-column-button--dir-desc"
83
- ]), title: iconTitle, "aria-label": iconTitle, onClick: onHeaderClick, children: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isMobile ? iconButton : null, (0, jsx_runtime_1.jsx)("div", { className: "zen-sortable-column-button__content zen-caption__content", children: title }), isMobile ? null : iconButton] }) }) }));
83
+ ]), title: iconTitle, "aria-label": iconTitle, onMouseDown: onHeaderClick, children: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isMobile ? iconButton : null, (0, jsx_runtime_1.jsx)("div", { className: "zen-sortable-column-button__content zen-caption__content", children: title }), isMobile ? null : iconButton] }) }) }));
84
84
  };
85
85
  exports.SortableHeaderCell = SortableHeaderCell;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geotab/zenith",
3
- "version": "1.20.0-beta.1",
3
+ "version": "1.20.0-beta.2",
4
4
  "description": "Zenith components library on React",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -94,5 +94,5 @@
94
94
  },
95
95
  "publishConfig": {
96
96
  "access": "public"
97
- }
97
+ }
98
98
  }