Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cleartrip/ct-design-alert-callout

Package Overview
Dependencies
Maintainers
0
Versions
171
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cleartrip/ct-design-alert-callout - npm Package Compare versions

Comparing version 3.15.0-SNAPSHOT-atp-mevc-drag.0 to 3.15.0-SNAPSHOT-emotion.0

2

dist/ct-design-alert-callout.browser.cjs.js

@@ -1,2 +0,2 @@

"use strict";var e=require("tslib"),r=require("react/jsx-runtime"),s=require("react"),t=require("styled-components"),a=require("@cleartrip/ct-design-container"),l=require("@cleartrip/ct-design-theme"),n=require("classnames");function i(e){return e&&e.__esModule?e:{default:e}}var o,c,u=i(t),d=i(n);exports.AlertCalloutVariants=void 0,(o=exports.AlertCalloutVariants||(exports.AlertCalloutVariants={})).SUCCESS="success",o.ERROR="error",o.WARNING="warning",o.INFO="info",o.NEUTRAL="neutral";var x=((c={})[exports.AlertCalloutVariants.SUCCESS]=l.BaseTheme.color.alert.success,c[exports.AlertCalloutVariants.ERROR]=l.BaseTheme.color.alert.error,c[exports.AlertCalloutVariants.WARNING]=l.BaseTheme.color.alert.warning,c[exports.AlertCalloutVariants.INFO]=l.BaseTheme.color.alert.info,c[exports.AlertCalloutVariants.NEUTRAL]=l.BaseTheme.color.alert.neutral,c);function f(e){var r;return null!==(r=x[e])&&void 0!==r?r:x[exports.AlertCalloutVariants.SUCCESS]}var m=u.default.div((function(r){var s=r.theme,t=r.css,a=e.__rest(r,["theme","css"]);return function(r){var s=r.theme,t=r.variant,a=r.css;return e.__assign({display:"flex",justifyContent:"center",flexDirection:"column",backgroundColor:f(t),padding:"8px 12px",borderRadius:s.border.radius[8]},a)}(e.__assign({theme:s,css:t},a))})),C=s.forwardRef((function(s,t){s.as;var n=s.textNode,i=s.css,o=s.rightActionNode,c=s.prefixIconNode,u=s.variant,x=s.description,f=s.styleConfig,C=void 0===f?{}:f,v=e.__rest(s,["as","textNode","css","rightActionNode","prefixIconNode","variant","description","styleConfig"]),N=l.useTheme(),h=C.root,p=C.rootContainer,_=C.prefixIconContainer,g=C.textNodeContainer,A=C.rightActionContainer;return r.jsxs(m,e.__assign({ref:t,theme:N,variant:null!=u?u:exports.AlertCalloutVariants.SUCCESS,css:(null==h?void 0:h.css)||i,className:null==h?void 0:h.className},v,{children:[r.jsxs(a.Container,e.__assign({className:"flex flex-middle flex-between"},{children:[r.jsxs(a.Container,e.__assign({className:d.default("flex flex-middle",null==p?void 0:p.className),css:null==p?void 0:p.css},{children:[!!c&&r.jsx(a.Container,e.__assign({className:d.default("flex flex-middle flex-no-shrink mr-2",null==_?void 0:_.className),css:null==_?void 0:_.css},{children:c})),r.jsx(a.Container,e.__assign({className:d.default("flex flex-middle",null==g?void 0:g.className),css:null==g?void 0:g.css},{children:n}))]})),!!o&&r.jsx(a.Container,e.__assign({className:d.default("ml-3 flex-no-shrink",null==A?void 0:A.className),css:null==A?void 0:A.css},{children:o}))]})),!!x&&x]}))}));exports.AlertCallout=C;
"use strict";var e=require("tslib"),r=require("react/jsx-runtime"),s=require("react"),t=require("@emotion/styled"),a=require("@cleartrip/ct-design-container"),l=require("@cleartrip/ct-design-theme"),n=require("classnames");function i(e){return e&&e.__esModule?e:{default:e}}var o,c,u=i(t),d=i(n);exports.AlertCalloutVariants=void 0,(o=exports.AlertCalloutVariants||(exports.AlertCalloutVariants={})).SUCCESS="success",o.ERROR="error",o.WARNING="warning",o.INFO="info",o.NEUTRAL="neutral";var x=((c={})[exports.AlertCalloutVariants.SUCCESS]=l.BaseTheme.color.alert.success,c[exports.AlertCalloutVariants.ERROR]=l.BaseTheme.color.alert.error,c[exports.AlertCalloutVariants.WARNING]=l.BaseTheme.color.alert.warning,c[exports.AlertCalloutVariants.INFO]=l.BaseTheme.color.alert.info,c[exports.AlertCalloutVariants.NEUTRAL]=l.BaseTheme.color.alert.neutral,c);function f(e){var r;return null!==(r=x[e])&&void 0!==r?r:x[exports.AlertCalloutVariants.SUCCESS]}var m=u.default.div((function(r){var s=r.theme,t=r.css,a=e.__rest(r,["theme","css"]);return function(r){var s=r.theme,t=r.variant,a=r.css;return e.__assign({display:"flex",justifyContent:"center",flexDirection:"column",backgroundColor:f(t),padding:"8px 12px",borderRadius:s.border.radius[8]},a)}(e.__assign({theme:s,css:t},a))})),C=s.forwardRef((function(s,t){s.as;var n=s.textNode,i=s.css,o=s.rightActionNode,c=s.prefixIconNode,u=s.variant,x=s.description,f=s.styleConfig,C=void 0===f?{}:f,v=e.__rest(s,["as","textNode","css","rightActionNode","prefixIconNode","variant","description","styleConfig"]),N=l.useTheme(),h=C.root,p=C.rootContainer,_=C.prefixIconContainer,g=C.textNodeContainer,A=C.rightActionContainer;return r.jsxs(m,e.__assign({ref:t,theme:N,variant:null!=u?u:exports.AlertCalloutVariants.SUCCESS,css:(null==h?void 0:h.css)||i,className:null==h?void 0:h.className},v,{children:[r.jsxs(a.Container,e.__assign({className:"flex flex-middle flex-between"},{children:[r.jsxs(a.Container,e.__assign({className:d.default("flex flex-middle",null==p?void 0:p.className),css:null==p?void 0:p.css},{children:[!!c&&r.jsx(a.Container,e.__assign({className:d.default("flex flex-middle flex-no-shrink mr-2",null==_?void 0:_.className),css:null==_?void 0:_.css},{children:c})),r.jsx(a.Container,e.__assign({className:d.default("flex flex-middle",null==g?void 0:g.className),css:null==g?void 0:g.css},{children:n}))]})),!!o&&r.jsx(a.Container,e.__assign({className:d.default("ml-3 flex-no-shrink",null==A?void 0:A.className),css:null==A?void 0:A.css},{children:o}))]})),!!x&&x]}))}));exports.AlertCallout=C;
//# sourceMappingURL=ct-design-alert-callout.browser.cjs.js.map

