@mrshmllw/smores-react 2.10.0 → 2.11.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 (72) hide show
  1. package/dist/Accordion/Accordion.d.ts +1 -1
  2. package/dist/ActionDropdown/ActionDropdown.d.ts +1 -1
  3. package/dist/ActionDropdown/List.d.ts +2 -2
  4. package/dist/Box/Box.d.ts +1 -1
  5. package/dist/Button/Button.d.ts +2 -2
  6. package/dist/Button/LegacyButton.d.ts +1 -1
  7. package/dist/Card/Card.d.ts +1 -1
  8. package/dist/CheckBox/CheckBox.d.ts +1 -1
  9. package/dist/CheckBoxGroup/CheckBoxGroup.d.ts +2 -2
  10. package/dist/Chip/Chip.d.ts +2 -2
  11. package/dist/ConfirmationRadioButtons/Confirmation.d.ts +1 -1
  12. package/dist/ConfirmationRadioButtons/RadioButtonStyled.d.ts +1 -1
  13. package/dist/Datepicker/Datepicker.d.ts +1 -1
  14. package/dist/Datepicker/DatesList.d.ts +1 -1
  15. package/dist/Divider/Divider.d.ts +1 -1
  16. package/dist/Dropdown/Dropdown.d.ts +3 -3
  17. package/dist/Emoji/Emoji.d.ts +1 -1
  18. package/dist/Icon/Container.js +9 -0
  19. package/dist/Icon/Container.js.map +1 -1
  20. package/dist/Icon/Icon.d.ts +1 -1
  21. package/dist/Icon/Icon.js +10 -0
  22. package/dist/Icon/Icon.js.map +1 -1
  23. package/dist/IconWrapper/IconWrapper.d.ts +1 -1
  24. package/dist/LabelledText/LabelledText.d.ts +1 -1
  25. package/dist/Link/Link.d.ts +2 -2
  26. package/dist/Loader/Loader.d.ts +1 -1
  27. package/dist/Message/Message.d.ts +2 -2
  28. package/dist/Modal/Modal.d.ts +1 -1
  29. package/dist/NumberInput/NumberInput.d.ts +2 -2
  30. package/dist/Pagination/Pagination.d.ts +1 -1
  31. package/dist/RadioButton/RadioButton.d.ts +1 -1
  32. package/dist/RadioGroup/RadioElement.d.ts +1 -1
  33. package/dist/RadioGroup/RadioGroup.d.ts +1 -1
  34. package/dist/RadioGroup/RadioItem.d.ts +1 -1
  35. package/dist/RadioGroup/types.d.ts +2 -2
  36. package/dist/Row/Row.d.ts +1 -1
  37. package/dist/SearchInput/SearchInput.d.ts +1 -1
  38. package/dist/SearchInput/SearchOptions.d.ts +2 -2
  39. package/dist/SupportMessage/SupportMessage.d.ts +2 -2
  40. package/dist/Tag/Tag.d.ts +3 -3
  41. package/dist/Text/Text.d.ts +4 -4
  42. package/dist/TextInput/TextInput.d.ts +2 -2
  43. package/dist/Textarea/Textarea.d.ts +3 -3
  44. package/dist/Toggle/Toggle.d.ts +1 -1
  45. package/dist/fields/Fieldset/Fieldset.d.ts +1 -1
  46. package/dist/theme.d.ts +1 -1
  47. package/dist/utils/deprecated.d.ts +1 -1
  48. package/dist/utils/flex.d.ts +1 -1
  49. package/dist/utils/measure.d.ts +1 -1
  50. package/dist/utils/space.d.ts +2 -2
  51. package/package.json +1 -1
  52. package/dist/Field/Field.d.ts +0 -13
  53. package/dist/Field/Field.js +0 -72
  54. package/dist/Field/Field.js.map +0 -1
  55. package/dist/Field/index.d.ts +0 -3
  56. package/dist/Field/index.js +0 -2
  57. package/dist/Field/index.js.map +0 -1
  58. package/dist/Field/types/commonFieldTypes.d.ts +0 -12
  59. package/dist/Field/types/commonFieldTypes.js +0 -2
  60. package/dist/Field/types/commonFieldTypes.js.map +0 -1
  61. package/dist/Fieldset/Fieldset.d.ts +0 -9
  62. package/dist/Fieldset/Fieldset.js +0 -22
  63. package/dist/Fieldset/Fieldset.js.map +0 -1
  64. package/dist/Fieldset/index.d.ts +0 -1
  65. package/dist/Fieldset/index.js +0 -2
  66. package/dist/Fieldset/index.js.map +0 -1
  67. package/dist/SearchInput/__tests__/SearchInput.d.ts +0 -1
  68. package/dist/SearchInput/__tests__/SearchInput.js +0 -32
  69. package/dist/SearchInput/__tests__/SearchInput.js.map +0 -1
  70. package/dist/Textarea/__tests__/Textarea.d.ts +0 -1
  71. package/dist/Textarea/__tests__/Textarea.js +0 -17
  72. package/dist/Textarea/__tests__/Textarea.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { FC } from 'react';
