@ilo-org/react 0.0.1 → 0.0.3

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 (41) hide show
  1. package/.storybook/styles.scss +1 -1
  2. package/.turbo/turbo-build.log +74 -64
  3. package/.turbo/turbo-check.log +2 -2
  4. package/.turbo/turbo-test.log +14 -14
  5. package/CHANGELOG.md +18 -0
  6. package/package.json +3 -3
  7. package/src/components/Button/Button.args.ts +128 -0
  8. package/src/components/Button/Button.tsx +2 -2
  9. package/src/components/Callout/Callout.args.ts +4 -4
  10. package/src/stories/Button.stories.tsx +253 -390
  11. package/src/stories/Callout.stories.tsx +28 -0
  12. package/src/stories/ContextMenu.stories.tsx +10 -2
  13. package/src/stories/Hero.stories.tsx +49 -0
  14. package/src/stories/Loading.stories.tsx +0 -10
  15. package/src/stories/Notification.stories.tsx +14 -1
  16. package/src/stories/TableOfContents.stories.tsx +3 -3
  17. package/src/stories/Tag.stories.tsx +21 -0
  18. package/storybook-static/a46b8d4aa3504103cdde.ttf +0 -0
  19. package/storybook-static/iframe.html +2 -2
  20. package/storybook-static/main.10a8ad63.iframe.bundle.js +1 -0
  21. package/storybook-static/static/css/main.b43a53aa.css +3 -0
  22. package/storybook-static/static/css/main.b43a53aa.css.map +1 -0
  23. package/storybook-static/12ec02e7e66abaf38243.eot +0 -0
  24. package/storybook-static/1cc3364249fd0db446ad.ttf +0 -0
  25. package/storybook-static/248db78ddf1e3568728d.woff +0 -0
  26. package/storybook-static/2ac1a95228cf06e17040.woff2 +0 -0
  27. package/storybook-static/3579203659b1428de036.eot +0 -0
  28. package/storybook-static/36229f80a738c199462d.woff2 +0 -0
  29. package/storybook-static/51d7da3f5e58e3a24a84.woff +0 -0
  30. package/storybook-static/6f781753b674130d947a.ttf +0 -0
  31. package/storybook-static/70a240717e773fe567b3.woff2 +0 -0
  32. package/storybook-static/88739612501023fa15e3.woff +0 -0
  33. package/storybook-static/a41d7e330757fb4b2125.woff2 +0 -0
  34. package/storybook-static/ab3494afe25b712485ed.woff +0 -0
  35. package/storybook-static/b70a9c0ad8e8b43f5e6c.ttf +0 -0
  36. package/storybook-static/c5116d16544f932eba4b.eot +0 -0
  37. package/storybook-static/e2625b8a1277972c9240.ttf +0 -0
  38. package/storybook-static/f469ea3aa8aacf7ad83a.eot +0 -0
  39. package/storybook-static/main.01e6a863.iframe.bundle.js +0 -1
  40. package/storybook-static/static/css/main.3d116812.css +0 -3
  41. package/storybook-static/static/css/main.3d116812.css.map +0 -1
@@ -143,12 +143,40 @@ export const WarningCallout = WarningCalloutTemplate.bind({});
143
143
 
144
144
  // enumerate the props for the Info Callout
145
145
  InfoCallout.storyName = "Info Callout";
146
+ InfoCallout.parameters = {
147
+ docs: {
148
+ description: {
149
+ story: "The Info Callout is for",
150
+ },
151
+ },
152
+ };
146
153
 
147
154
  // enumerate the props Error Callout
148
155
  ErrorCallout.storyName = "Error Callout";
156
+ ErrorCallout.parameters = {
157
+ docs: {
158
+ description: {
159
+ story: "The Error Callout is for",
160
+ },
161
+ },
162
+ };
149
163
 
150
164
  // enumerate the props Success Callout
151
165
  SuccessCallout.storyName = "Success Callout";
166
+ SuccessCallout.parameters = {
167
+ docs: {
168
+ description: {
169
+ story: "The Success Callout is for",
170
+ },
171
+ },
172
+ };
152
173
 
153
174
  // enumerate the props Warning Callout
154
175
  WarningCallout.storyName = "Warning Callout";
