@sybilion/uilib 1.0.20 → 1.0.22

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 CHANGED
@@ -4,12 +4,12 @@ React UI components (Stylus modules, Radix primitives, Recharts).
4
4
 
5
5
  > This package does **not** embed app-specific contexts or API clients; the host app passes data and callbacks via props.
6
6
 
7
- ## Install from GitHub
7
+ ## Install from npm (recommended)
8
8
 
9
- Point your package manager at the repository (branch or tag as needed). **Prebuilt ESM** under `dist/esm` is committed to the repo, so consumers **do not** need to run `yarn build` inside `uilib` for the default install path.
9
+ Published as `**@sybilion/uilib`\*\* on the public registry. No scope-specific `.npmrc` required.
10
10
 
11
11
  ```bash
12
- yarn add uilib@github:Mir-Insight/uilib#main
12
+ yarn add @sybilion/uilib
13
13
  ```
14
14
 
15
15
  Equivalent in `package.json`:
@@ -17,23 +17,21 @@ Equivalent in `package.json`:
17
17
  ```json
18
18
  {
19
19
  "dependencies": {
20
- "uilib": "github:Mir-Insight/uilib#main"
20
+ "@sybilion/uilib": "^1.0.20"
21
21
  }
22
22
  }
23
23
  ```
24
24
 
25
- ### GitHub Packages + bare `uilib` imports
25
+ ### Bare `uilib` imports + scoped install
26
26
 
27
- When consuming the published GitHub Packages build (`@Mir-Insight/uilib`) but
28
- keeping existing imports as `from 'uilib'`, add a bundler alias and matching
29
- TypeScript paths in the host app:
27
+ When the package is installed as `**@sybilion/uilib**` but you keep imports as `from 'uilib'`, add a bundler alias and matching TypeScript paths:
30
28
 
31
29
  ```json
32
30
  {
33
31
  "compilerOptions": {
34
32
  "paths": {
35
- "uilib": ["node_modules/@Mir-Insight/uilib"],
36
- "uilib/*": ["node_modules/@Mir-Insight/uilib/*"]
33
+ "uilib": ["../node_modules/@sybilion/uilib"],
34
+ "uilib/*": ["../node_modules/@sybilion/uilib/*"]
37
35
  }
38
36
  }
39
37
  }
@@ -44,54 +42,51 @@ Webpack example:
44
42
  ```js
45
43
  resolve: {
46
44
  alias: {
47
- uilib: path.join(paths.modules, '@Mir-Insight/uilib'),
45
+ uilib: path.join(paths.modules, '@sybilion/uilib'),
48
46
  },
49
47
  }
50
48
  ```
51
49
 
52
- CI installs from GitHub Packages also need npm auth:
53
-
54
- ```text
55
- @Mir-Insight:registry=https://npm.pkg.github.com/
56
- //npm.pkg.github.com/:_authToken=<token with read:packages>
57
- always-auth=true
58
- ```
59
-
60
50
  ### Default: prebuilt (`dist/esm`)
61
51
 
62
- The package [`exports`](./package.json) entry `.` resolves to Rollup output and generated declarations:
52
+ The package `[exports](./package.json)` entry `.` resolves to Rollup output and generated declarations:
63
53
 
64
54
  ```ts
65
- import { Button } from 'uilib';
55
+ import { Button } from '@sybilion/uilib';
56
+
57
+ // or, with alias: import { Button } from 'uilib';
66
58
  ```
67
59
 
68
- Use this when you want **compiled** ESM (CSS modules processed; no Stylus loader required for `uilib`). Ensure your bundler still handles standard JS/CSS imports from `node_modules` as usual.
60
+ Use this when you want **compiled** ESM (CSS modules processed; no Stylus loader required for the library). Ensure your bundler still handles standard JS/CSS imports from `node_modules` as usual.
69
61
 
70
- ### Optional: source (`src`)
62
+ ### Optional: source (`./src` subpath)
71
63
 
72
- To compile `uilib` from **TypeScript + Stylus** in your app (same as older workflows), import from the `./src` subpath:
64
+ To compile from **TypeScript + Stylus** in your app, use the `./src` export:
73
65
 
74
66
  ```ts