2
2
  import { MarginProps } from '../utils/space';
3
- declare type Props = {
3
+ type Props = {
4
4
  /** unique ID */
5
5
  id?: string;
6
6
  /** checked flag */
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { MarginProps } from '../../utils/space';
3
3
  import { CommonFieldProps } from '../commonFieldTypes';
4
- export declare type FieldsetProps = CommonFieldProps & MarginProps;
4
+ export type FieldsetProps = CommonFieldProps & MarginProps;
5
5
  export declare const Fieldset: ({ children, renderAsTitle, id, ...fieldProps }: FieldsetProps) => JSX.Element;
package/dist/theme.d.ts CHANGED
@@ -26,7 +26,7 @@ declare const colors: {
26
26
  rac: string;
27
27
  hometree: string;
28
28
  };
29
- export declare type Color = keyof typeof colors;
29
+ export type Color = keyof typeof colors;
30
30
  export declare const theme: {
31
31
  colors: {
32
32
  primary: string;
@@ -1,5 +1,5 @@
1
1
  export declare const isLocal: boolean;
2
- declare type UseDeprecatedWarningParams = {
2
+ type UseDeprecatedWarningParams = {
3
3
  enabled?: boolean;
4
4
  title: string;
5
5
  message: string;
@@ -1,4 +1,4 @@
1
- declare type FlexFN = (arg: FlexProps) => string;
1
+ type FlexFN = (arg: FlexProps) => string;
2
2
  export interface FlexProps {
3
3
  direction?: 'column' | 'column-reverse' | 'row' | 'row-reverse';
4
4
  wrap?: 'nowrap' | 'wrap' | 'wrap-reverse';
@@ -1,4 +1,4 @@
1
- declare type MeasureFN = (arg: MeasureProps) => string;
1
+ type MeasureFN = (arg: MeasureProps) => string;
2
2
  export interface MeasureProps {
3
3
  width?: string;
4
4
  maxWidth?: string;
@@ -1,5 +1,5 @@
1
- declare type Spacing = '8px' | '12px' | '16px' | '24px' | '32px' | '48px' | '64px';
2
- declare type SpacingProp = '0' | Spacing | {
1
+ type Spacing = '8px' | '12px' | '16px' | '24px' | '32px' | '48px' | '64px';
2
+ type SpacingProp = '0' | Spacing | {
3
3
  custom: number | string;
4
4
  };
5
5
  export interface MarginProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrshmllw/smores-react",
3
- "version": "2.10.0",
3
+ "version": "2.11.0",
4
4
  "main": "./dist/index.js",
5
5
  "description": "Collection of React components used by Marshmallow Technology",
6
6
  "keywords": [
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { CommonFieldTypes } from './types/commonFieldTypes';
3
- interface FieldProps extends CommonFieldTypes {
4
- children: React.ReactElement;
5
- showCaret?: boolean;
6
- value: string;
7
- trailingIcon?: string;
8
- dropdownKey?: string;
9
- fullHeight?: boolean;
10
- assistiveText?: string;
11
- }
12
- export declare const Field: ({ children, renderAsTitle, className, error, id, label, outlined, value, trailingIcon, errorMsg, dropdownKey, required, showCaret, fullHeight, assistiveText, ...marginProps }: FieldProps) => JSX.Element;
13
- export {};
@@ -1,72 +0,0 @@
1
- var __rest = (this && this.__rest) || function (s, e) {
2
- var t = {};
3
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
- t[p] = s[p];
5
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
- t[p[i]] = s[p[i]];
9
- }
10
- return t;
11
- };
12
- import React from 'react';
13
- import styled from 'styled-components';
14
- import { darken } from 'polished';
15
- import { Icon } from '../Icon';
16
- import { Text } from '../Text';
17
- import { Box } from '../Box';
18
- import { theme } from '../theme';
19
- export const Field = (_a) => {
20
- var { children, renderAsTitle, className = '', error, id, label, outlined = false, value, trailingIcon, errorMsg, dropdownKey, required, showCaret, fullHeight = false, assistiveText } = _a, marginProps = __rest(_a, ["children", "renderAsTitle", "className", "error", "id", "label", "outlined", "value", "trailingIcon", "errorMsg", "dropdownKey", "required", "showCaret", "fullHeight", "assistiveText"]);
21
- return (React.createElement(Container, Object.assign({ className: className }, marginProps),
22
- label && (React.createElement(React.Fragment, null, renderAsTitle ? (React.createElement(Box, { mb: "16px" },
23
- React.createElement(Text, { tag: "label", typo: "heading-small", htmlFor: id, mb: assistiveText ? { custom: 4 } : undefined }, label),
24
- assistiveText && (React.createElement(Text, { tag: "p", color: "subtext" }, assistiveText)))) : (React.createElement(Box, { mb: { custom: outlined ? 4 : 0 } },
25
- React.createElement(Text, { tag: "label", typo: "label", color: "subtext", htmlFor: id },
26
- label,
27
- required && (React.createElement(Text, { tag: "span", typo: "body-small", color: "error" }, "*"))))))),
28
- React.createElement(Content, { fullHeight: fullHeight, value: value, outlined: outlined, error: error, key: dropdownKey !== null && dropdownKey !== void 0 ? dropdownKey : null },
29
- children,
30
- showCaret && (React.createElement(Caret, { outlined: outlined },
31
- React.createElement(Icon, { render: "caret", color: "subtext", size: 24 })))),
32
- trailingIcon && React.createElement(Icon, { render: trailingIcon, color: "subtext" }),
33
- error && (React.createElement(Text, { tag: "span", typo: "caption", color: "error", mt: "8px" }, errorMsg))));
34
- };
35
- const Container = styled(Box) `
36
- display: flex;
37
- flex-direction: column;
38
- position: relative;
39
- width: 100%;
40
- `;
41
- const Content = styled.div `
42
- position: relative;
43
- border-color: ${({ error }) => theme.colors[`${error ? 'error' : 'outline'}`]};
44
- background-color: ${({ outlined }) => !outlined ? 'transparent' : theme.colors['white']};
45
- height: ${({ fullHeight }) => (fullHeight ? `100%` : `32px`)};
46
-
47
- &:hover,
48
- &:focus-within {
49
- border-color: ${({ error }) => error ? theme.colors.error : darken(0.1, theme.colors.outline)};
50
- }
51
-
52
- ${({ outlined }) => outlined &&
53
- `
54
- border-radius: 8px;
55
- height: auto;
56
- `}
57
-
58
- ${({ value }) => value &&
59
- value != '' &&
60
- `
61
- border-color: ${theme.colors.outline};
62
- `}
63
- `;
64
- const Caret = styled.div `
65
- position: absolute;
66
- top: 50%;
67
- z-index: 1;
68
- right: ${({ outlined }) => (outlined ? '15px' : '0')};
69
- pointer-events: none;
70
- transform: translateY(-50%);
71
- `;
72
- //# sourceMappingURL=Field.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Field.js","sourceRoot":"","sources":["../../src/Field/Field.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,MAAM,MAAM,mBAAmB,CAAA;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAC5B,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAahC,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,EAiBT,EAAE,EAAE;QAjBK,EACpB,QAAQ,EACR,aAAa,EACb,SAAS,GAAG,EAAE,EACd,KAAK,EACL,EAAE,EACF,KAAK,EACL,QAAQ,GAAG,KAAK,EAChB,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,SAAS,EACT,UAAU,GAAG,KAAK,EAClB,aAAa,OAEF,EADR,WAAW,cAhBM,0LAiBrB,CADe;IAEd,OAAO,CACL,oBAAC,SAAS,kBAAC,SAAS,EAAE,SAAS,IAAM,WAAW;QAC7C,KAAK,IAAI,CACR,0CACG,aAAa,CAAC,CAAC,CAAC,CACf,oBAAC,GAAG,IAAC,EAAE,EAAC,MAAM;YACZ,oBAAC,IAAI,IACH,GAAG,EAAC,OAAO,EACX,IAAI,EAAC,eAAe,EACpB,OAAO,EAAE,EAAE,EACX,EAAE,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,IAE5C,KAAK,CACD;YAEN,aAAa,IAAI,CAChB,oBAAC,IAAI,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,CAAC,GAAG,CAKxB;;kBAEgB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAC5B,KAAK,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;sBAC5B,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CACnC,CAAC,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;YACzC,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;;;;oBAI1C,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAC5B,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;;;IAGhE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CACjB,QAAQ;IACR;;;KAGC;;IAED,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CACd,KAAK;IACL,KAAK,IAAI,EAAE;IACX;oBACgB,KAAK,CAAC,MAAM,CAAC,OAAO;KACnC;CACJ,CAAA;AAED,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAuB;;;;WAIpC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC;;;CAGrD,CAAA"}
@@ -1,3 +0,0 @@
1
- import { CommonFieldTypes } from './types/commonFieldTypes';
2
- export { Field } from './Field';
3
- export type { CommonFieldTypes };
@@ -1,2 +0,0 @@
1
- export { Field } from './Field';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Field/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA"}
@@ -1,12 +0,0 @@
1
- import { MarginProps } from '../../utils/space';
2
- export interface CommonFieldTypes extends MarginProps {
3
- label?: string;
4
- id?: string;
5
- error?: boolean;
6
- errorMsg?: string;
7
- required?: boolean;
8
- renderAsTitle?: boolean;
9
- className?: string;
10
- outlined?: boolean;
11
- assistiveText?: string;
12
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=commonFieldTypes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"commonFieldTypes.js","sourceRoot":"","sources":["../../../src/Field/types/commonFieldTypes.ts"],"names":[],"mappings":""}
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { MarginProps } from '../utils/space';
3
- declare type FieldSetProps = {
4
- children: React.ReactChild;
5
- label: string;
6
- outlined?: boolean;
7
- } & MarginProps;
8
- export declare const Fieldset: ({ children, label, outlined, ...marginProps }: FieldSetProps) => JSX.Element;
9
- export {};
@@ -1,22 +0,0 @@
1
- var __rest = (this && this.__rest) || function (s, e) {
2
- var t = {};
3
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
- t[p] = s[p];
5
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
- t[p[i]] = s[p[i]];
9
- }
10
- return t;
11
- };
12
- import React from 'react';
13
- import { Box } from '../Box';
14
- import { Text } from '../Text';
15
- export const Fieldset = (_a) => {
16
- var { children, label, outlined = false } = _a, marginProps = __rest(_a, ["children", "label", "outlined"]);
17
- return (React.createElement(Box, Object.assign({ as: "fieldset" }, marginProps),
18
- React.createElement(Box, { mb: { custom: outlined ? 4 : 0 } },
19
- React.createElement(Text, { tag: "legend", typo: "heading-small", mb: "16px" }, label)),
20
- children));
21
- };
22
- //# sourceMappingURL=Fieldset.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Fieldset.js","sourceRoot":"","sources":["../../src/Fieldset/Fieldset.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAC5B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAQ9B,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EAKT,EAAE,EAAE;QALK,EACvB,QAAQ,EACR,KAAK,EACL,QAAQ,GAAG,KAAK,OAEF,EADX,WAAW,cAJS,iCAKxB,CADe;IAEd,OAAO,CACL,oBAAC,GAAG,kBAAC,EAAE,EAAC,UAAU,IAAK,WAAW;QAChC,oBAAC,GAAG,IAAC,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;YACnC,oBAAC,IAAI,IAAC,GAAG,EAAC,QAAQ,EAAC,IAAI,EAAC,eAAe,EAAC,EAAE,EAAC,MAAM,IAC9C,KAAK,CACD,CACH;QAEL,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- export { Fieldset } from './Fieldset';
@@ -1,2 +0,0 @@
1
- export { Fieldset } from './Fieldset';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Fieldset/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,32 +0,0 @@
1
- import React from 'react';
2
- import { render } from '@testing-library/react';
3
- import 'jest-styled-components';
4
- import { SearchInput } from '../SearchInput';
5
- const list = [
6
- {
7
- label: 'Monday',
8
- },
9
- {
10
- label: 'Tuesday',
11
- },
12
- {
13
- label: 'Wednesday',
14
- },
15
- {
16
- label: 'Thursday',
17
- },
18
- {
19
- label: 'Friday',
20
- },
21
- {
22
- label: 'Saturday',
23
- },
24
- {
25
- label: 'Sunday',
26
- },
27
- ];
28
- test('renders', () => {
29
- const { container } = render(React.createElement(SearchInput, { id: "days", label: "Days", searchList: list, onFound: () => { } }));
30
- expect(container.firstChild).toMatchSnapshot();
31
- });
32
- //# sourceMappingURL=SearchInput.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SearchInput.js","sourceRoot":"","sources":["../../../src/SearchInput/__tests__/SearchInput.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,MAAM,EAAC,MAAM,wBAAwB,CAAC;AAC9C,OAAO,wBAAwB,CAAC;AAEhC,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAE3C,MAAM,IAAI,GAAG;IACX;QACE,KAAK,EAAE,QAAQ;KAChB;IACD;QACE,KAAK,EAAE,SAAS;KACjB;IACD;QACE,KAAK,EAAE,WAAW;KACnB;IACD;QACE,KAAK,EAAE,UAAU;KAClB;IACD;QACE,KAAK,EAAE,QAAQ;KAChB;IACD;QACE,KAAK,EAAE,UAAU;KAClB;IACD;QACE,KAAK,EAAE,QAAQ;KAChB;CACF,CAAC;AAEF,IAAI,CAAC,SAAS,EAAE,GAAG,EAAE;IACnB,MAAM,EAAC,SAAS,EAAC,GAAG,MAAM,CACxB,oBAAC,WAAW,IAAC,EAAE,EAAC,MAAM,EAAC,KAAK,EAAC,MAAM,EAAC,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC,GAAI,CAC5E,CAAC;IACF,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,eAAe,EAAE,CAAC;AACjD,CAAC,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
- import { render } from '@testing-library/react';
3
- import 'jest-styled-components';
4
- import { Textarea } from '../Textarea';
5
- test('renders', () => {
6
- const { container } = render(React.createElement(Textarea, { id: "textarea_id", label: "Textarea label", value: "", onChange: str => { }, resize: "both", disabled: false, placeholder: "Placeholder text!", className: "Textarea" }));
7
- expect(container.firstChild).toMatchSnapshot();
8
- });
9
- test('disabled', () => {
10
- const { container } = render(React.createElement(Textarea, { id: "textarea_id", label: "Textarea label", value: "", onChange: str => { }, resize: "both", disabled: true, placeholder: "Placeholder text!" }));
11
- expect(container.firstChild).toMatchSnapshot();
12
- });
13
- test('renders with error', () => {
14
- const { container } = render(React.createElement(Textarea, { id: "textarea_id", label: "Textarea label", value: "", onChange: str => { }, resize: "both", disabled: false, error: true, errorMsg: "Something really quite terrible has gone wrong here!", placeholder: "Placeholder text!" }));
15
- expect(container.firstChild).toMatchSnapshot();
16
- });
17
- //# sourceMappingURL=Textarea.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Textarea.js","sourceRoot":"","sources":["../../../src/Textarea/__tests__/Textarea.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,MAAM,EAAC,MAAM,wBAAwB,CAAC;AAC9C,OAAO,wBAAwB,CAAC;AAEhC,OAAO,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAC;AAErC,IAAI,CAAC,SAAS,EAAE,GAAG,EAAE;IACnB,MAAM,EAAC,SAAS,EAAC,GAAG,MAAM,CACxB,oBAAC,QAAQ,IACP,EAAE,EAAC,aAAa,EAChB,KAAK,EAAC,gBAAgB,EACtB,KAAK,EAAC,EAAE,EACR,QAAQ,EAAE,GAAG,CAAC,EAAE,GAAE,CAAC,EACnB,MAAM,EAAC,MAAM,EACb,QAAQ,EAAE,KAAK,EACf,WAAW,EAAC,mBAAmB,EAC/B,SAAS,EAAC,UAAU,GACpB,CACH,CAAC;IACF,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,eAAe,EAAE,CAAC;AACjD,CAAC,CAAC,C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