@cleartrip/ct-design-common-constants
Advanced tools
Comparing version 2.5.0 to 2.6.0-beta.0
@@ -1,2 +0,2 @@ | ||
"use strict";var o,t,e,s,r,p,n,a,i,T,x;exports.ButtonVariant=void 0,(o=exports.ButtonVariant||(exports.ButtonVariant={})).CONTAINED="contained",o.OUTLINED="outlined",o.BARE="bare",exports.ButtonColor=void 0,(t=exports.ButtonColor||(exports.ButtonColor={})).PRIMARY="primary",t.SECONDARY="secondary",exports.ButtonSize=void 0,(e=exports.ButtonSize||(exports.ButtonSize={})).SMALL="sm",e.MEDIUM="md",e.LARGE="lg",exports.ButtonIconPosition=void 0,(s=exports.ButtonIconPosition||(exports.ButtonIconPosition={})).LEFT="left",s.RIGHT="right",exports.ButtonPosition=void 0,(r=exports.ButtonPosition||(exports.ButtonPosition={})).LEFT="left",r.RIGHT="right",r.CENTER="center",r.STRETCH="stretch",exports.ToastTypes=void 0,(p=exports.ToastTypes||(exports.ToastTypes={})).ERROR="ERROR",p.SUCCESS="SUCCESS",exports.CalloutTypes=void 0,(n=exports.CalloutTypes||(exports.CalloutTypes={})).ERROR="ERROR",n.WARNING="WARNING",n.SUCCESS="SUCCESS",exports.CalenderMode=void 0,(a=exports.CalenderMode||(exports.CalenderMode={})).PWA="pwa",a.DESKTOP="desktop",exports.Theme=void 0,(exports.Theme||(exports.Theme={})).PRIMARY="PRIMARY",exports.Tabs=void 0,(i=exports.Tabs||(exports.Tabs={})).FlatTabs="FlatTab",i.CapsuleTabs="CapsuleTab",exports.BorderStyle=void 0,(T=exports.BorderStyle||(exports.BorderStyle={})).SOLID="SOLID",T.DOTTED="DOTTED",exports.IconPosition=void 0,(x=exports.IconPosition||(exports.IconPosition={})).TOP="top",x.BOTTOM="bottom",x.LEFT="left",x.RIGHT="right";exports.ALPHA_NUMERIC=/^[a-zA-Z0-9]+$/,exports.DAYS=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],exports.FULL_NAMES_OF_DAYS={0:"Sunday",1:"Monday",2:"Tuesday",3:"Wednesday",4:"Thursday",5:"Friday",6:"Saturday"},exports.KEYBOARD_KEY_CODE={LEFT_ARROW:37,RIGHT_ARROW:39,SPACEBAR:32},exports.MONTHS=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],exports.ONLY_NUMERIC=/^[0-9]+$/; | ||
"use strict";var o,t,e,s,r,p,n,a,T,i,x;exports.ButtonVariant=void 0,(o=exports.ButtonVariant||(exports.ButtonVariant={})).CONTAINED="contained",o.OUTLINED="outlined",o.BARE="bare",exports.ButtonColor=void 0,(t=exports.ButtonColor||(exports.ButtonColor={})).PRIMARY="primary",t.SECONDARY="secondary",exports.ButtonSize=void 0,(e=exports.ButtonSize||(exports.ButtonSize={})).SMALL="sm",e.MEDIUM="md",e.LARGE="lg",exports.ButtonIconPosition=void 0,(s=exports.ButtonIconPosition||(exports.ButtonIconPosition={})).LEFT="left",s.RIGHT="right",exports.ButtonPosition=void 0,(r=exports.ButtonPosition||(exports.ButtonPosition={})).LEFT="left",r.RIGHT="right",r.CENTER="center",r.STRETCH="stretch",exports.ToastTypes=void 0,(p=exports.ToastTypes||(exports.ToastTypes={})).ERROR="ERROR",p.SUCCESS="SUCCESS",exports.CalloutTypes=void 0,(n=exports.CalloutTypes||(exports.CalloutTypes={})).ERROR="ERROR",n.WARNING="WARNING",n.SUCCESS="SUCCESS",exports.CalenderMode=void 0,(a=exports.CalenderMode||(exports.CalenderMode={})).PWA="pwa",a.DESKTOP="desktop",exports.Theme=void 0,(exports.Theme||(exports.Theme={})).PRIMARY="PRIMARY",exports.Tabs=void 0,(T=exports.Tabs||(exports.Tabs={})).FlatTabs="FlatTab",T.CapsuleTabs="CapsuleTab",exports.BorderStyle=void 0,(i=exports.BorderStyle||(exports.BorderStyle={})).SOLID="SOLID",i.DOTTED="DOTTED",exports.IconPosition=void 0,(x=exports.IconPosition||(exports.IconPosition={})).TOP="top",x.BOTTOM="bottom",x.LEFT="left",x.RIGHT="right";exports.ALPHA_NUMERIC=/^[a-zA-Z0-9]+$/,exports.DAYS=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],exports.FULL_NAMES_OF_DAYS={0:"Sunday",1:"Monday",2:"Tuesday",3:"Wednesday",4:"Thursday",5:"Friday",6:"Saturday"},exports.KEYBOARD_KEY_CODE={LEFT_ARROW:37,RIGHT_ARROW:39,SPACEBAR:32},exports.MONTHS=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],exports.ONLY_NUMERIC=/^[0-9]+$/,exports.WEEK_DAY_LABEL={0:"Mon",1:"Tue",2:"Wed",3:"Thu",4:"Fri",5:"Sat",6:"Sun"},exports.alphabetDays=["M","T","W","T","F","S","S"]; | ||
//# sourceMappingURL=ct-design-constants.browser.cjs.js.map |
@@ -1,2 +0,2 @@ | ||
var n,R,t,T,a,u,E,S,o,e,i,c;!function(n){n.CONTAINED="contained",n.OUTLINED="outlined",n.BARE="bare"}(n||(n={})),function(n){n.PRIMARY="primary",n.SECONDARY="secondary"}(R||(R={})),function(n){n.SMALL="sm",n.MEDIUM="md",n.LARGE="lg"}(t||(t={})),function(n){n.LEFT="left",n.RIGHT="right"}(T||(T={})),function(n){n.LEFT="left",n.RIGHT="right",n.CENTER="center",n.STRETCH="stretch"}(a||(a={})),function(n){n.ERROR="ERROR",n.SUCCESS="SUCCESS"}(u||(u={})),function(n){n.ERROR="ERROR",n.WARNING="WARNING",n.SUCCESS="SUCCESS"}(E||(E={})),function(n){n.PWA="pwa",n.DESKTOP="desktop"}(S||(S={})),function(n){n.PRIMARY="PRIMARY"}(o||(o={})),function(n){n.FlatTabs="FlatTab",n.CapsuleTabs="CapsuleTab"}(e||(e={})),function(n){n.SOLID="SOLID",n.DOTTED="DOTTED"}(i||(i={})),function(n){n.TOP="top",n.BOTTOM="bottom",n.LEFT="left",n.RIGHT="right"}(c||(c={}));var r=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],O={0:"Sunday",1:"Monday",2:"Tuesday",3:"Wednesday",4:"Thursday",5:"Friday",6:"Saturday"},f=/^[0-9]+$/,C={LEFT_ARROW:37,RIGHT_ARROW:39,SPACEBAR:32},d=/^[a-zA-Z0-9]+$/;export{d as ALPHA_NUMERIC,i as BorderStyle,R as ButtonColor,T as ButtonIconPosition,a as ButtonPosition,t as ButtonSize,n as ButtonVariant,S as CalenderMode,E as CalloutTypes,r as DAYS,O as FULL_NAMES_OF_DAYS,c as IconPosition,C as KEYBOARD_KEY_CODE,A as MONTHS,f as ONLY_NUMERIC,e as Tabs,o as Theme,u as ToastTypes}; | ||
var n,t,R,T,a,u,S,E,e,o,i,r;!function(n){n.CONTAINED="contained",n.OUTLINED="outlined",n.BARE="bare"}(n||(n={})),function(n){n.PRIMARY="primary",n.SECONDARY="secondary"}(t||(t={})),function(n){n.SMALL="sm",n.MEDIUM="md",n.LARGE="lg"}(R||(R={})),function(n){n.LEFT="left",n.RIGHT="right"}(T||(T={})),function(n){n.LEFT="left",n.RIGHT="right",n.CENTER="center",n.STRETCH="stretch"}(a||(a={})),function(n){n.ERROR="ERROR",n.SUCCESS="SUCCESS"}(u||(u={})),function(n){n.ERROR="ERROR",n.WARNING="WARNING",n.SUCCESS="SUCCESS"}(S||(S={})),function(n){n.PWA="pwa",n.DESKTOP="desktop"}(E||(E={})),function(n){n.PRIMARY="PRIMARY"}(e||(e={})),function(n){n.FlatTabs="FlatTab",n.CapsuleTabs="CapsuleTab"}(o||(o={})),function(n){n.SOLID="SOLID",n.DOTTED="DOTTED"}(i||(i={})),function(n){n.TOP="top",n.BOTTOM="bottom",n.LEFT="left",n.RIGHT="right"}(r||(r={}));var c=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],O={0:"Sunday",1:"Monday",2:"Tuesday",3:"Wednesday",4:"Thursday",5:"Friday",6:"Saturday"},d={0:"Mon",1:"Tue",2:"Wed",3:"Thu",4:"Fri",5:"Sat",6:"Sun"},f=["M","T","W","T","F","S","S"],C=/^[0-9]+$/,I={LEFT_ARROW:37,RIGHT_ARROW:39,SPACEBAR:32},M=/^[a-zA-Z0-9]+$/;export{M as ALPHA_NUMERIC,i as BorderStyle,t as ButtonColor,T as ButtonIconPosition,a as ButtonPosition,R as ButtonSize,n as ButtonVariant,E as CalenderMode,S as CalloutTypes,c as DAYS,O as FULL_NAMES_OF_DAYS,r as IconPosition,I as KEYBOARD_KEY_CODE,A as MONTHS,C as ONLY_NUMERIC,o as Tabs,e as Theme,u as ToastTypes,d as WEEK_DAY_LABEL,f as alphabetDays}; | ||
//# sourceMappingURL=ct-design-constants.browser.esm.js.map |
@@ -80,2 +80,12 @@ 'use strict'; | ||
}; | ||
var WEEK_DAY_LABEL = { | ||
0: 'Mon', | ||
1: 'Tue', | ||
2: 'Wed', | ||
3: 'Thu', | ||
4: 'Fri', | ||
5: 'Sat', | ||
6: 'Sun', | ||
}; | ||
var alphabetDays = ['M', 'T', 'W', 'T', 'F', 'S', 'S']; | ||
var ONLY_NUMERIC = /^[0-9]+$/; | ||
@@ -95,2 +105,4 @@ var KEYBOARD_KEY_CODE = { | ||
exports.ONLY_NUMERIC = ONLY_NUMERIC; | ||
exports.WEEK_DAY_LABEL = WEEK_DAY_LABEL; | ||
exports.alphabetDays = alphabetDays; | ||
//# sourceMappingURL=ct-design-constants.cjs.js.map |
@@ -78,2 +78,12 @@ var ButtonVariant; | ||
}; | ||
var WEEK_DAY_LABEL = { | ||
0: 'Mon', | ||
1: 'Tue', | ||
2: 'Wed', | ||
3: 'Thu', | ||
4: 'Fri', | ||
5: 'Sat', | ||
6: 'Sun', | ||
}; | ||
var alphabetDays = ['M', 'T', 'W', 'T', 'F', 'S', 'S']; | ||
var ONLY_NUMERIC = /^[0-9]+$/; | ||
@@ -87,3 +97,3 @@ var KEYBOARD_KEY_CODE = { | ||
export { ALPHA_NUMERIC, BorderStyle, ButtonColor, ButtonIconPosition, ButtonPosition, ButtonSize, ButtonVariant, CalenderMode, CalloutTypes, DAYS, FULL_NAMES_OF_DAYS, IconPosition, KEYBOARD_KEY_CODE, MONTHS, ONLY_NUMERIC, Tabs, Theme, ToastTypes }; | ||
export { ALPHA_NUMERIC, BorderStyle, ButtonColor, ButtonIconPosition, ButtonPosition, ButtonSize, ButtonVariant, CalenderMode, CalloutTypes, DAYS, FULL_NAMES_OF_DAYS, IconPosition, KEYBOARD_KEY_CODE, MONTHS, ONLY_NUMERIC, Tabs, Theme, ToastTypes, WEEK_DAY_LABEL, alphabetDays }; | ||
//# sourceMappingURL=ct-design-constants.esm.js.map |
@@ -84,2 +84,12 @@ (function (global, factory) { | ||
}; | ||
var WEEK_DAY_LABEL = { | ||
0: 'Mon', | ||
1: 'Tue', | ||
2: 'Wed', | ||
3: 'Thu', | ||
4: 'Fri', | ||
5: 'Sat', | ||
6: 'Sun', | ||
}; | ||
var alphabetDays = ['M', 'T', 'W', 'T', 'F', 'S', 'S']; | ||
var ONLY_NUMERIC = /^[0-9]+$/; | ||
@@ -99,4 +109,6 @@ var KEYBOARD_KEY_CODE = { | ||
exports.ONLY_NUMERIC = ONLY_NUMERIC; | ||
exports.WEEK_DAY_LABEL = WEEK_DAY_LABEL; | ||
exports.alphabetDays = alphabetDays; | ||
})); | ||
//# sourceMappingURL=ct-design-constants.umd.js.map |
@@ -85,2 +85,12 @@ export declare enum ButtonVariant { | ||
}; | ||
export declare const WEEK_DAY_LABEL: { | ||
0: string; | ||
1: string; | ||
2: string; | ||
3: string; | ||
4: string; | ||
5: string; | ||
6: string; | ||
}; | ||
export declare const alphabetDays: string[]; | ||
export declare const ONLY_NUMERIC: RegExp; | ||
@@ -87,0 +97,0 @@ export declare const KEYBOARD_KEY_CODE: { |
{ | ||
"name": "@cleartrip/ct-design-common-constants", | ||
"version": "2.5.0", | ||
"version": "2.6.0-beta.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34306
427
2