@iroco/ui 1.0.0-2 → 1.0.0-4

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 (54) hide show
  1. package/dist/Alert.stories.svelte +31 -0
  2. package/dist/Alert.stories.svelte.d.ts +37 -0
  3. package/dist/Alert.svelte +60 -7
  4. package/dist/Button.stories.svelte +5 -7
  5. package/dist/Button.stories.svelte.d.ts +6 -3
  6. package/dist/Button.svelte +70 -15
  7. package/dist/DataTable.stories.svelte +33 -0
  8. package/dist/DataTable.stories.svelte.d.ts +29 -0
  9. package/dist/DataTable.svelte +55 -2
  10. package/dist/IconBurger.stories.svelte +32 -0
  11. package/dist/IconBurger.stories.svelte.d.ts +48 -0
  12. package/dist/IconClose.stories.svelte +32 -0
  13. package/dist/IconClose.stories.svelte.d.ts +48 -0
  14. package/dist/IconFloppyDisk.stories.svelte +36 -0
  15. package/dist/IconFloppyDisk.stories.svelte.d.ts +55 -0
  16. package/dist/IconInfo.stories.svelte +34 -0
  17. package/dist/IconInfo.stories.svelte.d.ts +50 -0
  18. package/dist/IconIrocoLogo.stories.svelte +37 -0
  19. package/dist/IconIrocoLogo.stories.svelte.d.ts +57 -0
  20. package/dist/IconMoreSign.stories.svelte +34 -0
  21. package/dist/IconMoreSign.stories.svelte.d.ts +50 -0
  22. package/dist/IconTrashCan.stories.svelte +34 -0
  23. package/dist/IconTrashCan.stories.svelte.d.ts +50 -0
  24. package/dist/IrocoLogo.stories.svelte +37 -0
  25. package/dist/IrocoLogo.stories.svelte.d.ts +50 -0
  26. package/dist/Loader.stories.svelte +23 -0
  27. package/dist/Loader.stories.svelte.d.ts +29 -0
  28. package/dist/NavBar.stories.svelte +38 -0
  29. package/dist/NavBar.stories.svelte.d.ts +37 -0
  30. package/dist/NavBar.svelte +132 -24
  31. package/dist/Navigation.stories.svelte +8 -10
  32. package/dist/Navigation.stories.svelte.d.ts +0 -4
  33. package/dist/Navigation.svelte +57 -4
  34. package/dist/NumberInput.stories.svelte +50 -0
  35. package/dist/NumberInput.stories.svelte.d.ts +77 -0
  36. package/dist/NumberInput.svelte +60 -7
  37. package/dist/RadioButton.stories.svelte +53 -0
  38. package/dist/RadioButton.stories.svelte.d.ts +56 -0
  39. package/dist/RadioButton.svelte +57 -5
  40. package/dist/RadioButton.svelte.d.ts +0 -2
  41. package/dist/TextInput.stories.svelte +75 -0
  42. package/dist/TextInput.stories.svelte.d.ts +111 -0
  43. package/dist/TextInput.svelte +61 -8
  44. package/dist/scss/button.scss +24 -14
  45. package/dist/scss/colors.scss +82 -0
  46. package/dist/scss/fields/_input.scss +11 -15
  47. package/dist/scss/forms.scss +7 -7
  48. package/package.json +3 -2
  49. package/dist/NumberInputSized.svelte +0 -4
  50. package/dist/NumberInputSized.svelte.d.ts +0 -14
  51. package/dist/TopBar.svelte +0 -0
  52. package/dist/TopBar.svelte.d.ts +0 -23
  53. package/dist/scss/check.scss +0 -47
  54. package/dist/scss/iroco.scss +0 -36
