@pedidopago/ui 1.17.63 → 1.17.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/components/Button/styles.d.ts.map +1 -1
  2. package/dist/components/Button/styles.js +1 -1
  3. package/dist/components/Icon/data/dash.js +1 -1
  4. package/dist/components/NewSelectDDI/NewSelectDDI.test.d.ts +2 -0
  5. package/dist/components/NewSelectDDI/NewSelectDDI.test.d.ts.map +1 -0
  6. package/dist/components/NewSelectDDI/NewSelectDDI.test.js +1 -0
  7. package/dist/components/NewSelectDDI/components/countries/country-flag-cdn.d.ts +2 -0
  8. package/dist/components/NewSelectDDI/components/countries/country-flag-cdn.d.ts.map +1 -0
  9. package/dist/components/NewSelectDDI/components/countries/country-flag-cdn.js +1 -0
  10. package/dist/components/NewSelectDDI/components/countries/index.d.ts +1212 -0
  11. package/dist/components/NewSelectDDI/components/countries/index.d.ts.map +1 -0
  12. package/dist/components/NewSelectDDI/components/countries/index.js +1 -0
  13. package/dist/components/NewSelectDDI/components/country-flag/index.d.ts +4 -0
  14. package/dist/components/NewSelectDDI/components/country-flag/index.d.ts.map +1 -0
  15. package/dist/components/NewSelectDDI/components/country-flag/index.js +3 -0
  16. package/dist/components/NewSelectDDI/index.d.ts +3 -0
  17. package/dist/components/NewSelectDDI/index.d.ts.map +1 -0
  18. package/dist/components/NewSelectDDI/index.js +6 -0
  19. package/dist/components/NewSelectDDI/styles.d.ts +6 -0
  20. package/dist/components/NewSelectDDI/styles.d.ts.map +1 -0
  21. package/dist/components/NewSelectDDI/styles.js +1 -0
  22. package/dist/components/NewSelectDDI/types.d.ts +27 -0
  23. package/dist/components/NewSelectDDI/types.d.ts.map +1 -0
  24. package/dist/components/NewSelectDDI/types.js +1 -0
  25. package/dist/components/NewSelectDDI/utils.d.ts +12 -0
  26. package/dist/components/NewSelectDDI/utils.d.ts.map +1 -0
  27. package/dist/components/NewSelectDDI/utils.js +3 -0
  28. package/dist/index.d.ts +1 -0
  29. package/dist/index.d.ts.map +1 -1
  30. package/dist/index.js +1 -1
  31. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Button/styles.ts"],"names":[],"mappings":";AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,eAAO,MAAM,eAAe;;;mIA8I3B,CAAC;AAEF,eAAO,MAAM,aAAa;;;yGAKzB,CAAC;AAEF,eAAO,MAAM,WAAW;;;yGAIvB,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Button/styles.ts"],"names":[],"mappings":";AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,eAAO,MAAM,eAAe;;;mIA0K3B,CAAC;AAEF,eAAO,MAAM,aAAa;;;yGAKzB,CAAC;AAEF,eAAO,MAAM,WAAW;;;yGAIvB,CAAC"}
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.IconWrapper=exports.IconContainer=exports.ButtonContainer=void 0;var _templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_styled=_interopRequireDefault(require("@emotion/styled")),_react=require("@emotion/react"),_invertColor=require("../../utils/invertColor");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 ButtonContainer=_styled.default.button(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n font-family: inherit;\n font-weight: ",";\n font-size: ",";\n border-radius: 8px;\n border: 0px;\n cursor: pointer;\n padding: ",";\n\n --button-brightness: brightness(0.85);\n\n transition: all 0.15s ease-in-out;\n\n color: ",";\n\n background-color: ",";\n\n width: ",";\n\n &:disabled {\n filter: opacity(0.5);\n cursor: default;\n pointer-events: none;\n }\n\n ","\n\n @media screen and (min-width: ",") {\n width: ",";\n }\n\n @media screen and (min-width: ",") {\n width: ",";\n }\n\n @media screen and (min-width: ",") {\n width: ",";\n }\n\n @media screen and (min-width: ",") {\n width: ",";\n }\n"])),function(_ref){var theme=_ref.theme;return theme.fontWeight[600]},function(_ref2){var theme=_ref2.theme;return theme.fontSizes.xs},function(_ref3){var size=_ref3.size;return"xs"===size?"4px 8px":"sm"===size?"8px 16px":"md"===size?"12px 24px":"lg"===size?"16px 32px":"xl"===size?"20px 40px":"12px 24px"},function(_ref4){var theme=_ref4.theme,textColor=_ref4.textColor;return textColor||theme.lightColors.neutral.white},function(_ref5){var theme=_ref5.theme,bgColor=_ref5.bgColor;return null!==bgColor&&void 0!==bgColor?bgColor:theme.colors.primary.default},function(_ref6){var fullWidth=_ref6.fullWidth;if(fullWidth)return"object"===_typeof(fullWidth)&&void 0!==fullWidth?fullWidth.base&&"100%":"100%"},function(_ref7){var theme=_ref7.theme,variant=_ref7.variant,textColor=_ref7.textColor,bgColor=_ref7.bgColor;return"solid"===variant?(0,_react.css)(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n color: ",";\n svg,\n path {\n color: ",";\n fill: ",";\n }\n &:is(&:hover, &:focus):not(:disabled) {\n box-shadow: inset 0 0 40px 40px rgba(0, 0, 0, 0.08);\n }\n "])),(0,_invertColor.invertColor)(null!==bgColor&&void 0!==bgColor?bgColor:theme.colors.primary.default,!0),(0,_invertColor.invertColor)(null!==bgColor&&void 0!==bgColor?bgColor:theme.colors.primary.default,!0),(0,_invertColor.invertColor)(null!==bgColor&&void 0!==bgColor?bgColor:theme.colors.primary.default,!0)):"outline"===variant?(0,_react.css)(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n background-color: transparent;\n color: ",";\n border: 3px "," solid;\n box-shadow: none;\n &:is(&:hover, &:focus):not(:disabled) {\n filter: var(--button-brightness);\n }\n "])),textColor||bgColor||theme.colors.primary.default,bgColor||textColor||theme.colors.primary.default):"ghost"===variant?(0,_react.css)(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n background-color: transparent;\n color: ",";\n &:is(&:hover, &:focus):not(:disabled) {\n filter: var(--button-brightness);\n }\n "])),bgColor||textColor||theme.colors.primary.default):"link"===variant?(0,_react.css)(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n text-decoration: underline;\n background-color: transparent;\n color: ",";\n &:is(&:hover, &:focus):not(:disabled) {\n filter: var(--button-brightness);\n }\n "])),bgColor||textColor||theme.colors.primary.default):void 0},function(_ref8){var theme=_ref8.theme;return theme.breakpoints.sm},function(_ref9){var fullWidth=_ref9.fullWidth;if("object"===_typeof(fullWidth)){var widthWasNotSet=fullWidth.sm===void 0;return widthWasNotSet?void 0:fullWidth.sm?"100%":"fit-content"}},function(_ref10){var theme=_ref10.theme;return theme.breakpoints.md},function(_ref11){var fullWidth=_ref11.fullWidth;if("object"===_typeof(fullWidth)){var widthWasNotSet=fullWidth.md===void 0;return widthWasNotSet?void 0:fullWidth.md?"100%":"fit-content"}},function(_ref12){var theme=_ref12.theme;return theme.breakpoints.lg},function(_ref13){var fullWidth=_ref13.fullWidth;if("object"===_typeof(fullWidth)){var widthWasNotSet=fullWidth.lg===void 0;return widthWasNotSet?void 0:fullWidth.lg?"100%":"fit-content"}},function(_ref14){var theme=_ref14.theme;return theme.breakpoints.xl},function(_ref15){var fullWidth=_ref15.fullWidth;if("object"===_typeof(fullWidth)){var widthWasNotSet=fullWidth.xl===void 0;return widthWasNotSet?void 0:fullWidth.xl?"100%":"fit-content"}});exports.ButtonContainer=ButtonContainer;var IconContainer=_styled.default.div(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 0.45em;\n"])));exports.IconContainer=IconContainer;var IconWrapper=_styled.default.div(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n align-items: center;\n"])));exports.IconWrapper=IconWrapper;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.IconWrapper=exports.IconContainer=exports.ButtonContainer=void 0;var _templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_styled=_interopRequireDefault(require("@emotion/styled")),_react=require("@emotion/react"),_invertColor=require("../../utils/invertColor");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 ButtonContainer=_styled.default.button(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n font-family: inherit;\n font-weight: ",";\n font-size: ",";\n border-radius: 8px;\n border: 0px;\n cursor: pointer;\n padding: ",";\n\n --button-brightness: brightness(0.85);\n\n transition: all 0.15s ease-in-out;\n\n color: ",";\n\n background-color: ",";\n\n width: ",";\n\n &:disabled {\n cursor: default;\n pointer-events: none;\n }\n\n ","\n\n @media screen and (min-width: ",") {\n width: ",";\n }\n\n @media screen and (min-width: ",") {\n width: ",";\n }\n\n @media screen and (min-width: ",") {\n width: ",";\n }\n\n @media screen and (min-width: ",") {\n width: ",";\n }\n"])),function(_ref){var theme=_ref.theme;return theme.fontWeight[600]},function(_ref2){var theme=_ref2.theme;return theme.fontSizes.xs},function(_ref3){var size=_ref3.size;return"xs"===size?"4px 8px":"sm"===size?"8px 16px":"md"===size?"12px 24px":"lg"===size?"16px 32px":"xl"===size?"20px 40px":"12px 24px"},function(_ref4){var theme=_ref4.theme,textColor=_ref4.textColor;return textColor||theme.lightColors.neutral.white},function(_ref5){var theme=_ref5.theme,bgColor=_ref5.bgColor;return null!==bgColor&&void 0!==bgColor?bgColor:theme.colors.primary.default},function(_ref6){var fullWidth=_ref6.fullWidth;if(fullWidth)return"object"===_typeof(fullWidth)&&void 0!==fullWidth?fullWidth.base&&"100%":"100%"},function(_ref7){var theme=_ref7.theme,variant=_ref7.variant,textColor=_ref7.textColor,bgColor=_ref7.bgColor;return"solid"===variant?(0,_react.css)(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n color: ",";\n svg,\n path {\n color: ",";\n fill: ",";\n }\n &:is(&:hover, &:focus):not(:disabled) {\n box-shadow: inset 0 0 40px 40px rgba(0, 0, 0, 0.08);\n }\n ,\n &:disabled {\n background-color: ",";\n color: ",";\n svg,\n path {\n fill: "," !important;\n }\n }\n "])),(0,_invertColor.invertColor)(null!==bgColor&&void 0!==bgColor?bgColor:theme.colors.primary.default,!0),(0,_invertColor.invertColor)(null!==bgColor&&void 0!==bgColor?bgColor:theme.colors.primary.default,!0),(0,_invertColor.invertColor)(null!==bgColor&&void 0!==bgColor?bgColor:theme.colors.primary.default,!0),theme.colors.neutral.neutral1,theme.colors.neutral.neutral2,theme.colors.neutral.neutral2):"outline"===variant?(0,_react.css)(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n background-color: transparent;\n color: ",";\n border: 3px "," solid;\n box-shadow: none;\n &:is(&:hover, &:focus):not(:disabled) {\n filter: var(--button-brightness);\n }\n &:disabled {\n border-color: ",";\n color: ",";\n svg,\n path {\n fill: "," !important;\n }\n }\n "])),textColor||bgColor||theme.colors.primary.default,bgColor||textColor||theme.colors.primary.default,theme.colors.neutral.neutral1,theme.colors.neutral.neutral2,theme.colors.neutral.neutral2):"ghost"===variant?(0,_react.css)(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n background-color: transparent;\n color: ",";\n &:is(&:hover, &:focus):not(:disabled) {\n filter: var(--button-brightness);\n }\n &:disabled {\n border-color: ",";\n color: ",";\n svg,\n path {\n fill: "," !important;\n }\n }\n "])),bgColor||textColor||theme.colors.primary.default,theme.colors.neutral.neutral1,theme.colors.neutral.neutral2,theme.colors.neutral.neutral2):"link"===variant?(0,_react.css)(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n text-decoration: underline;\n background-color: transparent;\n color: ",";\n &:is(&:hover, &:focus):not(:disabled) {\n filter: var(--button-brightness);\n }\n &:disabled {\n border-color: ",";\n color: ",";\n }\n "])),bgColor||textColor||theme.colors.primary.default,theme.colors.neutral.neutral1,theme.colors.neutral.neutral2):void 0},function(_ref8){var theme=_ref8.theme;return theme.breakpoints.sm},function(_ref9){var fullWidth=_ref9.fullWidth;if("object"===_typeof(fullWidth)){var widthWasNotSet=fullWidth.sm===void 0;return widthWasNotSet?void 0:fullWidth.sm?"100%":"fit-content"}},function(_ref10){var theme=_ref10.theme;return theme.breakpoints.md},function(_ref11){var fullWidth=_ref11.fullWidth;if("object"===_typeof(fullWidth)){var widthWasNotSet=fullWidth.md===void 0;return widthWasNotSet?void 0:fullWidth.md?"100%":"fit-content"}},function(_ref12){var theme=_ref12.theme;return theme.breakpoints.lg},function(_ref13){var fullWidth=_ref13.fullWidth;if("object"===_typeof(fullWidth)){var widthWasNotSet=fullWidth.lg===void 0;return widthWasNotSet?void 0:fullWidth.lg?"100%":"fit-content"}},function(_ref14){var theme=_ref14.theme;return theme.breakpoints.xl},function(_ref15){var fullWidth=_ref15.fullWidth;if("object"===_typeof(fullWidth)){var widthWasNotSet=fullWidth.xl===void 0;return widthWasNotSet?void 0:fullWidth.xl?"100%":"fit-content"}});exports.ButtonContainer=ButtonContainer;var IconContainer=_styled.default.div(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 0.45em;\n"])));exports.IconContainer=IconContainer;var IconWrapper=_styled.default.div(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n align-items: center;\n"])));exports.IconWrapper=IconWrapper;