@iroco/ui 1.0.0-0 → 1.0.0-10

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.
Files changed (71) hide show
  1. package/README.md +49 -1
  2. package/dist/Alert.stories.svelte +32 -0
  3. package/dist/Alert.stories.svelte.d.ts +37 -0
  4. package/dist/Alert.svelte +8 -52
  5. package/dist/Button.stories.svelte +5 -7
  6. package/dist/Button.stories.svelte.d.ts +6 -3
  7. package/dist/Button.svelte +18 -62
  8. package/dist/Button.svelte.d.ts +0 -4
  9. package/dist/DataTable.stories.svelte +31 -0
  10. package/dist/DataTable.stories.svelte.d.ts +29 -0
  11. package/dist/DataTable.svelte +3 -47
  12. package/dist/IconBurger.stories.svelte +30 -0
  13. package/dist/IconBurger.stories.svelte.d.ts +48 -0
  14. package/dist/IconClose.stories.svelte +30 -0
  15. package/dist/IconClose.stories.svelte.d.ts +48 -0
  16. package/dist/IconFloppyDisk.stories.svelte +33 -0
  17. package/dist/IconFloppyDisk.stories.svelte.d.ts +55 -0
  18. package/dist/IconInfo.stories.svelte +31 -0
  19. package/dist/IconInfo.stories.svelte.d.ts +50 -0
  20. package/dist/IconIrocoLogo.stories.svelte +34 -0
  21. package/dist/IconIrocoLogo.stories.svelte.d.ts +57 -0
  22. package/dist/IconIrocoLogo.svelte +14 -10
  23. package/dist/IconIrocoLogo.svelte.d.ts +2 -0
  24. package/dist/IconMoreSign.stories.svelte +31 -0
  25. package/dist/IconMoreSign.stories.svelte.d.ts +50 -0
  26. package/dist/IconTrashCan.stories.svelte +31 -0
  27. package/dist/IconTrashCan.stories.svelte.d.ts +50 -0
  28. package/dist/ImageArticle.stories.svelte +61 -0
  29. package/dist/ImageArticle.stories.svelte.d.ts +66 -0
  30. package/dist/ImageArticle.svelte +454 -0
  31. package/dist/ImageArticle.svelte.d.ts +23 -0
  32. package/dist/IrocoLogo.stories.svelte +31 -0
  33. package/dist/IrocoLogo.stories.svelte.d.ts +50 -0
  34. package/dist/IrocoLogo.svelte +3 -6
  35. package/dist/IrocoLogo.svelte.d.ts +2 -2
  36. package/dist/Loader.stories.svelte +19 -0
  37. package/dist/Loader.stories.svelte.d.ts +29 -0
  38. package/dist/NavBar.stories.svelte +37 -0
  39. package/dist/NavBar.stories.svelte.d.ts +37 -0
  40. package/dist/NavBar.svelte +27 -196
  41. package/dist/Navigation.stories.svelte +48 -0
  42. package/dist/Navigation.stories.svelte.d.ts +59 -0
  43. package/dist/Navigation.svelte +16 -87
  44. package/dist/Navigation.svelte.d.ts +1 -0
  45. package/dist/NumberInput.stories.svelte +47 -0
  46. package/dist/NumberInput.stories.svelte.d.ts +77 -0
  47. package/dist/NumberInput.svelte +11 -55
  48. package/dist/NumberInput.svelte.d.ts +4 -4
  49. package/dist/RadioButton.stories.svelte +39 -0
  50. package/dist/RadioButton.stories.svelte.d.ts +56 -0
  51. package/dist/RadioButton.svelte +5 -50
  52. package/dist/RadioButton.svelte.d.ts +0 -2
  53. package/dist/TextInput.stories.svelte +78 -0
  54. package/dist/TextInput.stories.svelte.d.ts +111 -0
  55. package/dist/TextInput.svelte +18 -61
  56. package/dist/TextInput.svelte.d.ts +8 -8
  57. package/dist/definition.d.ts +5 -0
  58. package/dist/definition.js +8 -0
  59. package/dist/scss/button.scss +25 -15
  60. package/dist/scss/colors.scss +68 -44
  61. package/dist/scss/fields/_checkbox.scss +3 -3
  62. package/dist/scss/fields/_input.scss +11 -15
  63. package/dist/scss/forms.scss +8 -8
  64. package/dist/scss/style.scss +1 -1
  65. package/package.json +6 -4
  66. package/dist/NumberInputSized.svelte +0 -4
  67. package/dist/NumberInputSized.svelte.d.ts +0 -14
  68. package/dist/TopBar.svelte +0 -0
  69. package/dist/TopBar.svelte.d.ts +0 -23
  70. package/dist/scss/check.scss +0 -47
  71. package/dist/scss/iroco.scss +0 -36
