@shortstravelmgmt/component-lib 0.2.12-canary.30.g8074e61 → 0.2.12-rc.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/README.md +7 -54
- package/dist/index.d.ts +187 -929
- package/dist/index.esm.js +330 -606
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +332 -605
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -111,23 +111,17 @@ The library uses CSS custom properties for theming. Override them in your CSS:
|
|
|
111
111
|
|
|
112
112
|
```css
|
|
113
113
|
:root {
|
|
114
|
-
/* Primary colors
|
|
115
|
-
--color-primary: #
|
|
116
|
-
--color-primary-dark: #
|
|
117
|
-
--color-primary-light: #
|
|
118
|
-
|
|
119
|
-
/* Accent — Short's Teal (reserved spark) */
|
|
120
|
-
--color-accent: #00BCD0;
|
|
121
|
-
--color-accent-ink: #009AAB; /* teal ink for eyebrows/stat figures/focus — clears the 3:1 UI bar on the light page, under the 4.5:1 text bar (brand #00BCD0 in dark) */
|
|
114
|
+
/* Primary colors */
|
|
115
|
+
--color-primary: #0A53EF;
|
|
116
|
+
--color-primary-dark: #1A43D1;
|
|
117
|
+
--color-primary-light: #E6ECFB;
|
|
122
118
|
|
|
123
119
|
/* Neutral colors */
|
|
124
120
|
--color-basecolor: #F5F5F5;
|
|
125
121
|
--border-color: #EDEDED;
|
|
126
|
-
|
|
127
|
-
/* Typography
|
|
128
|
-
--font-family-base: '
|
|
129
|
-
--font-family-display: 'Montserrat', system-ui, sans-serif;
|
|
130
|
-
--font-family-label: 'Roboto Condensed', system-ui, sans-serif;
|
|
122
|
+
|
|
123
|
+
/* Typography */
|
|
124
|
+
--font-family-base: 'Roboto Flex', system-ui, sans-serif;
|
|
131
125
|
}
|
|
132
126
|
```
|
|
133
127
|
|
|
@@ -180,51 +174,10 @@ npm run build:lib
|
|
|
180
174
|
npm publish --access public
|
|
181
175
|
```
|
|
182
176
|
|
|
183
|
-
## 🐤 Canary releases
|
|
184
|
-
|
|
185
|
-
Every pull request that targets `staging` publishes a canary build to npm, so
|
|
186
|
-
Hub and Portal can install a branch before it merges. No release, tag, or
|
|
187
|
-
version commit is needed.
|
|
188
|
-
|
|
189
|
-
Canary versions are ordinary `major.minor.patch` versions with a prerelease
|
|
190
|
-
suffix naming the pull request and commit they came from:
|
|
191
|
-
|
|
192
|
-
```
|
|
193
|
-
0.2.10-canary.42.g1a2b3c4
|
|
194
|
-
└─────┘ └────┘ └┘ └─────┘
|
|
195
|
-
release canary PR commit
|
|
196
|
-
```
|
|
197
|
-
|
|
198
|
-
Install one with the exact version — the canary bot comments the command on
|
|
199
|
-
the pull request:
|
|
200
|
-
|
|
201
|
-
```bash
|
|
202
|
-
npm install @shortstravelmgmt/component-lib@0.2.10-canary.42.g1a2b3c4
|
|
203
|
-
```
|
|
204
|
-
|
|
205
|
-
Canaries are published under the `canary` dist-tag and, being prereleases,
|
|
206
|
-
never satisfy a plain `^0.2.9` range. Nothing that installs normally can pick
|
|
207
|
-
one up by accident.
|
|
208
|
-
|
|
209
|
-
### Choosing the bump level
|
|
210
|
-
|
|
211
|
-
Label the pull request to say what the eventual `staging` release should be:
|
|
212
|
-
|
|
213
|
-
| Label | Base `0.2.9` becomes | Use for |
|
|
214
|
-
| --- | --- | --- |
|
|
215
|
-
| `bump:major` | `1.0.0` | Breaking API or prop changes |
|
|
216
|
-
| `bump:minor` | `0.3.0` | New components or props |
|
|
217
|
-
| `bump:patch` *(default)* | `0.2.10` | Fixes and styling changes |
|
|
218
|
-
|
|
219
|
-
Relabelling republishes the canary at the new version. The Storybook sidebar
|
|
220
|
-
shows the version it was built from, so a canary Storybook names the exact
|
|
221
|
-
package to install.
|
|
222
|
-
|
|
223
177
|
## 🔄 CI/CD
|
|
224
178
|
|
|
225
179
|
- **CI Pipeline** - Runs on every push/PR: lint, typecheck, build
|
|
226
180
|
- **Chromatic** - Visual regression testing on every PR
|
|
227
|
-
- **Canary** - Prerelease npm publish on every PR into `staging`
|
|
228
181
|
- **Publish** - Automatic npm publishing on releases
|
|
229
182
|
|
|
230
183
|
## 🤝 Contributing
|