@7shifts/sous-chef 1.4.0 → 1.5.2
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/CHANGELOG.md +35 -2
- package/dist/core/DataTable/types.js.flow +1 -0
- package/dist/core/ResourceTable/types.js.flow +4 -3
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js.flow +28 -18
- package/dist/forms/DatePickerField/DatePickerField.d.ts +23 -0
- package/dist/forms/DatePickerField/DatePickerField.js.flow +35 -0
- package/dist/forms/DatePickerField/index.d.ts +1 -0
- package/dist/forms/DatePickerField/index.js.flow +8 -0
- package/dist/forms/PillSelectField/PillSelectField.d.ts +17 -0
- package/dist/forms/PillSelectField/PillSelectField.js.flow +26 -0
- package/dist/forms/PillSelectField/index.d.ts +1 -0
- package/dist/forms/PillSelectField/index.js.flow +8 -0
- package/dist/forms/WeekPickerField/WeekPickerField.d.ts +25 -0
- package/dist/forms/WeekPickerField/WeekPickerField.js.flow +35 -0
- package/dist/forms/WeekPickerField/index.d.ts +1 -0
- package/dist/forms/WeekPickerField/index.js.flow +8 -0
- package/dist/forms/index.d.ts +2 -1
- package/dist/forms/index.js.flow +5 -3
- package/dist/icons/IconCheck.d.ts +9 -0
- package/dist/icons/IconCheck.js.flow +17 -0
- package/dist/icons/IconUser.flow +17 -0
- package/dist/icons/index.d.ts +2 -1
- package/dist/icons/index.js.flow +2 -0
- package/dist/index.css +77 -4
- package/dist/index.js +208 -110
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +207 -111
- package/dist/index.modern.js.map +1 -1
- package/dist/nophoto~DrLDqLZE.png +0 -0
- package/dist/overlay/Tooltip/Tooltip.d.ts +1 -0
- package/dist/overlay/Tooltip/Tooltip.js.flow +2 -1
- package/dist/profile/LetterProfile/LetterProfile.d.ts +9 -0
- package/dist/profile/LetterProfile/index.d.ts +1 -0
- package/dist/profile/index.d.ts +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,39 @@
|
|
|
1
|
-
## 1.
|
|
1
|
+
## 1.5.2 (November 10th, 2021)
|
|
2
2
|
|
|
3
|
-
###
|
|
3
|
+
### Enhancements
|
|
4
|
+
|
|
5
|
+
- PasswordField: Updated met criteria bullet to IconCheck to be consistent with mobile ([#69](https://github.com/7shifts/sous-chef/pull/69))
|
|
6
|
+
|
|
7
|
+
### New Components
|
|
8
|
+
|
|
9
|
+
- IconCheck: added for now to use in PasswordCriteria. ([#69](https://github.com/7shifts/sous-chef/pull/69))
|
|
10
|
+
|
|
11
|
+
## 1.5.1 (October 20th, 2021)
|
|
12
|
+
|
|
13
|
+
### Bug fixes
|
|
14
|
+
|
|
15
|
+
- DataTable: Exported `DataTableCustomComponent` type ([#67](https://github.com/7shifts/sous-chef/pull/67))
|
|
16
|
+
|
|
17
|
+
## 1.5.0 (October 19th, 2021)
|
|
18
|
+
|
|
19
|
+
### New components
|
|
20
|
+
|
|
21
|
+
- PillSelectField ([#65](https://github.com/7shifts/sous-chef/pull/65))
|
|
22
|
+
|
|
23
|
+
### Bug fixes
|
|
24
|
+
|
|
25
|
+
- Field: Updated to align properly when using FormRow with only one form field with with label ([#66](https://github.com/7shifts/sous-chef/pull/66))
|
|
26
|
+
|
|
27
|
+
## 1.4.1 (October 8th, 2021)
|
|
28
|
+
|
|
29
|
+
### Enhancements
|
|
30
|
+
|
|
31
|
+
- DataTable: Updated flow types ([#62](https://github.com/7shifts/sous-chef/pull/62))
|
|
32
|
+
- Tooltip: Added the prop `onClose` to listen when the overlay closed ([#64](https://github.com/7shifts/sous-chef/pull/64))
|
|
33
|
+
|
|
34
|
+
## 1.4.0 (October 7th, 2021)
|
|
35
|
+
|
|
36
|
+
### Enhancements
|
|
4
37
|
|
|
5
38
|
- Updated SelectField to support disabled options
|
|
6
39
|
|
|
@@ -12,20 +12,21 @@ export type Column = {
|
|
|
12
12
|
size?: number,
|
|
13
13
|
isSortable?: boolean,
|
|
14
14
|
currentSort?: SortDirection,
|
|
15
|
+
isRightAligned?: boolean
|
|
15
16
|
};
|
|
16
17
|
export type SortDirection = 'asc' | 'desc' | null;
|
|
17
18
|
export type Sort = {
|
|
18
19
|
columnName: string,
|
|
19
|
-
direction: SortDirection
|
|
20
|
+
direction: SortDirection
|
|
20
21
|
};
|
|
21
22
|
export type Item<T> = T | (T & { actions?: Action[] });
|
|
22
23
|
export type CustomComponent<T> = {
|
|
23
24
|
item: Item<T>,
|
|
24
25
|
index: number,
|
|
25
26
|
columnSizes?: number[],
|
|
26
|
-
columns?: Column[]
|
|
27
|
+
columns?: Column[]
|
|
27
28
|
};
|
|
28
29
|
export type Action = {
|
|
29
30
|
label: React$Node,
|
|
30
|
-
onAction: () => void
|
|
31
|
+
onAction: () => void
|
|
31
32
|
};
|
package/dist/core/index.d.ts
CHANGED
|
@@ -9,4 +9,4 @@ import DataTableEditableCell from './DataTableEditableCell';
|
|
|
9
9
|
export { ResourceTable, ResourceTableRow, Inline, Stack, DataTable, DataTableRow, DataTableCell, DataTableEditableCell };
|
|
10
10
|
export type { AlignItems, FlexWrap, JustifyContent } from './Flex/types';
|
|
11
11
|
export type { CustomComponent, Column, SortDirection, Sort, Action } from './ResourceTable/types';
|
|
12
|
-
export type { Column as DataTableColumn } from './DataTable/types';
|
|
12
|
+
export type { Column as DataTableColumn, CustomComponent as DataTableCustomComponent } from './DataTable/types';
|
package/dist/core/index.js.flow
CHANGED
|
@@ -5,25 +5,35 @@
|
|
|
5
5
|
* @flow
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import ResourceTable from
|
|
9
|
-
import ResourceTableRow from
|
|
10
|
-
import Inline from
|
|
11
|
-
import Stack from
|
|
12
|
-
import DataTable from
|
|
13
|
-
import DataTableRow from
|
|
14
|
-
import DataTableCell from
|
|
15
|
-
import DataTableEditableCell from
|
|
8
|
+
import ResourceTable from './ResourceTable';
|
|
9
|
+
import ResourceTableRow from './ResourceTableRow';
|
|
10
|
+
import Inline from './Inline';
|
|
11
|
+
import Stack from './Stack';
|
|
12
|
+
import DataTable from './DataTable';
|
|
13
|
+
import DataTableRow from './DataTableRow';
|
|
14
|
+
import DataTableCell from './DataTableCell';
|
|
15
|
+
import DataTableEditableCell from './DataTableEditableCell';
|
|
16
16
|
|
|
17
|
-
declare export {
|
|
18
|
-
|
|
17
|
+
declare export {
|
|
18
|
+
ResourceTable,
|
|
19
|
+
ResourceTableRow,
|
|
20
|
+
Inline,
|
|
21
|
+
Stack,
|
|
22
|
+
DataTable,
|
|
23
|
+
DataTableRow,
|
|
24
|
+
DataTableCell,
|
|
25
|
+
DataTableEditableCell
|
|
26
|
+
};
|
|
27
|
+
export type { AlignItems, FlexWrap, JustifyContent } from './Flex/types';
|
|
19
28
|
export type {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from
|
|
29
|
+
CustomComponent,
|
|
30
|
+
Column,
|
|
31
|
+
SortDirection,
|
|
32
|
+
Sort,
|
|
33
|
+
Action
|
|
34
|
+
} from './ResourceTable/types';
|
|
26
35
|
|
|
27
36
|
export type {
|
|
28
|
-
|
|
29
|
-
|
|
37
|
+
Column as DataTableColumn,
|
|
38
|
+
CustomComponent as DataTableCustomComponent
|
|
39
|
+
} from './DataTable/types';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type Props = {
|
|
3
|
+
name: string;
|
|
4
|
+
/** If not provided it will generate a random id so the label links properly with the text input */
|
|
5
|
+
id?: string;
|
|
6
|
+
value?: Date;
|
|
7
|
+
disabledDays?: (day: Date) => boolean;
|
|
8
|
+
/** Reference this for valid formats: https://date-fns.org/v2.18.0/docs/format */
|
|
9
|
+
format?: string;
|
|
10
|
+
initialMonth?: Date;
|
|
11
|
+
onChange?: (e: Date) => void;
|
|
12
|
+
onBlur?: () => void;
|
|
13
|
+
label?: React.ReactNode;
|
|
14
|
+
caption?: React.ReactNode;
|
|
15
|
+
error?: string;
|
|
16
|
+
placeholder?: string;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
defaultValue?: Date;
|
|
19
|
+
readOnly?: boolean;
|
|
20
|
+
};
|
|
21
|
+
/** DatePickerField form element. */
|
|
22
|
+
declare const DatePickerField: React.FC<Props>;
|
|
23
|
+
export default DatePickerField;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flowtype definitions for DatePickerField
|
|
3
|
+
* Generated by Flowgen from a Typescript Definition
|
|
4
|
+
* Flowgen v1.14.1
|
|
5
|
+
* @flow
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
declare type Props = {
|
|
10
|
+
name: string,
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* If not provided it will generate a random id so the label links properly with the text input
|
|
14
|
+
*/
|
|
15
|
+
id?: string,
|
|
16
|
+
value?: Date,
|
|
17
|
+
disabledDays?: (day: Date) => boolean,
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Reference this for valid formats: https://date-fns.org/v2.18.0/docs/format
|
|
21
|
+
*/
|
|
22
|
+
format?: string,
|
|
23
|
+
initialMonth?: Date,
|
|
24
|
+
onChange?: (e: Date) => void,
|
|
25
|
+
onBlur?: () => void,
|
|
26
|
+
label?: React$Node,
|
|
27
|
+
caption?: React$Node,
|
|
28
|
+
error?: string,
|
|
29
|
+
placeholder?: string,
|
|
30
|
+
disabled?: boolean,
|
|
31
|
+
defaultValue?: Date,
|
|
32
|
+
readOnly?: boolean,
|
|
33
|
+
};
|
|
34
|
+
declare var DatePickerField: (props: Props) => React$Node;
|
|
35
|
+
declare export default typeof DatePickerField;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './DatePickerField';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SelectOption } from '../SelectField/types';
|
|
3
|
+
declare type Props<T> = {
|
|
4
|
+
name: string;
|
|
5
|
+
/** If not provided it will generate a random id so the label links properly with the pill select input */
|
|
6
|
+
id?: string;
|
|
7
|
+
value?: SelectOption<T>[];
|
|
8
|
+
options: SelectOption<T>[];
|
|
9
|
+
onChange?: (e: SelectOption<T>[]) => void;
|
|
10
|
+
label?: React.ReactNode;
|
|
11
|
+
caption?: React.ReactNode;
|
|
12
|
+
error?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
};
|
|
15
|
+
/** PillSelectField form element. */
|
|
16
|
+
declare const PillSelectField: <T extends unknown>({ name, id: inputId, value, options, onChange, label, caption, error, disabled }: Props<T>) => JSX.Element;
|
|
17
|
+
export default PillSelectField;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flowtype definitions for PillSelectField
|
|
3
|
+
* Generated by Flowgen from a Typescript Definition
|
|
4
|
+
* Flowgen v1.14.1
|
|
5
|
+
* @flow
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
import type { SelectOption } from '../SelectField/types';
|
|
10
|
+
declare type Props<T> = {
|
|
11
|
+
name: string,
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* If not provided it will generate a random id so the label links properly with the text input
|
|
15
|
+
*/
|
|
16
|
+
id?: string,
|
|
17
|
+
value?: SelectOption<T>[],
|
|
18
|
+
options: SelectOption<T>[],
|
|
19
|
+
onChange?: (e: SelectOption<T>[]) => void,
|
|
20
|
+
label?: React$Node,
|
|
21
|
+
caption?: React$Node,
|
|
22
|
+
error?: string,
|
|
23
|
+
disabled?: boolean
|
|
24
|
+
};
|
|
25
|
+
declare var PillSelectField: <T>(props: Props<T>) => React$Node;
|
|
26
|
+
declare export default typeof PillSelectField;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './PillSelectField';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WeekStart } from '../../utils/date';
|
|
3
|
+
declare type Props = {
|
|
4
|
+
name: string;
|
|
5
|
+
/** If not provided it will generate a random id so the label links properly with the text input */
|
|
6
|
+
id?: string;
|
|
7
|
+
value?: Date;
|
|
8
|
+
disabledDays?: (day: Date) => boolean;
|
|
9
|
+
/** Reference this for valid formats: https://date-fns.org/v2.18.0/docs/format */
|
|
10
|
+
format?: string;
|
|
11
|
+
initialMonth?: Date;
|
|
12
|
+
onChange?: (e: Date) => void;
|
|
13
|
+
onBlur?: () => void;
|
|
14
|
+
label?: React.ReactNode;
|
|
15
|
+
caption?: React.ReactNode;
|
|
16
|
+
error?: string;
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
defaultValue?: Date;
|
|
20
|
+
readOnly?: boolean;
|
|
21
|
+
weekStart?: WeekStart;
|
|
22
|
+
};
|
|
23
|
+
/** WeekPickerField form element. */
|
|
24
|
+
declare const WeekPickerField: React.FC<Props>;
|
|
25
|
+
export default WeekPickerField;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flowtype definitions for DatePickerField
|
|
3
|
+
* Generated by Flowgen from a Typescript Definition
|
|
4
|
+
* Flowgen v1.14.1
|
|
5
|
+
* @flow
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
declare type Props = {
|
|
10
|
+
name: string,
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* If not provided it will generate a random id so the label links properly with the text input
|
|
14
|
+
*/
|
|
15
|
+
id?: string,
|
|
16
|
+
value?: Date,
|
|
17
|
+
disabledDays?: (day: Date) => boolean,
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Reference this for valid formats: https://date-fns.org/v2.18.0/docs/format
|
|
21
|
+
*/
|
|
22
|
+
format?: string,
|
|
23
|
+
initialMonth?: Date,
|
|
24
|
+
onChange?: (e: Date) => void,
|
|
25
|
+
onBlur?: () => void,
|
|
26
|
+
label?: React$Node,
|
|
27
|
+
caption?: React$Node,
|
|
28
|
+
error?: string,
|
|
29
|
+
placeholder?: string,
|
|
30
|
+
disabled?: boolean,
|
|
31
|
+
defaultValue?: Date,
|
|
32
|
+
readOnly?: boolean,
|
|
33
|
+
};
|
|
34
|
+
declare var WeekPickerField: (props: Props) => React$Node;
|
|
35
|
+
declare export default typeof WeekPickerField;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './WeekPickerField';
|
package/dist/forms/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import FormRow, { SIZE_25_PERCENT, SIZE_33_PERCENT, SIZE_50_PERCENT, SIZE_66_PER
|
|
|
3
3
|
import TextAreaField from './TextAreaField';
|
|
4
4
|
import TextField from './TextField';
|
|
5
5
|
import CheckboxField from './CheckboxField';
|
|
6
|
+
import PillSelectField from './PillSelectField';
|
|
6
7
|
import RadioGroupField from './RadioGroupField';
|
|
7
8
|
import RadioGroupOption from './RadioGroupOption';
|
|
8
9
|
import PasswordField from './PasswordField';
|
|
@@ -11,7 +12,7 @@ import SelectField from './SelectField';
|
|
|
11
12
|
import DateField from './DateField';
|
|
12
13
|
import DateRangeField from './DateRangeField';
|
|
13
14
|
import WeekField from './WeekField';
|
|
14
|
-
export { Form, FormRow, TextAreaField, TextField, CheckboxField, RadioGroupField, RadioGroupOption, PasswordField, MultiSelectField, SelectField, DateField, DateRangeField, WeekField, SIZE_25_PERCENT, SIZE_33_PERCENT, SIZE_50_PERCENT, SIZE_66_PERCENT, SIZE_75_PERCENT };
|
|
15
|
+
export { Form, FormRow, TextAreaField, TextField, CheckboxField, PillSelectField, RadioGroupField, RadioGroupOption, PasswordField, MultiSelectField, SelectField, DateField, DateRangeField, WeekField, SIZE_25_PERCENT, SIZE_33_PERCENT, SIZE_50_PERCENT, SIZE_66_PERCENT, SIZE_75_PERCENT };
|
|
15
16
|
export type { PasswordCriteria } from './PasswordField/types';
|
|
16
17
|
export type { SelectOption, SelectOptions } from './SelectField/types';
|
|
17
18
|
export type { FormikType } from './Form/types';
|
package/dist/forms/index.js.flow
CHANGED
|
@@ -11,11 +11,12 @@ import FormRow, {
|
|
|
11
11
|
SIZE_33_PERCENT,
|
|
12
12
|
SIZE_50_PERCENT,
|
|
13
13
|
SIZE_66_PERCENT,
|
|
14
|
-
SIZE_75_PERCENT
|
|
14
|
+
SIZE_75_PERCENT
|
|
15
15
|
} from './FormRow';
|
|
16
16
|
import TextAreaField from './TextAreaField';
|
|
17
17
|
import TextField from './TextField';
|
|
18
18
|
import CheckboxField from './CheckboxField';
|
|
19
|
+
import PillSelectField from './PillSelectField';
|
|
19
20
|
import RadioGroupField from './RadioGroupField';
|
|
20
21
|
import RadioGroupOption from './RadioGroupOption';
|
|
21
22
|
import PasswordField from './PasswordField';
|
|
@@ -30,6 +31,7 @@ declare export {
|
|
|
30
31
|
TextAreaField,
|
|
31
32
|
TextField,
|
|
32
33
|
CheckboxField,
|
|
34
|
+
PillSelectField,
|
|
33
35
|
RadioGroupField,
|
|
34
36
|
RadioGroupOption,
|
|
35
37
|
PasswordField,
|
|
@@ -42,13 +44,13 @@ declare export {
|
|
|
42
44
|
SIZE_33_PERCENT,
|
|
43
45
|
SIZE_50_PERCENT,
|
|
44
46
|
SIZE_66_PERCENT,
|
|
45
|
-
SIZE_75_PERCENT
|
|
47
|
+
SIZE_75_PERCENT
|
|
46
48
|
};
|
|
47
49
|
export type { PasswordCriteria } from './PasswordField/types';
|
|
48
50
|
export type {
|
|
49
51
|
SelectOption,
|
|
50
52
|
SelectOptions,
|
|
51
53
|
CustomOptionProps,
|
|
52
|
-
SelectedOptionPrefixProps
|
|
54
|
+
SelectedOptionPrefixProps
|
|
53
55
|
} from './SelectField/types';
|
|
54
56
|
export type { FormikType } from './Form/types';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flowtype definitions for Button
|
|
3
|
+
* Generated by Flowgen from a Typescript Definition
|
|
4
|
+
* Flowgen v1.14.1
|
|
5
|
+
* @flow
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
import type { Color } from '../foundation/colors';
|
|
10
|
+
import type { IconSize } from '../types';
|
|
11
|
+
|
|
12
|
+
declare type Props = {
|
|
13
|
+
size?: IconSize,
|
|
14
|
+
color?: Color,
|
|
15
|
+
};
|
|
16
|
+
declare var IconCheck: (props: Props) => React$Node;
|
|
17
|
+
declare export default typeof IconCheck;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flowtype definitions for Button
|
|
3
|
+
* Generated by Flowgen from a Typescript Definition
|
|
4
|
+
* Flowgen v1.14.1
|
|
5
|
+
* @flow
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
import type { Color } from '../foundation/colors';
|
|
10
|
+
import type { IconSize } from '../types';
|
|
11
|
+
|
|
12
|
+
declare type Props = {
|
|
13
|
+
size?: IconSize,
|
|
14
|
+
color?: Color
|
|
15
|
+
};
|
|
16
|
+
declare var IconUser: (props: Props) => React$Node;
|
|
17
|
+
declare export default typeof IconEdit;
|
package/dist/icons/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import IconArrowLeft from './IconArrowLeft';
|
|
|
3
3
|
import IconArrowRight from './IconArrowRight';
|
|
4
4
|
import IconArrowUp from './IconArrowUp';
|
|
5
5
|
import IconCalendar from './IconCalendar';
|
|
6
|
+
import IconCheck from './IconCheck';
|
|
6
7
|
import IconChevronDown from './IconChevronDown';
|
|
7
8
|
import IconChevronUp from './IconChevronUp';
|
|
8
9
|
import IconClose from './IconClose';
|
|
@@ -18,4 +19,4 @@ import IconMore from './IconMore';
|
|
|
18
19
|
import IconRemove from './IconRemove';
|
|
19
20
|
import IconUser from './IconUser';
|
|
20
21
|
import IconUserPlus from './IconUserPlus';
|
|
21
|
-
export { IconArrowDown, IconArrowLeft, IconArrowRight, IconArrowUp, IconCalendar, IconChevronDown, IconChevronUp, IconClose, IconComment, IconDelete, IconEdit, IconEye, IconEyeSlash, IconExclaim, IconLocation, IconMinusCircle, IconMore, IconRemove, IconUser, IconUserPlus };
|
|
22
|
+
export { IconArrowDown, IconArrowLeft, IconArrowRight, IconArrowUp, IconCalendar, IconCheck, IconChevronDown, IconChevronUp, IconClose, IconComment, IconDelete, IconEdit, IconEye, IconEyeSlash, IconExclaim, IconLocation, IconMinusCircle, IconMore, IconRemove, IconUser, IconUserPlus };
|
package/dist/icons/index.js.flow
CHANGED
|
@@ -10,6 +10,7 @@ import IconArrowLeft from './IconArrowLeft';
|
|
|
10
10
|
import IconArrowRight from './IconArrowRight';
|
|
11
11
|
import IconArrowUp from './IconArrowUp';
|
|
12
12
|
import IconCalendar from './IconCalendar';
|
|
13
|
+
import IconCheck from './IconCheck';
|
|
13
14
|
import IconChevronDown from './IconChevronDown';
|
|
14
15
|
import IconChevronUp from './IconChevronUp';
|
|
15
16
|
import IconComment from './IconComment';
|
|
@@ -31,6 +32,7 @@ declare export {
|
|
|
31
32
|
IconArrowRight,
|
|
32
33
|
IconArrowUp,
|
|
33
34
|
IconCalendar,
|
|
35
|
+
IconCheck,
|
|
34
36
|
IconChevronDown,
|
|
35
37
|
IconChevronUp,
|
|
36
38
|
IconComment,
|
package/dist/index.css
CHANGED
|
@@ -765,7 +765,8 @@ Please ask a designer if you have questions about which colours to use.
|
|
|
765
765
|
color: #555;
|
|
766
766
|
font-family: "Proxima Nova", sans-serif;
|
|
767
767
|
font-weight: 600;
|
|
768
|
-
font-size: 14px;
|
|
768
|
+
font-size: 14px;
|
|
769
|
+
min-height: 16px; }
|
|
769
770
|
|
|
770
771
|
/*********************************
|
|
771
772
|
For new colours, see _colors.scss.
|
|
@@ -1071,6 +1072,74 @@ Please ask a designer if you have questions about which colours to use.
|
|
|
1071
1072
|
border: solid #9f9f9f !important;
|
|
1072
1073
|
border-width: 0 2px 2px 0 !important; }
|
|
1073
1074
|
|
|
1075
|
+
/*********************************
|
|
1076
|
+
For new colours, see _colors.scss.
|
|
1077
|
+
**********************************/
|
|
1078
|
+
/* stylelint-disable color-no-hex */
|
|
1079
|
+
/*
|
|
1080
|
+
These are the colour variables to be used around the webapp.
|
|
1081
|
+
The variables are set up to describe the color and number which represents the lightness of the color.
|
|
1082
|
+
The smaller the number the lighter the color. So $eggplant-100 would be light purple and $eggplant-600 would be dark purple.
|
|
1083
|
+
The base colour is the default colour and is numbered with 400. If someone says "use Tangerine" they are referring to the base color.
|
|
1084
|
+
Please ask a designer if you have questions about which colours to use.
|
|
1085
|
+
*/
|
|
1086
|
+
._g6T-p {
|
|
1087
|
+
position: relative; }
|
|
1088
|
+
._g6T-p input {
|
|
1089
|
+
position: absolute;
|
|
1090
|
+
opacity: 0;
|
|
1091
|
+
z-index: 1;
|
|
1092
|
+
width: 100%;
|
|
1093
|
+
height: 100%;
|
|
1094
|
+
right: 0;
|
|
1095
|
+
box-sizing: border-box; }
|
|
1096
|
+
._g6T-p input:hover:not(:disabled) {
|
|
1097
|
+
cursor: pointer; }
|
|
1098
|
+
._1i2AX {
|
|
1099
|
+
display: flex;
|
|
1100
|
+
align-items: center;
|
|
1101
|
+
justify-content: center;
|
|
1102
|
+
background-color: #fff;
|
|
1103
|
+
font-size: 14px;
|
|
1104
|
+
font-weight: 600;
|
|
1105
|
+
padding: 8px;
|
|
1106
|
+
border: 1px solid #e0e0e0;
|
|
1107
|
+
border-radius: 25px;
|
|
1108
|
+
min-height: 38px;
|
|
1109
|
+
min-width: 60px;
|
|
1110
|
+
text-align: center;
|
|
1111
|
+
vertical-align: middle;
|
|
1112
|
+
color: #555;
|
|
1113
|
+
-webkit-user-select: none;
|
|
1114
|
+
-moz-user-select: none;
|
|
1115
|
+
-ms-user-select: none;
|
|
1116
|
+
user-select: none;
|
|
1117
|
+
transition: background-color 0.2s, color 0.2s;
|
|
1118
|
+
text-transform: capitalize;
|
|
1119
|
+
box-sizing: border-box; }
|
|
1120
|
+
input:hover ~ ._1i2AX {
|
|
1121
|
+
background-color: #e0e0e0;
|
|
1122
|
+
border-color: #e0e0e0; }
|
|
1123
|
+
input:checked:hover ~ ._1i2AX {
|
|
1124
|
+
background-color: #e16840;
|
|
1125
|
+
border-color: #e16840; }
|
|
1126
|
+
input:checked ~ ._1i2AX {
|
|
1127
|
+
background-color: #fb7448;
|
|
1128
|
+
border-color: #fb7448;
|
|
1129
|
+
color: #fff; }
|
|
1130
|
+
input:disabled + ._1i2AX {
|
|
1131
|
+
background-color: #f8f8f8;
|
|
1132
|
+
border-color: #f8f8f8;
|
|
1133
|
+
color: #c1c1c1; }
|
|
1134
|
+
input:disabled:checked + ._1i2AX {
|
|
1135
|
+
background-color: #e16840;
|
|
1136
|
+
border-color: #e16840;
|
|
1137
|
+
color: #fff; }
|
|
1138
|
+
input:focus-visible + ._1i2AX {
|
|
1139
|
+
border: 1px solid #6d87dd;
|
|
1140
|
+
box-shadow: 0 0 8px #a7b7ea;
|
|
1141
|
+
outline: none; }
|
|
1142
|
+
|
|
1074
1143
|
/*********************************
|
|
1075
1144
|
For new colours, see _colors.scss.
|
|
1076
1145
|
**********************************/
|
|
@@ -1090,7 +1159,8 @@ Please ask a designer if you have questions about which colours to use.
|
|
|
1090
1159
|
color: #555;
|
|
1091
1160
|
font-family: "Proxima Nova", sans-serif;
|
|
1092
1161
|
font-weight: 600;
|
|
1093
|
-
font-size: 14px;
|
|
1162
|
+
font-size: 14px;
|
|
1163
|
+
min-height: 16px; }
|
|
1094
1164
|
|
|
1095
1165
|
._RXyG_ {
|
|
1096
1166
|
line-height: normal;
|
|
@@ -1100,7 +1170,8 @@ Please ask a designer if you have questions about which colours to use.
|
|
|
1100
1170
|
color: #555;
|
|
1101
1171
|
font-family: "Proxima Nova", sans-serif;
|
|
1102
1172
|
font-weight: 600;
|
|
1103
|
-
font-size: 14px;
|
|
1173
|
+
font-size: 14px;
|
|
1174
|
+
min-height: 16px; }
|
|
1104
1175
|
|
|
1105
1176
|
/*********************************
|
|
1106
1177
|
For new colours, see _colors.scss.
|
|
@@ -2020,7 +2091,8 @@ Please ask a designer if you have questions about which colours to use.
|
|
|
2020
2091
|
color: #555;
|
|
2021
2092
|
font-family: "Proxima Nova", sans-serif;
|
|
2022
2093
|
font-weight: 600;
|
|
2023
|
-
font-size: 14px;
|
|
2094
|
+
font-size: 14px;
|
|
2095
|
+
min-height: 16px; }
|
|
2024
2096
|
|
|
2025
2097
|
/**
|
|
2026
2098
|
This component is built with acessibility in mind.
|
|
@@ -2045,6 +2117,7 @@ Just for future references:
|
|
|
2045
2117
|
font-family: "Proxima Nova", sans-serif;
|
|
2046
2118
|
font-weight: 600;
|
|
2047
2119
|
font-size: 14px;
|
|
2120
|
+
min-height: 16px;
|
|
2048
2121
|
margin-left: 8px; }
|
|
2049
2122
|
|
|
2050
2123
|
._1jEiW {
|