75
- import { Button } from 'uilib/src';
67
+ import { Button } from '@sybilion/uilib/src';
76
68
  ```
77
69
 
78
- Deep imports are supported via `uilib/src/...` (maps to files under [`src/`](./src)). Internal `#uilib/...` imports resolve through this package’s [`imports`](./package.json) field when bundling source.
70
+ Deep imports use `@sybilion/uilib/src/...` (maps to files under `[src/](./src)`). Internal `#uilib/...` imports resolve through this package’s `[imports](./package.json)` field when bundling source.
71
+
72
+ ### Workspace mini-apps (Sybilion iframe)
79
73
 
80
- ## Bundling from source (`uilib` / `uilib/src`)
74
+ See `[docs/workspace-mini-apps.md](./docs/workspace-mini-apps.md)`.
81
75
 
82
- If you use **`uilib/src`** (or deep imports under `uilib/src/`), the host app must **compile** those files like application code:
76
+ ## Bundling from source (`uilib/src`)
83
77
 
84
- 1. **Include `uilib` in the TypeScript/JSX pipeline** e.g. extend `babel-loader` / `ts-loader` `include` so it matches `node_modules/uilib` (and not only your app `src`):
78
+ If you use `**uilib/src**` (or deep imports under `uilib/src/`), the host app must **compile** those files like application code:
85
79
 
86
- ```js
87
- include: [paths.src, /node_modules\/uilib/],
88
- ```
80
+ 1. **Include the library in the TypeScript/JSX pipeline** — e.g. extend `babel-loader` / `ts-loader` `include` so it matches the installed package (and not only your app `src`):
89
81
 
90
- 2. **Apply the same Stylus/CSS-module rules** to files under `node_modules/uilib` as you use for your own `.styl` imports.
82
+ ```js
83
+ include: [paths.src, /node_modules\/@sybilion\/uilib/],
84
+ ```
91
85
 
92
- 3. **Do not remap `#uilib`** — internal imports use the subpath pattern `#uilib/...`, resolved via this package’s `package.json` [`imports`](./package.json) field. Keep your app’s own alias (for example `@` → app `src`) as usual; it does not conflict with `#uilib`.
86
+ 2. **Apply the same Stylus/CSS-module rules** to `.styl` under `node_modules/@sybilion/uilib` as you use for your own imports.
87
+ 3. **Do not remap `#uilib`** — internal imports use `#uilib/...`, resolved via this package’s `package.json` `[imports](./package.json)`. Keep your app’s own alias (for example `@` → app `src`) as usual; it does not conflict with `#uilib`.
93
88
 
94
- If you only use the **default** entry (`import from 'uilib'`), you typically **do not** need Stylus/TS compilation for `uilib` in the consumer Webpack config.
89
+ If you only use the **default** entry (`import from '@sybilion/uilib'` or aliased `uilib`), you typically **do not** need Stylus/TS compilation for the library in the consumer Webpack config.
95
90
 
96
91
  ## Peer dependencies
97
92
 
@@ -105,9 +100,17 @@ Install these in the consuming app:
105
100
 
106
101
  Runtime dependencies of this package (Recharts, Radix, `motion`, `vaul`, `@vimeo/player`, etc.) are declared in `package.json` and should be satisfied by the consumer’s install tree.
107
102
 
108
- ## Maintainers: keeping `dist/` in sync
103
+ ## Maintainers
104
+
105
+ **npm:** log in (`npm login`), then from repo root:
106
+
107
+ ```bash
108
+ yarn publish:npm # @sybilion/uilib
109
+ ```
110
+
111
+ runs `yarn build` before `npm publish`.
109
112
 
110
- After changing library **source**, regenerate and commit the prebuilt output:
113
+ **GitHub `github:` consumers:** after changing library **source**, regenerate and commit the prebuilt output:
111
114
 