176
+ WarningCallout.parameters = {
177
+ docs: {
178
+ description: {
179
+ story: "The Warning Callout is for",
180
+ },
181
+ },
182
+ };
@@ -36,8 +36,8 @@ export default {
36
36
  <Subtitle />
37
37
  <Title />
38
38
  <Description>
39
- The ContextMenu component is used to display information about a
40
- person.
39
+ The ContextMenu component is used to display a list of contextual
40
+ links.
41
41
  </Description>
42
42
  <Primary />
43
43
  <Subheading>Props</Subheading>
@@ -70,3 +70,11 @@ Basic.storyName = "ContextMenu - Basic";
70
70
 
71
71
  WithSection.args = contextMenuArgs.withsection;
72
72
  WithSection.storyName = "ContextMenu - With A 'Section'";
73
+ WithSection.parameters = {
74
+ docs: {
75
+ description: {
76
+ story:
77
+ "The Context menu iteams can each be marked, via the `endsection` prop, as a *section*, which display a 100% width bottom border.",
78
+ },
79
+ },
80
+ };
@@ -57,6 +57,13 @@ export const HomeHero = HeroTemplate.bind({});
57
57
  // enumerate the props for the hero only option
58
58
  HomeHero.args = heroArgs.homeHero;
59
59
  HomeHero.storyName = "Home Hero";
60
+ HomeHero.parameters = {
61
+ docs: {
62
+ description: {
63
+ story: "The Home Hero...",
64
+ },
65
+ },
66
+ };
60
67
 
61
68
  /**
62
69
  * Article Hero Instance
@@ -67,6 +74,13 @@ export const ArticleHero = HeroTemplate.bind({});
67
74
  // enumerate the props for the hero only option
68
75
  ArticleHero.args = heroArgs.articleHero;
69
76
  ArticleHero.storyName = "Article Hero";
77
+ ArticleHero.parameters = {
78
+ docs: {
79
+ description: {
80
+ story: "The Article Hero...",
81
+ },
82
+ },
83
+ };
70
84
 
71
85
  /**
72
86
  * Article Centered Hero Instance
@@ -77,6 +91,13 @@ export const ArticleCenteredHero = HeroTemplate.bind({});
77
91
  // enumerate the props for the hero only option
78
92
  ArticleCenteredHero.args = heroArgs.articleCenteredHero;
79
93
  ArticleCenteredHero.storyName = "Article Centered Hero";
94
+ ArticleCenteredHero.parameters = {
95
+ docs: {
96
+ description: {
97
+ story: "The Article Centered Hero...",
98
+ },
99
+ },
100
+ };
80
101
 
81
102
  /**
82
103
  * Article No-Image Hero Instance
@@ -87,6 +108,13 @@ export const ArticleNoImageHero = HeroTemplate.bind({});
87
108
  // enumerate the props for the hero only option
88
109
  ArticleNoImageHero.args = heroArgs.articleNoImageHero;
89
110
  ArticleNoImageHero.storyName = "Article No Image Hero";
111
+ ArticleNoImageHero.parameters = {
112
+ docs: {
113
+ description: {
114
+ story: "The Article No Image Hero...",
115
+ },
116
+ },
117
+ };
90
118
 
91
119
  /**
92
120
  * Graphic Hero Instance
@@ -97,6 +125,13 @@ export const GraphicHero = HeroTemplate.bind({});
97
125
  // enumerate the props for the hero only option
98
126
  GraphicHero.args = heroArgs.graphicHero;
99
127
  GraphicHero.storyName = "Graphic Hero";
128
+ GraphicHero.parameters = {
129
+ docs: {
130
+ description: {
131
+ story: "The Graphic Hero...",
132
+ },
133
+ },
134
+ };
100
135
 
101
136
  /**
102
137
  * Portal Hero Instance
@@ -107,6 +142,13 @@ export const PortalHero = HeroTemplate.bind({});
107
142
  // enumerate the props for the hero only option
108
143
  PortalHero.args = heroArgs.portalHero;
109
144
  PortalHero.storyName = "Portal Hero";
145
+ PortalHero.parameters = {
146
+ docs: {
147
+ description: {
148
+ story: "The Portal Hero...",
149
+ },
150
+ },
151
+ };
110
152
 
111
153
  /**
112
154
  * Project Hero Instance
@@ -127,3 +169,10 @@ export const PublicationHero = HeroTemplate.bind({});
127
169
  // enumerate the props for the hero only option
128
170
  PublicationHero.args = heroArgs.publicationHero;
129
171
  PublicationHero.storyName = "Publication Hero";
172
+ PublicationHero.parameters = {
173
+ docs: {
174
+ description: {
175
+ story: "The Publication Hero...",
176
+ },
177
+ },
178
+ };
@@ -73,14 +73,10 @@ export const LoadingLarge = LoadingTemplate.bind({});
73
73
 
74
74
  export const LoadedLarge = LoadingTemplate.bind({});
75
75
 
76
- export const IdleLarge = LoadingTemplate.bind({});
77
-
78
76
  export const LoadingSmall = LoadingTemplate.bind({});
79
77
 
80
78
  export const LoadedSmall = LoadingTemplate.bind({});
81
79
 
82
- export const IdleSmall = LoadingTemplate.bind({});
83
-
84
80
  BaseLoading.args = loadingArgs.loadinglarge;
85
81
  BaseLoading.storyName = "Loading - loading large";
86
82
 
@@ -90,14 +86,8 @@ LoadingLarge.storyName = "Loading - loading large";
90
86
  LoadedLarge.args = loadingArgs.loadedlarge;
91
87
  LoadedLarge.storyName = "Loading - loaded large";
92
88
 
93
- IdleLarge.args = loadingArgs.idlelarge;
94
- IdleLarge.storyName = "Loading - idle large";
95
-
96
89
  LoadingSmall.args = loadingArgs.loadingsmall;
97
90
  LoadingSmall.storyName = "Loading - loading small";
98
91
 
99
92
  LoadedSmall.args = loadingArgs.loadedsmall;
100
93
  LoadedSmall.storyName = "Loading - loaded small";
101
-
102
- IdleSmall.args = loadingArgs.idlesmall;
103
- IdleSmall.storyName = "Loading - idle small";
@@ -22,6 +22,14 @@ By changing the \`type\` prop you can set which icon to use with the Notificatio
22
22
  | \`success\` | The Notification alerts user to an operation's success. Border is green with a success icon. |
23
23
  | \`warning\` | The Notification alerts user to a warning. Border is yellow with a warning icon. |`;
24
24
 
25
+ const placementDoc = `
26
+ By changing the \`placement\` prop you can set whether the Notification is displayed inline in the document flow, or highest in the document z-index as a dialog.
27
+
28
+ | type | Description |
29
+ |----------|-------------|
30
+ | \`dialog\` | The Notification appears highest in the document z-index, outside the doucment flow. |
31
+ | \`inline\` | The Notification appears in the normal document flow. |`;
32
+
25
33
  /**
26
34
  * Notification Story
27
35
  *
@@ -38,12 +46,17 @@ export default {
38
46
  <Subtitle />
39
47
  <Title />
40
48
  <Description>
41
- The Notification component presents a dismissible alert.
49
+ The Notification component presents a dismissible alert. It can
50
+ appear as an inline alert, which appears in the normal flow of the
51
+ document, or it can appear as a dialog, highest in the document's
52
+ z-index.
42
53
  </Description>
43
54
  <Primary />
44
55
  <ArgsTable />
45
56
  <Subheading>type Prop</Subheading>
46
57
  <Description>{typeDoc}</Description>
58
+ <Subheading>placement Prop</Subheading>
59
+ <Description>{placementDoc}</Description>
47
60
  <Stories title="Examples"></Stories>
48
61
  </>
49
62
  ),
@@ -15,7 +15,7 @@ import tableOfContentsArgs from "../components/TableOfContents/TableOfContents.a
15
15
  *
16
16
  */
17
17
  export default {
18
- title: "Components/TableOfContents",
18
+ title: "Components/Table Of Contents",
19
19
  component: TableOfContents,
20
20
  parameters: {
21
21
  componentSubtitle: "Component",
@@ -25,8 +25,8 @@ export default {
25
25
  <Subtitle />
26
26
  <Title />
27
27
  <Description>
28
- The TableOfContents component displays a list of anchor links to aid
29
- users navigating within a page.
28
+ The Table Of Contents component displays a list of anchor links to
29
+ aid users navigating within a page.
30
30
  </Description>
31
31
  <Primary />
32
32
  <Stories title="Examples"></Stories>
@@ -184,11 +184,32 @@ export const ButtonTag = ButtonTagTemplate.bind({});
184
184
  // enumerate the props for the light tag.
185
185
  DisplayTag.args = tagSetArgs.tag;
186
186
  DisplayTag.storyName = "Display Tag";
187
+ DisplayTag.parameters = {
188
+ docs: {
189
+ description: {
190
+ story: "Display Tag...",
191
+ },
192
+ },
193
+ };
187
194
 
188
195
  // enumerate the props for the light tag.
189
196
  AnchorTag.args = tagSetArgs.tag;
190
197
  AnchorTag.storyName = "Anchor Tag";
198
+ AnchorTag.parameters = {
199
+ docs: {
200
+ description: {
201
+ story: "Anchor Tag...",
202
+ },
203
+ },
204
+ };
191
205
 
192
206
  // enumerate the props for the light tag.
193
207
  ButtonTag.args = tagSetArgs.buttonTag;
194
208
  ButtonTag.storyName = "Button Tag";
209
+ ButtonTag.parameters = {
210
+ docs: {
211
+ description: {
212
+ story: "Button Tag...",
213
+ },
214
+ },
215
+ };
@@ -324,7 +324,7 @@
324
324
  /* eslint-enable object-shorthand */
325
325
  })
326
326
  );
327
- };</script><link href="static/css/main.3d116812.css" rel="stylesheet"><style>#root[hidden],
327
+ };</script><link href="static/css/main.b43a53aa.css" rel="stylesheet"><style>#root[hidden],
328
328
  #docs-root[hidden] {
