@cleartrip/ct-design-chip 3.0.0-beta.1 → 3.1.0-SNAPSHOT-test.6

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.
@@ -1 +1 @@
1
- {"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../packages/components/Chip/src/Chip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAOpD,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAKnC,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAmI7B,CAAC;AAEF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../packages/components/Chip/src/Chip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAO1C,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAMnC,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAqN7B,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -1,7 +1,9 @@
1
- import { CSSProperties } from 'styled-components';
1
+ /// <reference types="react" />
2
+ import { CSSWithThemeProps } from '@cleartrip/ct-design-types';
2
3
  import { StyledChipProps } from './type';
3
- declare const StyledChip: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledChipProps & {
4
- css?: CSSProperties | undefined;
5
- }, never>;
4
+ declare const StyledChip: import("@emotion/styled").StyledComponent<{
5
+ theme?: import("@emotion/react").Theme | undefined;
6
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
7
+ } & StyledChipProps & CSSWithThemeProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
8
  export default StyledChip;
7
9
  //# sourceMappingURL=StyledChip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StyledChip.d.ts","sourceRoot":"","sources":["../../packages/components/Chip/src/StyledChip/StyledChip.tsx"],"names":[],"mappings":"AAAA,OAAe,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE1D,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAEzC,QAAA,MAAM,UAAU;;SAYf,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"StyledChip.d.ts","sourceRoot":"","sources":["../../packages/components/Chip/src/StyledChip/StyledChip.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAEzC,QAAA,MAAM,UAAU;;;+IAmCf,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1,7 +1,7 @@
1
- import { CSSObject } from 'styled-components';
1
+ import { CSSObject } from '@emotion/styled';
2
2
  import { Theme } from '@cleartrip/ct-design-theme';
3
3
  import { StyledChipProps } from './type';
4
- export declare const getStyledChipStyles: ({ theme, backgroundColor, borderColor, borderRadius, borderWidth, cursor, paddingTop, paddingBottom, }: StyledChipProps & {
4
+ export declare const getStyledChipStyles: ({ theme, backgroundColor, borderColor, borderRadius, borderWidth, cursor, paddingTop, paddingBottom, paddingLeft, paddingRight, boxShadow, webkitBoxShadow, background, }: StyledChipProps & {
5
5
  theme: Theme;
6
6
  }) => CSSObject;
7
7
  //# sourceMappingURL=style.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../packages/components/Chip/src/StyledChip/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAEzC,eAAO,MAAM,mBAAmB;WASF,KAAK;MAAK,SAevC,CAAC"}
1
+ {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../packages/components/Chip/src/StyledChip/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAEzC,eAAO,MAAM,mBAAmB;WAcF,KAAK;MAAK,SAkBvC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { CSSObject } from 'styled-components';
1
+ import { CSSObject } from '@emotion/styled';
2
2
  export interface StyledChipProps {
3
3
  borderColor?: string;
4
4
  borderRadius?: string;
@@ -6,6 +6,11 @@ export interface StyledChipProps {
6
6
  backgroundColor?: string;
7
7
  paddingTop?: string;
8
8
  paddingBottom?: string;
9
+ paddingLeft?: string;
10
+ paddingRight?: string;
9
11
  cursor?: CSSObject['cursor'];
12
+ boxShadow?: string;
13
+ webkitBoxShadow?: string;
14
+ background?: string;
10
15
  }
11
16
  //# sourceMappingURL=type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../packages/components/Chip/src/StyledChip/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,MAAM,WAAW,eAAe;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;CAC9B"}
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../packages/components/Chip/src/StyledChip/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,WAAW,eAAe;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
@@ -1,7 +1,9 @@
1
- import { CSSProperties } from 'styled-components';
1
+ /// <reference types="react" />
2
+ import { CSSWithThemeProps } from '@cleartrip/ct-design-types';
2
3
  import { StyledCounterProps } from './type';
3
- declare const StyledCounter: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledCounterProps & {
4
- css?: CSSProperties | undefined;
5
- }, never>;
4
+ declare const StyledCounter: import("@emotion/styled").StyledComponent<{
5
+ theme?: import("@emotion/react").Theme | undefined;
6
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
7
+ } & StyledCounterProps & CSSWithThemeProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
8
  export default StyledCounter;
7
9
  //# sourceMappingURL=StyledCounter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StyledCounter.d.ts","sourceRoot":"","sources":["../../packages/components/Chip/src/StyledCounter/StyledCounter.tsx"],"names":[],"mappings":"AAAA,OAAe,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAE5C,QAAA,MAAM,aAAa;;SAElB,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"StyledCounter.d.ts","sourceRoot":"","sources":["../../packages/components/Chip/src/StyledCounter/StyledCounter.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAE5C,QAAA,MAAM,aAAa;;;kJAGhB,CAAC;AAEJ,eAAe,aAAa,CAAC"}
@@ -1,7 +1,7 @@
1
- import { CSSObject } from 'styled-components';
1
+ import { CSSObject } from '@emotion/styled';
2
2
  import { Theme } from '@cleartrip/ct-design-theme';
3
3
  import { StyledCounterProps } from './type';
4
- export declare const getStyledCounterStyles: ({ backgroundColor, theme, }: StyledCounterProps & {
4
+ export declare const getStyledCounterStyles: ({ theme, backgroundColor, }: StyledCounterProps & {
5
5
  theme: Theme;
6
6
  }) => CSSObject;
7
7
  //# sourceMappingURL=style.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../packages/components/Chip/src/StyledCounter/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAE5C,eAAO,MAAM,sBAAsB;WAGF,KAAK;MAAK,SAU1C,CAAC"}
1
+ {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../packages/components/Chip/src/StyledCounter/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAE5C,eAAO,MAAM,sBAAsB;WAGF,KAAK;MAAK,SAI1C,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { SVGProps } from 'react';
2
+ declare const ChipShimmer: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
+ export default ChipShimmer;
4
+ //# sourceMappingURL=chipShimmer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chipShimmer.d.ts","sourceRoot":"","sources":["../packages/components/Chip/src/chipShimmer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,QAAA,MAAM,WAAW,UAAW,SAAS,aAAa,CAAC,4CAuBlD,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("tslib"),o=require("react/jsx-runtime"),r=require("@cleartrip/ct-design-typography"),i=require("@cleartrip/ct-design-container"),s=require("styled-components"),n=require("@cleartrip/ct-design-theme"),d=require("@cleartrip/ct-design-types"),a=require("@cleartrip/ct-design-icons");function t(e){return e&&e.__esModule?e:{default:e}}var c=t(s),l=c.default.div((function(o){var r=o.theme,i=o.backgroundColor,s=o.borderColor,n=o.borderRadius,d=o.borderWidth,a=o.cursor,t=o.paddingTop,c=o.paddingBottom,l=o.css,u=void 0===l?{}:l;return e.__assign(e.__assign({},function(e){var o=e.theme,r=e.backgroundColor,i=e.borderColor,s=e.borderRadius,n=e.borderWidth,d=e.cursor;return{paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,paddingLeft:o.spacing[2],paddingRight:o.spacing[2],width:"fit-content",whiteSpace:"nowrap",borderStyle:o.border.style.solid,backgroundColor:r,borderColor:i,borderRadius:s,borderWidth:n,cursor:d}}({theme:r,backgroundColor:i,borderColor:s,borderRadius:n,borderWidth:d,paddingTop:t,paddingBottom:c,cursor:a})),u)})),u=c.default.div((function(o){var r=o.theme,i=o.backgroundColor,s=o.css,n=void 0===s?{}:s;return e.__assign(e.__assign({},function(e){var o=e.backgroundColor,r=e.theme;return{display:"flex",alignItems:"center",justifyContent:"center",height:r.size[4],width:r.size[4],borderRadius:r.border.radius["50P"],backgroundColor:o}}({theme:r,backgroundColor:i})),n)})),g=function(e){var o=e.isSelected,r=e.isDisabled,i=e.theme;return r?i.color.chip.disabledPrimaryLabel:o?i.color.chip.selectedPrimaryLabel:i.color.chip.nonSelectedPrimaryLabel};exports.Chip=function(s){var t=s.label,c=s.showIcon,p=void 0!==c&&c,b=s.iconPosition,h=void 0===b?d.IconPosition.LEFT:b,m=s.Icon,C=void 0===m?null:m,v=s.showCounter,_=void 0!==v&&v,f=s.count,y=void 0===f?0:f,x=s.isDismissible,j=void 0!==x&&x,N=s.isSelected,P=void 0!==N&&N,T=s.isDisabled,k=void 0!==T&&T,I=s.onClick,L=s.onDismiss,w=void 0===L?void 0:L,R=s.borderWidth,W=void 0===R?"md":R,B=s.styleConfig,S=void 0===B?{}:B,q=n.useTheme(),D=function(o){var r=o.isSelected,i=o.isDisabled,s=o.showTopIcon,n=o.theme,d=o.borderWidth,a={paddingTop:s?n.spacing[2]:"6px",paddingBottom:s?n.spacing[2]:"6px"};return i?e.__assign(e.__assign({},a),function(e,o){return{backgroundColor:e.color.background.neutral,borderWidth:e.border.width[o],borderColor:e.color.border.disabled,borderRadius:e.border.radius[30],cursor:"not-allowed"}}(n,d)):r?e.__assign(e.__assign({},a),function(e,o){return{backgroundColor:e.color.chip.selectedPrimaryBg,borderWidth:e.border.width[o],borderColor:e.color.chip.selectedPrimaryBorder,borderRadius:e.border.radius[30],cursor:"pointer"}}(n,d)):e.__assign(e.__assign({},a),function(e,o){return{backgroundColor:e.color.background.neutral,borderWidth:e.border.width[o],borderColor:e.color.border.default,borderRadius:e.border.radius[30],cursor:"pointer"}}(n,d))}({isSelected:P,isDisabled:k,showTopIcon:p&&h===d.IconPosition.TOP,theme:q,borderWidth:W}),z=function(e){return{backgroundColor:e.theme.color.chip.selectedPrimaryLabel}}({theme:q}),E=S.root,F=S.iconContainer,G=S.chipContainer,O=S.labelContainer,A=S.labelTypography,H=S.crossContainer,M=S.crossIcon,J=S.counter,K=S.counterContainer,Q=S.counterTypography;return o.jsxs(l,e.__assign({},D,{theme:q,onClick:k?void 0:I,className:null==E?void 0:E.className,css:null==E?void 0:E.css},{children:[p&&h===d.IconPosition.TOP&&o.jsx(i.Container,e.__assign({display:"flex",alignItems:"center",marginBottom:q.spacing[1],className:null==F?void 0:F.className,css:null==F?void 0:F.css},{children:C})),o.jsxs(i.Container,e.__assign({display:"flex",alignItems:"center",justifyContent:"center",className:null==G?void 0:G.className,css:null==G?void 0:G.css},{children:[p&&h===d.IconPosition.LEFT&&o.jsx(i.Container,e.__assign({display:"flex",alignItems:"center",justifyContent:"center",paddingRight:q.spacing[1],className:null==F?void 0:F.className,css:null==F?void 0:F.css},{children:C})),o.jsx(i.Container,e.__assign({paddingLeft:q.spacing[1],paddingRight:q.spacing[1],className:null==O?void 0:O.className,css:null==O?void 0:O.css},{children:o.jsx(r.Typography,e.__assign({variant:"B2",colorCode:g({isSelected:P,isDisabled:k,theme:q}),styleConfig:A},{children:t}))})),p&&h===d.IconPosition.RIGHT&&o.jsx(i.Container,e.__assign({display:"flex",alignItems:"center",justifyContent:"center",paddingLeft:q.spacing[1],className:null==F?void 0:F.className,css:null==F?void 0:F.css},{children:C})),_&&o.jsx(i.Container,e.__assign({paddingLeft:q.spacing[1],className:null==K?void 0:K.className,css:null==K?void 0:K.css},{children:o.jsx(u,e.__assign({},z,{className:null==J?void 0:J.className,css:null==J?void 0:J.css},{children:o.jsx(r.Typography,e.__assign({variant:"TAG",color:"neutral",styleConfig:Q},{children:y}))}))})),j&&o.jsx(i.Container,e.__assign({paddingLeft:q.spacing[1],display:"flex",alignItems:"center",justifyContent:"center",onClick:function(e){e.stopPropagation(),w&&w()},className:null==H?void 0:H.className,css:null==H?void 0:H.css},{children:o.jsx(a.Cross,e.__assign({crossColor:P?q.color.chip.selectedPrimaryLabel:q.color.chip.nonSelectedPrimaryLabel},M||{}))}))]}))]}))};
1
+ "use strict";var i=require("tslib"),e=require("react/jsx-runtime"),n=require("@cleartrip/ct-design-typography"),o=require("@cleartrip/ct-design-container"),s=require("@emotion/styled"),a=require("@cleartrip/ct-design-theme"),r=require("@emotion/react"),t=require("@cleartrip/ct-design-types"),d=require("@cleartrip/ct-design-icons");function c(i){return i&&i.__esModule?i:{default:i}}var l,p,g=c(s),u=g.default.div((function(e){var n=e.theme,o=e.backgroundColor,s=e.borderColor,a=e.borderRadius,r=e.paddingLeft,t=e.paddingRight,d=e.borderWidth,c=e.cursor,l=e.paddingTop,p=e.paddingBottom,g=e.boxShadow,u=e.webkitBoxShadow,h=e.background,m=e.css,b=void 0===m?{}:m;return i.__assign(i.__assign(i.__assign({},function(i){var e=i.theme,n=i.backgroundColor,o=i.borderColor,s=i.borderRadius,a=i.borderWidth,r=i.cursor,t=i.paddingTop,d=i.paddingBottom,c=i.paddingLeft,l=void 0===c?e.spacing[2]:c,p=i.paddingRight,g=void 0===p?e.spacing[2]:p,u=i.boxShadow,h=i.webkitBoxShadow,m=i.background;return{paddingTop:t,paddingBottom:d,paddingLeft:l,paddingRight:g,width:"fit-content",whiteSpace:"nowrap",borderStyle:e.border.style.none,background:m,backgroundColor:n,borderColor:o,borderRadius:s,borderWidth:a,cursor:r,boxShadow:u,webkitBoxShadow:h}}({theme:n,backgroundColor:o,background:h,borderColor:s,borderRadius:a,borderWidth:d,paddingTop:l,paddingBottom:p,paddingLeft:r,paddingRight:t,cursor:c,boxShadow:g,webkitBoxShadow:u})),{position:"relative"}),b)})),h=g.default.div((function(e){var n=e.theme,o=e.backgroundColor,s=e.css,a=void 0===s?{}:s;return i.__assign(i.__assign({},function(i){return i.theme,{backgroundColor:i.backgroundColor}}({theme:n,backgroundColor:o})),a)}));exports.ChipVariant=void 0,(l=exports.ChipVariant||(exports.ChipVariant={})).DEFAULT="default",l.DISABLED="disabled",l.GRADIENT="gradient",exports.ChipSizeType=void 0,(p=exports.ChipSizeType||(exports.ChipSizeType={})).SMALL="sm",p.MEDIUM="md";var m,b,f=function(i){var e=i.isSelected,n=i.isDisabled,o=i.theme;return i.variant===exports.ChipVariant.GRADIENT?o.color.text.success:n?o.color.chip.disabledPrimaryLabel:e?o.color.chip.selectedPrimaryLabel:o.color.chip.nonSelectedPrimaryLabel},_=function(e){var n=e.isSelected,o=e.isDisabled,s=e.showTopIcon,a=e.theme,r=e.borderWidth,t=e.variant,d=function(i){var e=i.showTopIcon,n=i.size,o=i.theme;switch(n){case exports.ChipSizeType.SMALL:return{paddingTop:e?o.spacing[2]:"6px",paddingBottom:e?o.spacing[2]:"6px"};case exports.ChipSizeType.MEDIUM:return{paddingTop:e?o.spacing[3]:"10px",paddingBottom:e?o.spacing[3]:"10px",paddingLeft:o.spacing[4],paddingRight:o.spacing[4]};default:return{}}}({showTopIcon:s,size:e.size,theme:a});return o?i.__assign(i.__assign({},d),function(i){var e=i.border.width.sm,n=i.color.border.disabled;return{backgroundColor:i.color.chip.disabledPrimaryBg,boxShadow:"inset 0 0 0 ".concat(e," ").concat(n),webkitBoxShadow:"inset 0 0 0 ".concat(e," ").concat(n),borderRadius:i.border.radius[30],cursor:"not-allowed"}}(a)):n?i.__assign(i.__assign({},d),function(i,e){var n=i.border.width[e],o=i.color.chip.selectedPrimaryBorder;return{backgroundColor:i.color.chip.selectedPrimaryBg,boxShadow:"inset 0 0 0 ".concat(n," ").concat(o),webkitBoxShadow:"inset 0 0 0 ".concat(n," ").concat(o),borderRadius:i.border.radius[30],cursor:"pointer"}}(a,r)):i.__assign(i.__assign({},d),function(i,e){var n=i.color.border.default,o=i.border.width.sm;return{background:e===exports.ChipVariant.GRADIENT?"linear-gradient(90deg, #CAFBCC 5.15%, rgba(212, 255, 218, 0.615124) 41.66%, rgba(218, 255, 224, 0.233913) 77.81%, rgba(255, 255, 255, 0) 100%)":e===exports.ChipVariant.DISABLED?i.color.background.disabled:i.color.background.neutral,boxShadow:e===exports.ChipVariant.GRADIENT?"none":"inset 0 0 0 ".concat(o," ").concat(n," "),webkitBoxShadow:e===exports.ChipVariant.GRADIENT?"none":"inset 0 0 0 ".concat(o," ").concat(n," "),borderRadius:i.border.radius[30],cursor:"pointer"}}(a,t))},v=r.keyframes(m||(m=i.__makeTemplateObject(["\n 0% { transform: translateX(-50%); opacity:1}\n 80% {opacity: 0.3}\n 100% { transform: translateX(400%); opacity:0}\n "],["\n 0% { transform: translateX(-50%); opacity:1}\n 80% {opacity: 0.3}\n 100% { transform: translateX(400%); opacity:0}\n "]))),x=g.default.div(b||(b=i.__makeTemplateObject(["\n position: absolute;\n display: inline-flex;\n top: -14px;\n left: 0;\n opacity: 5;\n overflow: hidden;\n animation-name: ",";\n animation-duration: 5s;\n animation-iteration-count: 2;\n animation-fill-mode: forwards;\n"],["\n position: absolute;\n display: inline-flex;\n top: -14px;\n left: 0;\n opacity: 5;\n overflow: hidden;\n animation-name: ",";\n animation-duration: 5s;\n animation-iteration-count: 2;\n animation-fill-mode: forwards;\n"])),v),C=function(n){return e.jsxs("svg",i.__assign({width:"50",height:"50",viewBox:"0 0 69 98",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:[e.jsx("g",i.__assign({opacity:"1",filter:"url(#filter0_f_13505_53133)"},{children:e.jsx("rect",{x:"43",y:"16.6328",width:"10.541",height:"66",transform:"rotate(24 43 16.6328)",fill:"white"})})),e.jsx("defs",{children:e.jsxs("filter",i.__assign({id:"filter0_f_13505_53133",x:"0.15625",y:"0.632812",width:"68.4727",height:"96.5813",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"},{children:[e.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),e.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),e.jsx("feGaussianBlur",{stdDeviation:"8",result:"effect1_foregroundBlur_13505_53133"})]}))})]}))};exports.Chip=function(s){var r=s.label,c=void 0===r?"":r,l=s.showIcon,p=void 0!==l&&l,g=s.iconPosition,m=void 0===g?t.IconPosition.LEFT:g,b=s.Icon,v=void 0===b?null:b,y=s.showCounter,w=void 0!==y&&y,j=s.count,S=void 0===j?0:j,T=s.isDismissible,k=void 0!==T&&T,N=s.isSelected,I=void 0!==N&&N,B=s.isDisabled,L=void 0!==B&&B,R=s.onClick,D=s.onDismiss,P=void 0===D?void 0:D,A=s.borderWidth,E=void 0===A?"md":A,G=s.styleConfig,z=void 0===G?{}:G,q=s.variant,V=void 0===q?"default":q,F=s.size,M=void 0===F?"sm":F,W=s.showShimmerAnimation,O=void 0!==W&&W,U=a.useTheme(),X=p&&m===t.IconPosition.TOP,H=_({isSelected:I,isDisabled:L,showTopIcon:X,theme:U,borderWidth:E,variant:V,size:M}),J=function(i){return{backgroundColor:i.theme.color.chip.selectedPrimaryLabel}}({theme:U}),K=z.root,Q=z.iconContainer,Y=z.chipContainer,Z=z.labelContainer,$=z.labelTypography,ii=z.crossContainer,ei=z.crossIcon,ni=z.counter,oi=z.counterContainer,si=z.counterTypography,ai=function(i){i.stopPropagation(),P&&P()};return c?e.jsxs(u,i.__assign({},H,{theme:U,onClick:L?void 0:R,className:null==K?void 0:K.className,css:null==K?void 0:K.css},{children:[p&&m===t.IconPosition.TOP&&e.jsx(o.Container,i.__assign({display:"flex",alignItems:"center",marginBottom:U.spacing[1],className:null==Q?void 0:Q.className,css:null==Q?void 0:Q.css},{children:v})),e.jsxs(o.Container,i.__assign({display:"flex",alignItems:"center",justifyContent:"center",className:null==Y?void 0:Y.className,css:null==Y?void 0:Y.css},{children:[p&&m===t.IconPosition.LEFT&&e.jsx(o.Container,i.__assign({display:"flex",alignItems:"center",justifyContent:"center",paddingRight:U.spacing[1],className:null==Q?void 0:Q.className,css:null==Q?void 0:Q.css},{children:v})),e.jsx(o.Container,i.__assign({paddingLeft:U.spacing[1],paddingRight:U.spacing[1],className:null==Z?void 0:Z.className,css:null==Z?void 0:Z.css},{children:"string"==typeof c?e.jsx(n.Typography,i.__assign({variant:"B2",colorCode:f({variant:V,isSelected:I,isDisabled:L,theme:U}),styleConfig:$},{children:c})):c})),O&&e.jsx(x,{children:e.jsx(C,{})}),p&&m===t.IconPosition.RIGHT&&e.jsx(o.Container,i.__assign({display:"flex",alignItems:"center",justifyContent:"center",paddingLeft:U.spacing[1],className:null==Q?void 0:Q.className,css:null==Q?void 0:Q.css},{children:v})),w&&e.jsx(o.Container,i.__assign({paddingLeft:U.spacing[1],className:null==oi?void 0:oi.className,css:null==oi?void 0:oi.css},{children:e.jsx(h,i.__assign({},J,{className:null==ni?void 0:ni.className,css:null==ni?void 0:ni.css},{children:e.jsx(n.Typography,i.__assign({variant:"TAG",color:"neutral",styleConfig:si},{children:S}))}))})),k&&e.jsx(o.Container,i.__assign({paddingLeft:U.spacing[1],display:"flex",alignItems:"center",justifyContent:"center",onClick:ai,className:null==ii?void 0:ii.className,css:null==ii?void 0:ii.css},{children:e.jsx(d.Cross,i.__assign({crossColor:I?U.color.chip.selectedPrimaryLabel:U.color.chip.nonSelectedPrimaryLabel},ei||{}))}))]}))]})):e.jsxs(u,i.__assign({},H,{theme:U,onClick:L?void 0:R,className:null==K?void 0:K.className,css:i.__assign(i.__assign({},null==K?void 0:K.css),{position:"relative"})},{children:[e.jsxs(o.Container,i.__assign({display:"flex",alignItems:"center",justifyContent:"center",className:null==Y?void 0:Y.className,css:null==Y?void 0:Y.css},{children:[e.jsx(o.Container,i.__assign({display:"flex",alignItems:"center",justifyContent:"center",className:null==Q?void 0:Q.className,css:null==Q?void 0:Q.css},{children:v})),k&&e.jsx(o.Container,i.__assign({paddingLeft:U.spacing[1],display:"flex",alignItems:"center",justifyContent:"center",onClick:ai,className:null==ii?void 0:ii.className,css:null==ii?void 0:ii.css},{children:e.jsx(d.Cross,i.__assign({crossColor:I?U.color.chip.selectedPrimaryLabel:U.color.chip.nonSelectedPrimaryLabel},ei||{}))}))]})),w&&e.jsx(o.Container,i.__assign({className:null==oi?void 0:oi.className,css:null==oi?void 0:oi.css,position:"absolute",top:-7,right:-7},{children:e.jsx(h,i.__assign({},J,{className:null==ni?void 0:ni.className,css:null==ni?void 0:ni.css},{children:e.jsx(n.Typography,i.__assign({variant:"TAG",color:"neutral",styleConfig:si},{children:S}))}))}))]}))};
2
2
  //# sourceMappingURL=ct-design-chip.browser.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ct-design-chip.browser.cjs.js","sources":["../packages/components/Chip/src/StyledChip/StyledChip.tsx","../packages/components/Chip/src/StyledChip/style.ts","../packages/components/Chip/src/StyledCounter/StyledCounter.tsx","../packages/components/Chip/src/StyledCounter/style.ts","../packages/components/Chip/src/style.ts","../packages/components/Chip/src/Chip.tsx"],"sourcesContent":[null,null,null,null,null,null],"names":["StyledChip","styled","default","div","_a","theme","backgroundColor","borderColor","borderRadius","borderWidth","cursor","paddingTop","paddingBottom","_b","css","__assign","paddingLeft","spacing","paddingRight","width","whiteSpace","borderStyle","border","style","solid","getStyledChipStyles","StyledCounter","display","alignItems","justifyContent","height","size","radius","getStyledCounterStyles","getChipLabelColor","isSelected","isDisabled","color","chip","disabledPrimaryLabel","selectedPrimaryLabel","nonSelectedPrimaryLabel","label","showIcon","_c","iconPosition","IconPosition","LEFT","_d","Icon","_e","showCounter","_f","count","_g","isDismissible","_h","_j","onClick","_k","onDismiss","undefined","_l","_m","styleConfig","useTheme","chipStyles","showTopIcon","defaultChipStyles","background","neutral","disabled","getDisabledChipStyles","selectedPrimaryBg","selectedPrimaryBorder","getSelectedChipStyles","getDefaultChipStyles","getChipStyles","TOP","counterStyles","getCounterStyles","root","iconContainer","chipContainer","labelContainer","labelTypography","crossContainer","crossIcon","counter","counterContainer","counterTypography","_jsxs","jsxs","className","children","_jsx","Container","marginBottom","jsx","Typography","variant","colorCode","RIGHT","event","stopPropagation","Cross","crossColor"],"mappings":"iXAIMA,EAAaC,EAAMC,QAACC,KACzB,SAACC,GAAE,IAAAC,EAAKD,EAAAC,MAAEC,EAAeF,EAAAE,gBAAEC,EAAWH,EAAAG,YAAEC,EAAYJ,EAAAI,aAAEC,EAAWL,EAAAK,YAAEC,EAAMN,E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,GAC3B4E,UAAWX,aAAa,EAAbA,EAAeW,UAC1B/E,IAAKoE,aAAA,EAAAA,EAAepE,KAEnB,CAAAgF,SAAA7C,KAGJE,GACC4C,MAACC,EAAAA,UAASjF,EAAAA,SAAA,CAACC,YAAaX,EAAMY,QAAQ,GAAI4E,UAAWJ,aAAgB,EAAhBA,EAAkBI,UAAW/E,IAAK2E,aAAgB,EAAhBA,EAAkB3E,KAAG,CAAAgF,SAC1GC,EAACG,IAAAxE,EAAkBX,EAAAA,SAAA,CAAA,EAAAgE,EAAe,CAAAc,UAAWL,aAAA,EAAAA,EAASK,UAAW/E,IAAK0E,aAAO,EAAPA,EAAS1E,KAAG,CAAAgF,SAChFC,MAACI,EAAAA,WAAWpF,EAAAA,SAAA,CAAAqF,QAAQ,MAAM/D,MAAM,UAAU2B,YAAa0B,GAAiB,CAAAI,SACrEzC,WAKRE,GACCwC,EAAAA,IAACC,EAASA,UACRjF,WAAA,CAAAC,YAAaX,EAAMY,QAAQ,GAC3BU,QAAQ,OACRC,WAAW,SACXC,eAAe,SACf6B,QAtFW,SAAC6C,GACpBA,EAAMC,kBACF5C,GACFA,GAEJ,EAkFUiC,UAAWP,aAAA,EAAAA,EAAgBO,UAC3B/E,IAAKwE,aAAA,EAAAA,EAAgBxE,KAErB,CAAAgF,SAAAC,EAAAG,IAACO,QAAK1F,EAAAA,SAAA,CACJ2F,WAAYvE,EAAa9B,EAAMgC,MAAMC,KAAKE,qBAAuBnC,EAAMgC,MAAMC,KAAKG,yBAC7E8C,GAAa,CAAE,cAOlC"}
1
+ {"version":3,"file":"ct-design-chip.browser.cjs.js","sources":["../packages/components/Chip/src/type.ts","../packages/components/Chip/src/StyledChip/StyledChip.tsx","../packages/components/Chip/src/StyledChip/style.ts","../packages/components/Chip/src/StyledCounter/StyledCounter.tsx","../packages/components/Chip/src/StyledCounter/style.ts","../packages/components/Chip/src/style.ts","../packages/components/Chip/src/chipShimmer.tsx","../packages/components/Chip/src/Chip.tsx"],"sourcesContent":[null,null,null,null,null,null,null,null],"names":["ChipVariant","ChipSizeType","StyledChip","styled","default","div","_a","theme","backgroundColor","borderColor","borderRadius","paddingLeft","paddingRight","borderWidth","cursor","paddingTop","paddingBottom","boxShadow","webkitBoxShadow","background","_b","css","__assign","spacing","_c","width","whiteSpace","borderStyle","border","style","none","getStyledChipStyles","position","StyledCounter","getStyledCounterStyles","getChipLabelColor","isSelected","isDisabled","variant","GRADIENT","color","text","success","chip","disabledPrimaryLabel","selectedPrimaryLabel","nonSelectedPrimaryLabel","getChipStyles","showTopIcon","defaultChipStyles","size","SMALL","MEDIUM","getChipPaddingBySize","borderWidthValue","sm","disabled","disabledPrimaryBg","concat","radius","getDisabledChipStyles","selectedPrimaryBorder","selectedPrimaryBg","getSelectedChipStyles","DISABLED","neutral","getDefaultChipStyles","breatheAnimation","keyframes","templateObject_1","__makeTemplateObject","AnimatedContainer","templateObject_2","ChipShimmer","props","_jsxs","height","viewBox","fill","xmlns","children","_jsx","opacity","filter","x","y","transform","id","filterUnits","result","mode","in","in2","stdDeviation","label","showIcon","_d","iconPosition","IconPosition","LEFT","_e","Icon","_f","showCounter","_g","count","_h","isDismissible","_j","_k","onClick","_l","onDismiss","undefined","_m","_o","styleConfig","_p","_q","_r","showShimmerAnimation","useTheme","TOP","chipStyles","counterStyles","getCounterStyles","root","iconContainer","chipContainer","labelContainer","labelTypography","crossContainer","crossIcon","counter","counterContainer","counterTypography","onCrossClick","event","stopPropagation","jsxs","className","Container","display","alignItems","marginBottom","justifyContent","Typography","colorCode","RIGHT","jsx","Cross","crossColor","top","right"],"mappings":"oYAGYA,EAMAC,SCJNC,EAAaC,EAAMC,QAACC,KACxB,SAACC,GACC,IAAAC,UACAC,oBACAC,gBACAC,iBACAC,gBACAC,iBACAC,gBACAC,WACAC,eACAC,kBACAC,cACAC,oBACAC,eACAC,EAAAd,EAAAe,IAAAA,OAAG,IAAAD,EAAG,CAAA,EAAEA,EACJ,OAAAE,EAAAA,SAAAA,EAAAA,S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WZ,aAAa,EAAbA,EAAeY,UAC1BvH,IAAK2G,aAAA,EAAAA,EAAe3G,KAAG,CAAA2D,SAAA,CAEvBC,EAACoE,IAAAR,EAASA,UACRvH,EAAAA,SAAA,CAAAwH,QAAQ,OACRC,WAAW,SACXE,eAAe,SACfL,UAAWb,eAAAA,EAAea,UAC1BvH,IAAK0G,aAAA,EAAAA,EAAe1G,eAEnBgF,KAGFM,GACC1B,MAAC4D,EAAAA,UAASvH,EAAAA,SAAA,CACRX,YAAaJ,EAAMgB,QAAQ,GAC3BuH,QAAQ,OACRC,WAAW,SACXE,eAAe,SACfnC,QAAS0B,GACTI,UAAWT,cAAc,EAAdA,GAAgBS,UAC3BvH,IAAK8G,cAAA,EAAAA,GAAgB9G,KAErB,CAAA2D,SAAAC,EAAAoE,IAACC,QACChI,EAAAA,SAAA,CAAAiI,WACEnH,EAAa7B,EAAMiC,MAAMG,KAAKE,qBAAuBtC,EAAMiC,MAAMG,KAAKG,yBAEnEsF,IAAa,CAAE,WAK3B7B,GACCtB,EAAAA,IAAC4D,EAAAA,UAASvH,EAAAA,SAAA,CACRsH,UAAWN,gBAAAA,GAAkBM,UAC7BvH,IAAKiH,cAAA,EAAAA,GAAkBjH,IACvBW,SAAS,WACTwH,KAAM,EACNC,OAAQ,GAER,CAAAzE,SAAAC,EAAAA,IAAChD,EAAaX,EAAAA,SAAA,CAAA,EAAKsG,EAAe,CAAAgB,UAAWP,cAAO,EAAPA,GAASO,UAAWvH,IAAKgH,cAAA,EAAAA,GAAShH,KAAG,CAAA2D,SAChFC,EAACoE,IAAAH,EAAUA,uBAAC5G,QAAQ,MAAME,MAAM,UAAU4E,YAAamB,IACpD,CAAAvD,SAAAyB,cAoGjB"}
@@ -1,2 +1,2 @@
1
- import{__assign as o}from"tslib";import{jsxs as r,jsx as e}from"react/jsx-runtime";import{Typography as i}from"@cleartrip/ct-design-typography";import{Container as d}from"@cleartrip/ct-design-container";import n from"styled-components";import{useTheme as s}from"@cleartrip/ct-design-theme";import{IconPosition as t}from"@cleartrip/ct-design-types";import{Cross as l}from"@cleartrip/ct-design-icons";var c=n.div((function(r){var e=r.theme,i=r.backgroundColor,d=r.borderColor,n=r.borderRadius,s=r.borderWidth,t=r.cursor,l=r.paddingTop,c=r.paddingBottom,a=r.css,u=void 0===a?{}:a;return o(o({},function(o){var r=o.theme,e=o.backgroundColor,i=o.borderColor,d=o.borderRadius,n=o.borderWidth,s=o.cursor;return{paddingTop:o.paddingTop,paddingBottom:o.paddingBottom,paddingLeft:r.spacing[2],paddingRight:r.spacing[2],width:"fit-content",whiteSpace:"nowrap",borderStyle:r.border.style.solid,backgroundColor:e,borderColor:i,borderRadius:d,borderWidth:n,cursor:s}}({theme:e,backgroundColor:i,borderColor:d,borderRadius:n,borderWidth:s,paddingTop:l,paddingBottom:c,cursor:t})),u)})),a=n.div((function(r){var e=r.theme,i=r.backgroundColor,d=r.css,n=void 0===d?{}:d;return o(o({},function(o){var r=o.backgroundColor,e=o.theme;return{display:"flex",alignItems:"center",justifyContent:"center",height:e.size[4],width:e.size[4],borderRadius:e.border.radius["50P"],backgroundColor:r}}({theme:e,backgroundColor:i})),n)})),u=function(o){var r=o.isSelected,e=o.isDisabled,i=o.theme;return e?i.color.chip.disabledPrimaryLabel:r?i.color.chip.selectedPrimaryLabel:i.color.chip.nonSelectedPrimaryLabel},p=function(n){var p=n.label,m=n.showIcon,b=void 0!==m&&m,g=n.iconPosition,h=void 0===g?t.LEFT:g,v=n.Icon,f=void 0===v?null:v,C=n.showCounter,y=void 0!==C&&C,N=n.count,k=void 0===N?0:N,T=n.isDismissible,L=void 0!==T&&T,P=n.isSelected,w=void 0!==P&&P,I=n.isDisabled,R=void 0!==I&&I,x=n.onClick,W=n.onDismiss,B=void 0===W?void 0:W,S=n.borderWidth,D=void 0===S?"md":S,j=n.styleConfig,z=void 0===j?{}:j,E=s(),F=function(r){var e=r.isSelected,i=r.isDisabled,d=r.showTopIcon,n=r.theme,s=r.borderWidth,t={paddingTop:d?n.spacing[2]:"6px",paddingBottom:d?n.spacing[2]:"6px"};return o(o({},t),i?function(o,r){return{backgroundColor:o.color.background.neutral,borderWidth:o.border.width[r],borderColor:o.color.border.disabled,borderRadius:o.border.radius[30],cursor:"not-allowed"}}(n,s):e?function(o,r){return{backgroundColor:o.color.chip.selectedPrimaryBg,borderWidth:o.border.width[r],borderColor:o.color.chip.selectedPrimaryBorder,borderRadius:o.border.radius[30],cursor:"pointer"}}(n,s):function(o,r){return{backgroundColor:o.color.background.neutral,borderWidth:o.border.width[r],borderColor:o.color.border.default,borderRadius:o.border.radius[30],cursor:"pointer"}}(n,s))}({isSelected:w,isDisabled:R,showTopIcon:b&&h===t.TOP,theme:E,borderWidth:D}),G=function(o){return{backgroundColor:o.theme.color.chip.selectedPrimaryLabel}}({theme:E}),O=z.root,A=z.iconContainer,H=z.chipContainer,q=z.labelContainer,J=z.labelTypography,K=z.crossContainer,M=z.crossIcon,Q=z.counter,U=z.counterContainer,V=z.counterTypography;return r(c,o({},F,{theme:E,onClick:R?void 0:x,className:null==O?void 0:O.className,css:null==O?void 0:O.css},{children:[b&&h===t.TOP&&e(d,o({display:"flex",alignItems:"center",marginBottom:E.spacing[1],className:null==A?void 0:A.className,css:null==A?void 0:A.css},{children:f})),r(d,o({display:"flex",alignItems:"center",justifyContent:"center",className:null==H?void 0:H.className,css:null==H?void 0:H.css},{children:[b&&h===t.LEFT&&e(d,o({display:"flex",alignItems:"center",justifyContent:"center",paddingRight:E.spacing[1],className:null==A?void 0:A.className,css:null==A?void 0:A.css},{children:f})),e(d,o({paddingLeft:E.spacing[1],paddingRight:E.spacing[1],className:null==q?void 0:q.className,css:null==q?void 0:q.css},{children:e(i,o({variant:"B2",colorCode:u({isSelected:w,isDisabled:R,theme:E}),styleConfig:J},{children:p}))})),b&&h===t.RIGHT&&e(d,o({display:"flex",alignItems:"center",justifyContent:"center",paddingLeft:E.spacing[1],className:null==A?void 0:A.className,css:null==A?void 0:A.css},{children:f})),y&&e(d,o({paddingLeft:E.spacing[1],className:null==U?void 0:U.className,css:null==U?void 0:U.css},{children:e(a,o({},G,{className:null==Q?void 0:Q.className,css:null==Q?void 0:Q.css},{children:e(i,o({variant:"TAG",color:"neutral",styleConfig:V},{children:k}))}))})),L&&e(d,o({paddingLeft:E.spacing[1],display:"flex",alignItems:"center",justifyContent:"center",onClick:function(o){o.stopPropagation(),B&&B()},className:null==K?void 0:K.className,css:null==K?void 0:K.css},{children:e(l,o({crossColor:w?E.color.chip.selectedPrimaryLabel:E.color.chip.nonSelectedPrimaryLabel},M||{}))}))]}))]}))};export{p as Chip};
1
+ import{__assign as o,__makeTemplateObject as i}from"tslib";import{jsxs as e,jsx as n}from"react/jsx-runtime";import{Typography as r}from"@cleartrip/ct-design-typography";import{Container as a}from"@cleartrip/ct-design-container";import t from"@emotion/styled";import{useTheme as s}from"@cleartrip/ct-design-theme";import{keyframes as d}from"@emotion/react";import{IconPosition as c}from"@cleartrip/ct-design-types";import{Cross as l}from"@cleartrip/ct-design-icons";var u,p,m=t.div((function(i){var e=i.theme,n=i.backgroundColor,r=i.borderColor,a=i.borderRadius,t=i.paddingLeft,s=i.paddingRight,d=i.borderWidth,c=i.cursor,l=i.paddingTop,u=i.paddingBottom,p=i.boxShadow,m=i.webkitBoxShadow,g=i.background,h=i.css,f=void 0===h?{}:h;return o(o(o({},function(o){var i=o.theme,e=o.backgroundColor,n=o.borderColor,r=o.borderRadius,a=o.borderWidth,t=o.cursor,s=o.paddingTop,d=o.paddingBottom,c=o.paddingLeft,l=void 0===c?i.spacing[2]:c,u=o.paddingRight,p=void 0===u?i.spacing[2]:u,m=o.boxShadow,g=o.webkitBoxShadow,h=o.background;return{paddingTop:s,paddingBottom:d,paddingLeft:l,paddingRight:p,width:"fit-content",whiteSpace:"nowrap",borderStyle:i.border.style.none,background:h,backgroundColor:e,borderColor:n,borderRadius:r,borderWidth:a,cursor:t,boxShadow:m,webkitBoxShadow:g}}({theme:e,backgroundColor:n,background:g,borderColor:r,borderRadius:a,borderWidth:d,paddingTop:l,paddingBottom:u,paddingLeft:t,paddingRight:s,cursor:c,boxShadow:p,webkitBoxShadow:m})),{position:"relative"}),f)})),g=t.div((function(i){var e=i.theme,n=i.backgroundColor,r=i.css,a=void 0===r?{}:r;return o(o({},function(o){return o.theme,{backgroundColor:o.backgroundColor}}({theme:e,backgroundColor:n})),a)}));!function(o){o.DEFAULT="default",o.DISABLED="disabled",o.GRADIENT="gradient"}(u||(u={})),function(o){o.SMALL="sm",o.MEDIUM="md"}(p||(p={}));var h,f,b=function(o){var i=o.isSelected,e=o.isDisabled,n=o.theme;return o.variant===u.GRADIENT?n.color.text.success:e?n.color.chip.disabledPrimaryLabel:i?n.color.chip.selectedPrimaryLabel:n.color.chip.nonSelectedPrimaryLabel},v=function(i){var e=i.isSelected,n=i.isDisabled,r=i.showTopIcon,a=i.theme,t=i.borderWidth,s=i.variant,d=function(o){var i=o.showTopIcon,e=o.size,n=o.theme;switch(e){case p.SMALL:return{paddingTop:i?n.spacing[2]:"6px",paddingBottom:i?n.spacing[2]:"6px"};case p.MEDIUM:return{paddingTop:i?n.spacing[3]:"10px",paddingBottom:i?n.spacing[3]:"10px",paddingLeft:n.spacing[4],paddingRight:n.spacing[4]};default:return{}}}({showTopIcon:r,size:i.size,theme:a});return o(o({},d),n?function(o){var i=o.border.width.sm,e=o.color.border.disabled;return{backgroundColor:o.color.chip.disabledPrimaryBg,boxShadow:"inset 0 0 0 ".concat(i," ").concat(e),webkitBoxShadow:"inset 0 0 0 ".concat(i," ").concat(e),borderRadius:o.border.radius[30],cursor:"not-allowed"}}(a):e?function(o,i){var e=o.border.width[i],n=o.color.chip.selectedPrimaryBorder;return{backgroundColor:o.color.chip.selectedPrimaryBg,boxShadow:"inset 0 0 0 ".concat(e," ").concat(n),webkitBoxShadow:"inset 0 0 0 ".concat(e," ").concat(n),borderRadius:o.border.radius[30],cursor:"pointer"}}(a,t):function(o,i){var e=o.color.border.default,n=o.border.width.sm;return{background:i===u.GRADIENT?"linear-gradient(90deg, #CAFBCC 5.15%, rgba(212, 255, 218, 0.615124) 41.66%, rgba(218, 255, 224, 0.233913) 77.81%, rgba(255, 255, 255, 0) 100%)":i===u.DISABLED?o.color.background.disabled:o.color.background.neutral,boxShadow:i===u.GRADIENT?"none":"inset 0 0 0 ".concat(n," ").concat(e," "),webkitBoxShadow:i===u.GRADIENT?"none":"inset 0 0 0 ".concat(n," ").concat(e," "),borderRadius:o.border.radius[30],cursor:"pointer"}}(a,s))},y=d(h||(h=i(["\n 0% { transform: translateX(-50%); opacity:1}\n 80% {opacity: 0.3}\n 100% { transform: translateX(400%); opacity:0}\n "],["\n 0% { transform: translateX(-50%); opacity:1}\n 80% {opacity: 0.3}\n 100% { transform: translateX(400%); opacity:0}\n "]))),w=t.div(f||(f=i(["\n position: absolute;\n display: inline-flex;\n top: -14px;\n left: 0;\n opacity: 5;\n overflow: hidden;\n animation-name: ",";\n animation-duration: 5s;\n animation-iteration-count: 2;\n animation-fill-mode: forwards;\n"],["\n position: absolute;\n display: inline-flex;\n top: -14px;\n left: 0;\n opacity: 5;\n overflow: hidden;\n animation-name: ",";\n animation-duration: 5s;\n animation-iteration-count: 2;\n animation-fill-mode: forwards;\n"])),y),C=function(i){return e("svg",o({width:"50",height:"50",viewBox:"0 0 69 98",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{children:[n("g",o({opacity:"1",filter:"url(#filter0_f_13505_53133)"},{children:n("rect",{x:"43",y:"16.6328",width:"10.541",height:"66",transform:"rotate(24 43 16.6328)",fill:"white"})})),n("defs",{children:e("filter",o({id:"filter0_f_13505_53133",x:"0.15625",y:"0.632812",width:"68.4727",height:"96.5813",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"},{children:[n("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),n("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),n("feGaussianBlur",{stdDeviation:"8",result:"effect1_foregroundBlur_13505_53133"})]}))})]}))},x=function(i){var t=i.label,d=void 0===t?"":t,u=i.showIcon,p=void 0!==u&&u,h=i.iconPosition,f=void 0===h?c.LEFT:h,y=i.Icon,x=void 0===y?null:y,N=i.showCounter,k=void 0!==N&&N,S=i.count,B=void 0===S?0:S,I=i.isDismissible,L=void 0!==I&&I,T=i.isSelected,R=void 0!==T&&T,D=i.isDisabled,P=void 0!==D&&D,A=i.onClick,E=i.onDismiss,G=void 0===E?void 0:E,_=i.borderWidth,j=void 0===_?"md":_,F=i.styleConfig,W=void 0===F?{}:F,M=i.variant,z=void 0===M?"default":M,U=i.size,X=void 0===U?"sm":U,O=i.showShimmerAnimation,H=void 0!==O&&O,q=s(),J=p&&f===c.TOP,K=v({isSelected:R,isDisabled:P,showTopIcon:J,theme:q,borderWidth:j,variant:z,size:X}),Q=function(o){return{backgroundColor:o.theme.color.chip.selectedPrimaryLabel}}({theme:q}),V=W.root,Y=W.iconContainer,Z=W.chipContainer,$=W.labelContainer,oo=W.labelTypography,io=W.crossContainer,eo=W.crossIcon,no=W.counter,ro=W.counterContainer,ao=W.counterTypography,to=function(o){o.stopPropagation(),G&&G()};return e(m,d?o({},K,{theme:q,onClick:P?void 0:A,className:null==V?void 0:V.className,css:null==V?void 0:V.css},{children:[p&&f===c.TOP&&n(a,o({display:"flex",alignItems:"center",marginBottom:q.spacing[1],className:null==Y?void 0:Y.className,css:null==Y?void 0:Y.css},{children:x})),e(a,o({display:"flex",alignItems:"center",justifyContent:"center",className:null==Z?void 0:Z.className,css:null==Z?void 0:Z.css},{children:[p&&f===c.LEFT&&n(a,o({display:"flex",alignItems:"center",justifyContent:"center",paddingRight:q.spacing[1],className:null==Y?void 0:Y.className,css:null==Y?void 0:Y.css},{children:x})),n(a,o({paddingLeft:q.spacing[1],paddingRight:q.spacing[1],className:null==$?void 0:$.className,css:null==$?void 0:$.css},{children:"string"==typeof d?n(r,o({variant:"B2",colorCode:b({variant:z,isSelected:R,isDisabled:P,theme:q}),styleConfig:oo},{children:d})):d})),H&&n(w,{children:n(C,{})}),p&&f===c.RIGHT&&n(a,o({display:"flex",alignItems:"center",justifyContent:"center",paddingLeft:q.spacing[1],className:null==Y?void 0:Y.className,css:null==Y?void 0:Y.css},{children:x})),k&&n(a,o({paddingLeft:q.spacing[1],className:null==ro?void 0:ro.className,css:null==ro?void 0:ro.css},{children:n(g,o({},Q,{className:null==no?void 0:no.className,css:null==no?void 0:no.css},{children:n(r,o({variant:"TAG",color:"neutral",styleConfig:ao},{children:B}))}))})),L&&n(a,o({paddingLeft:q.spacing[1],display:"flex",alignItems:"center",justifyContent:"center",onClick:to,className:null==io?void 0:io.className,css:null==io?void 0:io.css},{children:n(l,o({crossColor:R?q.color.chip.selectedPrimaryLabel:q.color.chip.nonSelectedPrimaryLabel},eo||{}))}))]}))]}):o({},K,{theme:q,onClick:P?void 0:A,className:null==V?void 0:V.className,css:o(o({},null==V?void 0:V.css),{position:"relative"})},{children:[e(a,o({display:"flex",alignItems:"center",justifyContent:"center",className:null==Z?void 0:Z.className,css:null==Z?void 0:Z.css},{children:[n(a,o({display:"flex",alignItems:"center",justifyContent:"center",className:null==Y?void 0:Y.className,css:null==Y?void 0:Y.css},{children:x})),L&&n(a,o({paddingLeft:q.spacing[1],display:"flex",alignItems:"center",justifyContent:"center",onClick:to,className:null==io?void 0:io.className,css:null==io?void 0:io.css},{children:n(l,o({crossColor:R?q.color.chip.selectedPrimaryLabel:q.color.chip.nonSelectedPrimaryLabel},eo||{}))}))]})),k&&n(a,o({className:null==ro?void 0:ro.className,css:null==ro?void 0:ro.css,position:"absolute",top:-7,right:-7},{children:n(g,o({},Q,{className:null==no?void 0:no.className,css:null==no?void 0:no.css},{children:n(r,o({variant:"TAG",color:"neutral",styleConfig:ao},{children:B}))}))}))]}))};export{x as Chip,p as ChipSizeType,u as ChipVariant};
2
2
  //# sourceMappingURL=ct-design-chip.browser.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ct-design-chip.browser.esm.js","sources":["../packages/components/Chip/src/StyledChip/style.ts","../packages/components/Chip/src/StyledChip/StyledChip.tsx","../packages/components/Chip/src/StyledCounter/StyledCounter.tsx","../packages/components/Chip/src/StyledCounter/style.ts","../packages/components/Chip/src/style.ts","../packages/components/Chip/src/Chip.tsx"],"sourcesContent":[null,null,null,null,null,null],"names":["StyledChip","styled","div","_a","theme","backgroundColor","borderColor","borderRadius","borderWidth","cursor","paddingTop","paddingBottom","_b","css","__assign","paddingLeft","spacing","paddingRight","width","whiteSpace","borderStyle","border","style","solid","getStyledChipStyles","StyledCounter","display","alignItems","justifyContent","height","size","radius","getStyledCounterStyles","getChipLabelColor","isSelected","isDisabled","color","chip","disabledPrimaryLabel","selectedPrimaryLabel","nonSelectedPrimaryLabel","Chip","label","showIcon","_c","iconPosition","IconPosition","LEFT","_d","Icon","_e","showCounter","_f","count","_g","isDismissible","_h","_j","onClick","_k","onDismiss","undefined","_l","_m","styleConfig","useTheme","chipStyles","showTopIcon","defaultChipStyles","background","neutral","disabled","getDisabledChipStyles","selectedPrimaryBg","selectedPrimaryBorder","getSelectedChipStyles","default","getDefaultChipStyles","getChipStyles","TOP","counterStyles","getCounterStyles","root","iconContainer","chipContainer","labelContainer","labelTypography","crossContainer","crossIcon","counter","counterContainer","counterTypography","_jsxs","className","children","_jsx","Container","marginBottom","Typography","variant","colorCode","RIGHT","event","stopPropagation","Cross","crossColor"],"mappings":"+YAIO,ICADA,EAAaC,EAAOC,KACzB,SAACC,GAAE,IAAAC,EAAKD,EAAAC,MAAEC,EAAeF,EAAAE,gBAAEC,EAAWH,EAAAG,YAAEC,EAAYJ,EAAAI,aAAEC,EAAWL,EAAAK,YAAEC,EAAMN,EAAAM,OAAEC,EAAUP,EAAAO,WAAEC,EAAaR,EAAAQ,cAAEC,EAAAT,EAAAU,IAAAA,OAAI,IAAAD,EAAA,CAAE,EAAAA,EAC3G,OAAAE,EAAAA,EAAA,CAAA,EDFiC,SAACX,OAClCC,EAAKD,EAAAC,MACLC,EAAeF,EAAAE,gBACf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4B,YAAa2B,GAAiB,CAAAG,SACrEzC,WAKRE,GACCwC,EAACC,EACClF,EAAA,CAAAC,YAAaX,EAAMY,QAAQ,GAC3BU,QAAQ,OACRC,WAAW,SACXC,eAAe,SACf8B,QAtFW,SAAC4C,GACpBA,EAAMC,kBACF3C,GACFA,GAEJ,EAkFUiC,UAAWN,aAAA,EAAAA,EAAgBM,UAC3BhF,IAAK0E,aAAA,EAAAA,EAAgB1E,KAErB,CAAAiF,SAAAC,EAACS,EAAK1F,EAAA,CACJ2F,WAAYvE,EAAa9B,EAAMgC,MAAMC,KAAKE,qBAAuBnC,EAAMgC,MAAMC,KAAKG,yBAC7EgD,GAAa,CAAE,cAOlC"}
1
+ {"version":3,"file":"ct-design-chip.browser.esm.js","sources":["../packages/components/Chip/src/StyledChip/style.ts","../packages/components/Chip/src/type.ts","../packages/components/Chip/src/StyledChip/StyledChip.tsx","../packages/components/Chip/src/StyledCounter/StyledCounter.tsx","../packages/components/Chip/src/StyledCounter/style.ts","../packages/components/Chip/src/style.ts","../packages/components/Chip/src/chipShimmer.tsx","../packages/components/Chip/src/Chip.tsx"],"sourcesContent":[null,null,null,null,null,null,null,null],"names":["ChipVariant","ChipSizeType","StyledChip","styled","div","_a","theme","backgroundColor","borderColor","borderRadius","paddingLeft","paddingRight","borderWidth","cursor","paddingTop","paddingBottom","boxShadow","webkitBoxShadow","background","_b","css","__assign","spacing","_c","width","whiteSpace","borderStyle","border","style","none","getStyledChipStyles","position","StyledCounter","getStyledCounterStyles","getChipLabelColor","isSelected","isDisabled","variant","GRADIENT","color","text","success","chip","disabledPrimaryLabel","selectedPrimaryLabel","nonSelectedPrimaryLabel","getChipStyles","showTopIcon","defaultChipStyles","size","SMALL","MEDIUM","getChipPaddingBySize","borderWidthValue","sm","disabled","disabledPrimaryBg","concat","radius","getDisabledChipStyles","selectedPrimaryBorder","selectedPrimaryBg","getSelectedChipStyles","default","DISABLED","neutral","getDefaultChipStyles","breatheAnimation","keyframes","templateObject_1","__makeTemplateObject","AnimatedContainer","templateObject_2","ChipShimmer","props","_jsxs","height","viewBox","fill","xmlns","children","_jsx","opacity","filter","x","y","transform","id","filterUnits","result","mode","in","in2","stdDeviation","Chip","label","showIcon","_d","iconPosition","IconPosition","LEFT","_e","Icon","_f","showCounter","_g","count","_h","isDismissible","_j","_k","onClick","_l","onDismiss","undefined","_m","_o","styleConfig","_p","_q","_r","showShimmerAnimation","useTheme","TOP","chipStyles","counterStyles","getCounterStyles","root","iconContainer","chipContainer","labelContainer","labelTypography","crossContainer","crossIcon","counter","counterContainer","counterTypography","onCrossClick","event","stopPropagation","className","Container","display","alignItems","marginBottom","justifyContent","Typography","colorCode","RIGHT","Cross","crossColor","top","right"],"mappings":"kdAIO,ICDKA,EAMAC,ECJNC,EAAaC,EAAOC,KACxB,SAACC,GACC,IAAAC,UACAC,oBACAC,gBACAC,iBACAC,gBACAC,iBACAC,gBACAC,WACAC,eACAC,kBACAC,cACAC,oBACAC,eACAC,EAAAd,EAAAe,IAAAA,OAAG,IAAAD,EAAG,CAAA,EAAEA,EACJ,OAAAE,EAAAA,EAAAA,EAAA,CAAA,EFjB2B,SAAChB,OAClCC,EAAKD,EAAAC,MACLC,EAAeF,EAAAE,gBACfC,EAAWH,EAAAG,YACXC,EAAYJ,EAAAI,aACZG,gBACAC,EAAMR,EAAAQ,OACNC,EAAUT,EAAAS,WACVC,EAAaV,EAAAU,cACbI,EAA8Bd,EAAAK,YAA9BA,OAAW,IAAAS,EAAGb,EAAMgB,QAAQ,GAAEH,EAC9BI,EAA+BlB,EAAAM,aAA/BA,OAAY,IAAAY,EAAGjB,EAAMgB,QAAQ,GAAEC,EAC/BP,EAASX,EAAAW,UACTC,EAAeZ,EAAAY,gBACfC,EAAUb,EAAAa,WAEV,MAAO,CACLJ,WAAUA,EACVC,cAAaA,EACbL,YAAWA,EACXC,aAAYA,EACZa,MAAO,cACPC,WAAY,SACZC,YAAapB,EAAMqB,OAAOC,MAAMC,KAChCX,WAAUA,EACVX,g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ctDesignTypography = require('@cleartrip/ct-design-typography');
6
6
  var ctDesignContainer = require('@cleartrip/ct-design-container');
7
- var styled = require('styled-components');
7
+ var styled = require('@emotion/styled');
8
8
  var ctDesignTheme = require('@cleartrip/ct-design-theme');
9
+ var react = require('@emotion/react');
9
10
  var ctDesignTypes = require('@cleartrip/ct-design-types');
10
11
  var ctDesignIcons = require('@cleartrip/ct-design-icons');
11
12
 
@@ -14,46 +15,48 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
14
15
  var styled__default = /*#__PURE__*/_interopDefault(styled);
15
16
 
16
17
  var getStyledChipStyles = function (_a) {
17
- var theme = _a.theme, backgroundColor = _a.backgroundColor, borderColor = _a.borderColor, borderRadius = _a.borderRadius, borderWidth = _a.borderWidth, cursor = _a.cursor, paddingTop = _a.paddingTop, paddingBottom = _a.paddingBottom;
18
+ var theme = _a.theme, backgroundColor = _a.backgroundColor, borderColor = _a.borderColor, borderRadius = _a.borderRadius, borderWidth = _a.borderWidth, cursor = _a.cursor, paddingTop = _a.paddingTop, paddingBottom = _a.paddingBottom, _b = _a.paddingLeft, paddingLeft = _b === void 0 ? theme.spacing[2] : _b, _c = _a.paddingRight, paddingRight = _c === void 0 ? theme.spacing[2] : _c, boxShadow = _a.boxShadow, webkitBoxShadow = _a.webkitBoxShadow, background = _a.background;
18
19
  return {
19
20
  paddingTop: paddingTop,
20
21
  paddingBottom: paddingBottom,
21
- paddingLeft: theme.spacing[2],
22
- paddingRight: theme.spacing[2],
22
+ paddingLeft: paddingLeft,
23
+ paddingRight: paddingRight,
23
24
  width: 'fit-content',
24
25
  whiteSpace: 'nowrap',
25
- borderStyle: theme.border.style.solid,
26
+ borderStyle: theme.border.style.none,
27
+ background: background,
26
28
  backgroundColor: backgroundColor,
27
29
  borderColor: borderColor,
28
30
  borderRadius: borderRadius,
29
31
  borderWidth: borderWidth,
30
32
  cursor: cursor,
33
+ boxShadow: boxShadow,
34
+ webkitBoxShadow: webkitBoxShadow,
31
35
  };
32
36
  };
33
37
 
34
38
  var StyledChip = styled__default.default.div(function (_a) {
35
- var theme = _a.theme, backgroundColor = _a.backgroundColor, borderColor = _a.borderColor, borderRadius = _a.borderRadius, borderWidth = _a.borderWidth, cursor = _a.cursor, paddingTop = _a.paddingTop, paddingBottom = _a.paddingBottom, _b = _a.css, css = _b === void 0 ? {} : _b;
36
- return (tslib.__assign(tslib.__assign({}, getStyledChipStyles({
39
+ var theme = _a.theme, backgroundColor = _a.backgroundColor, borderColor = _a.borderColor, borderRadius = _a.borderRadius, paddingLeft = _a.paddingLeft, paddingRight = _a.paddingRight, borderWidth = _a.borderWidth, cursor = _a.cursor, paddingTop = _a.paddingTop, paddingBottom = _a.paddingBottom, boxShadow = _a.boxShadow, webkitBoxShadow = _a.webkitBoxShadow, background = _a.background, _b = _a.css, css = _b === void 0 ? {} : _b;
40
+ return (tslib.__assign(tslib.__assign(tslib.__assign({}, getStyledChipStyles({
37
41
  theme: theme,
38
42
  backgroundColor: backgroundColor,
43
+ background: background,
39
44
  borderColor: borderColor,
40
45
  borderRadius: borderRadius,
41
46
  borderWidth: borderWidth,
42
47
  paddingTop: paddingTop,
43
48
  paddingBottom: paddingBottom,
49
+ paddingLeft: paddingLeft,
50
+ paddingRight: paddingRight,
44
51
  cursor: cursor,
45
- })), css));
52
+ boxShadow: boxShadow,
53
+ webkitBoxShadow: webkitBoxShadow,
54
+ })), { position: 'relative' }), css));
46
55
  });
47
56
 
48
57
  var getStyledCounterStyles = function (_a) {
49
- var backgroundColor = _a.backgroundColor, theme = _a.theme;
58
+ _a.theme; var backgroundColor = _a.backgroundColor;
50
59
  return {
51
- display: 'flex',
52
- alignItems: 'center',
53
- justifyContent: 'center',
54
- height: theme.size[4],
55
- width: theme.size[4],
56
- borderRadius: theme.border.radius['50P'],
57
60
  backgroundColor: backgroundColor,
58
61
  };
59
62
  };
@@ -63,35 +66,60 @@ var StyledCounter = styled__default.default.div(function (_a) {
63
66
  return (tslib.__assign(tslib.__assign({}, getStyledCounterStyles({ theme: theme, backgroundColor: backgroundColor })), css));
64
67
  });
65
68
 
66
- var getDisabledChipStyles = function (theme, borderWidth) {
69
+ exports.ChipVariant = void 0;
70
+ (function (ChipVariant) {
71
+ ChipVariant["DEFAULT"] = "default";
72
+ ChipVariant["DISABLED"] = "disabled";
73
+ ChipVariant["GRADIENT"] = "gradient";
74
+ })(exports.ChipVariant || (exports.ChipVariant = {}));
75
+ exports.ChipSizeType = void 0;
76
+ (function (ChipSizeType) {
77
+ ChipSizeType["SMALL"] = "sm";
78
+ ChipSizeType["MEDIUM"] = "md";
79
+ })(exports.ChipSizeType || (exports.ChipSizeType = {}));
80
+
81
+ var getDisabledChipStyles = function (theme) {
82
+ var borderWidthValue = theme.border.width.sm;
83
+ var borderColor = theme.color.border.disabled;
67
84
  return {
68
- backgroundColor: theme.color.background.neutral,
69
- borderWidth: theme.border.width[borderWidth],
70
- borderColor: theme.color.border.disabled,
85
+ backgroundColor: theme.color.chip.disabledPrimaryBg,
86
+ boxShadow: "inset 0 0 0 ".concat(borderWidthValue, " ").concat(borderColor),
87
+ webkitBoxShadow: "inset 0 0 0 ".concat(borderWidthValue, " ").concat(borderColor),
71
88
  borderRadius: theme.border.radius[30],
72
89
  cursor: 'not-allowed',
73
90
  };
74
91
  };
75
92
  var getSelectedChipStyles = function (theme, borderWidth) {
93
+ var borderWidthValue = theme.border.width[borderWidth];
94
+ var borderColor = theme.color.chip.selectedPrimaryBorder;
76
95
  return {
77
96
  backgroundColor: theme.color.chip.selectedPrimaryBg,
78
- borderWidth: theme.border.width[borderWidth],
79
- borderColor: theme.color.chip.selectedPrimaryBorder,
97
+ boxShadow: "inset 0 0 0 ".concat(borderWidthValue, " ").concat(borderColor),
98
+ webkitBoxShadow: "inset 0 0 0 ".concat(borderWidthValue, " ").concat(borderColor),
80
99
  borderRadius: theme.border.radius[30],
81
100
  cursor: 'pointer',
82
101
  };
83
102
  };
84
- var getDefaultChipStyles = function (theme, borderWidth) {
103
+ var getDefaultChipStyles = function (theme, variant) {
104
+ var borderColor = theme.color.border.default;
105
+ var borderWidthValue = theme.border.width.sm;
85
106
  return {
86
- backgroundColor: theme.color.background.neutral,
87
- borderWidth: theme.border.width[borderWidth],
88
- borderColor: theme.color.border.default,
107
+ background: variant === exports.ChipVariant.GRADIENT
108
+ ? 'linear-gradient(90deg, #CAFBCC 5.15%, rgba(212, 255, 218, 0.615124) 41.66%, rgba(218, 255, 224, 0.233913) 77.81%, rgba(255, 255, 255, 0) 100%)'
109
+ : variant === exports.ChipVariant.DISABLED
110
+ ? theme.color.background.disabled
111
+ : theme.color.background.neutral,
112
+ boxShadow: variant === exports.ChipVariant.GRADIENT ? 'none' : "inset 0 0 0 ".concat(borderWidthValue, " ").concat(borderColor, " "),
113
+ webkitBoxShadow: variant === exports.ChipVariant.GRADIENT ? 'none' : "inset 0 0 0 ".concat(borderWidthValue, " ").concat(borderColor, " "),
89
114
  borderRadius: theme.border.radius[30],
90
115
  cursor: 'pointer',
91
116
  };
92
117
  };
93
118
  var getChipLabelColor = function (_a) {
94
- var isSelected = _a.isSelected, isDisabled = _a.isDisabled, theme = _a.theme;
119
+ var isSelected = _a.isSelected, isDisabled = _a.isDisabled, theme = _a.theme, variant = _a.variant;
120
+ if (variant === exports.ChipVariant.GRADIENT) {
121
+ return theme.color.text.success;
122
+ }
95
123
  if (isDisabled) {
96
124
  return theme.color.chip.disabledPrimaryLabel;
97
125
  }
@@ -106,26 +134,56 @@ var getCounterStyles = function (_a) {
106
134
  backgroundColor: theme.color.chip.selectedPrimaryLabel,
107
135
  };
108
136
  };
137
+ var getChipPaddingBySize = function (_a) {
138
+ var showTopIcon = _a.showTopIcon, size = _a.size, theme = _a.theme;
139
+ switch (size) {
140
+ case exports.ChipSizeType.SMALL: {
141
+ return {
142
+ paddingTop: showTopIcon ? theme.spacing[2] : '6px',
143
+ paddingBottom: showTopIcon ? theme.spacing[2] : '6px',
144
+ };
145
+ }
146
+ case exports.ChipSizeType.MEDIUM: {
147
+ return {
148
+ paddingTop: showTopIcon ? theme.spacing[3] : '10px',
149
+ paddingBottom: showTopIcon ? theme.spacing[3] : '10px',
150
+ paddingLeft: theme.spacing[4],
151
+ paddingRight: theme.spacing[4],
152
+ };
153
+ }
154
+ default: {
155
+ return {};
156
+ }
157
+ }
158
+ };
109
159
  var getChipStyles = function (_a) {
110
- var isSelected = _a.isSelected, isDisabled = _a.isDisabled, showTopIcon = _a.showTopIcon, theme = _a.theme, borderWidth = _a.borderWidth;
111
- var defaultChipStyles = {
112
- paddingTop: showTopIcon ? theme.spacing[2] : '6px',
113
- paddingBottom: showTopIcon ? theme.spacing[2] : '6px',
114
- };
160
+ var isSelected = _a.isSelected, isDisabled = _a.isDisabled, showTopIcon = _a.showTopIcon, theme = _a.theme, borderWidth = _a.borderWidth, variant = _a.variant, size = _a.size;
161
+ var defaultChipStyles = getChipPaddingBySize({
162
+ showTopIcon: showTopIcon,
163
+ size: size,
164
+ theme: theme,
165
+ });
115
166
  if (isDisabled) {
116
- return tslib.__assign(tslib.__assign({}, defaultChipStyles), getDisabledChipStyles(theme, borderWidth));
167
+ return tslib.__assign(tslib.__assign({}, defaultChipStyles), getDisabledChipStyles(theme));
117
168
  }
118
169
  if (isSelected) {
119
170
  return tslib.__assign(tslib.__assign({}, defaultChipStyles), getSelectedChipStyles(theme, borderWidth));
120
171
  }
121
- return tslib.__assign(tslib.__assign({}, defaultChipStyles), getDefaultChipStyles(theme, borderWidth));
172
+ return tslib.__assign(tslib.__assign({}, defaultChipStyles), getDefaultChipStyles(theme, variant));
173
+ };
174
+ var breatheAnimation = react.keyframes(templateObject_1 || (templateObject_1 = tslib.__makeTemplateObject(["\n 0% { transform: translateX(-50%); opacity:1}\n 80% {opacity: 0.3}\n 100% { transform: translateX(400%); opacity:0}\n "], ["\n 0% { transform: translateX(-50%); opacity:1}\n 80% {opacity: 0.3}\n 100% { transform: translateX(400%); opacity:0}\n "])));
175
+ var AnimatedContainer = styled__default.default.div(templateObject_2 || (templateObject_2 = tslib.__makeTemplateObject(["\n position: absolute;\n display: inline-flex;\n top: -14px;\n left: 0;\n opacity: 5;\n overflow: hidden;\n animation-name: ", ";\n animation-duration: 5s;\n animation-iteration-count: 2;\n animation-fill-mode: forwards;\n"], ["\n position: absolute;\n display: inline-flex;\n top: -14px;\n left: 0;\n opacity: 5;\n overflow: hidden;\n animation-name: ", ";\n animation-duration: 5s;\n animation-iteration-count: 2;\n animation-fill-mode: forwards;\n"])), breatheAnimation);
176
+ var templateObject_1, templateObject_2;
177
+
178
+ var ChipShimmer = function (props) {
179
+ return (jsxRuntime.jsxs("svg", tslib.__assign({ width: '50', height: '50', viewBox: '0 0 69 98', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' }, props, { children: [jsxRuntime.jsx("g", tslib.__assign({ opacity: '1', filter: 'url(#filter0_f_13505_53133)' }, { children: jsxRuntime.jsx("rect", { x: '43', y: '16.6328', width: '10.541', height: '66', transform: 'rotate(24 43 16.6328)', fill: 'white' }) })), jsxRuntime.jsx("defs", { children: jsxRuntime.jsxs("filter", tslib.__assign({ id: 'filter0_f_13505_53133', x: '0.15625', y: '0.632812', width: '68.4727', height: '96.5813', filterUnits: 'userSpaceOnUse', "color-interpolation-filters": 'sRGB' }, { children: [jsxRuntime.jsx("feFlood", { "flood-opacity": '0', result: 'BackgroundImageFix' }), jsxRuntime.jsx("feBlend", { mode: 'normal', in: 'SourceGraphic', in2: 'BackgroundImageFix', result: 'shape' }), jsxRuntime.jsx("feGaussianBlur", { stdDeviation: '8', result: 'effect1_foregroundBlur_13505_53133' })] })) })] })));
122
180
  };
123
181
 
124
182
  var Chip = function (_a) {
125
- var label = _a.label, _b = _a.showIcon, showIcon = _b === void 0 ? false : _b, _c = _a.iconPosition, iconPosition = _c === void 0 ? ctDesignTypes.IconPosition.LEFT : _c, _d = _a.Icon, Icon = _d === void 0 ? null : _d, _e = _a.showCounter, showCounter = _e === void 0 ? false : _e, _f = _a.count, count = _f === void 0 ? 0 : _f, _g = _a.isDismissible, isDismissible = _g === void 0 ? false : _g, _h = _a.isSelected, isSelected = _h === void 0 ? false : _h, _j = _a.isDisabled, isDisabled = _j === void 0 ? false : _j, onClick = _a.onClick, _k = _a.onDismiss, onDismiss = _k === void 0 ? undefined : _k, _l = _a.borderWidth, borderWidth = _l === void 0 ? 'md' : _l, _m = _a.styleConfig, styleConfig = _m === void 0 ? {} : _m;
183
+ var _b = _a.label, label = _b === void 0 ? '' : _b, _c = _a.showIcon, showIcon = _c === void 0 ? false : _c, _d = _a.iconPosition, iconPosition = _d === void 0 ? ctDesignTypes.IconPosition.LEFT : _d, _e = _a.Icon, Icon = _e === void 0 ? null : _e, _f = _a.showCounter, showCounter = _f === void 0 ? false : _f, _g = _a.count, count = _g === void 0 ? 0 : _g, _h = _a.isDismissible, isDismissible = _h === void 0 ? false : _h, _j = _a.isSelected, isSelected = _j === void 0 ? false : _j, _k = _a.isDisabled, isDisabled = _k === void 0 ? false : _k, onClick = _a.onClick, _l = _a.onDismiss, onDismiss = _l === void 0 ? undefined : _l, _m = _a.borderWidth, borderWidth = _m === void 0 ? 'md' : _m, _o = _a.styleConfig, styleConfig = _o === void 0 ? {} : _o, _p = _a.variant, variant = _p === void 0 ? 'default' : _p, _q = _a.size, size = _q === void 0 ? 'sm' : _q, _r = _a.showShimmerAnimation, showShimmerAnimation = _r === void 0 ? false : _r;
126
184
  var theme = ctDesignTheme.useTheme();
127
185
  var showTopIcon = showIcon && iconPosition === ctDesignTypes.IconPosition.TOP;
128
- var chipStyles = getChipStyles({ isSelected: isSelected, isDisabled: isDisabled, showTopIcon: showTopIcon, theme: theme, borderWidth: borderWidth });
186
+ var chipStyles = getChipStyles({ isSelected: isSelected, isDisabled: isDisabled, showTopIcon: showTopIcon, theme: theme, borderWidth: borderWidth, variant: variant, size: size });
129
187
  var counterStyles = getCounterStyles({ theme: theme });
130
188
  var root = styleConfig.root, iconContainer = styleConfig.iconContainer, chipContainer = styleConfig.chipContainer, labelContainer = styleConfig.labelContainer, labelTypography = styleConfig.labelTypography, crossContainer = styleConfig.crossContainer, crossIcon = styleConfig.crossIcon, counter = styleConfig.counter, counterContainer = styleConfig.counterContainer, counterTypography = styleConfig.counterTypography;
131
189
  var onCrossClick = function (event) {
@@ -134,7 +192,16 @@ var Chip = function (_a) {
134
192
  onDismiss();
135
193
  }
136
194
  };
137
- return (jsxRuntime.jsxs(StyledChip, tslib.__assign({}, chipStyles, { theme: theme, onClick: isDisabled ? undefined : onClick, className: root === null || root === void 0 ? void 0 : root.className, css: root === null || root === void 0 ? void 0 : root.css }, { children: [showIcon && iconPosition === ctDesignTypes.IconPosition.TOP && (jsxRuntime.jsx(ctDesignContainer.Container, tslib.__assign({ display: 'flex', alignItems: 'center', marginBottom: theme.spacing[1], className: iconContainer === null || iconContainer === void 0 ? void 0 : iconContainer.className, css: iconContainer === null || iconContainer === void 0 ? void 0 : iconContainer.css }, { children: Icon }))), jsxRuntime.jsxs(ctDesignContainer.Container, tslib.__assign({ display: 'flex', alignItems: 'center', justifyContent: 'center', className: chipContainer === null || chipContainer === void 0 ? void 0 : chipContainer.className, css: chipContainer === null || chipContainer === void 0 ? void 0 : chipContainer.css }, { children: [showIcon && iconPosition === ctDesignTypes.IconPosition.LEFT && (jsxRuntime.jsx(ctDesignContainer.Container, tslib.__assign({ display: 'flex', alignItems: 'center', justifyContent: 'center', paddingRight: theme.spacing[1], className: iconContainer === null || iconContainer === void 0 ? void 0 : iconContainer.className, css: iconContainer === null || iconContainer === void 0 ? void 0 : iconContainer.css }, { children: Icon }))), jsxRuntime.jsx(ctDesignContainer.Container, tslib.__assign({ paddingLeft: theme.spacing[1], paddingRight: theme.spacing[1], className: labelContainer === null || labelContainer === void 0 ? void 0 : labelContainer.className, css: labelContainer === null || labelContainer === void 0 ? void 0 : labelContainer.css }, { children: jsxRuntime.jsx(ctDesignTypography.Typography, tslib.__assign({ variant: 'B2', colorCode: getChipLabelColor({ isSelected: isSelected, isDisabled: isDisabled, theme: theme }), styleConfig: labelTypography }, { children: label })) })), showIcon && iconPosition === ctDesignTypes.IconPosition.RIGHT && (jsxRuntime.jsx(ctDesignContainer.Container, tslib.__assign({ display: 'flex', alignItems: 'center', justifyContent: 'center', paddingLeft: theme.spacing[1], className: iconContainer === null || iconContainer === void 0 ? void 0 : iconContainer.className, css: iconContainer === null || iconContainer === void 0 ? void 0 : iconContainer.css }, { children: Icon }))), showCounter && (jsxRuntime.jsx(ctDesignContainer.Container, tslib.__assign({ paddingLeft: theme.spacing[1], className: counterContainer === null || counterContainer === void 0 ? void 0 : counterContainer.className, css: counterContainer === null || counterContainer === void 0 ? void 0 : counterContainer.css }, { children: jsxRuntime.jsx(StyledCounter, tslib.__assign({}, counterStyles, { className: counter === null || counter === void 0 ? void 0 : counter.className, css: counter === null || counter === void 0 ? void 0 : counter.css }, { children: jsxRuntime.jsx(ctDesignTypography.Typography, tslib.__assign({ variant: 'TAG', color: 'neutral', styleConfig: counterTypography }, { children: count })) })) }))), isDismissible && (jsxRuntime.jsx(ctDesignContainer.Container, tslib.__assign({ paddingLeft: theme.spacing[1], display: 'flex', alignItems: 'center', justifyContent: 'center', onClick: onCrossClick, className: crossContainer === null || crossContainer === void 0 ? void 0 : crossContainer.className, css: crossContainer === null || crossContainer === void 0 ? void 0 : crossContainer.css }, { children: jsxRuntime.jsx(ctDesignIcons.Cross, tslib.__assign({ crossColor: isSelected ? theme.color.chip.selectedPrimaryLabel : theme.color.chip.nonSelectedPrimaryLabel }, (crossIcon || {}))) })))] }))] })));
195
+ var renderLabelComponent = function () {
196
+ if (typeof label === 'string') {
197
+ return (jsxRuntime.jsx(ctDesignTypography.Typography, tslib.__assign({ variant: 'B2', colorCode: getChipLabelColor({ variant: variant, isSelected: isSelected, isDisabled: isDisabled, theme: theme }), styleConfig: labelTypography }, { children: label })));
198
+ }
199
+ return label;
200
+ };
201
+ if (!label) {
202
+ return (jsxRuntime.jsxs(StyledChip, tslib.__assign({}, chipStyles, { theme: theme, onClick: isDisabled ? undefined : onClick, className: root === null || root === void 0 ? void 0 : root.className, css: tslib.__assign(tslib.__assign({}, root === null || root === void 0 ? void 0 : root.css), { position: 'relative' }) }, { children: [jsxRuntime.jsxs(ctDesignContainer.Container, tslib.__assign({ display: 'flex', alignItems: 'center', justifyContent: 'center', className: chipContainer === null || chipContainer === void 0 ? void 0 : chipContainer.className, css: chipContainer === null || chipContainer === void 0 ? void 0 : chipContainer.css }, { children: [jsxRuntime.jsx(ctDesignContainer.Container, tslib.__assign({ display: 'flex', alignItems: 'center', justifyContent: 'center', className: iconContainer === null || iconContainer === void 0 ? void 0 : iconContainer.className, css: iconContainer === null || iconContainer === void 0 ? void 0 : iconContainer.css }, { children: Icon })), isDismissible && (jsxRuntime.jsx(ctDesignContainer.Container, tslib.__assign({ paddingLeft: theme.spacing[1], display: 'flex', alignItems: 'center', justifyContent: 'center', onClick: onCrossClick, className: crossContainer === null || crossContainer === void 0 ? void 0 : crossContainer.className, css: crossContainer === null || crossContainer === void 0 ? void 0 : crossContainer.css }, { children: jsxRuntime.jsx(ctDesignIcons.Cross, tslib.__assign({ crossColor: isSelected ? theme.color.chip.selectedPrimaryLabel : theme.color.chip.nonSelectedPrimaryLabel }, (crossIcon || {}))) })))] })), showCounter && (jsxRuntime.jsx(ctDesignContainer.Container, tslib.__assign({ className: counterContainer === null || counterContainer === void 0 ? void 0 : counterContainer.className, css: counterContainer === null || counterContainer === void 0 ? void 0 : counterContainer.css, position: 'absolute', top: -7, right: -7 }, { children: jsxRuntime.jsx(StyledCounter, tslib.__assign({}, counterStyles, { className: counter === null || counter === void 0 ? void 0 : counter.className, css: counter === null || counter === void 0 ? void 0 : counter.css }, { children: jsxRuntime.jsx(ctDesignTypography.Typography, tslib.__assign({ variant: 'TAG', color: 'neutral', styleConfig: counterTypography }, { children: count })) })) })))] })));
203
+ }
204
+ return (jsxRuntime.jsxs(StyledChip, tslib.__assign({}, chipStyles, { theme: theme, onClick: isDisabled ? undefined : onClick, className: root === null || root === void 0 ? void 0 : root.className, css: root === null || root === void 0 ? void 0 : root.css }, { children: [showIcon && iconPosition === ctDesignTypes.IconPosition.TOP && (jsxRuntime.jsx(ctDesignContainer.Container, tslib.__assign({ display: 'flex', alignItems: 'center', marginBottom: theme.spacing[1], className: iconContainer === null || iconContainer === void 0 ? void 0 : iconContainer.className, css: iconContainer === null || iconContainer === void 0 ? void 0 : iconContainer.css }, { children: Icon }))), jsxRuntime.jsxs(ctDesignContainer.Container, tslib.__assign({ display: 'flex', alignItems: 'center', justifyContent: 'center', className: chipContainer === null || chipContainer === void 0 ? void 0 : chipContainer.className, css: chipContainer === null || chipContainer === void 0 ? void 0 : chipContainer.css }, { children: [showIcon && iconPosition === ctDesignTypes.IconPosition.LEFT && (jsxRuntime.jsx(ctDesignContainer.Container, tslib.__assign({ display: 'flex', alignItems: 'center', justifyContent: 'center', paddingRight: theme.spacing[1], className: iconContainer === null || iconContainer === void 0 ? void 0 : iconContainer.className, css: iconContainer === null || iconContainer === void 0 ? void 0 : iconContainer.css }, { children: Icon }))), jsxRuntime.jsx(ctDesignContainer.Container, tslib.__assign({ paddingLeft: theme.spacing[1], paddingRight: theme.spacing[1], className: labelContainer === null || labelContainer === void 0 ? void 0 : labelContainer.className, css: labelContainer === null || labelContainer === void 0 ? void 0 : labelContainer.css }, { children: renderLabelComponent() })), showShimmerAnimation && (jsxRuntime.jsx(AnimatedContainer, { children: jsxRuntime.jsx(ChipShimmer, {}) })), showIcon && iconPosition === ctDesignTypes.IconPosition.RIGHT && (jsxRuntime.jsx(ctDesignContainer.Container, tslib.__assign({ display: 'flex', alignItems: 'center', justifyContent: 'center', paddingLeft: theme.spacing[1], className: iconContainer === null || iconContainer === void 0 ? void 0 : iconContainer.className, css: iconContainer === null || iconContainer === void 0 ? void 0 : iconContainer.css }, { children: Icon }))), showCounter && (jsxRuntime.jsx(ctDesignContainer.Container, tslib.__assign({ paddingLeft: theme.spacing[1], className: counterContainer === null || counterContainer === void 0 ? void 0 : counterContainer.className, css: counterContainer === null || counterContainer === void 0 ? void 0 : counterContainer.css }, { children: jsxRuntime.jsx(StyledCounter, tslib.__assign({}, counterStyles, { className: counter === null || counter === void 0 ? void 0 : counter.className, css: counter === null || counter === void 0 ? void 0 : counter.css }, { children: jsxRuntime.jsx(ctDesignTypography.Typography, tslib.__assign({ variant: 'TAG', color: 'neutral', styleConfig: counterTypography }, { children: count })) })) }))), isDismissible && (jsxRuntime.jsx(ctDesignContainer.Container, tslib.__assign({ paddingLeft: theme.spacing[1], display: 'flex', alignItems: 'center', justifyContent: 'center', onClick: onCrossClick, className: crossContainer === null || crossContainer === void 0 ? void 0 : crossContainer.className, css: crossContainer === null || crossContainer === void 0 ? void 0 : crossContainer.css }, { children: jsxRuntime.jsx(ctDesignIcons.Cross, tslib.__assign({ crossColor: isSelected ? theme.color.chip.selectedPrimaryLabel : theme.color.chip.nonSelectedPrimaryLabel }, (crossIcon || {}))) })))] }))] })));
138
205
  };
139
206
 
140
207
  exports.Chip = Chip;