@tipp/ui 2.1.9 → 2.1.11

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 (108) hide show
  1. package/dist/app/index.cjs.map +1 -1
  2. package/dist/app/index.js +1 -1
  3. package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
  4. package/dist/app/platform/edit-coaching-time.js +1 -1
  5. package/dist/app/platform/edit-service-type.cjs.map +1 -1
  6. package/dist/app/platform/edit-service-type.js +1 -1
  7. package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
  8. package/dist/app/platform/goal-manage-card-edit.js +1 -1
  9. package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
  10. package/dist/app/platform/on-offline-radio-card.js +1 -1
  11. package/dist/app/platform/reservation-card.cjs.map +1 -1
  12. package/dist/app/platform/reservation-card.js +1 -1
  13. package/dist/app/platform/session-card.cjs.map +1 -1
  14. package/dist/app/platform/session-card.js +1 -1
  15. package/dist/chunk-2T7JCRER.js +30 -0
  16. package/dist/chunk-2T7JCRER.js.map +1 -0
  17. package/dist/chunk-3H5JZH44.js +192 -0
  18. package/dist/chunk-3H5JZH44.js.map +1 -0
  19. package/dist/chunk-3RNLOJ3Z.js +63 -0
  20. package/dist/chunk-3RNLOJ3Z.js.map +1 -0
  21. package/dist/chunk-535PWEKB.js +192 -0
  22. package/dist/chunk-535PWEKB.js.map +1 -0
  23. package/dist/chunk-B36RAS3U.js +37 -0
  24. package/dist/chunk-B36RAS3U.js.map +1 -0
  25. package/dist/chunk-BX5F5FIY.js +51 -0
  26. package/dist/chunk-BX5F5FIY.js.map +1 -0
  27. package/dist/chunk-CPH6OVGY.js +63 -0
  28. package/dist/chunk-CPH6OVGY.js.map +1 -0
  29. package/dist/chunk-ECOW2GOO.js +98 -0
  30. package/dist/chunk-ECOW2GOO.js.map +1 -0
  31. package/dist/chunk-GIRU6LCT.js +123 -0
  32. package/dist/chunk-GIRU6LCT.js.map +1 -0
  33. package/dist/chunk-HNO5SCLZ.js +192 -0
  34. package/dist/chunk-HNO5SCLZ.js.map +1 -0
  35. package/dist/chunk-HQGFHFGR.js +123 -0
  36. package/dist/chunk-HQGFHFGR.js.map +1 -0
  37. package/dist/chunk-I6NVQV5Q.js +59 -0
  38. package/dist/chunk-I6NVQV5Q.js.map +1 -0
  39. package/dist/chunk-J27CSA2I.js +59 -0
  40. package/dist/chunk-J27CSA2I.js.map +1 -0
  41. package/dist/chunk-J52WPSWU.js +150 -0
  42. package/dist/chunk-J52WPSWU.js.map +1 -0
  43. package/dist/chunk-JXNELVQI.js +144 -0
  44. package/dist/chunk-JXNELVQI.js.map +1 -0
  45. package/dist/chunk-K2MWDCUN.js +61 -0
  46. package/dist/chunk-K2MWDCUN.js.map +1 -0
  47. package/dist/chunk-K43UQM5K.js +29 -0
  48. package/dist/chunk-K43UQM5K.js.map +1 -0
  49. package/dist/chunk-K5YEAJYF.js +174 -0
  50. package/dist/chunk-K5YEAJYF.js.map +1 -0
  51. package/dist/chunk-LPLXVTDP.js +192 -0
  52. package/dist/chunk-LPLXVTDP.js.map +1 -0
  53. package/dist/chunk-LYSC27W7.js +145 -0
  54. package/dist/chunk-LYSC27W7.js.map +1 -0
  55. package/dist/chunk-MHQTP5GH.js +150 -0
  56. package/dist/chunk-MHQTP5GH.js.map +1 -0
  57. package/dist/chunk-MZ3VW66Q.js +89 -0
  58. package/dist/chunk-MZ3VW66Q.js.map +1 -0
  59. package/dist/chunk-NXECPRLF.js +192 -0
  60. package/dist/chunk-NXECPRLF.js.map +1 -0
  61. package/dist/chunk-O5VFW7GH.js +59 -0
  62. package/dist/chunk-O5VFW7GH.js.map +1 -0
  63. package/dist/chunk-OBR3PYFG.js +89 -0
  64. package/dist/chunk-OBR3PYFG.js.map +1 -0
  65. package/dist/chunk-OY7YLOWY.js +69 -0
  66. package/dist/chunk-OY7YLOWY.js.map +1 -0
  67. package/dist/chunk-QQ5DIV3E.js +89 -0
  68. package/dist/chunk-QQ5DIV3E.js.map +1 -0
  69. package/dist/chunk-QTUOT7HX.js +59 -0
  70. package/dist/chunk-QTUOT7HX.js.map +1 -0
  71. package/dist/chunk-SPKSNWII.js +101 -0
  72. package/dist/chunk-SPKSNWII.js.map +1 -0
  73. package/dist/chunk-TNMIE7WN.js +192 -0
  74. package/dist/chunk-TNMIE7WN.js.map +1 -0
  75. package/dist/chunk-VTNGVFOL.js +123 -0
  76. package/dist/chunk-VTNGVFOL.js.map +1 -0
  77. package/dist/chunk-VVMUR24Y.js +281 -0
  78. package/dist/chunk-VVMUR24Y.js.map +1 -0
  79. package/dist/chunk-WNFEYK6I.js +123 -0
  80. package/dist/chunk-WNFEYK6I.js.map +1 -0
  81. package/dist/chunk-WNYT4BQZ.js +89 -0
  82. package/dist/chunk-WNYT4BQZ.js.map +1 -0
  83. package/dist/chunk-WPLJHMMO.js +87 -0
  84. package/dist/chunk-WPLJHMMO.js.map +1 -0
  85. package/dist/chunk-WRTFAPEW.js +49 -0
  86. package/dist/chunk-WRTFAPEW.js.map +1 -0
  87. package/dist/chunk-WZBMMXTJ.js +59 -0
  88. package/dist/chunk-WZBMMXTJ.js.map +1 -0
  89. package/dist/chunk-XDVRMLAH.js +42 -0
  90. package/dist/chunk-XDVRMLAH.js.map +1 -0
  91. package/dist/chunk-XPKOBDJ7.js +43 -0
  92. package/dist/chunk-XPKOBDJ7.js.map +1 -0
  93. package/dist/chunk-YDNYSZ4R.js +89 -0
  94. package/dist/chunk-YDNYSZ4R.js.map +1 -0
  95. package/dist/chunk-ZS32P3T5.js +123 -0
  96. package/dist/chunk-ZS32P3T5.js.map +1 -0
  97. package/dist/index.cjs +66 -64
  98. package/dist/index.cjs.map +1 -1
  99. package/dist/index.css +46 -21
  100. package/dist/index.js +1 -1
  101. package/dist/molecules/expand-table/index.cjs +66 -64
  102. package/dist/molecules/expand-table/index.cjs.map +1 -1
  103. package/dist/molecules/expand-table/index.js +1 -1
  104. package/dist/molecules/index.cjs +66 -64
  105. package/dist/molecules/index.cjs.map +1 -1
  106. package/dist/molecules/index.js +1 -1
  107. package/package.json +1 -1
  108. package/src/molecules/expand-table/index.tsx +12 -11