329
329
  display: none !important;
330
330
  }</style></head><body><div class="sb-preparing-story sb-wrapper"><div class="sb-loader"></div></div><div class="sb-preparing-docs sb-wrapper"><div class="sb-previewBlock"><div class="sb-previewBlock_header"><div class="sb-previewBlock_icon"></div><div class="sb-previewBlock_icon"></div><div class="sb-previewBlock_icon"></div><div class="sb-previewBlock_icon"></div></div><div class="sb-previewBlock_body"><div class="sb-loader"></div></div></div><table aria-hidden="true" class="sb-argstableBlock"><thead class="sb-argstableBlock-head"><tr><th><span>Name</span></th><th><span>Description</span></th><th><span>Default</span></th><th><span>Control</span></th></tr></thead><tbody class="sb-argstableBlock-body"><tr><td><span>propertyName</span><span title="Required">*</span></td><td><div><span>This is a short description</span></div><div class="sb-argstableBlock-summary"><div><span class="sb-argstableBlock-code">summary</span></div></div></td><td><div><span class="sb-argstableBlock-code">defaultValue</span></div></td><td><button>Set string</button></td></tr><tr><td><span>propertyName</span><span>*</span></td><td><div><span>This is a short description</span></div><div class="sb-argstableBlock-summary"><div><span class="sb-argstableBlock-code">summary</span></div></div></td><td><div><span class="sb-argstableBlock-code">defaultValue</span></div></td><td><button>Set string</button></td></tr><tr><td><span>propertyName</span><span>*</span></td><td><div><span>This is a short description</span></div><div class="sb-argstableBlock-summary"><div><span class="sb-argstableBlock-code">summary</span></div></div></td><td><div><span class="sb-argstableBlock-code">defaultValue</span></div></td><td><button>Set string</button></td></tr></tbody></table></div><div class="sb-nopreview sb-wrapper"><div class="sb-nopreview_main"><h1 class="sb-nopreview_heading sb-heading">No Preview</h1><p>Sorry, but you either have no stories or none are selected somehow.</p><ul><li>Please check the Storybook config.</li><li>Try reloading the page.</li></ul><p>If the problem persists, check the browser console, or the terminal you've run Storybook from.</p></div></div><div class="sb-errordisplay sb-wrapper"><pre id="error-message" class="sb-heading"></pre><pre class="sb-errordisplay_code"><code id="error-stack"></code></pre></div><div id="root"></div><div id="docs-root"></div><script>window['CONFIG_TYPE'] = "PRODUCTION";
@@ -345,4 +345,4 @@
345
345
 
346
346
 
347
347
 
348
- window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"**/*.stories.mdx","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.mdx)$"},{"titlePrefix":"","directory":"./src","files":"**/*.stories.@(js|jsx|ts|tsx)","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.(js|jsx|ts|tsx))$"}];</script><script src="runtime~main.f3168ed5.iframe.bundle.js"></script><script src="29.8e0bc9a8.iframe.bundle.js"></script><script src="main.01e6a863.iframe.bundle.js"></script></body></html>
348
+ window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"**/*.stories.mdx","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.mdx)$"},{"titlePrefix":"","directory":"./src","files":"**/*.stories.@(js|jsx|ts|tsx)","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.(js|jsx|ts|tsx))$"}];</script><script src="runtime~main.f3168ed5.iframe.bundle.js"></script><script src="29.8e0bc9a8.iframe.bundle.js"></script><script src="main.10a8ad63.iframe.bundle.js"></script></body></html>