@cincoders/cinnamon 0.3.0 → 0.4.0

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 (49) hide show
  1. package/dist/cinnamon.esm.js +97 -97
  2. package/dist/cinnamon.min.js +96 -96
  3. package/dist/cinnamon.ssr.js +96 -96
  4. package/dist/components/HamburgerButton/index.d.ts +7 -7
  5. package/dist/components/HamburgerButton/styles.d.ts +6 -6
  6. package/dist/components/SearchDropdown/index.d.ts +7 -7
  7. package/dist/components/SearchDropdown/styles.d.ts +6 -6
  8. package/dist/components/SideMenu/index.d.ts +9 -8
  9. package/dist/components/SideMenu/styles.d.ts +9 -6
  10. package/dist/components/SystemsPopup/index.d.ts +6 -8
  11. package/dist/components/SystemsPopup/styles.d.ts +5 -5
  12. package/dist/components/Toast/index.d.ts +9 -9
  13. package/dist/components/Toast/style.d.ts +3 -3
  14. package/dist/components/UserPopup/index.d.ts +10 -12
  15. package/dist/components/UserPopup/styles.d.ts +13 -13
  16. package/dist/index.d.ts +15 -15
  17. package/dist/interfaces/index.d.ts +39 -38
  18. package/dist/lib-components/Dialog/index.d.ts +13 -13
  19. package/dist/lib-components/Dialog/styles.d.ts +4 -4
  20. package/dist/lib-components/ErrorScreen/index.d.ts +11 -11
  21. package/dist/lib-components/ErrorScreen/style.d.ts +6 -6
  22. package/dist/lib-components/Footer/index.d.ts +15 -14
  23. package/dist/lib-components/Footer/styles.d.ts +13 -13
  24. package/dist/lib-components/ForbiddenPage/index.d.ts +6 -7
  25. package/dist/lib-components/ForbiddenPage/styles.d.ts +5 -5
  26. package/dist/lib-components/IconRender/index.d.ts +7 -7
  27. package/dist/lib-components/ImageInput/index.d.ts +9 -10
  28. package/dist/lib-components/ImageInput/styles.d.ts +4 -4
  29. package/dist/lib-components/Navbar/index.d.ts +24 -24
  30. package/dist/lib-components/Navbar/styles.d.ts +15 -15
  31. package/dist/lib-components/Page/index.d.ts +19 -19
  32. package/dist/lib-components/Page/styles.d.ts +2 -2
  33. package/dist/lib-components/Page/useNavbar.d.ts +30 -30
  34. package/dist/lib-components/PageWithAuth/index.d.ts +12 -12
  35. package/dist/lib-components/RequireAuth/index.d.ts +10 -10
  36. package/dist/stories/Dialog.stories.d.ts +8 -8
  37. package/dist/stories/Footer.stories.d.ts +181 -165
  38. package/dist/stories/ForbiddenPage.stories.d.ts +8 -0
  39. package/dist/stories/ImageInput.stories.d.ts +5 -0
  40. package/dist/stories/Navbar.stories.d.ts +154 -154
  41. package/dist/stories/Page.stories.d.ts +30 -30
  42. package/dist/stories/SideMenu.stories.d.ts +8 -8
  43. package/dist/stories/SystemsPopup.stories.d.ts +8 -0
  44. package/dist/stories/UserPopup.stories.d.ts +8 -0
  45. package/dist/stories/sampledata/SampleData.d.ts +6 -6
  46. package/dist/stories/utils/argTypes.d.ts +286 -271
  47. package/dist/utils/index.d.ts +1 -1
  48. package/dist/utils/keycloakUtils.d.ts +2 -2
  49. package/package.json +12 -15
