UNPKG

react-input-pin-code

Version:

Pin input built with React component and styled-components

1 lines 1.19 kB
{"version":3,"file":"index.d.ts","sources":["../../src/constants/key.ts","../../src/constants/styles.ts"],"sourcesContent":["export const INPUT_KEY_BACKSPACE = 'Backspace';\r\n","export const SIZE_EXTRA_SMALL = 'xs';\r\nexport const SIZE_SMALL = 'sm';\r\nexport const SIZE_MEDIUM = 'md';\r\nexport const SIZE_LARGE = 'lg';\r\n\r\nexport const DEFAULT_BACKGROUND_COLOR_OPACITY = 0.1;\r\n\r\nexport const DEFAULT_BORDER_COLOR = 'rgb(204,204,204)';\r\nexport const DEFAULT_ERROR_BORDER_COLOR = 'rgb(220,53,69)';\r\nexport const DEFAULT_ERROR_BACKGROUND_COLOR = `rgba(220,53,69,${DEFAULT_BACKGROUND_COLOR_OPACITY})`;\r\nexport const DEFAULT_FOCUS_BORDER_COLOR = 'rgb(13,110,253)';\r\nexport const DEFAULT_FOCUS_BACKGROUND_COLOR = `rgba(13,110,253,${DEFAULT_BACKGROUND_COLOR_OPACITY})`;\r\nexport const DEFAULT_VALID_BORDER_COLOR = 'rgb(25,135,84)';\r\nexport const DEFAULT_VALID_BACKGROUND_COLOR = `rgba(25,135,84,${DEFAULT_BACKGROUND_COLOR_OPACITY})`;\r\n"],"names":[],"mappings":"AAAO,cAAA,mBAAA;;ACAA,cAAA,gBAAA;AACA,cAAA,UAAA;AACA,cAAA,WAAA;AACA,cAAA,UAAA;AACA,cAAA,gCAAA;AACA,cAAA,oBAAA;AACA,cAAA,0BAAA;AACA,cAAA,8BAAA;AACA,cAAA,0BAAA;AACA,cAAA,8BAAA;AACA,cAAA,0BAAA;AACA,cAAA,8BAAA;;;;"}