diff --git a/infrastructure/eid-wallet/src/app.css b/infrastructure/eid-wallet/src/app.css index 34d5cf9a5..c4f8a805a 100644 --- a/infrastructure/eid-wallet/src/app.css +++ b/infrastructure/eid-wallet/src/app.css @@ -39,6 +39,12 @@ --color-black: #1F1F1F; + --color-red-900: #FF5255; + --color-red-700: #FF7B77; + --color-red-500: #FF968E; + --color-red-300: #FFB1A7; + --color-red-100: #FFDCDD; + --color-danger-500: #ff5255; --color-danger-300: #ffdcdd; } diff --git a/infrastructure/eid-wallet/src/lib/ui/InputPin/InputPin.stories.ts b/infrastructure/eid-wallet/src/lib/ui/InputPin/InputPin.stories.ts new file mode 100644 index 000000000..c0a43d3e3 --- /dev/null +++ b/infrastructure/eid-wallet/src/lib/ui/InputPin/InputPin.stories.ts @@ -0,0 +1,31 @@ +import InputPin from './InputPin.svelte'; + +export default { + title: 'UI/InputPin', + component: InputPin, + tags: ['autodocs'], + render: (args: any) => ({ + Component: InputPin, + props: args + }) +}; + +export const Default = { + args: { + size: 4 + } +}; + +export const Small = { + args: { + size: 4, + variant: "sm" + } +}; + +export const Error = { + args: { + size: 4, + isError: true, + } +}; \ No newline at end of file diff --git a/infrastructure/eid-wallet/src/lib/ui/InputPin/InputPin.svelte b/infrastructure/eid-wallet/src/lib/ui/InputPin/InputPin.svelte new file mode 100644 index 000000000..54886febd --- /dev/null +++ b/infrastructure/eid-wallet/src/lib/ui/InputPin/InputPin.svelte @@ -0,0 +1,176 @@ + + +