@edu-tosel/design 1.0.4 → 1.0.5

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.
@@ -14,8 +14,8 @@ export default function ManageBoard({ header, data, widgets, }) {
14
14
  const sizes = `h-full ${dataField ? "xl:h-135" : "xl:h-158"}`;
15
15
  const paddings = "pb-60 xl:pb-0 px-2 xs:px-4 xl:px-8";
16
16
  const styles = "overflow-y-scroll";
17
- return (_jsxs(Board, { widgets: widgets, children: [_jsx(BoardHeader, { ...header }), dataField && _jsx(BoardDataField, { dataField: dataField }), _jsx("div", { className: cn(positions, sizes, paddings, styles), children: _jsx(Exception, { exceptions: widgets?.exceptions, children: dataSets.map(({ title: deckTitle, items, renderItem }) => deckTitle ? (_jsx("div", { className: "pt-4", children: _jsx(Deck, { titles: { title: deckTitle ?? "" }, children: items.map((item) => renderItem(item)) }) }, deckTitle)) : (items
18
- .slice()
17
+ return (_jsxs(Board, { widgets: widgets, children: [_jsx(BoardHeader, { ...header }), dataField && _jsx(BoardDataField, { dataField: dataField }), _jsx("div", { className: cn(positions, sizes, paddings, styles), children: _jsx(Exception, { exceptions: widgets?.exceptions, children: dataSets.map(({ title: deckTitle, items, renderItem }) => deckTitle ? (_jsx("div", { className: "pt-4", children: _jsx(Deck, { titles: { title: deckTitle ?? "" }, children: items?.map((item) => renderItem(item)) }) }, deckTitle)) : (items
18
+ ?.slice()
19
19
  .sort((a, b) => {
20
20
  if (orderBy) {
21
21
  if (orderHow === "asc")
@@ -0,0 +1 @@
1
+ export default function NoData(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export default function NoData() {
3
+ return (_jsx("div", { className: "w-full h-full flex items-center justify-center", children: "NoData" }));
4
+ }
@@ -40,7 +40,7 @@ export interface ManageBoardProps<T> extends BoardProps {
40
40
  data: {
41
41
  dataSets: {
42
42
  title?: string;
43
- items: T[];
43
+ items: T[] | undefined;
44
44
  renderItem: (items: T) => React.ReactNode;
45
45
  }[];
46
46
  dataField?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edu-tosel/design",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "UI components for International TOSEL Committee",
5
5
  "keywords": [
6
6
  "jsx",
package/version.txt CHANGED
@@ -1 +1 @@
1
- 1.0.4
1
+ 1.0.5