112
115
  ```bash
113
116
  yarn build
@@ -128,11 +131,14 @@ These areas expect the **app** to supply behavior or data (not vendored from pro
128
131
 
129
132
  ## Scripts (this repo)
130
133
 
131
- | Script | Description |
132
- | ----------------- | --------------------------------------------------- |
133
- | `yarn dev` | Webpack dev server for the docs app |
134
- | `yarn docs:build` | Production build of docs to `build/` |
135
- | `yarn build` | Rollup ESM build to `dist/esm` |
136
- | `yarn build:ship` | Same as `yarn build` (refresh `dist` before commit) |
137
- | `yarn ts` | Typecheck (`tsc --noEmit`) |
138
- | `yarn tests` | Jest smoke tests |
134
+ | Script | Description |
135
+ | --------------------- | ------------------------------------------- |
136
+ | `yarn dev` | Webpack dev server for the docs app |
137
+ | `yarn docs:build` | Production build of docs to `build/` |
138
+ | `yarn build` | Rollup ESM build to `dist/esm` |
139
+ | `yarn build:watch` | Rollup in watch mode |
140
+ | `yarn build:compress` | Rollup build with `COMPRESS=true` |
141
+ | `yarn publish:npm` | `yarn build` then publish `@sybilion/uilib` |
142
+ | `yarn ts` | Typecheck (`tsc --noEmit`) |
143
+ | `yarn tests` | Jest smoke tests |
144
+ | `yarn release` | `standard-version` (bump changelog + tag) |
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><style>.st0{opacity:.3;fill:none;stroke:#fff;stroke-width:3;stroke-miterlimit:10;enable-background:new}.st1{fill:#1d7196}.st2,.st3{opacity:.3;stroke:#fff;stroke-width:3;stroke-miterlimit:10;enable-background:new}.st2{stroke-linejoin:round;fill:none}.st3{fill:#1d7196}</style><path class="st0" d="M20.5 20.7c.2-.2-.1-1.3-.2-1.6 0-.2 0-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2.2.4.4.5.6.1.2.3.4.4.6.1.3-.4.9-.5 1.1-.5.8-1.1 1.6-1.7 2.4-.7 1-1.4 1.9-2.1 2.9-.3.4-.6.9-1 1.2-.1.1-.9.1-1.7 0l-.4-.3z"/></g></svg>
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,63 @@
1
+ @font-face {
2
+ font-family: 'Manrope';
3
+ src: url('../fonts/Manrope-Regular.woff2') format('woff2');
4
+ font-weight: 400;
5
+ font-style: normal;
6
+ font-display: swap;
7
+ }
8
+
9
+ @font-face {
10
+ font-family: 'Manrope';
11
+ src: url('../fonts/Manrope-Medium.woff2') format('woff2');
12
+ font-weight: 500;
13
+ font-style: normal;
14
+ font-display: swap;
15
+ }
16
+
17
+ @font-face {
18
+ font-family: 'Manrope';
19
+ src: url('../fonts/Manrope-Bold.woff2') format('woff2');
20
+ font-weight: 700;
21
+ font-style: normal;
22
+ font-display: swap;
23
+ }
24
+
25
+ @font-face {
26
+ font-family: 'KMR Apparat';
27
+ src: url('../fonts/Apparat-Regular.woff2') format('woff2');
28
+ font-weight: 400;
29
+ font-style: normal;
30
+ font-display: block;
31
+ }
32
+
33
+ @font-face {
34
+ font-family: 'KMR Apparat';
35
+ src: url('../fonts/Apparat-Heavy.woff2') format('woff2');
36
+ font-weight: 700;
37
+ font-style: normal;
38
+ font-display: block;
39
+ }
40
+
41
+ @font-face {
42
+ font-family: 'KMR Apparat';
43
+ src: url('../fonts/Apparat-Medium.woff2') format('woff2');
44
+ font-weight: 500;
45
+ font-style: normal;
46
+ font-display: block;
47
+ }
48
+
49
+ @font-face {
50
+ font-family: 'KMR Apparat';
51
+ src: url('../fonts/Apparat-Light.woff2') format('woff2');
52
+ font-weight: 300;
53
+ font-style: normal;
54
+ font-display: block;
55
+ }
56
+
57
+ @font-face {
58
+ font-family: 'KMR Apparat';
59
+ src: url('../fonts/Apparat-Black.woff2') format('woff2');
60
+ font-weight: 100;
61
+ font-style: normal;
62
+ font-display: block;
63
+ }