@transferwise/components 46.13.0 → 46.15.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.
- package/build/index.esm.js +246 -525
- package/build/index.esm.js.map +1 -1
- package/build/index.js +222 -501
- package/build/index.js.map +1 -1
- package/build/main.css +6 -82
- package/build/styles/decision/Decision.css +6 -82
- package/build/styles/main.css +6 -82
- package/build/types/actionButton/ActionButton.d.ts +1 -1
- package/build/types/body/Body.d.ts +1 -1
- package/build/types/common/Option/Option.d.ts.map +1 -1
- package/build/types/common/RadioButton/RadioButton.d.ts +10 -34
- package/build/types/common/RadioButton/RadioButton.d.ts.map +1 -1
- package/build/types/common/RadioButton/index.d.ts +1 -1
- package/build/types/common/RadioButton/index.d.ts.map +1 -1
- package/build/types/common/commonProps.d.ts +1 -1
- package/build/types/common/commonProps.d.ts.map +1 -1
- package/build/types/common/dateUtils/getDayNames/getDayNames.d.ts +1 -1
- package/build/types/common/dateUtils/getDayNames/getDayNames.d.ts.map +1 -1
- package/build/types/common/dateUtils/getDayNames/index.d.ts +1 -1
- package/build/types/common/dateUtils/getDayNames/index.d.ts.map +1 -1
- package/build/types/common/dateUtils/getMonthNames/getMonthNames.d.ts +1 -1
- package/build/types/common/dateUtils/getMonthNames/getMonthNames.d.ts.map +1 -1
- package/build/types/common/dateUtils/getMonthNames/index.d.ts +1 -1
- package/build/types/common/dateUtils/getMonthNames/index.d.ts.map +1 -1
- package/build/types/common/dateUtils/index.d.ts +6 -6
- package/build/types/common/dateUtils/index.d.ts.map +1 -1
- package/build/types/common/dateUtils/isDateValid/index.d.ts +1 -1
- package/build/types/common/dateUtils/isDateValid/index.d.ts.map +1 -1
- package/build/types/common/dateUtils/isDateValid/isDateValid.d.ts +2 -2
- package/build/types/common/dateUtils/isDateValid/isDateValid.d.ts.map +1 -1
- package/build/types/common/dateUtils/isMonthAndYearFormat/index.d.ts +1 -1
- package/build/types/common/dateUtils/isMonthAndYearFormat/index.d.ts.map +1 -1
- package/build/types/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.d.ts +1 -1
- package/build/types/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.d.ts.map +1 -1
- package/build/types/common/dateUtils/isWithinRange/index.d.ts +1 -1
- package/build/types/common/dateUtils/isWithinRange/index.d.ts.map +1 -1
- package/build/types/common/dateUtils/isWithinRange/isWithinRange.d.ts +1 -1
- package/build/types/common/dateUtils/isWithinRange/isWithinRange.d.ts.map +1 -1
- package/build/types/common/dateUtils/moveToWithinRange/index.d.ts +1 -1
- package/build/types/common/dateUtils/moveToWithinRange/index.d.ts.map +1 -1
- package/build/types/common/dateUtils/moveToWithinRange/moveToWithinRange.d.ts +1 -1
- package/build/types/common/dateUtils/moveToWithinRange/moveToWithinRange.d.ts.map +1 -1
- package/build/types/common/panel/Panel.d.ts +1 -1
- package/build/types/common/responsivePanel/ResponsivePanel.d.ts +1 -1
- package/build/types/dateInput/DateInput.d.ts +30 -41
- package/build/types/dateInput/DateInput.d.ts.map +1 -1
- package/build/types/dateInput/DateInput.messages.d.ts +24 -33
- package/build/types/dateInput/DateInput.messages.d.ts.map +1 -1
- package/build/types/dateInput/index.d.ts +2 -2
- package/build/types/dateInput/index.d.ts.map +1 -1
- package/build/types/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.d.ts +1 -1
- package/build/types/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.d.ts.map +1 -1
- package/build/types/dateInput/utils/convertToLocalMidnight/index.d.ts +1 -1
- package/build/types/dateInput/utils/convertToLocalMidnight/index.d.ts.map +1 -1
- package/build/types/dateInput/utils/index.d.ts +1 -2
- package/build/types/dateInput/utils/index.d.ts.map +1 -1
- package/build/types/dateLookup/DateLookup.d.ts +1 -0
- package/build/types/dateLookup/DateLookup.d.ts.map +1 -1
- package/build/types/decision/Decision.d.ts +39 -52
- package/build/types/decision/Decision.d.ts.map +1 -1
- package/build/types/decision/index.d.ts +1 -2
- package/build/types/decision/index.d.ts.map +1 -1
- package/build/types/dimmer/Dimmer.d.ts +1 -1
- package/build/types/index.d.ts +5 -0
- package/build/types/index.d.ts.map +1 -1
- package/build/types/promoCard/PromoCard.d.ts +1 -2
- package/build/types/promoCard/PromoCard.d.ts.map +1 -1
- package/build/types/radio/Radio.d.ts +10 -21
- package/build/types/radio/Radio.d.ts.map +1 -1
- package/build/types/radio/index.d.ts +2 -2
- package/build/types/radio/index.d.ts.map +1 -1
- package/build/types/radioGroup/RadioGroup.d.ts +10 -26
- package/build/types/radioGroup/RadioGroup.d.ts.map +1 -1
- package/build/types/radioGroup/index.d.ts +2 -1
- package/build/types/radioGroup/index.d.ts.map +1 -1
- package/build/types/radioOption/RadioOption.d.ts +15 -23
- package/build/types/radioOption/RadioOption.d.ts.map +1 -1
- package/build/types/radioOption/index.d.ts +2 -1
- package/build/types/radioOption/index.d.ts.map +1 -1
- package/build/types/select/searchBox/SearchBox.d.ts +1 -1
- package/package.json +1 -1
- package/src/common/Option/Option.tsx +0 -1
- package/src/common/RadioButton/RadioButton.tsx +43 -0
- package/src/common/commonProps.ts +1 -1
- package/src/common/dateUtils/getDayNames/getDayNames.spec.js +2 -2
- package/src/common/dateUtils/getDayNames/{getDayNames.js → getDayNames.ts} +5 -2
- package/src/common/dateUtils/getMonthNames/getMonthNames.spec.js +9 -8
- package/src/common/dateUtils/getMonthNames/{getMonthNames.js → getMonthNames.ts} +5 -3
- package/src/common/dateUtils/isDateValid/{isDateValid.spec.js → isDateValid.spec.ts} +1 -1
- package/src/common/dateUtils/isDateValid/isDateValid.ts +13 -0
- package/src/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.spec.js +3 -7
- package/src/common/dateUtils/isMonthAndYearFormat/{isMonthAndYearFormat.js → isMonthAndYearFormat.ts} +1 -1
- package/src/common/dateUtils/isWithinRange/{isWithinRange.spec.js → isWithinRange.spec.ts} +0 -10
- package/src/common/dateUtils/isWithinRange/{isWithinRange.js → isWithinRange.ts} +1 -1
- package/src/common/dateUtils/moveToWithinRange/{moveToWithinRange.js → moveToWithinRange.ts} +2 -2
- package/src/dateInput/DateInput.spec.js +7 -56
- package/src/dateInput/DateInput.story.tsx +11 -8
- package/src/dateInput/{DateInput.js → DateInput.tsx} +116 -123
- package/src/dateInput/index.ts +2 -0
- package/src/dateInput/utils/convertToLocalMidnight/{convertToLocalMidnight.js → convertToLocalMidnight.ts} +1 -1
- package/src/dateInput/utils/{index.js → index.ts} +0 -1
- package/src/dateLookup/DateLookup.js +12 -1
- package/src/dateLookup/DateLookup.testingLibrary.spec.js +12 -1
- package/src/dateLookup/dayCalendar/table/DayCalendarTable.js +1 -0
- package/src/decision/Decision.css +6 -82
- package/src/decision/Decision.less +3 -41
- package/src/decision/Decision.spec.js +56 -61
- package/src/decision/{Decision.story.js → Decision.story.tsx} +5 -5
- package/src/decision/Decision.tsx +133 -0
- package/src/decision/index.ts +1 -0
- package/src/index.ts +5 -0
- package/src/main.css +6 -82
- package/src/promoCard/PromoCard.tsx +1 -2
- package/src/radio/{Radio.story.js → Radio.story.tsx} +0 -3
- package/src/radio/{Radio.js → Radio.tsx} +18 -28
- package/src/radio/index.ts +2 -0
- package/src/radioGroup/RadioGroup.spec.js +24 -26
- package/src/radioGroup/{RadioGroup.story.js → RadioGroup.story.tsx} +0 -3
- package/src/radioGroup/RadioGroup.tsx +39 -0
- package/src/radioGroup/index.ts +2 -0
- package/src/radioOption/RadioOption.spec.js +4 -4
- package/src/radioOption/{RadioOption.story.js → RadioOption.story.tsx} +4 -4
- package/src/radioOption/RadioOption.tsx +60 -0
- package/src/radioOption/index.ts +2 -0
- package/src/tile/Tile.js +1 -1
- package/build/types/dateInput/utils/explodeDate/explodeDate.d.ts +0 -6
- package/build/types/dateInput/utils/explodeDate/explodeDate.d.ts.map +0 -1
- package/build/types/dateInput/utils/explodeDate/index.d.ts +0 -2
- package/build/types/dateInput/utils/explodeDate/index.d.ts.map +0 -1
- package/build/types/decision/decisionEnums.d.ts +0 -9
- package/build/types/decision/decisionEnums.d.ts.map +0 -1
- package/build/types/sizeSwapper/SizeSwapper.d.ts +0 -3
- package/build/types/sizeSwapper/SizeSwapper.d.ts.map +0 -1
- package/build/types/sizeSwapper/index.d.ts +0 -2
- package/build/types/sizeSwapper/index.d.ts.map +0 -1
- package/src/common/RadioButton/RadioButton.js +0 -41
- package/src/common/dateUtils/isDateValid/isDateValid.js +0 -6
- package/src/dateInput/index.js +0 -3
- package/src/dateInput/utils/explodeDate/explodeDate.js +0 -7
- package/src/dateInput/utils/explodeDate/explodeDate.spec.js +0 -11
- package/src/dateInput/utils/explodeDate/index.js +0 -1
- package/src/decision/Decision.js +0 -148
- package/src/decision/decisionEnums.ts +0 -11
- package/src/decision/index.js +0 -2
- package/src/radio/index.js +0 -3
- package/src/radioGroup/RadioGroup.js +0 -66
- package/src/radioGroup/index.js +0 -1
- package/src/radioOption/RadioOption.js +0 -81
- package/src/radioOption/index.js +0 -1
- package/src/sizeSwapper/SizeSwapper.js +0 -69
- package/src/sizeSwapper/SizeSwapper.spec.js +0 -100
- package/src/sizeSwapper/SizeSwapper.story.js +0 -34
- package/src/sizeSwapper/index.js +0 -1
- /package/src/common/RadioButton/{RadioButton.spec.js → RadioButton.spec.tsx} +0 -0
- /package/src/common/RadioButton/__snapshots__/{RadioButton.spec.js.snap → RadioButton.spec.tsx.snap} +0 -0
- /package/src/common/RadioButton/{index.js → index.ts} +0 -0
- /package/src/common/dateUtils/getDayNames/{index.js → index.ts} +0 -0
- /package/src/common/dateUtils/getMonthNames/{index.js → index.ts} +0 -0
- /package/src/common/dateUtils/{index.js → index.ts} +0 -0
- /package/src/common/dateUtils/isDateValid/{index.js → index.ts} +0 -0
- /package/src/common/dateUtils/isMonthAndYearFormat/{index.js → index.ts} +0 -0
- /package/src/common/dateUtils/isWithinRange/{index.js → index.ts} +0 -0
- /package/src/common/dateUtils/moveToWithinRange/{index.js → index.ts} +0 -0
- /package/src/dateInput/{DateInput.messages.js → DateInput.messages.ts} +0 -0
- /package/src/dateInput/utils/convertToLocalMidnight/{convertToLocalMidnight.spec.js → convertToLocalMidnight.spec.ts} +0 -0
- /package/src/dateInput/utils/convertToLocalMidnight/{index.js → index.ts} +0 -0
- /package/src/radio/{Radio.rtl.spec.js → Radio.rtl.spec.tsx} +0 -0
- /package/src/radio/__snapshots__/{Radio.rtl.spec.js.snap → Radio.rtl.spec.tsx.snap} +0 -0
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import classNames from 'classnames';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import { forwardRef, useRef } from 'react';
|
|
4
|
-
|
|
5
|
-
import { Breakpoint } from '../common';
|
|
6
|
-
import { useClientWidth } from '../common/hooks';
|
|
7
|
-
|
|
8
|
-
const Layout = { COLUMN: 'COLUMN' };
|
|
9
|
-
|
|
10
|
-
const SizeSwapper = forwardRef(({ items, inline }, reference) => {
|
|
11
|
-
const parentReference = useRef(null);
|
|
12
|
-
const [clientWidth] = useClientWidth({ ref: reference || parentReference });
|
|
13
|
-
|
|
14
|
-
if (!items || items.length === 0) {
|
|
15
|
-
return null;
|
|
16
|
-
}
|
|
17
|
-
// If all breakpoints are specified and clientWidth never > breakpoint itemsToRender can be undefined.
|
|
18
|
-
// Do not use deconstruct here to get items and layout.
|
|
19
|
-
let itemsToRender = [];
|
|
20
|
-
|
|
21
|
-
if (clientWidth) {
|
|
22
|
-
itemsToRender = items.filter(({ breakpoint = 0 }) => clientWidth >= breakpoint).pop();
|
|
23
|
-
} else {
|
|
24
|
-
// On SSR environments useClientWidth returns null because ref is undefined so we render
|
|
25
|
-
// all elements by default.
|
|
26
|
-
// If there's no SSR and on first Hydration only the right elements are going to be rendered.
|
|
27
|
-
// If clientWidth is null or zero all elements render like a responsive technique would do.
|
|
28
|
-
itemsToRender.items = items.map(({ items }) => Object.values(items));
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// Always return parent container even if there are no items to display to
|
|
32
|
-
// keep the ref on DOM and let clientWidth be calculated properly.
|
|
33
|
-
return (
|
|
34
|
-
<div
|
|
35
|
-
ref={parentReference}
|
|
36
|
-
className={classNames('np-size-swapper', {
|
|
37
|
-
'd-flex': !inline,
|
|
38
|
-
'd-inline-flex': inline,
|
|
39
|
-
'flex-column': itemsToRender && itemsToRender.layout === Layout.COLUMN,
|
|
40
|
-
'flex-wrap': itemsToRender && itemsToRender.wrap,
|
|
41
|
-
})}
|
|
42
|
-
style={{ visibility: clientWidth ? 'visible' : 'hidden' }}
|
|
43
|
-
>
|
|
44
|
-
{itemsToRender && itemsToRender.items}
|
|
45
|
-
</div>
|
|
46
|
-
);
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
SizeSwapper.Breakpoint = Breakpoint;
|
|
50
|
-
SizeSwapper.Layout = Layout;
|
|
51
|
-
|
|
52
|
-
SizeSwapper.propTypes = {
|
|
53
|
-
inline: PropTypes.bool,
|
|
54
|
-
/** List of items that will appear at the specified breakpoint and presented in row or columns depending on layout */
|
|
55
|
-
items: PropTypes.arrayOf(
|
|
56
|
-
PropTypes.shape({
|
|
57
|
-
items: PropTypes.arrayOf(PropTypes.element),
|
|
58
|
-
breakpoint: PropTypes.number,
|
|
59
|
-
layout: PropTypes.oneOf([SizeSwapper.Layout.COLUMN]),
|
|
60
|
-
wrap: PropTypes.bool,
|
|
61
|
-
}),
|
|
62
|
-
).isRequired,
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
SizeSwapper.defaultProps = {
|
|
66
|
-
inline: false,
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
export default SizeSwapper;
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import '@testing-library/jest-dom';
|
|
2
|
-
import { Breakpoint } from '../common';
|
|
3
|
-
import { render, fireEvent, screen } from '../test-utils';
|
|
4
|
-
|
|
5
|
-
import SizeSwapper from '.';
|
|
6
|
-
|
|
7
|
-
jest.mock('lodash.throttle', () => jest.fn((fn) => fn));
|
|
8
|
-
|
|
9
|
-
describe('SizeSwapper', () => {
|
|
10
|
-
const resetClientWidth = (width) => {
|
|
11
|
-
Object.defineProperty(HTMLElement.prototype, 'clientWidth', {
|
|
12
|
-
configurable: true,
|
|
13
|
-
value: width,
|
|
14
|
-
});
|
|
15
|
-
};
|
|
16
|
-
const breakpoints = [0, Breakpoint.EXTRA_SMALL];
|
|
17
|
-
|
|
18
|
-
const items = breakpoints.map((bp) => ({
|
|
19
|
-
items: [...new Array(2)].map((_, index) => (
|
|
20
|
-
// eslint-disable-next-line react/no-array-index-key
|
|
21
|
-
<div key={`${index}-${bp}`}>
|
|
22
|
-
element-{index + 1}-{bp}
|
|
23
|
-
</div>
|
|
24
|
-
)),
|
|
25
|
-
layout: SizeSwapper.Layout.COLUMN,
|
|
26
|
-
breakpoint: bp,
|
|
27
|
-
}));
|
|
28
|
-
|
|
29
|
-
afterAll(() => {
|
|
30
|
-
const originalClientWidth = Object.getOwnPropertyDescriptor(
|
|
31
|
-
HTMLElement.prototype,
|
|
32
|
-
'clientWidth',
|
|
33
|
-
);
|
|
34
|
-
|
|
35
|
-
Object.defineProperty(HTMLElement.prototype, 'clientWidth', originalClientWidth);
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
it('renders all elements and hides sizeswapper if clientWidth is not defined', () => {
|
|
39
|
-
const { container } = render(<SizeSwapper items={items} />);
|
|
40
|
-
|
|
41
|
-
expect(screen.getByText('element-1-0')).toBeInTheDocument();
|
|
42
|
-
expect(screen.getByText('element-2-0')).toBeInTheDocument();
|
|
43
|
-
expect(screen.getByText(`element-1-${breakpoints[1]}`)).toBeInTheDocument();
|
|
44
|
-
expect(screen.getByText(`element-2-${breakpoints[1]}`)).toBeInTheDocument();
|
|
45
|
-
|
|
46
|
-
expect(container.querySelector('.np-size-swapper')).toHaveStyle(`visibility: hidden`);
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
it('changes visibility when clientWidth is set', () => {
|
|
50
|
-
const { container } = render(<SizeSwapper items={items} />);
|
|
51
|
-
|
|
52
|
-
expect(container.querySelector('.np-size-swapper')).toHaveStyle(`visibility: hidden`);
|
|
53
|
-
|
|
54
|
-
resetClientWidth(breakpoints[1]);
|
|
55
|
-
fireEvent(window, new Event('resize'));
|
|
56
|
-
|
|
57
|
-
expect(container.querySelector('.np-size-swapper')).toHaveStyle(`visibility: visible`);
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
it('switches elements according to breakpoints', () => {
|
|
61
|
-
render(<SizeSwapper items={items} />);
|
|
62
|
-
resetClientWidth(breakpoints[1] - 1);
|
|
63
|
-
fireEvent(window, new Event('resize'));
|
|
64
|
-
|
|
65
|
-
expect(screen.getByText(`element-1-0`)).toBeInTheDocument();
|
|
66
|
-
expect(screen.getByText(`element-2-0`)).toBeInTheDocument();
|
|
67
|
-
expect(screen.queryByText(`element-1-${breakpoints[1]}`)).not.toBeInTheDocument();
|
|
68
|
-
expect(screen.queryByText(`element-2-${breakpoints[1]}`)).not.toBeInTheDocument();
|
|
69
|
-
|
|
70
|
-
// resetClientWidth(breakpoints[1]);
|
|
71
|
-
// fireEvent(window, new Event('resize'));
|
|
72
|
-
|
|
73
|
-
// expect(screen.queryByText(`element-1-${breakpoints[0]}`)).not.toBeInTheDocument();
|
|
74
|
-
// expect(screen.queryByText(`element-2-${breakpoints[0]}`)).not.toBeInTheDocument();
|
|
75
|
-
// expect(screen.getByText(`element-1-${breakpoints[1]}`)).toBeInTheDocument();
|
|
76
|
-
// expect(screen.getByText(`element-2-${breakpoints[1]}`)).toBeInTheDocument();
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
describe('when ref is window', () => {
|
|
80
|
-
it('switches elements according to breakpoints', () => {
|
|
81
|
-
render(<SizeSwapper ref={window} items={items} />);
|
|
82
|
-
global.innerWidth = breakpoints[1] - 1;
|
|
83
|
-
fireEvent(window, new Event('resize'));
|
|
84
|
-
|
|
85
|
-
expect(screen.getByText(`element-1-0`)).toBeInTheDocument();
|
|
86
|
-
expect(screen.getByText(`element-2-0`)).toBeInTheDocument();
|
|
87
|
-
expect(screen.queryByText(`element-1-${breakpoints[1]}`)).not.toBeInTheDocument();
|
|
88
|
-
expect(screen.queryByText(`element-2-${breakpoints[1]}`)).not.toBeInTheDocument();
|
|
89
|
-
|
|
90
|
-
[, global.innerWidth] = breakpoints;
|
|
91
|
-
|
|
92
|
-
fireEvent(window, new Event('resize'));
|
|
93
|
-
|
|
94
|
-
expect(screen.queryByText(`element-1-${breakpoints[0]}`)).not.toBeInTheDocument();
|
|
95
|
-
expect(screen.queryByText(`element-2-${breakpoints[0]}`)).not.toBeInTheDocument();
|
|
96
|
-
expect(screen.getByText(`element-1-${breakpoints[1]}`)).toBeInTheDocument();
|
|
97
|
-
expect(screen.getByText(`element-2-${breakpoints[1]}`)).toBeInTheDocument();
|
|
98
|
-
});
|
|
99
|
-
});
|
|
100
|
-
});
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import SizeSwapper from './SizeSwapper';
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
component: SizeSwapper,
|
|
5
|
-
title: 'Internal/SizeSwapper',
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
export const Basic = () => {
|
|
9
|
-
const breakpoints = [
|
|
10
|
-
0,
|
|
11
|
-
SizeSwapper.Breakpoint.EXTRA_SMALL,
|
|
12
|
-
SizeSwapper.Breakpoint.SMALL,
|
|
13
|
-
SizeSwapper.Breakpoint.MEDIUM,
|
|
14
|
-
SizeSwapper.Breakpoint.LARGE,
|
|
15
|
-
SizeSwapper.Breakpoint.EXTRA_LARGE,
|
|
16
|
-
];
|
|
17
|
-
|
|
18
|
-
const items = breakpoints.map((bp, key) => {
|
|
19
|
-
const isColumn = (key + 1) % 2 === 0;
|
|
20
|
-
|
|
21
|
-
return {
|
|
22
|
-
items: [...new Array(4)].map((value, key2) => (
|
|
23
|
-
// eslint-disable-next-line react/no-array-index-key
|
|
24
|
-
<div key={`el-${key2}-${key}`} className="p-a-3 well m-x-2">
|
|
25
|
-
Element shown from {bp}px {isColumn && `in ${SizeSwapper.Layout.COLUMN} mode`}
|
|
26
|
-
</div>
|
|
27
|
-
)),
|
|
28
|
-
layout: isColumn ? SizeSwapper.Layout.COLUMN : null,
|
|
29
|
-
breakpoint: bp,
|
|
30
|
-
};
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
return <SizeSwapper items={items} />;
|
|
34
|
-
};
|
package/src/sizeSwapper/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './SizeSwapper';
|
|
File without changes
|
/package/src/common/RadioButton/__snapshots__/{RadioButton.spec.js.snap → RadioButton.spec.tsx.snap}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|