@gostudent/shared-ui-library 1.10.0 → 1.11.0
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 +26 -7
- package/dist/.storybook/preview.d.ts.map +1 -1
- package/dist/index.js +1670 -1328
- package/dist/src/components/Drawer/Drawer.d.ts +1 -1
- package/dist/src/components/Drawer/Drawer.d.ts.map +1 -1
- package/dist/src/components/Modal/Modal.d.ts +8 -11
- package/dist/src/components/Modal/Modal.d.ts.map +1 -1
- package/dist/src/components/Modal/index.d.ts +1 -1
- package/dist/src/components/Modal/index.d.ts.map +1 -1
- package/dist/src/components/Notification/InlineNotification/InlineNotification.d.ts +16 -0
- package/dist/src/components/Notification/InlineNotification/InlineNotification.d.ts.map +1 -0
- package/dist/src/components/Notification/InlineNotification/index.d.ts +3 -0
- package/dist/src/components/Notification/InlineNotification/index.d.ts.map +1 -0
- package/dist/src/components/Notification/ToastNotification/ToastNotification.d.ts +23 -0
- package/dist/src/components/Notification/ToastNotification/ToastNotification.d.ts.map +1 -0
- package/dist/src/components/Notification/ToastNotification/index.d.ts +3 -0
- package/dist/src/components/Notification/ToastNotification/index.d.ts.map +1 -0
- package/dist/src/components/Notification/TopBanner/TopBanner.d.ts +14 -0
- package/dist/src/components/Notification/TopBanner/TopBanner.d.ts.map +1 -0
- package/dist/src/components/Notification/TopBanner/index.d.ts +3 -0
- package/dist/src/components/Notification/TopBanner/index.d.ts.map +1 -0
- package/dist/src/components/Notification/_shared/FeedbackIcon.d.ts +8 -0
- package/dist/src/components/Notification/_shared/FeedbackIcon.d.ts.map +1 -0
- package/dist/src/icons/InfoFilledIcon.d.ts.map +1 -1
- package/dist/src/icons/StarsIcon.d.ts +8 -0
- package/dist/src/icons/StarsIcon.d.ts.map +1 -0
- package/dist/src/icons/index.d.ts +2 -0
- package/dist/src/icons/index.d.ts.map +1 -1
- package/dist/src/index.d.ts +7 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/themes/theme-gs.css +17 -0
- package/dist/themes/theme-sk.css +17 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -129,21 +129,40 @@ npm run build # Build tokens + TypeScript + Vite
|
|
|
129
129
|
npm run build-storybook # Build Storybook static site
|
|
130
130
|
```
|
|
131
131
|
|
|
132
|
-
### Local development against
|
|
132
|
+
### Local development against a consuming app
|
|
133
133
|
|
|
134
|
-
|
|
134
|
+
There are two ways to use the library locally without publishing.
|
|
135
135
|
|
|
136
|
-
|
|
137
|
-
|
|
136
|
+
#### Option 1 — `file:` dependency (recommended for Vite/React apps)
|
|
137
|
+
|
|
138
|
+
In the consuming app's `package.json`:
|
|
139
|
+
|
|
140
|
+
```json
|
|
141
|
+
"@gostudent/shared-ui-library": "file:../shared-ui-library"
|
|
138
142
|
```
|
|
139
143
|
|
|
140
|
-
|
|
144
|
+
Then install and build:
|
|
145
|
+
|
|
146
|
+
```bash
|
|
147
|
+
# in shared-ui-library
|
|
148
|
+
npm run build # or: npm run build -- --watch for continuous rebuild
|
|
141
149
|
|
|
150
|
+
# in consuming app
|
|
151
|
+
npm install # links node_modules entry to the source directory
|
|
142
152
|
```
|
|
143
|
-
|
|
153
|
+
|
|
154
|
+
With `--watch`, every rebuild is immediately visible in the consuming app without any extra copy step.
|
|
155
|
+
|
|
156
|
+
#### Option 2 — `dev:copy` watch scripts (for webpack/legacy apps)
|
|
157
|
+
|
|
158
|
+
```bash
|
|
159
|
+
npm run dev:copy # copies to ../web-app/legacy/node_modules/...
|
|
160
|
+
npm run dev:copy:student-app # copies to ../student-app/node_modules/...
|
|
144
161
|
```
|
|
145
162
|
|
|
146
|
-
|
|
163
|
+
This watches for changes, builds on each change, and copies the output directly into the consuming app's `node_modules`. Minification is automatically disabled (faster rebuilds, readable output).
|
|
164
|
+
|
|
165
|
+
> **Note:** `dev:copy` skips automatically if the destination resolves to the source directory (e.g. when a `file:` dependency is already in place) and logs a message instead of crashing.
|
|
147
166
|
|
|
148
167
|
**Web-app requirements:**
|
|
149
168
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../.storybook/preview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,4BAA4B,CAAC;AACpC,OAAO,4BAA4B,CAAC;AAEpC,QAAA,MAAM,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../.storybook/preview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,4BAA4B,CAAC;AACpC,OAAO,4BAA4B,CAAC;AAEpC,QAAA,MAAM,OAAO,EAAE,OA2Cd,CAAC;AAEF,eAAe,OAAO,CAAC"}
|