@geotab/zenith 3.8.0-beta.1 → 3.8.0

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
@@ -56,7 +56,7 @@ Zenith library provides components defined in Zenith Design System. It includes
56
56
 
57
57
  ### 3.8.0
58
58
 
59
- - Create reusable File upload component
59
+ - Create FileUpload component
60
60
  - Improve Accordion component Storybook documentation
61
61
  - Improve Divider component Storybook documentation
62
62
  - Improve accessibility for DataGrid sorting
@@ -645,7 +645,7 @@ const buttonType_1 = require("../button/buttonType");
645
645
  const zen_1 = require("../utils/zen");
646
646
  const DEFAULT_START_DAY_OF_WEEK = 0;
647
647
  const DEFAULT_YEAR_RANGE = 20;
648
- exports.monthLabelsArray = ["Jan", "Feb", "Mar", "Apr", "Ma", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
648
+ exports.monthLabelsArray = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
649
649
  const Calendar = ({
650
650
  id,
651
651
  value,
@@ -54,8 +54,6 @@ export interface ISummaryTile extends IZenComponentProps, IZenGridItem {
54
54
  tooltipSize?: TooltipSize;
55
55
  /** When `true`, shows a skeleton placeholder while data is being fetched — two skeleton elements replace the title and content areas. */
56
56
  isLoading?: boolean;
57
- /** When `true` and the tile is interactive, sets `aria-current="page"` on the tile. */
58
- isSelected?: boolean;
59
57
  /** Analytics identifier applied as `data-analytics-id`. Defaults to a kebab-cased version of `title`. */
60
58
  dataAnalyticsId?: string;
61
59
  }
@@ -75,6 +73,6 @@ export declare const SummaryTileDisplayName = "SummaryTile";
75
73
  * Use inside `SummaryTileBar` to group multiple tiles in a scrollable row.
76
74
  */
77
75
  export declare const SummaryTile: {
78
- ({ className, children, size, title, tileType, id, onClick, tooltipText, tooltipAlignment, isLoading, isSelected, dataAnalyticsId }: ISummaryTile): import("react/jsx-runtime").JSX.Element;
76
+ ({ className, children, size, title, tileType, id, onClick, tooltipText, tooltipAlignment, isLoading, dataAnalyticsId }: ISummaryTile): import("react/jsx-runtime").JSX.Element;
79
77
  displayName: string;
80
78
  };
@@ -122,7 +122,6 @@ const SummaryTile = ({
122
122
  tooltipText,
123
123
  tooltipAlignment = "top",
124
124
  isLoading = false,
125
- isSelected = false,
126
125
  dataAnalyticsId
127
126
  }) => {
128
127
  const {
@@ -178,7 +177,7 @@ const SummaryTile = ({
178
177
  }),
179
178
  children: tooltipText
180
179
  }) : null;
181
- const ariaCurrentProps = isSelected && isInteractive ? {
180
+ const ariaCurrentProps = tileType === SummaryTileType.Active && isInteractive ? {
182
181
  "aria-current": "page"
183
182
  } : {};
184
183
  // When both onClick and tooltipText are present, the tooltip trigger
@@ -637,7 +637,7 @@ injectString("ro-RO", "Next month", "Luna urm\u0103toare");
637
637
  injectString("ar-SA", "Next month", "\u0627\u0644\u0634\u0647\u0631 \u0627\u0644\u062A\u0627\u0644\u064A");
638
638
  const DEFAULT_START_DAY_OF_WEEK = 0;
639
639
  const DEFAULT_YEAR_RANGE = 20;
640
- export const monthLabelsArray = ["Jan", "Feb", "Mar", "Apr", "Ma", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
640
+ export const monthLabelsArray = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
641
641
  export const Calendar = ({
642
642
  id,
643
643
  value,
@@ -54,8 +54,6 @@ export interface ISummaryTile extends IZenComponentProps, IZenGridItem {
54
54
  tooltipSize?: TooltipSize;
55
55
  /** When `true`, shows a skeleton placeholder while data is being fetched — two skeleton elements replace the title and content areas. */
56
56
  isLoading?: boolean;
57
- /** When `true` and the tile is interactive, sets `aria-current="page"` on the tile. */
58
- isSelected?: boolean;
59
57
  /** Analytics identifier applied as `data-analytics-id`. Defaults to a kebab-cased version of `title`. */
60
58
  dataAnalyticsId?: string;
61
59
  }
@@ -75,6 +73,6 @@ export declare const SummaryTileDisplayName = "SummaryTile";
75
73
  * Use inside `SummaryTileBar` to group multiple tiles in a scrollable row.
76
74
  */
77
75
  export declare const SummaryTile: {
78
- ({ className, children, size, title, tileType, id, onClick, tooltipText, tooltipAlignment, isLoading, isSelected, dataAnalyticsId }: ISummaryTile): import("react/jsx-runtime").JSX.Element;
76
+ ({ className, children, size, title, tileType, id, onClick, tooltipText, tooltipAlignment, isLoading, dataAnalyticsId }: ISummaryTile): import("react/jsx-runtime").JSX.Element;
79
77
  displayName: string;
80
78
  };
@@ -83,7 +83,6 @@ export const SummaryTile = ({
83
83
  tooltipText,
84
84
  tooltipAlignment = "top",
85
85
  isLoading = false,
86
- isSelected = false,
87
86
  dataAnalyticsId
88
87
  }) => {
89
88
  const {
@@ -139,7 +138,7 @@ export const SummaryTile = ({
139
138
  }),
140
139
  children: tooltipText
141
140
  }) : null;
142
- const ariaCurrentProps = isSelected && isInteractive ? {
141
+ const ariaCurrentProps = tileType === SummaryTileType.Active && isInteractive ? {
143
142
  "aria-current": "page"
144
143
  } : {};
145
144
  // When both onClick and tooltipText are present, the tooltip trigger
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geotab/zenith",
3
- "version": "3.8.0-beta.1",
3
+ "version": "3.8.0",
4
4
  "description": "Zenith components library on React",
5
5
  "main": "dist/index.js",
6
6
  "types": "esm/index.d.ts",