@@ -0,0 +1,48 @@
1
+ export namespace meta {
2
+ export let title: string;
3
+ export { IconClose as component };
4
+ export namespace argTypes {
5
+ namespace width {
6
+ namespace control {
7
+ let type: string;
8
+ }
9
+ let min: number;
10
+ let max: number;
11
+ }
12
+ namespace height {
13
+ export namespace control_1 {
14
+ let type_1: string;
15
+ export { type_1 as type };
16
+ }
17
+ export { control_1 as control };
18
+ let min_1: number;
19
+ export { min_1 as min };
20
+ let max_1: number;
21
+ export { max_1 as max };
22
+ }
23
+ }
24
+ }
25
+ /** @typedef {typeof __propDef.props} IconCloseProps */
26
+ /** @typedef {typeof __propDef.events} IconCloseEvents */
27
+ /** @typedef {typeof __propDef.slots} IconCloseSlots */
28
+ export default class IconClose extends SvelteComponent<{
29
+ [x: string]: never;
30
+ }, {
31
+ [evt: string]: CustomEvent<any>;
32
+ }, {}> {
33
+ }
34
+ export type IconCloseProps = typeof __propDef.props;
35
+ export type IconCloseEvents = typeof __propDef.events;
36
+ export type IconCloseSlots = typeof __propDef.slots;
37
+ import IconClose from './IconClose.svelte';
38
+ import { SvelteComponent } from "svelte";
39
+ declare const __propDef: {
40
+ props: {
41
+ [x: string]: never;
42
+ };
43
+ events: {
44
+ [evt: string]: CustomEvent<any>;
45
+ };
46
+ slots: {};
47
+ };
48
+ export {};
@@ -0,0 +1,33 @@
1
+ <script context="module">
2
+ import { IconFloppyDisk } from './index';
3
+
4
+ export const meta = {
5
+ title: 'Iroco-UI/Icons/IconFloppyDisk',
6
+ component: IconFloppyDisk,
7
+ argTypes: {
8
+ width: {
9
+ control: { type: 'range' },
10
+ min: 32,
11
+ max: 512
12
+ },
13
+ height: {
14
+ control: { type: 'range' },
15
+ min: 32,
16
+ max: 512
17
+ },
18
+ fill: {
19
+ control: { type: 'color' }
20
+ }
21
+ }
22
+ };
23
+ </script>
24
+
25
+ <script>
26
+ import { Story, Template } from '@storybook/addon-svelte-csf';
27
+ </script>
28
+
29
+ <Template let:args>
30
+ <IconFloppyDisk {...args} />
31
+ </Template>
32
+
33
+ <Story name="Default" />
@@ -0,0 +1,55 @@
1
+ export namespace meta {
2
+ export let title: string;
3
+ export { IconFloppyDisk as component };
4
+ export namespace argTypes {
5
+ namespace width {
6
+ namespace control {
7
+ let type: string;
8
+ }
9
+ let min: number;
10
+ let max: number;
11
+ }
12
+ namespace height {
13
+ export namespace control_1 {
14
+ let type_1: string;
15
+ export { type_1 as type };
16
+ }
17
+ export { control_1 as control };
18
+ let min_1: number;
19
+ export { min_1 as min };
20
+ let max_1: number;
21
+ export { max_1 as max };
22
+ }
23
+ namespace fill {
24
+ export namespace control_2 {
25
+ let type_2: string;
26
+ export { type_2 as type };
27
+ }
28
+ export { control_2 as control };
29
+ }
30
+ }
31
+ }
32
+ /** @typedef {typeof __propDef.props} IconFloppyDiskProps */
33
+ /** @typedef {typeof __propDef.events} IconFloppyDiskEvents */
34
+ /** @typedef {typeof __propDef.slots} IconFloppyDiskSlots */
35
+ export default class IconFloppyDisk extends SvelteComponent<{
36
+ [x: string]: never;
37
+ }, {
38
+ [evt: string]: CustomEvent<any>;
39
+ }, {}> {
40
+ }
41
+ export type IconFloppyDiskProps = typeof __propDef.props;
42
+ export type IconFloppyDiskEvents = typeof __propDef.events;
43
+ export type IconFloppyDiskSlots = typeof __propDef.slots;
44
+ import { IconFloppyDisk } from './index';
45
+ import { SvelteComponent } from "svelte";
46
+ declare const __propDef: {
47
+ props: {
48
+ [x: string]: never;
49
+ };
50
+ events: {
51
+ [evt: string]: CustomEvent<any>;
52
+ };
53
+ slots: {};
54
+ };
55
+ export {};
@@ -0,0 +1,31 @@
1
+ <script context="module">
2
+ import { IconInfo } from './index';
3
+
4
+ export const meta = {
5
+ title: 'Iroco-UI/Icons/IconInfo',
6
+ type: 'Icons',
7
+ component: IconInfo,
8
+ argTypes: {
9
+ width: {
10
+ control: { type: 'range' },
11
+ min: 32,
12
+ max: 512
13
+ },
14
+ height: {
15
+ control: { type: 'range' },
16
+ min: 32,
17
+ max: 512
18
+ }
19
+ }
20
+ };
21
+ </script>
22
+
23
+ <script>
24
+ import { Story, Template } from '@storybook/addon-svelte-csf';
25
+ </script>
26
+
27
+ <Template let:args>
28
+ <IconInfo {...args} />
29
+ </Template>
30
+
31
+ <Story name="Default" />
@@ -0,0 +1,50 @@
1
+ export namespace meta {
2
+ export let title: string;
3
+ export let type: string;
4
+ export { IconInfo as component };
5
+ export namespace argTypes {
6
+ namespace width {
7
+ namespace control {
8
+ let type_1: string;
9
+ export { type_1 as type };
10
+ }
11
+ let min: number;
12
+ let max: number;
13
+ }
14
+ namespace height {
15
+ export namespace control_1 {
16
+ let type_2: string;
17
+ export { type_2 as type };
18
+ }
19
+ export { control_1 as control };
20
+ let min_1: number;
21
+ export { min_1 as min };
22
+ let max_1: number;
23
+ export { max_1 as max };
24
+ }
25
+ }
26
+ }
27
+ /** @typedef {typeof __propDef.props} IconInfoProps */
28
+ /** @typedef {typeof __propDef.events} IconInfoEvents */
29
+ /** @typedef {typeof __propDef.slots} IconInfoSlots */
30
+ export default class IconInfo extends SvelteComponent<{
31
+ [x: string]: never;
32
+ }, {
33
+ [evt: string]: CustomEvent<any>;
34
+ }, {}> {
35
+ }
36
+ export type IconInfoProps = typeof __propDef.props;
37
+ export type IconInfoEvents = typeof __propDef.events;
38
+ export type IconInfoSlots = typeof __propDef.slots;
39
+ import { IconInfo } from './index';
40
+ import { SvelteComponent } from "svelte";
41
+ declare const __propDef: {
42
+ props: {
43
+ [x: string]: never;
44
+ };
45
+ events: {
46
+ [evt: string]: CustomEvent<any>;
47
+ };
48
+ slots: {};
49
+ };
50
+ export {};
@@ -0,0 +1,34 @@
1
+ <script context="module">
2
+ import { IconIrocoLogo } from './index';
3
+
4
+ export const meta = {
5
+ title: 'Iroco-UI/Iroco/IconIrocoLogo',
6
+ type: 'Icons',
7
+ component: IconIrocoLogo,
8
+ argTypes: {
9
+ width: {
10
+ control: { type: 'range' },
11
+ min: 32,
12
+ max: 512
13
+ },
14
+ height: {
15
+ control: { type: 'range' },
16
+ min: 32,
17
+ max: 512
18
+ },
19
+ color: {
20
+ control: { type: 'color' }
21
+ }
22
+ }
23
+ };
24
+ </script>
25
+
26
+ <script>
27
+ import { Story, Template } from '@storybook/addon-svelte-csf';
28
+ </script>
29
+
30
+ <Template let:args>
31
+ <IconIrocoLogo {...args} />
32
+ </Template>
33
+
34
+ <Story name="Default" />
@@ -0,0 +1,57 @@
1
+ export namespace meta {
2
+ export let title: string;
3
+ export let type: string;
4
+ export { IconIrocoLogo as component };
5
+ export namespace argTypes {
6
+ namespace width {
7
+ namespace control {
8
+ let type_1: string;
9
+ export { type_1 as type };
10
+ }
11
+ let min: number;
12
+ let max: number;
13
+ }
14
+ namespace height {
15
+ export namespace control_1 {
16
+ let type_2: string;
17
+ export { type_2 as type };
18
+ }
19
+ export { control_1 as control };
20
+ let min_1: number;
21
+ export { min_1 as min };
22
+ let max_1: number;
23
+ export { max_1 as max };
24
+ }
25
+ namespace color {
26
+ export namespace control_2 {
27
+ let type_3: string;
28
+ export { type_3 as type };
29
+ }
30
+ export { control_2 as control };
31
+ }
32
+ }
33
+ }
34
+ /** @typedef {typeof __propDef.props} IconIrocoLogoProps */
35
+ /** @typedef {typeof __propDef.events} IconIrocoLogoEvents */
36
+ /** @typedef {typeof __propDef.slots} IconIrocoLogoSlots */
37
+ export default class IconIrocoLogo extends SvelteComponent<{
38
+ [x: string]: never;
39
+ }, {
40
+ [evt: string]: CustomEvent<any>;
41
+ }, {}> {
42
+ }
43
+ export type IconIrocoLogoProps = typeof __propDef.props;
44
+ export type IconIrocoLogoEvents = typeof __propDef.events;
45
+ export type IconIrocoLogoSlots = typeof __propDef.slots;
46
+ import { IconIrocoLogo } from './index';
47
+ import { SvelteComponent } from "svelte";
48
+ declare const __propDef: {
49
+ props: {
50
+ [x: string]: never;
51
+ };
52
+ events: {
53
+ [evt: string]: CustomEvent<any>;
54
+ };
55
+ slots: {};
56
+ };
57
+ export {};
@@ -1,16 +1,20 @@
1
1
  <script>import { Color } from "./definition";
