@edu-tosel/design 1.0.2 → 1.0.4

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 (80) hide show
  1. package/README.md +44 -30
  2. package/board/index.d.ts +2 -2
  3. package/board/index.js +2 -2
  4. package/board/template/CanvasBoard.d.ts +2 -0
  5. package/board/template/CanvasBoard.js +10 -0
  6. package/board/template/ManageBoard.d.ts +4 -0
  7. package/board/template/ManageBoard.js +28 -0
  8. package/board/widget/Board.d.ts +2 -0
  9. package/board/widget/Board.js +16 -0
  10. package/board/widget/DataField.d.ts +6 -0
  11. package/board/widget/DataField.js +24 -0
  12. package/board/widget/Header.d.ts +2 -0
  13. package/board/widget/Header.js +22 -0
  14. package/board/widget/Tab.d.ts +4 -0
  15. package/board/widget/Tab.js +17 -0
  16. package/board/widget/Tags.d.ts +3 -0
  17. package/board/widget/Tags.js +30 -0
  18. package/card/index.d.ts +5 -4
  19. package/card/index.js +5 -4
  20. package/card/template/ChartCard.d.ts +2 -0
  21. package/card/{ChartCard.js → template/ChartCard.js} +2 -3
  22. package/card/{ProfileCard.d.ts → template/ProfileCard.d.ts} +1 -1
  23. package/card/{ProfileCard.js → template/ProfileCard.js} +3 -3
  24. package/card/template/RowCard.d.ts +5 -0
  25. package/card/template/RowCard.js +26 -0
  26. package/card/template/TableCard.d.ts +2 -0
  27. package/card/{TableCard.js → template/TableCard.js} +2 -3
  28. package/card/template/TrumpCard.d.ts +2 -0
  29. package/card/{TrumpCard.js → template/TrumpCard.js} +3 -3
  30. package/card/{Card.d.ts → widget/Card.d.ts} +1 -2
  31. package/card/widget/Card.js +45 -0
  32. package/deck/Deck.d.ts +1 -0
  33. package/deck/Deck.js +11 -10
  34. package/globals.css +2 -2
  35. package/index.d.ts +2 -0
  36. package/index.js +2 -0
  37. package/interaction/Exception.d.ts +2 -0
  38. package/interaction/Exception.js +9 -0
  39. package/interaction/LoadingSpinner.d.ts +1 -0
  40. package/interaction/LoadingSpinner.js +5 -0
  41. package/interaction/index.d.ts +2 -0
  42. package/interaction/index.js +2 -0
  43. package/interface/Board.d.ts +52 -5
  44. package/interface/Card.d.ts +3 -0
  45. package/interface/HTMLElement.d.ts +13 -0
  46. package/interface/HTMLElement.js +1 -0
  47. package/interface/Interaction.d.ts +5 -0
  48. package/interface/Interaction.js +1 -0
  49. package/interface/Property.d.ts +3 -1
  50. package/interface/Property.js +2 -0
  51. package/interface/index.d.ts +0 -1
  52. package/interface/index.js +0 -1
  53. package/layout/dashboard/index.js +1 -1
  54. package/menu/SideMenu.d.ts +1 -0
  55. package/menu/SideMenu.js +14 -0
  56. package/menu/index.d.ts +1 -0
  57. package/menu/index.js +1 -0
  58. package/modal/Modal.js +2 -0
  59. package/navigation/Navigation.js +3 -5
  60. package/package.json +4 -2
  61. package/shelf/Shelf.d.ts +1 -1
  62. package/shelf/Shelf.js +2 -2
  63. package/shelf/index.d.ts +1 -1
  64. package/shelf/index.js +1 -1
  65. package/store/index.d.ts +6 -0
  66. package/store/index.js +21 -0
  67. package/tailwind.config.ts +166 -51
  68. package/version.txt +1 -1
  69. package/board/Board.d.ts +0 -2
  70. package/board/Board.js +0 -14
  71. package/board/CanvasBoard.d.ts +0 -2
  72. package/board/CanvasBoard.js +0 -11
  73. package/board/Header.d.ts +0 -6
  74. package/board/Header.js +0 -12
  75. package/board/ListBoard.d.ts +0 -7
  76. package/board/ListBoard.js +0 -7
  77. package/card/Card.js +0 -34
  78. package/card/ChartCard.d.ts +0 -3
  79. package/card/TableCard.d.ts +0 -3
  80. package/card/TrumpCard.d.ts +0 -2
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Board } from "./Board";
3
- export function ListBoard({ children, options, }) {
4
- const { height } = options ?? {};
5
- const classNames = ["pt-8 px-12 overflow-y-scroll h-full pb-32"].join(" ");
6
- return (_jsx(Board, { options: { height }, children: _jsx("div", { className: classNames, children: children }) }));
7
- }
package/card/Card.js DELETED
@@ -1,34 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import "../globals.css";
3
- import { cn } from "../util";
4
- const widthSize = {
5
- xs: "md:w-60",
6
- sm: "md:w-90",
7
- md: "md:w-112.5",
8
- lg: "md:w-127.5",
9
- xl: "lg:w-187.5",
10
- "2xl": "lg:w-247.5",
11
- };
12
- const heightSize = {
13
- xs: "",
14
- sm: "h-72 sm:h-48",
15
- md: "h-72 sm:h-48",
16
- lg: "h-80",
17
- xl: "h-125",
18
- "2xl": "",
19
- };
20
- export function Card({ children, options }) {
21
- const { height, width, text, onClick } = options ?? {};
22
- const { size: textSize, color: textColor } = text ?? {};
23
- const sizes = [
24
- `${heightSize[height ?? "sm"]}`,
25
- `w-full ${widthSize[width ?? "sm"]}`,
26
- ].join(" ");
27
- const positions = "relative";
28
- const styles = [
29
- `${onClick ? "cursor-pointer" : ""}`,
30
- `text-${textSize ?? "base"}`,
31
- `rounded-xl bg-white/80 overflow-hidden box-shadow duration-500`,
32
- ].join(" ");
33
- return (_jsx("div", { onClick: onClick, className: cn(sizes, positions, styles), children: children }));
34
- }
@@ -1,3 +0,0 @@
1
- import "../globals.css";
2
- import { ChartCardProps } from "../interface/Card";
3
- export declare function ChartCard({ data, xAxis, yAxis, lines, bars, areas, }: ChartCardProps): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- import "../globals.css";
2
- import { TableCardProps } from "../interface/Card";
3
- export declare function TableCard({ data, fields, sizes, options }: TableCardProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { TrumpCardProps } from "../interface/Card";
2
- export declare function TrumpCard({ titles, options }: TrumpCardProps): import("react/jsx-runtime").JSX.Element;