@federball/components 0.0.18 → 0.0.20

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 (35) hide show
  1. package/dist/buttons/ExcludeIconButton.d.ts +9 -0
  2. package/dist/buttons/ExcludeIconButton.d.ts.map +1 -0
  3. package/dist/buttons/ExcludeIconButton.js +7 -0
  4. package/dist/buttons/ExcludeIconButton.js.map +1 -0
  5. package/dist/buttons/index.d.ts +2 -1
  6. package/dist/buttons/index.d.ts.map +1 -1
  7. package/dist/buttons/index.js +2 -1
  8. package/dist/buttons/index.js.map +1 -1
  9. package/dist/chips/AvailableChip.js +2 -2
  10. package/dist/chips/AvailableChip.js.map +1 -1
  11. package/dist/chips/EntryStatusChip.d.ts +7 -0
  12. package/dist/chips/EntryStatusChip.d.ts.map +1 -0
  13. package/dist/chips/EntryStatusChip.js +15 -0
  14. package/dist/chips/EntryStatusChip.js.map +1 -0
  15. package/dist/chips/LocationChip.d.ts +1 -1
  16. package/dist/chips/LocationChip.d.ts.map +1 -1
  17. package/dist/chips/PlayerChip.d.ts +7 -0
  18. package/dist/chips/PlayerChip.d.ts.map +1 -0
  19. package/dist/chips/PlayerChip.js +6 -0
  20. package/dist/chips/PlayerChip.js.map +1 -0
  21. package/dist/chips/RankingPositionChip.d.ts.map +1 -1
  22. package/dist/chips/RankingPositionChip.js +3 -3
  23. package/dist/chips/RankingPositionChip.js.map +1 -1
  24. package/dist/chips/index.d.ts +2 -1
  25. package/dist/chips/index.d.ts.map +1 -1
  26. package/dist/chips/index.js +2 -1
  27. package/dist/chips/index.js.map +1 -1
  28. package/dist/icons/ExcludeIcon.d.ts +3 -0
  29. package/dist/icons/ExcludeIcon.d.ts.map +1 -0
  30. package/dist/icons/ExcludeIcon.js +6 -0
  31. package/dist/icons/ExcludeIcon.js.map +1 -0
  32. package/dist/styles.css +3 -0
  33. package/dist/types.d.ts +5 -0
  34. package/dist/types.d.ts.map +1 -1
  35. package/package.json +1 -1
@@ -0,0 +1,9 @@
1
+ type ExcludeIconButtonProps = {
2
+ size?: "sm" | "md" | "lg";
3
+ label: string;
4
+ onPress: () => void;
5
+ isDisabled?: boolean;
6
+ };
7
+ export declare const ExcludeIconButton: ({ size, label, onPress, isDisabled, }: ExcludeIconButtonProps) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=ExcludeIconButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExcludeIconButton.d.ts","sourceRoot":"","sources":["../../src/buttons/ExcludeIconButton.tsx"],"names":[],"mappings":"AAGA,KAAK,sBAAsB,GAAG;IAC7B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,uCAK/B,sBAAsB,4CAaxB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Button } from "@heroui/react";
3
+ import { ExcludeIcon } from "../icons/ExcludeIcon";
4
+ export const ExcludeIconButton = ({ size = "md", label, onPress, isDisabled = false, }) => {
5
+ return (_jsx(Button, { isIconOnly: true, "aria-label": label, variant: "danger-soft", size: size, onPress: onPress, isDisabled: isDisabled, children: _jsx(ExcludeIcon, {}) }));
6
+ };
7
+ //# sourceMappingURL=ExcludeIconButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExcludeIconButton.js","sourceRoot":"","sources":["../../src/buttons/ExcludeIconButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AASnD,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EACjC,IAAI,GAAG,IAAI,EACX,KAAK,EACL,OAAO,EACP,UAAU,GAAG,KAAK,GACM,EAAE,EAAE;IAC5B,OAAO,CACN,KAAC,MAAM,IACN,UAAU,sBACE,KAAK,EACjB,OAAO,EAAC,aAAa,EACrB,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,UAAU,YAEtB,KAAC,WAAW,KAAG,GACP,CACT,CAAC;AACH,CAAC,CAAC"}
@@ -6,9 +6,10 @@ import { DeleteButton } from "./DeleteButton";
6
6
  import { DeleteIconButton } from "./DeleteIconButton";
