@prt-ts/fluent-react-table-v2 9.48.0-build-1.1 → 9.48.0-build-1.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/index.cjs.js CHANGED
@@ -169,23 +169,24 @@ const GroupExpandedIcon = reactIcons.bundleIcon(reactIcons.ChevronDownRegular, r
169
169
  reactIcons.bundleIcon(reactIcons.DragFilled, reactIcons.DragRegular);
170
170
 
171
171
  const useGridHeaderStyles = reactComponents.makeStyles({
172
- tableTopHeaderContainer: Object.assign({ display: "flex", justifyContent: "space-between", alignItems: "flex-end", width: "100%", backgroundColor: reactComponents.tokens.colorBrandBackground2Hover }, reactComponents.shorthands.padding("5px")),
172
+ tableTopHeaderContainer: Object.assign(Object.assign({ display: 'flex', justifyContent: 'space-between', alignItems: 'flex-end', flexWrap: 'wrap', width: '100%', backgroundColor: reactComponents.tokens.colorNeutralStroke2, boxShadow: reactComponents.tokens.shadow2 }, reactComponents.shorthands.padding('5px')), reactComponents.shorthands.borderBottom('1px', 'solid', reactComponents.tokens.colorNeutralStroke1)),
173
173
  tableTopHeaderLeft: {
174
- display: "flex",
175
- justifyContent: "flex-start",
174
+ display: 'flex',
175
+ justifyContent: 'flex-start',
176
+ flexWrap: 'wrap',
176
177
  },
177
- tableTopHeaderRight: Object.assign({ display: "flex", justifyContent: "flex-end" }, reactComponents.shorthands.gap("3px")),
178
+ tableTopHeaderRight: Object.assign(Object.assign({ display: 'flex', justifyContent: 'flex-end' }, reactComponents.shorthands.gap('3px')), { flexWrap: 'wrap' }),
178
179
  tableTopHeaderColumnTogglePopover: {
179
- display: "flex",
180
- flexDirection: "column",
181
- justifyContent: "flex-start",
182
- alignItems: "flex-start",
183
- width: "100%",
184
- height: "100%",
180
+ display: 'flex',
181
+ flexDirection: 'column',
182
+ justifyContent: 'flex-start',
183
+ alignItems: 'flex-start',
184
+ width: '100%',
185
+ height: '100%',
185
186
  },
186
187
  popoverSurface: {
187
- minWidth: "300px"
188
- }
188
+ minWidth: '300px',
189
+ },
189
190
  });
190
191
 
191
192
  const GridHeader = (props) => {
@@ -756,9 +757,9 @@ const useNoItemGridStyles = reactComponents.makeStyles({
756
757
  }
757
758
  });
758
759
 
759
- const NoItemGrid = ({ message }) => {
760
+ const NoItemGrid = ({ message, }) => {
760
761
  const styles = useNoItemGridStyles();
761
- return (jsxRuntime.jsx("div", { className: styles.wrapper, children: jsxRuntime.jsx("div", { children: message ? message : jsxRuntime.jsx(reactComponents.Subtitle2Stronger, { children: "No Data to Show." }) }) }));
762
+ return (jsxRuntime.jsx("div", { className: styles.wrapper, children: jsxRuntime.jsx(reactControlFlow.Show, { when: !!message, fallback: jsxRuntime.jsx(reactComponents.Subtitle2Stronger, { children: "No data to show." }), children: message }) }));
762
763
  };
763
764
 
764
765
  const useNoFilterMatchStyles = reactComponents.makeStyles({
package/index.esm.js CHANGED
@@ -147,23 +147,24 @@ const GroupExpandedIcon = bundleIcon(ChevronDownRegular, ChevronDownFilled);
147
147
  bundleIcon(DragFilled, DragRegular);
148
148
 
149
149
  const useGridHeaderStyles = makeStyles({
150
- tableTopHeaderContainer: Object.assign({ display: "flex", justifyContent: "space-between", alignItems: "flex-end", width: "100%", backgroundColor: tokens.colorBrandBackground2Hover }, shorthands.padding("5px")),
150
+ tableTopHeaderContainer: Object.assign(Object.assign({ display: 'flex', justifyContent: 'space-between', alignItems: 'flex-end', flexWrap: 'wrap', width: '100%', backgroundColor: tokens.colorNeutralStroke2, boxShadow: tokens.shadow2 }, shorthands.padding('5px')), shorthands.borderBottom('1px', 'solid', tokens.colorNeutralStroke1)),
151
151
  tableTopHeaderLeft: {
152
- display: "flex",
153
- justifyContent: "flex-start",
152
+ display: 'flex',
153
+ justifyContent: 'flex-start',
154
+ flexWrap: 'wrap',
154
155
  },
155
- tableTopHeaderRight: Object.assign({ display: "flex", justifyContent: "flex-end" }, shorthands.gap("3px")),
156
+ tableTopHeaderRight: Object.assign(Object.assign({ display: 'flex', justifyContent: 'flex-end' }, shorthands.gap('3px')), { flexWrap: 'wrap' }),
156
157
  tableTopHeaderColumnTogglePopover: {
157
- display: "flex",
158
- flexDirection: "column",
159
- justifyContent: "flex-start",
160
- alignItems: "flex-start",
161
- width: "100%",
162
- height: "100%",
158
+ display: 'flex',
159
+ flexDirection: 'column',
160
+ justifyContent: 'flex-start',
161
+ alignItems: 'flex-start',
162
+ width: '100%',
163
+ height: '100%',
163
164
  },
164
165
  popoverSurface: {
165
- minWidth: "300px"
166
- }
166
+ minWidth: '300px',
167
+ },
167
168
  });
168
169
 
169
170
  const GridHeader = (props) => {
@@ -734,9 +735,9 @@ const useNoItemGridStyles = makeStyles({
734
735
  }
735
736
  });
736
737
 
737
- const NoItemGrid = ({ message }) => {
738
+ const NoItemGrid = ({ message, }) => {
738
739
  const styles = useNoItemGridStyles();
739
- return (jsx("div", { className: styles.wrapper, children: jsx("div", { children: message ? message : jsx(Subtitle2Stronger, { children: "No Data to Show." }) }) }));
740
+ return (jsx("div", { className: styles.wrapper, children: jsx(Show, { when: !!message, fallback: jsx(Subtitle2Stronger, { children: "No data to show." }), children: message }) }));
740
741
  };
741
742
 
742
743
  const useNoFilterMatchStyles = makeStyles({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prt-ts/fluent-react-table-v2",
3
- "version": "9.48.0-build-1.1",
3
+ "version": "9.48.0-build-1.2",
4
4
  "peerDependencies": {
5
5
  "react": ">=17.0.0",
6
6
  "react-dom": ">=17.0.0",
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import * as React from 'react';
2
2
  export declare const NoItemGrid: React.FC<{
3
3
  message?: React.ReactNode;
4
4
  }>;