@indico-data/design-system 2.0.2 → 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.
- package/.commitlintrc.ts +13 -0
- package/.harness/pipeline.yaml +1 -1
- package/.releaserc.json +16 -1
- package/README.md +73 -0
- package/lib/index.css +84 -67
- package/lib/index.d.ts +49 -156
- package/lib/index.esm.css +84 -67
- package/lib/index.esm.js +1 -287
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +0 -291
- package/lib/index.js.map +1 -1
- package/lib/legacy/components/index.d.ts +0 -2
- package/package.json +4 -3
- package/src/components/button/{Button.scss → styles/Button.scss} +5 -69
- package/src/components/button/styles/_variables.scss +89 -0
- package/src/index.ts +0 -5
- package/src/legacy/components/index.ts +0 -2
- package/src/styles/index.scss +1 -1
- package/src/styles/variables/themes/dark.scss +70 -74
- package/src/stylesAndAnimations/colors/constants.ts +60 -60
- package/lib/legacy/components/Wizard/Wizard.d.ts +0 -48
- package/lib/legacy/components/Wizard/Wizard.stories.d.ts +0 -29
- package/lib/legacy/components/Wizard/Wizard.styles.d.ts +0 -4
- package/lib/legacy/components/Wizard/index.d.ts +0 -2
- package/lib/legacy/components/WizardWithSidebar/WizardWithSidebar.d.ts +0 -58
- package/lib/legacy/components/WizardWithSidebar/WizardWithSidebar.stories.d.ts +0 -46
- package/lib/legacy/components/WizardWithSidebar/WizardWithSidebar.styles.d.ts +0 -9
- package/lib/legacy/components/WizardWithSidebar/index.d.ts +0 -2
- package/src/legacy/components/Wizard/Wizard.stories.tsx +0 -180
- package/src/legacy/components/Wizard/Wizard.styles.ts +0 -72
- package/src/legacy/components/Wizard/Wizard.tsx +0 -211
- package/src/legacy/components/Wizard/index.ts +0 -2
- package/src/legacy/components/WizardWithSidebar/WizardWithSidebar.stories.tsx +0 -143
- package/src/legacy/components/WizardWithSidebar/WizardWithSidebar.styles.ts +0 -107
- package/src/legacy/components/WizardWithSidebar/WizardWithSidebar.tsx +0 -278
- package/src/legacy/components/WizardWithSidebar/index.ts +0 -2
package/.commitlintrc.ts
ADDED
|
@@ -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
|
+
};
|
package/.harness/pipeline.yaml
CHANGED
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
|
@@ -21,6 +21,79 @@ Run the below like `yarn <my command>`
|
|
|
21
21
|
"prepare": "husky install"
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
+
## Commit Hygiene
|
|
25
|
+
|
|
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
|
+
|
|
28
|
+
### Title
|
|
29
|
+
|
|
30
|
+
The title should have the following format: `<type>(<optional ticket id>): <short summary>`
|
|
31
|
+
|
|
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).
|
|
35
|
+
|
|
36
|
+
Examples:
|
|
37
|
+
|
|
38
|
+
- `Update: button color adjustment`
|
|
39
|
+
- `New(SNC-222): add dark mode`
|
|
40
|
+
|
|
41
|
+
If your PR title does not follow these commit conventions, merging will be blocked.
|
|
42
|
+
|
|
43
|
+
See below for more information on how commit structure affects releases.
|
|
44
|
+
|
|
45
|
+
## Releasing
|
|
46
|
+
|
|
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.
|
|
48
|
+
|
|
49
|
+
### Automatic Releases
|
|
50
|
+
|
|
51
|
+
Two things primarily determine how a new release is versioned:
|
|
52
|
+
|
|
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)
|
|
55
|
+
|
|
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.
|
|
57
|
+
|
|
58
|
+
- `Fix` or `Update`: Initiate a patch release
|
|
59
|
+
- `New`: Initiate a minor release
|
|
60
|
+
- `Breaking`: Initiate a major release
|
|
61
|
+
|
|
62
|
+
If your PR title does not follow these commit conventions, merging will be blocked.
|
|
63
|
+
|
|
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
|
|
87
|
+
|
|
88
|
+
Do NOT use the `version` attribute of `package.json` to track or initiate releases because:
|
|
89
|
+
|
|
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
|
|
92
|
+
|
|
93
|
+
### Manual Releases
|
|
94
|
+
|
|
95
|
+
Do not manually release Permafrost to npm, as it may cause issues with the Semantic Release pipeline.
|
|
96
|
+
|
|
24
97
|
## Theming Addon Documentation
|
|
25
98
|
|
|
26
99
|
### Addon - Themes
|
package/lib/index.css
CHANGED
|
@@ -96,66 +96,66 @@
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
:root [data-theme=dark] {
|
|
99
|
-
--pf-primary-color: #
|
|
100
|
-
--pf-primary-color-100: #
|
|
101
|
-
--pf-primary-color-200: #
|
|
102
|
-
--pf-primary-color-300: #
|
|
103
|
-
--pf-primary-color-400: #
|
|
104
|
-
--pf-primary-color-500: #
|
|
105
|
-
--pf-primary-color-600: #
|
|
106
|
-
--pf-primary-color-700: #
|
|
107
|
-
--pf-primary-color-800: #
|
|
108
|
-
--pf-primary-color-900: #
|
|
109
|
-
--pf-secondary-color: #
|
|
110
|
-
--pf-secondary-color-100: #
|
|
111
|
-
--pf-secondary-color-200: #
|
|
112
|
-
--pf-secondary-color-300: #
|
|
113
|
-
--pf-secondary-color-400: #
|
|
114
|
-
--pf-secondary-color-500: #
|
|
115
|
-
--pf-secondary-color-600: #
|
|
116
|
-
--pf-secondary-color-700: #
|
|
117
|
-
--pf-secondary-color-800: #
|
|
118
|
-
--pf-secondary-color-900: #
|
|
119
|
-
--pf-gray-color: #
|
|
120
|
-
--pf-gray-color-100: #
|
|
121
|
-
--pf-gray-color-200: #
|
|
122
|
-
--pf-gray-color-300: #
|
|
123
|
-
--pf-gray-color-400: #
|
|
124
|
-
--pf-gray-color-500: #
|
|
125
|
-
--pf-gray-color-600: #
|
|
126
|
-
--pf-gray-color-700: #
|
|
127
|
-
--pf-gray-color-800: #
|
|
128
|
-
--pf-gray-color-900: #
|
|
129
|
-
--pf-green-color: #
|
|
130
|
-
--pf-green-color-100: #
|
|
131
|
-
--pf-green-color-200: #
|
|
132
|
-
--pf-green-color-300: #
|
|
133
|
-
--pf-green-color-400: #
|
|
134
|
-
--pf-green-color-500: #
|
|
135
|
-
--pf-green-color-600: #
|
|
136
|
-
--pf-green-color-700: #
|
|
137
|
-
--pf-green-color-800: #
|
|
138
|
-
--pf-green-color-900: #
|
|
139
|
-
--pf-orange-color: #
|
|
140
|
-
--pf-orange-color-100: #
|
|
141
|
-
--pf-orange-color-200: #
|
|
142
|
-
--pf-orange-color-300: #
|
|
143
|
-
--pf-orange-color-400: #
|
|
144
|
-
--pf-orange-color-500: #
|
|
145
|
-
--pf-orange-color-600: #
|
|
146
|
-
--pf-orange-color-700: #
|
|
147
|
-
--pf-orange-color-800: #
|
|
148
|
-
--pf-orange-color-900: #
|
|
149
|
-
--pf-red-color: #
|
|
150
|
-
--pf-red-color-100: #
|
|
151
|
-
--pf-red-color-200: #
|
|
152
|
-
--pf-red-color-300: #
|
|
153
|
-
--pf-red-color-400: #
|
|
154
|
-
--pf-red-color-500: #
|
|
155
|
-
--pf-red-color-600: #
|
|
156
|
-
--pf-red-color-700: #
|
|
157
|
-
--pf-red-color-800: #
|
|
158
|
-
--pf-red-color-900: #
|
|
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);
|