@availity/mui-table 0.2.7 → 0.2.9

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/CHANGELOG.md CHANGED
@@ -2,6 +2,32 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.2.9](https://github.com/Availity/element/compare/@availity/mui-table@0.2.8...@availity/mui-table@0.2.9) (2025-01-22)
6
+
7
+ ### Dependency Updates
8
+
9
+ * `mui-button` updated to version `0.2.8`
10
+ * `mui-chip` updated to version `0.2.8`
11
+ * `mui-form-utils` updated to version `0.2.8`
12
+ * `mui-icon` updated to version `0.2.8`
13
+ * `mui-link` updated to version `0.2.8`
14
+ * `mui-menu` updated to version `0.2.8`
15
+ * `mui-textfield` updated to version `0.2.8`
16
+ * `mui-pagination` updated to version `0.2.8`
17
+ * `mui-transitions` updated to version `0.2.8`
18
+ ## [0.2.8](https://github.com/Availity/element/compare/@availity/mui-table@0.2.7...@availity/mui-table@0.2.8) (2025-01-08)
19
+
20
+ ### Dependency Updates
21
+
22
+ * `mui-chip` updated to version `0.2.7`
23
+ * `mui-form-utils` updated to version `0.2.7`
24
+ * `mui-textfield` updated to version `0.2.7`
25
+ * `mui-pagination` updated to version `0.2.7`
26
+
27
+ ### Bug Fixes
28
+
29
+ * **mui-table:** icon updates ([592de69](https://github.com/Availity/element/commit/592de690f12955e154ab265151dd3619611d48f1))
30
+
5
31
  ## [0.2.7](https://github.com/Availity/element/compare/@availity/mui-table@0.2.6...@availity/mui-table@0.2.7) (2025-01-07)
6
32
 
7
33
  ### Dependency Updates
package/README.md CHANGED
@@ -12,7 +12,7 @@ This package extends the MUI Table component: [MUI Table Docs](https://mui.com/c
12
12
 
13
13
  Live demo and documentation in our [Storybook](https://availity.github.io/element/?path=/docs/components-table-introduction--docs)
14
14
 
15
- Availity standards for design and usage can be found in the [Availity Design Guide](https://zeroheight.com/2e36e50c7)
15
+ Availity standards for design and usage can be found in the [Availity Design Guide](https://design.availity.com/2e36e50c7)
16
16
 
17
17
  ## Installation
18
18
 
package/dist/index.js CHANGED
@@ -126,7 +126,9 @@ var import_react = require("react");
126
126
  var import_TablePagination = __toESM(require("@mui/material/TablePagination"));
127
127
  var import_mui_pagination = require("@availity/mui-pagination");
128
128
  var import_mui_form_utils = require("@availity/mui-form-utils");
129
+ var import_mui_icon = require("@availity/mui-icon");
129
130
  var import_jsx_runtime7 = require("react/jsx-runtime");
131
+ var IconComponent = (args) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_mui_icon.TriangleExpandIcon, __spreadValues({ fontSize: "xxsmall", sx: { marginRight: "4px" } }, args));
130
132
  var TablePagination = (0, import_react.forwardRef)((props, ref) => {
131
133
  const _a = props, { Actions, paginationProps } = _a, rest = __objRest(_a, ["Actions", "paginationProps"]);
132
134
  const [openDetected, setOpenDetected] = (0, import_react.useState)(false);
@@ -146,7 +148,7 @@ var TablePagination = (0, import_react.forwardRef)((props, ref) => {
146
148
  Actions || null
147
149
  ] });
148
150
  };
149
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_TablePagination.default, __spreadProps(__spreadValues({ ActionsComponent: ActionsPagination }, rest), { slotProps: { select: __spreadValues({}, (0, import_mui_form_utils.SelectAccessibilityOverrides)(openDetected, setOpenDetected)) }, ref }));
151
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_TablePagination.default, __spreadProps(__spreadValues({ ActionsComponent: ActionsPagination }, rest), { slotProps: { select: __spreadValues({ IconComponent }, (0, import_mui_form_utils.SelectAccessibilityOverrides)(openDetected, setOpenDetected)) }, ref }));
150
152
  });
151
153
 
152
154
  // src/lib/TableRow.tsx
@@ -160,15 +162,15 @@ var TableRow = (props) => {
160
162
  var import_TableSortLabel = __toESM(require("@mui/material/TableSortLabel"));
161
163
  var import_Box = __toESM(require("@mui/material/Box"));
162
164
  var import_mui_utils2 = require("@availity/mui-utils");
163
- var import_mui_icon = require("@availity/mui-icon");
165
+ var import_mui_icon2 = require("@availity/mui-icon");
164
166
  var import_jsx_runtime9 = require("react/jsx-runtime");
165
167
  var TableSortLabel = (props) => {
166
- const IconComponent = props.active ? import_mui_icon.SortDownIcon : import_mui_icon.SortIcon;
168
+ const IconComponent2 = props.active ? import_mui_icon2.SortDownIcon : import_mui_icon2.SortIcon;
167
169
  const SortedDescription = props.active ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_Box.default, { component: "span", sx: import_mui_utils2.visuallyHidden, children: props.direction === "desc" ? "sorted descending" : "sorted ascending" }) : null;
168
170
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
169
171
  import_TableSortLabel.default,
170
172
  __spreadProps(__spreadValues({}, props), {
171
- IconComponent,
173
+ IconComponent: IconComponent2,
172
174
  children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
173
175
  props.children,
174
176
  " ",
package/dist/index.mjs CHANGED
@@ -91,7 +91,9 @@ import {
91
91
  } from "@mui/material/TablePagination";
92
92
  import { Pagination } from "@availity/mui-pagination";
93
93
  import { SelectAccessibilityOverrides } from "@availity/mui-form-utils";
94
+ import { TriangleExpandIcon } from "@availity/mui-icon";
94
95
  import { Fragment as Fragment2, jsx as jsx7, jsxs as jsxs2 } from "react/jsx-runtime";
96
+ var IconComponent = (args) => /* @__PURE__ */ jsx7(TriangleExpandIcon, __spreadValues({ fontSize: "xxsmall", sx: { marginRight: "4px" } }, args));
95
97
  var TablePagination = forwardRef((props, ref) => {
96
98
  const _a = props, { Actions, paginationProps } = _a, rest = __objRest(_a, ["Actions", "paginationProps"]);
97
99
  const [openDetected, setOpenDetected] = useState(false);
@@ -111,7 +113,7 @@ var TablePagination = forwardRef((props, ref) => {
111
113
  Actions || null
112
114
  ] });
113
115
  };
114
- return /* @__PURE__ */ jsx7(MuiTablePagination, __spreadProps(__spreadValues({ ActionsComponent: ActionsPagination }, rest), { slotProps: { select: __spreadValues({}, SelectAccessibilityOverrides(openDetected, setOpenDetected)) }, ref }));
116
+ return /* @__PURE__ */ jsx7(MuiTablePagination, __spreadProps(__spreadValues({ ActionsComponent: ActionsPagination }, rest), { slotProps: { select: __spreadValues({ IconComponent }, SelectAccessibilityOverrides(openDetected, setOpenDetected)) }, ref }));
115
117
  });
116
118
 
117
119
  // src/lib/TableRow.tsx
@@ -130,12 +132,12 @@ import { visuallyHidden as visuallyHidden2 } from "@availity/mui-utils";
130
132
  import { SortDownIcon, SortIcon } from "@availity/mui-icon";
131
133
  import { Fragment as Fragment3, jsx as jsx9, jsxs as jsxs3 } from "react/jsx-runtime";
132
134
  var TableSortLabel = (props) => {
133
- const IconComponent = props.active ? SortDownIcon : SortIcon;
135
+ const IconComponent2 = props.active ? SortDownIcon : SortIcon;
134
136
  const SortedDescription = props.active ? /* @__PURE__ */ jsx9(Box, { component: "span", sx: visuallyHidden2, children: props.direction === "desc" ? "sorted descending" : "sorted ascending" }) : null;
135
137
  return /* @__PURE__ */ jsx9(
136
138
  MuiTableSortLabel,
137
139
  __spreadProps(__spreadValues({}, props), {
138
- IconComponent,
140
+ IconComponent: IconComponent2,
139
141
  children: /* @__PURE__ */ jsxs3(Fragment3, { children: [
140
142
  props.children,
141
143
  " ",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@availity/mui-table",
3
- "version": "0.2.7",
3
+ "version": "0.2.9",
4
4
  "description": "Availity MUI Table Component - part of the @availity/element design system",
5
5
  "keywords": [
6
6
  "react",
@@ -33,21 +33,21 @@
33
33
  "publish:canary": "yarn npm publish --access public --tag canary"
34
34
  },
35
35
  "dependencies": {
36
- "@availity/mui-form-utils": "0.16.2",
37
- "@availity/mui-icon": "0.12.1",
38
- "@availity/mui-pagination": "0.3.10",
36
+ "@availity/mui-form-utils": "0.16.4",
37
+ "@availity/mui-icon": "0.13.0",
38
+ "@availity/mui-pagination": "0.3.12",
39
39
  "@availity/mui-utils": "0.1.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@availity/mui-button": "0.6.14",
43
- "@availity/mui-chip": "0.2.25",
44
- "@availity/mui-form-utils": "0.16.2",
45
- "@availity/mui-icon": "0.12.1",
42
+ "@availity/mui-button": "0.6.15",
43
+ "@availity/mui-chip": "0.2.27",
44
+ "@availity/mui-form-utils": "0.16.4",
45
+ "@availity/mui-icon": "0.13.0",
46
46
  "@availity/mui-layout": "0.2.0",
47
- "@availity/mui-link": "0.4.7",
48
- "@availity/mui-menu": "0.2.14",
47
+ "@availity/mui-link": "0.4.8",
48
+ "@availity/mui-menu": "0.2.15",
49
49
  "@availity/mui-paper": "0.1.9",
50
- "@availity/mui-textfield": "0.6.16",
50
+ "@availity/mui-textfield": "0.6.18",
51
51
  "@availity/mui-typography": "0.2.1",
52
52
  "@mui/material": "^5.15.15",
53
53
  "react": "18.2.0",
@@ -558,7 +558,7 @@ export const _ExpandableTable: StoryObj<typeof Table> = {
558
558
  <td colSpan={12}>
559
559
  <Collapse in={isItemExpanded} timeout="auto" unmountOnExit>
560
560
  <TableCell component="div" sx={{display: 'block'}}>
561
- <Grid container spacing={2} paddingLeft='32px'>
561
+ <Grid container spacing={2} paddingLeft='3rem'>
562
562
  <Grid xs>
563
563
  <Typography variant="body2" sx={{fontWeight: "bold"}}>
564
564
  Subscriber Member Id
@@ -10,6 +10,12 @@ const meta: Meta<typeof TableCell> = {
10
10
  args: {
11
11
  children: 'Cell content',
12
12
  },
13
+ argTypes: {
14
+ size: {
15
+ options: ['small', 'medium'],
16
+ control: { type: 'radio' },
17
+ },
18
+ }
13
19
  };
14
20
 
15
21
  export default meta;
@@ -3,9 +3,11 @@ import {
3
3
  default as MuiTablePagination,
4
4
  TablePaginationProps as MuiTablePaginationProps,
5
5
  } from '@mui/material/TablePagination';
6
+ import { SvgIconProps } from '@mui/material/SvgIcon';
6
7
  import { TableCellBaseProps } from '@mui/material/TableCell';
7
8
  import { Pagination, PaginationProps } from '@availity/mui-pagination';
8
9
  import { SelectAccessibilityOverrides } from '@availity/mui-form-utils';
10
+ import { TriangleExpandIcon } from '@availity/mui-icon';
9
11
 
10
12
  export type TablePaginationProps = {
11
13
  Actions?: React.ReactNode;
@@ -34,6 +36,10 @@ type TablePaginationActionsProps = {
34
36
  onPageChange: (event: React.MouseEvent<HTMLButtonElement>, newPage: number) => void;
35
37
  } & Pick<MuiTablePaginationProps, 'backIconButtonProps' | 'nextIconButtonProps'>;
36
38
 
39
+ const IconComponent = (args: SvgIconProps) => (
40
+ <TriangleExpandIcon fontSize='xxsmall' sx={{marginRight: '4px'}} {...args}/>
41
+ );
42
+
37
43
  export const TablePagination = forwardRef<unknown, TablePaginationProps>((props, ref) => {
38
44
  const { Actions, paginationProps, ...rest } = props;
39
45
  const [ openDetected, setOpenDetected ] = useState(false);
@@ -59,5 +65,5 @@ export const TablePagination = forwardRef<unknown, TablePaginationProps>((props,
59
65
  );
60
66
  };
61
67
 
62
- return <MuiTablePagination ActionsComponent={ActionsPagination} {...rest} slotProps={{select: {...SelectAccessibilityOverrides(openDetected, setOpenDetected)}}} ref={ref} />;
68
+ return <MuiTablePagination ActionsComponent={ActionsPagination} {...rest} slotProps={{select: {IconComponent: IconComponent, ...SelectAccessibilityOverrides(openDetected, setOpenDetected)}}} ref={ref} />;
63
69
  });