@pedidopago/ui 1.7.26 → 1.8.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/dist/components/Alert/alert.test.js +1 -85
- package/dist/components/Alert/index.js +1 -63
- package/dist/components/Alert/styles.js +1 -32
- package/dist/components/Avatar/avatar.test.js +1 -67
- package/dist/components/Avatar/index.js +1 -94
- package/dist/components/Avatar/styles.js +1 -51
- package/dist/components/Badge/badge.test.js +1 -71
- package/dist/components/Badge/index.js +2 -43
- package/dist/components/Badge/styles.js +1 -33
- package/dist/components/Button/Button.test.js +1 -154
- package/dist/components/Button/index.js +1 -87
- package/dist/components/Button/styles.js +1 -112
- package/dist/components/Card/card.test.js +1 -30
- package/dist/components/Card/index.js +1 -44
- package/dist/components/Card/styles.js +1 -16
- package/dist/components/CheckboxInput/checkbox-input.test.js +1 -170
- package/dist/components/CheckboxInput/components/MultipleCheckbox.js +1 -205
- package/dist/components/CheckboxInput/index.js +1 -94
- package/dist/components/CheckboxInput/styles.js +1 -34
- package/dist/components/ChoiceList/index.d.ts +6 -0
- package/dist/components/ChoiceList/index.d.ts.map +1 -0
- package/dist/components/ChoiceList/index.js +1 -0
- package/dist/components/ChoiceList/styles.d.ts +22 -0
- package/dist/components/ChoiceList/styles.d.ts.map +1 -0
- package/dist/components/ChoiceList/styles.js +1 -0
- package/dist/components/ChoiceList/types.d.ts +24 -0
- package/dist/components/ChoiceList/types.d.ts.map +1 -0
- package/dist/components/ChoiceList/types.js +1 -0
- package/dist/components/CollapseCard/ExpandButton/index.js +1 -40
- package/dist/components/CollapseCard/ExpandButton/styles.js +1 -16
- package/dist/components/CollapseCard/expand-button.test.js +1 -161
- package/dist/components/CollapseCard/index.js +1 -98
- package/dist/components/CollapseCard/styles.js +1 -26
- package/dist/components/ColorPicker/colorpicker.test.js +1 -64
- package/dist/components/ColorPicker/components/ColorHue.js +1 -44
- package/dist/components/ColorPicker/components/ColorInput.js +1 -63
- package/dist/components/ColorPicker/components/ColorPickerBox.js +1 -52
- package/dist/components/ColorPicker/components/ColorPointer.js +1 -25
- package/dist/components/ColorPicker/components/ColorSelector.js +1 -107
- package/dist/components/ColorPicker/hooks/useCachedCallback.js +1 -16
- package/dist/components/ColorPicker/hooks/useHsva.js +1 -53
- package/dist/components/ColorPicker/index.js +1 -93
- package/dist/components/ColorPicker/styles.js +1 -46
- package/dist/components/ColorPicker/utils/checkers.js +1 -55
- package/dist/components/ColorPicker/utils/conversors.js +2 -243
- package/dist/components/ColorPicker/utils/parsers.js +10 -108
- package/dist/components/ComposeIcon/index.js +2 -48
- package/dist/components/ComposeIcon/styles.js +1 -53
- package/dist/components/DateInput/DateInput-example.js +7 -45
- package/dist/components/DateInput/components/ModalWrapper/index.js +1 -35
- package/dist/components/DateInput/components/ModalWrapper/styles.js +1 -21
- package/dist/components/DateInput/dateInput.test.js +2 -43
- package/dist/components/DateInput/index.js +2 -104
- package/dist/components/DateInput/styles.js +1 -18
- package/dist/components/DatePicker/components/DatePickerContent.js +2 -222
- package/dist/components/DatePicker/components/DateYearPicker.js +1 -102
- package/dist/components/DatePicker/datepicker.test.js +1 -120
- package/dist/components/DatePicker/index.js +1 -236
- package/dist/components/DatePicker/styles.js +1 -88
- package/dist/components/DatePicker/utils/getMonthName.js +1 -11
- package/dist/components/Dialog/dialog-example.js +1 -46
- package/dist/components/Dialog/dialog.test.js +1 -68
- package/dist/components/Dialog/index.js +2 -100
- package/dist/components/Dialog/styles.js +1 -31
- package/dist/components/Dropzone/dropzone.test.js +1 -69
- package/dist/components/Dropzone/index.js +1 -289
- package/dist/components/Dropzone/styles.js +1 -75
- package/dist/components/Dropzone/utils/accepts.js +2 -27
- package/dist/components/EmojiPicker/Emote/index.js +2 -24
- package/dist/components/EmojiPicker/Emote/styles.js +1 -27
- package/dist/components/EmojiPicker/EmotePickerData/constants.js +1 -51
- package/dist/components/EmojiPicker/EmotePickerData/index.js +2 -159
- package/dist/components/EmojiPicker/EmotePickerData/styles.js +1 -57
- package/dist/components/EmojiPicker/EmotePickerData/utils.js +1 -41
- package/dist/components/EmojiPicker/Example/EmotePickerExample.js +1 -43
- package/dist/components/EmojiPicker/animation.js +1 -43
- package/dist/components/EmojiPicker/index.js +1 -169
- package/dist/components/EmojiPicker/styles.js +1 -21
- package/dist/components/Flex/flex.test.js +1 -336
- package/dist/components/Flex/index.js +1 -49
- package/dist/components/Flex/styles.js +1 -25
- package/dist/components/Grid/grid.test.js +1 -134
- package/dist/components/Grid/index.js +1 -51
- package/dist/components/Grid/styles.js +1 -48
- package/dist/components/Icon/data/beauty.js +2 -206
- package/dist/components/Icon/data/dash.js +2 -2
- package/dist/components/Icon/data/ecommerce.js +2 -94
- package/dist/components/Icon/data/form.js +2 -248
- package/dist/components/Icon/data/health.js +2 -255
- package/dist/components/Icon/data/illustrations.js +2 -318
- package/dist/components/Icon/data/men.js +2 -52
- package/dist/components/Icon/data/payment.js +2 -94
- package/dist/components/Icon/data/pedidoPago.js +2 -45
- package/dist/components/Icon/data/physicalPerfomance.js +2 -283
- package/dist/components/Icon/data/social.js +2 -24
- package/dist/components/Icon/data/status.js +2 -115
- package/dist/components/Icon/data/summer.js +2 -52
- package/dist/components/Icon/data/woman.js +2 -80
- package/dist/components/Icon/icon.test.js +1 -57
- package/dist/components/Icon/index.js +1 -53
- package/dist/components/Icon/scripts/build.js +9 -104
- package/dist/components/Icon/scripts/extractor.js +2 -33
- package/dist/components/Icon/scripts/run-build.js +2 -7
- package/dist/components/Icon/scripts/writers.js +3 -34
- package/dist/components/Icon/styles.js +1 -22
- package/dist/components/Icon/utils/allIcons.js +1 -28
- package/dist/components/Icon/utils/iconExists.js +1 -13
- package/dist/components/IconItem/IconItem.test.js +1 -58
- package/dist/components/IconItem/index.js +1 -52
- package/dist/components/IconItem/styles.js +1 -43
- package/dist/components/Illustration/illustration.test.js +4 -50
- package/dist/components/Illustration/index.js +2 -65
- package/dist/components/Illustration/styles.js +1 -65
- package/dist/components/ImageItem/imageFake.js +1 -25
- package/dist/components/ImageItem/index.js +2 -66
- package/dist/components/ImageItem/input.test.js +1 -85
- package/dist/components/ImageItem/styles.js +1 -61
- package/dist/components/Input/index.js +1 -163
- package/dist/components/Input/input.test.js +1 -120
- package/dist/components/Input/styles.js +1 -177
- package/dist/components/Label/index.js +1 -45
- package/dist/components/Label/label.test.js +1 -83
- package/dist/components/Label/styles.js +1 -21
- package/dist/components/List/index.js +1 -39
- package/dist/components/List/list.test.js +1 -64
- package/dist/components/List/styles.js +1 -23
- package/dist/components/Modal/ModalExample.js +1 -70
- package/dist/components/Modal/index.js +1 -145
- package/dist/components/Modal/modal.test.js +1 -179
- package/dist/components/Modal/styles.js +1 -33
- package/dist/components/MultipleSelect/MultipleSelect.test.js +1 -334
- package/dist/components/MultipleSelect/animations.js +1 -25
- package/dist/components/MultipleSelect/components/InputWrapper/index.js +1 -26
- package/dist/components/MultipleSelect/components/OptionsArea/index.js +1 -244
- package/dist/components/MultipleSelect/components/OptionsArea/styles.js +1 -68
- package/dist/components/MultipleSelect/components/SelectArea/ButtonsArea.js +1 -27
- package/dist/components/MultipleSelect/components/SelectArea/SelectAreaWrapper.js +1 -37
- package/dist/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.js +1 -49
- package/dist/components/MultipleSelect/components/SelectArea/index.js +1 -100
- package/dist/components/MultipleSelect/components/SelectArea/styles.js +1 -36
- package/dist/components/MultipleSelect/components/index.js +1 -38
- package/dist/components/MultipleSelect/index.js +1 -209
- package/dist/components/NewSelect/Examples/constants.js +1 -56
- package/dist/components/NewSelect/Examples/index.js +1 -161
- package/dist/components/NewSelect/components/Chip/index.js +1 -36
- package/dist/components/NewSelect/components/Chip/styles.js +1 -24
- package/dist/components/NewSelect/components/OptionsSelect/styles.js +1 -21
- package/dist/components/NewSelect/components/SelectInputSearch/index.js +1 -24
- package/dist/components/NewSelect/components/SelectItem/index.js +1 -22
- package/dist/components/NewSelect/components/SelectItem/styles.js +1 -24
- package/dist/components/NewSelect/index.js +1 -18
- package/dist/components/NewSelect/multiple/index.js +1 -246
- package/dist/components/NewSelect/newSelect.test.js +1 -108
- package/dist/components/NewSelect/single/index.js +1 -183
- package/dist/components/NewSelect/styles.js +1 -44
- package/dist/components/Observer/index.js +1 -59
- package/dist/components/Observer/observer.test.js +2 -43
- package/dist/components/Pagination/hooks/usePagination.js +1 -57
- package/dist/components/Pagination/index.js +1 -174
- package/dist/components/Pagination/pagination.test.js +1 -118
- package/dist/components/Pagination/styles.js +1 -78
- package/dist/components/Progress/Circle/index.js +1 -102
- package/dist/components/Progress/Circle/styles.js +1 -69
- package/dist/components/Progress/Linear/index.js +1 -62
- package/dist/components/Progress/Linear/styles.js +1 -66
- package/dist/components/Progress/getSteps.js +1 -17
- package/dist/components/Progress/index.js +1 -39
- package/dist/components/Progress/progress.test.js +1 -109
- package/dist/components/Radio/components/RadioGroup/index.d.ts +5 -0
- package/dist/components/Radio/components/RadioGroup/index.d.ts.map +1 -0
- package/dist/components/Radio/components/RadioGroup/index.js +1 -0
- package/dist/components/Radio/components/RadioGroup/styles.d.ts +19 -0
- package/dist/components/Radio/components/RadioGroup/styles.d.ts.map +1 -0
- package/dist/components/Radio/components/RadioGroup/styles.js +1 -0
- package/dist/components/Radio/components/RadioGroup/types.d.ts +17 -0
- package/dist/components/Radio/components/RadioGroup/types.d.ts.map +1 -0
- package/dist/components/Radio/components/RadioGroup/types.js +1 -0
- package/dist/components/Radio/index.d.ts +5 -0
- package/dist/components/Radio/index.d.ts.map +1 -0
- package/dist/components/Radio/index.js +1 -0
- package/dist/components/Radio/styles.d.ts +10 -0
- package/dist/components/Radio/styles.d.ts.map +1 -0
- package/dist/components/Radio/styles.js +1 -0
- package/dist/components/Radio/types.d.ts +6 -0
- package/dist/components/Radio/types.d.ts.map +1 -0
- package/dist/components/Radio/types.js +1 -0
- package/dist/components/Rating/index.js +1 -133
- package/dist/components/Rating/rating.test.js +1 -63
- package/dist/components/Rating/styles.js +1 -27
- package/dist/components/ReactPortal/index.js +1 -43
- package/dist/components/ReactPortal/reactPortal.test.js +1 -21
- package/dist/components/ReactPortal/utils/createWrapperAndApprendToBody.js +1 -12
- package/dist/components/Select/components/OptionsSelect/index.js +1 -73
- package/dist/components/Select/components/OptionsSelect/styles.js +1 -21
- package/dist/components/Select/index.js +4 -247
- package/dist/components/Select/select.test.js +1 -58
- package/dist/components/Select/styles.js +1 -46
- package/dist/components/Skeleton/index.js +1 -28
- package/dist/components/Skeleton/skeleton.test.js +1 -90
- package/dist/components/Skeleton/styles.js +1 -27
- package/dist/components/Slider/SliderExample.js +1 -52
- package/dist/components/Slider/components/SliderPointer.js +1 -39
- package/dist/components/Slider/components/SliderRail.js +1 -116
- package/dist/components/Slider/components/SliderSelector.js +1 -173
- package/dist/components/Slider/hooks/useEventCallback.js +1 -16
- package/dist/components/Slider/index.js +1 -137
- package/dist/components/Slider/slider.test.js +1 -121
- package/dist/components/Slider/styles.js +1 -69
- package/dist/components/Spinner/index.js +1 -26
- package/dist/components/Spinner/spinner.test.js +1 -45
- package/dist/components/Spinner/styles.js +1 -23
- package/dist/components/Steps/components/StepIcon/index.js +1 -50
- package/dist/components/Steps/components/StepIcon/styles.js +1 -42
- package/dist/components/Steps/components/StepIcon/utils.js +1 -22
- package/dist/components/Steps/index.js +1 -116
- package/dist/components/Steps/steps.test.js +1 -53
- package/dist/components/Steps/styles.js +1 -96
- package/dist/components/Steps/utils.js +1 -15
- package/dist/components/Switch/index.js +1 -73
- package/dist/components/Switch/styles.js +1 -58
- package/dist/components/Switch/switch.test.js +2 -115
- package/dist/components/Table/components/MenuItem.js +1 -59
- package/dist/components/Table/components/TableSkeleton.js +1 -39
- package/dist/components/Table/components/animations.js +1 -24
- package/dist/components/Table/index.js +2 -253
- package/dist/components/Table/styles.js +1 -49
- package/dist/components/Table/table.test.js +1 -114
- package/dist/components/Tabs/TabsExample.js +1 -64
- package/dist/components/Tabs/components/Tab.js +1 -49
- package/dist/components/Tabs/components/TabPanel.js +1 -25
- package/dist/components/Tabs/components/Tabs.js +1 -107
- package/dist/components/Tabs/index.js +1 -26
- package/dist/components/Tabs/styles.js +1 -61
- package/dist/components/Tabs/tabs.test.js +1 -146
- package/dist/components/Tag/index.js +1 -53
- package/dist/components/Tag/styles.js +1 -34
- package/dist/components/Tag/tag.test.js +1 -64
- package/dist/components/TextAreaInput/index.js +1 -74
- package/dist/components/TextAreaInput/styles.js +1 -53
- package/dist/components/TextAreaInput/text-area-input.test.js +1 -81
- package/dist/components/Thumbnail/index.js +1 -125
- package/dist/components/Thumbnail/styles.js +1 -47
- package/dist/components/Thumbnail/thumbnail.test.js +1 -66
- package/dist/components/Thumbnail/utils/index.js +1 -27
- package/dist/components/Thumbnail/utils/validate-file-size.js +1 -10
- package/dist/components/Thumbnail/utils/validate-file-type.js +1 -9
- package/dist/components/TimeInput/constants.js +1 -29
- package/dist/components/TimeInput/index.js +1 -288
- package/dist/components/TimeInput/styles.js +1 -34
- package/dist/components/TimeInput/utils.js +1 -94
- package/dist/components/Timeline/components/Timeline.js +1 -17
- package/dist/components/Timeline/components/TimelineContent.js +1 -61
- package/dist/components/Timeline/components/TimelineItem.js +1 -25
- package/dist/components/Timeline/components/TimelineSeparator.js +1 -20
- package/dist/components/Timeline/index.js +1 -33
- package/dist/components/Timeline/styles.js +1 -37
- package/dist/components/Timeline/timeline.test.js +1 -138
- package/dist/components/Toast/button-example.js +1 -31
- package/dist/components/Toast/components/Toast.js +1 -79
- package/dist/components/Toast/contexts/ToastProvider.js +1 -72
- package/dist/components/Toast/hooks/useToast.js +1 -18
- package/dist/components/Toast/index.js +1 -111
- package/dist/components/Toast/styles.js +1 -36
- package/dist/components/Toast/toast.test.js +1 -129
- package/dist/components/Tooltip/components/TooltipLabel.js +1 -71
- package/dist/components/Tooltip/example.js +1 -27
- package/dist/components/Tooltip/index.js +1 -187
- package/dist/components/Tooltip/styles.js +1 -20
- package/dist/components/Typography/index.js +1 -37
- package/dist/components/Typography/styles.js +1 -15
- package/dist/components/Typography/typography.test.js +1 -288
- package/dist/index.d.ts +5 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -548
- package/dist/shared/animations/opacityAnimation.js +1 -21
- package/dist/shared/assets/emotes.js +1 -1
- package/dist/shared/components/FocusLock/index.js +5 -86
- package/dist/shared/formatters/format-number.js +5 -41
- package/dist/shared/global.js +1 -8
- package/dist/shared/hooks/devices.js +1 -14
- package/dist/shared/hooks/useBreakpoints.js +2 -95
- package/dist/shared/hooks/useDebounce.js +1 -35
- package/dist/shared/hooks/useDevices.js +2 -42
- package/dist/shared/hooks/useDisableBodyScroll.js +5 -52
- package/dist/shared/hooks/useDraggableScroll/index.js +5 -65
- package/dist/shared/hooks/useKeyPress.js +1 -18
- package/dist/shared/hooks/useObserver.js +2 -29
- package/dist/shared/hooks/useOnClickOutside.js +1 -30
- package/dist/shared/hooks/useReposition/index.js +2 -53
- package/dist/shared/hooks/useSystemTheme.js +1 -38
- package/dist/shared/hooks/useWindowSize.js +1 -36
- package/dist/shared/tests/test-utils.js +1 -31
- package/dist/shared/theme/button-example.js +1 -31
- package/dist/shared/theme/contexts/ThemeContext.js +1 -90
- package/dist/shared/theme/hooks/useColorMode.js +1 -18
- package/dist/shared/theme/hooks/useColorModeValue.js +1 -13
- package/dist/shared/theme/hooks/useTheme.js +1 -17
- package/dist/shared/theme/index.js +1 -67
- package/dist/shared/theme/objects/breakpoints.js +1 -15
- package/dist/shared/theme/objects/colors.js +1 -177
- package/dist/shared/theme/objects/shadows.js +1 -19
- package/dist/shared/theme/objects/sizes.js +6 -33
- package/dist/shared/theme/objects/spaces.js +1 -75
- package/dist/shared/theme/objects/transitions.js +1 -10
- package/dist/shared/theme/objects/typography.js +1 -20
- package/dist/shared/theme/objects/z-indexes.js +1 -20
- package/dist/shared/theme/theme.js +1 -36
- package/dist/shared/theme/theme.test.js +1 -94
- package/dist/shared/theme/utils/extendTheme.js +1 -25
- package/dist/shared/theme/utils/localStorageController.js +1 -21
- package/dist/styled.d.js +1 -3
- package/dist/utils/GenerateKey.js +3 -18
- package/dist/utils/brightnessColorChange.js +2 -17
- package/dist/utils/colorCheck.js +6 -64
- package/dist/utils/colorFunctions.js +1 -39
- package/dist/utils/colorToGray.js +2 -64
- package/dist/utils/customColorMode.js +1 -11
- package/dist/utils/file.js +5 -124
- package/dist/utils/formatters/bytes.js +2 -17
- package/dist/utils/formatters/capitalize.js +2 -11
- package/dist/utils/formatters/cep.js +3 -18
- package/dist/utils/formatters/cnpj.js +4 -38
- package/dist/utils/formatters/color.js +12 -101
- package/dist/utils/formatters/cpf.js +16 -85
- package/dist/utils/formatters/credit-card.js +5 -54
- package/dist/utils/formatters/email.js +1 -8
- package/dist/utils/formatters/index.js +1 -170
- package/dist/utils/formatters/name.js +4 -31
- package/dist/utils/formatters/number.js +5 -14
- package/dist/utils/formatters/passport.js +5 -33
- package/dist/utils/formatters/phone.js +17 -214
- package/dist/utils/formatters/price.js +3 -21
- package/dist/utils/formatters/rg.js +3 -18
- package/dist/utils/formatters/strings.js +4 -27
- package/dist/utils/fuctionsColors.js +1 -39
- package/dist/utils/generateUUID.js +1 -13
- package/dist/utils/getColorValue.js +2 -23
- package/dist/utils/getSvg.js +1 -17
- package/dist/utils/getValuesBySize.js +1 -9
- package/dist/utils/invertColor.js +4 -40
- package/package.json +2 -1
|
@@ -1,25 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.StyledFlexContainer = void 0;
|
|
7
|
-
var _react = require("@emotion/react");
|
|
8
|
-
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
|
-
var _templateObject;
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
12
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
13
|
-
var StyledFlexContainer = _styled.default.div(function (props) {
|
|
14
|
-
var getSpacingOnTheme = function getSpacingOnTheme(property) {
|
|
15
|
-
var parseAllKeysToString = Object.keys(props.theme.space).map(function (key) {
|
|
16
|
-
return key.toString();
|
|
17
|
-
});
|
|
18
|
-
if (!parseAllKeysToString.includes((property === null || property === void 0 ? void 0 : property.toString()) || '')) {
|
|
19
|
-
return property || '';
|
|
20
|
-
}
|
|
21
|
-
return props.theme.space[property];
|
|
22
|
-
};
|
|
23
|
-
return (0, _react.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n @media screen and (min-width: ", ") {\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n }\n\n @media screen and (min-width: ", ") {\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n }\n\n @media screen and (min-width: ", ") {\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n }\n\n @media screen and (min-width: ", ") {\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n }\n\n @media screen and (min-width: ", ") {\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n }\n "])), typeof props.flexDirection === 'string' && "\n flex-direction: ".concat(props.flexDirection, ";\n "), _typeof(props.flexDirection) === 'object' && "\n flex-direction: ".concat(props.flexDirection.base || '', ";\n "), typeof props.alignItems === 'string' && "\n align-items: ".concat(props.alignItems, ";\n "), _typeof(props.alignItems) === 'object' && "\n align-items: ".concat(props.alignItems.base || '', ";\n "), typeof props.alignContent === 'string' && "\n align-content: ".concat(props.alignContent, ";\n "), _typeof(props.alignContent) === 'object' && "\n align-content: ".concat(props.alignContent.base || '', ";\n "), typeof props.alignSelf === 'string' && "\n align-self: ".concat(props.alignSelf, ";\n "), _typeof(props.alignSelf) === 'object' && "\n align-self: ".concat(props.alignSelf.base || '', ";\n "), typeof props.justifyContent === 'string' && "\n justify-content: ".concat(props.justifyContent, ";\n "), _typeof(props.justifyContent) === 'object' && "\n justify-content: ".concat(props.justifyContent.base || '', ";\n "), typeof props.justifySelf === 'string' && "\n justify-self: ".concat(props.justifySelf, ";\n "), _typeof(props.justifySelf) === 'object' && "\n justify-self: ".concat(props.justifySelf.base || '', ";\n "), typeof props.spacing === 'string' && "\n gap: ".concat(getSpacingOnTheme(props.spacing), ";\n "), _typeof(props.spacing) === 'object' && "\n gap: ".concat(getSpacingOnTheme(props.spacing.base || ''), ";\n "), typeof props.wrap === 'string' && "\n flex-wrap: ".concat(props.wrap, ";\n "), _typeof(props.wrap) === 'object' && "\n flex-wrap: ".concat(props.wrap.base || '', ";\n "), typeof props.grow === 'string' && "\n flex-grow: ".concat(props.grow, ";\n "), _typeof(props.grow) === 'object' && "\n flex-grow: ".concat(props.grow.base || '', ";\n "), typeof props.shrink === 'string' && "\n flex-shrink: ".concat(props.shrink, ";\n "), _typeof(props.shrink) === 'object' && "\n flex-shrink: ".concat(props.shrink.base || '', ";\n "), typeof props.basis === 'string' && "\n flex-basis: ".concat(props.basis, ";\n "), _typeof(props.basis) === 'object' && "\n flex-basis: ".concat(props.basis.base || '', ";\n "), props.theme.breakpoints.sm, _typeof(props.flexDirection) === 'object' && "\n flex-direction: ".concat(props.flexDirection.sm || '', ";\n "), _typeof(props.alignItems) === 'object' && "\n align-items: ".concat(props.alignItems.sm || '', ";\n "), _typeof(props.alignContent) === 'object' && "\n align-content: ".concat(props.alignContent.sm || '', ";\n "), _typeof(props.alignSelf) === 'object' && "\n align-self: ".concat(props.alignSelf.sm || '', ";\n "), _typeof(props.justifyContent) === 'object' && "\n justify-content: ".concat(props.justifyContent.sm || '', ";\n "), _typeof(props.justifySelf) === 'object' && "\n justify-self: ".concat(props.justifySelf.sm || '', ";\n "), _typeof(props.spacing) === 'object' && "\n gap: ".concat(getSpacingOnTheme(props.spacing.sm || '' || ''), ";\n "), _typeof(props.wrap) === 'object' && "\n flex-wrap: ".concat(props.wrap.sm || '', ";\n "), _typeof(props.grow) === 'object' && "\n flex-grow: ".concat(props.grow.sm || '', ";\n "), _typeof(props.shrink) === 'object' && "\n flex-shrink: ".concat(props.shrink.sm || '', ";\n "), _typeof(props.basis) === 'object' && "\n flex-basis: ".concat(props.basis.sm || '', ";\n "), props.theme.breakpoints.md, _typeof(props.flexDirection) === 'object' && "\n flex-direction: ".concat(props.flexDirection.md || '' || '', ";\n "), _typeof(props.alignItems) === 'object' && "\n align-items: ".concat(props.alignItems.md || '', ";\n "), _typeof(props.alignContent) === 'object' && "\n align-content: ".concat(props.alignContent.md || '', ";\n "), _typeof(props.alignSelf) === 'object' && "\n align-self: ".concat(props.alignSelf.md || '', ";\n "), _typeof(props.justifyContent) === 'object' && "\n justify-content: ".concat(props.justifyContent.md || '', ";\n "), _typeof(props.justifySelf) === 'object' && "\n justify-self: ".concat(props.justifySelf.md || '', ";\n "), _typeof(props.spacing) === 'object' && "\n gap: ".concat(getSpacingOnTheme(props.spacing.md || ''), ";\n "), _typeof(props.wrap) === 'object' && "\n flex-wrap: ".concat(props.wrap.md || '', ";\n "), _typeof(props.grow) === 'object' && "\n flex-grow: ".concat(props.grow.md || '', ";\n "), _typeof(props.shrink) === 'object' && "\n flex-shrink: ".concat(props.shrink.md || '', ";\n "), _typeof(props.basis) === 'object' && "\n flex-basis: ".concat(props.basis.md || '', ";\n "), props.theme.breakpoints.lg, _typeof(props.flexDirection) === 'object' && "\n flex-direction: ".concat(props.flexDirection.lg || '', ";\n "), _typeof(props.alignItems) === 'object' && "\n align-items: ".concat(props.alignItems.lg || '', ";\n "), _typeof(props.alignContent) === 'object' && "\n align-content: ".concat(props.alignContent.lg || '', ";\n "), _typeof(props.alignSelf) === 'object' && "\n align-self: ".concat(props.alignSelf.lg || '', ";\n "), _typeof(props.justifyContent) === 'object' && "\n justify-content: ".concat(props.justifyContent.lg || '', ";\n "), _typeof(props.justifySelf) === 'object' && "\n justify-self: ".concat(props.justifySelf.lg || '', ";\n "), _typeof(props.spacing) === 'object' && "\n gap: ".concat(getSpacingOnTheme(props.spacing.lg || ''), ";\n "), _typeof(props.wrap) === 'object' && "\n flex-wrap: ".concat(props.wrap.lg || '', ";\n "), _typeof(props.grow) === 'object' && "\n flex-grow: ".concat(props.grow.lg || '', ";\n "), _typeof(props.shrink) === 'object' && "\n flex-shrink: ".concat(props.shrink.lg || '', ";\n "), _typeof(props.basis) === 'object' && "\n flex-basis: ".concat(props.basis.lg || '', ";\n "), props.theme.breakpoints.xl, _typeof(props.flexDirection) === 'object' && "\n flex-direction: ".concat(props.flexDirection.xl || '', ";\n "), _typeof(props.alignItems) === 'object' && "\n align-items: ".concat(props.alignItems.xl || '', ";\n "), _typeof(props.alignContent) === 'object' && "\n align-content: ".concat(props.alignContent.xl || '', ";\n "), _typeof(props.alignSelf) === 'object' && "\n align-self: ".concat(props.alignSelf.xl || '', ";\n "), _typeof(props.justifyContent) === 'object' && "\n justify-content: ".concat(props.justifyContent.xl || '', ";\n "), _typeof(props.justifySelf) === 'object' && "\n justify-self: ".concat(props.justifySelf.xl || '', ";\n "), _typeof(props.spacing) === 'object' && "\n gap: ".concat(getSpacingOnTheme(props.spacing.xl || ''), ";\n "), _typeof(props.wrap) === 'object' && "\n flex-wrap: ".concat(props.wrap.xl || '', ";\n "), _typeof(props.grow) === 'object' && "\n flex-grow: ".concat(props.grow.xl || '', ";\n "), _typeof(props.shrink) === 'object' && "\n flex-shrink: ".concat(props.shrink.xl || '', ";\n "), _typeof(props.basis) === 'object' && "\n flex-basis: ".concat(props.basis.xl || '', ";\n "), props.theme.breakpoints.xxl, _typeof(props.flexDirection) === 'object' && "\n flex-direction: ".concat(props.flexDirection.xxl || '', ";\n "), _typeof(props.alignItems) === 'object' && "\n align-items: ".concat(props.alignItems.xxl || '', ";\n "), _typeof(props.alignContent) === 'object' && "\n align-content: ".concat(props.alignContent.xxl || '', ";\n "), _typeof(props.alignSelf) === 'object' && "\n align-self: ".concat(props.alignSelf.xxl || '', ";\n "), _typeof(props.justifyContent) === 'object' && "\n justify-content: ".concat(props.justifyContent.xxl || '', ";\n "), _typeof(props.justifySelf) === 'object' && "\n justify-self: ".concat(props.justifySelf.xxl || '', ";\n "), _typeof(props.spacing) === 'object' && "\n gap: ".concat(getSpacingOnTheme(props.spacing.xxl || ''), ";\n "), _typeof(props.wrap) === 'object' && "\n flex-wrap: ".concat(props.wrap.xxl || '', ";\n "), _typeof(props.grow) === 'object' && "\n flex-grow: ".concat(props.grow.xxl || '', ";\n "), _typeof(props.shrink) === 'object' && "\n flex-shrink: ".concat(props.shrink.xxl || '', ";\n "), _typeof(props.basis) === 'object' && "\n flex-basis: ".concat(props.basis.xxl || '', ";\n "));
|
|
24
|
-
});
|
|
25
|
-
exports.StyledFlexContainer = StyledFlexContainer;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.StyledFlexContainer=void 0;var _templateObject,_react=require("@emotion/react"),_styled=_interopRequireDefault(require("@emotion/styled"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var StyledFlexContainer=_styled.default.div(function(props){var getSpacingOnTheme=function(property){var parseAllKeysToString=Object.keys(props.theme.space).map(function(key){return key.toString()});return parseAllKeysToString.includes((null===property||void 0===property?void 0:property.toString())||"")?props.theme.space[property]:property||""};return(0,_react.css)(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n display: flex;\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n @media screen and (min-width: ",") {\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n }\n\n @media screen and (min-width: ",") {\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n }\n\n @media screen and (min-width: ",") {\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n }\n\n @media screen and (min-width: ",") {\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n }\n\n @media screen and (min-width: ",") {\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n }\n "])),"string"==typeof props.flexDirection&&"\n flex-direction: ".concat(props.flexDirection,";\n "),"object"===_typeof(props.flexDirection)&&"\n flex-direction: ".concat(props.flexDirection.base||"",";\n "),"string"==typeof props.alignItems&&"\n align-items: ".concat(props.alignItems,";\n "),"object"===_typeof(props.alignItems)&&"\n align-items: ".concat(props.alignItems.base||"",";\n "),"string"==typeof props.alignContent&&"\n align-content: ".concat(props.alignContent,";\n "),"object"===_typeof(props.alignContent)&&"\n align-content: ".concat(props.alignContent.base||"",";\n "),"string"==typeof props.alignSelf&&"\n align-self: ".concat(props.alignSelf,";\n "),"object"===_typeof(props.alignSelf)&&"\n align-self: ".concat(props.alignSelf.base||"",";\n "),"string"==typeof props.justifyContent&&"\n justify-content: ".concat(props.justifyContent,";\n "),"object"===_typeof(props.justifyContent)&&"\n justify-content: ".concat(props.justifyContent.base||"",";\n "),"string"==typeof props.justifySelf&&"\n justify-self: ".concat(props.justifySelf,";\n "),"object"===_typeof(props.justifySelf)&&"\n justify-self: ".concat(props.justifySelf.base||"",";\n "),"string"==typeof props.spacing&&"\n gap: ".concat(getSpacingOnTheme(props.spacing),";\n "),"object"===_typeof(props.spacing)&&"\n gap: ".concat(getSpacingOnTheme(props.spacing.base||""),";\n "),"string"==typeof props.wrap&&"\n flex-wrap: ".concat(props.wrap,";\n "),"object"===_typeof(props.wrap)&&"\n flex-wrap: ".concat(props.wrap.base||"",";\n "),"string"==typeof props.grow&&"\n flex-grow: ".concat(props.grow,";\n "),"object"===_typeof(props.grow)&&"\n flex-grow: ".concat(props.grow.base||"",";\n "),"string"==typeof props.shrink&&"\n flex-shrink: ".concat(props.shrink,";\n "),"object"===_typeof(props.shrink)&&"\n flex-shrink: ".concat(props.shrink.base||"",";\n "),"string"==typeof props.basis&&"\n flex-basis: ".concat(props.basis,";\n "),"object"===_typeof(props.basis)&&"\n flex-basis: ".concat(props.basis.base||"",";\n "),props.theme.breakpoints.sm,"object"===_typeof(props.flexDirection)&&"\n flex-direction: ".concat(props.flexDirection.sm||"",";\n "),"object"===_typeof(props.alignItems)&&"\n align-items: ".concat(props.alignItems.sm||"",";\n "),"object"===_typeof(props.alignContent)&&"\n align-content: ".concat(props.alignContent.sm||"",";\n "),"object"===_typeof(props.alignSelf)&&"\n align-self: ".concat(props.alignSelf.sm||"",";\n "),"object"===_typeof(props.justifyContent)&&"\n justify-content: ".concat(props.justifyContent.sm||"",";\n "),"object"===_typeof(props.justifySelf)&&"\n justify-self: ".concat(props.justifySelf.sm||"",";\n "),"object"===_typeof(props.spacing)&&"\n gap: ".concat(getSpacingOnTheme(props.spacing.sm||""||""),";\n "),"object"===_typeof(props.wrap)&&"\n flex-wrap: ".concat(props.wrap.sm||"",";\n "),"object"===_typeof(props.grow)&&"\n flex-grow: ".concat(props.grow.sm||"",";\n "),"object"===_typeof(props.shrink)&&"\n flex-shrink: ".concat(props.shrink.sm||"",";\n "),"object"===_typeof(props.basis)&&"\n flex-basis: ".concat(props.basis.sm||"",";\n "),props.theme.breakpoints.md,"object"===_typeof(props.flexDirection)&&"\n flex-direction: ".concat(props.flexDirection.md||""||"",";\n "),"object"===_typeof(props.alignItems)&&"\n align-items: ".concat(props.alignItems.md||"",";\n "),"object"===_typeof(props.alignContent)&&"\n align-content: ".concat(props.alignContent.md||"",";\n "),"object"===_typeof(props.alignSelf)&&"\n align-self: ".concat(props.alignSelf.md||"",";\n "),"object"===_typeof(props.justifyContent)&&"\n justify-content: ".concat(props.justifyContent.md||"",";\n "),"object"===_typeof(props.justifySelf)&&"\n justify-self: ".concat(props.justifySelf.md||"",";\n "),"object"===_typeof(props.spacing)&&"\n gap: ".concat(getSpacingOnTheme(props.spacing.md||""),";\n "),"object"===_typeof(props.wrap)&&"\n flex-wrap: ".concat(props.wrap.md||"",";\n "),"object"===_typeof(props.grow)&&"\n flex-grow: ".concat(props.grow.md||"",";\n "),"object"===_typeof(props.shrink)&&"\n flex-shrink: ".concat(props.shrink.md||"",";\n "),"object"===_typeof(props.basis)&&"\n flex-basis: ".concat(props.basis.md||"",";\n "),props.theme.breakpoints.lg,"object"===_typeof(props.flexDirection)&&"\n flex-direction: ".concat(props.flexDirection.lg||"",";\n "),"object"===_typeof(props.alignItems)&&"\n align-items: ".concat(props.alignItems.lg||"",";\n "),"object"===_typeof(props.alignContent)&&"\n align-content: ".concat(props.alignContent.lg||"",";\n "),"object"===_typeof(props.alignSelf)&&"\n align-self: ".concat(props.alignSelf.lg||"",";\n "),"object"===_typeof(props.justifyContent)&&"\n justify-content: ".concat(props.justifyContent.lg||"",";\n "),"object"===_typeof(props.justifySelf)&&"\n justify-self: ".concat(props.justifySelf.lg||"",";\n "),"object"===_typeof(props.spacing)&&"\n gap: ".concat(getSpacingOnTheme(props.spacing.lg||""),";\n "),"object"===_typeof(props.wrap)&&"\n flex-wrap: ".concat(props.wrap.lg||"",";\n "),"object"===_typeof(props.grow)&&"\n flex-grow: ".concat(props.grow.lg||"",";\n "),"object"===_typeof(props.shrink)&&"\n flex-shrink: ".concat(props.shrink.lg||"",";\n "),"object"===_typeof(props.basis)&&"\n flex-basis: ".concat(props.basis.lg||"",";\n "),props.theme.breakpoints.xl,"object"===_typeof(props.flexDirection)&&"\n flex-direction: ".concat(props.flexDirection.xl||"",";\n "),"object"===_typeof(props.alignItems)&&"\n align-items: ".concat(props.alignItems.xl||"",";\n "),"object"===_typeof(props.alignContent)&&"\n align-content: ".concat(props.alignContent.xl||"",";\n "),"object"===_typeof(props.alignSelf)&&"\n align-self: ".concat(props.alignSelf.xl||"",";\n "),"object"===_typeof(props.justifyContent)&&"\n justify-content: ".concat(props.justifyContent.xl||"",";\n "),"object"===_typeof(props.justifySelf)&&"\n justify-self: ".concat(props.justifySelf.xl||"",";\n "),"object"===_typeof(props.spacing)&&"\n gap: ".concat(getSpacingOnTheme(props.spacing.xl||""),";\n "),"object"===_typeof(props.wrap)&&"\n flex-wrap: ".concat(props.wrap.xl||"",";\n "),"object"===_typeof(props.grow)&&"\n flex-grow: ".concat(props.grow.xl||"",";\n "),"object"===_typeof(props.shrink)&&"\n flex-shrink: ".concat(props.shrink.xl||"",";\n "),"object"===_typeof(props.basis)&&"\n flex-basis: ".concat(props.basis.xl||"",";\n "),props.theme.breakpoints.xxl,"object"===_typeof(props.flexDirection)&&"\n flex-direction: ".concat(props.flexDirection.xxl||"",";\n "),"object"===_typeof(props.alignItems)&&"\n align-items: ".concat(props.alignItems.xxl||"",";\n "),"object"===_typeof(props.alignContent)&&"\n align-content: ".concat(props.alignContent.xxl||"",";\n "),"object"===_typeof(props.alignSelf)&&"\n align-self: ".concat(props.alignSelf.xxl||"",";\n "),"object"===_typeof(props.justifyContent)&&"\n justify-content: ".concat(props.justifyContent.xxl||"",";\n "),"object"===_typeof(props.justifySelf)&&"\n justify-self: ".concat(props.justifySelf.xxl||"",";\n "),"object"===_typeof(props.spacing)&&"\n gap: ".concat(getSpacingOnTheme(props.spacing.xxl||""),";\n "),"object"===_typeof(props.wrap)&&"\n flex-wrap: ".concat(props.wrap.xxl||"",";\n "),"object"===_typeof(props.grow)&&"\n flex-grow: ".concat(props.grow.xxl||"",";\n "),"object"===_typeof(props.shrink)&&"\n flex-shrink: ".concat(props.shrink.xxl||"",";\n "),"object"===_typeof(props.basis)&&"\n flex-basis: ".concat(props.basis.xxl||"",";\n "))});exports.StyledFlexContainer=StyledFlexContainer;
|
|
@@ -1,134 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _testUtils = require("../../shared/tests/test-utils");
|
|
4
|
-
var _react = require("@testing-library/react");
|
|
5
|
-
require("@testing-library/jest-dom");
|
|
6
|
-
var _ = _interopRequireDefault(require("."));
|
|
7
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
-
describe('Grid', function () {
|
|
10
|
-
it('should render the grid container', function () {
|
|
11
|
-
(0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
12
|
-
container: true,
|
|
13
|
-
"data-testid": "grid-container"
|
|
14
|
-
}));
|
|
15
|
-
expect(_react.screen.getByTestId('grid-container')).toBeInTheDocument();
|
|
16
|
-
});
|
|
17
|
-
it('should render grid container with item element', function () {
|
|
18
|
-
(0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
19
|
-
container: true,
|
|
20
|
-
"data-testid": "grid-container",
|
|
21
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
22
|
-
item: true,
|
|
23
|
-
"data-testid": "grid-item"
|
|
24
|
-
})
|
|
25
|
-
}));
|
|
26
|
-
expect(_react.screen.getByTestId('grid-item')).toBeInTheDocument();
|
|
27
|
-
});
|
|
28
|
-
it('should render grid container with multiple items', function () {
|
|
29
|
-
(0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsxs)(_.default, {
|
|
30
|
-
container: true,
|
|
31
|
-
templateColumns: "repeat(12, 1fr)",
|
|
32
|
-
"data-testid": "grid-container",
|
|
33
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
34
|
-
item: true,
|
|
35
|
-
"data-testid": "grid-item-1"
|
|
36
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
37
|
-
item: true,
|
|
38
|
-
"data-testid": "grid-item-2"
|
|
39
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
40
|
-
item: true,
|
|
41
|
-
"data-testid": "grid-item-3"
|
|
42
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
43
|
-
item: true,
|
|
44
|
-
"data-testid": "grid-item-4"
|
|
45
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
46
|
-
item: true,
|
|
47
|
-
"data-testid": "grid-item-5"
|
|
48
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
49
|
-
item: true,
|
|
50
|
-
"data-testid": "grid-item-6"
|
|
51
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
52
|
-
item: true,
|
|
53
|
-
"data-testid": "grid-item-7"
|
|
54
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
55
|
-
item: true,
|
|
56
|
-
"data-testid": "grid-item-8"
|
|
57
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
58
|
-
item: true,
|
|
59
|
-
"data-testid": "grid-item-9"
|
|
60
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
61
|
-
item: true,
|
|
62
|
-
"data-testid": "grid-item-10"
|
|
63
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
64
|
-
item: true,
|
|
65
|
-
"data-testid": "grid-item-11"
|
|
66
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
67
|
-
item: true,
|
|
68
|
-
"data-testid": "grid-item-12"
|
|
69
|
-
})]
|
|
70
|
-
}));
|
|
71
|
-
expect(_react.screen.getByTestId('grid-item-1')).toBeInTheDocument();
|
|
72
|
-
expect(_react.screen.getByTestId('grid-item-2')).toBeInTheDocument();
|
|
73
|
-
expect(_react.screen.getByTestId('grid-item-3')).toBeInTheDocument();
|
|
74
|
-
expect(_react.screen.getByTestId('grid-item-4')).toBeInTheDocument();
|
|
75
|
-
expect(_react.screen.getByTestId('grid-item-5')).toBeInTheDocument();
|
|
76
|
-
expect(_react.screen.getByTestId('grid-item-6')).toBeInTheDocument();
|
|
77
|
-
expect(_react.screen.getByTestId('grid-item-7')).toBeInTheDocument();
|
|
78
|
-
expect(_react.screen.getByTestId('grid-item-8')).toBeInTheDocument();
|
|
79
|
-
expect(_react.screen.getByTestId('grid-item-9')).toBeInTheDocument();
|
|
80
|
-
expect(_react.screen.getByTestId('grid-item-10')).toBeInTheDocument();
|
|
81
|
-
expect(_react.screen.getByTestId('grid-item-11')).toBeInTheDocument();
|
|
82
|
-
expect(_react.screen.getByTestId('grid-item-12')).toBeInTheDocument();
|
|
83
|
-
});
|
|
84
|
-
it('should render grid container with multiply elements of different sizes', function () {
|
|
85
|
-
(0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsxs)(_.default, {
|
|
86
|
-
container: true,
|
|
87
|
-
gridGap: 6,
|
|
88
|
-
"data-testid": "grid-container",
|
|
89
|
-
templateColumns: "repeat(12, 1fr)",
|
|
90
|
-
templateRows: "repeat(2, 1fr)",
|
|
91
|
-
style: {
|
|
92
|
-
height: '200px'
|
|
93
|
-
},
|
|
94
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
95
|
-
item: true,
|
|
96
|
-
rowSpan: 2,
|
|
97
|
-
colSpan: 2,
|
|
98
|
-
"data-testid": "grid-item-xs-2",
|
|
99
|
-
style: {
|
|
100
|
-
background: '#000'
|
|
101
|
-
}
|
|
102
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
103
|
-
item: true,
|
|
104
|
-
rowSpan: 2,
|
|
105
|
-
colSpan: 4,
|
|
106
|
-
"data-testid": "grid-item-xs-4",
|
|
107
|
-
style: {
|
|
108
|
-
background: '#000'
|
|
109
|
-
}
|
|
110
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
111
|
-
item: true,
|
|
112
|
-
rowSpan: 2,
|
|
113
|
-
colSpan: 6,
|
|
114
|
-
"data-testid": "grid-item-xs-6",
|
|
115
|
-
style: {
|
|
116
|
-
background: '#000'
|
|
117
|
-
}
|
|
118
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
119
|
-
item: true,
|
|
120
|
-
rowSpan: 2,
|
|
121
|
-
colSpan: 10,
|
|
122
|
-
"data-testid": "grid-item-xs-10",
|
|
123
|
-
style: {
|
|
124
|
-
background: '#000'
|
|
125
|
-
}
|
|
126
|
-
})]
|
|
127
|
-
}));
|
|
128
|
-
expect(_react.screen.getByTestId('grid-container')).toBeInTheDocument();
|
|
129
|
-
expect(_react.screen.getByTestId('grid-item-xs-2')).toBeInTheDocument();
|
|
130
|
-
expect(_react.screen.getByTestId('grid-item-xs-4')).toBeInTheDocument();
|
|
131
|
-
expect(_react.screen.getByTestId('grid-item-xs-6')).toBeInTheDocument();
|
|
132
|
-
expect(_react.screen.getByTestId('grid-item-xs-10')).toBeInTheDocument();
|
|
133
|
-
});
|
|
134
|
-
});
|
|
1
|
+
"use strict";var _testUtils=require("../../shared/tests/test-utils"),_react=require("@testing-library/react");require("@testing-library/jest-dom");var _=_interopRequireDefault(require(".")),_jsxRuntime=require("react/jsx-runtime");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}describe("Grid",function(){it("should render the grid container",function(){(0,_testUtils.render)(/*#__PURE__*/(0,_jsxRuntime.jsx)(_.default,{container:!0,"data-testid":"grid-container"})),expect(_react.screen.getByTestId("grid-container")).toBeInTheDocument()}),it("should render grid container with item element",function(){(0,_testUtils.render)(/*#__PURE__*/(0,_jsxRuntime.jsx)(_.default,{container:!0,"data-testid":"grid-container",children:/*#__PURE__*/(0,_jsxRuntime.jsx)(_.default,{item:!0,"data-testid":"grid-item"})})),expect(_react.screen.getByTestId("grid-item")).toBeInTheDocument()}),it("should render grid container with multiple items",function(){(0,_testUtils.render)(/*#__PURE__*/(0,_jsxRuntime.jsxs)(_.default,{container:!0,templateColumns:"repeat(12, 1fr)","data-testid":"grid-container",children:[/*#__PURE__*/(0,_jsxRuntime.jsx)(_.default,{item:!0,"data-testid":"grid-item-1"}),/*#__PURE__*/(0,_jsxRuntime.jsx)(_.default,{item:!0,"data-testid":"grid-item-2"}),/*#__PURE__*/(0,_jsxRuntime.jsx)(_.default,{item:!0,"data-testid":"grid-item-3"}),/*#__PURE__*/(0,_jsxRuntime.jsx)(_.default,{item:!0,"data-testid":"grid-item-4"}),/*#__PURE__*/(0,_jsxRuntime.jsx)(_.default,{item:!0,"data-testid":"grid-item-5"}),/*#__PURE__*/(0,_jsxRuntime.jsx)(_.default,{item:!0,"data-testid":"grid-item-6"}),/*#__PURE__*/(0,_jsxRuntime.jsx)(_.default,{item:!0,"data-testid":"grid-item-7"}),/*#__PURE__*/(0,_jsxRuntime.jsx)(_.default,{item:!0,"data-testid":"grid-item-8"}),/*#__PURE__*/(0,_jsxRuntime.jsx)(_.default,{item:!0,"data-testid":"grid-item-9"}),/*#__PURE__*/(0,_jsxRuntime.jsx)(_.default,{item:!0,"data-testid":"grid-item-10"}),/*#__PURE__*/(0,_jsxRuntime.jsx)(_.default,{item:!0,"data-testid":"grid-item-11"}),/*#__PURE__*/(0,_jsxRuntime.jsx)(_.default,{item:!0,"data-testid":"grid-item-12"})]})),expect(_react.screen.getByTestId("grid-item-1")).toBeInTheDocument(),expect(_react.screen.getByTestId("grid-item-2")).toBeInTheDocument(),expect(_react.screen.getByTestId("grid-item-3")).toBeInTheDocument(),expect(_react.screen.getByTestId("grid-item-4")).toBeInTheDocument(),expect(_react.screen.getByTestId("grid-item-5")).toBeInTheDocument(),expect(_react.screen.getByTestId("grid-item-6")).toBeInTheDocument(),expect(_react.screen.getByTestId("grid-item-7")).toBeInTheDocument(),expect(_react.screen.getByTestId("grid-item-8")).toBeInTheDocument(),expect(_react.screen.getByTestId("grid-item-9")).toBeInTheDocument(),expect(_react.screen.getByTestId("grid-item-10")).toBeInTheDocument(),expect(_react.screen.getByTestId("grid-item-11")).toBeInTheDocument(),expect(_react.screen.getByTestId("grid-item-12")).toBeInTheDocument()}),it("should render grid container with multiply elements of different sizes",function(){(0,_testUtils.render)(/*#__PURE__*/(0,_jsxRuntime.jsxs)(_.default,{container:!0,gridGap:6,"data-testid":"grid-container",templateColumns:"repeat(12, 1fr)",templateRows:"repeat(2, 1fr)",style:{height:"200px"},children:[/*#__PURE__*/(0,_jsxRuntime.jsx)(_.default,{item:!0,rowSpan:2,colSpan:2,"data-testid":"grid-item-xs-2",style:{background:"#000"}}),/*#__PURE__*/(0,_jsxRuntime.jsx)(_.default,{item:!0,rowSpan:2,colSpan:4,"data-testid":"grid-item-xs-4",style:{background:"#000"}}),/*#__PURE__*/(0,_jsxRuntime.jsx)(_.default,{item:!0,rowSpan:2,colSpan:6,"data-testid":"grid-item-xs-6",style:{background:"#000"}}),/*#__PURE__*/(0,_jsxRuntime.jsx)(_.default,{item:!0,rowSpan:2,colSpan:10,"data-testid":"grid-item-xs-10",style:{background:"#000"}})]})),expect(_react.screen.getByTestId("grid-container")).toBeInTheDocument(),expect(_react.screen.getByTestId("grid-item-xs-2")).toBeInTheDocument(),expect(_react.screen.getByTestId("grid-item-xs-4")).toBeInTheDocument(),expect(_react.screen.getByTestId("grid-item-xs-6")).toBeInTheDocument(),expect(_react.screen.getByTestId("grid-item-xs-10")).toBeInTheDocument()})});
|
|
@@ -1,51 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _styles = require("./styles");
|
|
9
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
var _excluded = ["container", "item", "gridGap", "templateAreas", "templateColumns", "templateRows", "colSpan", "colEnd", "colStart", "rowEnd", "rowStart", "rowSpan", "children"];
|
|
11
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
12
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
14
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
15
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
16
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
17
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
18
|
-
var Grid = function Grid(_ref) {
|
|
19
|
-
var container = _ref.container,
|
|
20
|
-
item = _ref.item,
|
|
21
|
-
gridGap = _ref.gridGap,
|
|
22
|
-
templateAreas = _ref.templateAreas,
|
|
23
|
-
templateColumns = _ref.templateColumns,
|
|
24
|
-
templateRows = _ref.templateRows,
|
|
25
|
-
colSpan = _ref.colSpan,
|
|
26
|
-
colEnd = _ref.colEnd,
|
|
27
|
-
colStart = _ref.colStart,
|
|
28
|
-
rowEnd = _ref.rowEnd,
|
|
29
|
-
rowStart = _ref.rowStart,
|
|
30
|
-
rowSpan = _ref.rowSpan,
|
|
31
|
-
children = _ref.children,
|
|
32
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
33
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.GridComponent, _objectSpread(_objectSpread({
|
|
34
|
-
container: container,
|
|
35
|
-
item: item,
|
|
36
|
-
gridGap: gridGap,
|
|
37
|
-
templateAreas: templateAreas,
|
|
38
|
-
templateColumns: templateColumns,
|
|
39
|
-
templateRows: templateRows,
|
|
40
|
-
colSpan: colSpan,
|
|
41
|
-
colEnd: colEnd,
|
|
42
|
-
colStart: colStart,
|
|
43
|
-
rowEnd: rowEnd,
|
|
44
|
-
rowStart: rowStart,
|
|
45
|
-
rowSpan: rowSpan
|
|
46
|
-
}, rest), {}, {
|
|
47
|
-
children: children
|
|
48
|
-
}));
|
|
49
|
-
};
|
|
50
|
-
var _default = Grid;
|
|
51
|
-
exports.default = _default;
|
|
1
|
+
"use strict";function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _styles=require("./styles"),_jsxRuntime=require("react/jsx-runtime"),_excluded=["container","item","gridGap","templateAreas","templateColumns","templateRows","colSpan","colEnd","colStart","rowEnd","rowStart","rowSpan","children"];function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var source,i=1;i<arguments.length;i++)source=null==arguments[i]?{}:arguments[i],i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))});return target}function _defineProperty(obj,key,value){return key=_toPropertyKey(key),key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return"symbol"===_typeof(key)?key:key+""}function _toPrimitive(input,hint){if("object"!==_typeof(input)||null===input)return input;var prim=input[Symbol.toPrimitive];if(prim!==void 0){var res=prim.call(input,hint||"default");if("object"!==_typeof(res))return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===hint?String:Number)(input)}function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=_objectWithoutPropertiesLoose(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++)key=sourceSymbolKeys[i],0<=excluded.indexOf(key)||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],0<=excluded.indexOf(key)||(target[key]=source[key]);return target}var Grid=function(_ref){var container=_ref.container,item=_ref.item,gridGap=_ref.gridGap,templateAreas=_ref.templateAreas,templateColumns=_ref.templateColumns,templateRows=_ref.templateRows,colSpan=_ref.colSpan,colEnd=_ref.colEnd,colStart=_ref.colStart,rowEnd=_ref.rowEnd,rowStart=_ref.rowStart,rowSpan=_ref.rowSpan,children=_ref.children,rest=_objectWithoutProperties(_ref,_excluded);return/*#__PURE__*/(0,_jsxRuntime.jsx)(_styles.GridComponent,_objectSpread(_objectSpread({container:container,item:item,gridGap:gridGap,templateAreas:templateAreas,templateColumns:templateColumns,templateRows:templateRows,colSpan:colSpan,colEnd:colEnd,colStart:colStart,rowEnd:rowEnd,rowStart:rowStart,rowSpan:rowSpan},rest),{},{children:children}))},_default=Grid;exports.default=_default;
|
|
@@ -1,48 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.GridComponent = void 0;
|
|
7
|
-
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
8
|
-
var _react = require("@emotion/react");
|
|
9
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43, _templateObject44, _templateObject45, _templateObject46, _templateObject47, _templateObject48, _templateObject49, _templateObject50, _templateObject51, _templateObject52, _templateObject53, _templateObject54, _templateObject55, _templateObject56, _templateObject57, _templateObject58, _templateObject59, _templateObject60, _templateObject61, _templateObject62, _templateObject63, _templateObject64, _templateObject65, _templateObject66, _templateObject67, _templateObject68, _templateObject69, _templateObject70, _templateObject71, _templateObject72, _templateObject73, _templateObject74, _templateObject75, _templateObject76, _templateObject77, _templateObject78, _templateObject79, _templateObject80, _templateObject81, _templateObject82, _templateObject83;
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
12
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
13
|
-
var GridComponent = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n ", "\n\n @media screen and (min-width: ", ") {\n ", "\n\n ", "\n }\n\n @media screen and (min-width: ", ") {\n ", "\n\n ", "\n }\n\n @media screen and (min-width: ", ") {\n ", "\n\n ", "\n }\n\n @media screen and (min-width: ", ") {\n ", "\n\n ", "\n }\n\n @media screen and (min-width: ", ") {\n ", "\n\n ", "\n }\n"])), function (props) {
|
|
14
|
-
return props.container && (0, _react.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: grid;\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n "])), _typeof(props.gridGap) === 'object' ? (0, _react.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n grid-gap: ", ";\n "])), props.gridGap.base ? props.theme.space[props.gridGap.base] : '') : (0, _react.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n grid-gap: ", ";\n "])), props.gridGap ? props.theme.space[props.gridGap] : ''), typeof props.templateColumns === 'string' && (0, _react.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n grid-template-columns: ", ";\n "])), props.templateColumns), _typeof(props.templateColumns) === 'object' && (0, _react.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n grid-template-columns: ", ";\n "])), props.templateColumns.base || ''), typeof props.templateRows === 'string' && (0, _react.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n grid-template-rows: ", ";\n "])), props.templateRows), _typeof(props.templateRows) === 'object' && (0, _react.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n grid-template-rows: ", ";\n "])), props.templateRows.base || ''), typeof props.templateAreas === 'string' && (0, _react.css)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n grid-template-areas: ", ";\n "])), props.templateAreas), _typeof(props.templateAreas) === 'object' && (0, _react.css)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n grid-template-areas: ", ";\n "])), props.templateAreas.base || ''));
|
|
15
|
-
}, function (props) {
|
|
16
|
-
return props.item && (0, _react.css)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n width: 100%;\n height: 100%;\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n "])), typeof props.colSpan === 'number' && (0, _react.css)(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n grid-column-start: span ", ";\n grid-column-end: span ", ";\n "])), props.colSpan, props.colSpan), _typeof(props.colSpan) === 'object' && (0, _react.css)(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n grid-column-start: ", ";\n grid-column-end: ", ";\n "])), props.colSpan.base ? "span ".concat(props.colSpan.base) : '', props.colSpan.base ? "span ".concat(props.colSpan.base) : ''), typeof props.rowSpan === 'number' && (0, _react.css)(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n grid-row-start: span ", ";\n grid-row-end: span ", ";\n "])), props.rowSpan, props.rowSpan), _typeof(props.rowSpan) === 'object' && (0, _react.css)(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n grid-row-start: ", ";\n grid-row-end: ", ";\n "])), props.rowSpan.base ? "span ".concat(props.rowSpan.base) : '', props.rowSpan.base ? "span ".concat(props.rowSpan.base) : ''), typeof props.colStart === 'number' && (0, _react.css)(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n grid-column-start: ", ";\n "])), props.colStart), _typeof(props.colStart) === 'object' && (0, _react.css)(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n grid-column-start: ", ";\n "])), props.colStart.base || ''), typeof props.colEnd === 'number' && (0, _react.css)(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n grid-column-end: ", ";\n "])), props.colEnd), _typeof(props.colEnd) === 'object' && (0, _react.css)(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n grid-column-end: ", ";\n "])), props.colEnd.base || ''), typeof props.rowStart === 'number' && (0, _react.css)(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n grid-row-start: ", ";\n "])), props.rowStart), _typeof(props.rowStart) === 'object' && (0, _react.css)(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n grid-row-start: ", ";\n "])), props.rowStart.base || ''), typeof props.rowEnd === 'number' && (0, _react.css)(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n grid-row-end: ", ";\n "])), props.rowEnd), _typeof(props.rowEnd) === 'object' && (0, _react.css)(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n grid-row-end: ", ";\n "])), props.rowEnd.base || ''));
|
|
17
|
-
}, function (props) {
|
|
18
|
-
return props.theme.breakpoints.sm;
|
|
19
|
-
}, function (props) {
|
|
20
|
-
return props.container && (0, _react.css)(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n "])), _typeof(props.gridGap) === 'object' && (0, _react.css)(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n grid-gap: ", ";\n "])), props.gridGap.sm ? props.theme.space[props.gridGap.sm] : ''), _typeof(props.templateColumns) === 'object' && (0, _react.css)(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["\n grid-template-columns: ", ";\n "])), props.templateColumns.sm || ''), _typeof(props.templateRows) === 'object' && (0, _react.css)(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["\n grid-template-rows: ", ";\n "])), props.templateRows.sm || ''), _typeof(props.templateAreas) === 'object' && (0, _react.css)(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["\n grid-template-areas: ", ";\n "])), props.templateAreas.sm || ''));
|
|
21
|
-
}, function (props) {
|
|
22
|
-
return props.item && (0, _react.css)(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n "])), _typeof(props.colSpan) === 'object' && (0, _react.css)(_templateObject30 || (_templateObject30 = _taggedTemplateLiteral(["\n grid-column-start: ", ";\n grid-column-end: ", ";\n "])), props.colSpan.sm ? "span ".concat(props.colSpan.sm) : '', props.colSpan.sm ? "span ".concat(props.colSpan.sm) : ''), _typeof(props.rowSpan) === 'object' && (0, _react.css)(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral(["\n grid-row-start: ", ";\n grid-row-end: ", ";\n "])), props.rowSpan.sm ? "span ".concat(props.rowSpan.sm) : '', props.rowSpan.sm ? "span ".concat(props.rowSpan.sm) : ''), _typeof(props.colStart) === 'object' && (0, _react.css)(_templateObject32 || (_templateObject32 = _taggedTemplateLiteral(["\n grid-column-start: ", ";\n "])), props.colStart.sm || ''), _typeof(props.colEnd) === 'object' && (0, _react.css)(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral(["\n grid-column-end: ", ";\n "])), props.colEnd.sm || ''), _typeof(props.rowStart) === 'object' && (0, _react.css)(_templateObject34 || (_templateObject34 = _taggedTemplateLiteral(["\n grid-row-start: ", ";\n "])), props.rowStart.sm || ''), _typeof(props.rowEnd) === 'object' && (0, _react.css)(_templateObject35 || (_templateObject35 = _taggedTemplateLiteral(["\n grid-row-end: ", ";\n "])), props.rowEnd.sm || ''));
|
|
23
|
-
}, function (props) {
|
|
24
|
-
return props.theme.breakpoints.md;
|
|
25
|
-
}, function (props) {
|
|
26
|
-
return props.container && (0, _react.css)(_templateObject36 || (_templateObject36 = _taggedTemplateLiteral(["\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n "])), _typeof(props.gridGap) === 'object' && (0, _react.css)(_templateObject37 || (_templateObject37 = _taggedTemplateLiteral(["\n grid-gap: ", ";\n "])), props.gridGap.md ? props.theme.space[props.gridGap.md] : ''), _typeof(props.templateColumns) === 'object' && (0, _react.css)(_templateObject38 || (_templateObject38 = _taggedTemplateLiteral(["\n grid-template-columns: ", ";\n "])), props.templateColumns.md || ''), _typeof(props.templateRows) === 'object' && (0, _react.css)(_templateObject39 || (_templateObject39 = _taggedTemplateLiteral(["\n grid-template-rows: ", ";\n "])), props.templateRows.md || ''), _typeof(props.templateAreas) === 'object' && (0, _react.css)(_templateObject40 || (_templateObject40 = _taggedTemplateLiteral(["\n grid-template-areas: ", ";\n "])), props.templateAreas.md || ''));
|
|
27
|
-
}, function (props) {
|
|
28
|
-
return props.item && (0, _react.css)(_templateObject41 || (_templateObject41 = _taggedTemplateLiteral(["\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n "])), _typeof(props.colSpan) === 'object' && (0, _react.css)(_templateObject42 || (_templateObject42 = _taggedTemplateLiteral(["\n grid-column-start: ", ";\n grid-column-end: ", ";\n "])), props.colSpan.md ? "span ".concat(props.colSpan.md) : '', props.colSpan.md ? "span ".concat(props.colSpan.md) : ''), _typeof(props.rowSpan) === 'object' && (0, _react.css)(_templateObject43 || (_templateObject43 = _taggedTemplateLiteral(["\n grid-row-start: ", ";\n grid-row-end: ", ";\n "])), props.rowSpan.md ? "span ".concat(props.rowSpan.md) : '', props.rowSpan.md ? "span ".concat(props.rowSpan.md) : ''), _typeof(props.colStart) === 'object' && (0, _react.css)(_templateObject44 || (_templateObject44 = _taggedTemplateLiteral(["\n grid-column-start: ", ";\n "])), props.colStart.md || ''), _typeof(props.colEnd) === 'object' && (0, _react.css)(_templateObject45 || (_templateObject45 = _taggedTemplateLiteral(["\n grid-column-end: ", ";\n "])), props.colEnd.md || ''), _typeof(props.rowStart) === 'object' && (0, _react.css)(_templateObject46 || (_templateObject46 = _taggedTemplateLiteral(["\n grid-row-start: ", ";\n "])), props.rowStart.md || ''), _typeof(props.rowEnd) === 'object' && (0, _react.css)(_templateObject47 || (_templateObject47 = _taggedTemplateLiteral(["\n grid-row-end: ", ";\n "])), props.rowEnd.md || ''));
|
|
29
|
-
}, function (props) {
|
|
30
|
-
return props.theme.breakpoints.lg;
|
|
31
|
-
}, function (props) {
|
|
32
|
-
return props.container && (0, _react.css)(_templateObject48 || (_templateObject48 = _taggedTemplateLiteral(["\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n "])), _typeof(props.gridGap) === 'object' && (0, _react.css)(_templateObject49 || (_templateObject49 = _taggedTemplateLiteral(["\n grid-gap: ", ";\n "])), props.gridGap.lg ? props.theme.space[props.gridGap.lg] : ''), _typeof(props.templateColumns) === 'object' && (0, _react.css)(_templateObject50 || (_templateObject50 = _taggedTemplateLiteral(["\n grid-template-columns: ", ";\n "])), props.templateColumns.lg || ''), _typeof(props.templateRows) === 'object' && (0, _react.css)(_templateObject51 || (_templateObject51 = _taggedTemplateLiteral(["\n grid-template-rows: ", ";\n "])), props.templateRows.lg || ''), _typeof(props.templateAreas) === 'object' && (0, _react.css)(_templateObject52 || (_templateObject52 = _taggedTemplateLiteral(["\n grid-template-areas: ", ";\n "])), props.templateAreas.lg || ''));
|
|
33
|
-
}, function (props) {
|
|
34
|
-
return props.item && (0, _react.css)(_templateObject53 || (_templateObject53 = _taggedTemplateLiteral(["\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n "])), _typeof(props.colSpan) === 'object' && (0, _react.css)(_templateObject54 || (_templateObject54 = _taggedTemplateLiteral(["\n grid-column-start: ", ";\n grid-column-end: ", ";\n "])), props.colSpan.lg ? "span ".concat(props.colSpan.lg) : '', props.colSpan.lg ? "span ".concat(props.colSpan.lg) : ''), _typeof(props.rowSpan) === 'object' && (0, _react.css)(_templateObject55 || (_templateObject55 = _taggedTemplateLiteral(["\n grid-row-start: ", ";\n grid-row-end: ", ";\n "])), props.rowSpan.lg ? "span ".concat(props.rowSpan.lg) : '', props.rowSpan.lg ? "span ".concat(props.rowSpan.lg) : ''), _typeof(props.colStart) === 'object' && (0, _react.css)(_templateObject56 || (_templateObject56 = _taggedTemplateLiteral(["\n grid-column-start: ", ";\n "])), props.colStart.lg || ''), _typeof(props.colEnd) === 'object' && (0, _react.css)(_templateObject57 || (_templateObject57 = _taggedTemplateLiteral(["\n grid-column-end: ", ";\n "])), props.colEnd.lg || ''), _typeof(props.rowStart) === 'object' && (0, _react.css)(_templateObject58 || (_templateObject58 = _taggedTemplateLiteral(["\n grid-row-start: ", ";\n "])), props.rowStart.lg || ''), _typeof(props.rowEnd) === 'object' && (0, _react.css)(_templateObject59 || (_templateObject59 = _taggedTemplateLiteral(["\n grid-row-end: ", ";\n "])), props.rowEnd.lg || ''));
|
|
35
|
-
}, function (props) {
|
|
36
|
-
return props.theme.breakpoints.xl;
|
|
37
|
-
}, function (props) {
|
|
38
|
-
return props.container && (0, _react.css)(_templateObject60 || (_templateObject60 = _taggedTemplateLiteral(["\n max-width: ", ";\n margin: 0 auto;\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n "])), props.theme.breakpoints.xl, _typeof(props.gridGap) === 'object' && (0, _react.css)(_templateObject61 || (_templateObject61 = _taggedTemplateLiteral(["\n grid-gap: ", ";\n "])), props.gridGap.xl ? props.theme.space[props.gridGap.xl] : ''), _typeof(props.templateColumns) === 'object' && (0, _react.css)(_templateObject62 || (_templateObject62 = _taggedTemplateLiteral(["\n grid-template-columns: ", ";\n "])), props.templateColumns.xl || ''), _typeof(props.templateRows) === 'object' && (0, _react.css)(_templateObject63 || (_templateObject63 = _taggedTemplateLiteral(["\n grid-template-rows: ", ";\n "])), props.templateRows.xl || ''), _typeof(props.templateAreas) === 'object' && (0, _react.css)(_templateObject64 || (_templateObject64 = _taggedTemplateLiteral(["\n grid-template-areas: ", ";\n "])), props.templateAreas.xl || ''));
|
|
39
|
-
}, function (props) {
|
|
40
|
-
return props.item && (0, _react.css)(_templateObject65 || (_templateObject65 = _taggedTemplateLiteral(["\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n "])), _typeof(props.colSpan) === 'object' && (0, _react.css)(_templateObject66 || (_templateObject66 = _taggedTemplateLiteral(["\n grid-column-start: ", ";\n grid-column-end: ", ";\n "])), props.colSpan.xl ? "span ".concat(props.colSpan.xl) : '', props.colSpan.xl ? "span ".concat(props.colSpan.xl) : ''), _typeof(props.rowSpan) === 'object' && (0, _react.css)(_templateObject67 || (_templateObject67 = _taggedTemplateLiteral(["\n grid-row-start: ", ";\n grid-row-end: ", ";\n "])), props.rowSpan.xl ? "span ".concat(props.rowSpan.xl) : '', props.rowSpan.xl ? "span ".concat(props.rowSpan.xl) : ''), _typeof(props.colStart) === 'object' && (0, _react.css)(_templateObject68 || (_templateObject68 = _taggedTemplateLiteral(["\n grid-column-start: ", ";\n "])), props.colStart.xl || ''), _typeof(props.colEnd) === 'object' && (0, _react.css)(_templateObject69 || (_templateObject69 = _taggedTemplateLiteral(["\n grid-column-end: ", ";\n "])), props.colEnd.xl || ''), _typeof(props.rowStart) === 'object' && (0, _react.css)(_templateObject70 || (_templateObject70 = _taggedTemplateLiteral(["\n grid-row-start: ", ";\n "])), props.rowStart.xl || ''), _typeof(props.rowEnd) === 'object' && (0, _react.css)(_templateObject71 || (_templateObject71 = _taggedTemplateLiteral(["\n grid-row-end: ", ";\n "])), props.rowEnd.xl || ''));
|
|
41
|
-
}, function (props) {
|
|
42
|
-
return props.theme.breakpoints.xxl;
|
|
43
|
-
}, function (props) {
|
|
44
|
-
return props.container && (0, _react.css)(_templateObject72 || (_templateObject72 = _taggedTemplateLiteral(["\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n "])), _typeof(props.gridGap) === 'object' && (0, _react.css)(_templateObject73 || (_templateObject73 = _taggedTemplateLiteral(["\n grid-gap: ", ";\n "])), props.gridGap.xxl ? props.theme.space[props.gridGap.xxl] : ''), _typeof(props.templateColumns) === 'object' && (0, _react.css)(_templateObject74 || (_templateObject74 = _taggedTemplateLiteral(["\n grid-template-columns: ", ";\n "])), props.templateColumns.xxl || ''), _typeof(props.templateRows) === 'object' && (0, _react.css)(_templateObject75 || (_templateObject75 = _taggedTemplateLiteral(["\n grid-template-rows: ", ";\n "])), props.templateRows.xxl || ''), _typeof(props.templateAreas) === 'object' && (0, _react.css)(_templateObject76 || (_templateObject76 = _taggedTemplateLiteral(["\n grid-template-areas: ", ";\n "])), props.templateAreas.xxl || ''));
|
|
45
|
-
}, function (props) {
|
|
46
|
-
return props.item && (0, _react.css)(_templateObject77 || (_templateObject77 = _taggedTemplateLiteral(["\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n "])), _typeof(props.colSpan) === 'object' && (0, _react.css)(_templateObject78 || (_templateObject78 = _taggedTemplateLiteral(["\n grid-column-start: ", ";\n grid-column-end: ", ";\n "])), props.colSpan.xxl ? "span ".concat(props.colSpan.xxl) : '', props.colSpan.xxl ? "span ".concat(props.colSpan.xxl) : ''), _typeof(props.rowSpan) === 'object' && (0, _react.css)(_templateObject79 || (_templateObject79 = _taggedTemplateLiteral(["\n grid-row-start: ", ";\n grid-row-end: ", ";\n "])), props.rowSpan.xxl ? "span ".concat(props.rowSpan.xxl) : '', props.rowSpan.xxl ? "span ".concat(props.rowSpan.xxl) : ''), _typeof(props.colStart) === 'object' && (0, _react.css)(_templateObject80 || (_templateObject80 = _taggedTemplateLiteral(["\n grid-column-start: ", ";\n "])), props.colStart.xxl || ''), _typeof(props.colEnd) === 'object' && (0, _react.css)(_templateObject81 || (_templateObject81 = _taggedTemplateLiteral(["\n grid-column-end: ", ";\n "])), props.colEnd.xxl || ''), _typeof(props.rowStart) === 'object' && (0, _react.css)(_templateObject82 || (_templateObject82 = _taggedTemplateLiteral(["\n grid-row-start: ", ";\n "])), props.rowStart.xxl || ''), _typeof(props.rowEnd) === 'object' && (0, _react.css)(_templateObject83 || (_templateObject83 = _taggedTemplateLiteral(["\n grid-row-end: ", ";\n "])), props.rowEnd.xxl || ''));
|
|
47
|
-
});
|
|
48
|
-
exports.GridComponent = GridComponent;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.GridComponent=void 0;var _templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,_templateObject10,_templateObject11,_templateObject12,_templateObject13,_templateObject14,_templateObject15,_templateObject16,_templateObject17,_templateObject18,_templateObject19,_templateObject20,_templateObject21,_templateObject22,_templateObject23,_templateObject24,_templateObject25,_templateObject26,_templateObject27,_templateObject28,_templateObject29,_templateObject30,_templateObject31,_templateObject32,_templateObject33,_templateObject34,_templateObject35,_templateObject36,_templateObject37,_templateObject38,_templateObject39,_templateObject40,_templateObject41,_templateObject42,_templateObject43,_templateObject44,_templateObject45,_templateObject46,_templateObject47,_templateObject48,_templateObject49,_templateObject50,_templateObject51,_templateObject52,_templateObject53,_templateObject54,_templateObject55,_templateObject56,_templateObject57,_templateObject58,_templateObject59,_templateObject60,_templateObject61,_templateObject62,_templateObject63,_templateObject64,_templateObject65,_templateObject66,_templateObject67,_templateObject68,_templateObject69,_templateObject70,_templateObject71,_templateObject72,_templateObject73,_templateObject74,_templateObject75,_templateObject76,_templateObject77,_templateObject78,_templateObject79,_templateObject80,_templateObject81,_templateObject82,_templateObject83,_styled=_interopRequireDefault(require("@emotion/styled")),_react=require("@emotion/react");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var GridComponent=_styled.default.div(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n ","\n\n ","\n\n @media screen and (min-width: ",") {\n ","\n\n ","\n }\n\n @media screen and (min-width: ",") {\n ","\n\n ","\n }\n\n @media screen and (min-width: ",") {\n ","\n\n ","\n }\n\n @media screen and (min-width: ",") {\n ","\n\n ","\n }\n\n @media screen and (min-width: ",") {\n ","\n\n ","\n }\n"])),function(props){return props.container&&(0,_react.css)(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n display: grid;\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n "])),"object"===_typeof(props.gridGap)?(0,_react.css)(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n grid-gap: ",";\n "])),props.gridGap.base?props.theme.space[props.gridGap.base]:""):(0,_react.css)(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n grid-gap: ",";\n "])),props.gridGap?props.theme.space[props.gridGap]:""),"string"==typeof props.templateColumns&&(0,_react.css)(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n grid-template-columns: ",";\n "])),props.templateColumns),"object"===_typeof(props.templateColumns)&&(0,_react.css)(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n grid-template-columns: ",";\n "])),props.templateColumns.base||""),"string"==typeof props.templateRows&&(0,_react.css)(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["\n grid-template-rows: ",";\n "])),props.templateRows),"object"===_typeof(props.templateRows)&&(0,_react.css)(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["\n grid-template-rows: ",";\n "])),props.templateRows.base||""),"string"==typeof props.templateAreas&&(0,_react.css)(_templateObject9||(_templateObject9=_taggedTemplateLiteral(["\n grid-template-areas: ",";\n "])),props.templateAreas),"object"===_typeof(props.templateAreas)&&(0,_react.css)(_templateObject10||(_templateObject10=_taggedTemplateLiteral(["\n grid-template-areas: ",";\n "])),props.templateAreas.base||""))},function(props){return props.item&&(0,_react.css)(_templateObject11||(_templateObject11=_taggedTemplateLiteral(["\n width: 100%;\n height: 100%;\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n "])),"number"==typeof props.colSpan&&(0,_react.css)(_templateObject12||(_templateObject12=_taggedTemplateLiteral(["\n grid-column-start: span ",";\n grid-column-end: span ",";\n "])),props.colSpan,props.colSpan),"object"===_typeof(props.colSpan)&&(0,_react.css)(_templateObject13||(_templateObject13=_taggedTemplateLiteral(["\n grid-column-start: ",";\n grid-column-end: ",";\n "])),props.colSpan.base?"span ".concat(props.colSpan.base):"",props.colSpan.base?"span ".concat(props.colSpan.base):""),"number"==typeof props.rowSpan&&(0,_react.css)(_templateObject14||(_templateObject14=_taggedTemplateLiteral(["\n grid-row-start: span ",";\n grid-row-end: span ",";\n "])),props.rowSpan,props.rowSpan),"object"===_typeof(props.rowSpan)&&(0,_react.css)(_templateObject15||(_templateObject15=_taggedTemplateLiteral(["\n grid-row-start: ",";\n grid-row-end: ",";\n "])),props.rowSpan.base?"span ".concat(props.rowSpan.base):"",props.rowSpan.base?"span ".concat(props.rowSpan.base):""),"number"==typeof props.colStart&&(0,_react.css)(_templateObject16||(_templateObject16=_taggedTemplateLiteral(["\n grid-column-start: ",";\n "])),props.colStart),"object"===_typeof(props.colStart)&&(0,_react.css)(_templateObject17||(_templateObject17=_taggedTemplateLiteral(["\n grid-column-start: ",";\n "])),props.colStart.base||""),"number"==typeof props.colEnd&&(0,_react.css)(_templateObject18||(_templateObject18=_taggedTemplateLiteral(["\n grid-column-end: ",";\n "])),props.colEnd),"object"===_typeof(props.colEnd)&&(0,_react.css)(_templateObject19||(_templateObject19=_taggedTemplateLiteral(["\n grid-column-end: ",";\n "])),props.colEnd.base||""),"number"==typeof props.rowStart&&(0,_react.css)(_templateObject20||(_templateObject20=_taggedTemplateLiteral(["\n grid-row-start: ",";\n "])),props.rowStart),"object"===_typeof(props.rowStart)&&(0,_react.css)(_templateObject21||(_templateObject21=_taggedTemplateLiteral(["\n grid-row-start: ",";\n "])),props.rowStart.base||""),"number"==typeof props.rowEnd&&(0,_react.css)(_templateObject22||(_templateObject22=_taggedTemplateLiteral(["\n grid-row-end: ",";\n "])),props.rowEnd),"object"===_typeof(props.rowEnd)&&(0,_react.css)(_templateObject23||(_templateObject23=_taggedTemplateLiteral(["\n grid-row-end: ",";\n "])),props.rowEnd.base||""))},function(props){return props.theme.breakpoints.sm},function(props){return props.container&&(0,_react.css)(_templateObject24||(_templateObject24=_taggedTemplateLiteral(["\n ",";\n\n ",";\n\n ",";\n\n ",";\n "])),"object"===_typeof(props.gridGap)&&(0,_react.css)(_templateObject25||(_templateObject25=_taggedTemplateLiteral(["\n grid-gap: ",";\n "])),props.gridGap.sm?props.theme.space[props.gridGap.sm]:""),"object"===_typeof(props.templateColumns)&&(0,_react.css)(_templateObject26||(_templateObject26=_taggedTemplateLiteral(["\n grid-template-columns: ",";\n "])),props.templateColumns.sm||""),"object"===_typeof(props.templateRows)&&(0,_react.css)(_templateObject27||(_templateObject27=_taggedTemplateLiteral(["\n grid-template-rows: ",";\n "])),props.templateRows.sm||""),"object"===_typeof(props.templateAreas)&&(0,_react.css)(_templateObject28||(_templateObject28=_taggedTemplateLiteral(["\n grid-template-areas: ",";\n "])),props.templateAreas.sm||""))},function(props){return props.item&&(0,_react.css)(_templateObject29||(_templateObject29=_taggedTemplateLiteral(["\n ",";\n\n ",";\n\n ",";\n\n ",";\n\n ",";\n\n ",";\n "])),"object"===_typeof(props.colSpan)&&(0,_react.css)(_templateObject30||(_templateObject30=_taggedTemplateLiteral(["\n grid-column-start: ",";\n grid-column-end: ",";\n "])),props.colSpan.sm?"span ".concat(props.colSpan.sm):"",props.colSpan.sm?"span ".concat(props.colSpan.sm):""),"object"===_typeof(props.rowSpan)&&(0,_react.css)(_templateObject31||(_templateObject31=_taggedTemplateLiteral(["\n grid-row-start: ",";\n grid-row-end: ",";\n "])),props.rowSpan.sm?"span ".concat(props.rowSpan.sm):"",props.rowSpan.sm?"span ".concat(props.rowSpan.sm):""),"object"===_typeof(props.colStart)&&(0,_react.css)(_templateObject32||(_templateObject32=_taggedTemplateLiteral(["\n grid-column-start: ",";\n "])),props.colStart.sm||""),"object"===_typeof(props.colEnd)&&(0,_react.css)(_templateObject33||(_templateObject33=_taggedTemplateLiteral(["\n grid-column-end: ",";\n "])),props.colEnd.sm||""),"object"===_typeof(props.rowStart)&&(0,_react.css)(_templateObject34||(_templateObject34=_taggedTemplateLiteral(["\n grid-row-start: ",";\n "])),props.rowStart.sm||""),"object"===_typeof(props.rowEnd)&&(0,_react.css)(_templateObject35||(_templateObject35=_taggedTemplateLiteral(["\n grid-row-end: ",";\n "])),props.rowEnd.sm||""))},function(props){return props.theme.breakpoints.md},function(props){return props.container&&(0,_react.css)(_templateObject36||(_templateObject36=_taggedTemplateLiteral(["\n ",";\n\n ",";\n\n ",";\n\n ",";\n "])),"object"===_typeof(props.gridGap)&&(0,_react.css)(_templateObject37||(_templateObject37=_taggedTemplateLiteral(["\n grid-gap: ",";\n "])),props.gridGap.md?props.theme.space[props.gridGap.md]:""),"object"===_typeof(props.templateColumns)&&(0,_react.css)(_templateObject38||(_templateObject38=_taggedTemplateLiteral(["\n grid-template-columns: ",";\n "])),props.templateColumns.md||""),"object"===_typeof(props.templateRows)&&(0,_react.css)(_templateObject39||(_templateObject39=_taggedTemplateLiteral(["\n grid-template-rows: ",";\n "])),props.templateRows.md||""),"object"===_typeof(props.templateAreas)&&(0,_react.css)(_templateObject40||(_templateObject40=_taggedTemplateLiteral(["\n grid-template-areas: ",";\n "])),props.templateAreas.md||""))},function(props){return props.item&&(0,_react.css)(_templateObject41||(_templateObject41=_taggedTemplateLiteral(["\n ",";\n\n ",";\n\n ",";\n\n ",";\n\n ",";\n\n ",";\n "])),"object"===_typeof(props.colSpan)&&(0,_react.css)(_templateObject42||(_templateObject42=_taggedTemplateLiteral(["\n grid-column-start: ",";\n grid-column-end: ",";\n "])),props.colSpan.md?"span ".concat(props.colSpan.md):"",props.colSpan.md?"span ".concat(props.colSpan.md):""),"object"===_typeof(props.rowSpan)&&(0,_react.css)(_templateObject43||(_templateObject43=_taggedTemplateLiteral(["\n grid-row-start: ",";\n grid-row-end: ",";\n "])),props.rowSpan.md?"span ".concat(props.rowSpan.md):"",props.rowSpan.md?"span ".concat(props.rowSpan.md):""),"object"===_typeof(props.colStart)&&(0,_react.css)(_templateObject44||(_templateObject44=_taggedTemplateLiteral(["\n grid-column-start: ",";\n "])),props.colStart.md||""),"object"===_typeof(props.colEnd)&&(0,_react.css)(_templateObject45||(_templateObject45=_taggedTemplateLiteral(["\n grid-column-end: ",";\n "])),props.colEnd.md||""),"object"===_typeof(props.rowStart)&&(0,_react.css)(_templateObject46||(_templateObject46=_taggedTemplateLiteral(["\n grid-row-start: ",";\n "])),props.rowStart.md||""),"object"===_typeof(props.rowEnd)&&(0,_react.css)(_templateObject47||(_templateObject47=_taggedTemplateLiteral(["\n grid-row-end: ",";\n "])),props.rowEnd.md||""))},function(props){return props.theme.breakpoints.lg},function(props){return props.container&&(0,_react.css)(_templateObject48||(_templateObject48=_taggedTemplateLiteral(["\n ",";\n\n ",";\n\n ",";\n\n ",";\n "])),"object"===_typeof(props.gridGap)&&(0,_react.css)(_templateObject49||(_templateObject49=_taggedTemplateLiteral(["\n grid-gap: ",";\n "])),props.gridGap.lg?props.theme.space[props.gridGap.lg]:""),"object"===_typeof(props.templateColumns)&&(0,_react.css)(_templateObject50||(_templateObject50=_taggedTemplateLiteral(["\n grid-template-columns: ",";\n "])),props.templateColumns.lg||""),"object"===_typeof(props.templateRows)&&(0,_react.css)(_templateObject51||(_templateObject51=_taggedTemplateLiteral(["\n grid-template-rows: ",";\n "])),props.templateRows.lg||""),"object"===_typeof(props.templateAreas)&&(0,_react.css)(_templateObject52||(_templateObject52=_taggedTemplateLiteral(["\n grid-template-areas: ",";\n "])),props.templateAreas.lg||""))},function(props){return props.item&&(0,_react.css)(_templateObject53||(_templateObject53=_taggedTemplateLiteral(["\n ",";\n\n ",";\n\n ",";\n\n ",";\n\n ",";\n\n ",";\n "])),"object"===_typeof(props.colSpan)&&(0,_react.css)(_templateObject54||(_templateObject54=_taggedTemplateLiteral(["\n grid-column-start: ",";\n grid-column-end: ",";\n "])),props.colSpan.lg?"span ".concat(props.colSpan.lg):"",props.colSpan.lg?"span ".concat(props.colSpan.lg):""),"object"===_typeof(props.rowSpan)&&(0,_react.css)(_templateObject55||(_templateObject55=_taggedTemplateLiteral(["\n grid-row-start: ",";\n grid-row-end: ",";\n "])),props.rowSpan.lg?"span ".concat(props.rowSpan.lg):"",props.rowSpan.lg?"span ".concat(props.rowSpan.lg):""),"object"===_typeof(props.colStart)&&(0,_react.css)(_templateObject56||(_templateObject56=_taggedTemplateLiteral(["\n grid-column-start: ",";\n "])),props.colStart.lg||""),"object"===_typeof(props.colEnd)&&(0,_react.css)(_templateObject57||(_templateObject57=_taggedTemplateLiteral(["\n grid-column-end: ",";\n "])),props.colEnd.lg||""),"object"===_typeof(props.rowStart)&&(0,_react.css)(_templateObject58||(_templateObject58=_taggedTemplateLiteral(["\n grid-row-start: ",";\n "])),props.rowStart.lg||""),"object"===_typeof(props.rowEnd)&&(0,_react.css)(_templateObject59||(_templateObject59=_taggedTemplateLiteral(["\n grid-row-end: ",";\n "])),props.rowEnd.lg||""))},function(props){return props.theme.breakpoints.xl},function(props){return props.container&&(0,_react.css)(_templateObject60||(_templateObject60=_taggedTemplateLiteral(["\n max-width: ",";\n margin: 0 auto;\n\n ",";\n\n ",";\n\n ",";\n\n ",";\n "])),props.theme.breakpoints.xl,"object"===_typeof(props.gridGap)&&(0,_react.css)(_templateObject61||(_templateObject61=_taggedTemplateLiteral(["\n grid-gap: ",";\n "])),props.gridGap.xl?props.theme.space[props.gridGap.xl]:""),"object"===_typeof(props.templateColumns)&&(0,_react.css)(_templateObject62||(_templateObject62=_taggedTemplateLiteral(["\n grid-template-columns: ",";\n "])),props.templateColumns.xl||""),"object"===_typeof(props.templateRows)&&(0,_react.css)(_templateObject63||(_templateObject63=_taggedTemplateLiteral(["\n grid-template-rows: ",";\n "])),props.templateRows.xl||""),"object"===_typeof(props.templateAreas)&&(0,_react.css)(_templateObject64||(_templateObject64=_taggedTemplateLiteral(["\n grid-template-areas: ",";\n "])),props.templateAreas.xl||""))},function(props){return props.item&&(0,_react.css)(_templateObject65||(_templateObject65=_taggedTemplateLiteral(["\n ",";\n\n ",";\n\n ",";\n\n ",";\n\n ",";\n\n ",";\n "])),"object"===_typeof(props.colSpan)&&(0,_react.css)(_templateObject66||(_templateObject66=_taggedTemplateLiteral(["\n grid-column-start: ",";\n grid-column-end: ",";\n "])),props.colSpan.xl?"span ".concat(props.colSpan.xl):"",props.colSpan.xl?"span ".concat(props.colSpan.xl):""),"object"===_typeof(props.rowSpan)&&(0,_react.css)(_templateObject67||(_templateObject67=_taggedTemplateLiteral(["\n grid-row-start: ",";\n grid-row-end: ",";\n "])),props.rowSpan.xl?"span ".concat(props.rowSpan.xl):"",props.rowSpan.xl?"span ".concat(props.rowSpan.xl):""),"object"===_typeof(props.colStart)&&(0,_react.css)(_templateObject68||(_templateObject68=_taggedTemplateLiteral(["\n grid-column-start: ",";\n "])),props.colStart.xl||""),"object"===_typeof(props.colEnd)&&(0,_react.css)(_templateObject69||(_templateObject69=_taggedTemplateLiteral(["\n grid-column-end: ",";\n "])),props.colEnd.xl||""),"object"===_typeof(props.rowStart)&&(0,_react.css)(_templateObject70||(_templateObject70=_taggedTemplateLiteral(["\n grid-row-start: ",";\n "])),props.rowStart.xl||""),"object"===_typeof(props.rowEnd)&&(0,_react.css)(_templateObject71||(_templateObject71=_taggedTemplateLiteral(["\n grid-row-end: ",";\n "])),props.rowEnd.xl||""))},function(props){return props.theme.breakpoints.xxl},function(props){return props.container&&(0,_react.css)(_templateObject72||(_templateObject72=_taggedTemplateLiteral(["\n ",";\n\n ",";\n\n ",";\n\n ",";\n "])),"object"===_typeof(props.gridGap)&&(0,_react.css)(_templateObject73||(_templateObject73=_taggedTemplateLiteral(["\n grid-gap: ",";\n "])),props.gridGap.xxl?props.theme.space[props.gridGap.xxl]:""),"object"===_typeof(props.templateColumns)&&(0,_react.css)(_templateObject74||(_templateObject74=_taggedTemplateLiteral(["\n grid-template-columns: ",";\n "])),props.templateColumns.xxl||""),"object"===_typeof(props.templateRows)&&(0,_react.css)(_templateObject75||(_templateObject75=_taggedTemplateLiteral(["\n grid-template-rows: ",";\n "])),props.templateRows.xxl||""),"object"===_typeof(props.templateAreas)&&(0,_react.css)(_templateObject76||(_templateObject76=_taggedTemplateLiteral(["\n grid-template-areas: ",";\n "])),props.templateAreas.xxl||""))},function(props){return props.item&&(0,_react.css)(_templateObject77||(_templateObject77=_taggedTemplateLiteral(["\n ",";\n\n ",";\n\n ",";\n\n ",";\n\n ",";\n\n ",";\n "])),"object"===_typeof(props.colSpan)&&(0,_react.css)(_templateObject78||(_templateObject78=_taggedTemplateLiteral(["\n grid-column-start: ",";\n grid-column-end: ",";\n "])),props.colSpan.xxl?"span ".concat(props.colSpan.xxl):"",props.colSpan.xxl?"span ".concat(props.colSpan.xxl):""),"object"===_typeof(props.rowSpan)&&(0,_react.css)(_templateObject79||(_templateObject79=_taggedTemplateLiteral(["\n grid-row-start: ",";\n grid-row-end: ",";\n "])),props.rowSpan.xxl?"span ".concat(props.rowSpan.xxl):"",props.rowSpan.xxl?"span ".concat(props.rowSpan.xxl):""),"object"===_typeof(props.colStart)&&(0,_react.css)(_templateObject80||(_templateObject80=_taggedTemplateLiteral(["\n grid-column-start: ",";\n "])),props.colStart.xxl||""),"object"===_typeof(props.colEnd)&&(0,_react.css)(_templateObject81||(_templateObject81=_taggedTemplateLiteral(["\n grid-column-end: ",";\n "])),props.colEnd.xxl||""),"object"===_typeof(props.rowStart)&&(0,_react.css)(_templateObject82||(_templateObject82=_taggedTemplateLiteral(["\n grid-row-start: ",";\n "])),props.rowStart.xxl||""),"object"===_typeof(props.rowEnd)&&(0,_react.css)(_templateObject83||(_templateObject83=_taggedTemplateLiteral(["\n grid-row-end: ",";\n "])),props.rowEnd.xxl||""))});exports.GridComponent=GridComponent;
|