@federball/components 0.0.17 → 0.0.19

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 (38) 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/EntryStatusChip.d.ts +7 -0
  10. package/dist/chips/EntryStatusChip.d.ts.map +1 -0
  11. package/dist/chips/EntryStatusChip.js +15 -0
  12. package/dist/chips/EntryStatusChip.js.map +1 -0
  13. package/dist/chips/LocationChip.d.ts +1 -1
  14. package/dist/chips/LocationChip.d.ts.map +1 -1
  15. package/dist/chips/ScoringSystemChip.d.ts +2 -1
  16. package/dist/chips/ScoringSystemChip.d.ts.map +1 -1
  17. package/dist/chips/ScoringSystemChip.js +2 -1
  18. package/dist/chips/ScoringSystemChip.js.map +1 -1
  19. package/dist/chips/index.d.ts +2 -2
  20. package/dist/chips/index.d.ts.map +1 -1
  21. package/dist/chips/index.js +2 -2
  22. package/dist/chips/index.js.map +1 -1
  23. package/dist/icons/ExcludeIcon.d.ts +3 -0
  24. package/dist/icons/ExcludeIcon.d.ts.map +1 -0
  25. package/dist/icons/ExcludeIcon.js +6 -0
  26. package/dist/icons/ExcludeIcon.js.map +1 -0
  27. package/dist/labels.d.ts +3 -0
  28. package/dist/labels.d.ts.map +1 -0
  29. package/dist/labels.js +11 -0
  30. package/dist/labels.js.map +1 -0
  31. package/dist/styles.css +3 -0
  32. package/dist/types.d.ts +2 -0
  33. package/dist/types.d.ts.map +1 -1
  34. package/package.json +1 -1
  35. package/dist/chips/DateRangeChip.d.ts +0 -7
  36. package/dist/chips/DateRangeChip.d.ts.map +0 -1
  37. package/dist/chips/DateRangeChip.js +0 -7
  38. package/dist/chips/DateRangeChip.js.map +0 -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,EA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AEtD,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"}