@@ -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,34 @@
1
+ <script context="module">
2
+
3
+
4
+ import { IconInfo } from './index';
5
+
6
+ export const meta = {
7
+ title: 'Iroco-UI/Icons/IconInfo',
8
+ type: 'Icons',
9
+ component: IconInfo,
10
+ argTypes: {
11
+ width: {
12
+ control: { type: 'range' },
13
+ min: 32,
14
+ max: 512
15
+ },
16
+ height: {
17
+ control: { type: 'range' },
18
+ min: 32,
19
+ max: 512
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
+ <IconInfo {...args}>
31
+ </IconInfo>
32
+ </Template>
33
+
34
+ <Story name="Default"></Story>
@@ -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,37 @@
1
+ <script context="module">
2
+
3
+
4
+ import { IconIrocoLogo } from './index';
5
+
6
+ export const meta = {
7
+ title: 'Iroco-UI/Iroco/IconIrocoLogo',
8
+ type: 'Icons',
9
+ component: IconIrocoLogo,
10
+ argTypes: {
11
+ width: {
12
+ control: { type: 'range' },
13
+ min: 32,
14
+ max: 512
15
+ },
16
+ height: {
17
+ control: { type: 'range' },
18
+ min: 32,
19
+ max: 512
20
+ },
21
+ color: {
22
+ control: { type: 'color' }
23
+ }
24
+ }
25
+ };
26
+ </script>
27
+
28
+ <script>
29
+ import { Story, Template } from '@storybook/addon-svelte-csf';
30
+ </script>
31
+
32
+ <Template let:args>
33
+ <IconIrocoLogo {...args}>
34
+ </IconIrocoLogo>
35
+ </Template>
36
+
37
+ <Story name="Default"></Story>
@@ -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 {};
@@ -0,0 +1,34 @@
1
+ <script context="module">
2
+
3
+
4
+ import IconMoreSign from './IconMoreSign.svelte';
5
+
6
+ export const meta = {
7
+ title: 'Iroco-UI/Icons/IconMoreSign',
8
+ type: 'Icons',
9
+ component: IconMoreSign,
10
+ argTypes: {
11
+ width: {
12
+ control: { type: 'range' },
13
+ min: 32,
14
+ max: 512
15
+ },
16
+ height: {
17
+ control: { type: 'range' },
18
+ min: 32,
19
+ max: 512
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
+ <IconMoreSign {...args}>
31
+ </IconMoreSign>
32
+ </Template>
33
+
34
+ <Story name="Default"></Story>
@@ -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,34 @@
1
+ <script context="module">
2
+
3
+
4
+ import { IconTrashCan } from './index';
5
+
6
+ export const meta = {
7
+ title: 'Iroco-UI/Icons/IconTrashCan',
8
+ type: 'Icons',
9
+ component: IconTrashCan,
10
+ argTypes: {
11
+ width: {
12
+ control: { type: 'range' },
13
+ min: 32,
14
+ max: 512
15
+ },
16
+ height: {
17
+ control: { type: 'range' },
18
+ min: 32,
19
+ max: 512
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
+ <IconTrashCan {...args}>
31
+ </IconTrashCan>
32
+ </Template>
33
+
34
+ <Story name="Default"></Story>
@@ -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,37 @@
1
+ <script context="module">
2
+
3
+
4
+ import { IrocoLogo } from './index';
5
+
6
+ export const meta = {
7
+ title: 'Iroco-UI/Iroco/IrocoLogo',
8
+ type: 'Icons',
9
+ component: IrocoLogo,
10
+ argTypes: {
11
+ width: {
12
+
13
+ control: { type: 'range' },
14
+ min: 32,
15
+ max: 512
16
+ },
17
+ height: {
18
+ control: { type: 'range' },
19
+ min: 32,
20
+ max: 512
21
+ }
22
+ }
23
+
24
+
25
+ };
26
+ </script>
27
+
28
+ <script>
29
+ import { Story, Template } from '@storybook/addon-svelte-csf';
30
+ </script>
31
+
32
+ <Template let:args>
33
+ <IrocoLogo {...args}>
34
+ </IrocoLogo>
35
+ </Template>
36
+
37
+ <Story name="Default"></Story>
@@ -0,0 +1,50 @@
1
+ export namespace meta {
2
+ export let title: string;
3
+ export let type: string;
4
+ export { IrocoLogo 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} IrocoLogoProps */
28
+ /** @typedef {typeof __propDef.events} IrocoLogoEvents */
29
+ /** @typedef {typeof __propDef.slots} IrocoLogoSlots */
30
+ export default class IrocoLogo extends SvelteComponent<{
31
+ [x: string]: never;
32
+ }, {
33
+ [evt: string]: CustomEvent<any>;
34
+ }, {}> {
35
+ }
36
+ export type IrocoLogoProps = typeof __propDef.props;
37
+ export type IrocoLogoEvents = typeof __propDef.events;
38
+ export type IrocoLogoSlots = typeof __propDef.slots;
39
+ import { IrocoLogo } 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,23 @@
1
+ <script context="module">
2
+ import { Loader } from './index';
3
+
4
+ export const meta = {
5
+ title: 'Iroco-UI/Atoms/Loader',
6
+ component: Loader,
7
+ argTypes: {
8
+
9
+ }
10
+ };
11
+ </script>
12
+
13
+ <script>
14
+ import { Story, Template } from '@storybook/addon-svelte-csf';
15
+
16
+ </script>
17
+
18
+ <Template let:args>
19
+ <Loader {...args}>
20
+ </Loader>
21
+ </Template>
22
+
23
+ <Story name="Default"></Story>
@@ -0,0 +1,29 @@
1
+ export namespace meta {
2
+ export let title: string;
3
+ export { Loader as component };
4
+ export let argTypes: {};
5
+ }
6
+ /** @typedef {typeof __propDef.props} LoaderProps */
7
+ /** @typedef {typeof __propDef.events} LoaderEvents */
8
+ /** @typedef {typeof __propDef.slots} LoaderSlots */
9
+ export default class Loader extends SvelteComponent<{
10
+ [x: string]: never;
11
+ }, {
12
+ [evt: string]: CustomEvent<any>;
13
+ }, {}> {
14
+ }
15
+ export type LoaderProps = typeof __propDef.props;
16
+ export type LoaderEvents = typeof __propDef.events;
17
+ export type LoaderSlots = typeof __propDef.slots;
18
+ import { Loader } from './index';
19
+ import { SvelteComponent } from "svelte";
20
+ declare const __propDef: {
21
+ props: {
22
+ [x: string]: never;
23
+ };
24
+ events: {
25
+ [evt: string]: CustomEvent<any>;
26
+ };
27
+ slots: {};
28
+ };
29
+ export {};
@@ -0,0 +1,38 @@
1
+ <script context="module">
2
+ import { NavigationItem, NavigationItemType } from './definition';
3
+ import { NavBar } from './index';
4
+
5
+ export const meta = {
6
+ title: 'NavBar',
7
+ component: NavBar,
8
+ argTypes: {
9
+ type: {
10
+ control: { type: 'select' },
11
+ options: ['sidebar', 'topbar']
12
+ },
13
+
14
+ }
15
+ };
16
+ </script>
17
+
18
+ <script>
19
+ import { Story, Template } from '@storybook/addon-svelte-csf';
20
+ </script>
21
+
22
+ <Template let:args>
23
+ <NavBar {...args}
24
+ navigationItems={[
25
+ new NavigationItem('About', `/about`),
26
+ new NavigationItem('Foo', `/foo`),
27
+ new NavigationItem('Bar', `/bar`),
28
+ new NavigationItem('Button', `/bar`, NavigationItemType.BUTTON),
29
+ new NavigationItem('Anchor', `/bar`, NavigationItemType.ANCHOR),
30
+ new NavigationItem('Form', `/bar`, NavigationItemType.FORM)
31
+ ]}>
32
+
33
+ </NavBar>
34
+ </Template>
35
+
36
+ <Story name="Default" />
37
+ <Story name="Sidebar" args={{ type: 'sidebar' }} />
38
+ <Story name="Title" args={{ title: 'Alternative title' }}></Story>
@@ -0,0 +1,37 @@
1
+ export namespace meta {
2
+ export let title: string;
3
+ export { NavBar as component };
4
+ export namespace argTypes {
5
+ namespace type {
6
+ namespace control {
7
+ let type_1: string;
8
+ export { type_1 as type };
9
+ }
10
+ let options: string[];
11
+ }
12
+ }
13
+ }
14
+ /** @typedef {typeof __propDef.props} NavBarProps */
15
+ /** @typedef {typeof __propDef.events} NavBarEvents */
16
+ /** @typedef {typeof __propDef.slots} NavBarSlots */
17
+ export default class NavBar extends SvelteComponent<{
18
+ [x: string]: never;
19
+ }, {
20
+ [evt: string]: CustomEvent<any>;
21
+ }, {}> {
22
+ }
23
+ export type NavBarProps = typeof __propDef.props;
24
+ export type NavBarEvents = typeof __propDef.events;
25
+ export type NavBarSlots = typeof __propDef.slots;
26
+ import { NavBar } from './index';
27
+ import { SvelteComponent } from "svelte";
28
+ declare const __propDef: {
29
+ props: {
30
+ [x: string]: never;
31
+ };
32
+ events: {
33
+ [evt: string]: CustomEvent<any>;
34
+ };
35
+ slots: {};
36
+ };
37
+ export {};