@mrshmllw/smores-react 2.1.21 → 2.1.24
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/ActionDropdown/ActionDropdown.d.ts +2 -3
- package/dist/ActionDropdown/ActionDropdown.js.map +1 -1
- package/dist/ActionDropdown/ActionDropdown.stories.d.ts +1 -8
- package/dist/ActionDropdown/Container.js +2 -4
- package/dist/ActionDropdown/Container.js.map +1 -1
- package/dist/ActionDropdown/List.d.ts +3 -2
- package/dist/ActionDropdown/List.js.map +1 -1
- package/dist/Button/Button.d.ts +3 -2
- package/dist/Button/Button.js +1 -1
- package/dist/Button/Button.js.map +1 -1
- package/dist/Button/LegacyButton.d.ts +2 -1
- package/dist/Button/LegacyButton.js +4 -4
- package/dist/Button/LegacyButton.js.map +1 -1
- package/dist/CheckBox/CheckBox.js +1 -1
- package/dist/CheckBox/CheckBox.js.map +1 -1
- package/dist/ConfirmationRadioButtons/Confirmation.js +1 -1
- package/dist/ConfirmationRadioButtons/Confirmation.js.map +1 -1
- package/dist/Datepicker/Datepicker.js +29 -56
- package/dist/Datepicker/Datepicker.js.map +1 -1
- package/dist/Datepicker/DatesList.d.ts +1 -0
- package/dist/Datepicker/DatesList.js +13 -1
- package/dist/Datepicker/DatesList.js.map +1 -1
- package/dist/Datepicker/types.d.ts +0 -4
- package/dist/Divider/Divider.d.ts +2 -1
- package/dist/Divider/Divider.js +9 -4
- package/dist/Divider/Divider.js.map +1 -1
- package/dist/Dropdown/Dropdown.d.ts +10 -2
- package/dist/Dropdown/Dropdown.js +3 -3
- package/dist/Dropdown/Dropdown.js.map +1 -1
- package/dist/Dropdown/Dropdown.stories.d.ts +41 -2
- package/dist/Icon/Icon.d.ts +2 -1
- package/dist/Icon/Icon.js.map +1 -1
- package/dist/Loader/Loader.d.ts +2 -1
- package/dist/Loader/Loader.js.map +1 -1
- package/dist/Pagination/Pagination.js +1 -2
- package/dist/Pagination/Pagination.js.map +1 -1
- package/dist/Row/Row.d.ts +3 -2
- package/dist/Row/Row.js.map +1 -1
- package/dist/SearchInput/SearchInput.js +2 -0
- package/dist/SearchInput/SearchInput.js.map +1 -1
- package/dist/Tag/Tag.d.ts +4 -3
- package/dist/Tag/Tag.js.map +1 -1
- package/dist/Text/Text.d.ts +3 -2
- package/dist/Text/Text.js.map +1 -1
- package/dist/Text/Text.stories.d.ts +1 -0
- package/dist/Text/Text.stories.js +35 -0
- package/dist/Text/Text.stories.js.map +1 -1
- package/dist/TextInput/TextInput.d.ts +10 -2
- package/dist/TextInput/TextInput.js +15 -13
- package/dist/TextInput/TextInput.js.map +1 -1
- package/dist/TextInput/TextInput.stories.d.ts +37 -2
- package/dist/Textarea/Textarea.d.ts +2 -4
- package/dist/Textarea/Textarea.js +14 -12
- package/dist/Textarea/Textarea.js.map +1 -1
- package/dist/Textarea/Textarea.stories.d.ts +1 -1
- package/dist/colors.stories.js.map +1 -1
- package/dist/theme.d.ts +30 -0
- package/dist/theme.js.map +1 -1
- package/dist/utils/date.d.ts +1 -0
- package/dist/utils/date.js +9 -0
- package/dist/utils/date.js.map +1 -0
- package/package.json +4 -5
@@ -1,10 +1,44 @@
|
|
1
1
|
import React from 'react';
|
2
|
+
import styled from 'styled-components';
|
2
3
|
import { Text } from './Text';
|
4
|
+
import { Box } from '../Box';
|
3
5
|
export default {
|
4
6
|
title: 'Text',
|
5
7
|
component: Text,
|
6
8
|
};
|
9
|
+
const typos = [
|
10
|
+
'header-large',
|
11
|
+
'header-medium',
|
12
|
+
'header-small',
|
13
|
+
'desc-heavy',
|
14
|
+
'desc-medium',
|
15
|
+
'desc-light',
|
16
|
+
'desc-small',
|
17
|
+
'base',
|
18
|
+
'base-small',
|
19
|
+
'base-xsmall',
|
20
|
+
'label',
|
21
|
+
'label-large',
|
22
|
+
];
|
7
23
|
const Template = (props) => (React.createElement(Text, Object.assign({}, props), "The quick brown fox jumps over the lazy dog"));
|
24
|
+
const TypoCollection = ({ typos }) => {
|
25
|
+
return (React.createElement(Box, null,
|
26
|
+
React.createElement(Grid, null,
|
27
|
+
React.createElement(Text, { tag: "p", typo: "base" }, "Name"),
|
28
|
+
React.createElement(Text, { tag: "p", typo: "base" }, "Single Line"),
|
29
|
+
React.createElement(Text, { tag: "p", typo: "base" }, "Paragraph")),
|
30
|
+
typos.map((typo) => (React.createElement(Grid, { key: typo },
|
31
|
+
React.createElement(Text, { tag: "p", typo: "base", color: "subtext" }, typo),
|
32
|
+
React.createElement(Text, { tag: "p", typo: typo, color: "secondary" }, "Lorem ipsum dolor sit amet"),
|
33
|
+
typo !== 'label' && typo !== 'label-large' && (React.createElement(Text, { tag: "p", typo: typo, color: "secondary" }, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla eget scelerisque ante, iaculis sodales lorem.")))))));
|
34
|
+
};
|
35
|
+
const Grid = styled(Box) `
|
36
|
+
display: grid;
|
37
|
+
grid-template-columns: 0.4fr 1.2fr 1fr;
|
38
|
+
margin-bottom: 24px;
|
39
|
+
gap: 10px;
|
40
|
+
`;
|
41
|
+
const TypographyTemplate = () => React.createElement(TypoCollection, { typos: typos });
|
8
42
|
export const Default = Template.bind({});
|
9
43
|
Default.args = {
|
10
44
|
tag: 'p',
|
@@ -20,4 +54,5 @@ WithTitle.args = {
|
|
20
54
|
tag: 'p',
|
21
55
|
title: 'a11y title tooltip',
|
22
56
|
};
|
57
|
+
export const Collection = TypographyTemplate.bind({});
|
23
58
|
//# sourceMappingURL=Text.stories.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Text.stories.js","sourceRoot":"","sources":["../../src/Text/Text.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,IAAI,EAAa,MAAM,QAAQ,CAAA;
|
1
|
+
{"version":3,"file":"Text.stories.js","sourceRoot":"","sources":["../../src/Text/Text.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,O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AE,IAAI,EAAE,KAAK,EAAC,WAAW,mHAGpC,CACR,CACI,CACR,CAAC,CACE,CACP,CAAA;AACH,CAAC,CAAA;AAED,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;;;;;CAKvB,CAAA;AAED,MAAM,kBAAkB,GAAG,GAAG,EAAE,CAAC,oBAAC,cAAc,IAAC,KAAK,EAAE,KAAK,GAAI,CAAA;AAEjE,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAExC,OAAO,CAAC,IAAI,GAAG;IACb,GAAG,EAAE,GAAG;CACT,CAAA;AAED,MAAM,CAAC,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAEtC,KAAK,CAAC,IAAI,GAAG;IACX,GAAG,EAAE,OAAO;IACZ,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,WAAW;CACnB,CAAA;AAED,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAE1C,SAAS,CAAC,IAAI,GAAG;IACf,GAAG,EAAE,GAAG;IACR,KAAK,EAAE,oBAAoB;CAC5B,CAAA;AAED,MAAM,CAAC,MAAM,UAAU,GAAG,kBAAkB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { FormEvent,
|
1
|
+
import React, { FormEvent, RefObject } from 'react';
|
2
2
|
declare type DefaultProps = {
|
3
3
|
/** ID, usually used for tests */
|
4
4
|
id: string;
|
@@ -40,5 +40,13 @@ declare type TruncateProps = {
|
|
40
40
|
onInputChange: (e: FormEvent<HTMLInputElement>) => void;
|
41
41
|
};
|
42
42
|
export declare type TextInputProps = DefaultProps & TruncateProps;
|
43
|
-
export declare const TextInput:
|
43
|
+
export declare const TextInput: React.ForwardRefExoticComponent<(Pick<DefaultProps & {
|
44
|
+
/** on change is required and on input optional */
|
45
|
+
onChange: (e: string) => void;
|
46
|
+
onInputChange?: ((e: FormEvent<HTMLInputElement>) => void) | undefined;
|
47
|
+
}, "type" | "error" | "id" | "name" | "value" | "label" | "className" | "disabled" | "placeholder" | "onBlur" | "onChange" | "outlined" | "errorMsg" | "onInputChange" | "trailingIcon"> | Pick<DefaultProps & {
|
48
|
+
/** on input is required and on change optional */
|
49
|
+
onChange?: ((e: string) => void) | undefined;
|
50
|
+
onInputChange: (e: FormEvent<HTMLInputElement>) => void;
|
51
|
+
}, "type" | "error" | "id" | "name" | "value" | "label" | "className" | "disabled" | "placeholder" | "onBlur" | "onChange" | "outlined" | "errorMsg" | "onInputChange" | "trailingIcon">) & React.RefAttributes<HTMLInputElement>>;
|
44
52
|
export {};
|
@@ -1,22 +1,24 @@
|
|
1
|
-
import React from 'react';
|
1
|
+
import React, { forwardRef } from 'react';
|
2
2
|
import styled from 'styled-components';
|
3
3
|
import { darken } from 'polished';
|
4
4
|
import { Box } from '../Box';
|
5
5
|
import { Text } from '../Text';
|
6
6
|
import { Icon } from '../Icon';
|
7
7
|
import { theme } from '../theme';
|
8
|
-
export const TextInput = ({ id, className = '', type = 'text', placeholder, label, name, value, outlined = false, error = false, errorMsg, trailingIcon,
|
9
|
-
|
10
|
-
React.createElement(
|
11
|
-
|
12
|
-
React.createElement(
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
onBlur
|
17
|
-
|
18
|
-
|
19
|
-
|
8
|
+
export const TextInput = forwardRef(function TextInput({ id, className = '', type = 'text', placeholder, label, name, value, outlined = false, error = false, errorMsg, trailingIcon, onBlur, onChange, onInputChange, disabled = false, }, ref) {
|
9
|
+
return (React.createElement(Container, { className: className, hasLabel: !!label, hasError: !!errorMsg },
|
10
|
+
label && (React.createElement(Box, { mb: outlined ? '4px' : '0px' },
|
11
|
+
React.createElement(Text, { tag: "label", color: "subtext", typo: "label", htmlFor: id }, label))),
|
12
|
+
React.createElement(Content, { value: value, outlined: outlined, error: error },
|
13
|
+
React.createElement(Input, { disabled: disabled, type: type, id: id, name: name, ref: ref, placeholder: placeholder, value: value, error: error, outlined: outlined, autoComplete: "off", onChange: (e) => {
|
14
|
+
onChange && onChange(e.currentTarget.value);
|
15
|
+
onInputChange && onInputChange(e);
|
16
|
+
}, onBlur: (e) => {
|
17
|
+
onBlur && onBlur(e);
|
18
|
+
} }),
|
19
|
+
trailingIcon && React.createElement(Icon, { render: trailingIcon, color: "subtext" })),
|
20
|
+
error && React.createElement(ErrorBox, null, errorMsg)));
|
21
|
+
});
|
20
22
|
const Container = styled.div `
|
21
23
|
display: flex;
|
22
24
|
flex-direction: column;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TextInput.js","sourceRoot":"","sources":["../../src/TextInput/TextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"TextInput.js","sourceRoot":"","sources":["../../src/TextInput/TextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAwB,UAAU,EAAgB,MAAM,OAAO,CAAA;AAC7E,OAAO,MAAM,MAAM,mBAAmB,CAAA;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAC5B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9B,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAgDhC,MAAM,CAAC,MAAM,SAAS,GAAG,UAAU,CAAC,SAAS,SAAS,CACpD,EACE,EAAE,EACF,SAAS,GAAG,EAAE,EACd,IAAI,GAAG,MAAM,EACb,WAAW,EACX,KAAK,EACL,IAAI,EACJ,KAAK,EACL,QAAQ,GAAG,KAAK,EAChB,KAAK,GAAG,KAAK,EACb,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,QAAQ,EACR,aAAa,EACb,QAAQ,GAAG,KAAK,G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AC;aACvD,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC;aAC1C,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;;;aAGtD,KAAK,CAAC,MAAM,CAAC,OAAO;;CAEhC,CAAA;AAED,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAA;;WAEjB,KAAK,CAAC,MAAM,CAAC,KAAK;;CAE5B,CAAA"}
|
@@ -1,8 +1,43 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { TextInputProps } from './TextInput';
|
3
2
|
declare const _default: {
|
4
3
|
title: string;
|
5
|
-
component: React.
|
4
|
+
component: React.ForwardRefExoticComponent<(Pick<{
|
5
|
+
id: string;
|
6
|
+
className?: string | undefined;
|
7
|
+
ref?: React.RefObject<HTMLInputElement> | undefined;
|
8
|
+
type?: "password" | "time" | "text" | "email" | "date" | undefined;
|
9
|
+
outlined?: boolean | undefined;
|
10
|
+
placeholder: string;
|
11
|
+
label?: string | undefined;
|
12
|
+
name?: string | undefined;
|
13
|
+
value: string;
|
14
|
+
error?: boolean | undefined;
|
15
|
+
errorMsg?: string | undefined;
|
16
|
+
onBlur?: ((e: React.FormEvent<HTMLInputElement>) => void) | undefined;
|
17
|
+
trailingIcon?: string | undefined;
|
18
|
+
disabled?: boolean | undefined;
|
19
|
+
} & {
|
20
|
+
onChange: (e: string) => void;
|
21
|
+
onInputChange?: ((e: React.FormEvent<HTMLInputElement>) => void) | undefined;
|
22
|
+
}, "type" | "error" | "id" | "name" | "value" | "label" | "className" | "disabled" | "placeholder" | "onBlur" | "onChange" | "outlined" | "errorMsg" | "onInputChange" | "trailingIcon"> | Pick<{
|
23
|
+
id: string;
|
24
|
+
className?: string | undefined;
|
25
|
+
ref?: React.RefObject<HTMLInputElement> | undefined;
|
26
|
+
type?: "password" | "time" | "text" | "email" | "date" | undefined;
|
27
|
+
outlined?: boolean | undefined;
|
28
|
+
placeholder: string;
|
29
|
+
label?: string | undefined;
|
30
|
+
name?: string | undefined;
|
31
|
+
value: string;
|
32
|
+
error?: boolean | undefined;
|
33
|
+
errorMsg?: string | undefined;
|
34
|
+
onBlur?: ((e: React.FormEvent<HTMLInputElement>) => void) | undefined;
|
35
|
+
trailingIcon?: string | undefined;
|
36
|
+
disabled?: boolean | undefined;
|
37
|
+
} & {
|
38
|
+
onChange?: ((e: string) => void) | undefined;
|
39
|
+
onInputChange: (e: React.FormEvent<HTMLInputElement>) => void;
|
40
|
+
}, "type" | "error" | "id" | "name" | "value" | "label" | "className" | "disabled" | "placeholder" | "onBlur" | "onChange" | "outlined" | "errorMsg" | "onInputChange" | "trailingIcon">) & React.RefAttributes<HTMLInputElement>>;
|
6
41
|
argTypes: {
|
7
42
|
onChange: {
|
8
43
|
action: string;
|
@@ -1,11 +1,9 @@
|
|
1
|
-
import {
|
1
|
+
import React, { FormEvent } from 'react';
|
2
2
|
declare type BaseProps = {
|
3
3
|
/** ID, usually used for tests */
|
4
4
|
id: string;
|
5
5
|
/** className attribute to apply classses from props */
|
6
6
|
className?: string;
|
7
|
-
/** ref attribute for input */
|
8
|
-
ref?: RefObject<HTMLTextAreaElement>;
|
9
7
|
/** Placeholder */
|
10
8
|
placeholder?: string;
|
11
9
|
/** label displayed above the input */
|
@@ -40,5 +38,5 @@ declare type TruncateProps = {
|
|
40
38
|
onInputChange: (e: FormEvent<HTMLTextAreaElement>) => void;
|
41
39
|
};
|
42
40
|
export declare type TextareaProps = BaseProps & TruncateProps;
|
43
|
-
export declare const Textarea:
|
41
|
+
export declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
44
42
|
export {};
|
@@ -1,20 +1,22 @@
|
|
1
|
-
import React from 'react';
|
1
|
+
import React, { forwardRef } from 'react';
|
2
2
|
import styled from 'styled-components';
|
3
3
|
import { darken } from 'polished';
|
4
4
|
import { Text } from '../Text';
|
5
5
|
import { Box } from '../Box';
|
6
6
|
import { theme } from '../theme';
|
7
|
-
export const Textarea = ({ id, name, label, value, onChange, onInputChange, className, resize = 'none', error = false, errorMsg, placeholder, disabled = false, maxLength, onBlur,
|
8
|
-
|
9
|
-
React.createElement(
|
10
|
-
|
11
|
-
React.createElement(
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
7
|
+
export const Textarea = forwardRef(function Textarea({ id, name, label, value, onChange, onInputChange, className, resize = 'none', error = false, errorMsg, placeholder, disabled = false, maxLength, onBlur, rows = 4, }, ref) {
|
8
|
+
return (React.createElement(Box, { flex: true, direction: "column", className: className },
|
9
|
+
label && (React.createElement(Box, { mb: "4px" },
|
10
|
+
React.createElement(Text, { tag: "label", color: "subtext", typo: "label", htmlFor: id }, label))),
|
11
|
+
React.createElement(Box, { flex: true, direction: "column" },
|
12
|
+
React.createElement(Field, { error: error, id: id, name: name, disabled: disabled, resize: resize, placeholder: placeholder, value: value, onChange: (e) => {
|
13
|
+
onChange && onChange(e.currentTarget.value);
|
14
|
+
onInputChange && onInputChange(e);
|
15
|
+
}, maxLength: maxLength, ref: ref, onBlur: (e) => {
|
16
|
+
onBlur && onBlur(e);
|
17
|
+
}, rows: rows })),
|
18
|
+
error && React.createElement(ErrorBox, null, errorMsg)));
|
19
|
+
});
|
18
20
|
const Field = styled.textarea `
|
19
21
|
font-size: 16px;
|
20
22
|
line-height: 20px;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Textarea.js","sourceRoot":"","sources":["../../src/Textarea/Textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"Textarea.js","sourceRoot":"","sources":["../../src/Textarea/Textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA2B,UAAU,EAAE,MAAM,OAAO,CAAA;AAClE,OAAO,M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AM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAA;;;WAGjB,KAAK,CAAC,MAAM,CAAC,KAAK;CAC5B,CAAA"}
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
2
2
|
import { TextareaProps } from './Textarea';
|
3
3
|
declare const _default: {
|
4
4
|
title: string;
|
5
|
-
component: React.
|
5
|
+
component: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
6
6
|
};
|
7
7
|
export default _default;
|
8
8
|
export declare const Default: any;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"colors.stories.js","sourceRoot":"","sources":["../src/colors.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,
|
1
|
+
{"version":3,"file":"colors.stories.js","sourceRoot":"","sources":["../src/colors.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAS,KAAK,EAAE,MAAM,SAAS,CAAA;AAEtC,MAAM,SAAS,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,CAAU,CAAA;AACrE,MAAM,eAAe,GAAG,CAAC,WAAW,EAAE,aAAa,EAAE,UAAU,CAAU,CAAA;AACzE,MAAM,QAAQ,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,YAAY,CA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GED
@@ -1,3 +1,32 @@
|
|
1
|
+
declare const colors: {
|
2
|
+
primary: string;
|
3
|
+
secondary: string;
|
4
|
+
white: string;
|
5
|
+
black: string;
|
6
|
+
bgPrimary: string;
|
7
|
+
bgSecondary: string;
|
8
|
+
bgCarbon: string;
|
9
|
+
subtext: string;
|
10
|
+
outline: string;
|
11
|
+
background: string;
|
12
|
+
error: string;
|
13
|
+
agentWarning: string;
|
14
|
+
warning: string;
|
15
|
+
success: string;
|
16
|
+
compareTheMarket: string;
|
17
|
+
confused: string;
|
18
|
+
onfido: string;
|
19
|
+
twitter: string;
|
20
|
+
premfina: string;
|
21
|
+
checkout: string;
|
22
|
+
facebook: string;
|
23
|
+
stripe: string;
|
24
|
+
intercom: string;
|
25
|
+
ravelin: string;
|
26
|
+
rac: string;
|
27
|
+
hometree: string;
|
28
|
+
};
|
29
|
+
export declare type Color = keyof typeof colors;
|
1
30
|
export declare const theme: {
|
2
31
|
colors: {
|
3
32
|
primary: string;
|
@@ -36,3 +65,4 @@ export declare const theme: {
|
|
36
65
|
system: string;
|
37
66
|
};
|
38
67
|
};
|
68
|
+
export {};
|
package/dist/theme.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG;IACb,aAAa;IACb,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,SAAS;IACpB,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,SAAS;IAEhB,mBAAmB;IACnB,SAAS,EAAE,SAAS;IACpB,WAAW,EAAE,SAAS;IACtB,QAAQ,EAAE,SAAS;IAEnB,WAAW;IACX,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,UAAU,EAAE,SAAS;IAErB,gBAAgB;IAChB,KAAK,EAAE,SAAS;IAChB,YAAY,EAAE,SAAS;IACvB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAElB,4BA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G;KACV;IACD,MAAM,EACJ,+IAA+I;CAClJ,CAAA;AAED,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,MAAM;IACN,IAAI;CACL,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const convertToUkDate: (date: Date) => Date;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
const ukTimeFormat = new Intl.DateTimeFormat('en-GB', {
|
2
|
+
timeZone: 'Europe/London',
|
3
|
+
});
|
4
|
+
export const convertToUkDate = (date) => {
|
5
|
+
const dateString = ukTimeFormat.format(date);
|
6
|
+
const [day, month, year] = dateString.split('/');
|
7
|
+
return new Date(Number(year), Number(month) - 1, Number(day));
|
8
|
+
};
|
9
|
+
//# sourceMappingURL=date.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"date.js","sourceRoot":"","sources":["../../src/utils/date.ts"],"names":[],"mappings":"AAAA,MAAM,YAAY,GAAG,IAAI,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE;IACpD,QAAQ,EAAE,eAAe;CAC1B,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,IAAU,EAAQ,EAAE;IAClD,MAAM,UAAU,GAAG,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IAC5C,MAAM,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IAEhD,OAAO,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAA;AAC/D,CAAC,CAAA"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@mrshmllw/smores-react",
|
3
|
-
"version": "2.1.
|
3
|
+
"version": "2.1.24",
|
4
4
|
"main": "./dist/index.js",
|
5
5
|
"description": "Collection of React components used by Marshmallow Technology",
|
6
6
|
"keywords": [
|
@@ -43,7 +43,6 @@
|
|
43
43
|
"@types/react": "^17.0.0",
|
44
44
|
"@types/react-dom": "^17.0.9",
|
45
45
|
"@types/styled-components": "^5.1.3",
|
46
|
-
"@types/uuid": "^8.3.0",
|
47
46
|
"@typescript-eslint/eslint-plugin": "^4.3.0",
|
48
47
|
"@typescript-eslint/parser": "^4.3.0",
|
49
48
|
"babel-eslint": "^10.1.0",
|
@@ -54,8 +53,9 @@
|
|
54
53
|
"eslint-plugin-jest": "^26.0.0",
|
55
54
|
"eslint-plugin-react": "^7.29.2",
|
56
55
|
"eslint-plugin-react-hooks": "^4.1.2",
|
57
|
-
"husky": "^
|
56
|
+
"husky": "^8.0.1",
|
58
57
|
"jest": "^28.0.3",
|
58
|
+
"jest-environment-jsdom": "^28.1.0",
|
59
59
|
"jest-styled-components": "^7.0.3",
|
60
60
|
"lint-staged": "^12.0.2",
|
61
61
|
"prettier": "^2.1.2",
|
@@ -67,8 +67,7 @@
|
|
67
67
|
"react": "^16.8.0",
|
68
68
|
"react-dom": "^16.8.0",
|
69
69
|
"styled-components": "^5.2.1",
|
70
|
-
"typescript": "^4.4.2"
|
71
|
-
"uuid": "^8.3.2"
|
70
|
+
"typescript": "^4.4.2"
|
72
71
|
},
|
73
72
|
"repository": {
|
74
73
|
"type": "git",
|