@dev-crew-berlin/enter-js-utils 0.70.2 → 0.80.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/README.md +1 -1
- package/dist/api-client/api-base.d.ts +11 -5
- package/dist/api-client/api-base.js +13 -12
- package/dist/api-client/index.d.ts +20 -20
- package/dist/api-client/index.js +38 -38
- package/dist/generated/api-schema.d.ts +208 -20
- package/dist/lib/result.js +0 -1
- package/dist/models/attendee.d.ts +16 -15
- package/dist/models/attendee.js +43 -25
- package/dist/models/branch.d.ts +9 -0
- package/dist/models/branch.js +7 -0
- package/dist/models/checkin-counter.d.ts +2 -0
- package/dist/models/checkin-counter.js +1 -0
- package/dist/models/checkin.d.ts +5 -2
- package/dist/models/checkin.js +4 -1
- package/dist/models/checkins.d.ts +2 -2
- package/dist/models/checkins.js +6 -6
- package/dist/models/event.d.ts +2 -1
- package/dist/models/field.d.ts +9 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +1 -0
- package/dist/models/instance.d.ts +2 -1
- package/dist/models/instance.js +6 -3
- package/dist/models/rsvp.d.ts +3 -2
- package/dist/models/rsvp.js +7 -4
- package/dist/ui/button.js +7 -6
- package/dist/ui/button.stories.d.ts +16 -59
- package/dist/ui/button.stories.js +66 -54
- package/dist/ui/checkin-count-indicator.stories.d.ts +14 -84
- package/dist/ui/checkin-count-indicator.stories.js +60 -52
- package/dist/ui/checkin-progress-bar.js +11 -11
- package/dist/ui/checkin-progress-bar.stories.d.ts +12 -59
- package/dist/ui/checkin-progress-bar.stories.js +45 -39
- package/dist/ui/companion-info.js +6 -6
- package/dist/ui/companion-info.stories.d.ts +8 -44
- package/dist/ui/companion-info.stories.js +29 -27
- package/dist/ui/enter-logo.js +2 -2
- package/dist/ui/enter-logo.stories.d.ts +7 -12
- package/dist/ui/enter-logo.stories.js +11 -12
- package/dist/ui/form-elements/input.js +6 -6
- package/dist/ui/form-elements/input.stories.d.ts +8 -15
- package/dist/ui/form-elements/input.stories.js +26 -24
- package/dist/ui/form-elements/label.js +6 -6
- package/dist/ui/form-elements/label.stories.d.ts +6 -5
- package/dist/ui/form-elements/label.stories.js +6 -6
- package/dist/ui/form-elements/search-input.js +10 -10
- package/dist/ui/form-elements/search-input.stories.d.ts +7 -18
- package/dist/ui/form-elements/search-input.stories.js +18 -17
- package/dist/ui/form-elements/segmented-control.js +8 -8
- package/dist/ui/form-elements/segmented-control.stories.d.ts +6 -17
- package/dist/ui/form-elements/segmented-control.stories.js +7 -7
- package/dist/ui/guest-card.d.ts +2 -1
- package/dist/ui/guest-card.js +17 -16
- package/dist/ui/guest-card.stories.d.ts +14 -124
- package/dist/ui/guest-card.stories.js +93 -76
- package/dist/ui/icons/add-guest-icon.stories.d.ts +7 -12
- package/dist/ui/icons/add-guest-icon.stories.js +11 -12
- package/dist/ui/icons/caret-icon.stories.d.ts +7 -15
- package/dist/ui/icons/caret-icon.stories.js +11 -12
- package/dist/ui/icons/filter-icon.stories.d.ts +7 -12
- package/dist/ui/icons/filter-icon.stories.js +11 -12
- package/dist/ui/icons/search-icon.stories.d.ts +7 -12
- package/dist/ui/icons/search-icon.stories.js +11 -12
- package/dist/ui/icons/settings-icon.stories.d.ts +7 -12
- package/dist/ui/icons/settings-icon.stories.js +11 -12
- package/dist/ui/icons/sort-list-icon.stories.d.ts +7 -15
- package/dist/ui/icons/sort-list-icon.stories.js +11 -12
- package/dist/ui/tag.js +5 -5
- package/dist/ui/tag.stories.d.ts +6 -9
- package/dist/ui/tag.stories.js +6 -6
- package/package.json +18 -17
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { GuestCard } from './guest-card';
|
|
3
2
|
import { Attendee } from '../models';
|
|
4
|
-
import {
|
|
5
|
-
|
|
3
|
+
import { colors } from '../lib/theme';
|
|
4
|
+
const meta = {
|
|
6
5
|
title: 'Guest Card',
|
|
7
6
|
component: GuestCard,
|
|
8
7
|
argTypes: {
|
|
@@ -11,6 +10,7 @@ export default {
|
|
|
11
10
|
}
|
|
12
11
|
}
|
|
13
12
|
};
|
|
13
|
+
export default meta;
|
|
14
14
|
const attendee = new Attendee({
|
|
15
15
|
id: 'my-attendee',
|
|
16
16
|
language: 'de',
|
|
@@ -79,95 +79,112 @@ const companion = new Attendee({
|
|
|
79
79
|
payment: null
|
|
80
80
|
});
|
|
81
81
|
const tagColors = {
|
|
82
|
-
VIP:
|
|
83
|
-
tester:
|
|
82
|
+
VIP: colors.enterPink,
|
|
83
|
+
tester: colors.enterCyan
|
|
84
84
|
};
|
|
85
|
-
const
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
85
|
+
export const WithBackground = {
|
|
86
|
+
args: {
|
|
87
|
+
attendee: attendee,
|
|
88
|
+
branchName: 'default',
|
|
89
|
+
counterName: 'main',
|
|
90
|
+
formatName(attendee) {
|
|
91
|
+
return attendee.getFieldValueString('name');
|
|
92
|
+
}
|
|
92
93
|
}
|
|
93
94
|
};
|
|
94
|
-
export const Plain =
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
95
|
+
export const Plain = {
|
|
96
|
+
args: {
|
|
97
|
+
plain: true,
|
|
98
|
+
attendee: attendee,
|
|
99
|
+
branchName: 'default',
|
|
100
|
+
counterName: 'main',
|
|
101
|
+
formatName(attendee) {
|
|
102
|
+
return attendee.getFieldValueString('name');
|
|
103
|
+
}
|
|
101
104
|
}
|
|
102
105
|
};
|
|
103
|
-
export const Dense =
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
106
|
+
export const Dense = {
|
|
107
|
+
args: {
|
|
108
|
+
dense: true,
|
|
109
|
+
attendee: attendee,
|
|
110
|
+
branchName: 'default',
|
|
111
|
+
counterName: 'main',
|
|
112
|
+
formatName(attendee) {
|
|
113
|
+
return attendee.getFieldValueString('name');
|
|
114
|
+
}
|
|
110
115
|
}
|
|
111
116
|
};
|
|
112
|
-
export const FilteredTags =
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
117
|
+
export const FilteredTags = {
|
|
118
|
+
args: {
|
|
119
|
+
attendee: attendee,
|
|
120
|
+
branchName: 'default',
|
|
121
|
+
counterName: 'main',
|
|
122
|
+
filterTags(tag) {
|
|
123
|
+
const allowedTags = ['VIP'];
|
|
124
|
+
return allowedTags.includes(tag);
|
|
125
|
+
},
|
|
126
|
+
formatName(attendee) {
|
|
127
|
+
return attendee.getFieldValueString('name');
|
|
128
|
+
}
|
|
122
129
|
}
|
|
123
130
|
};
|
|
124
|
-
export const WithColorLabel =
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
export const WithColorLabel = {
|
|
132
|
+
args: {
|
|
133
|
+
attendee: attendee,
|
|
134
|
+
branchName: 'default',
|
|
135
|
+
counterName: 'main',
|
|
136
|
+
formatName(attendee) {
|
|
137
|
+
return attendee.getFieldValueString('name');
|
|
138
|
+
},
|
|
139
|
+
getTagColor(tag) {
|
|
140
|
+
return tagColors[tag] ?? undefined;
|
|
141
|
+
}
|
|
133
142
|
}
|
|
134
143
|
};
|
|
135
|
-
export const WithMultipleColorLabels =
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
+
export const WithMultipleColorLabels = {
|
|
145
|
+
args: {
|
|
146
|
+
attendee: attendeeWithMultipleTags,
|
|
147
|
+
branchName: 'default',
|
|
148
|
+
counterName: 'main',
|
|
149
|
+
formatName(attendee) {
|
|
150
|
+
return attendee.getFieldValueString('name');
|
|
151
|
+
},
|
|
152
|
+
getTagColor(tag) {
|
|
153
|
+
return tagColors[tag] ?? undefined;
|
|
154
|
+
}
|
|
144
155
|
}
|
|
145
156
|
};
|
|
146
|
-
export const WithInfoText =
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
157
|
+
export const WithInfoText = {
|
|
158
|
+
args: {
|
|
159
|
+
attendee: attendee,
|
|
160
|
+
branchName: 'default',
|
|
161
|
+
counterName: 'main',
|
|
162
|
+
infoText: '🥦 Vegetarian',
|
|
163
|
+
formatName(attendee) {
|
|
164
|
+
return attendee.getFieldValueString('name');
|
|
165
|
+
}
|
|
153
166
|
}
|
|
154
167
|
};
|
|
155
|
-
export const WithCompanion =
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
168
|
+
export const WithCompanion = {
|
|
169
|
+
args: {
|
|
170
|
+
attendee: companion,
|
|
171
|
+
branchName: 'default',
|
|
172
|
+
counterName: 'main',
|
|
173
|
+
findMainGuest: () => {
|
|
174
|
+
return attendee;
|
|
175
|
+
},
|
|
176
|
+
formatName(attendee) {
|
|
177
|
+
return attendee.getFieldValueString('name');
|
|
178
|
+
}
|
|
164
179
|
}
|
|
165
180
|
};
|
|
166
|
-
export const WithCompanionButNoMainGuestInfo =
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
181
|
+
export const WithCompanionButNoMainGuestInfo = {
|
|
182
|
+
args: {
|
|
183
|
+
attendee: companion,
|
|
184
|
+
branchName: 'default',
|
|
185
|
+
counterName: 'main',
|
|
186
|
+
formatName(attendee) {
|
|
187
|
+
return attendee.getFieldValueString('name');
|
|
188
|
+
}
|
|
172
189
|
}
|
|
173
190
|
};
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
export declare const
|
|
8
|
-
color?: string | undefined;
|
|
9
|
-
}>>;
|
|
10
|
-
export declare const White: ComponentStory<React.FunctionComponent<{
|
|
11
|
-
color?: string | undefined;
|
|
12
|
-
}>>;
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { AddGuestIcon } from './add-guest-icon';
|
|
3
|
+
declare const meta: Meta<typeof AddGuestIcon>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof AddGuestIcon>;
|
|
6
|
+
export declare const Basic: Story;
|
|
7
|
+
export declare const White: Story;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { AddGuestIcon } from './add-guest-icon';
|
|
3
|
-
|
|
2
|
+
const meta = {
|
|
4
3
|
title: 'Icons/Add Guest',
|
|
5
4
|
component: AddGuestIcon
|
|
6
5
|
};
|
|
7
|
-
|
|
8
|
-
export const Basic =
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
export default meta;
|
|
7
|
+
export const Basic = {};
|
|
8
|
+
export const White = {
|
|
9
|
+
parameters: {
|
|
10
|
+
backgrounds: {
|
|
11
|
+
default: 'dark'
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
args: {
|
|
15
|
+
color: '#fff'
|
|
14
16
|
}
|
|
15
|
-
};
|
|
16
|
-
White.args = {
|
|
17
|
-
color: '#fff'
|
|
18
17
|
};
|
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export
|
|
8
|
-
export declare const Basic: ComponentStory<React.FunctionComponent<{
|
|
9
|
-
color?: string | undefined;
|
|
10
|
-
rotateDeg: number;
|
|
11
|
-
}>>;
|
|
12
|
-
export declare const White: ComponentStory<React.FunctionComponent<{
|
|
13
|
-
color?: string | undefined;
|
|
14
|
-
rotateDeg: number;
|
|
15
|
-
}>>;
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { CaretIcon } from './caret-icon';
|
|
3
|
+
declare const meta: Meta<typeof CaretIcon>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof CaretIcon>;
|
|
6
|
+
export declare const Basic: Story;
|
|
7
|
+
export declare const White: Story;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { CaretIcon } from './caret-icon';
|
|
3
|
-
|
|
2
|
+
const meta = {
|
|
4
3
|
title: 'Icons/Caret',
|
|
5
4
|
component: CaretIcon
|
|
6
5
|
};
|
|
7
|
-
|
|
8
|
-
export const Basic =
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
export default meta;
|
|
7
|
+
export const Basic = {};
|
|
8
|
+
export const White = {
|
|
9
|
+
parameters: {
|
|
10
|
+
backgrounds: {
|
|
11
|
+
default: 'dark'
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
args: {
|
|
15
|
+
color: '#fff'
|
|
14
16
|
}
|
|
15
|
-
};
|
|
16
|
-
White.args = {
|
|
17
|
-
color: '#fff'
|
|
18
17
|
};
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
export declare const
|
|
8
|
-
color?: string | undefined;
|
|
9
|
-
}>>;
|
|
10
|
-
export declare const White: ComponentStory<React.FunctionComponent<{
|
|
11
|
-
color?: string | undefined;
|
|
12
|
-
}>>;
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { FilterIcon } from './filter-icon';
|
|
3
|
+
declare const meta: Meta<typeof FilterIcon>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof FilterIcon>;
|
|
6
|
+
export declare const Basic: Story;
|
|
7
|
+
export declare const White: Story;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { FilterIcon } from './filter-icon';
|
|
3
|
-
|
|
2
|
+
const meta = {
|
|
4
3
|
title: 'Icons/Filter',
|
|
5
4
|
component: FilterIcon
|
|
6
5
|
};
|
|
7
|
-
|
|
8
|
-
export const Basic =
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
export default meta;
|
|
7
|
+
export const Basic = {};
|
|
8
|
+
export const White = {
|
|
9
|
+
parameters: {
|
|
10
|
+
backgrounds: {
|
|
11
|
+
default: 'dark'
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
args: {
|
|
15
|
+
color: '#fff'
|
|
14
16
|
}
|
|
15
|
-
};
|
|
16
|
-
White.args = {
|
|
17
|
-
color: '#fff'
|
|
18
17
|
};
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
export declare const
|
|
8
|
-
color?: string | undefined;
|
|
9
|
-
}>>;
|
|
10
|
-
export declare const White: ComponentStory<React.FunctionComponent<{
|
|
11
|
-
color?: string | undefined;
|
|
12
|
-
}>>;
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { SearchIcon } from './search-icon';
|
|
3
|
+
declare const meta: Meta<typeof SearchIcon>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof SearchIcon>;
|
|
6
|
+
export declare const Basic: Story;
|
|
7
|
+
export declare const White: Story;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { SearchIcon } from './search-icon';
|
|
3
|
-
|
|
2
|
+
const meta = {
|
|
4
3
|
title: 'Icons/Search',
|
|
5
4
|
component: SearchIcon
|
|
6
5
|
};
|
|
7
|
-
|
|
8
|
-
export const Basic =
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
export default meta;
|
|
7
|
+
export const Basic = {};
|
|
8
|
+
export const White = {
|
|
9
|
+
parameters: {
|
|
10
|
+
backgrounds: {
|
|
11
|
+
default: 'dark'
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
args: {
|
|
15
|
+
color: '#fff'
|
|
14
16
|
}
|
|
15
|
-
};
|
|
16
|
-
White.args = {
|
|
17
|
-
color: '#fff'
|
|
18
17
|
};
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
export declare const
|
|
8
|
-
color?: string | undefined;
|
|
9
|
-
}>>;
|
|
10
|
-
export declare const White: ComponentStory<React.FunctionComponent<{
|
|
11
|
-
color?: string | undefined;
|
|
12
|
-
}>>;
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { SettingsIcon } from './settings-icon';
|
|
3
|
+
declare const meta: Meta<typeof SettingsIcon>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof SettingsIcon>;
|
|
6
|
+
export declare const Basic: Story;
|
|
7
|
+
export declare const White: Story;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { SettingsIcon } from './settings-icon';
|
|
3
|
-
|
|
2
|
+
const meta = {
|
|
4
3
|
title: 'Icons/Settings',
|
|
5
4
|
component: SettingsIcon
|
|
6
5
|
};
|
|
7
|
-
|
|
8
|
-
export const Basic =
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
export default meta;
|
|
7
|
+
export const Basic = {};
|
|
8
|
+
export const White = {
|
|
9
|
+
parameters: {
|
|
10
|
+
backgrounds: {
|
|
11
|
+
default: 'dark'
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
args: {
|
|
15
|
+
color: '#fff'
|
|
14
16
|
}
|
|
15
|
-
};
|
|
16
|
-
White.args = {
|
|
17
|
-
color: '#fff'
|
|
18
17
|
};
|
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export
|
|
8
|
-
export declare const Basic: ComponentStory<React.FunctionComponent<{
|
|
9
|
-
color?: string | undefined;
|
|
10
|
-
ascending: boolean;
|
|
11
|
-
}>>;
|
|
12
|
-
export declare const White: ComponentStory<React.FunctionComponent<{
|
|
13
|
-
color?: string | undefined;
|
|
14
|
-
ascending: boolean;
|
|
15
|
-
}>>;
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { SortListIcon } from './sort-list-icon';
|
|
3
|
+
declare const meta: Meta<typeof SortListIcon>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof SortListIcon>;
|
|
6
|
+
export declare const Basic: Story;
|
|
7
|
+
export declare const White: Story;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { SortListIcon } from './sort-list-icon';
|
|
3
|
-
|
|
2
|
+
const meta = {
|
|
4
3
|
title: 'Icons/Sort List',
|
|
5
4
|
component: SortListIcon
|
|
6
5
|
};
|
|
7
|
-
|
|
8
|
-
export const Basic =
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
export default meta;
|
|
7
|
+
export const Basic = {};
|
|
8
|
+
export const White = {
|
|
9
|
+
parameters: {
|
|
10
|
+
backgrounds: {
|
|
11
|
+
default: 'dark'
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
args: {
|
|
15
|
+
color: '#fff'
|
|
14
16
|
}
|
|
15
|
-
};
|
|
16
|
-
White.args = {
|
|
17
|
-
color: '#fff'
|
|
18
17
|
};
|
package/dist/ui/tag.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import _JSXStyle from "styled-jsx/style";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import 'styled-jsx';
|
|
4
|
-
import {
|
|
4
|
+
import { colors, fonts } from '../lib/theme';
|
|
5
5
|
export const Tag = props => {
|
|
6
6
|
return /*#__PURE__*/React.createElement("div", {
|
|
7
|
-
className: _JSXStyle.dynamic([["
|
|
7
|
+
className: _JSXStyle.dynamic([["3070421237", [fonts.primary, colors.enterDarkGrey, colors.enterGrey]]]) + " " + 'tag'
|
|
8
8
|
}, props.children, /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
9
|
-
id: "
|
|
10
|
-
dynamic: [
|
|
11
|
-
}, `.tag.__jsx-style-dynamic-selector{font-family:${
|
|
9
|
+
id: "3070421237",
|
|
10
|
+
dynamic: [fonts.primary, colors.enterDarkGrey, colors.enterGrey]
|
|
11
|
+
}, `.tag.__jsx-style-dynamic-selector{font-family:${fonts.primary};font-size:0.8em;color:${colors.enterDarkGrey};text-transform:uppercase;display:inline-block;background-color:transparent;border-radius:2px;border:1px solid ${colors.enterGrey};padding:2px 8px;margin:0 0 0.5em 0.5em;word-wrap:anywhere;}`));
|
|
12
12
|
};
|
package/dist/ui/tag.stories.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
export declare const Basic: ComponentStory<React.FunctionComponent<{
|
|
8
|
-
children: React.ReactNode;
|
|
9
|
-
}>>;
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Tag } from './tag';
|
|
3
|
+
declare const meta: Meta<typeof Tag>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof Tag>;
|
|
6
|
+
export declare const Basic: Story;
|
package/dist/ui/tag.stories.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { Tag } from './tag';
|
|
3
|
-
|
|
2
|
+
const meta = {
|
|
4
3
|
title: 'Tag',
|
|
5
4
|
component: Tag
|
|
6
5
|
};
|
|
7
|
-
|
|
8
|
-
export const Basic =
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
export default meta;
|
|
7
|
+
export const Basic = {
|
|
8
|
+
args: {
|
|
9
|
+
children: 'my tag'
|
|
10
|
+
}
|
|
11
11
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dev-crew-berlin/enter-js-utils",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.80.0",
|
|
4
4
|
"description": "utils such as vaildation and other helpers to work with data from the enter app",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"build": "rm -r dist & babel src --extensions '.ts','.tsx' -d dist && tsc -d",
|
|
21
21
|
"lint": "eslint src/ --ext .ts",
|
|
22
22
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
23
|
-
"storybook": "
|
|
24
|
-
"build-storybook": "build
|
|
23
|
+
"storybook": "storybook dev -p 6006",
|
|
24
|
+
"build-storybook": "storybook build",
|
|
25
25
|
"generate-client": "openapi-typescript https://api.enter.events/openapi.json --output src/generated/api-schema.ts --empty-objects-unknown --export-type"
|
|
26
26
|
},
|
|
27
27
|
"lint-staged": {
|
|
@@ -38,19 +38,20 @@
|
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://gitlab.com/dcb-enter/js-utils#readme",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@babel/cli": "^7.
|
|
42
|
-
"@babel/core": "^7.
|
|
43
|
-
"@babel/preset-env": "^7.
|
|
44
|
-
"@babel/preset-react": "^7.
|
|
45
|
-
"@babel/preset-typescript": "^7.
|
|
46
|
-
"@storybook/addon-actions": "^
|
|
47
|
-
"@storybook/addon-essentials": "^
|
|
48
|
-
"@storybook/addon-interactions": "^
|
|
49
|
-
"@storybook/addon-links": "^
|
|
50
|
-
"@storybook/
|
|
51
|
-
"@storybook/
|
|
52
|
-
"@storybook/react": "^
|
|
53
|
-
"@storybook/
|
|
41
|
+
"@babel/cli": "^7.25.7",
|
|
42
|
+
"@babel/core": "^7.25.8",
|
|
43
|
+
"@babel/preset-env": "^7.25.8",
|
|
44
|
+
"@babel/preset-react": "^7.25.7",
|
|
45
|
+
"@babel/preset-typescript": "^7.25.7",
|
|
46
|
+
"@storybook/addon-actions": "^8.3.5",
|
|
47
|
+
"@storybook/addon-essentials": "^8.3.5",
|
|
48
|
+
"@storybook/addon-interactions": "^8.3.5",
|
|
49
|
+
"@storybook/addon-links": "^8.3.5",
|
|
50
|
+
"@storybook/addon-webpack5-compiler-babel": "^3.0.3",
|
|
51
|
+
"@storybook/nextjs": "^8.3.5",
|
|
52
|
+
"@storybook/react": "^8.3.5",
|
|
53
|
+
"@storybook/react-webpack5": "^8.3.5",
|
|
54
|
+
"@storybook/test": "^8.3.5",
|
|
54
55
|
"@types/cookie": "^0.6.0",
|
|
55
56
|
"@types/jws": "^3.2.9",
|
|
56
57
|
"@types/node": "^17.0.38",
|
|
@@ -75,7 +76,7 @@
|
|
|
75
76
|
"dependencies": {
|
|
76
77
|
"cookie": "^0.6.0",
|
|
77
78
|
"jws": "^4.0.0",
|
|
78
|
-
"styled-jsx": "^5.
|
|
79
|
+
"styled-jsx": "^5.1.6",
|
|
79
80
|
"uuid": "^9.0.0"
|
|
80
81
|
}
|
|
81
82
|
}
|