@@ -1,2 +0,2 @@

import{__assign as e,__rest as r}from"tslib";import{jsxs as o,jsx as n}from"react/jsx-runtime";import{forwardRef as l}from"react";import s from"styled-components";import{Container as i}from"@cleartrip/ct-design-container";import{BaseTheme as t,useTheme as c}from"@cleartrip/ct-design-theme";import a from"classnames";var d,m;!function(e){e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.INFO="info",e.NEUTRAL="neutral"}(d||(d={}));var f=((m={})[d.SUCCESS]=t.color.alert.success,m[d.ERROR]=t.color.alert.error,m[d.WARNING]=t.color.alert.warning,m[d.INFO]=t.color.alert.info,m[d.NEUTRAL]=t.color.alert.neutral,m);function u(e){var r;return null!==(r=f[e])&&void 0!==r?r:f[d.SUCCESS]}var N=s.div((function(o){var n=o.theme,l=o.css,s=r(o,["theme","css"]);return function(r){var o=r.theme,n=r.variant,l=r.css;return e({display:"flex",justifyContent:"center",flexDirection:"column",backgroundColor:u(n),padding:"8px 12px",borderRadius:o.border.radius[8]},l)}(e({theme:n,css:l},s))})),v=l((function(l,s){l.as;var t=l.textNode,m=l.css,f=l.rightActionNode,u=l.prefixIconNode,v=l.variant,x=l.description,p=l.styleConfig,h=void 0===p?{}:p,C=r(l,["as","textNode","css","rightActionNode","prefixIconNode","variant","description","styleConfig"]),S=c(),g=h.root,R=h.rootContainer,E=h.prefixIconContainer,A=h.textNodeContainer,I=h.rightActionContainer;return o(N,e({ref:s,theme:S,variant:null!=v?v:d.SUCCESS,css:(null==g?void 0:g.css)||m,className:null==g?void 0:g.className},C,{children:[o(i,e({className:"flex flex-middle flex-between"},{children:[o(i,e({className:a("flex flex-middle",null==R?void 0:R.className),css:null==R?void 0:R.css},{children:[!!u&&n(i,e({className:a("flex flex-middle flex-no-shrink mr-2",null==E?void 0:E.className),css:null==E?void 0:E.css},{children:u})),n(i,e({className:a("flex flex-middle",null==A?void 0:A.className),css:null==A?void 0:A.css},{children:t}))]})),!!f&&n(i,e({className:a("ml-3 flex-no-shrink",null==I?void 0:I.className),css:null==I?void 0:I.css},{children:f}))]})),!!x&&x]}))}));export{v as AlertCallout,d as AlertCalloutVariants};
import{__assign as e,__rest as r}from"tslib";import{jsxs as o,jsx as l}from"react/jsx-runtime";import{forwardRef as n}from"react";import s from"@emotion/styled";import{Container as i}from"@cleartrip/ct-design-container";import{BaseTheme as t,useTheme as c}from"@cleartrip/ct-design-theme";import a from"classnames";var d,m;!function(e){e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.INFO="info",e.NEUTRAL="neutral"}(d||(d={}));var f=((m={})[d.SUCCESS]=t.color.alert.success,m[d.ERROR]=t.color.alert.error,m[d.WARNING]=t.color.alert.warning,m[d.INFO]=t.color.alert.info,m[d.NEUTRAL]=t.color.alert.neutral,m);function u(e){var r;return null!==(r=f[e])&&void 0!==r?r:f[d.SUCCESS]}var N=s.div((function(o){var l=o.theme,n=o.css,s=r(o,["theme","css"]);return function(r){var o=r.theme,l=r.variant,n=r.css;return e({display:"flex",justifyContent:"center",flexDirection:"column",backgroundColor:u(l),padding:"8px 12px",borderRadius:o.border.radius[8]},n)}(e({theme:l,css:n},s))})),v=n((function(n,s){n.as;var t=n.textNode,m=n.css,f=n.rightActionNode,u=n.prefixIconNode,v=n.variant,x=n.description,p=n.styleConfig,h=void 0===p?{}:p,C=r(n,["as","textNode","css","rightActionNode","prefixIconNode","variant","description","styleConfig"]),S=c(),g=h.root,R=h.rootContainer,E=h.prefixIconContainer,A=h.textNodeContainer,I=h.rightActionContainer;return o(N,e({ref:s,theme:S,variant:null!=v?v:d.SUCCESS,css:(null==g?void 0:g.css)||m,className:null==g?void 0:g.className},C,{children:[o(i,e({className:"flex flex-middle flex-between"},{children:[o(i,e({className:a("flex flex-middle",null==R?void 0:R.className),css:null==R?void 0:R.css},{children:[!!u&&l(i,e({className:a("flex flex-middle flex-no-shrink mr-2",null==E?void 0:E.className),css:null==E?void 0:E.css},{children:u})),l(i,e({className:a("flex flex-middle",null==A?void 0:A.className),css:null==A?void 0:A.css},{children:t}))]})),!!f&&l(i,e({className:a("ml-3 flex-no-shrink",null==I?void 0:I.className),css:null==I?void 0:I.css},{children:f}))]})),!!x&&x]}))}));export{v as AlertCallout,d as AlertCalloutVariants};
//# sourceMappingURL=ct-design-alert-callout.browser.esm.js.map

