@dataengineeringformachinelearning/viking-ui 1.0.0 → 1.0.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 +25 -5
- package/fesm2022/dataengineeringformachinelearning-viking-ui.mjs +390 -225
- package/fesm2022/dataengineeringformachinelearning-viking-ui.mjs.map +1 -1
- package/package.json +2 -2
- package/src/styles/viking-ui-bundle.scss +2 -1
- package/src/styles/viking-ui.scss +1 -1
- package/types/dataengineeringformachinelearning-viking-ui.d.ts +90 -67
- package/viking.manifest.json +146 -97
package/README.md
CHANGED
|
@@ -8,8 +8,6 @@
|
|
|
8
8
|
- Zero-dependency components (`viking-*` selectors, `--viking-*` tokens)
|
|
9
9
|
- WCAG 2.1 AA focus rings, axe-core tested templates
|
|
10
10
|
|
|
11
|
-
Inspired by [Flux UI](https://fluxui.dev) composability and [Spartan](https://spartan.ng) headless patterns — implemented natively for Angular without Radix/CDK UI deps.
|
|
12
|
-
|
|
13
11
|
## Install
|
|
14
12
|
|
|
15
13
|
```bash
|
|
@@ -21,7 +19,11 @@ Peer dependencies: `@angular/core` ^22, `@angular/common` ^22, `@angular/forms`
|
|
|
21
19
|
## Usage
|
|
22
20
|
|
|
23
21
|
```typescript
|
|
24
|
-
import {
|
|
22
|
+
import {
|
|
23
|
+
VikingButton,
|
|
24
|
+
VikingField,
|
|
25
|
+
VikingInput,
|
|
26
|
+
} from '@dataengineeringformachinelearning/viking-ui';
|
|
25
27
|
```
|
|
26
28
|
|
|
27
29
|
Load static CSS for non-Angular surfaces (marketing, Django templates):
|
|
@@ -39,11 +41,29 @@ npm run build:viking-ui-css
|
|
|
39
41
|
npm run serve:viking-ui-showcase
|
|
40
42
|
```
|
|
41
43
|
|
|
44
|
+
## Version bump
|
|
45
|
+
|
|
46
|
+
Bump `package.json` in this directory before every publish (npm will not overwrite an existing version).
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
cd frontend/projects/viking-ui
|
|
50
|
+
npm version patch --no-git-tag-version # or minor / major
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
| Bump | When |
|
|
54
|
+
| ----- | ---------------------------------------- |
|
|
55
|
+
| patch | Bug fixes, token/CSS tweaks, a11y fixes |
|
|
56
|
+
| minor | New components, additive APIs |
|
|
57
|
+
| major | Breaking input/output or removed exports |
|
|
58
|
+
|
|
42
59
|
## Publish
|
|
43
60
|
|
|
44
61
|
Requires membership in the npm org `dataengineeringformachinelearning` (scope `@dataengineeringformachinelearning`).
|
|
45
62
|
|
|
46
63
|
```bash
|
|
47
|
-
cd frontend
|
|
48
|
-
|
|
64
|
+
cd frontend
|
|
65
|
+
npm run test:viking-ui
|
|
66
|
+
npm run build:viking-ui
|
|
67
|
+
cd dist/viking-ui
|
|
68
|
+
npm publish --access public --otp=YOUR_CODE
|
|
49
69
|
```
|