@dev-crew-berlin/enter-js-utils 0.5.4 → 0.6.0
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.
- package/dist/api-client/api-base.d.ts +30 -0
- package/dist/api-client/index.d.ts +75 -0
- package/dist/lib/api-result.d.ts +25 -0
- package/dist/lib/class-names.d.ts +1 -0
- package/dist/lib/index.d.ts +5 -0
- package/dist/lib/not-undefined.d.ts +1 -0
- package/dist/lib/result.d.ts +33 -0
- package/dist/lib/theme.d.ts +18 -0
- package/dist/models/_helpers.d.ts +23 -0
- package/dist/models/access-token.d.ts +11 -0
- package/dist/models/attendee.d.ts +90 -0
- package/dist/models/checkin-counts.d.ts +10 -0
- package/dist/models/checkins.d.ts +40 -0
- package/dist/models/event.d.ts +40 -0
- package/dist/models/field-group.d.ts +484 -0
- package/dist/models/field-value.d.ts +2 -0
- package/dist/models/field.d.ts +321 -0
- package/dist/models/field.js +4 -4
- package/dist/models/index.d.ts +14 -0
- package/dist/models/instance.d.ts +78 -0
- package/dist/models/invite.d.ts +33 -0
- package/dist/models/meta-field.d.ts +7 -0
- package/dist/models/user.d.ts +18 -0
- package/dist/models/variable.d.ts +27 -0
- package/dist/ui/button.d.ts +7 -0
- package/dist/ui/button.stories.d.ts +18 -0
- package/dist/ui/checkin-count-indicator.d.ts +15 -0
- package/dist/ui/checkin-count-indicator.stories.d.ts +84 -0
- package/dist/ui/companion-info.d.ts +15 -0
- package/dist/ui/companion-info.stories.d.ts +44 -0
- package/dist/ui/fonts.d.ts +3 -0
- package/dist/ui/guest-card.d.ts +16 -0
- package/dist/ui/guest-card.stories.d.ts +92 -0
- package/dist/ui/index.d.ts +6 -0
- package/dist/ui/tag.d.ts +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
|
+
import { Checkin } from './checkin-count-indicator';
|
|
4
|
+
declare const _default: ComponentMeta<React.FunctionComponent<{
|
|
5
|
+
checkins: Checkin[];
|
|
6
|
+
response: "positive-response";
|
|
7
|
+
rsvpCount: number;
|
|
8
|
+
} | {
|
|
9
|
+
checkins: Checkin[];
|
|
10
|
+
response: "no-response" | "negative-repsone";
|
|
11
|
+
}>>;
|
|
12
|
+
export default _default;
|
|
13
|
+
export declare const SingleResponse: ComponentStory<React.FunctionComponent<{
|
|
14
|
+
checkins: Checkin[];
|
|
15
|
+
response: "positive-response";
|
|
16
|
+
rsvpCount: number;
|
|
17
|
+
} | {
|
|
18
|
+
checkins: Checkin[];
|
|
19
|
+
response: "no-response" | "negative-repsone";
|
|
20
|
+
}>>;
|
|
21
|
+
export declare const Decline: ComponentStory<React.FunctionComponent<{
|
|
22
|
+
checkins: Checkin[];
|
|
23
|
+
response: "positive-response";
|
|
24
|
+
rsvpCount: number;
|
|
25
|
+
} | {
|
|
26
|
+
checkins: Checkin[];
|
|
27
|
+
response: "no-response" | "negative-repsone";
|
|
28
|
+
}>>;
|
|
29
|
+
export declare const NoResponse: ComponentStory<React.FunctionComponent<{
|
|
30
|
+
checkins: Checkin[];
|
|
31
|
+
response: "positive-response";
|
|
32
|
+
rsvpCount: number;
|
|
33
|
+
} | {
|
|
34
|
+
checkins: Checkin[];
|
|
35
|
+
response: "no-response" | "negative-repsone";
|
|
36
|
+
}>>;
|
|
37
|
+
export declare const MultipleResponses: ComponentStory<React.FunctionComponent<{
|
|
38
|
+
checkins: Checkin[];
|
|
39
|
+
response: "positive-response";
|
|
40
|
+
rsvpCount: number;
|
|
41
|
+
} | {
|
|
42
|
+
checkins: Checkin[];
|
|
43
|
+
response: "no-response" | "negative-repsone";
|
|
44
|
+
}>>;
|
|
45
|
+
export declare const CheckinAndResponse: ComponentStory<React.FunctionComponent<{
|
|
46
|
+
checkins: Checkin[];
|
|
47
|
+
response: "positive-response";
|
|
48
|
+
rsvpCount: number;
|
|
49
|
+
} | {
|
|
50
|
+
checkins: Checkin[];
|
|
51
|
+
response: "no-response" | "negative-repsone";
|
|
52
|
+
}>>;
|
|
53
|
+
export declare const MultipleCheckinsAndResponse: ComponentStory<React.FunctionComponent<{
|
|
54
|
+
checkins: Checkin[];
|
|
55
|
+
response: "positive-response";
|
|
56
|
+
rsvpCount: number;
|
|
57
|
+
} | {
|
|
58
|
+
checkins: Checkin[];
|
|
59
|
+
response: "no-response" | "negative-repsone";
|
|
60
|
+
}>>;
|
|
61
|
+
export declare const CheckinsWithDecline: ComponentStory<React.FunctionComponent<{
|
|
62
|
+
checkins: Checkin[];
|
|
63
|
+
response: "positive-response";
|
|
64
|
+
rsvpCount: number;
|
|
65
|
+
} | {
|
|
66
|
+
checkins: Checkin[];
|
|
67
|
+
response: "no-response" | "negative-repsone";
|
|
68
|
+
}>>;
|
|
69
|
+
export declare const CheckinWithoutResponse: ComponentStory<React.FunctionComponent<{
|
|
70
|
+
checkins: Checkin[];
|
|
71
|
+
response: "positive-response";
|
|
72
|
+
rsvpCount: number;
|
|
73
|
+
} | {
|
|
74
|
+
checkins: Checkin[];
|
|
75
|
+
response: "no-response" | "negative-repsone";
|
|
76
|
+
}>>;
|
|
77
|
+
export declare const MultipleCheckins: ComponentStory<React.FunctionComponent<{
|
|
78
|
+
checkins: Checkin[];
|
|
79
|
+
response: "positive-response";
|
|
80
|
+
rsvpCount: number;
|
|
81
|
+
} | {
|
|
82
|
+
checkins: Checkin[];
|
|
83
|
+
response: "no-response" | "negative-repsone";
|
|
84
|
+
}>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import 'styled-jsx';
|
|
3
|
+
import { Attendee } from '../models';
|
|
4
|
+
declare type Props = {
|
|
5
|
+
companionStatus: {
|
|
6
|
+
isCompanion: false;
|
|
7
|
+
} | {
|
|
8
|
+
isCompanion: true;
|
|
9
|
+
mainGuestId: string;
|
|
10
|
+
};
|
|
11
|
+
formatName: (attendee: Attendee) => string;
|
|
12
|
+
findMainGuest?: (attendeeId: string) => Attendee | undefined;
|
|
13
|
+
};
|
|
14
|
+
export declare const CompanionInfo: FunctionComponent<Props>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
|
+
import { Attendee } from '../models';
|
|
4
|
+
declare const _default: ComponentMeta<React.FunctionComponent<{
|
|
5
|
+
companionStatus: {
|
|
6
|
+
isCompanion: false;
|
|
7
|
+
} | {
|
|
8
|
+
isCompanion: true;
|
|
9
|
+
mainGuestId: string;
|
|
10
|
+
};
|
|
11
|
+
formatName: (attendee: Attendee) => string;
|
|
12
|
+
findMainGuest?: ((attendeeId: string) => Attendee | undefined) | undefined;
|
|
13
|
+
}>>;
|
|
14
|
+
export default _default;
|
|
15
|
+
export declare const WithMainGuestFound: ComponentStory<React.FunctionComponent<{
|
|
16
|
+
companionStatus: {
|
|
17
|
+
isCompanion: false;
|
|
18
|
+
} | {
|
|
19
|
+
isCompanion: true;
|
|
20
|
+
mainGuestId: string;
|
|
21
|
+
};
|
|
22
|
+
formatName: (attendee: Attendee) => string;
|
|
23
|
+
findMainGuest?: ((attendeeId: string) => Attendee | undefined) | undefined;
|
|
24
|
+
}>>;
|
|
25
|
+
export declare const WithoutMainGuest: ComponentStory<React.FunctionComponent<{
|
|
26
|
+
companionStatus: {
|
|
27
|
+
isCompanion: false;
|
|
28
|
+
} | {
|
|
29
|
+
isCompanion: true;
|
|
30
|
+
mainGuestId: string;
|
|
31
|
+
};
|
|
32
|
+
formatName: (attendee: Attendee) => string;
|
|
33
|
+
findMainGuest?: ((attendeeId: string) => Attendee | undefined) | undefined;
|
|
34
|
+
}>>;
|
|
35
|
+
export declare const NotACompanion: ComponentStory<React.FunctionComponent<{
|
|
36
|
+
companionStatus: {
|
|
37
|
+
isCompanion: false;
|
|
38
|
+
} | {
|
|
39
|
+
isCompanion: true;
|
|
40
|
+
mainGuestId: string;
|
|
41
|
+
};
|
|
42
|
+
formatName: (attendee: Attendee) => string;
|
|
43
|
+
findMainGuest?: ((attendeeId: string) => Attendee | undefined) | undefined;
|
|
44
|
+
}>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import 'styled-jsx';
|
|
3
|
+
import { Attendee } from '../models';
|
|
4
|
+
declare type Props = {
|
|
5
|
+
attendee: Attendee;
|
|
6
|
+
checkinTag: string;
|
|
7
|
+
plain?: boolean;
|
|
8
|
+
labelColor?: string;
|
|
9
|
+
infoText?: string;
|
|
10
|
+
formatName: (attendee: Attendee) => string;
|
|
11
|
+
filterTags?: (tag: string) => boolean;
|
|
12
|
+
findMainGuest?: (attendeeId: string) => Attendee | undefined;
|
|
13
|
+
onClick?: (attendeeId: string) => void;
|
|
14
|
+
};
|
|
15
|
+
export declare const GuestCard: FunctionComponent<Props>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
|
+
import { Attendee } from '../models';
|
|
4
|
+
declare const _default: ComponentMeta<React.FunctionComponent<{
|
|
5
|
+
attendee: Attendee;
|
|
6
|
+
checkinTag: string;
|
|
7
|
+
plain?: boolean | undefined;
|
|
8
|
+
labelColor?: string | undefined;
|
|
9
|
+
infoText?: string | undefined;
|
|
10
|
+
formatName: (attendee: Attendee) => string;
|
|
11
|
+
filterTags?: ((tag: string) => boolean) | undefined;
|
|
12
|
+
findMainGuest?: ((attendeeId: string) => Attendee | undefined) | undefined;
|
|
13
|
+
onClick?: ((attendeeId: string) => void) | undefined;
|
|
14
|
+
}>>;
|
|
15
|
+
export default _default;
|
|
16
|
+
export declare const WithBackground: ComponentStory<React.FunctionComponent<{
|
|
17
|
+
attendee: Attendee;
|
|
18
|
+
checkinTag: string;
|
|
19
|
+
plain?: boolean | undefined;
|
|
20
|
+
labelColor?: string | undefined;
|
|
21
|
+
infoText?: string | undefined;
|
|
22
|
+
formatName: (attendee: Attendee) => string;
|
|
23
|
+
filterTags?: ((tag: string) => boolean) | undefined;
|
|
24
|
+
findMainGuest?: ((attendeeId: string) => Attendee | undefined) | undefined;
|
|
25
|
+
onClick?: ((attendeeId: string) => void) | undefined;
|
|
26
|
+
}>>;
|
|
27
|
+
export declare const Plain: ComponentStory<React.FunctionComponent<{
|
|
28
|
+
attendee: Attendee;
|
|
29
|
+
checkinTag: string;
|
|
30
|
+
plain?: boolean | undefined;
|
|
31
|
+
labelColor?: string | undefined;
|
|
32
|
+
infoText?: string | undefined;
|
|
33
|
+
formatName: (attendee: Attendee) => string;
|
|
34
|
+
filterTags?: ((tag: string) => boolean) | undefined;
|
|
35
|
+
findMainGuest?: ((attendeeId: string) => Attendee | undefined) | undefined;
|
|
36
|
+
onClick?: ((attendeeId: string) => void) | undefined;
|
|
37
|
+
}>>;
|
|
38
|
+
export declare const FilteredTags: ComponentStory<React.FunctionComponent<{
|
|
39
|
+
attendee: Attendee;
|
|
40
|
+
checkinTag: string;
|
|
41
|
+
plain?: boolean | undefined;
|
|
42
|
+
labelColor?: string | undefined;
|
|
43
|
+
infoText?: string | undefined;
|
|
44
|
+
formatName: (attendee: Attendee) => string;
|
|
45
|
+
filterTags?: ((tag: string) => boolean) | undefined;
|
|
46
|
+
findMainGuest?: ((attendeeId: string) => Attendee | undefined) | undefined;
|
|
47
|
+
onClick?: ((attendeeId: string) => void) | undefined;
|
|
48
|
+
}>>;
|
|
49
|
+
export declare const WithColorLabel: ComponentStory<React.FunctionComponent<{
|
|
50
|
+
attendee: Attendee;
|
|
51
|
+
checkinTag: string;
|
|
52
|
+
plain?: boolean | undefined;
|
|
53
|
+
labelColor?: string | undefined;
|
|
54
|
+
infoText?: string | undefined;
|
|
55
|
+
formatName: (attendee: Attendee) => string;
|
|
56
|
+
filterTags?: ((tag: string) => boolean) | undefined;
|
|
57
|
+
findMainGuest?: ((attendeeId: string) => Attendee | undefined) | undefined;
|
|
58
|
+
onClick?: ((attendeeId: string) => void) | undefined;
|
|
59
|
+
}>>;
|
|
60
|
+
export declare const WithInfoText: ComponentStory<React.FunctionComponent<{
|
|
61
|
+
attendee: Attendee;
|
|
62
|
+
checkinTag: string;
|
|
63
|
+
plain?: boolean | undefined;
|
|
64
|
+
labelColor?: string | undefined;
|
|
65
|
+
infoText?: string | undefined;
|
|
66
|
+
formatName: (attendee: Attendee) => string;
|
|
67
|
+
filterTags?: ((tag: string) => boolean) | undefined;
|
|
68
|
+
findMainGuest?: ((attendeeId: string) => Attendee | undefined) | undefined;
|
|
69
|
+
onClick?: ((attendeeId: string) => void) | undefined;
|
|
70
|
+
}>>;
|
|
71
|
+
export declare const WithCompanion: ComponentStory<React.FunctionComponent<{
|
|
72
|
+
attendee: Attendee;
|
|
73
|
+
checkinTag: string;
|
|
74
|
+
plain?: boolean | undefined;
|
|
75
|
+
labelColor?: string | undefined;
|
|
76
|
+
infoText?: string | undefined;
|
|
77
|
+
formatName: (attendee: Attendee) => string;
|
|
78
|
+
filterTags?: ((tag: string) => boolean) | undefined;
|
|
79
|
+
findMainGuest?: ((attendeeId: string) => Attendee | undefined) | undefined;
|
|
80
|
+
onClick?: ((attendeeId: string) => void) | undefined;
|
|
81
|
+
}>>;
|
|
82
|
+
export declare const WithCompanionButNoMainGuestInfo: ComponentStory<React.FunctionComponent<{
|
|
83
|
+
attendee: Attendee;
|
|
84
|
+
checkinTag: string;
|
|
85
|
+
plain?: boolean | undefined;
|
|
86
|
+
labelColor?: string | undefined;
|
|
87
|
+
infoText?: string | undefined;
|
|
88
|
+
formatName: (attendee: Attendee) => string;
|
|
89
|
+
filterTags?: ((tag: string) => boolean) | undefined;
|
|
90
|
+
findMainGuest?: ((attendeeId: string) => Attendee | undefined) | undefined;
|
|
91
|
+
onClick?: ((attendeeId: string) => void) | undefined;
|
|
92
|
+
}>>;
|
package/dist/ui/tag.d.ts
ADDED