2
+ export let href = "/";
3
+ export let ariaLabel = "go to Iroco home";
2
4
  export let width = "5rem";
3
5
  export let height = "5rem";
4
6
  export let color = Color.green;
5
7
  </script>
6
8
 
7
- <svg {width} {height} viewBox="0 0 54 53" fill="none" xmlns="http://www.w3.org/2000/svg">
8
- <path
9
- d="M30.009 29.9999C29.3241 30.0677 28.7761 30.1355 28.4336 30.2033C28.0912 30.3389 27.8857 30.5423 27.7487 30.8812C27.6117 31.2202 27.5432 31.7626 27.5432 32.5084V47.1524C27.5432 47.8982 27.6117 48.4406 27.7487 48.7795C27.8857 49.1185 28.0912 49.3219 28.4336 49.4575C28.7761 49.5931 29.2556 49.6609 30.009 49.6609V50.2711C29.1186 50.2033 27.8172 50.2033 26.2419 50.2033C24.5295 50.2033 23.2282 50.2033 22.4062 50.2711V49.7965C23.0912 49.7287 23.6391 49.6609 23.9816 49.5931C24.3241 49.4575 24.5295 49.2541 24.6665 48.9151C24.8035 48.5762 24.872 48.0338 24.872 47.288V32.5762C24.872 31.8304 24.8035 31.288 24.6665 30.949C24.5295 30.6101 24.3241 30.4067 23.9816 30.2711C23.6391 30.1355 23.1597 30.0677 22.4062 30.0677V29.4575C23.2282 29.5253 24.5295 29.5253 26.2419 29.5253C27.8172 29.5253 29.1186 29.5253 30.009 29.4575V29.9999Z"
10
- fill="white"
11
- />
12
- <path
13
- d="M18.7079 40.4406C11.1737 37.3897 6.24219 30.2033 6.24219 22.1355C6.24219 11.2202 15.2148 2.33887 26.2422 2.33887C37.2696 2.33887 46.2422 11.2202 46.2422 22.1355C46.2422 30.2033 41.3107 37.4575 33.7764 40.4406L32.2696 36.9151C38.3655 34.4745 42.3381 28.6439 42.3381 22.0677C42.3381 13.2541 35.0778 6.06768 26.1737 6.06768C17.2696 6.06768 10.0093 13.2541 10.0093 22.0677C10.0093 28.5762 13.9819 34.4067 20.0778 36.9151L18.7079 40.4406Z"
14
- fill={color}
15
- />
16
- </svg>
9
+ <a class="iroco-logo" {href} aria-label={ariaLabel}>
10
+ <svg {width} {height} viewBox="0 0 54 53" fill="none" xmlns="http://www.w3.org/2000/svg">
11
+ <path
12
+ d="M30.009 29.9999C29.3241 30.0677 28.7761 30.1355 28.4336 30.2033C28.0912 30.3389 27.8857 30.5423 27.7487 30.8812C27.6117 31.2202 27.5432 31.7626 27.5432 32.5084V47.1524C27.5432 47.8982 27.6117 48.4406 27.7487 48.7795C27.8857 49.1185 28.0912 49.3219 28.4336 49.4575C28.7761 49.5931 29.2556 49.6609 30.009 49.6609V50.2711C29.1186 50.2033 27.8172 50.2033 26.2419 50.2033C24.5295 50.2033 23.2282 50.2033 22.4062 50.2711V49.7965C23.0912 49.7287 23.6391 49.6609 23.9816 49.5931C24.3241 49.4575 24.5295 49.2541 24.6665 48.9151C24.8035 48.5762 24.872 48.0338 24.872 47.288V32.5762C24.872 31.8304 24.8035 31.288 24.6665 30.949C24.5295 30.6101 24.3241 30.4067 23.9816 30.2711C23.6391 30.1355 23.1597 30.0677 22.4062 30.0677V29.4575C23.2282 29.5253 24.5295 29.5253 26.2419 29.5253C27.8172 29.5253 29.1186 29.5253 30.009 29.4575V29.9999Z"
13
+ fill="white"
14
+ />
15
+ <path
16
+ d="M18.7079 40.4406C11.1737 37.3897 6.24219 30.2033 6.24219 22.1355C6.24219 11.2202 15.2148 2.33887 26.2422 2.33887C37.2696 2.33887 46.2422 11.2202 46.2422 22.1355C46.2422 30.2033 41.3107 37.4575 33.7764 40.4406L32.2696 36.9151C38.3655 34.4745 42.3381 28.6439 42.3381 22.0677C42.3381 13.2541 35.0778 6.06768 26.1737 6.06768C17.2696 6.06768 10.0093 13.2541 10.0093 22.0677C10.0093 28.5762 13.9819 34.4067 20.0778 36.9151L18.7079 40.4406Z"
17
+ fill={color}
18
+ />
19
+ </svg>
20
+ </a>
@@ -2,6 +2,8 @@ import { SvelteComponent } from "svelte";
2
2
  import { Color } from './definition';
