@federball/components 0.0.21 → 0.0.23

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 (59) hide show
  1. package/dist/chips/DrawTypeChip.d.ts +1 -1
  2. package/dist/chips/DrawTypeChip.d.ts.map +1 -1
  3. package/dist/chips/EntryStatusChip.d.ts +1 -1
  4. package/dist/chips/EntryStatusChip.d.ts.map +1 -1
  5. package/dist/chips/EventTypeChip.d.ts +1 -1
  6. package/dist/chips/EventTypeChip.d.ts.map +1 -1
  7. package/dist/chips/GameStageChip.d.ts +3 -3
  8. package/dist/chips/GameStageChip.d.ts.map +1 -1
  9. package/dist/chips/GameStageChip.js +5 -4
  10. package/dist/chips/GameStageChip.js.map +1 -1
  11. package/dist/chips/GameStatusChip.d.ts +1 -1
  12. package/dist/chips/GameStatusChip.d.ts.map +1 -1
  13. package/dist/chips/GameStatusChip.js.map +1 -1
  14. package/dist/chips/PlayerIdentifierChip.d.ts +6 -0
  15. package/dist/chips/PlayerIdentifierChip.d.ts.map +1 -0
  16. package/dist/chips/PlayerIdentifierChip.js +7 -0
  17. package/dist/chips/PlayerIdentifierChip.js.map +1 -0
  18. package/dist/chips/ScoringSystemChip.d.ts +1 -1
  19. package/dist/chips/ScoringSystemChip.d.ts.map +1 -1
  20. package/dist/chips/UserTypeChip.d.ts.map +1 -1
  21. package/dist/chips/UserTypeChip.js +2 -1
  22. package/dist/chips/UserTypeChip.js.map +1 -1
  23. package/dist/chips/index.d.ts +2 -1
  24. package/dist/chips/index.d.ts.map +1 -1
  25. package/dist/chips/index.js +2 -1
  26. package/dist/chips/index.js.map +1 -1
  27. package/dist/descriptions.d.ts +4 -0
  28. package/dist/descriptions.d.ts.map +1 -0
  29. package/dist/descriptions.js +21 -0
  30. package/dist/descriptions.js.map +1 -0
  31. package/dist/fields/DrawTypeField.d.ts +8 -0
  32. package/dist/fields/DrawTypeField.d.ts.map +1 -0
  33. package/dist/fields/DrawTypeField.js +9 -0
  34. package/dist/fields/DrawTypeField.js.map +1 -0
  35. package/dist/fields/ScoringSystemField.d.ts +8 -0
  36. package/dist/fields/ScoringSystemField.d.ts.map +1 -0
  37. package/dist/fields/ScoringSystemField.js +9 -0
  38. package/dist/fields/ScoringSystemField.js.map +1 -0
  39. package/dist/fields/index.d.ts +4 -0
  40. package/dist/fields/index.d.ts.map +1 -0
  41. package/dist/fields/index.js +4 -0
  42. package/dist/fields/index.js.map +1 -0
  43. package/dist/icons/DrawTypeIcon.d.ts +1 -1
  44. package/dist/icons/DrawTypeIcon.d.ts.map +1 -1
  45. package/dist/icons/EventTypeIcon.d.ts +1 -1
  46. package/dist/icons/EventTypeIcon.d.ts.map +1 -1
  47. package/dist/icons/GameStatusIcon.d.ts +1 -1
  48. package/dist/icons/GameStatusIcon.d.ts.map +1 -1
  49. package/dist/icons/IdentifierIcon.d.ts +3 -0
  50. package/dist/icons/IdentifierIcon.d.ts.map +1 -0
  51. package/dist/icons/IdentifierIcon.js +6 -0
  52. package/dist/icons/IdentifierIcon.js.map +1 -0
  53. package/dist/labels.d.ts +10 -2
  54. package/dist/labels.d.ts.map +1 -1
  55. package/dist/labels.js +45 -2
  56. package/dist/labels.js.map +1 -1
  57. package/dist/types.d.ts +1 -5
  58. package/dist/types.d.ts.map +1 -1
  59. package/package.json +7 -1