7
7
  import { EditButton } from "./EditButton";
8
8
  import { EditIconButton } from "./EditIconButton";
9
+ import { ExcludeIconButton } from "./ExcludeIconButton";
9
10
  import { EventButton } from "./EventButton";
10
11
  import { GameButton } from "./GameButton";
11
12
  import { LocationIconButton } from "./LocationIconButton";
12
13
  import { TournamentButton } from "./TournamentButton";
13
- export { AddButton, BackButton, ConfirmButton, ContinueButton, DeleteButton, DeleteIconButton, EditButton, EditIconButton, EventButton, GameButton, LocationIconButton, TournamentButton, };
14
+ export { AddButton, BackButton, ConfirmButton, ContinueButton, DeleteButton, DeleteIconButton, EditButton, EditIconButton, ExcludeIconButton, EventButton, GameButton, LocationIconButton, TournamentButton, };
14
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/buttons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OA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AChB,UAAU,EACV,cAAc,EACd,iBAAiB,EACjB,WAAW,EACX,UAAU,EACV,kBAAkB,EAClB,gBAAgB,GAChB,CAAC"}
@@ -6,9 +6,10 @@ import { DeleteButton } from "./DeleteButton";
6
6
  import { DeleteIconButton } from "./DeleteIconButton";
7
7
  import { EditButton } from "./EditButton";
8
8
  import { EditIconButton } from "./EditIconButton";
9
+ import { ExcludeIconButton } from "./ExcludeIconButton";
9
10
  import { EventButton } from "./EventButton";
10
11
  import { GameButton } from "./GameButton";
11
12
  import { LocationIconButton } from "./LocationIconButton";
12
13
  import { TournamentButton } from "./TournamentButton";
13
- export { AddButton, BackButton, ConfirmButton, ContinueButton, DeleteButton, DeleteIconButton, EditButton, EditIconButton, EventButton, GameButton, LocationIconButton, TournamentButton, };
14
+ export { AddButton, BackButton, ConfirmButton, ContinueButton, DeleteButton, DeleteIconButton, EditButton, EditIconButton, ExcludeIconButton, EventButton, GameButton, LocationIconButton, TournamentButton, };
14
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/buttons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EACN,SAAS,EACT,UAAU,EACV,aAAa,EACb,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,WAAW,EACX,UAAU,EACV,kBAAkB,EAClB,gBAAgB,GAChB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/buttons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EACN,SAAS,EACT,UAAU,EACV,aAAa,EACb,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,iBAAiB,EACjB,WAAW,EACX,UAAU,EACV,kBAAkB,EAClB,gBAAgB,GAChB,CAAC"}
@@ -2,8 +2,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Chip } from "@heroui/react";
3
3
  export const AvailableChip = ({ available }) => {
4
4
  if (available) {
5
- return (_jsx(Chip, { color: "success", variant: "soft", size: "lg", children: "Available" }));
5
+ return (_jsx(Chip, { color: "success", variant: "soft", size: "lg", children: _jsx(Chip.Label, { children: "Available" }) }));
6
6
  }
7
- return (_jsx(Chip, { color: "warning", variant: "soft", size: "lg", children: "Unavailable" }));
7
+ return (_jsx(Chip, { color: "warning", variant: "soft", size: "lg", children: _jsx(Chip.Label, { children: "Unavailable" }) }));
8
8
  };