3
3
  declare const __propDef: {
4
4
  props: {
5
+ href?: string | undefined;
6
+ ariaLabel?: string | undefined;
5
7
  width?: string | undefined;
6
8
  height?: string | undefined;
7
9
  color?: Color | undefined;
@@ -0,0 +1,31 @@
1
+ <script context="module">
2
+ import IconMoreSign from './IconMoreSign.svelte';
3
+
4
+ export const meta = {
5
+ title: 'Iroco-UI/Icons/IconMoreSign',
6
+ type: 'Icons',
7
+ component: IconMoreSign,
8
+ argTypes: {
9
+ width: {
10
+ control: { type: 'range' },
11
+ min: 32,
12
+ max: 512
13
+ },
14
+ height: {
15
+ control: { type: 'range' },
16
+ min: 32,
17
+ max: 512
18
+ }
19
+ }
20
+ };
21
+ </script>
22
+
23
+ <script>
24
+ import { Story, Template } from '@storybook/addon-svelte-csf';
25
+ </script>
26
+
27
+ <Template let:args>
28
+ <IconMoreSign {...args} />
29
+ </Template>
30
+
31
+ <Story name="Default" />
@@ -0,0 +1,50 @@
1
+ export namespace meta {
2
+ export let title: string;
3
+ export let type: string;
4
+ export { IconMoreSign as component };
5
+ export namespace argTypes {
6
+ namespace width {
7
+ namespace control {
8
+ let type_1: string;
9
+ export { type_1 as type };
10
+ }
11
+ let min: number;
12
+ let max: number;
13
+ }
14
+ namespace height {
15
+ export namespace control_1 {
16
+ let type_2: string;
17
+ export { type_2 as type };
18
+ }
19
+ export { control_1 as control };
20
+ let min_1: number;
21
+ export { min_1 as min };
22
+ let max_1: number;
23
+ export { max_1 as max };
24
+ }
25
+ }
26
+ }
27
+ /** @typedef {typeof __propDef.props} IconMoreSignProps */
28
+ /** @typedef {typeof __propDef.events} IconMoreSignEvents */
29
+ /** @typedef {typeof __propDef.slots} IconMoreSignSlots */
30
+ export default class IconMoreSign extends SvelteComponent<{
31
+ [x: string]: never;
32
+ }, {
33
+ [evt: string]: CustomEvent<any>;
34
+ }, {}> {
35
+ }
36
+ export type IconMoreSignProps = typeof __propDef.props;
37
+ export type IconMoreSignEvents = typeof __propDef.events;
38
+ export type IconMoreSignSlots = typeof __propDef.slots;
39
+ import IconMoreSign from './IconMoreSign.svelte';
40
+ import { SvelteComponent } from "svelte";
41
+ declare const __propDef: {
42
+ props: {
43
+ [x: string]: never;
44
+ };
45
+ events: {
46
+ [evt: string]: CustomEvent<any>;
47
+ };
48
+ slots: {};
49
+ };
50
+ export {};
@@ -0,0 +1,31 @@
1
+ <script context="module">
2
+ import { IconTrashCan } from './index';
3
+
4
+ export const meta = {
5
+ title: 'Iroco-UI/Icons/IconTrashCan',
6
+ type: 'Icons',
7
+ component: IconTrashCan,
8
+ argTypes: {
9
+ width: {
10
+ control: { type: 'range' },
11
+ min: 32,
12
+ max: 512
13
+ },
14
+ height: {
15
+ control: { type: 'range' },
16
+ min: 32,
17
+ max: 512
18
+ }
19
+ }
20
+ };
21
+ </script>
22
+
23
+ <script>
24
+ import { Story, Template } from '@storybook/addon-svelte-csf';
25
+ </script>
26
+
27
+ <Template let:args>
28
+ <IconTrashCan {...args} />
29
+ </Template>
30
+
31
+ <Story name="Default" />
@@ -0,0 +1,50 @@
1
+ export namespace meta {
2
+ export let title: string;
3
+ export let type: string;
4
+ export { IconTrashCan as component };
5
+ export namespace argTypes {
6
+ namespace width {
7
+ namespace control {
8
+ let type_1: string;
9
+ export { type_1 as type };
10
+ }
11
+ let min: number;
12
+ let max: number;
13
+ }
14
+ namespace height {
15
+ export namespace control_1 {
16
+ let type_2: string;
17
+ export { type_2 as type };
18
+ }
19
+ export { control_1 as control };
20
+ let min_1: number;
21
+ export { min_1 as min };
22
+ let max_1: number;
23
+ export { max_1 as max };
24
+ }
25
+ }
26
+ }
27
+ /** @typedef {typeof __propDef.props} IconTrashCanProps */
28
+ /** @typedef {typeof __propDef.events} IconTrashCanEvents */
29
+ /** @typedef {typeof __propDef.slots} IconTrashCanSlots */
30
+ export default class IconTrashCan extends SvelteComponent<{
31
+ [x: string]: never;
32
+ }, {
33
+ [evt: string]: CustomEvent<any>;
34
+ }, {}> {
35
+ }
36
+ export type IconTrashCanProps = typeof __propDef.props;
37
+ export type IconTrashCanEvents = typeof __propDef.events;
38
+ export type IconTrashCanSlots = typeof __propDef.slots;
39
+ import { IconTrashCan } from './index';
40
+ import { SvelteComponent } from "svelte";
41
+ declare const __propDef: {
42
+ props: {
43
+ [x: string]: never;
44
+ };
45
+ events: {
46
+ [evt: string]: CustomEvent<any>;
47
+ };
48
+ slots: {};
49
+ };
50
+ export {};
@@ -0,0 +1,61 @@
1
+ <script context="module">
2
+ import ImageArticle from './ImageArticle.svelte';
3
+ import accessibilityImageFile from '../stories/assets/accessibility.svg';
4
+ import discordImageFile from '../stories/assets/discord.svg';
5
+ import youtubeImageFile from '../stories/assets/youtube.svg';
6
+ import tutorialsImageFile from '../stories/assets/tutorials.svg';
7
+
8
+ export const meta = {
9
+ title: 'ImageArticle',
10
+ component: ImageArticle,
11
+ argTypes: {
12
+ reversed: {
13
+ control: { type: 'boolean' }
14
+ },
15
+ figureCaption: {
16
+ control: { type: 'text' }
17
+ },
18
+ imgSrc: {
19
+ control: { type: 'select' },
20
+ options: [
21
+ accessibilityImageFile,
22
+ discordImageFile,
23
+ youtubeImageFile,
24
+ tutorialsImageFile,
25
+ tutorialsImageFile]
26
+ },
27
+ buttonList: {}
28
+ },
29
+ args: {
30
+ alt: 'Accessibility alternative text',
31
+ imgSrc: accessibilityImageFile,
32
+ figureCaption: undefined,
33
+ articleTitle: 'Accessibility',
34
+ articleContent: 'Accessibility is incredibly important, yet often overlooked in traditional digital design and development education. Because of this, The A11Y Project strives to be a living example of how to create beautiful, accessible, and inclusive digital experiences.',
35
+ buttonList: [
36
+ { href: '/foo', label: 'Foo' },
37
+ { href: '/bar', label: 'Bar' }
38
+ ],
39
+ reversed: false
40
+ }
41
+ };
42
+ </script>
43
+
44
+ <script>
45
+ import { Story, Template } from '@storybook/addon-svelte-csf';
46
+ </script>
47
+
48
+ <Template let:args>
49
+ <ImageArticle {...args}></ImageArticle>
50
+ </Template>
51
+
52
+ <Story name="Default" />
53
+ <Story name="Reversed" args={{ reversed: true }} />
54
+ <Story name="Figure caption" args={{ figureCaption: "An optional caption for the figure" ,
55
+ buttonList:[
56
+ {
57
+ href:"https://developer.mozilla.org/en-US/docs/Glossary/Accessible_description",
58
+ label:"Learn about accessible description"
59
+ }
60
+ ]
61
+ }} />
@@ -0,0 +1,66 @@
1
+ export namespace meta {
2
+ export let title: string;
3
+ export { ImageArticle as component };
4
+ export namespace argTypes {
5
+ namespace reversed {
6
+ namespace control {
7
+ let type: string;
8
+ }
9
+ }
10
+ namespace figureCaption {
11
+ export namespace control_1 {
12
+ let type_1: string;
13
+ export { type_1 as type };
14
+ }
15
+ export { control_1 as control };
16
+ }
17
+ namespace imgSrc {
18
+ export namespace control_2 {
19
+ let type_2: string;
20
+ export { type_2 as type };
21
+ }
22
+ export { control_2 as control };
23
+ export let options: any[];
24
+ }
25
+ let buttonList: {};
26
+ }
27
+ export namespace args {
28
+ export let alt: string;
29
+ export { accessibilityImageFile as imgSrc };
30
+ let figureCaption_1: undefined;
31
+ export { figureCaption_1 as figureCaption };
32
+ export let articleTitle: string;
33
+ export let articleContent: string;
34
+ let buttonList_1: {
35
+ href: string;
36
+ label: string;
37
+ }[];
38
+ export { buttonList_1 as buttonList };
39
+ let reversed_1: boolean;
40
+ export { reversed_1 as reversed };
41
+ }
42
+ }
43
+ /** @typedef {typeof __propDef.props} ImageArticleProps */
44
+ /** @typedef {typeof __propDef.events} ImageArticleEvents */
45
+ /** @typedef {typeof __propDef.slots} ImageArticleSlots */
46
+ export default class ImageArticle extends SvelteComponent<{
47
+ [x: string]: never;
48
+ }, {
49
+ [evt: string]: CustomEvent<any>;
50
+ }, {}> {
51
+ }
52
+ export type ImageArticleProps = typeof __propDef.props;
53
+ export type ImageArticleEvents = typeof __propDef.events;
54
+ export type ImageArticleSlots = typeof __propDef.slots;
55
+ import ImageArticle from './ImageArticle.svelte';
56
+ import { SvelteComponent } from "svelte";
57
+ declare const __propDef: {
58
+ props: {
59
+ [x: string]: never;
60
+ };
61
+ events: {
62
+ [evt: string]: CustomEvent<any>;
63
+ };
64
+ slots: {};
65
+ };
66
+ export {};