@pedidopago/ui 1.5.20 → 1.5.21
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/types.d.ts +1 -1
- package/dist/components/Alert/types.d.ts.map +1 -1
- package/dist/components/Avatar/types.d.ts +1 -1
- package/dist/components/Avatar/types.d.ts.map +1 -1
- package/dist/components/Flex/styles.js +1 -1
- package/dist/components/Flex/types.d.ts +1 -1
- package/dist/components/Flex/types.d.ts.map +1 -1
- package/dist/components/IconItem/types.d.ts +1 -1
- package/dist/components/IconItem/types.d.ts.map +1 -1
- package/dist/components/MultipleSelect/types.d.ts +1 -1
- package/dist/components/MultipleSelect/types.d.ts.map +1 -1
- package/dist/components/Pagination/types.d.ts +1 -1
- package/dist/components/Pagination/types.d.ts.map +1 -1
- package/dist/components/Spinner/types.d.ts +1 -1
- package/dist/components/Spinner/types.d.ts.map +1 -1
- package/dist/shared/global.d.ts +2 -0
- package/dist/shared/global.d.ts.map +1 -0
- package/dist/utils/file.d.ts +1 -1
- package/dist/utils/file.d.ts.map +1 -1
- package/dist/utils/formatters/credit-card.d.ts +1 -1
- package/dist/utils/formatters/credit-card.d.ts.map +1 -1
- package/dist/utils/formatters/name.d.ts +1 -1
- package/dist/utils/formatters/name.d.ts.map +1 -1
- package/package.json +7 -4
- package/dist/components/Alert/alert.test.d.ts +0 -2
- package/dist/components/Alert/alert.test.d.ts.map +0 -1
- package/dist/components/Alert/alert.test.js +0 -92
- package/dist/components/Avatar/avatar.test.d.ts +0 -2
- package/dist/components/Avatar/avatar.test.d.ts.map +0 -1
- package/dist/components/Avatar/avatar.test.js +0 -74
- package/dist/components/Badge/badge.test.d.ts +0 -2
- package/dist/components/Badge/badge.test.d.ts.map +0 -1
- package/dist/components/Badge/badge.test.js +0 -82
- package/dist/components/Button/Button.test.d.ts +0 -2
- package/dist/components/Button/Button.test.d.ts.map +0 -1
- package/dist/components/Button/Button.test.js +0 -172
- package/dist/components/Card/card.test.d.ts +0 -2
- package/dist/components/Card/card.test.d.ts.map +0 -1
- package/dist/components/Card/card.test.js +0 -37
- package/dist/components/CheckboxInput/checkbox-input.test.d.ts +0 -2
- package/dist/components/CheckboxInput/checkbox-input.test.d.ts.map +0 -1
- package/dist/components/CheckboxInput/checkbox-input.test.js +0 -194
- package/dist/components/CollapseCard/expand-button.test.d.ts +0 -2
- package/dist/components/CollapseCard/expand-button.test.d.ts.map +0 -1
- package/dist/components/CollapseCard/expand-button.test.js +0 -196
- package/dist/components/ColorPicker/colorpicker.test.d.ts +0 -2
- package/dist/components/ColorPicker/colorpicker.test.d.ts.map +0 -1
- package/dist/components/ColorPicker/colorpicker.test.js +0 -74
- package/dist/components/DateInput/dateInput.test.d.ts +0 -2
- package/dist/components/DateInput/dateInput.test.d.ts.map +0 -1
- package/dist/components/DateInput/dateInput.test.js +0 -52
- package/dist/components/DatePicker/datepicker.test.d.ts +0 -2
- package/dist/components/DatePicker/datepicker.test.d.ts.map +0 -1
- package/dist/components/DatePicker/datepicker.test.js +0 -138
- package/dist/components/Dialog/dialog.test.d.ts +0 -2
- package/dist/components/Dialog/dialog.test.d.ts.map +0 -1
- package/dist/components/Dialog/dialog.test.js +0 -81
- package/dist/components/Dropzone/dropzone.test.d.ts +0 -2
- package/dist/components/Dropzone/dropzone.test.d.ts.map +0 -1
- package/dist/components/Dropzone/dropzone.test.js +0 -79
- package/dist/components/Flex/flex.test.d.ts +0 -2
- package/dist/components/Flex/flex.test.d.ts.map +0 -1
- package/dist/components/Flex/flex.test.js +0 -355
- package/dist/components/Grid/grid.test.d.ts +0 -2
- package/dist/components/Grid/grid.test.d.ts.map +0 -1
- package/dist/components/Grid/grid.test.js +0 -140
- package/dist/components/Icon/icon.test.d.ts +0 -2
- package/dist/components/Icon/icon.test.d.ts.map +0 -1
- package/dist/components/Icon/icon.test.js +0 -70
- package/dist/components/IconItem/IconItem.test.d.ts +0 -2
- package/dist/components/IconItem/IconItem.test.d.ts.map +0 -1
- package/dist/components/IconItem/IconItem.test.js +0 -68
- package/dist/components/Illustration/illustration.test.d.ts +0 -2
- package/dist/components/Illustration/illustration.test.d.ts.map +0 -1
- package/dist/components/Illustration/illustration.test.js +0 -61
- package/dist/components/ImageItem/input.test.d.ts +0 -2
- package/dist/components/ImageItem/input.test.d.ts.map +0 -1
- package/dist/components/ImageItem/input.test.js +0 -101
- package/dist/components/Input/input.test.d.ts +0 -2
- package/dist/components/Input/input.test.d.ts.map +0 -1
- package/dist/components/Input/input.test.js +0 -144
- package/dist/components/Label/label.test.d.ts +0 -2
- package/dist/components/Label/label.test.d.ts.map +0 -1
- package/dist/components/Label/label.test.js +0 -105
- package/dist/components/List/list.test.d.ts +0 -2
- package/dist/components/List/list.test.d.ts.map +0 -1
- package/dist/components/List/list.test.js +0 -71
- package/dist/components/Modal/modal.test.d.ts +0 -2
- package/dist/components/Modal/modal.test.d.ts.map +0 -1
- package/dist/components/Modal/modal.test.js +0 -197
- package/dist/components/MultipleSelect/MultipleSelect.test.d.ts +0 -2
- package/dist/components/MultipleSelect/MultipleSelect.test.d.ts.map +0 -1
- package/dist/components/MultipleSelect/MultipleSelect.test.js +0 -447
- package/dist/components/Pagination/pagination.test.d.ts +0 -2
- package/dist/components/Pagination/pagination.test.d.ts.map +0 -1
- package/dist/components/Pagination/pagination.test.js +0 -152
- package/dist/components/Progress/progress.test.d.ts +0 -2
- package/dist/components/Progress/progress.test.d.ts.map +0 -1
- package/dist/components/Progress/progress.test.js +0 -126
- package/dist/components/RadioInput/radio-input.test.d.ts +0 -2
- package/dist/components/RadioInput/radio-input.test.d.ts.map +0 -1
- package/dist/components/RadioInput/radio-input.test.js +0 -208
- package/dist/components/Rating/rating.test.d.ts +0 -2
- package/dist/components/Rating/rating.test.d.ts.map +0 -1
- package/dist/components/Rating/rating.test.js +0 -79
- package/dist/components/ReactPortal/reactPortal.test.d.ts +0 -2
- package/dist/components/ReactPortal/reactPortal.test.d.ts.map +0 -1
- package/dist/components/ReactPortal/reactPortal.test.js +0 -26
- package/dist/components/Select/select.test.d.ts +0 -2
- package/dist/components/Select/select.test.d.ts.map +0 -1
- package/dist/components/Select/select.test.js +0 -67
- package/dist/components/Skeleton/skeleton.test.d.ts +0 -2
- package/dist/components/Skeleton/skeleton.test.d.ts.map +0 -1
- package/dist/components/Skeleton/skeleton.test.js +0 -106
- package/dist/components/Slider/slider.test.d.ts +0 -2
- package/dist/components/Slider/slider.test.d.ts.map +0 -1
- package/dist/components/Slider/slider.test.js +0 -134
- package/dist/components/Spinner/spinner.test.d.ts +0 -2
- package/dist/components/Spinner/spinner.test.d.ts.map +0 -1
- package/dist/components/Spinner/spinner.test.js +0 -55
- package/dist/components/Steps/steps.test.d.ts +0 -2
- package/dist/components/Steps/steps.test.d.ts.map +0 -1
- package/dist/components/Steps/steps.test.js +0 -63
- package/dist/components/Switch/switch.test.d.ts +0 -2
- package/dist/components/Switch/switch.test.d.ts.map +0 -1
- package/dist/components/Switch/switch.test.js +0 -253
- package/dist/components/Table/table.test.d.ts +0 -2
- package/dist/components/Table/table.test.d.ts.map +0 -1
- package/dist/components/Table/table.test.js +0 -130
- package/dist/components/Tabs/tabs.test.d.ts +0 -2
- package/dist/components/Tabs/tabs.test.d.ts.map +0 -1
- package/dist/components/Tabs/tabs.test.js +0 -159
- package/dist/components/Tag/tag.test.d.ts +0 -2
- package/dist/components/Tag/tag.test.d.ts.map +0 -1
- package/dist/components/Tag/tag.test.js +0 -78
- package/dist/components/TextAreaInput/text-area-input.test.d.ts +0 -2
- package/dist/components/TextAreaInput/text-area-input.test.d.ts.map +0 -1
- package/dist/components/TextAreaInput/text-area-input.test.js +0 -96
- package/dist/components/Thumbnail/thumbnail.test.d.ts +0 -2
- package/dist/components/Thumbnail/thumbnail.test.d.ts.map +0 -1
- package/dist/components/Thumbnail/thumbnail.test.js +0 -82
- package/dist/components/Timeline/timeline.test.d.ts +0 -2
- package/dist/components/Timeline/timeline.test.d.ts.map +0 -1
- package/dist/components/Timeline/timeline.test.js +0 -152
- package/dist/components/Toast/toast.test.d.ts +0 -2
- package/dist/components/Toast/toast.test.d.ts.map +0 -1
- package/dist/components/Toast/toast.test.js +0 -139
- package/dist/components/Typography/typography.test.d.ts +0 -2
- package/dist/components/Typography/typography.test.d.ts.map +0 -1
- package/dist/components/Typography/typography.test.js +0 -325
- package/dist/shared/theme/theme.test.d.ts +0 -2
- package/dist/shared/theme/theme.test.d.ts.map +0 -1
- package/dist/shared/theme/theme.test.js +0 -115
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,oBAAY,UAAU,GAAG;IACvB;;;OAGG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,UAAU,GAAG,QAAQ,GAAG,UAAU,CAAC;IAC7C;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,UAAU,GAAG,aAAa,CAAC;IAChF;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,oBAAY,YAAY,GAAG;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,UAAU,GAAG,QAAQ,GAAG,UAAU,CAAC;IAC7C,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,UAAU,GAAG,aAAa,CAAC;IAChF,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEzE,oBAAY,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,iBAAiB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAC7C,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,oBAAY,mBAAmB,GAAG;IAChC,QAAQ,CAAC,EAAE,iBAAiB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAE7C,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;KACpC,GAAG,gBAAgB,CAAC;CACtB,CAAC"}
|
|
@@ -30,7 +30,7 @@ var StyledFlexContainer = _styled.default.div(function (props) {
|
|
|
30
30
|
return props.theme.space[property];
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
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 "));
|
|
33
|
+
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(String(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(String(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(String(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(String(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(String(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(String(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 "));
|
|
34
34
|
});
|
|
35
35
|
|
|
36
36
|
exports.StyledFlexContainer = StyledFlexContainer;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Ref } from 'react';
|
|
2
|
-
import { defaultTheme } from '
|
|
2
|
+
import { defaultTheme } from '../../shared/theme';
|
|
3
3
|
declare type flexDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse';
|
|
4
4
|
declare type flexAlignItems = 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
|
|
5
5
|
declare type flexJustifyContent = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Flex/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Flex/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,aAAK,aAAa,GAAG,KAAK,GAAG,aAAa,GAAG,QAAQ,GAAG,gBAAgB,CAAC;AACzE,aAAK,cAAc,GAAG,YAAY,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,CAAC;AACpF,aAAK,kBAAkB,GAAG,YAAY,GAAG,UAAU,GAAG,QAAQ,GAAG,eAAe,GAAG,cAAc,CAAC;AAClG,aAAK,gBAAgB,GACjB,YAAY,GACZ,UAAU,GACV,QAAQ,GACR,eAAe,GACf,cAAc,GACd,SAAS,CAAC;AACd,aAAK,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,cAAc,CAAC;AACnD,aAAK,eAAe,GAAG,MAAM,GAAG,YAAY,GAAG,UAAU,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;AAC9F,aAAK,aAAa,GAAG,MAAM,GAAG,YAAY,GAAG,UAAU,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;AAC5F,aAAK,QAAQ,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC/F,aAAK,UAAU,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACjG,aAAK,SAAS,GACV,MAAM,GACN,SAAS,GACT,aAAa,GACb,aAAa,GACb,aAAa,GACb,gBAAgB,GAChB,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAClB,aAAK,WAAW,GACZ,MAAM,GACN,SAAS,GACT,SAAS,GACT,OAAO,GACP,MAAM,OAAO,YAAY,CAAC,KAAK,GAC/B,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAElB,oBAAY,UAAU,GAAG;IACvB;;;;OAIG;IACH,SAAS,CAAC,EACN,aAAa,GACb;QACE,IAAI,CAAC,EAAE,aAAa,CAAC;QACrB,EAAE,CAAC,EAAE,aAAa,CAAC;QACnB,EAAE,CAAC,EAAE,aAAa,CAAC;QACnB,EAAE,CAAC,EAAE,aAAa,CAAC;QACnB,EAAE,CAAC,EAAE,aAAa,CAAC;QACnB,GAAG,CAAC,EAAE,aAAa,CAAC;KACrB,CAAC;IACN;;;;OAIG;IACH,UAAU,CAAC,EACP,cAAc,GACd;QACE,IAAI,CAAC,EAAE,cAAc,CAAC;QACtB,EAAE,CAAC,EAAE,cAAc,CAAC;QACpB,EAAE,CAAC,EAAE,cAAc,CAAC;QACpB,EAAE,CAAC,EAAE,cAAc,CAAC;QACpB,EAAE,CAAC,EAAE,cAAc,CAAC;QACpB,GAAG,CAAC,EAAE,cAAc,CAAC;KACtB,CAAC;IACN;;;;OAIG;IACH,YAAY,CAAC,EACT,gBAAgB,GAChB;QACE,IAAI,CAAC,EAAE,gBAAgB,CAAC;QACxB,EAAE,CAAC,EAAE,gBAAgB,CAAC;QACtB,EAAE,CAAC,EAAE,gBAAgB,CAAC;QACtB,EAAE,CAAC,EAAE,gBAAgB,CAAC;QACtB,EAAE,CAAC,EAAE,gBAAgB,CAAC;QACtB,GAAG,CAAC,EAAE,gBAAgB,CAAC;KACxB,CAAC;IACN;;;;OAIG;IACH,SAAS,CAAC,EACN,aAAa,GACb;QACE,IAAI,CAAC,EAAE,aAAa,CAAC;QACrB,EAAE,CAAC,EAAE,aAAa,CAAC;QACnB,EAAE,CAAC,EAAE,aAAa,CAAC;QACnB,EAAE,CAAC,EAAE,aAAa,CAAC;QACnB,EAAE,CAAC,EAAE,aAAa,CAAC;QACnB,GAAG,CAAC,EAAE,aAAa,CAAC;KACrB,CAAC;IACN;;;;OAIG;IACH,cAAc,CAAC,EACX,kBAAkB,GAClB;QACE,IAAI,CAAC,EAAE,kBAAkB,CAAC;QAC1B,EAAE,CAAC,EAAE,kBAAkB,CAAC;QACxB,EAAE,CAAC,EAAE,kBAAkB,CAAC;QACxB,EAAE,CAAC,EAAE,kBAAkB,CAAC;QACxB,EAAE,CAAC,EAAE,kBAAkB,CAAC;QACxB,GAAG,CAAC,EAAE,kBAAkB,CAAC;KAC1B,CAAC;IACN;;;;OAIG;IACH,WAAW,CAAC,EACR,eAAe,GACf;QACE,IAAI,CAAC,EAAE,eAAe,CAAC;QACvB,EAAE,CAAC,EAAE,eAAe,CAAC;QACrB,EAAE,CAAC,EAAE,eAAe,CAAC;QACrB,EAAE,CAAC,EAAE,eAAe,CAAC;QACrB,EAAE,CAAC,EAAE,eAAe,CAAC;QACrB,GAAG,CAAC,EAAE,eAAe,CAAC;KACvB,CAAC;IACN;;;;OAIG;IACH,OAAO,CAAC,EACJ,WAAW,GACX;QACE,IAAI,CAAC,EAAE,WAAW,CAAC;QACnB,EAAE,CAAC,EAAE,WAAW,CAAC;QACjB,EAAE,CAAC,EAAE,WAAW,CAAC;QACjB,EAAE,CAAC,EAAE,WAAW,CAAC;QACjB,EAAE,CAAC,EAAE,WAAW,CAAC;QACjB,GAAG,CAAC,EAAE,WAAW,CAAC;KACnB,CAAC;IACN;;;;OAIG;IACH,IAAI,CAAC,EACD,QAAQ,GACR;QACE,IAAI,CAAC,EAAE,QAAQ,CAAC;QAChB,EAAE,CAAC,EAAE,QAAQ,CAAC;QACd,EAAE,CAAC,EAAE,QAAQ,CAAC;QACd,EAAE,CAAC,EAAE,QAAQ,CAAC;QACd,EAAE,CAAC,EAAE,QAAQ,CAAC;QACd,GAAG,CAAC,EAAE,QAAQ,CAAC;KAChB,CAAC;IACN;;;;OAIG;IACH,IAAI,CAAC,EACD,QAAQ,GACR;QACE,IAAI,CAAC,EAAE,QAAQ,CAAC;QAChB,EAAE,CAAC,EAAE,QAAQ,CAAC;QACd,EAAE,CAAC,EAAE,QAAQ,CAAC;QACd,EAAE,CAAC,EAAE,QAAQ,CAAC;QACd,EAAE,CAAC,EAAE,QAAQ,CAAC;QACd,GAAG,CAAC,EAAE,QAAQ,CAAC;KAChB,CAAC;IACN;;;;OAIG;IACH,MAAM,CAAC,EACH,UAAU,GACV;QACE,IAAI,CAAC,EAAE,UAAU,CAAC;QAClB,EAAE,CAAC,EAAE,UAAU,CAAC;QAChB,EAAE,CAAC,EAAE,UAAU,CAAC;QAChB,EAAE,CAAC,EAAE,UAAU,CAAC;QAChB,EAAE,CAAC,EAAE,UAAU,CAAC;QAChB,GAAG,CAAC,EAAE,UAAU,CAAC;KAClB,CAAC;IACN;;;;OAIG;IACH,KAAK,CAAC,EACF,SAAS,GACT;QACE,IAAI,CAAC,EAAE,SAAS,CAAC;QACjB,EAAE,CAAC,EAAE,SAAS,CAAC;QACf,EAAE,CAAC,EAAE,SAAS,CAAC;QACf,EAAE,CAAC,EAAE,SAAS,CAAC;QACf,EAAE,CAAC,EAAE,SAAS,CAAC;QACf,GAAG,CAAC,EAAE,SAAS,CAAC;KACjB,CAAC;IACN;;;OAGG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;CAChB,CAAC;AAEF,oBAAY,WAAW,GAAG,UAAU,GAAG;IACrC,KAAK,CAAC,EAAE,OAAO,YAAY,CAAC;IAC5B,aAAa,CAAC,EACV,aAAa,GACb;QACE,IAAI,CAAC,EAAE,aAAa,CAAC;QACrB,EAAE,CAAC,EAAE,aAAa,CAAC;QACnB,EAAE,CAAC,EAAE,aAAa,CAAC;QACnB,EAAE,CAAC,EAAE,aAAa,CAAC;QACnB,EAAE,CAAC,EAAE,aAAa,CAAC;QACnB,GAAG,CAAC,EAAE,aAAa,CAAC;KACrB,CAAC;CACP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/IconItem/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/IconItem/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,oBAAY,aAAa,GAAG;IAC1B,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,KAAK,CAAC,EAAE,iBAAiB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAC1C,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,oBAAY,cAAc,GAAG;IAC3B,OAAO,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC7B,SAAS,CAAC,EAAE,iBAAiB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAC9C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IACnC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/MultipleSelect/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/MultipleSelect/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,oBAAY,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,oBAAY,UAAU,GAClB,SAAS,GACT,OAAO,GACP,SAAS,GACT,aAAa,GACb,UAAU,GACV,mBAAmB,GACnB,mBAAmB,GACnB,SAAS,CAAC;AAEd,MAAM,WAAW,WAAW;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sBAAsB,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAC3C,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;IAClD,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACrC,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IAC9B,KAAK,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAC/B,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACzB,kBAAkB,CAAC,EAAE,QAAQ,CAAC;IAC9B,cAAc,CAAC,EAAE,QAAQ,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,OAAO,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IAC9B,KAAK,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAC/B,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Spinner/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Spinner/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEzE,oBAAY,aAAa,GAAG;IAC1B,KAAK,CAAC,EAAE,iBAAiB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAC1C,UAAU,CAAC,EAAE,iBAAiB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAClC,CAAC;AAEF,oBAAY,mBAAmB,GAAG,aAAa,GAAG;IAChD,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../src/shared/global.js"],"names":[],"mappings":"AAAA,+GACuF"}
|
package/dist/utils/file.d.ts
CHANGED
package/dist/utils/file.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../src/utils/file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../src/utils/file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAErE;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,aAAa,CAAC,CActE;AAED;;;;;GAKG;AACH,wBAAsB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAW3F;AAED;;;;GAIG;AACH,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAYrE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreditCardOptions } from '
|
|
1
|
+
import { CreditCardOptions } from '../../shared/types/credit-card';
|
|
2
2
|
/**
|
|
3
3
|
* Format a credit card number by adding spaces after every four digits, up to a maximum of 19 characters.
|
|
4
4
|
* @param {string} creditCardNumber - The credit card number to format
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credit-card.d.ts","sourceRoot":"","sources":["../../../src/utils/formatters/credit-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"credit-card.d.ts","sourceRoot":"","sources":["../../../src/utils/formatters/credit-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEnE;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,gBAAgB,EAAE,MAAM,GAAG,MAAM,CAKvE;AACD;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,gBAAgB,EAAE,MAAM,GAAG,MAAM,CAEzE;AACD;;;;GAIG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIpE;AAED;;;;;GAKG;AACH,wBAAgB,gCAAgC,CAC9C,KAAK,EAAE,MAAM,EACb,EACE,iBAAgD,EAChD,gBAA8C,EAC9C,gBAA8C,GAC/C,EAAE,iBAAiB,GACnB,OAAO,GAAG,MAAM,CAuBlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"name.d.ts","sourceRoot":"","sources":["../../../src/utils/formatters/name.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"name.d.ts","sourceRoot":"","sources":["../../../src/utils/formatters/name.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEjD;AACD;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAG/C;AACD;;;;;GAKG;AACH,wBAAgB,WAAW,CACzB,IAAI,EAAE,MAAM,EACZ,EAAE,YAA4D,EAAE,EAAE,WAAW,GAC5E,OAAO,GAAG,MAAM,CASlB"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pedidopago/ui",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.21",
|
|
4
4
|
"description": "Quick build beatiful Pedido Pago apps",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
|
-
"dist"
|
|
9
|
-
"README.md"
|
|
8
|
+
"dist"
|
|
10
9
|
],
|
|
11
10
|
"repository": {
|
|
12
11
|
"type": "git",
|
|
@@ -30,7 +29,7 @@
|
|
|
30
29
|
},
|
|
31
30
|
"scripts": {
|
|
32
31
|
"start": "react-scripts start",
|
|
33
|
-
"build": "babel src -d dist --extensions \".js,.jsx,.ts,.tsx\" --ignore \"**/*.test.
|
|
32
|
+
"build": "babel src -d dist --extensions \".js,.jsx,.ts,.tsx\" --ignore \"**/*.test.tsx\" --ignore \"**/*.stories.js\" && npm run build:declarations",
|
|
34
33
|
"build:declarations": "tsc --declaration --emitDeclarationOnly --outDir dist",
|
|
35
34
|
"build:publish": "npm run build && npm publish --access public",
|
|
36
35
|
"lint": "eslint ./src --ext .js,.jsx,.ts,.tsx",
|
|
@@ -113,5 +112,9 @@
|
|
|
113
112
|
"ts-node": "^10.4.0",
|
|
114
113
|
"typescript": "^4.3.5",
|
|
115
114
|
"webpack": "^5"
|
|
115
|
+
},
|
|
116
|
+
"peerDependencies": {
|
|
117
|
+
"react": "^18.2.0",
|
|
118
|
+
"react-dom": "^18.2.0"
|
|
116
119
|
}
|
|
117
120
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alert.test.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/alert.test.tsx"],"names":[],"mappings":"AAEA,OAAO,2BAA2B,CAAC"}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _testUtils = require("../../shared/tests/test-utils");
|
|
4
|
-
|
|
5
|
-
require("@testing-library/jest-dom");
|
|
6
|
-
|
|
7
|
-
var _ = _interopRequireDefault(require("."));
|
|
8
|
-
|
|
9
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
|
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
|
|
13
|
-
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; }
|
|
14
|
-
|
|
15
|
-
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; }
|
|
16
|
-
|
|
17
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
18
|
-
|
|
19
|
-
var setup = function setup(props) {
|
|
20
|
-
return (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, _objectSpread({}, props)));
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
describe('Alert', function () {
|
|
24
|
-
it('should it render the alert component', function () {
|
|
25
|
-
var container = setup({
|
|
26
|
-
content: 'test',
|
|
27
|
-
title: 'Test Toast'
|
|
28
|
-
});
|
|
29
|
-
expect(container.getByText('test')).toBeInTheDocument();
|
|
30
|
-
});
|
|
31
|
-
it('should it render the alert component in outlined variant', function () {
|
|
32
|
-
var container = setup({
|
|
33
|
-
content: 'test',
|
|
34
|
-
title: 'Test Toast',
|
|
35
|
-
variant: 'outlined'
|
|
36
|
-
});
|
|
37
|
-
expect(container.getByText('test')).toBeInTheDocument();
|
|
38
|
-
});
|
|
39
|
-
it('should it render the alert component in closable variant', function () {
|
|
40
|
-
var container = setup({
|
|
41
|
-
content: 'test',
|
|
42
|
-
title: 'Test Toast',
|
|
43
|
-
variant: 'closable'
|
|
44
|
-
});
|
|
45
|
-
expect(container.getByText('test')).toBeInTheDocument();
|
|
46
|
-
});
|
|
47
|
-
it('should it render the alert component in success type', function () {
|
|
48
|
-
var container = setup({
|
|
49
|
-
content: 'test',
|
|
50
|
-
title: 'Test Toast',
|
|
51
|
-
type: 'success'
|
|
52
|
-
});
|
|
53
|
-
expect(container.getByText('test')).toBeInTheDocument();
|
|
54
|
-
});
|
|
55
|
-
it('should it render the alert component in error type', function () {
|
|
56
|
-
var container = setup({
|
|
57
|
-
content: 'test',
|
|
58
|
-
title: 'Test Toast',
|
|
59
|
-
type: 'error'
|
|
60
|
-
});
|
|
61
|
-
expect(container.getByText('test')).toBeInTheDocument();
|
|
62
|
-
});
|
|
63
|
-
it('should it render the alert component in warning type', function () {
|
|
64
|
-
var container = setup({
|
|
65
|
-
content: 'test',
|
|
66
|
-
title: 'Test Toast',
|
|
67
|
-
type: 'warning'
|
|
68
|
-
});
|
|
69
|
-
expect(container.getByText('test')).toBeInTheDocument();
|
|
70
|
-
});
|
|
71
|
-
it('should it render the alert component in critical type', function () {
|
|
72
|
-
var container = setup({
|
|
73
|
-
content: 'test',
|
|
74
|
-
title: 'Test Toast',
|
|
75
|
-
type: 'critical'
|
|
76
|
-
});
|
|
77
|
-
expect(container.getByText('test')).toBeInTheDocument();
|
|
78
|
-
});
|
|
79
|
-
it('should it call the callback provided in onClose prop', function () {
|
|
80
|
-
var _container$baseElemen;
|
|
81
|
-
|
|
82
|
-
var onClose = jest.fn();
|
|
83
|
-
var container = setup({
|
|
84
|
-
content: 'test',
|
|
85
|
-
title: 'Test Toast',
|
|
86
|
-
variant: 'closable',
|
|
87
|
-
onClose: onClose
|
|
88
|
-
});
|
|
89
|
-
(_container$baseElemen = container.baseElement.querySelectorAll('svg')[1].parentElement) === null || _container$baseElemen === void 0 ? void 0 : _container$baseElemen.click();
|
|
90
|
-
expect(onClose).toHaveBeenCalled();
|
|
91
|
-
});
|
|
92
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.test.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/avatar.test.tsx"],"names":[],"mappings":"AAEA,OAAO,2BAA2B,CAAC"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _testUtils = require("../../shared/tests/test-utils");
|
|
4
|
-
|
|
5
|
-
require("@testing-library/jest-dom");
|
|
6
|
-
|
|
7
|
-
var _ = _interopRequireDefault(require("."));
|
|
8
|
-
|
|
9
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
|
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
|
|
13
|
-
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; }
|
|
14
|
-
|
|
15
|
-
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; }
|
|
16
|
-
|
|
17
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
18
|
-
|
|
19
|
-
var setup = function setup(props) {
|
|
20
|
-
var utils = (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, _objectSpread({}, props)));
|
|
21
|
-
return utils;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
describe('Avatar', function () {
|
|
25
|
-
it('should it render the avatar component', function () {
|
|
26
|
-
var avatar = setup({
|
|
27
|
-
name: 'John Doe',
|
|
28
|
-
src: 'https://avatars2.githubusercontent.com/u/1234?s=460&v=4'
|
|
29
|
-
});
|
|
30
|
-
expect(avatar.container).toBeInTheDocument();
|
|
31
|
-
});
|
|
32
|
-
it('should it render the avatar component with a image', function () {
|
|
33
|
-
var _avatar$container$que;
|
|
34
|
-
|
|
35
|
-
var avatar = setup({
|
|
36
|
-
name: 'John Doe',
|
|
37
|
-
src: 'https://avatars2.githubusercontent.com/u/1234?s=460&v=4'
|
|
38
|
-
});
|
|
39
|
-
expect((_avatar$container$que = avatar.container.querySelector('img')) === null || _avatar$container$que === void 0 ? void 0 : _avatar$container$que.getAttribute('src')).toEqual('https://avatars2.githubusercontent.com/u/1234?s=460&v=4');
|
|
40
|
-
});
|
|
41
|
-
it('should it render the avatar component with a name and an information', function () {
|
|
42
|
-
var avatar = setup({
|
|
43
|
-
name: 'John Doe',
|
|
44
|
-
information: 'The user information'
|
|
45
|
-
});
|
|
46
|
-
expect(avatar.getByText('John Doe')).toBeInTheDocument();
|
|
47
|
-
expect(avatar.getByText('The user information')).toBeInTheDocument();
|
|
48
|
-
});
|
|
49
|
-
it('should it render the avatar component with a name, information and image', function () {
|
|
50
|
-
var avatar = setup({
|
|
51
|
-
name: 'John Doe',
|
|
52
|
-
information: 'The user information',
|
|
53
|
-
src: 'https://avatars2.githubusercontent.com/u/1234?s=460&v=4'
|
|
54
|
-
});
|
|
55
|
-
expect(avatar.getByText('John Doe')).toBeInTheDocument();
|
|
56
|
-
expect(avatar.getByText('The user information')).toBeInTheDocument();
|
|
57
|
-
expect(avatar.container.querySelector('img')).toBeInTheDocument();
|
|
58
|
-
});
|
|
59
|
-
it('should it render the avatar component with avatar name initials', function () {
|
|
60
|
-
var avatar = setup({
|
|
61
|
-
name: 'John Doe'
|
|
62
|
-
});
|
|
63
|
-
expect(avatar.getByText('JD')).toBeInTheDocument();
|
|
64
|
-
});
|
|
65
|
-
it('should it render the avatar component with avatar name initials if the image source is broken', function () {
|
|
66
|
-
var avatar = setup({
|
|
67
|
-
name: 'John Doe',
|
|
68
|
-
src: 'https://broken.link/'
|
|
69
|
-
});
|
|
70
|
-
setTimeout(function () {
|
|
71
|
-
expect(avatar.getByText('JD')).toBeInTheDocument();
|
|
72
|
-
}, 1000);
|
|
73
|
-
});
|
|
74
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"badge.test.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/badge.test.tsx"],"names":[],"mappings":"AAEA,OAAO,2BAA2B,CAAC"}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _testUtils = require("../../shared/tests/test-utils");
|
|
4
|
-
|
|
5
|
-
require("@testing-library/jest-dom");
|
|
6
|
-
|
|
7
|
-
var _ = _interopRequireDefault(require("."));
|
|
8
|
-
|
|
9
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
|
|
11
|
-
var _excluded = ["children"];
|
|
12
|
-
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
-
|
|
15
|
-
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; }
|
|
16
|
-
|
|
17
|
-
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; }
|
|
18
|
-
|
|
19
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
20
|
-
|
|
21
|
-
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; }
|
|
22
|
-
|
|
23
|
-
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; }
|
|
24
|
-
|
|
25
|
-
var setup = function setup(_ref) {
|
|
26
|
-
var children = _ref.children,
|
|
27
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
28
|
-
|
|
29
|
-
var utils = (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, _objectSpread(_objectSpread({}, props), {}, {
|
|
30
|
-
children: children
|
|
31
|
-
})));
|
|
32
|
-
return utils;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
describe('Badge', function () {
|
|
36
|
-
it('should it render the badge component', function () {
|
|
37
|
-
var utils = setup({
|
|
38
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
39
|
-
children: "Teste badge"
|
|
40
|
-
}),
|
|
41
|
-
type: 'primary'
|
|
42
|
-
});
|
|
43
|
-
expect(utils.container).toBeInTheDocument();
|
|
44
|
-
});
|
|
45
|
-
it('should it render the badge component in loading state', function () {
|
|
46
|
-
var utils = setup({
|
|
47
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
48
|
-
children: "Teste badge"
|
|
49
|
-
}),
|
|
50
|
-
type: 'primary',
|
|
51
|
-
isLoading: true
|
|
52
|
-
});
|
|
53
|
-
expect(utils.container).toBeInTheDocument();
|
|
54
|
-
});
|
|
55
|
-
it('should it render multiply badges', function () {
|
|
56
|
-
var utils = function utils(type) {
|
|
57
|
-
return setup({
|
|
58
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
59
|
-
children: "Teste badge"
|
|
60
|
-
}),
|
|
61
|
-
type: type,
|
|
62
|
-
isLoading: true
|
|
63
|
-
});
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
expect(utils({
|
|
67
|
-
type: 'primary'
|
|
68
|
-
}).container).toBeInTheDocument();
|
|
69
|
-
expect(utils({
|
|
70
|
-
type: 'secondary'
|
|
71
|
-
}).container).toBeInTheDocument();
|
|
72
|
-
expect(utils({
|
|
73
|
-
type: 'informative'
|
|
74
|
-
}).container).toBeInTheDocument();
|
|
75
|
-
expect(utils({
|
|
76
|
-
type: 'warning'
|
|
77
|
-
}).container).toBeInTheDocument();
|
|
78
|
-
expect(utils({
|
|
79
|
-
type: 'error'
|
|
80
|
-
}).container).toBeInTheDocument();
|
|
81
|
-
});
|
|
82
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button.test.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.test.tsx"],"names":[],"mappings":"AAGA,OAAO,2BAA2B,CAAC"}
|