@@ -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,eAA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GAChB,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", children: "Main Draw" }));
7
+ case "RESERVE":
8
+ return (_jsx(Chip, { color: "warning", variant: "soft", children: "Reserve" }));
9
+ case "EXCLUSION":
10
+ return (_jsx(Chip, { color: "danger", variant: "soft", 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,0BAE7B,CACP,CAAC;QACH,KAAK,SAAS;YACb,OAAO,CACN,KAAC,IAAI,IAAC,KAAK,EAAC,SAAS,EAAC,OAAO,EAAC,MAAM,wBAE7B,CACP,CAAC;QACH,KAAK,WAAW;YACf,OAAO,CACN,KAAC,IAAI,IAAC,KAAK,EAAC,QAAQ,EAAC,OAAO,EAAC,MAAM,0BAE5B,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"}
@@ -1,5 +1,6 @@
1
+ import type { ScoringSystem } from "../types";
1
2
  type ScoringSystemChipProps = {
2
- scoringSystem: "FIRST_TO_11" | "FIRST_TO_21";
3
+ scoringSystem: ScoringSystem;
3
4
  };
4
5
  export declare const ScoringSystemChip: ({ scoringSystem, }: ScoringSystemChipProps) => import("react/jsx-runtime").JSX.Element;
5
6
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"ScoringSystemChip.d.ts","sourceRoot":"","sources":["../../src/chips/ScoringSystemChip.tsx"],"names":[],"mappings":"AAGA,KAAK,sBAAsB,GAAG;IAC7B,aAAa,EAAE,aAAa,GAAG,aAAa,CAAC;CAC7C,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,UAAU,CAAC;AAG9C,KAAK,sBAAsB,GAAG;IAC7B,aAAa,EAAE,aAAa,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,oBAE/B,sBAAsB,4CAOxB,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 { ScoringSystemIcon } from "../icons/ScoringSystemIcon";
4
+ import { getLabelForScoringSystem } from "../labels";
4
5
  export const ScoringSystemChip = ({ scoringSystem, }) => {
5
- return (_jsxs(Chip, { size: "lg", children: [_jsx(ScoringSystemIcon, { size: "sm" }), _jsx(Chip.Label, { children: scoringSystem })] }));
6
+ return (_jsxs(Chip, { size: "lg", children: [_jsx(ScoringSystemIcon, { size: "sm" }), _jsx(Chip.Label, { children: getLabelForScoringSystem(scoringSystem) })] }));
6
7
  };
7
8
  //# sourceMappingURL=ScoringSystemChip.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ScoringSystemChip.js","sourceRoot":"","sources":["../../src/chips/ScoringSystemChip.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAM/D,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EACjC,aAAa,GACW,EAAE,EAAE;IAC5B,OAAO,CACN,MAAC,IAAI,IAAC,IAAI,EAAC,IAAI,aACd,KAAC,iBAAiB,IAAC,IAAI,EAAC,IAAI,GAAG,EAC/B,KAAC,IAAI,CAAC,KAAK,cAAE,aAAa,GAAc,IAClC,CACP,CAAC;AACH,CAAC,CAAC"}
1
+ {"version":3,"file":"ScoringSystemChip.js","sourceRoot":"","sources":["../../src/chips/ScoringSystemChip.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAMrD,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EACjC,aAAa,GACW,EAAE,EAAE;IAC5B,OAAO,CACN,MAAC,IAAI,IAAC,IAAI,EAAC,IAAI,aACd,KAAC,iBAAiB,IAAC,IAAI,EAAC,IAAI,GAAG,EAC/B,KAAC,IAAI,CAAC,KAAK,cAAE,wBAAwB,CAAC,aAAa,CAAC,GAAc,IAC5D,CACP,CAAC;AACH,CAAC,CAAC"}
@@ -2,9 +2,9 @@ import { AvailableChip } from "./AvailableChip";
2
2
  import { ClubChip } from "./ClubChip";
3
3
  import { CourtChip } from "./CourtChip";
4
4
  import { DateChip } from "./DateChip";
5
- import { DateRangeChip } from "./DateRangeChip";
6
5
  import { DrawChip } from "./DrawChip";
7
6
  import { DrawTypeChip } from "./DrawTypeChip";
7
+ import { EntryStatusChip } from "./EntryStatusChip";
8
8
  import { EventChip } from "./EventChip";
9
9
  import { EventTypeChip } from "./EventTypeChip";
10
10
  import { GameStageChip } from "./GameStageChip";
@@ -15,5 +15,5 @@ import { ScoringSystemChip } from "./ScoringSystemChip";
15
15
  import { TournamentChip } from "./TournamentChip";
16
16
  import { TournamentCodeChip } from "./TournamentCodeChip";
17
17
  import { UserTypeChip } from "./UserTypeChip";
18
- export { AvailableChip, ClubChip, CourtChip, DateChip, DateRangeChip, 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, };
19
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,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,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;A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Aa,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"}
@@ -2,9 +2,9 @@ import { AvailableChip } from "./AvailableChip";
2
2
  import { ClubChip } from "./ClubChip";
3
3
  import { CourtChip } from "./CourtChip";
4
4
  import { DateChip } from "./DateChip";
5
- import { DateRangeChip } from "./DateRangeChip";
6
5
  import { DrawChip } from "./DrawChip";
7
6
  import { DrawTypeChip } from "./DrawTypeChip";
7
+ import { EntryStatusChip } from "./EntryStatusChip";
8
8
  import { EventChip } from "./EventChip";
9
9
  import { EventTypeChip } from "./EventTypeChip";
10
10
  import { GameStageChip } from "./GameStageChip";
@@ -15,5 +15,5 @@ import { ScoringSystemChip } from "./ScoringSystemChip";
15
15
  import { TournamentChip } from "./TournamentChip";
16
16
  import { TournamentCodeChip } from "./TournamentCodeChip";
17
17
  import { UserTypeChip } from "./UserTypeChip";
18
- export { AvailableChip, ClubChip, CourtChip, DateChip, DateRangeChip, 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, };
19
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,OAA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,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"}
@@ -0,0 +1,3 @@
1
+ import type { ScoringSystem } from "./types";
2
+ export declare const getLabelForScoringSystem: (scoringSystem: ScoringSystem) => "11" | "21";
3
+ //# sourceMappingURL=labels.d.ts.map
@@ -0,0 +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"}
package/dist/labels.js ADDED
@@ -0,0 +1,11 @@
1
+ export const getLabelForScoringSystem = (scoringSystem) => {
2
+ switch (scoringSystem) {
3
+ case "FIRST_TO_11":
4
+ return "11";
5
+ case "FIRST_TO_21":
6
+ return "21";
7
+ default:
8
+ throw new Error(`Unknown scoring system: ${scoringSystem}`);
9
+ }
10
+ };
11
+ //# sourceMappingURL=labels.js.map
@@ -0,0 +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"}
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
@@ -13,4 +13,6 @@ export type Location = {
13
13
  name: string;
14
14
  };
15
15
  export type UserType = "ADMIN" | "MEMBER";
16
+ export type ScoringSystem = "FIRST_TO_11" | "FIRST_TO_21";
17
+ export type EntryStatus = "MAIN_DRAW" | "RESERVE" | "EXCLUSION";
16
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,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"}
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,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@federball/components",
3
- "version": "0.0.17",
3
+ "version": "0.0.19",
4
4
  "type": "module",
5
5
  "description": "Component library for federball.app",
6
6
  "source": "src/index.ts",
@@ -1,7 +0,0 @@
1
- type DateRangeChipProps = {
2
- startDate: string;
3
- endDate: string;
4
- };
5
- export declare const DateRangeChip: ({ startDate, endDate }: DateRangeChipProps) => import("react/jsx-runtime").JSX.Element;
6
- export {};
7
- //# sourceMappingURL=DateRangeChip.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DateRangeChip.d.ts","sourceRoot":"","sources":["../../src/chips/DateRangeChip.tsx"],"names":[],"mappings":"AAGA,KAAK,kBAAkB,GAAG;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,wBAAwB,kBAAkB,4CASvE,CAAC"}
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Chip } from "@heroui/react";
3
- import { DateIcon } from "../icons/DateIcon";
4
- export const DateRangeChip = ({ startDate, endDate }) => {
5
- return (_jsxs(Chip, { size: "lg", children: [_jsx(DateIcon, { size: "sm" }), _jsxs(Chip.Label, { children: [startDate, " - ", endDate] })] }));
6
- };
7
- //# sourceMappingURL=DateRangeChip.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DateRangeChip.js","sourceRoot":"","sources":["../../src/chips/DateRangeChip.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAO7C,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAE,SAAS,EAAE,OAAO,EAAsB,EAAE,EAAE;IAC3E,OAAO,CACN,MAAC,IAAI,IAAC,IAAI,EAAC,IAAI,aACd,KAAC,QAAQ,IAAC,IAAI,EAAC,IAAI,GAAG,EACtB,MAAC,IAAI,CAAC,KAAK,eACT,SAAS,SAAK,OAAO,IACV,IACP,CACP,CAAC;AACH,CAAC,CAAC"}