@@ -1,154 +1,154 @@
1
- import './storiesGlobals.css';
2
- import { SideMenuLink, System, User } from '@/interfaces';
3
- import { JSXElementConstructor } from 'react';
4
- declare const _default: {
5
- title: string;
6
- parameters: {
7
- docs: {
8
- page: null;
9
- };
10
- };
11
- argTypes: {
12
- isLandingPage: {
13
- name: string;
14
- type: {
15
- name: string;
16
- required: boolean;
17
- };
18
- description: string;
19
- options: boolean[];
20
- control: {
21
- type: string;
22
- };
23
- table: {
24
- category: string;
25
- };
26
- };
27
- haveSearchBar: {
28
- name: string;
29
- type: {
30
- name: string;
31
- required: boolean;
32
- };
33
- description: string;
34
- options: boolean[];
35
- control: {
36
- type: string;
37
- };
38
- table: {
39
- category: string;
40
- };
41
- };
42
- hiddenUser: {
43
- name: string;
44
- type: {
45
- name: string;
46
- required: boolean;
47
- };
48
- description: string;
49
- options: boolean[];
50
- control: {
51
- type: string;
52
- };
53
- table: {
54
- category: string;
55
- };
56
- };
57
- user: {
58
- name: string;
59
- control: string;
60
- description: string;
61
- table: {
62
- category: string;
63
- };
64
- if: {
65
- arg: string;
66
- eq: boolean;
67
- table: {
68
- disable: boolean;
69
- };
70
- };
71
- };
72
- h1: {
73
- name: string;
74
- type: {
75
- name: string;
76
- required: boolean;
77
- };
78
- description: string;
79
- options: boolean[];
80
- control: {
81
- type: string;
82
- };
83
- table: {
84
- category: string;
85
- };
86
- };
87
- title: {
88
- name: string;
89
- type: {
90
- name: string;
91
- required: boolean;
92
- };
93
- description: string;
94
- control: {
95
- type: string;
96
- };
97
- table: {
98
- category: string;
99
- };
100
- };
101
- sideMenuLinks: {
102
- name: string;
103
- control: string;
104
- description: string;
105
- table: {
106
- category: string;
107
- };
108
- };
109
- systemsList: {
110
- name: string;
111
- control: string;
112
- description: string;
113
- table: {
114
- category: string;
115
- };
116
- };
117
- systemsListPopup: {
118
- name: string;
119
- type: {
120
- name: string;
121
- required: boolean;
122
- };
123
- options: boolean[];
124
- control: {
125
- type: string;
126
- };
127
- description: string;
128
- table: {
129
- category: string;
130
- };
131
- };
132
- iconComponent: {
133
- name: string;
134
- description: string;
135
- table: {
136
- category: string;
137
- };
138
- };
139
- };
140
- };
141
- export default _default;
142
- export interface NavbarStoryProps {
143
- isLandingPage: boolean;
144
- haveSearchBar: boolean;
145
- hiddenUser: boolean;
146
- user: User;
147
- h1: boolean;
148
- sideMenuLinks: SideMenuLink[];
149
- systemsListPopup: boolean;
150
- title: string;
151
- systemsList: System[];
152
- iconComponent: JSXElementConstructor<any>;
153
- }
154
- export declare const Navbar_: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, NavbarStoryProps>;
1
+ import './storiesGlobals.css';
2
+ import { SideMenuLink, System, User } from '@/interfaces';
3
+ import { JSXElementConstructor } from 'react';
4
+ declare const _default: {
5
+ title: string;
6
+ parameters: {
7
+ docs: {
8
+ page: null;
9
+ };
10
+ };
11
+ argTypes: {
12
+ isLandingPage: {
13
+ name: string;
14
+ type: {
15
+ name: string;
16
+ required: boolean;
17
+ };
18
+ description: string;
19
+ options: boolean[];
20
+ control: {
21
+ type: string;
22
+ };
23
+ table: {
24
+ category: string;
25
+ };
26
+ };
27
+ haveSearchBar: {
28
+ name: string;
29
+ type: {
30
+ name: string;
31
+ required: boolean;
32
+ };
33
+ description: string;
34
+ options: boolean[];
35
+ control: {
36
+ type: string;
37
+ };
38
+ table: {
39
+ category: string;
40
+ };
41
+ };
42
+ hiddenUser: {
43
+ name: string;
44
+ type: {
45
+ name: string;
46
+ required: boolean;
47
+ };
48
+ description: string;
49
+ options: boolean[];
50
+ control: {
51
+ type: string;
52
+ };
53
+ table: {
54
+ category: string;
55
+ };
56
+ };
57
+ user: {
58
+ name: string;
59
+ control: string;
60
+ description: string;
61
+ table: {
62
+ category: string;
63
+ };
64
+ if: {
65
+ arg: string;
66
+ eq: boolean;
67
+ table: {
68
+ disable: boolean;
69
+ };
70
+ };
71
+ };
72
+ h1: {
73
+ name: string;
74
+ type: {
75
+ name: string;
76
+ required: boolean;
77
+ };
78
+ description: string;
79
+ options: boolean[];
80
+ control: {
81
+ type: string;
82
+ };
83
+ table: {
84
+ category: string;
85
+ };
86
+ };
87
+ title: {
88
+ name: string;
89
+ type: {
90
+ name: string;
91
+ required: boolean;
92
+ };
93
+ description: string;
94
+ control: {
95
+ type: string;
96
+ };
97
+ table: {
98
+ category: string;
99
+ };
100
+ };
101
+ sideMenuLinks: {
102
+ name: string;
103
+ control: string;
104
+ description: string;
105
+ table: {
106
+ category: string;
107
+ };
108
+ };
109
+ systemsList: {
110
+ name: string;
111
+ control: string;
112
+ description: string;
113
+ table: {
114
+ category: string;
115
+ };
116
+ };
117
+ systemsListPopup: {
118
+ name: string;
119
+ type: {
120
+ name: string;
121
+ required: boolean;
122
+ };
123
+ options: boolean[];
124
+ control: {
125
+ type: string;
126
+ };
127
+ description: string;
128
+ table: {
129
+ category: string;
130
+ };
131
+ };
132
+ iconComponent: {
133
+ name: string;
134
+ description: string;
135
+ table: {
136
+ category: string;
137
+ };
138
+ };
139
+ };
140
+ };
141
+ export default _default;
142
+ export interface NavbarStoryProps {
143
+ isLandingPage: boolean;
144
+ haveSearchBar: boolean;
145
+ hiddenUser: boolean;
146
+ user: User;
147
+ h1: boolean;
148
+ sideMenuLinks: SideMenuLink[];
149
+ systemsListPopup: boolean;
150
+ title: string;
151
+ systemsList: System[];
152
+ iconComponent: JSXElementConstructor<any>;
153
+ }
154
+ export declare const Navbar_: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, NavbarStoryProps>;
@@ -1,30 +1,30 @@
1
- import './storiesGlobals.css';
2
- import { SideMenuLink, System, User } from '@/interfaces';
3
- import { JSXElementConstructor } from 'react';
4
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
5
- export default _default;
6
- interface StoryPageProps {
7
- isLandingPage: boolean;
8
- haveSearchBar: boolean;
9
- hiddenUser: boolean;
10
- user: User;
11
- h1: boolean;
12
- sideMenuLinks: SideMenuLink[];
13
- systemsListPopup: boolean;
14
- systemsList: System[];
15
- IconComponent: JSXElementConstructor<any>;
16
- title: string;
17
- footerTitle: string;
18
- footerTelephone: string;
19
- footerTelephoneComplement: string;
20
- footerEmail: string;
21
- footerLink: string;
22
- footerTextLink: string;
23
- footerDescription: string;
24
- footerCopyrightText: string;
25
- width: string;
26
- height: string;
27
- color: string;
28
- centralized: boolean;
29
- }
30
- export declare const Page_: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryPageProps>;
1
+ import './storiesGlobals.css';
2
+ import { SideMenuLink, System, User } from '@/interfaces';
3
+ import { JSXElementConstructor } from 'react';
4
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
5
+ export default _default;
6
+ interface StoryPageProps {
7
+ isLandingPage: boolean;
8
+ haveSearchBar: boolean;
9
+ hiddenUser: boolean;
10
+ user: User;
11
+ h1: boolean;
12
+ sideMenuLinks: SideMenuLink[];
13
+ systemsListPopup: boolean;
14
+ systemsList: System[];
15
+ IconComponent: JSXElementConstructor<any>;
16
+ title: string;
17
+ footerTitle: string;
18
+ footerTelephone: string;
19
+ footerTelephoneComplement: string;
20
+ footerEmail: string;
21
+ footerLink: string;
22
+ footerTextLink: string;
23
+ footerDescription: string;
24
+ footerCopyrightText: string;
25
+ width: string;
26
+ height: string;
27
+ color: string;
28
+ centralized: boolean;
29
+ }
30
+ export declare const Page_: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryPageProps>;
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
2
- import { SideMenu } from '../components/SideMenu';
3
- declare const _default: {
4
- title: string;
5
- component: typeof SideMenu;
6
- };
7
- export default _default;
8
- export declare const Default: () => JSX.Element;
1
+ import { SideMenuLink } from '../interfaces';
2
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
3
+ export default _default;
4
+ interface SideMenuStoryProps {
5
+ links: SideMenuLink[];
6
+ top: string;
7
+ }
8
+ export declare const SideMenu_: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, SideMenuStoryProps>;
@@ -0,0 +1,8 @@
1
+ import './storiesGlobals.css';
2
+ import { System } from '..';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
4
+ export default _default;
5
+ interface SystemsPopupProps {
6
+ systemsList: System[];
7
+ }
8
+ export declare const SystemsList: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, SystemsPopupProps>;
@@ -0,0 +1,8 @@
1
+ import './storiesGlobals.css';
2
+ import { User } from '../interfaces/index';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
4
+ export default _default;
5
+ interface UserPopupStory {
6
+ user?: User;
7
+ }
8
+ export declare const UserPopup_: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, UserPopupStory>;
@@ -1,6 +1,6 @@
1
- import { SideMenuLink, System, User } from '@/interfaces';
2
- export declare const testLinks: SideMenuLink[];
3
- export declare const testUser: User;
4
- export declare const testSystems: System[];
5
- export declare function searchFunction(searchString: string): void;
6
- export declare const testInputLabels: string[];
1
+ import { SideMenuLink, System, User } from '@/interfaces';
2
+ export declare const testLinks: SideMenuLink[];
3
+ export declare const testUser: User;
4
+ export declare const testSystems: System[];
5
+ export declare function searchFunction(searchString: string): void;
6
+ export declare const testInputLabels: string[];