@geotab/zenith 3.14.0-beta.2 → 3.14.0-beta.3

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
@@ -53,9 +53,8 @@ Markdown reference for each component (used by AI tooling and IRIS) lives in [`d
53
53
 
54
54
  - Add `prefix` prop to `Summary` component for mixed-color value styling
55
55
  - Add logical alignment support to `Tooltip` for correct RTL popup direction
56
- - Remove hardcoded 400px minimum height from `Table` component
57
- - Migrate remaining LESS files to CSS logical properties for RTL support
58
- - Apply Tech Content-reviewed copy updates to component strings and translations
56
+ - Tooltip/Popup alignment updates for RTL support
57
+ - Updated translations
59
58
  - Fix `DataFeed` calling `onFeedEnd` repeatedly — now fires once per approach
60
59
  - Fix RTL scroll navigation direction in `Tabs`, `FiltersBar`, and `SummaryTileBar`
61
60
  - Fix nested `Menu` submenu opening on the wrong side in RTL
package/dist/index.css CHANGED
@@ -6679,19 +6679,6 @@ html:lang(ar) .zen-table-number {
6679
6679
  min-width: 0;
6680
6680
  transition: flex 0.35s cubic-bezier(0.4, 0, 0.2, 1);
6681
6681
  }
6682
- .zen-table-wrapper--fit-content .zen-table__content {
6683
- height: auto;
6684
- }
6685
- .zen-table-wrapper--fit-content .zen-table__table {
6686
- height: auto;
6687
- }
6688
- .zen-table-wrapper--fit-content .zen-data-grid-wrapper {
6689
- contain: layout style;
6690
- height: auto;
6691
- }
6692
- .zen-table-wrapper--fit-content .zen-data-grid {
6693
- flex-shrink: 0;
6694
- }
6695
6682
  .pie-chart-1 {
6696
6683
  width: 100%;
6697
6684
  height: 12.5rem;
@@ -252,8 +252,10 @@ const TableInner = ({
252
252
  const handleOnTriggerClick = (0, react_1.useCallback)(() => setSelectMode(prev => !prev), []);
253
253
  const hasPostActions = (0, react_1.useMemo)(() => columnsPopup || isMobile && selectable || !isMobile && fullscreenButton || isFeedVisible, [columnsPopup, fullscreenButton, isFeedVisible, isMobile, selectable]);
254
254
  const hasToolbar = (0, react_1.useMemo)(() => bulkActions || feedSortControl || pagination && !isMobile || other.length || columnsPopup || !isMobile && fullscreenButton || isFeedVisible, [bulkActions, columnsPopup, feedSortControl, fullscreenButton, isFeedVisible, isMobile, other.length, pagination]);
255
- const gridAutoHeight = (0, react_1.useMemo)(() => contentHeight !== undefined ? `${contentHeight}px` : undefined, [contentHeight]);
256
- const gridHeight = (0, react_1.useMemo)(() => height || gridAutoHeight, [gridAutoHeight, height]);
255
+ const gridAutoHeight = (0, react_1.useMemo)(() => contentHeight ? `${contentHeight}px` : undefined, [contentHeight]);
256
+ const minHeight = "400px";
257
+ const gridHeight = (0, react_1.useMemo)(() => height || gridAutoHeight || minHeight, [gridAutoHeight, height]);
258
+ // TODO: disadvantages?
257
259
  const {
258
260
  gridClasses,
259
261
  restClasses
@@ -261,10 +263,10 @@ const TableInner = ({
261
263
  return (0, jsx_runtime_1.jsx)(layoutFullScreen_1.LayoutFullScreen, {
262
264
  className: (0, classNames_1.classNames)([...gridClasses]),
263
265
  children: (0, jsx_runtime_1.jsxs)("div", {
264
- style: gridHeight ? {
266
+ style: {
265
267
  height: gridHeight
266
- } : undefined,
267
- className: (0, classNames_1.classNames)(["zen-table-wrapper", gridHeight ? "" : "zen-table-wrapper--fit-content", hasToolbar ? "zen-table-wrapper--with-toolbar" : "", ...restClasses]),
268
+ },
269
+ className: (0, classNames_1.classNames)(["zen-table-wrapper", hasToolbar ? "zen-table-wrapper--with-toolbar" : "", ...restClasses]),
268
270
  children: [hasToolbar ? (0, jsx_runtime_1.jsxs)(entitiesListActions_1.EntitiesListActions, {
269
271
  gridType: isMobile ? deviceType_1.DeviceType.Mobile : deviceType_1.DeviceType.Desktop,
270
272
  children: [(0, jsx_runtime_1.jsxs)(entitiesListActions_1.EntitiesListActions.Actions, {
@@ -202,8 +202,10 @@ const TableInner = ({
202
202
  const handleOnTriggerClick = useCallback(() => setSelectMode(prev => !prev), []);
203
203
  const hasPostActions = useMemo(() => columnsPopup || isMobile && selectable || !isMobile && fullscreenButton || isFeedVisible, [columnsPopup, fullscreenButton, isFeedVisible, isMobile, selectable]);
204
204
  const hasToolbar = useMemo(() => bulkActions || feedSortControl || pagination && !isMobile || other.length || columnsPopup || !isMobile && fullscreenButton || isFeedVisible, [bulkActions, columnsPopup, feedSortControl, fullscreenButton, isFeedVisible, isMobile, other.length, pagination]);
205
- const gridAutoHeight = useMemo(() => contentHeight !== undefined ? `${contentHeight}px` : undefined, [contentHeight]);
206
- const gridHeight = useMemo(() => height || gridAutoHeight, [gridAutoHeight, height]);
205
+ const gridAutoHeight = useMemo(() => contentHeight ? `${contentHeight}px` : undefined, [contentHeight]);
206
+ const minHeight = "400px";
207
+ const gridHeight = useMemo(() => height || gridAutoHeight || minHeight, [gridAutoHeight, height]);
208
+ // TODO: disadvantages?
207
209
  const {
208
210
  gridClasses,
209
211
  restClasses
@@ -211,10 +213,10 @@ const TableInner = ({
211
213
  return _jsx(LayoutFullScreen, {
212
214
  className: classNames([...gridClasses]),
213
215
  children: _jsxs("div", {
214
- style: gridHeight ? {
216
+ style: {
215
217
  height: gridHeight
216
- } : undefined,
217
- className: classNames(["zen-table-wrapper", gridHeight ? "" : "zen-table-wrapper--fit-content", hasToolbar ? "zen-table-wrapper--with-toolbar" : "", ...restClasses]),
218
+ },
219
+ className: classNames(["zen-table-wrapper", hasToolbar ? "zen-table-wrapper--with-toolbar" : "", ...restClasses]),
218
220
  children: [hasToolbar ? _jsxs(EntitiesListActions, {
219
221
  gridType: isMobile ? DeviceType.Mobile : DeviceType.Desktop,
220
222
  children: [_jsxs(EntitiesListActions.Actions, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geotab/zenith",
3
- "version": "3.14.0-beta.2",
3
+ "version": "3.14.0-beta.3",
4
4
  "description": "Zenith components library on React",
5
5
  "main": "dist/index.js",
6
6
  "types": "esm/index.d.ts",