@ilo-org/react 0.0.13 → 0.0.15

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 (36) hide show
  1. package/.storybook/manager-head.html +1 -6
  2. package/.storybook/preview.tsx +7 -0
  3. package/.turbo/turbo-build.log +90 -74
  4. package/.turbo/turbo-check.log +1 -1
  5. package/.turbo/turbo-test.log +13 -835
  6. package/CHANGELOG.md +41 -0
  7. package/README.md +183 -5
  8. package/package.json +7 -7
  9. package/src/components/ChoiceGroup/ChoiceGroup.args.ts +2 -1
  10. package/src/components/ChoiceGroup/ChoiceGroup.tsx +15 -3
  11. package/src/components/Fieldset/Fieldset.tsx +1 -1
  12. package/src/components/Radio/Radio.props.d.ts +5 -0
  13. package/src/components/Radio/Radio.tsx +3 -6
  14. package/src/components/SearchField/SearchField.tsx +7 -8
  15. package/src/components/Video/VideoPlayer.tsx +11 -2
  16. package/src/stories/Introduction.stories.mdx +252 -6
  17. package/src/stories/Welcome.stories.mdx +63 -0
  18. package/storybook-static/212.faba6ad0.iframe.bundle.js +7 -0
  19. package/storybook-static/{804.292f3e06.iframe.bundle.js.LICENSE.txt → 212.faba6ad0.iframe.bundle.js.LICENSE.txt} +0 -0
  20. package/storybook-static/212.faba6ad0.iframe.bundle.js.map +1 -0
  21. package/storybook-static/iframe.html +2 -2
  22. package/storybook-static/index.html +1 -1
  23. package/storybook-static/main.7bfb35c8.iframe.bundle.js +1 -0
  24. package/storybook-static/project.json +1 -1
  25. package/storybook-static/static/css/main.acddc31a.css +3 -0
  26. package/storybook-static/static/css/main.acddc31a.css.map +1 -0
  27. package/src/public/favicon.ico +0 -0
  28. package/src/public/index.html +0 -43
  29. package/src/public/logo192.png +0 -0
  30. package/src/public/logo512.png +0 -0
  31. package/src/public/manifest.json +0 -25
  32. package/src/public/robots.txt +0 -3
  33. package/storybook-static/804.292f3e06.iframe.bundle.js +0 -2
  34. package/storybook-static/main.2a251da6.iframe.bundle.js +0 -1
  35. package/storybook-static/static/css/main.0c4ad0ec.css +0 -3
  36. package/storybook-static/static/css/main.0c4ad0ec.css.map +0 -1
@@ -1,12 +1,258 @@
1
- import { Meta } from "@storybook/addon-docs";
1
+ import { Meta, Canvas } from "@storybook/addon-docs/blocks";
2
+ import { Badge } from "@storybook/components";
3
+ import { getStorybook, storiesOf } from "@storybook/react";
4
+ import LinkTo from "@storybook/addon-links/react";
2
5
 
3
6
  <Meta title="Introduction" />
4
7
 
5
- # ILO Design System
8
+ <div style={{ paddingTop: "40px", color: "inherit" }}>
9
+ <h2
10
+ style={{
11
+ fontFamily: "Overpass",
12
+ fontSize: "56.95px",
13
+ fontWeight: "700",
14
+ marginBottom: "40px",
15
+ border: "none",
16
+ }}
17
+ >
18
+ ILO Design System
19
+ </h2>
20
+ <h3
21
+ style={{
22
+ fontFamily: "Overpass",
23
+ fontSize: "45.56px",
24
+ fontWeight: "700",
25
+ marginBottom: "40px",
26
+ }}
27
+ >
28
+ Getting Started
29
+ </h3>
30
+ </div>
6
31
 
