@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.
Files changed (71) hide show
  1. package/README.md +1 -1
  2. package/dist/api-client/api-base.d.ts +11 -5
  3. package/dist/api-client/api-base.js +13 -12
  4. package/dist/api-client/index.d.ts +20 -20
  5. package/dist/api-client/index.js +38 -38
  6. package/dist/generated/api-schema.d.ts +208 -20
  7. package/dist/lib/result.js +0 -1
  8. package/dist/models/attendee.d.ts +16 -15
  9. package/dist/models/attendee.js +43 -25
  10. package/dist/models/branch.d.ts +9 -0
  11. package/dist/models/branch.js +7 -0
  12. package/dist/models/checkin-counter.d.ts +2 -0
  13. package/dist/models/checkin-counter.js +1 -0
  14. package/dist/models/checkin.d.ts +5 -2
  15. package/dist/models/checkin.js +4 -1
  16. package/dist/models/checkins.d.ts +2 -2
  17. package/dist/models/checkins.js +6 -6
  18. package/dist/models/event.d.ts +2 -1
  19. package/dist/models/field.d.ts +9 -0
  20. package/dist/models/index.d.ts +3 -0
  21. package/dist/models/index.js +1 -0
  22. package/dist/models/instance.d.ts +2 -1
  23. package/dist/models/instance.js +6 -3
  24. package/dist/models/rsvp.d.ts +3 -2
  25. package/dist/models/rsvp.js +7 -4
  26. package/dist/ui/button.js +7 -6
  27. package/dist/ui/button.stories.d.ts +16 -59
  28. package/dist/ui/button.stories.js +66 -54
  29. package/dist/ui/checkin-count-indicator.stories.d.ts +14 -84
  30. package/dist/ui/checkin-count-indicator.stories.js +60 -52
  31. package/dist/ui/checkin-progress-bar.js +11 -11
  32. package/dist/ui/checkin-progress-bar.stories.d.ts +12 -59
  33. package/dist/ui/checkin-progress-bar.stories.js +45 -39
  34. package/dist/ui/companion-info.js +6 -6
  35. package/dist/ui/companion-info.stories.d.ts +8 -44
  36. package/dist/ui/companion-info.stories.js +29 -27
  37. package/dist/ui/enter-logo.js +2 -2
  38. package/dist/ui/enter-logo.stories.d.ts +7 -12
  39. package/dist/ui/enter-logo.stories.js +11 -12
  40. package/dist/ui/form-elements/input.js +6 -6
  41. package/dist/ui/form-elements/input.stories.d.ts +8 -15
  42. package/dist/ui/form-elements/input.stories.js +26 -24
  43. package/dist/ui/form-elements/label.js +6 -6
  44. package/dist/ui/form-elements/label.stories.d.ts +6 -5
  45. package/dist/ui/form-elements/label.stories.js +6 -6
  46. package/dist/ui/form-elements/search-input.js +10 -10
  47. package/dist/ui/form-elements/search-input.stories.d.ts +7 -18
  48. package/dist/ui/form-elements/search-input.stories.js +18 -17
  49. package/dist/ui/form-elements/segmented-control.js +8 -8
  50. package/dist/ui/form-elements/segmented-control.stories.d.ts +6 -17
  51. package/dist/ui/form-elements/segmented-control.stories.js +7 -7
  52. package/dist/ui/guest-card.d.ts +2 -1
  53. package/dist/ui/guest-card.js +17 -16
  54. package/dist/ui/guest-card.stories.d.ts +14 -124
  55. package/dist/ui/guest-card.stories.js +93 -76
  56. package/dist/ui/icons/add-guest-icon.stories.d.ts +7 -12
  57. package/dist/ui/icons/add-guest-icon.stories.js +11 -12
  58. package/dist/ui/icons/caret-icon.stories.d.ts +7 -15
  59. package/dist/ui/icons/caret-icon.stories.js +11 -12
  60. package/dist/ui/icons/filter-icon.stories.d.ts +7 -12
  61. package/dist/ui/icons/filter-icon.stories.js +11 -12
  62. package/dist/ui/icons/search-icon.stories.d.ts +7 -12
  63. package/dist/ui/icons/search-icon.stories.js +11 -12
  64. package/dist/ui/icons/settings-icon.stories.d.ts +7 -12
  65. package/dist/ui/icons/settings-icon.stories.js +11 -12
  66. package/dist/ui/icons/sort-list-icon.stories.d.ts +7 -15
  67. package/dist/ui/icons/sort-list-icon.stories.js +11 -12
  68. package/dist/ui/tag.js +5 -5
  69. package/dist/ui/tag.stories.d.ts +6 -9
  70. package/dist/ui/tag.stories.js +6 -6
  71. 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 { theme } from '../lib';
5
- export default {
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: theme.colors.enterPink,
83
- tester: theme.colors.enterCyan
82
+ VIP: colors.enterPink,
83
+ tester: colors.enterCyan
84
84
  };