@@ -6,3 +6,3 @@ 'use strict';

var react = require('react');
var styled = require('styled-components');
var styled = require('@emotion/styled');
var ctDesignContainer = require('@cleartrip/ct-design-container');

@@ -9,0 +9,0 @@ var ctDesignTheme = require('@cleartrip/ct-design-theme');

import { __assign, __rest } from 'tslib';
import { jsxs, jsx } from 'react/jsx-runtime';
import { forwardRef } from 'react';
import styled from 'styled-components';
import styled from '@emotion/styled';
import { Container } from '@cleartrip/ct-design-container';

@@ -6,0 +6,0 @@ import { BaseTheme, useTheme } from '@cleartrip/ct-design-theme';

(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react/jsx-runtime'), require('react'), require('styled-components'), require('@cleartrip/ct-design-container'), require('@cleartrip/ct-design-theme')) :
typeof define === 'function' && define.amd ? define(['exports', 'react/jsx-runtime', 'react', 'styled-components', '@cleartrip/ct-design-container', '@cleartrip/ct-design-theme'], factory) :
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react/jsx-runtime'), require('react'), require('@emotion/styled'), require('@cleartrip/ct-design-container'), require('@cleartrip/ct-design-theme')) :
typeof define === 'function' && define.amd ? define(['exports', 'react/jsx-runtime', 'react', '@emotion/styled', '@cleartrip/ct-design-container', '@cleartrip/ct-design-theme'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.CTDesignSystemAlertCallout = {}, global.jsxRuntime, global.React, global.styled, global.ctDesignContainer, global.ctDesignTheme));

@@ -5,0 +5,0 @@ })(this, (function (exports, jsxRuntime, react, styled, ctDesignContainer, ctDesignTheme) { 'use strict';

@@ -1,2 +0,2 @@

import { CSSObject } from 'styled-components';
import { CSSObject } from '@emotion/react';
import { AlertCalloutVariant, IStyledAlertCallout } from './type';

@@ -3,0 +3,0 @@ export declare function getAlertCalloutColourCode(variant: AlertCalloutVariant): string;

import { ReactNode } from 'react';
import { CSSProperties } from 'styled-components';
import { CSSProperties } from 'react';
import { Theme } from '@cleartrip/ct-design-theme';

@@ -4,0 +4,0 @@ import { BaseStyleConfigProps } from '@cleartrip/ct-design-types';

{
"name": "@cleartrip/ct-design-alert-callout",
"version": "3.15.0-SNAPSHOT-atp-mevc-drag.0",
"version": "3.15.0-SNAPSHOT-emotion.0",
"description": "AlertCallout Component",

@@ -18,13 +18,14 @@ "types": "dist/index.d.ts",

"dependencies": {
"@cleartrip/ct-design-container": "3.15.0-SNAPSHOT-atp-mevc-drag.0",
"@cleartrip/ct-design-theme": "3.15.0-SNAPSHOT-atp-mevc-drag.0",
"@cleartrip/ct-design-types": "3.15.0-SNAPSHOT-atp-mevc-drag.0"
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@cleartrip/ct-design-container": "3.15.0-SNAPSHOT-emotion.0",
"@cleartrip/ct-design-theme": "3.15.0-SNAPSHOT-emotion.0",
"@cleartrip/ct-design-types": "3.15.0-SNAPSHOT-emotion.0"
},
"devDependencies": {
"@cleartrip/ct-design-icons": "33.0.0-SNAPSHOT-atp-mevc-drag.0"
"@cleartrip/ct-design-icons": "33.0.0-SNAPSHOT-emotion.0"
},
"peerDependencies": {
"react": ">=16.8.0",
"react-dom": ">=16.8.0",
"styled-components": "^5.3.6"
"react-dom": ">=16.8.0"
},

@@ -31,0 +32,0 @@ "publishConfig": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc