@indico-data/design-system 2.0.3 → 2.1.2

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/.commitlintrc.ts +13 -0
  2. package/.harness/pipeline.yaml +1 -1
  3. package/.releaserc.json +16 -1
  4. package/README.md +47 -26
  5. package/lib/index.css +84 -67
  6. package/lib/index.d.ts +49 -156
  7. package/lib/index.esm.css +84 -67
  8. package/lib/index.esm.js +1 -287
  9. package/lib/index.esm.js.map +1 -1
  10. package/lib/index.js +0 -291
  11. package/lib/index.js.map +1 -1
  12. package/lib/legacy/components/index.d.ts +0 -2
  13. package/package.json +4 -3
  14. package/src/components/button/{Button.scss → styles/Button.scss} +5 -69
  15. package/src/components/button/styles/_variables.scss +89 -0
  16. package/src/index.ts +0 -5
  17. package/src/legacy/components/index.ts +0 -2
  18. package/src/styles/index.scss +1 -1
  19. package/src/styles/variables/themes/dark.scss +70 -74
  20. package/src/stylesAndAnimations/colors/constants.ts +60 -60
  21. package/lib/legacy/components/Wizard/Wizard.d.ts +0 -48
  22. package/lib/legacy/components/Wizard/Wizard.stories.d.ts +0 -29
  23. package/lib/legacy/components/Wizard/Wizard.styles.d.ts +0 -4
  24. package/lib/legacy/components/Wizard/index.d.ts +0 -2
  25. package/lib/legacy/components/WizardWithSidebar/WizardWithSidebar.d.ts +0 -58
  26. package/lib/legacy/components/WizardWithSidebar/WizardWithSidebar.stories.d.ts +0 -46
  27. package/lib/legacy/components/WizardWithSidebar/WizardWithSidebar.styles.d.ts +0 -9
  28. package/lib/legacy/components/WizardWithSidebar/index.d.ts +0 -2
  29. package/src/legacy/components/Wizard/Wizard.stories.tsx +0 -180
  30. package/src/legacy/components/Wizard/Wizard.styles.ts +0 -72
  31. package/src/legacy/components/Wizard/Wizard.tsx +0 -211
  32. package/src/legacy/components/Wizard/index.ts +0 -2
  33. package/src/legacy/components/WizardWithSidebar/WizardWithSidebar.stories.tsx +0 -143
  34. package/src/legacy/components/WizardWithSidebar/WizardWithSidebar.styles.ts +0 -107
  35. package/src/legacy/components/WizardWithSidebar/WizardWithSidebar.tsx +0 -278
  36. package/src/legacy/components/WizardWithSidebar/index.ts +0 -2
@@ -0,0 +1,13 @@
1
+ export default {
2
+ extends: ['@commitlint/config-conventional'],
3
+ rules: {
4
+ 'type-enum': [
5
+ 2,
6
+ 'always',
7
+ ['Fix', 'Update', 'New', 'Breaking', 'Docs', 'Build', 'Upgrade', 'Chore'],
8
+ ],
9
+ 'type-case': [0],
10
+ 'subject-case': [0],
11
+ 'header-max-length': [2, 'always', 72],
12
+ },
13
+ };
@@ -4,7 +4,7 @@ pipeline:
4
4
  tags: {}
5
5
  template:
6
6
  templateRef: Design_System
7
- versionLabel: 2.0.0
7
+ versionLabel: 3.0.0
8
8
  templateInputs:
9
9
  properties:
10
10
  ci:
package/.releaserc.json CHANGED
@@ -1,3 +1,18 @@
1
1
  {
2
- "branches": ["main"]
2
+ "branches": ["main"],
3
+ "plugins": [
4
+ [
5
+ "@semantic-release/commit-analyzer",
6
+ {
7
+ "preset": "eslint",
8
+ "releaseRules": [
9
+ { "type": "Breaking", "release": "major" },
10
+ { "type": "Fix", "release": "patch" },
11
+ { "type": "Update", "release": "patch" },
12
+ { "type": "New", "release": "minor" }
13
+ ]
14
+ }
15
+ ],
16
+ "@semantic-release/npm"
17
+ ]
3
18
  }
package/README.md CHANGED
@@ -23,55 +23,76 @@ Run the below like `yarn <my command>`
23
23
 
24
24
  ## Commit Hygiene
25
25
 
26
- This repository follows the [Angular Commit Message Format](https://github.com/angular/angular/blob/main/CONTRIBUTING.md#-commit-message-format). This repository uses the PR title and description to configure the contents of the commit message of the squashed commit associated with the PR: In general, a PR should use the following structure:
26
+ This repository follows a slightly modified version of the [ESLint Commit Message Format](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-eslint). This repository uses the PR title to configure the contents of the commit message of the squashed commit associated with the PR: In general, a PR should use the following structure:
27
27
 
28
28
  ### Title
29
29
 
30
- Should have the following format: `<type>(<scope | ticket id>): <short summary>`
30
+ The title should have the following format: `<type>(<optional ticket id>): <short summary>`
31
31
 
32
- - `<type>` should be `fix`, `feat`, `perf` for controlling releases
32
+ The `<type>` should be `Fix`, `Update`, `New`, or `Breaking` for controlling releases.
33
+
34
+ If the PR need not be associated with a new release, choose any other `<type>` from the [ESLint commit convention tags](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-eslint#eslint-convention), such as `Docs` (documentation), `Build` (build process), `Upgrade` (dependency upgrade), or `Chore` (non-user-facing tasks).
33
35
 
34
36
  Examples:
35
37
 
36
- - `fix(SNC-221): cleanup README`
37
- - `feat(SNC-222): add dark mode`
38
- - `perf(SNC-223): improve canvas performance`
38
+ - `Update: button color adjustment`
39
+ - `New(SNC-222): add dark mode`
39
40
 
40
- ### Description
41
+ If your PR title does not follow these commit conventions, merging will be blocked.
41
42
 
42
- Format:
43
+ See below for more information on how commit structure affects releases.
43
44
 
44
- ```
45
- <General Description of PR Changes>
46
- <Empty Line>
47
- <Footer>
48
- ```
45
+ ## Releasing
49
46
 
50
- The footer should start with `BREAKING CHANGE:` to initiate a major release.
47
+ This repository uses [Semantic Release](https://github.com/semantic-release/semantic-release) to control versioning and releases. Semantic Release's prime purpose is to remove developers from the version numbering process, and this repository embraces that philosophy.
51
48
 
52
- Example:
49
+ ### Automatic Releases
53
50
 
54
- ```
55
- This PR includes major changes to the button component.
51
+ Two things primarily determine how a new release is versioned:
56
52
 
57
- BREAKING CHANGE: Replaced button component.
58
- ```
53
+ 1. The commit history leading up to the commit being released (to determine the base version from which to bump)
54
+ 2. The message of the commit being released (to determine the version incrementation amount)
59
55
 
60
- ![Screenshot 2024-05-28 at 3 30 44 PM](https://github.com/IndicoDataSolutions/permafrost/assets/55521630/cfe13ed8-a596-4d5b-bcfa-e5c108d7128f)
56
+ To release a new version as part of a pull request, use a [semantic commit message](https://github.com/semantic-release/semantic-release?tab=readme-ov-file#commit-message-format) (prefixes like `Fix`, `Update`, `New`, or `Breaking`) in the title of your pull request. This repo uses a slightly modified version of the [ESLint conventional changelog](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-eslint) to describe commit conventions.
61
57
 
62
- See below for more information on how commit structure affects releases.
58
+ - `Fix` or `Update`: Initiate a patch release
59
+ - `New`: Initiate a minor release
60
+ - `Breaking`: Initiate a major release
63
61
 
64
- ## Releasing
62
+ If your PR title does not follow these commit conventions, merging will be blocked.
65
63
 
66
- ### Automatic Releases
64
+ Under the hood, [Semantic Release controls the npm release process entirely by way of managed Git tags](https://semantic-release.gitbook.io/semantic-release/support/faq#why-is-the-package.jsons-version-not-updated-in-my-repository). Updating the `package.json` version number is unnecessary and discouraged.
65
+
66
+ ### Releasing a Non-Latest Version
67
+
68
+ To release a patch version on a previous major version:
69
+
70
+ - Checkout a new branch off the old version you'd like to release from: `git checkout -b <branch-name> <tag-name>` (e.g. `git checkout -b ethan/patch-fix v2.0.2`)
71
+ - Commit as normally, using the PR Title conventions outlined above
72
+ - Semantic Release will take care of the versioning
73
+
74
+ ### Tracking Releases
75
+
76
+ If you want to view the latest version of the Design System, you have a few options:
77
+
78
+ - From this repository, run `yarn latest-release`
79
+ - From outside this repository, run `npm dist-tags ls @indico-data/design-system`
80
+
81
+ If you want to see all releases:
82
+
83
+ - From this repository, run `yarn all-releases`
84
+ - From outside this repository, run `npm view @indico-data/design-system versions`
85
+ - View the git tags at https://github.com/IndicoDataSolutions/permafrost for specific information about each release
86
+ - Consult the npm registry at https://www.npmjs.com/package/@indico-data/design-system
67
87
 
68
- This repository uses [Semantic Release](https://github.com/semantic-release/semantic-release) to control versioning and releases. To release a new version as part of a pull request, use a [semantic commit message](https://github.com/semantic-release/semantic-release?tab=readme-ov-file#commit-message-format) (prefixes like `fix` `feat`, `perf`, or `BREAKING CHANGE` in the footer) in the title and description of your pull request.
88
+ Do NOT use the `version` attribute of `package.json` to track or initiate releases because:
69
89
 
70
- You also need not update the version number in `package.json`, since [Semantic Release controls the npm release process entirely by way of managed Git tags](https://semantic-release.gitbook.io/semantic-release/support/faq#why-is-the-package.jsons-version-not-updated-in-my-repository).
90
+ - Semantic Release does not rely on this attribute to trigger releases: https://semantic-release.gitbook.io/semantic-release/support/faq
91
+ - Adding an additional commit to update the version number adds complexity to the CI process and clutters commit history
71
92
 
72
93
  ### Manual Releases
73
94
 
74
- Do not manually release Permafrost, as it may cause issues with the Semantic Release pipeline.
95
+ Do not manually release Permafrost to npm, as it may cause issues with the Semantic Release pipeline.
75
96
 
76
97
  ## Theming Addon Documentation
77
98
 
package/lib/index.css CHANGED
@@ -96,66 +96,66 @@
96
96
  }
97
97
 
98
98
  :root [data-theme=dark] {
99
- --pf-primary-color: #27374D;
100
- --pf-primary-color-100: #E2E4E8;
101
- --pf-primary-color-200: #B6BAC1;
102
- --pf-primary-color-300: #898F9A;
103
- --pf-primary-color-400: #5D6573;
104
- --pf-primary-color-500: #27374D;
105
- --pf-primary-color-600: #202C3A;
106
- --pf-primary-color-700: #192228;
107
- --pf-primary-color-800: #131816;
108
- --pf-primary-color-900: #0D0E0E;
109
- --pf-secondary-color: #526D82;
110
- --pf-secondary-color-100: #E6E9EB;
111
- --pf-secondary-color-200: #C0C7CD;
112
- --pf-secondary-color-300: #99A5AF;
113
- --pf-secondary-color-400: #738491;
114
- --pf-secondary-color-500: #526D82;
115
- --pf-secondary-color-600: #3F5866;
116
- --pf-secondary-color-700: #2C434A;
117
- --pf-secondary-color-800: #1A2E2E;
118
- --pf-secondary-color-900: #071919;
119
- --pf-gray-color: #DDE6ED;
120
- --pf-gray-color-100: #F7F9FA;
121
- --pf-gray-color-200: #EAF2F5;
122
- --pf-gray-color-300: #DDE6ED;
123
- --pf-gray-color-400: #D1DAE5;
124
- --pf-gray-color-500: #C4CFDD;
125
- --pf-gray-color-600: #B7C3D5;
126
- --pf-gray-color-700: #AAB8CD;
127
- --pf-gray-color-800: #9DACB5;
128
- --pf-gray-color-900: #90A19D;
129
- --pf-green-color: #82DD55;
130
- --pf-green-color-100: #F0FFF2;
131
- --pf-green-color-200: #E1FFD5;
132
- --pf-green-color-300: #D2FFB8;
133
- --pf-green-color-400: #C3FF9B;
134
- --pf-green-color-500: #82DD55;
135
- --pf-green-color-600: #6FC94A;
136
- --pf-green-color-700: #5CB53F;
137
- --pf-green-color-800: #4AA134;
138
- --pf-green-color-900: #388D29;
139
- --pf-orange-color: #EDB95E;
140
- --pf-orange-color-100: #FFF7E6;
141
- --pf-orange-color-200: #FFEDCC;
142
- --pf-orange-color-300: #FFE4B2;
143
- --pf-orange-color-400: #FFDA99;
144
- --pf-orange-color-500: #EDB95E;
145
- --pf-orange-color-600: #DAA54D;
146
- --pf-orange-color-700: #C7913D;
147
- --pf-orange-color-800: #B47D2D;
148
- --pf-orange-color-900: #A1691D;
149
- --pf-red-color: #E23636;
150
- --pf-red-color-100: #FDECEC;
151
- --pf-red-color-200: #FBD1D1;
152
- --pf-red-color-300: #F9B6B6;
153
- --pf-red-color-400: #F79B9B;
154
- --pf-red-color-500: #E23636;
155
- --pf-red-color-600: #C72F2F;
156
- --pf-red-color-700: #AC2828;
157
- --pf-red-color-800: #912121;
158
- --pf-red-color-900: #761A1A;
99
+ --pf-primary-color: #262c3a;
100
+ --pf-primary-color-100: #8194c0;
101
+ --pf-primary-color-200: #5b6b8f;
102
+ --pf-primary-color-300: #3b455e;
103
+ --pf-primary-color-400: #323a4d;
104
+ --pf-primary-color-500: #262c3a;
105
+ --pf-primary-color-600: #1f2431;
106
+ --pf-primary-color-700: #1c2632;
107
+ --pf-primary-color-800: #1b202c;
108
+ --pf-primary-color-900: #141b24;
109
+ --pf-secondary-color: #0070f5;
110
+ --pf-secondary-color-100: #dceafd;
111
+ --pf-secondary-color-200: #b3d4fc;
112
+ --pf-secondary-color-300: #7ab5fa;
113
+ --pf-secondary-color-400: #4797f5;
114
+ --pf-secondary-color-500: #0070f5;
115
+ --pf-secondary-color-600: #0067e1;
116
+ --pf-secondary-color-700: #005ac4;
117
+ --pf-secondary-color-800: #004eac;
118
+ --pf-secondary-color-900: #004393;
119
+ --pf-gray-color: #bfc1c3;
120
+ --pf-gray-color-100: #efefef;
121
+ --pf-gray-color-200: #eaeaea;
122
+ --pf-gray-color-300: #dcdcdc;
123
+ --pf-gray-color-400: #d2d2d2;
124
+ --pf-gray-color-500: #bfc1c3;
125
+ --pf-gray-color-600: #a0a0a0;
126
+ --pf-gray-color-700: #828588;
127
+ --pf-gray-color-800: #797979;
128
+ --pf-gray-color-900: #585858;
129
+ --pf-green-color: #199d19;
130
+ --pf-green-color-100: #98ff98;
131
+ --pf-green-color-200: #76ff76;
132
+ --pf-green-color-300: #63eb63;
133
+ --pf-green-color-400: #41ca41;
134
+ --pf-green-color-500: #199d19;
135
+ --pf-green-color-600: #168116;
136
+ --pf-green-color-700: #106710;
137
+ --pf-green-color-800: #0d5a0d;
138
+ --pf-green-color-900: #0a500a;
139
+ --pf-orange-color: #da9534;
140
+ --pf-orange-color-100: #ffd599;
141
+ --pf-orange-color-200: #ffc676;
142
+ --pf-orange-color-300: #f7b75b;
143
+ --pf-orange-color-400: #f1ab48;
144
+ --pf-orange-color-500: #da9534;
145
+ --pf-orange-color-600: #c7892f;
146
+ --pf-orange-color-700: #a87428;
147
+ --pf-orange-color-800: #825b22;
148
+ --pf-orange-color-900: #68481a;
149
+ --pf-red-color: #f44d4f;
150
+ --pf-red-color-100: #ffa9aa;
151
+ --pf-red-color-200: #ff8a8b;
152
+ --pf-red-color-300: #ff7577;
153
+ --pf-red-color-400: #ff6466;
154
+ --pf-red-color-500: #f44d4f;
155
+ --pf-red-color-600: #cf4244;
156
+ --pf-red-color-700: #b4393a;
157
+ --pf-red-color-800: #9a3132;
158
+ --pf-red-color-900: #752324;
159
159
  --pf-error-color: var(--pf-red-color);
160
160
  --pf-success-color: var(--pf-green-color);
161
161
  --pf-warning-color: var(--pf-orange-color);
@@ -286,8 +286,9 @@
286
286
  padding-bottom: 10px;
287
287
  }
288
288
 
289
+ :root,
289
290
  :root [data-theme=light],
290
- :root {
291
+ :root [data-theme=dark] {
291
292
  --pf-button-font-weight-bold: var(--pf-font-weight-bold);
292
293
  --pf-button-font-weight-regular: var(--pf-button-font-weight-regular);
293
294
  --pf-button-background-primary-color: var(--pf-primary-color);
@@ -312,32 +313,44 @@
312
313
  --pf-button-error-text-color: var(--pf-white-color);
313
314
  --pf-button-outline-hover-error-color: var(--pf-red-color-100);
314
315
  --pf-button-background-success-color: var(--pf-success-color);
315
- --pf-button-disabled-success-color: var(--pf-green-color-300);
316
316
  --pf-button-focus-success-color: var(--pf-green-color-900);
317
317
  --pf-button-hover-success-color: var(--pf-green-color-400);
318
318
  --pf-button-success-color: var(--pf-success-color);
319
319
  --pf-button-success-text-color: var(--pf-white-color);
320
320
  --pf-button-outline-hover-success-color: var(--pf-green-color-100);
321
321
  --pf-button-background-warning-color: var(--pf-warning-color);
322
- --pf-button-disabled-warning-color: var(--pf-orange-color-300);
323
322
  --pf-button-focus-warning-color: var(--pf-orange-color-900);
324
323
  --pf-button-hover-warning-color: var(--pf-orange-color-400);
325
324
  --pf-button-warning-color: var(--pf-warning-color);
326
325
  --pf-button-warning-text-color: var(--pf-white-color);
327
- --pf-button-outline-hover-warning-color: var(--pf-orange-color-100);
328
- --pf-button-background-info-color: var(--pf-info-color);
329
326
  --pf-button-disabled-info-color: var(--pf-gray-color-300);
330
327
  --pf-button-focus-info-color: var(--pf-gray-color-900);
331
- --pf-button-hover-info-color: var(--pf-gray-color-400);
332
328
  --pf-button-info-color: var(--pf-info-color);
333
329
  --pf-button-info-text-color: var(--pf-white-color);
334
- --pf-button-outline-hover-info-color: var(--pf-gray-color-100);
335
330
  --pf-button-gray-color: var(--pf-gray-color);
336
331
  --pf-button-gray-disabled-color: var(--pf-gray-color-400);
337
332
  --pf-button-outline-background-color: var(--pf-white-color);
338
333
  --pf-button-rounded: var(--pf-rounded);
339
334
  }
340
335
 
336
+ :root [data-theme=light] {
337
+ --pf-button-disabled-success-color: var(--pf-green-color-300);
338
+ --pf-button-disabled-warning-color: var(--pf-orange-color-300);
339
+ --pf-button-outline-hover-warning-color: var(--pf-orange-color-100);
340
+ --pf-button-background-info-color: var(--pf-info-color);
341
+ --pf-button-hover-info-color: var(--pf-gray-color-400);
342
+ --pf-button-outline-hover-info-color: var(--pf-gray-color-100);
343
+ }
344
+
345
+ :root [data-theme=dark] {
346
+ --pf-button-disabled-success-color: var(--pf-green-color-400);
347
+ --pf-button-disabled-warning-color: var(--pf-orange-color-400);
348
+ --pf-button-outline-hover-warning-color: var(--pf-orange-color-300);
349
+ --pf-button-background-info-color: var(--pf-gray-color-800);
350
+ --pf-button-hover-info-color: var(--pf-gray-color-600);
351
+ --pf-button-outline-hover-info-color: var(--pf-gray-color-300);
352
+ }
353
+
341
354
  .btn {
342
355
  display: inline-flex;
343
356
  padding: var(--pf-padding-0) var(--pf-padding-3);
@@ -699,6 +712,10 @@
699
712
  color: var(--pf-button-gray-disabled-color);
700
713
  }
701
714
 
715
+ .btn--info {
716
+ background-color: var(--pf-button-background-info-color);
717
+ }
718
+
702
719
  .btn--info.btn--text {
703
720
  background: transparent;
704
721
  color: var(--pf-button-info-color);