@tipp/ui 1.4.6 → 1.4.8

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.
Files changed (43) hide show
  1. package/dist/atoms/field-error-wrapper.js +2 -2
  2. package/dist/atoms/index.js +33 -33
  3. package/dist/atoms/pagination.js +2 -2
  4. package/dist/chunk-3CUUEWNJ.js +97 -0
  5. package/dist/chunk-3CUUEWNJ.js.map +1 -0
  6. package/dist/chunk-4GIK4KLW.js +190 -0
  7. package/dist/chunk-4GIK4KLW.js.map +1 -0
  8. package/dist/chunk-6E3RZKWT.js +340 -0
  9. package/dist/chunk-6E3RZKWT.js.map +1 -0
  10. package/dist/chunk-PCWEW2UL.js +80 -0
  11. package/dist/chunk-PCWEW2UL.js.map +1 -0
  12. package/dist/chunk-QAG24J3T.js +128 -0
  13. package/dist/chunk-QAG24J3T.js.map +1 -0
  14. package/dist/chunk-T5CA7NEI.js +164 -0
  15. package/dist/chunk-T5CA7NEI.js.map +1 -0
  16. package/dist/chunk-VR6Y66LP.js +190 -0
  17. package/dist/chunk-VR6Y66LP.js.map +1 -0
  18. package/dist/chunk-ZQLHJD5Q.js +192 -0
  19. package/dist/chunk-ZQLHJD5Q.js.map +1 -0
  20. package/dist/index.cjs +11 -9
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.js +66 -66
  23. package/dist/molecules/date-picker/index.js +2 -2
  24. package/dist/molecules/expand-table/index.cjs +11 -9
  25. package/dist/molecules/expand-table/index.cjs.map +1 -1
  26. package/dist/molecules/expand-table/index.d.cts +1 -0
  27. package/dist/molecules/expand-table/index.d.ts +1 -0
  28. package/dist/molecules/expand-table/index.js +19 -19
  29. package/dist/molecules/expand-table/row.cjs +4 -4
  30. package/dist/molecules/expand-table/row.cjs.map +1 -1
  31. package/dist/molecules/expand-table/row.d.cts +2 -1
  32. package/dist/molecules/expand-table/row.d.ts +2 -1
  33. package/dist/molecules/expand-table/row.js +16 -16
  34. package/dist/molecules/index.cjs +11 -9
  35. package/dist/molecules/index.cjs.map +1 -1
  36. package/dist/molecules/index.js +26 -26
  37. package/dist/molecules/learning-post.js +4 -4
  38. package/dist/molecules/navigation.js +16 -16
  39. package/dist/molecules/stepper.js +3 -3
  40. package/dist/molecules/tag-selector.js +16 -16
  41. package/package.json +1 -1
  42. package/src/molecules/expand-table/index.tsx +7 -4
  43. package/src/molecules/expand-table/row.tsx +6 -3
package/dist/index.cjs CHANGED
@@ -1083,7 +1083,7 @@ var import_react_table = require("@tanstack/react-table");
1083
1083
  var import_react19 = require("react");
1084
1084
  var import_jsx_runtime23 = require("react/jsx-runtime");
1085
1085
  function Row(props) {
1086
- const { row, ExpandComp, gridColTemp, getRowStyle } = props;
1086
+ const { row, ExpandComp, gridTemplateColumns, getRowStyle, getCellStyle } = props;
1087
1087
  const [open, setOpen] = (0, import_react19.useState)(false);
1088
1088
  const onClickRow = (0, import_react19.useCallback)(() => {
1089
1089
  var _a;
@@ -1107,7 +1107,7 @@ function Row(props) {
1107
1107
  className: "tr",
1108
1108
  onClick: onClickRow,
1109
1109
  style: __spreadValues({
1110
- gridTemplateColumns: gridColTemp
1110
+ gridTemplateColumns
1111
1111
  }, (getRowStyle == null ? void 0 : getRowStyle(row.original)) || {}),
1112
1112
  type: "button",
1113
1113
  children: row.getVisibleCells().map((cell) => {
@@ -1118,11 +1118,11 @@ function Row(props) {
1118
1118
  "div",
1119
1119
  {
1120
1120
  className: "td",
1121
- style: {
1121
+ style: __spreadValues({
1122
1122
  // width: autoSize ? undefined : cell.column.getSize(),
1123
1123
  flexGrow: autoSize ? 1 : void 0,
1124
1124
  justifyContent
1125
- },
1125
+ }, (getCellStyle == null ? void 0 : getCellStyle(row.original)) || {}),
1126
1126
  children: [
1127
1127
  (0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext()),
1128
1128
  ((_c = cell.column.columnDef.meta) == null ? void 0 : _c.OpenBtn) ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
@@ -1160,7 +1160,8 @@ function ExpandTable(props) {
1160
1160
  pageIndex = 0,
1161
1161
  pageSize = 10,
1162
1162
  siblingCount = 2,
1163
- getRowStyle
1163
+ getRowStyle,
1164
+ getCellStyle
1164
1165
  } = props;
1165
1166
  const defaultAlign = "left";
1166
1167
  const [pagination, setPagination] = (0, import_react20.useState)({
@@ -1181,7 +1182,7 @@ function ExpandTable(props) {
1181
1182
  getPaginationRowModel: (0, import_react_table2.getPaginationRowModel)(),
1182
1183
  onPaginationChange: setPagination
1183
1184
  });
1184
- const gridColTemp = (0, import_react20.useMemo)(() => {
1185
+ const gridTemplateColumns = (0, import_react20.useMemo)(() => {
1185
1186
  return columns.map((col) => {
1186
1187
  var _a;
1187
1188
  if ((_a = col.meta) == null ? void 0 : _a.autoSize)
@@ -1228,7 +1229,7 @@ function ExpandTable(props) {
1228
1229
  "div",
1229
1230
  {
1230
1231
  className: "tr",
1231
- style: { gridTemplateColumns: gridColTemp },
1232
+ style: { gridTemplateColumns },
1232
1233
  children: headerGroup.headers.map((header) => {
1233
1234
  var _a;
1234
1235
  const sortable = header.column.getCanSort();
@@ -1241,7 +1242,7 @@ function ExpandTable(props) {
1241
1242
  style: sortable ? { cursor: "pointer" } : { cursor: "default" },
1242
1243
  type: "button",
1243
1244
  children: [
1244
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, { variant: "body", children: (0, import_react_table2.flexRender)(
1245
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, { as: "div", variant: "body", children: (0, import_react_table2.flexRender)(
1245
1246
  header.column.columnDef.header,
1246
1247
  header.getContext()
1247
1248
  ) }),
@@ -1279,8 +1280,9 @@ function ExpandTable(props) {
1279
1280
  {
1280
1281
  ExpandComp,
1281
1282
  defaultAlign,
1283
+ getCellStyle,
1282
1284
  getRowStyle,
1283
- gridColTemp,
1285
+ gridTemplateColumns,
1284
1286
  onRowClick,
1285
1287
  row
1286
1288
  },