7
- <br />
32
+ This package provides the implementation of the Design System using [React](https://reactjs.org). It also includes a [Storybook](https://storybook.js.org/) project for documentation and development of the components in the system. It has dependencies on the following other @ilo-org packages:
8
33
 
9
- ### Current Project Status: _Proof of Concept_
34
+ - [@ilo-org/themes](./packages/themes)
35
+ - [@ilo-org/fonts](./packages/fonts)
36
+ - [@ilo-org/styles](./packages/styles)
37
+ - [@ilo-org/utils](./packages/utils)
38
+ - [@ilo-org/icons](./packages/icons)
39
+ - [@ilo-org/icons-react](./packages/icons-react)
10
40
 
11
- Browse example stories now by navigating to them in the sidebar.
12
- View their code in the `src/stories` directory to learn how they work.
41
+ <h4
42
+ style={{
43
+ fontFamily: "Overpass",
44
+ fontSize: "29px",
45
+ fontWeight: "700",
46
+ marginBottom: "40px",
47
+ marginTop: "40px",
48
+ }}
49
+ >
50
+ Installation and PNPM Commands
51
+ </h4>
52
+
53
+ To install
54
+
55
+ ```bash
56
+ npm i @ilo-org/react
57
+ ```
58
+
59
+ To start storybook
60
+
61
+ ```bash
62
+ pnpm storybook
63
+ ```
64
+
65
+ To build storybook
66
+
67
+ ```bash
68
+ pnpm build:storybook
69
+ ```
70
+
71
+ To test formatting
72
+
73
+ ```bash
74
+ pnpm format
75
+ ```
76
+
77
+ To test formatting and fix errors
78
+
79
+ ```bash
80
+ pnpm format:fix
81
+ ```
82
+
83
+ To lint
84
+
85
+ ```bash
86
+ pnpm lint
87
+ ```
88
+
89
+ To test formatting and fix errors
90
+
91
+ ```bash
92
+ pnpm lint:fix
93
+ ```
94
+
95
+ <h4
96
+ style={{
97
+ fontFamily: "Overpass",
98
+ fontSize: "29px",
99
+ fontWeight: "700",
100
+ marginBottom: "40px",
101
+ marginTop: "40px",
102
+ }}
103
+ >
104
+ Questions and Feedback
105
+ </h4>
106
+
107
+ (TBD)
108
+
109
+ <h4
110
+ style={{
111
+ fontFamily: "Overpass",
112
+ fontSize: "29px",
113
+ fontWeight: "700",
114
+ marginBottom: "40px",
115
+ marginTop: "40px",
116
+ }}
117
+ >
118
+ Accessibility Standards
119
+ </h4>
120
+
121
+ (TBD)
122
+
123
+ <h4
124
+ style={{
125
+ fontFamily: "Overpass",
126
+ fontSize: "29px",
127
+ fontWeight: "700",
128
+ marginBottom: "40px",
129
+ marginTop: "40px",
130
+ }}
131
+ >
132
+ Contributing
133
+ </h4>
134
+
135
+ ILO Design System is an open-source project and we welcome your contributions! Before submitting a pull request, please take a moment to review the following guidelines.
136
+
137
+ ## Branches
138
+
139
+ | Branch | Purpose |
140
+ | --------- | ---------------------------------- |
141
+ | `main` | The latest version of all packages |
142
+ | `develop` | The next release of all packages |
143
+
144
+ ## Contribution workflow
145
+
146
+ 1. Fork and clone the repo
147
+ 2. Create a new branch from the `develop` branch
148
+ 3. Make your changes and [add a changeset](#versioning) identifying the changes and affected packages
149
+ 4. Push your branch to the forked version of the repo
150
+ 5. Open a pull request back to the `develop` branch of the main repo
151
+
152
+ ## Versioning
153
+
154
+ The project uses [changesets](https://github.com/changesets/changesets) to manage package versioning. All pull requests that will affect the project's semantic versioning must include a changest.
155
+
156
+ See more information on [how to add a changeset](https://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md)
157
+
158
+ ## Conventions
159
+
160
+ Contributions should respect the following conventions for branch names, commit messages and pull request descriptions
161
+
162
+ ### Commits
163
+
164
+ Commits should follow [Angular Commit Message Guidelines](https://github.com/angular/angular/blob/22b96b9/CONTRIBUTING.md#commit).
165
+
166
+ ```
167
+ <type>(<scope>): <subject>
168
+ ```
169
+
170
+ Examples:
171
+
172
+ ```
173
+ fix(react): change button color on hover
174
+ feat(twig): add button component
175
+ ci(github): add release workflow
176
+ perf(react): improve modal animations
177
+ ```
178
+
179
+ #### Types
180
+
181
+ - build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
182
+ - ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
183
+ - docs: Documentation only changes
184
+ - feat: A new feature
185
+ - fix: A bug fix
186
+ - perf: A code change that improves performance
187
+ - refactor: A code change that neither fixes a bug nor adds a feature
188
+ - style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
189
+ - test: Adding missing tests or correcting existing tests
190
+
191
+ #### Scopes
192
+
193
+ This should be a package name or an aspect of the project's configuration.
194
+
195
+ ### Branches
196
+
197
+ Branch names should broadly mirror the same convention as commits.
198
+
199
+ Examples:
200
+
201
+ ```
202
+ feat/react/modal-wrapper
203
+ fix/twig/modal-wrapper
204
+ ```
205
+
206
+ ### Pull requests
207
+
208
+ Pull requests should include a descriptive name and detailed explanation of what merging the pull request will accomplish. Authors should make sure to reference Github issues that the the pull request will fix or affect.
209
+
210
+ ## Building the project
211
+
212
+ Use [nvm](https://github.com/nvm-sh/nvm) to make sure you have the correct version of node installed.
213
+
214
+ ```bash
215
+ nvm use
216
+ ```
217
+
218
+ Install [pnpm](https://pnpm.io/).
219
+
220
+ ```bash
221
+ npm i -g pnpm
222
+ ```
223
+
224
+ Install dependencies
225
+
226
+ ```bash
227
+ pnpm recursive install
228
+ ```
229
+
230
+ Build all packages.
231
+
232
+ ```bash
233
+ pnpm build:all
234
+ ```
235
+
236
+ Start React storybook
237
+
238
+ ```bash
239
+ pnpm start:react-storybook
240
+ ```
241
+
242
+ Start Twig storybook
243
+
244
+ ```bash
245
+ pnpm start:twig-storybook
246
+ ```
247
+
248
+ Check types
249
+
250
+ ```bash
251
+ pnpm check:types
252
+ ```
253
+
254
+ Run all tests
255
+
256
+ ```bash
257
+ pnpm test:all
258
+ ```
@@ -0,0 +1,63 @@
1
+ import { Meta } from "@storybook/addon-docs";
2
+
3
+ <Meta title="Welcome" />
4
+
5
+ <div style={{ paddingTop: "40px", color: "inherit" }}>
6
+ <h2
7
+ style={{
8
+ fontFamily: "Overpass",
9
+ fontSize: "56.95px",
10
+ fontWeight: "700",
11
+ marginBottom: "40px",
12
+ border: "none",
13
+ }}
14
+ >
15
+ ILO Design System
16
+ </h2>
17
+ <h3
18
+ style={{
19
+ fontFamily: "Overpass",
20
+ fontSize: "45.56px",
21
+ fontWeight: "700",
22
+ marginBottom: "40px",
23
+ }}
24
+ >
25
+ React Component Library 0.0.12
26
+ </h3>
27
+ <a
28
+ class="ilo--button ilo--button--large ilo--button--primary optionalclass"
29
+ href="/docs/introduction--page"
30
+ target="true"
31
+ rel="noopener noreferrer"
32
+ style={{ color: "inherit", marginRight: "20px" }}
33
+ >
34
+ <span class="link__label">Get started</span>
35
+ </a>
36
+ <a
37
+ class="ilo--button ilo--button--large ilo--button--primary optionalclass"
38
+ href="https://github.com/international-labour-organization/designsystem"
39
+ target="true"
40
+ rel="noopener noreferrer"
41
+ style={{ color: "inherit", marginRight: "20px" }}
42
+ >
43
+ <span class="link__label">Follow on Github</span>
44
+ </a>
45
+ <a
46
+ class="ilo--button ilo--button--large ilo--button--primary optionalclass"
47
+ href="https://brand.ilo.org"
48
+ target="true"
49
+ rel="noopener noreferrer"
50
+ style={{ color: "inherit", marginRight: "20px" }}
51
+ >
52
+ <span class="link__label">See Design Docs</span>
53
+ </a>
54
+ <a
55
+ class="ilo--button ilo--button--large ilo--button--primary optionalclass"
56
+ href="https://ilo-ui-twig.netlify.app"
57
+ target="true"
58
+ rel="noopener noreferrer"
59
+ style={{ color: "inherit", marginRight: "20px" }}
60
+ >
61
+ <span class="link__label">ILO Design System for Twig</span>
62
+ </a>
63
+ </div>