@@ -1,4 +1,4 @@
1
- import type { DrawType } from "../types";
1
+ import type { DrawType } from "@federball/types";
2
2
  type DrawTypeChipProps = {
3
3
  type: DrawType;
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DrawTypeChip.d.ts","sourceRoot":"","sources":["../../src/chips/DrawTypeChip.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGzC,KAAK,iBAAiB,GAAG;IACxB,IAAI,EAAE,QAAQ,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,UAAU,iBAAiB,4CAOvD,CAAC"}
1
+ {"version":3,"file":"DrawTypeChip.d.ts","sourceRoot":"","sources":["../../src/chips/DrawTypeChip.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGjD,KAAK,iBAAiB,GAAG;IACxB,IAAI,EAAE,QAAQ,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,UAAU,iBAAiB,4CAOvD,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { EntryStatus } from "../types";
1
+ import type { EntryStatus } from "@federball/types";
2
2
  type Props = {
3
3
  status: EntryStatus;
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"EntryStatusChip.d.ts","sourceRoot":"","sources":["../../src/chips/EntryStatusChip.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,KAAK,KAAK,GAAG;IACZ,MAAM,EAAE,WAAW,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,YAAY,KAAK,4CAuBhD,CAAC"}
1
+ {"version":3,"file":"EntryStatusChip.d.ts","sourceRoot":"","sources":["../../src/chips/EntryStatusChip.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,KAAK,KAAK,GAAG;IACZ,MAAM,EAAE,WAAW,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,YAAY,KAAK,4CAuBhD,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { EventType } from "../types";
1
+ import type { EventType } from "@federball/types";
2
2
  type EventTypeChipProps = {
3
3
  type: EventType;
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"EventTypeChip.d.ts","sourceRoot":"","sources":["../../src/chips/EventTypeChip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,KAAK,kBAAkB,GAAG;IACzB,IAAI,EAAE,SAAS,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,UAAU,kBAAkB,4CAOzD,CAAC"}
1
+ {"version":3,"file":"EventTypeChip.d.ts","sourceRoot":"","sources":["../../src/chips/EventTypeChip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,KAAK,kBAAkB,GAAG;IACzB,IAAI,EAAE,SAAS,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,UAAU,kBAAkB,4CAOzD,CAAC"}
@@ -1,7 +1,7 @@
1
- type Stage = "GROUP" | "ROUND_32" | "ROUND_16" | "QUARTERFINAL" | "SEMIFINAL" | "FINAL";
1
+ import type { DrawStage } from "@federball/types";
2
2
  type Props = {
3
- stage: Stage;
3
+ drawStage: DrawStage;
4
4
  };
5
- export declare const GameStageChip: ({ stage }: Props) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const GameStageChip: ({ drawStage }: Props) => import("react/jsx-runtime").JSX.Element;
6
6
  export {};
7
7
  //# sourceMappingURL=GameStageChip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GameStageChip.d.ts","sourceRoot":"","sources":["../../src/chips/GameStageChip.tsx"],"names":[],"mappings":"AAIA,KAAK,KAAK,GACP,OAAO,GACP,UAAU,GACV,UAAU,GACV,cAAc,GACd,WAAW,GACX,OAAO,CAAC;AAEX,KAAK,KAAK,GAAG;IACZ,KAAK,EAAE,KAAK,CAAC;CACb,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,WAAW,KAAK,4CAiB7C,CAAC"}
1
+ {"version":3,"file":"GameStageChip.d.ts","sourceRoot":"","sources":["../../src/chips/GameStageChip.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,KAAK,KAAK,GAAG;IACZ,SAAS,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,eAAe,KAAK,4CAiBjD,CAAC"}
@@ -2,12 +2,13 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Chip } from "@heroui/react";
3
3
  import { GroupIcon } from "../icons/GroupIcon";
4
4
  import { KnockoutIcon } from "../icons/KnockoutIcon";
5
- export const GameStageChip = ({ stage }) => {
6
- switch (stage) {
5
+ import { getLabelForDrawStage } from "../labels";
6
+ export const GameStageChip = ({ drawStage }) => {
7
+ switch (drawStage) {
7
8
  case "GROUP":
8
- return (_jsxs(Chip, { size: "lg", children: [_jsx(GroupIcon, { size: "sm" }), _jsx(Chip.Label, { children: stage })] }));
9
+ return (_jsxs(Chip, { size: "lg", children: [_jsx(GroupIcon, { size: "sm" }), _jsx(Chip.Label, { children: getLabelForDrawStage(drawStage) })] }));
9
10
  default:
10
- return (_jsxs(Chip, { size: "lg", children: [_jsx(KnockoutIcon, { size: "sm" }), _jsx(Chip.Label, { children: stage })] }));
11
+ return (_jsxs(Chip, { size: "lg", children: [_jsx(KnockoutIcon, { size: "sm" }), _jsx(Chip.Label, { children: getLabelForDrawStage(drawStage) })] }));
11
12
  }
12
13
  };
13
14
  //# sourceMappingURL=GameStageChip.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GameStageChip.js","sourceRoot":"","sources":["../../src/chips/GameStageChip.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAcrD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAE,KAAK,EAAS,EAAE,EAAE;IACjD,QAAQ,KAAK,EAAE,CAAC;QACf,KAAK,OAAO;YACX,OAAO,CACN,MAAC,IAAI,IAAC,IAAI,EAAC,IAAI,aACd,KAAC,SAAS,IAAC,IAAI,EAAC,IAAI,GAAG,EACvB,KAAC,IAAI,CAAC,KAAK,cAAE,KAAK,GAAc,IAC1B,CACP,CAAC;QACH;YACC,OAAO,CACN,MAAC,IAAI,IAAC,IAAI,EAAC,IAAI,aACd,KAAC,YAAY,IAAC,IAAI,EAAC,IAAI,GAAG,EAC1B,KAAC,IAAI,CAAC,KAAK,cAAE,KAAK,GAAc,IAC1B,CACP,CAAC;IACJ,CAAC;AACF,CAAC,CAAC"}
1
+ {"version":3,"file":"GameStageChip.js","sourceRoot":"","sources":["../../src/chips/GameStageChip.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAOjD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAE,SAAS,EAAS,EAAE,EAAE;IACrD,QAAQ,SAAS,EAAE,CAAC;QACnB,KAAK,OAAO;YACX,OAAO,CACN,MAAC,IAAI,IAAC,IAAI,EAAC,IAAI,aACd,KAAC,SAAS,IAAC,IAAI,EAAC,IAAI,GAAG,EACvB,KAAC,IAAI,CAAC,KAAK,cAAE,oBAAoB,CAAC,SAAS,CAAC,GAAc,IACpD,CACP,CAAC;QACH;YACC,OAAO,CACN,MAAC,IAAI,IAAC,IAAI,EAAC,IAAI,aACd,KAAC,YAAY,IAAC,IAAI,EAAC,IAAI,GAAG,EAC1B,KAAC,IAAI,CAAC,KAAK,cAAE,oBAAoB,CAAC,SAAS,CAAC,GAAc,IACpD,CACP,CAAC;IACJ,CAAC;AACF,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { GameStatus } from "../types";
1
+ import type { GameStatus } from "@federball/types";
2
2
  type GameStatusChipProps = {
3
3
  status: GameStatus;
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"GameStatusChip.d.ts","sourceRoot":"","sources":["../../src/chips/GameStatusChip.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAG3C,KAAK,mBAAmB,GAAG;IAC1B,MAAM,EAAE,UAAU,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,YAAY,mBAAmB,4CAO7D,CAAC"}
1
+ {"version":3,"file":"GameStatusChip.d.ts","sourceRoot":"","sources":["../../src/chips/GameStatusChip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,KAAK,mBAAmB,GAAG;IAC1B,MAAM,EAAE,UAAU,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,YAAY,mBAAmB,4CAO7D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"GameStatusChip.js","sourceRoot":"","sources":["../../src/chips/GameStatusChip.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAMzD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAAE,MAAM,EAAuB,EAAE,EAAE;IACjE,OAAO,CACN,MAAC,IAAI,IAAC,IAAI,EAAC,IAAI,aACd,KAAC,cAAc,IAAC,IAAI,EAAC,IAAI,EAAC,MAAM,EAAE,MAAM,GAAI,EAC5C,KAAC,IAAI,CAAC,KAAK,cAAE,MAAM,GAAc,IAC3B,CACP,CAAC;AACH,CAAC,CAAC"}
1
+ {"version":3,"file":"GameStatusChip.js","sourceRoot":"","sources":["../../src/chips/GameStatusChip.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAOzD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAAE,MAAM,EAAuB,EAAE,EAAE;IACjE,OAAO,CACN,MAAC,IAAI,IAAC,IAAI,EAAC,IAAI,aACd,KAAC,cAAc,IAAC,IAAI,EAAC,IAAI,EAAC,MAAM,EAAE,MAAM,GAAI,EAC5C,KAAC,IAAI,CAAC,KAAK,cAAE,MAAM,GAAc,IAC3B,CACP,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ type PlayerIdentifierChipProps = {
2
+ id: string;
3
+ };
4
+ export declare const PlayerIdentifierChip: ({ id }: PlayerIdentifierChipProps) => import("react/jsx-runtime").JSX.Element;
5
+ export {};
6
+ //# sourceMappingURL=PlayerIdentifierChip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlayerIdentifierChip.d.ts","sourceRoot":"","sources":["../../src/chips/PlayerIdentifierChip.tsx"],"names":[],"mappings":"AAGA,KAAK,yBAAyB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,QAAQ,yBAAyB,4CAOrE,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Chip } from "@heroui/react";
3
+ import { IdentifierIcon } from "../icons/IdentifierIcon";
4
+ export const PlayerIdentifierChip = ({ id }) => {
5
+ return (_jsxs(Chip, { size: "lg", children: [_jsx(IdentifierIcon, { size: "sm" }), _jsx(Chip.Label, { children: id })] }));
6
+ };
7
+ //# sourceMappingURL=PlayerIdentifierChip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlayerIdentifierChip.js","sourceRoot":"","sources":["../../src/chips/PlayerIdentifierChip.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAMzD,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,EAAE,EAAE,EAA6B,EAAE,EAAE;IACzE,OAAO,CACN,MAAC,IAAI,IAAC,IAAI,EAAC,IAAI,aACd,KAAC,cAAc,IAAC,IAAI,EAAC,IAAI,GAAG,EAC5B,KAAC,IAAI,CAAC,KAAK,cAAE,EAAE,GAAc,IACvB,CACP,CAAC;AACH,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { ScoringSystem } from "../types";
1
+ import type { ScoringSystem } from "@federball/types";
2
2
  type ScoringSystemChipProps = {
3
3
  scoringSystem: ScoringSystem;
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ScoringSystemChip.d.ts","sourceRoot":"","sources":["../../src/chips/ScoringSystemChip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAG9C,KAAK,sBAAsB,GAAG;IAC7B,aAAa,EAAE,aAAa,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,oBAE/B,sBAAsB,4CAOxB,CAAC"}
1
+ {"version":3,"file":"ScoringSystemChip.d.ts","sourceRoot":"","sources":["../../src/chips/ScoringSystemChip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD,KAAK,sBAAsB,GAAG;IAC7B,aAAa,EAAE,aAAa,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,oBAE/B,sBAAsB,4CAOxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"UserTypeChip.d.ts","sourceRoot":"","sources":["../../src/chips/UserTypeChip.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGzC,KAAK,iBAAiB,GAAG;IACxB,IAAI,EAAE,QAAQ,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,UAAU,iBAAiB,4CAOvD,CAAC"}
1
+ {"version":3,"file":"UserTypeChip.d.ts","sourceRoot":"","sources":["../../src/chips/UserTypeChip.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAIzC,KAAK,iBAAiB,GAAG;IACxB,IAAI,EAAE,QAAQ,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,UAAU,iBAAiB,4CAOvD,CAAC"}
@@ -1,7 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Chip } from "@heroui/react";
3
3
  import { UserTypeIcon } from "../icons/UserTypeIcon";
4
+ import { getLabelForUserType } from "../labels";
4
5
  export const UserTypeChip = ({ type }) => {
5
- return (_jsxs(Chip, { size: "lg", children: [_jsx(UserTypeIcon, { type: type, size: "sm" }), _jsx(Chip.Label, { children: type })] }));
6
+ return (_jsxs(Chip, { size: "lg", children: [_jsx(UserTypeIcon, { type: type, size: "sm" }), _jsx(Chip.Label, { children: getLabelForUserType(type) })] }));
6
7
  };
7
8
  //# sourceMappingURL=UserTypeChip.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UserTypeChip.js","sourceRoot":"","sources":["../../src/chips/UserTypeChip.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAMrD,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAAE,IAAI,EAAqB,EAAE,EAAE;IAC3D,OAAO,CACN,MAAC,IAAI,IAAC,IAAI,EAAC,IAAI,aACd,KAAC,YAAY,IAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC,IAAI,GAAG,EACtC,KAAC,IAAI,CAAC,KAAK,cAAE,IAAI,GAAc,IACzB,CACP,CAAC;AACH,CAAC,CAAC"}
1
+ {"version":3,"file":"UserTypeChip.js","sourceRoot":"","sources":["../../src/chips/UserTypeChip.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAMhD,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAAE,IAAI,EAAqB,EAAE,EAAE;IAC3D,OAAO,CACN,MAAC,IAAI,IAAC,IAAI,EAAC,IAAI,aACd,KAAC,YAAY,IAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC,IAAI,GAAG,EACtC,KAAC,IAAI,CAAC,KAAK,cAAE,mBAAmB,CAAC,IAAI,CAAC,GAAc,IAC9C,CACP,CAAC;AACH,CAAC,CAAC"}
@@ -11,10 +11,11 @@ import { GameStageChip } from "./GameStageChip";
11
11
  import { GameStatusChip } from "./GameStatusChip";
12
12
  import { LocationChip } from "./LocationChip";
13
13
  import { PlayerChip } from "./PlayerChip";
14
+ import { PlayerIdentifierChip } from "./PlayerIdentifierChip";
14
15
  import { RankingPositionChip } from "./RankingPositionChip";
15
16
  import { ScoringSystemChip } from "./ScoringSystemChip";
16
17
  import { TournamentChip } from "./TournamentChip";
17
18
  import { TournamentCodeChip } from "./TournamentCodeChip";
18
19
  import { UserTypeChip } from "./UserTypeChip";
19
- export { AvailableChip, ClubChip, CourtChip, DateChip, DrawChip, DrawTypeChip, EntryStatusChip, EventChip, EventTypeChip, GameStageChip, GameStatusChip, LocationChip, PlayerChip, RankingPositionChip, ScoringSystemChip, TournamentChip, TournamentCodeChip, UserTypeChip, };
20
+ export { AvailableChip, ClubChip, CourtChip, DateChip, DrawChip, DrawTypeChip, EntryStatusChip, EventChip, EventTypeChip, GameStageChip, GameStatusChip, LocationChip, PlayerChip, PlayerIdentifierChip, RankingPositionChip, ScoringSystemChip, TournamentChip, TournamentCodeChip, UserTypeChip, };
20
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/chips/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE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ip";
11
11
  import { GameStatusChip } from "./GameStatusChip";
12
12
  import { LocationChip } from "./LocationChip";
13
13
  import { PlayerChip } from "./PlayerChip";
14
+ import { PlayerIdentifierChip } from "./PlayerIdentifierChip";
14
15
  import { RankingPositionChip } from "./RankingPositionChip";
15
16
  import { ScoringSystemChip } from "./ScoringSystemChip";
16
17
  import { TournamentChip } from "./TournamentChip";
17
18
  import { TournamentCodeChip } from "./TournamentCodeChip";
18
19
  import { UserTypeChip } from "./UserTypeChip";
19
- export { AvailableChip, ClubChip, CourtChip, DateChip, DrawChip, DrawTypeChip, EntryStatusChip, EventChip, EventTypeChip, GameStageChip, GameStatusChip, LocationChip, PlayerChip, RankingPositionChip, ScoringSystemChip, TournamentChip, TournamentCodeChip, UserTypeChip, };
20
+ export { AvailableChip, ClubChip, CourtChip, DateChip, DrawChip, DrawTypeChip, EntryStatusChip, EventChip, EventTypeChip, GameStageChip, GameStatusChip, LocationChip, PlayerChip, PlayerIdentifierChip, RankingPositionChip, ScoringSystemChip, TournamentChip, TournamentCodeChip, UserTypeChip, };
20
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/chips/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,a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M,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,EACN,aAAa,EACb,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,SAAS,EACT,aAAa,EACb,aAAa,EACb,cAAc,EACd,YAAY,EACZ,UAAU,EACV,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,YAAY,GACZ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { DrawType, ScoringSystem } from "@federball/types";
2
+ export declare const getDescriptionForDrawType: (drawType: DrawType) => "Round robin draw" | "Elimination draw";
3
+ export declare const getDescriptionForScoringSystem: (scoringSystem: ScoringSystem) => "First to 11 points per set" | "First to 21 points per set";
4
+ //# sourceMappingURL=descriptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"descriptions.d.ts","sourceRoot":"","sources":["../src/descriptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEhE,eAAO,MAAM,yBAAyB,GAAI,UAAU,QAAQ,4CAS3D,CAAC;AAEF,eAAO,MAAM,8BAA8B,GAC1C,eAAe,aAAa,gEAU5B,CAAC"}
@@ -0,0 +1,21 @@
1
+ export const getDescriptionForDrawType = (drawType) => {
2
+ switch (drawType) {
3
+ case "GROUP":
4
+ return "Round robin draw";
5
+ case "KNOCKOUT":
6
+ return "Elimination draw";
7
+ default:
8
+ throw new Error(`Unknown draw type: ${drawType}`);
9
+ }
10
+ };
11
+ export const getDescriptionForScoringSystem = (scoringSystem) => {
12
+ switch (scoringSystem) {
13
+ case "FIRST_TO_11":
14
+ return "First to 11 points per set";
15
+ case "FIRST_TO_21":
16
+ return "First to 21 points per set";
17
+ default:
18
+ throw new Error(`Unknown scoring system: ${scoringSystem}`);
19
+ }
20
+ };
21
+ //# sourceMappingURL=descriptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"descriptions.js","sourceRoot":"","sources":["../src/descriptions.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,QAAkB,EAAE,EAAE;IAC/D,QAAQ,QAAQ,EAAE,CAAC;QAClB,KAAK,OAAO;YACX,OAAO,kBAAkB,CAAC;QAC3B,KAAK,UAAU;YACd,OAAO,kBAAkB,CAAC;QAC3B;YACC,MAAM,IAAI,KAAK,CAAC,sBAAsB,QAAQ,EAAE,CAAC,CAAC;IACpD,CAAC;AACF,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAC7C,aAA4B,EAC3B,EAAE;IACH,QAAQ,aAAa,EAAE,CAAC;QACvB,KAAK,aAAa;YACjB,OAAO,4BAA4B,CAAC;QACrC,KAAK,aAAa;YACjB,OAAO,4BAA4B,CAAC;QACrC;YACC,MAAM,IAAI,KAAK,CAAC,2BAA2B,aAAa,EAAE,CAAC,CAAC;IAC9D,CAAC;AACF,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { DrawType } from "@federball/types";
2
+ type DrawTypeFieldProps = {
3
+ type: DrawType;
4
+ isReadonly?: boolean;
5
+ };
6
+ export declare const DrawTypeField: ({ type, isReadonly, }: DrawTypeFieldProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=DrawTypeField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DrawTypeField.d.ts","sourceRoot":"","sources":["../../src/fields/DrawTypeField.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAIjD,KAAK,kBAAkB,GAAG;IACzB,IAAI,EAAE,QAAQ,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,uBAG3B,kBAAkB,4CAgBpB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Description, InputGroup, Label, TextField } from "@heroui/react";
3
+ import { getLabelForDrawType, Labels } from "../labels";
4
+ import { DrawTypeIcon } from "../icons/DrawTypeIcon";
5
+ import { getDescriptionForDrawType } from "../descriptions";
6
+ export const DrawTypeField = ({ type, isReadonly = false, }) => {
7
+ return (_jsxs(TextField, { type: "text", variant: "secondary", isReadOnly: isReadonly, children: [_jsx(Label, { children: Labels.DRAW_TYPE }), _jsxs(InputGroup, { children: [_jsx(InputGroup.Prefix, { children: _jsx(DrawTypeIcon, { type: type }) }), _jsx(InputGroup.Input, { "aria-label": Labels.DRAW_TYPE, value: getLabelForDrawType(type) })] }), _jsx(Description, { children: getDescriptionForDrawType(type) })] }));
8
+ };
9
+ //# sourceMappingURL=DrawTypeField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DrawTypeField.js","sourceRoot":"","sources":["../../src/fields/DrawTypeField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAO5D,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAC7B,IAAI,EACJ,UAAU,GAAG,KAAK,GACE,EAAE,EAAE;IACxB,OAAO,CACN,MAAC,SAAS,IAAC,IAAI,EAAC,MAAM,EAAC,OAAO,EAAC,WAAW,EAAC,UAAU,EAAE,UAAU,aAChE,KAAC,KAAK,cAAE,MAAM,CAAC,SAAS,GAAS,EACjC,MAAC,UAAU,eACV,KAAC,UAAU,CAAC,MAAM,cACjB,KAAC,YAAY,IAAC,IAAI,EAAE,IAAI,GAAI,GACT,EACpB,KAAC,UAAU,CAAC,KAAK,kBACJ,MAAM,CAAC,SAAS,EAC5B,KAAK,EAAE,mBAAmB,CAAC,IAAI,CAAC,GAC/B,IACU,EACb,KAAC,WAAW,cAAE,yBAAyB,CAAC,IAAI,CAAC,GAAe,IACjD,CACZ,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { ScoringSystem } from "@federball/types";
2
+ type ScoringSystemFieldProps = {
3
+ scoringSystem: ScoringSystem;
4
+ isReadonly?: boolean;
5
+ };
6
+ export declare const ScoringSystemField: ({ scoringSystem, isReadonly, }: ScoringSystemFieldProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=ScoringSystemField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScoringSystemField.d.ts","sourceRoot":"","sources":["../../src/fields/ScoringSystemField.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAItD,KAAK,uBAAuB,GAAG;IAC9B,aAAa,EAAE,aAAa,CAAC;IAC7B,UAAU,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,gCAGhC,uBAAuB,4CAgBzB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Description, InputGroup, Label, TextField } from "@heroui/react";
3
+ import { getLabelForScoringSystem, Labels } from "../labels";
4
+ import { getDescriptionForScoringSystem } from "../descriptions";
5
+ import { ScoringSystemIcon } from "../icons/ScoringSystemIcon";
6
+ export const ScoringSystemField = ({ scoringSystem, isReadonly = false, }) => {
7
+ return (_jsxs(TextField, { type: "text", variant: "secondary", isReadOnly: isReadonly, children: [_jsx(Label, { children: Labels.SCORING_SYSTEM }), _jsxs(InputGroup, { children: [_jsx(InputGroup.Prefix, { children: _jsx(ScoringSystemIcon, {}) }), _jsx(InputGroup.Input, { "aria-label": Labels.SCORING_SYSTEM, value: getLabelForScoringSystem(scoringSystem) })] }), _jsx(Description, { children: getDescriptionForScoringSystem(scoringSystem) })] }));
8
+ };
9
+ //# sourceMappingURL=ScoringSystemField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScoringSystemField.js","sourceRoot":"","sources":["../../src/fields/ScoringSystemField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1E,OAAO,EAAE,wBAAwB,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAE7D,OAAO,EAAE,8BAA8B,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAO/D,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EAClC,aAAa,EACb,UAAU,GAAG,KAAK,GACO,EAAE,EAAE;IAC7B,OAAO,CACN,MAAC,SAAS,IAAC,IAAI,EAAC,MAAM,EAAC,OAAO,EAAC,WAAW,EAAC,UAAU,EAAE,UAAU,aAChE,KAAC,KAAK,cAAE,MAAM,CAAC,cAAc,GAAS,EACtC,MAAC,UAAU,eACV,KAAC,UAAU,CAAC,MAAM,cACjB,KAAC,iBAAiB,KAAG,GACF,EACpB,KAAC,UAAU,CAAC,KAAK,kBACJ,MAAM,CAAC,cAAc,EACjC,KAAK,EAAE,wBAAwB,CAAC,aAAa,CAAC,GAC7C,IACU,EACb,KAAC,WAAW,cAAE,8BAA8B,CAAC,aAAa,CAAC,GAAe,IAC/D,CACZ,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { DrawTypeField } from "./DrawTypeField";
2
+ import { ScoringSystemField } from "./ScoringSystemField";
3
+ export { DrawTypeField, ScoringSystemField };
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/fields/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { DrawTypeField } from "./DrawTypeField";
2
+ import { ScoringSystemField } from "./ScoringSystemField";
3
+ export { DrawTypeField, ScoringSystemField };
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/fields/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { DrawType } from "../types";
1
+ import type { DrawType } from "@federball/types";
2
2
  import type { IconProps } from "./types";
3
3
  type DrawTypeIconProps = {
4
4
  type: DrawType;
@@ -1 +1 @@
1
- {"version":3,"file":"DrawTypeIcon.d.ts","sourceRoot":"","sources":["../../src/icons/DrawTypeIcon.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,KAAK,iBAAiB,GAAG;IACxB,IAAI,EAAE,QAAQ,CAAC;CACf,GAAG,SAAS,CAAC;AAEd,eAAO,MAAM,YAAY,GAAI,gBAAyB,iBAAiB,4CAOtE,CAAC"}
1
+ {"version":3,"file":"DrawTypeIcon.d.ts","sourceRoot":"","sources":["../../src/icons/DrawTypeIcon.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,KAAK,iBAAiB,GAAG;IACxB,IAAI,EAAE,QAAQ,CAAC;CACf,GAAG,SAAS,CAAC;AAEd,eAAO,MAAM,YAAY,GAAI,gBAAyB,iBAAiB,4CAOtE,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { IconProps } from "./types";
2
- import type { EventType } from "../types";
2
+ import type { EventType } from "@federball/types";
3
3
  type EventTypeIconProps = {
4
4
  type: EventType;
5
5
  } & IconProps;
@@ -1 +1 @@
1
- {"version":3,"file":"EventTypeIcon.d.ts","sourceRoot":"","sources":["../../src/icons/EventTypeIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGzC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,KAAK,kBAAkB,GAAG;IACzB,IAAI,EAAE,SAAS,CAAC;CAChB,GAAG,SAAS,CAAC;AAEd,eAAO,MAAM,aAAa,GAAI,gBAAyB,kBAAkB,4CAOxE,CAAC"}
1
+ {"version":3,"file":"EventTypeIcon.d.ts","sourceRoot":"","sources":["../../src/icons/EventTypeIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGzC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,KAAK,kBAAkB,GAAG;IACzB,IAAI,EAAE,SAAS,CAAC;CAChB,GAAG,SAAS,CAAC;AAEd,eAAO,MAAM,aAAa,GAAI,gBAAyB,kBAAkB,4CAOxE,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { IconProps } from "./types";
2
- import type { GameStatus } from "../types";
2
+ import type { GameStatus } from "@federball/types";
3
3
  type GameStatusIconProps = {
4
4
  status: GameStatus;
5
5
  } & IconProps;
@@ -1 +1 @@
1
- {"version":3,"file":"GameStatusIcon.d.ts","sourceRoot":"","sources":["../../src/icons/GameStatusIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAIzC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,KAAK,mBAAmB,GAAG;IAC1B,MAAM,EAAE,UAAU,CAAC;CACnB,GAAG,SAAS,CAAC;AAEd,eAAO,MAAM,cAAc,GAAI,mBAG5B,mBAAmB,4CASrB,CAAC"}
1
+ {"version":3,"file":"GameStatusIcon.d.ts","sourceRoot":"","sources":["../../src/icons/GameStatusIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAIzC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,KAAK,mBAAmB,GAAG;IAC1B,MAAM,EAAE,UAAU,CAAC;CACnB,GAAG,SAAS,CAAC;AAEd,eAAO,MAAM,cAAc,GAAI,mBAG5B,mBAAmB,4CASrB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { IconProps } from "./types";
2
+ export declare const IdentifierIcon: ({ size }: IconProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=IdentifierIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IdentifierIcon.d.ts","sourceRoot":"","sources":["../../src/icons/IdentifierIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,eAAO,MAAM,cAAc,GAAI,UAAU,SAAS,4CAEjD,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Icon } from "./Icon";
3
+ export const IdentifierIcon = ({ size }) => {
4
+ return _jsx(Icon, { name: "id_card", size: size });
5
+ };
6
+ //# sourceMappingURL=IdentifierIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IdentifierIcon.js","sourceRoot":"","sources":["../../src/icons/IdentifierIcon.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAG9B,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAAE,IAAI,EAAa,EAAE,EAAE;IACrD,OAAO,KAAC,IAAI,IAAC,IAAI,EAAC,SAAS,EAAC,IAAI,EAAE,IAAI,GAAI,CAAC;AAC5C,CAAC,CAAC"}
package/dist/labels.d.ts CHANGED
@@ -1,3 +1,11 @@
1
- import type { ScoringSystem } from "./types";
2
- export declare const getLabelForScoringSystem: (scoringSystem: ScoringSystem) => "11" | "21";
1
+ import type { DrawStage, DrawType, ScoringSystem } from "@federball/types";
2
+ import type { UserType } from "./types";
3
+ export declare const getLabelForDrawStage: (stage: DrawStage) => "Group" | "Round of 32" | "Round of 16" | "Quarterfinal" | "Semifinal" | "Final";
4
+ export declare const getLabelForDrawType: (drawType: DrawType) => "Group" | "Knockout";
5
+ export declare const getLabelForScoringSystem: (scoringSystem: ScoringSystem) => "11 points" | "21 points";
6
+ export declare const getLabelForUserType: (userType: UserType) => "Admin" | "Member";
7
+ export declare enum Labels {
8
+ DRAW_TYPE = "Type of draw",
9
+ SCORING_SYSTEM = "Scoring system"
10
+ }
3
11
  //# sourceMappingURL=labels.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../src/labels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,eAAO,MAAM,wBAAwB,GAAI,eAAe,aAAa,gBASpE,CAAC"}
1
+ {"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../src/labels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC3E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,eAAO,MAAM,oBAAoB,GAAI,OAAO,SAAS,qFAiBpD,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,UAAU,QAAQ,yBASrD,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,eAAe,aAAa,8BASpE,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,UAAU,QAAQ,uBASrD,CAAC;AAEF,oBAAY,MAAM;IACjB,SAAS,iBAAiB;IAC1B,cAAc,mBAAmB;CACjC"}
package/dist/labels.js CHANGED
@@ -1,11 +1,54 @@
1
+ export const getLabelForDrawStage = (stage) => {
2
+ switch (stage) {
3
+ case "GROUP":
4
+ return "Group";
5
+ case "ROUND_32":
6
+ return "Round of 32";
7
+ case "ROUND_16":
8
+ return "Round of 16";
9
+ case "QUARTERFINAL":
10
+ return "Quarterfinal";
11
+ case "SEMIFINAL":
12
+ return "Semifinal";
13
+ case "FINAL":
14
+ return "Final";
15
+ default:
16
+ throw new Error(`Unknown draw stage: ${stage}`);
17
+ }
18
+ };
19
+ export const getLabelForDrawType = (drawType) => {
20
+ switch (drawType) {
21
+ case "GROUP":
22
+ return "Group";
23
+ case "KNOCKOUT":
24
+ return "Knockout";
25
+ default:
26
+ throw new Error(`Unknown draw type: ${drawType}`);
27
+ }
28
+ };
1
29
  export const getLabelForScoringSystem = (scoringSystem) => {
2
30
  switch (scoringSystem) {
3
31
  case "FIRST_TO_11":
4
- return "11";
32
+ return "11 points";
5
33
  case "FIRST_TO_21":
6
- return "21";
34
+ return "21 points";
7
35
  default:
8
36
  throw new Error(`Unknown scoring system: ${scoringSystem}`);
9
37
  }
10
38
  };
39
+ export const getLabelForUserType = (userType) => {
40
+ switch (userType) {
41
+ case "ADMIN":
42
+ return "Admin";
43
+ case "MEMBER":
44
+ return "Member";
45
+ default:
46
+ throw new Error(`Unknown user type: ${userType}`);
47
+ }
48
+ };
49
+ export var Labels;
50
+ (function (Labels) {
51
+ Labels["DRAW_TYPE"] = "Type of draw";
52
+ Labels["SCORING_SYSTEM"] = "Scoring system";
53
+ })(Labels || (Labels = {}));
11
54
  //# sourceMappingURL=labels.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"labels.js","sourceRoot":"","sources":["../src/labels.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,aAA4B,EAAE,EAAE;IACxE,QAAQ,aAAa,EAAE,CAAC;QACvB,KAAK,aAAa;YACjB,OAAO,IAAI,CAAC;QACb,KAAK,aAAa;YACjB,OAAO,IAAI,CAAC;QACb;YACC,MAAM,IAAI,KAAK,CAAC,2BAA2B,aAAa,EAAE,CAAC,CAAC;IAC9D,CAAC;AACF,CAAC,CAAC"}
1
+ {"version":3,"file":"labels.js","sourceRoot":"","sources":["../src/labels.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,KAAgB,EAAE,EAAE;IACxD,QAAQ,KAAK,EAAE,CAAC;QACf,KAAK,OAAO;YACX,OAAO,OAAO,CAAC;QAChB,KAAK,UAAU;YACd,OAAO,aAAa,CAAC;QACtB,KAAK,UAAU;YACd,OAAO,aAAa,CAAC;QACtB,KAAK,cAAc;YAClB,OAAO,cAAc,CAAC;QACvB,KAAK,WAAW;YACf,OAAO,WAAW,CAAC;QACpB,KAAK,OAAO;YACX,OAAO,OAAO,CAAC;QAChB;YACC,MAAM,IAAI,KAAK,CAAC,uBAAuB,KAAK,EAAE,CAAC,CAAC;IAClD,CAAC;AACF,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,QAAkB,EAAE,EAAE;IACzD,QAAQ,QAAQ,EAAE,CAAC;QAClB,KAAK,OAAO;YACX,OAAO,OAAO,CAAC;QAChB,KAAK,UAAU;YACd,OAAO,UAAU,CAAC;QACnB;YACC,MAAM,IAAI,KAAK,CAAC,sBAAsB,QAAQ,EAAE,CAAC,CAAC;IACpD,CAAC;AACF,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,aAA4B,EAAE,EAAE;IACxE,QAAQ,aAAa,EAAE,CAAC;QACvB,KAAK,aAAa;YACjB,OAAO,WAAW,CAAC;QACpB,KAAK,aAAa;YACjB,OAAO,WAAW,CAAC;QACpB;YACC,MAAM,IAAI,KAAK,CAAC,2BAA2B,aAAa,EAAE,CAAC,CAAC;IAC9D,CAAC;AACF,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,QAAkB,EAAE,EAAE;IACzD,QAAQ,QAAQ,EAAE,CAAC;QAClB,KAAK,OAAO;YACX,OAAO,OAAO,CAAC;QAChB,KAAK,QAAQ;YACZ,OAAO,QAAQ,CAAC;QACjB;YACC,MAAM,IAAI,KAAK,CAAC,sBAAsB,QAAQ,EAAE,CAAC,CAAC;IACpD,CAAC;AACF,CAAC,CAAC;AAEF,MAAM,CAAN,IAAY,MAGX;AAHD,WAAY,MAAM;IACjB,oCAA0B,CAAA;IAC1B,2CAAiC,CAAA;AAClC,CAAC,EAHW,MAAM,KAAN,MAAM,QAGjB"}
package/dist/types.d.ts CHANGED
@@ -1,9 +1,8 @@
1
- export type DrawType = "GROUP" | "KNOCKOUT";
1
+ import type { DrawType, EventType } from "@federball/types";
2
2
  export type Draw = {
3
3
  name: string;
4
4
  type: DrawType;
5
5
  };
6
- export type EventType = "SINGLES" | "DOUBLES";
7
6
  export type Event = {
8
7
  name: string;
9
8
  type: EventType;
@@ -12,11 +11,8 @@ export type Player = {
12
11
  name: string;
13
12
  available: boolean;
14
13
  };
15
- export type GameStatus = "SCHEDULED" | "RUNNING" | "FINISHED";
16
14
  export type Location = {
17
15
  name: string;
18
16
  };
19
17
  export type UserType = "ADMIN" | "MEMBER";
20
- export type ScoringSystem = "FIRST_TO_11" | "FIRST_TO_21";
21
- export type EntryStatus = "MAIN_DRAW" | "RESERVE" | "EXCLUSION";
22
18
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,UAAU,CAAC;AAE5C,MAAM,MAAM,IAAI,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;AAE9C,MAAM,MAAM,KAAK,GAAG;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,SAAS,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,SAAS,GAAG,UAAU,CAAC;AAE9D,MAAM,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAE1C,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG,aAAa,CAAC;AAE1D,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG,SAAS,GAAG,WAAW,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE5D,MAAM,MAAM,IAAI,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,SAAS,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@federball/components",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "type": "module",
5
5
  "description": "Component library for federball.app",
6
6
  "source": "src/index.ts",
@@ -23,6 +23,11 @@
23
23
  "import": "./dist/chips/index.js",
24
24
  "require": "./dist/chips/index.js"
25
25
  },
26
+ "./fields": {
27
+ "types": "./dist/fields/index.d.ts",
28
+ "import": "./dist/fields/index.js",
29
+ "require": "./dist/fields/index.js"
30
+ },
26
31
  "./styles.css": "./dist/styles.css"
27
32
  },
28
33
  "files": [
@@ -74,6 +79,7 @@
74
79
  "typescript": "^5.9.3"
75
80
  },
76
81
  "dependencies": {
82
+ "@federball/types": "^0.0.2",
77
83
  "@heroui/react": "^3.0.1",
78
84
  "@heroui/styles": "^3.0.1"
79
85
  }