@iroco/ui 1.16.1 → 1.16.2
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.
- package/dist/Alert.svelte +1 -0
- package/dist/Button.svelte +1 -0
- package/dist/IconIrocoLogo.svelte +1 -0
- package/dist/ImageArticle.svelte +1 -0
- package/dist/IrocoLogo.svelte +1 -0
- package/dist/NavBar.svelte +1 -0
- package/dist/Navigation.svelte +1 -0
- package/dist/NumberInput.svelte +1 -0
- package/dist/PasswordInput.svelte +1 -0
- package/dist/RadioButton.svelte +1 -0
- package/dist/TextInput.svelte +1 -0
- package/dist/sample-login-form.stories.svelte +43 -0
- package/dist/sample-login-form.stories.svelte.d.ts +18 -0
- package/dist/scss/colors.scss +1 -0
- package/package.json +1 -1
package/dist/Alert.svelte
CHANGED
package/dist/Button.svelte
CHANGED
package/dist/ImageArticle.svelte
CHANGED
package/dist/IrocoLogo.svelte
CHANGED
package/dist/NavBar.svelte
CHANGED
package/dist/Navigation.svelte
CHANGED
package/dist/NumberInput.svelte
CHANGED
package/dist/RadioButton.svelte
CHANGED
package/dist/TextInput.svelte
CHANGED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<script module lang="ts">
|
|
2
|
+
import { defineMeta, setTemplate } from '@storybook/addon-svelte-csf';
|
|
3
|
+
import { IconIrocoLogo, TextInput, PasswordInput, Button } from './index';
|
|
4
|
+
const { Story } = defineMeta({
|
|
5
|
+
title: 'Iroco-UI/Samples/Login form'
|
|
6
|
+
});
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<script lang="ts">
|
|
10
|
+
setTemplate(template);
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
{#snippet template()}
|
|
14
|
+
<section class="section">
|
|
15
|
+
<div style="margin-bottom: 2em;">
|
|
16
|
+
<IconIrocoLogo width="48px" height="48px" ariaLabel="Iroco logo" href="https://iroco.co" />
|
|
17
|
+
</div>
|
|
18
|
+
<form class="iroco-ui-form">
|
|
19
|
+
<TextInput label="E-mail" type="email" name="email" id="email" />
|
|
20
|
+
<PasswordInput
|
|
21
|
+
label="Password"
|
|
22
|
+
name="password"
|
|
23
|
+
id="password"
|
|
24
|
+
showPasswordAriaLabel="Password aria label"
|
|
25
|
+
passwordHiddenAriaLive="Password hidden aria live"
|
|
26
|
+
passwordShownAriaLive="Password show aria live"
|
|
27
|
+
/>
|
|
28
|
+
|
|
29
|
+
<p class="error">Some error message</p>
|
|
30
|
+
<Button type="submit" kind="success" fullWidth>Login</Button>
|
|
31
|
+
</form>
|
|
32
|
+
<a href="#">Lost your password ?</a>
|
|
33
|
+
</section>
|
|
34
|
+
{/snippet}
|
|
35
|
+
|
|
36
|
+
<Story name="Default" />
|
|
37
|
+
|
|
38
|
+
<style>
|
|
39
|
+
.section {
|
|
40
|
+
padding: 3rem;
|
|
41
|
+
background: var(--color-background-darker);
|
|
42
|
+
}
|
|
43
|
+
</style>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
11
|
+
};
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
13
|
+
}
|
|
14
|
+
declare const SampleLoginForm: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
15
|
+
[evt: string]: CustomEvent<any>;
|
|
16
|
+
}, {}, {}, string>;
|
|
17
|
+
type SampleLoginForm = InstanceType<typeof SampleLoginForm>;
|
|
18
|
+
export default SampleLoginForm;
|
package/dist/scss/colors.scss
CHANGED