@mrshmllw/smores-react 3.2.1 → 3.3.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.
Files changed (83) hide show
  1. package/README.md +21 -27
  2. package/dist/Banner/BannerItem.js.map +1 -1
  3. package/dist/Datepicker/Datepicker.js.map +1 -1
  4. package/dist/Datepicker/DatesList.js.map +1 -1
  5. package/dist/Dropdown/Collection.js +2 -0
  6. package/dist/Dropdown/Collection.js.map +1 -1
  7. package/dist/Dropdown/Dropdown.js +10 -6
  8. package/dist/Dropdown/Dropdown.js.map +1 -1
  9. package/dist/IconStrict/IconStrict.js.map +1 -1
  10. package/dist/Modal/useBodyScrollLock.js.map +1 -1
  11. package/dist/NumberInput/NumberInput.js.map +1 -1
  12. package/dist/Pagination/Pagination.js.map +1 -1
  13. package/dist/RadioGroup/RadioGroup.js.map +1 -1
  14. package/dist/SearchInput/SearchInput.js.map +1 -1
  15. package/dist/Table/components/RowActions.js.map +1 -1
  16. package/dist/Table/components/TableRow.js.map +1 -1
  17. package/dist/TextInput/Collection.js +2 -0
  18. package/dist/TextInput/Collection.js.map +1 -1
  19. package/dist/Toggle/Toggle.js +3 -3
  20. package/dist/Toggle/Toggle.js.map +1 -1
  21. package/dist/Tooltip/Tooltip.js.map +1 -1
  22. package/dist/fields/components/CommonInput.js +10 -5
  23. package/dist/fields/components/CommonInput.js.map +1 -1
  24. package/dist/hooks/useClickOutside/index.js.map +1 -1
  25. package/dist/theme.js +29 -29
  26. package/dist/theme.js.map +1 -1
  27. package/dist/tokenTest.spec.d.ts +0 -0
  28. package/dist/tokenTest.spec.js +8 -0
  29. package/dist/tokenTest.spec.js.map +1 -0
  30. package/dist/utils/debounce.js.map +1 -1
  31. package/dist/utils/deprecated.js.map +1 -1
  32. package/dist/utils/responsiveProp.js.map +1 -1
  33. package/dist/utils/space.js.map +1 -1
  34. package/dist/utils/useControlledState.js.map +1 -1
  35. package/package.json +8 -3
  36. package/dist/Button/LegacyButton.d.ts +0 -15
  37. package/dist/Button/LegacyButton.js +0 -50
  38. package/dist/Button/LegacyButton.js.map +0 -1
  39. package/dist/ConfirmationRadioButtons/Confirmation.d.ts +0 -17
  40. package/dist/ConfirmationRadioButtons/Confirmation.js +0 -100
  41. package/dist/ConfirmationRadioButtons/Confirmation.js.map +0 -1
  42. package/dist/ConfirmationRadioButtons/Confirmation.stories.d.ts +0 -21
  43. package/dist/ConfirmationRadioButtons/Confirmation.stories.js +0 -76
  44. package/dist/ConfirmationRadioButtons/Confirmation.stories.js.map +0 -1
  45. package/dist/ConfirmationRadioButtons/Container.d.ts +0 -2
  46. package/dist/ConfirmationRadioButtons/Container.js +0 -8
  47. package/dist/ConfirmationRadioButtons/Container.js.map +0 -1
  48. package/dist/ConfirmationRadioButtons/RadioButtonStyled.d.ts +0 -17
  49. package/dist/ConfirmationRadioButtons/RadioButtonStyled.js +0 -41
  50. package/dist/ConfirmationRadioButtons/RadioButtonStyled.js.map +0 -1
  51. package/dist/ConfirmationRadioButtons/__tests__/Confirmation.d.ts +0 -1
  52. package/dist/ConfirmationRadioButtons/__tests__/Confirmation.js +0 -8
  53. package/dist/ConfirmationRadioButtons/__tests__/Confirmation.js.map +0 -1
  54. package/dist/ConfirmationRadioButtons/index.d.ts +0 -1
  55. package/dist/ConfirmationRadioButtons/index.js +0 -2
  56. package/dist/ConfirmationRadioButtons/index.js.map +0 -1
  57. package/dist/Message/Message.d.ts +0 -21
  58. package/dist/Message/Message.js +0 -45
  59. package/dist/Message/Message.js.map +0 -1
  60. package/dist/Message/Message.stories.d.ts +0 -13
  61. package/dist/Message/Message.stories.js +0 -38
  62. package/dist/Message/Message.stories.js.map +0 -1
  63. package/dist/Message/__tests__/Message.d.ts +0 -1
  64. package/dist/Message/__tests__/Message.js +0 -26
  65. package/dist/Message/__tests__/Message.js.map +0 -1
  66. package/dist/Message/index.d.ts +0 -1
  67. package/dist/Message/index.js +0 -2
  68. package/dist/Message/index.js.map +0 -1
  69. package/dist/RadioButton/Container.d.ts +0 -2
  70. package/dist/RadioButton/Container.js +0 -9
  71. package/dist/RadioButton/Container.js.map +0 -1
  72. package/dist/RadioButton/RadioButton.d.ts +0 -10
  73. package/dist/RadioButton/RadioButton.js +0 -68
  74. package/dist/RadioButton/RadioButton.js.map +0 -1
  75. package/dist/RadioButton/RadioButton.stories.d.ts +0 -15
  76. package/dist/RadioButton/RadioButton.stories.js +0 -29
  77. package/dist/RadioButton/RadioButton.stories.js.map +0 -1
  78. package/dist/RadioButton/__tests__/RadioButton.d.ts +0 -1
  79. package/dist/RadioButton/__tests__/RadioButton.js +0 -13
  80. package/dist/RadioButton/__tests__/RadioButton.js.map +0 -1
  81. package/dist/RadioButton/index.d.ts +0 -1
  82. package/dist/RadioButton/index.js +0 -2
  83. package/dist/RadioButton/index.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"Message.stories.js","sourceRoot":"","sources":["../../src/Message/Message.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,OAAO,EAAgB,MAAM,WAAW,CAAA;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAEhC,eAAe;IACb,KAAK,EAAE,SAAS;IAChB,SAAS,EAAE,OAAO;CACnB,CAAA;AAED,MAAM,QAAQ,GAAG,CAAC,KAAmB,EAAE,EAAE,CAAC,CACxC,oBAAC,OAAO,oBAAK,KAAK,sCAA4C,CAC/D,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAExC,MAAM,CAAC,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAErC,IAAI,CAAC,IAAI,GAAG;IACV,IAAI,EAAE,MAAM;CACb,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAExC,OAAO,CAAC,IAAI,GAAG;IACb,IAAI,EAAE,SAAS;CAChB,CAAA;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAEnD,kBAAkB,CAAC,IAAI,GAAG;IACxB,IAAI,EAAE,SAAS;IACf,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,WAAW;IACzC,SAAS,EAAE,IAAI;CAChB,CAAA;AAED,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAEhD,eAAe,CAAC,IAAI,GAAG;IACrB,IAAI,EAAE,MAAM;IACZ,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,WAAW;IACzC,SAAS,EAAE,IAAI;CAChB,CAAA;AAED,MAAM,CAAC,MAAM,cAAc,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAE/C,cAAc,CAAC,IAAI,GAAG;IACpB,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,YAAY;IACvB,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK;IACnC,SAAS,EAAE,IAAI;IACf,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS;CACpC,CAAA"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,26 +0,0 @@
1
- import React from 'react';
2
- import { render } from '@testing-library/react';
3
- import '@testing-library/jest-dom/extend-expect';
4
- import 'jest-styled-components';
5
- import { Message } from '../Message';
6
- it('default renders correctly', () => {
7
- const { container } = render(React.createElement(Message, null, "This is an infomation message for the customer!"));
8
- expect(container).toMatchSnapshot();
9
- });
10
- it('warning renders correctly', () => {
11
- const { container } = render(React.createElement(Message, { type: "warning", sizeSmall: false }, "This is a warning message for the customer!"));
12
- expect(container).toMatchSnapshot();
13
- });
14
- it('info renders correctly', () => {
15
- const { container } = render(React.createElement(Message, { type: "info" }, "This is a infomational message for the customer!"));
16
- expect(container).toMatchSnapshot();
17
- });
18
- it('icon prop render correctly', () => {
19
- const { container } = render(React.createElement(Message, { type: "warning" }, "This is a warning message for the customer!"));
20
- expect(container).toHaveTextContent('This is a warning message for the customer!');
21
- });
22
- it('warning bubble size small renders correctly', () => {
23
- const { container } = render(React.createElement(Message, { type: "warning-bubble", backgroundColor: "#FAF3EE", sizeSmall: true }, "This is a warning bubble message for the customer!"));
24
- expect(container).toHaveTextContent('This is a warning bubble message for the customer!');
25
- });
26
- //# sourceMappingURL=Message.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Message.js","sourceRoot":"","sources":["../../../src/Message/__tests__/Message.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAC/C,OAAO,yCAAyC,CAAA;AAChD,OAAO,wBAAwB,CAAA;AAE/B,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,EAAE,CAAC,2BAA2B,EAAE,GAAG,EAAE;IACnC,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAC1B,oBAAC,OAAO,0DAA0D,CACnE,CAAA;IAED,MAAM,CAAC,SAAS,CAAC,CAAC,eAAe,EAAE,CAAA;AACrC,CAAC,CAAC,CAAA;AAEF,EAAE,CAAC,2BAA2B,EAAE,GAAG,EAAE;IACnC,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAC1B,oBAAC,OAAO,IAAC,IAAI,EAAC,SAAS,EAAC,SAAS,EAAE,KAAK,kDAE9B,CACX,CAAA;IAED,MAAM,CAAC,SAAS,CAAC,CAAC,eAAe,EAAE,CAAA;AACrC,CAAC,CAAC,CAAA;AAEF,EAAE,CAAC,wBAAwB,EAAE,GAAG,EAAE;IAChC,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAC1B,oBAAC,OAAO,IAAC,IAAI,EAAC,MAAM,uDAEV,CACX,CAAA;IAED,MAAM,CAAC,SAAS,CAAC,CAAC,eAAe,EAAE,CAAA;AACrC,CAAC,CAAC,CAAA;AAEF,EAAE,CAAC,4BAA4B,EAAE,GAAG,EAAE;IACpC,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAC1B,oBAAC,OAAO,IAAC,IAAI,EAAC,SAAS,kDAEb,CACX,CAAA;IAED,MAAM,CAAC,SAAS,CAAC,CAAC,iBAAiB,CACjC,6CAA6C,CAC9C,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,EAAE,CAAC,6CAA6C,EAAE,GAAG,EAAE;IACrD,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAC1B,oBAAC,OAAO,IAAC,IAAI,EAAC,gBAAgB,EAAC,eAAe,EAAC,SAAS,EAAC,SAAS,EAAE,IAAI,yDAE9D,CACX,CAAA;IAED,MAAM,CAAC,SAAS,CAAC,CAAC,iBAAiB,CACjC,oDAAoD,CACrD,CAAA;AACH,CAAC,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- export * from './Message';
@@ -1,2 +0,0 @@
1
- export * from './Message';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Message/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA"}
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const Container: () => JSX.Element;
@@ -1,9 +0,0 @@
1
- import React, { useState } from 'react';
2
- import { RadioButton } from './RadioButton';
3
- export const Container = () => {
4
- const [checked, setChecked] = useState('');
5
- return (React.createElement("form", null,
6
- React.createElement(RadioButton, { id: "radioButtonOne", label: "What a lovely label", value: checked, onChange: () => setChecked('radioButtonOne'), checked: checked === 'radioButtonOne' }),
7
- React.createElement(RadioButton, { id: "radioButtonTwo", label: "What a lovely second label", value: checked, onChange: () => setChecked('radioButtonTwo'), checked: checked === 'radioButtonTwo' })));
8
- };
9
- //# sourceMappingURL=Container.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Container.js","sourceRoot":"","sources":["../../src/RadioButton/Container.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEvC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,EAAE;IAC5B,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAA;IAE1C,OAAO,CACL;QACE,oBAAC,WAAW,IACV,EAAE,EAAC,gBAAgB,EACnB,KAAK,EAAC,qBAAqB,EAC3B,KAAK,EAAE,OAAO,EACd,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,gBAAgB,CAAC,EAC5C,OAAO,EAAE,OAAO,KAAK,gBAAgB,GACrC;QAEF,oBAAC,WAAW,IACV,EAAE,EAAC,gBAAgB,EACnB,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAE,OAAO,EACd,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,gBAAgB,CAAC,EAC5C,OAAO,EAAE,OAAO,KAAK,gBAAgB,GACrC,CACG,CACR,CAAA;AACH,CAAC,CAAA"}
@@ -1,10 +0,0 @@
1
- import { FC, ChangeEvent } from 'react';
2
- import { MarginProps } from '../utils/space';
3
- export type RadioButtonProps = {
4
- id?: string;
5
- label: string;
6
- checked?: boolean;
7
- value: string;
8
- onChange: (event: ChangeEvent<HTMLInputElement>) => void;
9
- } & MarginProps;
10
- export declare const RadioButton: FC<RadioButtonProps>;
@@ -1,68 +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 { focusOutline } from '../utils/focusOutline';
15
- import { Box } from '../Box';
16
- import { theme } from '../theme';
17
- import { useUniqueId } from '../utils/id';
18
- import { useDeprecatedWarning } from '../utils/deprecated';
19
- export const RadioButton = (props) => {
20
- const { id: idProp, label, checked, value, onChange } = props, marginProps = __rest(props, ["id", "label", "checked", "value", "onChange"]);
21
- useDeprecatedWarning({
22
- title: 'RadioButton',
23
- message: 'The RadioButton component has been deprecated. Please use the new RadioGroup component instead.',
24
- componentProps: props,
25
- });
26
- const id = useUniqueId(idProp);
27
- return (React.createElement(Box, Object.assign({ flex: true, alignItems: "center" }, marginProps),
28
- React.createElement(RadioInput, { id: id, type: "radio", checked: checked, value: value, onChange: onChange }),
29
- React.createElement(RadioLabel, { htmlFor: id },
30
- React.createElement(FakeInput, { checked: checked }),
31
- React.createElement(Text, null, label))));
32
- };
33
- const FakeInput = styled.div `
34
- width: 24px;
35
- height: 24px;
36
- border-radius: 50%;
37
- background-color: ${theme.colors.white};
38
- margin-right: 10px;
39
- border: ${({ checked }) => checked
40
- ? `8px solid ${theme.colors.success}`
41
- : `1px solid ${theme.colors.outline}`};
42
- `;
43
- const RadioLabel = styled.label `
44
- font-family: 'Gordita', sans-serif;
45
- text-transform: none;
46
- font-size: 16px;
47
- line-height: 17px;
48
- color: ${theme.colors.secondary};
49
- margin-bottom: 0;
50
- display: flex;
51
- cursor: pointer;
52
- `;
53
- const RadioInput = styled.input `
54
- position: absolute;
55
- opacity: 0;
56
- height: 0;
57
- width: 0;
58
-
59
- ${focusOutline({
60
- selector: `&:focus-visible ~ ${RadioLabel} ${FakeInput}`,
61
- })}
62
- `;
63
- // needed because the text is top aligned in its viewbox
64
- const Text = styled.span `
65
- position: relative;
66
- bottom: -5px;
67
- `;
68
- //# sourceMappingURL=RadioButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RadioButton.js","sourceRoot":"","sources":["../../src/RadioButton/RadioButton.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAA0B,MAAM,OAAO,CAAA;AAC9C,OAAO,MAAM,MAAM,mBAAmB,CAAA;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEpD,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAE5B,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAEzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAc1D,MAAM,CAAC,MAAM,WAAW,GAAyB,CAAC,KAAK,EAAE,EAAE;IACzD,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,KAAqB,KAAK,EAArB,WAAW,UAAK,KAAK,EAAvE,+CAA+D,CAAQ,CAAA;IAE7E,oBAAoB,CAAC;QACnB,KAAK,EAAE,aAAa;QACpB,OAAO,EACL,iGAAiG;QACnG,cAAc,EAAE,KAAK;KACtB,CAAC,CAAA;IAEF,MAAM,EAAE,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;IAE9B,OAAO,CACL,oBAAC,GAAG,kBAAC,IAAI,QAAC,UAAU,EAAC,QAAQ,IAAK,WAAW;QAC3C,oBAAC,UAAU,IACT,EAAE,EAAE,EAAE,EACN,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,GAClB;QAEF,oBAAC,UAAU,IAAC,OAAO,EAAE,EAAE;YACrB,oBAAC,SAAS,IAAC,OAAO,EAAE,OAAO,GAAI;YAC/B,oBAAC,IAAI,QAAE,KAAK,CAAQ,CACT,CACT,CACP,CAAA;AACH,CAAC,CAAA;AAED,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAY;;;;sBAIlB,KAAK,CAAC,MAAM,CAAC,KAAK;;YAE5B,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CACxB,OAAO;IACL,CAAC,CAAC,aAAa,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE;IACrC,CAAC,CAAC,aAAa,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE;CAC1C,CAAA;AAED,MAAM,UAAU,GAAG,MAAM,CAAC,KAAK,CAAA;;;;;WAKpB,KAAK,CAAC,MAAM,CAAC,SAAS;;;;CAIhC,CAAA;AAED,MAAM,UAAU,GAAG,MAAM,CAAC,KAAK,CAAA;;;;;;IAM3B,YAAY,CAAC;IACb,QAAQ,EAAE,qBAAqB,UAAU,IAAI,SAAS,EAAE;CACzD,CAAC;CACH,CAAA;AAED,wDAAwD;AACxD,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAA;;;CAGvB,CAAA"}
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import { RadioButtonProps } from './RadioButton';
3
- declare const _default: {
4
- title: string;
5
- component: React.FC<RadioButtonProps>;
6
- argTypes: {
7
- onChange: {
8
- action: string;
9
- };
10
- };
11
- };
12
- export default _default;
13
- export declare const Default: any;
14
- export declare const Checked: any;
15
- export declare const WorkingExample: any;
@@ -1,29 +0,0 @@
1
- import React from 'react';
2
- import { RadioButton } from './RadioButton';
3
- import { Container } from './Container';
4
- import { noop } from '../utils/noop';
5
- export default {
6
- title: 'Radio Button',
7
- component: RadioButton,
8
- argTypes: { onChange: { action: 'clicked' } },
9
- };
10
- const Template = (props) => React.createElement(RadioButton, Object.assign({}, props));
11
- export const Default = Template.bind({});
12
- Default.args = {
13
- id: 'radioButton',
14
- label: 'What a lovely label',
15
- value: 'radioButton',
16
- onChange: noop,
17
- checked: false,
18
- };
19
- export const Checked = Template.bind({});
20
- Checked.args = {
21
- id: 'radioButton',
22
- label: 'What a lovely label',
23
- value: 'radioButton',
24
- onChange: noop,
25
- checked: true,
26
- };
27
- const ContainerTemplate = () => React.createElement(Container, null);
28
- export const WorkingExample = ContainerTemplate.bind({});
29
- //# sourceMappingURL=RadioButton.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RadioButton.stories.js","sourceRoot":"","sources":["../../src/RadioButton/RadioButton.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,WAAW,EAAoB,MAAM,eAAe,CAAA;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAEpC,eAAe;IACb,KAAK,EAAE,cAAc;IACrB,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE;CAC9C,CAAA;AAED,MAAM,QAAQ,GAAG,CAAC,KAAuB,EAAE,EAAE,CAAC,oBAAC,WAAW,oBAAK,KAAK,EAAI,CAAA;AAExE,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAExC,OAAO,CAAC,IAAI,GAAG;IACb,EAAE,EAAE,aAAa;IACjB,KAAK,EAAE,qBAAqB;IAC5B,KAAK,EAAE,aAAa;IACpB,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE,KAAK;CACf,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAExC,OAAO,CAAC,IAAI,GAAG;IACb,EAAE,EAAE,aAAa;IACjB,KAAK,EAAE,qBAAqB;IAC5B,KAAK,EAAE,aAAa;IACpB,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE,IAAI;CACd,CAAA;AAED,MAAM,iBAAiB,GAAG,GAAG,EAAE,CAAC,oBAAC,SAAS,OAAG,CAAA;AAE7C,MAAM,CAAC,MAAM,cAAc,GAAG,iBAAiB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { render } from '@testing-library/react';
3
- import 'jest-styled-components';
4
- import { RadioButton } from '../RadioButton';
5
- test('renders - checked', () => {
6
- const { container } = render(React.createElement(RadioButton, { id: "radioButtonOne", label: "What a lovely label", value: true, checked: true, onChange: str => { } }));
7
- expect(container.firstChild).toMatchSnapshot();
8
- });
9
- test('renders - unchecked', () => {
10
- const { container } = render(React.createElement(RadioButton, { id: "radioButtonOne", label: "What a lovely label", value: false, checked: false, onChange: str => { } }));
11
- expect(container.firstChild).toMatchSnapshot();
12
- });
13
- //# sourceMappingURL=RadioButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RadioButton.js","sourceRoot":"","sources":["../../../src/RadioButton/__tests__/RadioButton.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,IAAI,CAAC,mBAAmB,EAAE,GAAG,EAAE;IAC7B,MAAM,EAAC,SAAS,EAAC,GAAG,MAAM,CACxB,oBAAC,WAAW,IACV,EAAE,EAAC,gBAAgB,EACnB,KAAK,EAAC,qBAAqB,EAC3B,KAAK,EAAE,IAAI,EACX,OAAO,EAAE,IAAI,EACb,QAAQ,EAAE,GAAG,CAAC,EAAE,GAAE,CAAC,GACnB,CACH,CAAC;IACF,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,eAAe,EAAE,CAAC;AACjD,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,qBAAqB,EAAE,GAAG,EAAE;IAC/B,MAAM,EAAC,SAAS,EAAC,GAAG,MAAM,CACxB,oBAAC,WAAW,IACV,EAAE,EAAC,gBAAgB,EACnB,KAAK,EAAC,qBAAqB,EAC3B,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,KAAK,EACd,QAAQ,EAAE,GAAG,CAAC,EAAE,GAAE,CAAC,GACnB,CACH,CAAC;IACF,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,eAAe,EAAE,CAAC;AACjD,CAAC,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- export { RadioButton } from './RadioButton';
@@ -1,2 +0,0 @@
1
- export { RadioButton } from './RadioButton';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/RadioButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA"}