85
- const Template = args => /*#__PURE__*/React.createElement(GuestCard, args);
86
- export const WithBackground = Template.bind({});
87
- WithBackground.args = {
88
- attendee: attendee,
89
- checkinTag: 'default',
90
- formatName(attendee) {
91
- return attendee.userdata.name?.toString() ?? '';
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 = Template.bind({});
95
- Plain.args = {
96
- plain: true,
97
- attendee: attendee,
98
- checkinTag: 'default',
99
- formatName(attendee) {
100
- return attendee.userdata.name?.toString() ?? '';
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 = Template.bind({});
104
- Dense.args = {
105
- dense: true,
106
- attendee: attendee,
107
- checkinTag: 'default',
108
- formatName(attendee) {
109
- return attendee.userdata.name?.toString() ?? '';
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 = Template.bind({});
113
- FilteredTags.args = {
114
- attendee: attendee,
115
- checkinTag: 'default',
116
- filterTags(tag) {
117
- const allowedTags = ['VIP'];
118
- return allowedTags.includes(tag);
119
- },
120
- formatName(attendee) {
121
- return attendee.userdata.name?.toString() ?? '';
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 = Template.bind({});
125
- WithColorLabel.args = {
126
- attendee: attendee,
127
- checkinTag: 'default',
128
- formatName(attendee) {
129
- return attendee.userdata.name?.toString() ?? '';
130
- },
131
- getTagColor(tag) {
132
- return tagColors[tag] ?? undefined;
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 = Template.bind({});
136
- WithMultipleColorLabels.args = {
137
- attendee: attendeeWithMultipleTags,
138
- checkinTag: 'default',
139
- formatName(attendee) {
140
- return attendee.userdata.name?.toString() ?? '';
141
- },
142
- getTagColor(tag) {
143
- return tagColors[tag] ?? undefined;
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 = Template.bind({});
147
- WithInfoText.args = {
148
- attendee: attendee,
149
- checkinTag: 'default',
150
- infoText: '🥦 Vegetarian',
151
- formatName(attendee) {
152
- return attendee.userdata.name?.toString() ?? '';
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 = Template.bind({});
156
- WithCompanion.args = {
157
- attendee: companion,
158
- checkinTag: 'default',
159
- findMainGuest: () => {
160
- return attendee;
161
- },
162
- formatName(attendee) {
163
- return attendee.userdata.name?.toString() ?? '';
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 = Template.bind({});
167
- WithCompanionButNoMainGuestInfo.args = {
168
- attendee: companion,
169
- checkinTag: 'default',
170
- formatName(attendee) {
171
- return attendee.userdata.name?.toString() ?? '';
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 React from 'react';
2
- import { ComponentStory, ComponentMeta } from '@storybook/react';
3
- declare const _default: ComponentMeta<React.FunctionComponent<{
4
- color?: string | undefined;
5
- }>>;
6
- export default _default;
7
- export declare const Basic: ComponentStory<React.FunctionComponent<{
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
- export default {
2
+ const meta = {
4
3
  title: 'Icons/Add Guest',
5
4
  component: AddGuestIcon
6
5
  };
7
- const Template = args => /*#__PURE__*/React.createElement(AddGuestIcon, args);
8
- export const Basic = Template.bind({});
9
- Basic.args = {};
10
- export const White = Template.bind({});
11
- White.parameters = {
12
- backgrounds: {
13
- default: 'dark'
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 React from 'react';
2
- import { ComponentStory, ComponentMeta } from '@storybook/react';
3
- declare const _default: ComponentMeta<React.FunctionComponent<{
4
- color?: string | undefined;
5
- rotateDeg: number;
6
- }>>;
7
- export default _default;
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
- export default {
2
+ const meta = {
4
3
  title: 'Icons/Caret',
5
4
  component: CaretIcon
6
5
  };
7
- const Template = args => /*#__PURE__*/React.createElement(CaretIcon, args);
8
- export const Basic = Template.bind({});
9
- Basic.args = {};
10
- export const White = Template.bind({});
11
- White.parameters = {
12
- backgrounds: {
13
- default: 'dark'
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 React from 'react';
2
- import { ComponentStory, ComponentMeta } from '@storybook/react';
3
- declare const _default: ComponentMeta<React.FunctionComponent<{
4
- color?: string | undefined;
5
- }>>;
6
- export default _default;
7
- export declare const Basic: ComponentStory<React.FunctionComponent<{
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
- export default {
2
+ const meta = {
4
3
  title: 'Icons/Filter',
5
4
  component: FilterIcon
6
5
  };
7
- const Template = args => /*#__PURE__*/React.createElement(FilterIcon, args);
8
- export const Basic = Template.bind({});
9
- Basic.args = {};
10
- export const White = Template.bind({});
11
- White.parameters = {
12
- backgrounds: {
13
- default: 'dark'
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 React from 'react';
2
- import { ComponentStory, ComponentMeta } from '@storybook/react';
3
- declare const _default: ComponentMeta<React.FunctionComponent<{
4
- color?: string | undefined;
5
- }>>;
6
- export default _default;
7
- export declare const Basic: ComponentStory<React.FunctionComponent<{
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
- export default {
2
+ const meta = {
4
3
  title: 'Icons/Search',
5
4
  component: SearchIcon
6
5
  };
7
- const Template = args => /*#__PURE__*/React.createElement(SearchIcon, args);
8
- export const Basic = Template.bind({});
9
- Basic.args = {};
10
- export const White = Template.bind({});
11
- White.parameters = {
12
- backgrounds: {
13
- default: 'dark'
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 React from 'react';
2
- import { ComponentStory, ComponentMeta } from '@storybook/react';
3
- declare const _default: ComponentMeta<React.FunctionComponent<{
4
- color?: string | undefined;
5
- }>>;
6
- export default _default;
7
- export declare const Basic: ComponentStory<React.FunctionComponent<{
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
- export default {
2
+ const meta = {
4
3
  title: 'Icons/Settings',
5
4
  component: SettingsIcon
6
5
  };
7
- const Template = args => /*#__PURE__*/React.createElement(SettingsIcon, args);
8
- export const Basic = Template.bind({});
9
- Basic.args = {};
10
- export const White = Template.bind({});
11
- White.parameters = {
12
- backgrounds: {
13
- default: 'dark'
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 React from 'react';
2
- import { ComponentStory, ComponentMeta } from '@storybook/react';
3
- declare const _default: ComponentMeta<React.FunctionComponent<{
4
- color?: string | undefined;
5
- ascending: boolean;
6
- }>>;
7
- export default _default;
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
- export default {
2
+ const meta = {
4
3
  title: 'Icons/Sort List',
5
4
  component: SortListIcon
6
5
  };
7
- const Template = args => /*#__PURE__*/React.createElement(SortListIcon, args);
8
- export const Basic = Template.bind({});
9
- Basic.args = {};
10
- export const White = Template.bind({});
11
- White.parameters = {
12
- backgrounds: {
13
- default: 'dark'
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 { theme } from '../lib';
4
+ import { colors, fonts } from '../lib/theme';
5
5
  export const Tag = props => {
6
6
  return /*#__PURE__*/React.createElement("div", {
7
- className: _JSXStyle.dynamic([["2407016309", [theme.fonts.primary, theme.colors.enterDarkGrey, theme.colors.enterGrey]]]) + " " + 'tag'
7
+ className: _JSXStyle.dynamic([["3070421237", [fonts.primary, colors.enterDarkGrey, colors.enterGrey]]]) + " " + 'tag'
8
8
  }, props.children, /*#__PURE__*/React.createElement(_JSXStyle, {
9
- id: "2407016309",
10
- dynamic: [theme.fonts.primary, theme.colors.enterDarkGrey, theme.colors.enterGrey]
11
- }, `.tag.__jsx-style-dynamic-selector{font-family:${theme.fonts.primary};font-size:0.8em;color:${theme.colors.enterDarkGrey};text-transform:uppercase;display:inline-block;background-color:transparent;border-radius:2px;border:1px solid ${theme.colors.enterGrey};padding:2px 8px;margin:0 0 0.5em 0.5em;word-wrap:anywhere;}`));
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
  };
@@ -1,9 +1,6 @@
1
- import React from 'react';
2
- import { ComponentStory, ComponentMeta } from '@storybook/react';
3
- declare const _default: ComponentMeta<React.FunctionComponent<{
4
- children: React.ReactNode;
5
- }>>;
6
- export default _default;
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;
@@ -1,11 +1,11 @@
1
- import React from 'react';
2
1
  import { Tag } from './tag';
3
- export default {
2
+ const meta = {
4
3
  title: 'Tag',
5
4
  component: Tag
6
5
  };
7
- const Template = args => /*#__PURE__*/React.createElement(Tag, args);
8
- export const Basic = Template.bind({});
9
- Basic.args = {
10
- children: 'my tag'
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.70.2",
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": "start-storybook -p 6006",
24
- "build-storybook": "build-storybook",
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.17.10",
42
- "@babel/core": "^7.18.5",
43
- "@babel/preset-env": "^7.18.2",
44
- "@babel/preset-react": "^7.17.12",
45
- "@babel/preset-typescript": "^7.17.12",
46
- "@storybook/addon-actions": "^6.5.15",
47
- "@storybook/addon-essentials": "^6.5.15",
48
- "@storybook/addon-interactions": "^6.5.15",
49
- "@storybook/addon-links": "^6.5.15",
50
- "@storybook/builder-webpack4": "^6.5.15",
51
- "@storybook/manager-webpack4": "^6.5.15",
52
- "@storybook/react": "^6.5.15",
53
- "@storybook/testing-library": "^0.0.13",
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.0.2",
79
+ "styled-jsx": "^5.1.6",
79
80
  "uuid": "^9.0.0"
80
81
  }
81
82
  }