@pedidopago/ui 1.17.2 → 1.17.4

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.
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ require('../lib/create-snippet.js');
@@ -1,4 +1,4 @@
1
1
  "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.StyledNewAlert=void 0;var _templateObject,_react=require("@emotion/react"),_styled=_interopRequireDefault(require("@emotion/styled")),_Flex=_interopRequireDefault(require("../Flex")),_getColorValue=require("../../utils/getColorValue"),_utils=require("./utils");/* eslint-disable no-console */ // Libs
2
2
  // Utils
3
3
  function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}// Types
4
- var StyledNewAlert=(0,_styled.default)(_Flex.default)(function(props){var _props$bgColor,_props$color,bgColorByType=(0,_utils.getBackgroundColorByType)(props.type),textColorByType=(0,_utils.getTextColorByType)(props.type,"dark"===props.theme.colorMode),headerBgColorByType=(0,_utils.getHeaderBackgroundColorByType)(props.type),headerBgColor=(0,_getColorValue.getColorValue)(headerBgColorByType,props.theme),backgroundColor=(0,_getColorValue.getColorValue)(null!==(_props$bgColor=props.bgColor)&&void 0!==_props$bgColor?_props$bgColor:bgColorByType,props.theme),textColor=(0,_getColorValue.getColorValue)(null!==(_props$color=props.color)&&void 0!==_props$color?_props$color:textColorByType,props.theme);return(0,_react.css)(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n gap: 0.875rem;\n border-radius: 0.25rem;\n background-color: ",";\n color: ",";\n font-size: 1rem;\n padding: 0.75rem 1rem;\n\n width: ",";\n box-sizing: border-box;\n\n &:has(.alert-header) {\n flex-direction: column;\n padding: 0;\n gap: 0;\n }\n\n &:not(:has(.alert-header)).full-rounded {\n border-radius: 9999px;\n font-size: 0.875rem;\n }\n\n &:not(:has(.alert-header)).highlighted {\n border-left: 0.25rem solid ",";\n }\n\n &:not(:has(.alert-header)).filled {\n background-color: ",";\n color: white;\n }\n\n .alert-header {\n padding: 0.75rem 1rem;\n width: 100%;\n font-weight: 600;\n color: white;\n background: ",";\n border-radius: 0.25rem 0.25rem 0 0;\n }\n\n .alert-content {\n padding: 0.75rem 1rem;\n width: 100%;\n }\n "])),backgroundColor,textColor,props.fullWidth?"100%":"fit-content",headerBgColor,headerBgColor,headerBgColor)});exports.StyledNewAlert=StyledNewAlert;
4
+ var StyledNewAlert=(0,_styled.default)(_Flex.default)(function(props){var _props$bgColor,_props$color,bgColorByType=(0,_utils.getBackgroundColorByType)(props.type),textColorByType=(0,_utils.getTextColorByType)(props.type,"dark"===props.theme.colorMode),headerBgColorByType=(0,_utils.getHeaderBackgroundColorByType)(props.type),headerBgColor=(0,_getColorValue.getColorValue)(headerBgColorByType,props.theme),backgroundColor=(0,_getColorValue.getColorValue)(null!==(_props$bgColor=props.bgColor)&&void 0!==_props$bgColor?_props$bgColor:bgColorByType,props.theme),textColor=(0,_getColorValue.getColorValue)(null!==(_props$color=props.color)&&void 0!==_props$color?_props$color:textColorByType,props.theme);return(0,_react.css)(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n gap: 0.875rem;\n border-radius: 0.25rem;\n background-color: ",";\n color: ",";\n font-size: 1rem;\n padding: 0.75rem 1rem;\n\n width: ",";\n box-sizing: border-box;\n\n &:has(.alert-header) {\n flex-direction: column;\n padding: 0;\n gap: 0;\n }\n\n &:not(:has(.alert-header)).rounded-full {\n border-radius: 9999px;\n font-size: 0.875rem;\n }\n\n &:not(:has(.alert-header)).highlighted {\n border-left: 0.25rem solid ",";\n }\n\n &:not(:has(.alert-header)).filled {\n background-color: ",";\n color: white;\n }\n\n .alert-header {\n padding: 0.75rem 1rem;\n width: 100%;\n font-weight: 600;\n color: white;\n background: ",";\n border-radius: 0.25rem 0.25rem 0 0;\n }\n\n .alert-content {\n padding: 0.75rem 1rem;\n width: 100%;\n }\n "])),backgroundColor,textColor,props.fullWidth?"100%":"fit-content",headerBgColor,headerBgColor,headerBgColor)});exports.StyledNewAlert=StyledNewAlert;
@@ -1,7 +1,7 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
  import { GlobalColorsProps } from '../../shared/theme';
3
3
  export type NewAlertType = 'success' | 'error' | 'info' | 'warning' | 'default';
4
- export type NewAlertVariant = 'filled' | 'full-rounded' | 'highlighted' | 'default';
4
+ export type NewAlertVariant = 'filled' | 'rounded-full' | 'highlighted' | 'default';
5
5
  export type NewAlertProps = HTMLAttributes<HTMLDivElement> & {
6
6
  type?: NewAlertType;
7
7
  variant?: NewAlertVariant;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pedidopago/ui",
3
- "version": "1.17.2",
3
+ "version": "1.17.4",
4
4
  "description": "Quick build beautiful Pedido Pago apps",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/CHANGELOG.md DELETED
File without changes