package/dist/index.css CHANGED
@@ -27354,6 +27354,7 @@ p.rt-Text{
27354
27354
  display: inline-block;
27355
27355
  position: relative;
27356
27356
  line-height: initial;
27357
+ height: 300px;
27357
27358
  }
27358
27359
  .react-datepicker--time-only .react-datepicker__time-container{
27359
27360
  border-left: 0;
@@ -30858,22 +30859,41 @@ p.kg-collection-card-post-excerpt{
30858
30859
  .react-datepicker.tipp_datePicker_calendar .react-datepicker-time__header{
30859
30860
  font-weight: 400;
30860
30861
  }
30861
- .expand-table{
30862
+ .expand-table-wrapper{
30863
+ width: 100%;
30864
+ height: 100%;
30865
+ display: grid;
30866
+ grid-template-rows: 1fr auto;
30867
+ overflow-x: auto;
30868
+ scrollbar-width: none;
30869
+ }
30870
+ .expand-table-wrapper .expand-table{
30862
30871
  box-sizing: content-box;
30872
+ position: relative;
30873
+ min-width: -moz-fit-content;
30874
+ min-width: fit-content;
30863
30875
  width: 100%;
30876
+ height: 100%;
30877
+ overflow-y: auto;
30878
+ overflow-x: hidden;
30864
30879
  }
30865
- .expand-table .thead .tr{
30866
- background-color: var(--accent-a2);
30880
+ .expand-table-wrapper .expand-table .thead{
30881
+ position: sticky;
30882
+ top: 0;
30883
+ z-index: 10;
30884
+ background-color: var(--color-panel-solid);
30885
+ }
30886
+ .expand-table-wrapper .expand-table .thead .tr{
30887
+ background-color: var(--accent-2);
30867
30888
  padding: var(--space-1) var(--space-5);
30868
30889
  min-height: 44px;
30869
30890
  display: grid;
30870
30891
  border-radius: var(--radius-5);
30871
- overflow: hidden;
30872
30892
  }
30873
- .expand-table .thead .tr .th{
30893
+ .expand-table-wrapper .expand-table .thead .tr .th{
30874
30894
  display: flex;
30875
30895
  }
30876
- .expand-table .thead .tr .th button{
30896
+ .expand-table-wrapper .expand-table .thead .tr .th button{
30877
30897
  padding: 0;
30878
30898
  background: transparent;
30879
30899
  border: none;
@@ -30881,51 +30901,56 @@ p.kg-collection-card-post-excerpt{
30881
30901
  display: flex;
30882
30902
  align-items: center;
30883
30903
  }
30884
- .expand-table .thead .tr .th.left{
30904
+ .expand-table-wrapper .expand-table .thead .tr .th.left{
30885
30905
  justify-content: flex-start;
30886
30906
  }
30887
- .expand-table .thead .tr .th.right{
30907
+ .expand-table-wrapper .expand-table .thead .tr .th.right{
30888
30908
  justify-content: flex-end;
30889
30909
  }
30890
- .expand-table .thead .tr .th.center{
30910
+ .expand-table-wrapper .expand-table .thead .tr .th.center{
30891
30911
  justify-content: center;
30892
30912
  }
30893
- .expand-table .th,
30894
- .expand-table .td{
30913
+ .expand-table-wrapper .expand-table .th,
30914
+ .expand-table-wrapper .expand-table .td{
30895
30915
  padding: var(--space-2);
30896
30916
  }
30897
- .expand-table .th:first-child, .expand-table .td:first-child{
30917
+ .expand-table-wrapper .expand-table .th:first-child, .expand-table-wrapper .expand-table .td:first-child{
30898
30918
  padding-left: 0;
30899
30919
  }
30900
- .expand-table .th:last-child, .expand-table .td:last-child{
30920
+ .expand-table-wrapper .expand-table .th:last-child, .expand-table-wrapper .expand-table .td:last-child{
30901
30921
  padding-right: 0;
30902
30922
  }
30903
- .expand-table .tbody{
30923
+ .expand-table-wrapper .expand-table .tr{
30924
+ min-width: -moz-fit-content;
30925
+ min-width: fit-content;
30926
+ }
30927
+ .expand-table-wrapper .expand-table .tbody{
30928
+ width: 100%;
30904
30929
  margin-top: var(--space-1);
30905
30930
  }
30906
- .expand-table .tbody .tr-wrapper{
30931
+ .expand-table-wrapper .expand-table .tbody .tr-wrapper{
30932
+ width: 100%;
30907
30933
  cursor: default;
30908
30934
  border-radius: var(--radius-6);
30909
30935
  border: 1px solid transparent;
30910
30936
  box-shadow: var(--shadow-2);
30911
- overflow: hidden;
30912
30937
  margin-bottom: var(--space-1);
30913
30938
  background-color: var(--color-panel-solid);
30914
30939
  transition: 0.3s ease-in-out background-color border-color;
30915
30940
  }
30916
- .expand-table .tbody .tr-wrapper.clickable:hover, .expand-table .tbody .tr-wrapper.expandable:hover{
30941
+ .expand-table-wrapper .expand-table .tbody .tr-wrapper.clickable:hover, .expand-table-wrapper .expand-table .tbody .tr-wrapper.expandable:hover{
30917
30942
  border: 1px solid var(--accent-a7);
30918
30943
  background-color: var(--accent-a2);
30919
30944
  }
30920
- .expand-table .tbody .tr-wrapper.clickable button.tr, .expand-table .tbody .tr-wrapper.expandable button.tr{
30945
+ .expand-table-wrapper .expand-table .tbody .tr-wrapper.clickable button.tr, .expand-table-wrapper .expand-table .tbody .tr-wrapper.expandable button.tr{
30921
30946
  cursor: pointer;
30922
30947
  }
30923
- .expand-table .tbody .tr-wrapper.expandable .expand-comp-wrapper{
30948
+ .expand-table-wrapper .expand-table .tbody .tr-wrapper.expandable .expand-comp-wrapper{
30924
30949
  width: 100%;
30925
30950
  height: 100%;
30926
30951
  border-top: 1px solid var(--gray-3);
30927
30952
  }
30928
- .expand-table .tbody .tr-wrapper button.tr{
30953
+ .expand-table-wrapper .expand-table .tbody .tr-wrapper button.tr{
30929
30954
  -webkit-user-select: text;
30930
30955
  -moz-user-select: text;
30931
30956
  user-select: text;
@@ -30939,7 +30964,7 @@ p.kg-collection-card-post-excerpt{
30939
30964
  border: none;
30940
30965
  border-radius: var(--radius-6);
30941
30966
  }
30942
- .expand-table .tbody .tr-wrapper button.tr .td{
30967
+ .expand-table-wrapper .expand-table .tbody .tr-wrapper button.tr .td{
30943
30968
  font-size: var(--font-size-2);
30944
30969
  display: flex;
30945
30970
  align-items: center;
package/dist/index.js CHANGED
@@ -108,7 +108,7 @@ import {
108
108
  import {
109
109
  ExpandTable,
110
110
  createColumnHelper
111
- } from "./chunk-BE6JPXUV.js";
111
+ } from "./chunk-3H5JZH44.js";
112
112
  import "./chunk-WDUSQ6HR.js";
113
113
  import "./chunk-AI7EZKUN.js";
114
114
  import {
@@ -1515,7 +1515,7 @@ function ExpandTable(props) {
1515
1515
  const gridTemplateColumns = (0, import_react21.useMemo)(() => {
1516
1516
  return columns.map((col) => {
1517
1517
  var _a;
1518
- if ((_a = col.meta) == null ? void 0 : _a.autoSize) return "1fr";
1518
+ if ((_a = col.meta) == null ? void 0 : _a.autoSize) return `minmax(${col.size || 50}px, 1fr)`;
1519
1519
  return `${col.size || 150}px`;
1520
1520
  }).join(" ");
1521
1521
  }, [columns]);
@@ -1552,71 +1552,73 @@ function ExpandTable(props) {
1552
1552
  if (!data) return 0;
1553
1553
  return Math.ceil(data.length / pageSize);
1554
1554
  }, [data, pageSize]);
1555
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "expand-table", style: tableStyle, children: [
1556
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "thead", children: getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
1557
- "div",
1558
- {
1559
- className: "tr",
1560
- style: { gridTemplateColumns },
1561
- children: headerGroup.headers.map((header) => {
1562
- var _a;
1563
- const sortable = header.column.getCanSort();
1564
- const sortedState = header.column.getIsSorted();
1565
- const justifyContent = ((_a = header.column.columnDef.meta) == null ? void 0 : _a.align) || defaultAlign;
1566
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: `${justifyContent} th`, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
1567
- "button",
1568
- {
1569
- onClick: header.column.getToggleSortingHandler(),
1570
- style: sortable ? { cursor: "pointer" } : { cursor: "default" },
1571
- type: "button",
1572
- children: [
1573
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Typo, { as: "div", variant: "body", children: (0, import_react_table2.flexRender)(
1574
- header.column.columnDef.header,
1575
- header.getContext()
1576
- ) }),
1577
- sortable ? /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
1578
- import_themes22.Flex,
1579
- {
1580
- direction: "column",
1581
- style: { marginLeft: "var(--space-2)" },
1582
- children: [
1583
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
1584
- TriangleArrowUpIcon,
1585
- {
1586
- color: sortedState === "asc" ? "var(--iris-10)" : "var(--iris-6)"
1587
- }
1588
- ),
1589
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
1590
- TriangleArrowDownIcon,
1591
- {
1592
- color: sortedState === "desc" ? "var(--iris-10)" : "var(--iris-6)"
1593
- }
1594
- )
1595
- ]
1596
- }
1597
- ) : null
1598
- ]
1599
- }
1600
- ) }, header.id);
1601
- })
1602
- },
1603
- headerGroup.id
1604
- )) }),
1605
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "tbody", children: helpCompRender(rowModels.rows.length) || rowModels.rows.map((row) => {
1606
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
1607
- Row,
1555
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "expand-table-wrapper", children: [
1556
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "expand-table", style: tableStyle, children: [
1557
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "thead", children: getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
1558
+ "div",
1608
1559
  {
1609
- ExpandComp,
1610
- defaultAlign,
1611
- getCellStyle,
1612
- getRowStyle,
1613
- gridTemplateColumns,
1614
- onRowClick,
1615
- row
1560
+ className: "tr",
1561
+ style: { gridTemplateColumns },
1562
+ children: headerGroup.headers.map((header) => {
1563
+ var _a;
1564
+ const sortable = header.column.getCanSort();
1565
+ const sortedState = header.column.getIsSorted();
1566
+ const justifyContent = ((_a = header.column.columnDef.meta) == null ? void 0 : _a.align) || defaultAlign;
1567
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: `${justifyContent} th`, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
1568
+ "button",
1569
+ {
1570
+ onClick: header.column.getToggleSortingHandler(),
1571
+ style: sortable ? { cursor: "pointer" } : { cursor: "default" },
1572
+ type: "button",
1573
+ children: [
1574
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Typo, { as: "div", variant: "body", children: (0, import_react_table2.flexRender)(
1575
+ header.column.columnDef.header,
1576
+ header.getContext()
1577
+ ) }),
1578
+ sortable ? /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
1579
+ import_themes22.Flex,
1580
+ {
1581
+ direction: "column",
1582
+ style: { marginLeft: "var(--space-2)" },
1583
+ children: [
1584
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
1585
+ TriangleArrowUpIcon,
1586
+ {
1587
+ color: sortedState === "asc" ? "var(--iris-10)" : "var(--iris-6)"
1588
+ }
1589
+ ),
1590
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
1591
+ TriangleArrowDownIcon,
1592
+ {
1593
+ color: sortedState === "desc" ? "var(--iris-10)" : "var(--iris-6)"
1594
+ }
1595
+ )
1596
+ ]
1597
+ }
1598
+ ) : null
1599
+ ]
1600
+ }
1601
+ ) }, header.id);
1602
+ })
1616
1603
  },
1617
- `row_${row.id}`
1618
- );
1619
- }) }),
1604
+ headerGroup.id
1605
+ )) }),
1606
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "tbody", children: helpCompRender(rowModels.rows.length) || rowModels.rows.map((row) => {
1607
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
1608
+ Row,
1609
+ {
1610
+ ExpandComp,
1611
+ defaultAlign,
1612
+ getCellStyle,
1613
+ getRowStyle,
1614
+ gridTemplateColumns,
1615
+ onRowClick,
1616
+ row
1617
+ },
1618
+ `row_${row.id}`
1619
+ );
1620
+ }) })
1621
+ ] }),
1620
1622
  showPagination ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_themes22.Flex, { justify: "end", pt: "3", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
1621
1623
  Pagination,
1622
1624
  {