9
9
  //# sourceMappingURL=AvailableChip.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AvailableChip.js","sourceRoot":"","sources":["../../src/chips/AvailableChip.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAMrC,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAE,SAAS,EAAsB,EAAE,EAAE;IAClE,IAAI,SAAS,EAAE,CAAC;QACf,OAAO,CACN,KAAC,IAAI,IAAC,KAAK,EAAC,SAAS,EAAC,OAAO,EAAC,MAAM,EAAC,IAAI,EAAC,IAAI,0BAEvC,CACP,CAAC;IACH,CAAC;IACD,OAAO,CACN,KAAC,IAAI,IAAC,KAAK,EAAC,SAAS,EAAC,OAAO,EAAC,MAAM,EAAC,IAAI,EAAC,IAAI,4BAEvC,CACP,CAAC;AACH,CAAC,CAAC"}
1
+ {"version":3,"file":"AvailableChip.js","sourceRoot":"","sources":["../../src/chips/AvailableChip.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAMrC,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAE,SAAS,EAAsB,EAAE,EAAE;IAClE,IAAI,SAAS,EAAE,CAAC;QACf,OAAO,CACN,KAAC,IAAI,IAAC,KAAK,EAAC,SAAS,EAAC,OAAO,EAAC,MAAM,EAAC,IAAI,EAAC,IAAI,YAC7C,KAAC,IAAI,CAAC,KAAK,4BAAuB,GAC5B,CACP,CAAC;IACH,CAAC;IACD,OAAO,CACN,KAAC,IAAI,IAAC,KAAK,EAAC,SAAS,EAAC,OAAO,EAAC,MAAM,EAAC,IAAI,EAAC,IAAI,YAC7C,KAAC,IAAI,CAAC,KAAK,8BAAyB,GAC9B,CACP,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { EntryStatus } from "../types";
2
+ type Props = {
3
+ status: EntryStatus;
4
+ };
5
+ export declare const EntryStatusChip: ({ status }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
7
+ //# sourceMappingURL=EntryStatusChip.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Chip } from "@heroui/react";
3
+ export const EntryStatusChip = ({ status }) => {
4
+ switch (status) {
5
+ case "MAIN_DRAW":
6
+ return (_jsx(Chip, { color: "success", variant: "soft", size: "lg", children: _jsx(Chip.Label, { children: "Main Draw" }) }));
7
+ case "RESERVE":
8
+ return (_jsx(Chip, { color: "warning", variant: "soft", size: "lg", children: _jsx(Chip.Label, { children: "Reserve" }) }));
9
+ case "EXCLUSION":
10
+ return (_jsx(Chip, { color: "danger", variant: "soft", size: "lg", children: _jsx(Chip.Label, { children: "Exclusion" }) }));
11
+ default:
12
+ throw new Error(`Unknown entry status: ${status}`);
13
+ }
14
+ };
15
+ //# sourceMappingURL=EntryStatusChip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EntryStatusChip.js","sourceRoot":"","sources":["../../src/chips/EntryStatusChip.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOrC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAE,MAAM,EAAS,EAAE,EAAE;IACpD,QAAQ,MAAM,EAAE,CAAC;QAChB,KAAK,WAAW;YACf,OAAO,CACN,KAAC,IAAI,IAAC,KAAK,EAAC,SAAS,EAAC,OAAO,EAAC,MAAM,EAAC,IAAI,EAAC,IAAI,YAC7C,KAAC,IAAI,CAAC,KAAK,4BAAuB,GAC5B,CACP,CAAC;QACH,KAAK,SAAS;YACb,OAAO,CACN,KAAC,IAAI,IAAC,KAAK,EAAC,SAAS,EAAC,OAAO,EAAC,MAAM,EAAC,IAAI,EAAC,IAAI,YAC7C,KAAC,IAAI,CAAC,KAAK,0BAAqB,GAC1B,CACP,CAAC;QACH,KAAK,WAAW;YACf,OAAO,CACN,KAAC,IAAI,IAAC,KAAK,EAAC,QAAQ,EAAC,OAAO,EAAC,MAAM,EAAC,IAAI,EAAC,IAAI,YAC5C,KAAC,IAAI,CAAC,KAAK,4BAAuB,GAC5B,CACP,CAAC;QACH;YACC,MAAM,IAAI,KAAK,CAAC,yBAAyB,MAAM,EAAE,CAAC,CAAC;IACrD,CAAC;AACF,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Location } from "../types";
1
+ import type { Location } from "../types";
2
2
  type LocationChipProps = {
3
3
  location: Location;
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"LocationChip.d.ts","sourceRoot":"","sources":["../../src/chips/LocationChip.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,KAAK,iBAAiB,GAAG;IAAE,QAAQ,EAAE,QAAQ,CAAA;CAAE,CAAC;AAEhD,eAAO,MAAM,YAAY,GAAI,cAAc,iBAAiB,4CAO3D,CAAC"}
1
+ {"version":3,"file":"LocationChip.d.ts","sourceRoot":"","sources":["../../src/chips/LocationChip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,KAAK,iBAAiB,GAAG;IAAE,QAAQ,EAAE,QAAQ,CAAA;CAAE,CAAC;AAEhD,eAAO,MAAM,YAAY,GAAI,cAAc,iBAAiB,4CAO3D,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { Player } from "../types";
2
+ type PlayerChipProps = {
3
+ player: Player;
4
+ };
5
+ export declare const PlayerChip: ({ player }: PlayerChipProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
7
+ //# sourceMappingURL=PlayerChip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlayerChip.d.ts","sourceRoot":"","sources":["../../src/chips/PlayerChip.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,KAAK,eAAe,GAAG;IACtB,MAAM,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,YAAY,eAAe,4CAMrD,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Chip } from "@heroui/react";
3
+ export const PlayerChip = ({ player }) => {
4
+ return (_jsx(Chip, { size: "lg", children: _jsx(Chip.Label, { children: player.name }) }));
5
+ };
6
+ //# sourceMappingURL=PlayerChip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlayerChip.js","sourceRoot":"","sources":["../../src/chips/PlayerChip.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOrC,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EAAE,MAAM,EAAmB,EAAE,EAAE;IACzD,OAAO,CACN,KAAC,IAAI,IAAC,IAAI,EAAC,IAAI,YACd,KAAC,IAAI,CAAC,KAAK,cAAE,MAAM,CAAC,IAAI,GAAc,GAChC,CACP,CAAC;AACH,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"RankingPositionChip.d.ts","sourceRoot":"","sources":["../../src/chips/RankingPositionChip.tsx"],"names":[],"mappings":"AAEA,KAAK,KAAK,GAAG;IACZ,QAAQ,EAAE,OAAO,GAAG,QAAQ,GAAG,cAAc,CAAC;CAC9C,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,cAAc,KAAK,4CAWtD,CAAC"}
1
+ {"version":3,"file":"RankingPositionChip.d.ts","sourceRoot":"","sources":["../../src/chips/RankingPositionChip.tsx"],"names":[],"mappings":"AAEA,KAAK,KAAK,GAAG;IACZ,QAAQ,EAAE,OAAO,GAAG,QAAQ,GAAG,cAAc,CAAC;CAC9C,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,cAAc,KAAK,4CAuBtD,CAAC"}
@@ -3,11 +3,11 @@ import { Chip } from "@heroui/react";
3
3
  export const RankingPositionChip = ({ position }) => {
4
4
  switch (position) {
5
5
  case "FIRST":
6
- return _jsx(Chip, { variant: "secondary", children: "1st" });
6
+ return (_jsx(Chip, { variant: "secondary", size: "lg", children: _jsx(Chip.Label, { children: "1st" }) }));
7
7
  case "SECOND":
8
- return _jsx(Chip, { variant: "secondary", children: "2nd" });
8
+ return (_jsx(Chip, { variant: "secondary", size: "lg", children: _jsx(Chip.Label, { children: "2nd" }) }));
9
9
  case "THIRD_FOURTH":
10
- return _jsx(Chip, { variant: "secondary", children: "3rd/4th" });
10
+ return (_jsx(Chip, { variant: "secondary", size: "lg", children: _jsx(Chip.Label, { children: "3rd/4th" }) }));
11
11
  default:
12
12
  throw new Error("Unknown ranking position");
13
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"RankingPositionChip.js","sourceRoot":"","sources":["../../src/chips/RankingPositionChip.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAMrC,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,EAAE,QAAQ,EAAS,EAAE,EAAE;IAC1D,QAAQ,QAAQ,EAAE,CAAC;QAClB,KAAK,OAAO;YACX,OAAO,KAAC,IAAI,IAAC,OAAO,EAAC,WAAW,oBAAW,CAAC;QAC7C,KAAK,QAAQ;YACZ,OAAO,KAAC,IAAI,IAAC,OAAO,EAAC,WAAW,oBAAW,CAAC;QAC7C,KAAK,cAAc;YAClB,OAAO,KAAC,IAAI,IAAC,OAAO,EAAC,WAAW,wBAAe,CAAC;QACjD;YACC,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;IAC9C,CAAC;AACF,CAAC,CAAC"}
1
+ {"version":3,"file":"RankingPositionChip.js","sourceRoot":"","sources":["../../src/chips/RankingPositionChip.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAMrC,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,EAAE,QAAQ,EAAS,EAAE,EAAE;IAC1D,QAAQ,QAAQ,EAAE,CAAC;QAClB,KAAK,OAAO;YACX,OAAO,CACN,KAAC,IAAI,IAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,IAAI,YAClC,KAAC,IAAI,CAAC,KAAK,sBAAiB,GACtB,CACP,CAAC;QACH,KAAK,QAAQ;YACZ,OAAO,CACN,KAAC,IAAI,IAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,IAAI,YAClC,KAAC,IAAI,CAAC,KAAK,sBAAiB,GACtB,CACP,CAAC;QACH,KAAK,cAAc;YAClB,OAAO,CACN,KAAC,IAAI,IAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,IAAI,YAClC,KAAC,IAAI,CAAC,KAAK,0BAAqB,GAC1B,CACP,CAAC;QACH;YACC,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;IAC9C,CAAC;AACF,CAAC,CAAC"}
@@ -4,6 +4,7 @@ import { CourtChip } from "./CourtChip";
4
4
  import { DateChip } from "./DateChip";
5
5
  import { DrawChip } from "./DrawChip";
6
6
  import { DrawTypeChip } from "./DrawTypeChip";
7
+ import { EntryStatusChip } from "./EntryStatusChip";
7
8
  import { EventChip } from "./EventChip";
8
9
  import { EventTypeChip } from "./EventTypeChip";
9
10
  import { GameStageChip } from "./GameStageChip";
@@ -14,5 +15,5 @@ import { ScoringSystemChip } from "./ScoringSystemChip";
14
15
  import { TournamentChip } from "./TournamentChip";
15
16
  import { TournamentCodeChip } from "./TournamentCodeChip";
16
17
  import { UserTypeChip } from "./UserTypeChip";
17
- export { AvailableChip, ClubChip, CourtChip, DateChip, DrawChip, DrawTypeChip, EventChip, EventTypeChip, GameStageChip, GameStatusChip, LocationChip, RankingPositionChip, ScoringSystemChip, TournamentChip, TournamentCodeChip, UserTypeChip, };
18
+ export { AvailableChip, ClubChip, CourtChip, DateChip, DrawChip, DrawTypeChip, EntryStatusChip, EventChip, EventTypeChip, GameStageChip, GameStatusChip, LocationChip, RankingPositionChip, ScoringSystemChip, TournamentChip, TournamentCodeChip, UserTypeChip, };
18
19
  //# 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,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,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,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E,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,mBAAmB,EACnB,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,YAAY,GACZ,CAAC"}
@@ -4,6 +4,7 @@ import { CourtChip } from "./CourtChip";
4
4
  import { DateChip } from "./DateChip";
5
5
  import { DrawChip } from "./DrawChip";
6
6
  import { DrawTypeChip } from "./DrawTypeChip";
7
+ import { EntryStatusChip } from "./EntryStatusChip";
7
8
  import { EventChip } from "./EventChip";
8
9
  import { EventTypeChip } from "./EventTypeChip";
9
10
  import { GameStageChip } from "./GameStageChip";
@@ -14,5 +15,5 @@ import { ScoringSystemChip } from "./ScoringSystemChip";
14
15
  import { TournamentChip } from "./TournamentChip";
15
16
  import { TournamentCodeChip } from "./TournamentCodeChip";
16
17
  import { UserTypeChip } from "./UserTypeChip";
17
- export { AvailableChip, ClubChip, CourtChip, DateChip, DrawChip, DrawTypeChip, EventChip, EventTypeChip, GameStageChip, GameStatusChip, LocationChip, RankingPositionChip, ScoringSystemChip, TournamentChip, TournamentCodeChip, UserTypeChip, };
18
+ export { AvailableChip, ClubChip, CourtChip, DateChip, DrawChip, DrawTypeChip, EntryStatusChip, EventChip, EventTypeChip, GameStageChip, GameStatusChip, LocationChip, RankingPositionChip, ScoringSystemChip, TournamentChip, TournamentCodeChip, UserTypeChip, };
18
19
  //# 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,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,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,SAAS,EACT,aAAa,EACb,aAAa,EACb,cAAc,EACd,YAAY,EACZ,mBAAmB,EACnB,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,YAAY,GACZ,CAAC"}
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,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,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,mBAAmB,EACnB,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,YAAY,GACZ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { IconProps } from "./types";
2
+ export declare const ExcludeIcon: ({ size }: IconProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=ExcludeIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExcludeIcon.d.ts","sourceRoot":"","sources":["../../src/icons/ExcludeIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,eAAO,MAAM,WAAW,GAAI,UAAU,SAAS,4CAE9C,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Icon } from "./Icon";
3
+ export const ExcludeIcon = ({ size }) => {
4
+ return _jsx(Icon, { name: "block", size: size });
5
+ };
6
+ //# sourceMappingURL=ExcludeIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExcludeIcon.js","sourceRoot":"","sources":["../../src/icons/ExcludeIcon.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAG9B,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAAE,IAAI,EAAa,EAAE,EAAE;IAClD,OAAO,KAAC,IAAI,IAAC,IAAI,EAAC,OAAO,EAAC,IAAI,EAAE,IAAI,GAAI,CAAC;AAC1C,CAAC,CAAC"}
package/dist/styles.css CHANGED
@@ -264,6 +264,9 @@
264
264
  }
265
265
  }
266
266
  @layer utilities {
267
+ .block {
268
+ display: block;
269
+ }
267
270
  .table {
268
271
  display: table;
269
272
  }
package/dist/types.d.ts CHANGED
@@ -8,10 +8,15 @@ export type Event = {
8
8
  name: string;
9
9
  type: EventType;
10
10
  };
11
+ export type Player = {
12
+ name: string;
13
+ available: boolean;
14
+ };
11
15
  export type GameStatus = "SCHEDULED" | "RUNNING" | "FINISHED";
12
16
  export type Location = {
13
17
  name: string;
14
18
  };
15
19
  export type UserType = "ADMIN" | "MEMBER";
16
20
  export type ScoringSystem = "FIRST_TO_11" | "FIRST_TO_21";
21
+ export type EntryStatus = "MAIN_DRAW" | "RESERVE" | "EXCLUSION";
17
22
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,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AAE1C,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG,aAAa,CAAC;AAE1D,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG,SAAS,GAAG,WAAW,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@federball/components",
3
- "version": "0.0.18",
3
+ "version": "0.0.20",
4
4
  "type": "module",
5
5
  "description": "Component library for federball.app",
6
6
  "source": "src/index.ts",