@dev-crew-berlin/enter-js-utils 0.23.0 → 0.25.1

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.
@@ -19,7 +19,7 @@ export declare type AttendeeJSON = {
19
19
  };
20
20
  payment: {
21
21
  paid: boolean;
22
- provider: 'credit' | 'paypal';
22
+ provider: 'credit' | 'paypal' | 'manual';
23
23
  amount: number;
24
24
  testmode: boolean;
25
25
  } | null;
@@ -42,7 +42,7 @@ export declare class Attendee {
42
42
  };
43
43
  payment: {
44
44
  paid: boolean;
45
- provider: 'credit' | 'paypal';
45
+ provider: 'credit' | 'paypal' | 'manual';
46
46
  amount: number;
47
47
  testmode: boolean;
48
48
  } | null;
@@ -83,7 +83,7 @@ export declare const rawAttendee: import("fefe").Validator<import("fefe").Object
83
83
  }>, import("fefe").LeafError>;
84
84
  payment: import("fefe").Validator<import("fefe").ObjectResult<{
85
85
  paid: import("fefe").Validator<boolean, import("fefe").LeafError>;
86
- provider: import("fefe").Validator<"credit" | "paypal", import("fefe").LeafError>;
86
+ provider: import("fefe").Validator<"credit" | "paypal" | "manual", import("fefe").LeafError>;
87
87
  amount: import("fefe").Validator<number, import("fefe").LeafError>;
88
88
  testmode: import("fefe").Validator<boolean, import("fefe").LeafError>;
89
89
  }> | null, import("fefe").FefeError>;
@@ -121,7 +121,7 @@ export const rawAttendee = object({
121
121
  })),
122
122
  payment: defaultTo(maybe(object({
123
123
  paid: boolean(),
124
- provider: enumerate('credit', 'paypal'),
124
+ provider: enumerate('credit', 'paypal', 'manual'),
125
125
  amount: number({
126
126
  integer: true
127
127
  }),
@@ -0,0 +1,7 @@
1
+ import { FunctionComponent } from 'react';
2
+ declare type Props = {
3
+ color?: string;
4
+ rotateDeg: number;
5
+ };
6
+ export declare const Caret: FunctionComponent<Props>;
7
+ export {};
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { colors } from '../../lib/theme';
3
+ export const Caret = ({
4
+ color = colors.enterDarkGrey,
5
+ rotateDeg = 0
6
+ }) => {
7
+ return /*#__PURE__*/React.createElement("svg", {
8
+ xmlns: "http://www.w3.org/2000/svg",
9
+ width: "100%",
10
+ height: "auto",
11
+ viewBox: "0 0 16 16",
12
+ transform: `rotate(${rotateDeg})`,
13
+ fill: color
14
+ }, /*#__PURE__*/React.createElement("path", {
15
+ color: color,
16
+ fillRule: "evenodd",
17
+ transform: "translate(0,0)",
18
+ d: "M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"
19
+ }));
20
+ };
@@ -0,0 +1,15 @@
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
+ }>>;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { Caret } from './caret';
3
+ export default {
4
+ title: 'Icons/Caret',
5
+ component: Caret
6
+ };
7
+
8
+ const Template = args => /*#__PURE__*/React.createElement(Caret, args);
9
+
10
+ export const Basic = Template.bind({});
11
+ Basic.args = {};
12
+ export const White = Template.bind({});
13
+ White.parameters = {
14
+ backgrounds: {
15
+ default: 'dark'
16
+ }
17
+ };
18
+ White.args = {
19
+ color: '#fff'
20
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev-crew-berlin/enter-js-utils",
3
- "version": "0.23.0",
3
+ "version": "0.25.1",
4
4
  "description": "utils such as vaildation and other helpers to work with data from the enter app",
5
5
  "files": [
6
6
  "dist",