@shortstravelmgmt/component-lib 0.2.11 → 0.2.12-canary.15.geda7028
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 +58 -11
- package/dist/index.d.ts +1181 -104
- package/dist/index.esm.js +1156 -499
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1161 -498
- 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,17 +111,23 @@ 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
|
-
/*
|
|
120
|
-
--color-
|
|
121
|
-
--
|
|
122
|
-
|
|
123
|
-
/*
|
|
124
|
-
--
|
|
114
|
+
/* Primary colors — Short's Blue navy */
|
|
115
|
+
--color-primary: #19345F;
|
|
116
|
+
--color-primary-dark: #0C1E3E;
|
|
117
|
+
--color-primary-light: #E4F1F8;
|
|
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) */
|
|
122
|
+
|
|
123
|
+
/* Neutral colors — cool, navy-tinted (Short's brand paper, not flat gray) */
|
|
124
|
+
--color-basecolor: #F4F7FA;
|
|
125
|
+
--border-color: #E6EDF5;
|
|
126
|
+
|
|
127
|
+
/* Typography — Inter (body/UI) · Montserrat (display) · Roboto Condensed (chrome) */
|
|
128
|
+
--font-family-base: 'Inter', system-ui, sans-serif;
|
|
129
|
+
--font-family-display: 'Montserrat', system-ui, sans-serif;
|
|
130
|
+
--font-family-label: 'Roboto Condensed', system-ui, sans-serif;
|
|
125
131
|
}
|
|
126
132
|
```
|
|
127
133
|
|
|
@@ -174,10 +180,51 @@ npm run build:lib
|
|
|
174
180
|
npm publish --access public
|
|
175
181
|
```
|
|
176
182
|
|
|
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
|
+
|
|
177
223
|
## 🔄 CI/CD
|
|
178
224
|
|
|
179
225
|
- **CI Pipeline** - Runs on every push/PR: lint, typecheck, build
|
|
180
226
|
- **Chromatic** - Visual regression testing on every PR
|
|
227
|
+
- **Canary** - Prerelease npm publish on every PR into `staging`
|
|
181
228
|
- **Publish** - Automatic npm publishing on releases
|
|
182
229
|
|
|
183
230
|
## 🤝 Contributing
|