@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.
Files changed (34) hide show
  1. package/README.md +26 -7
  2. package/dist/.storybook/preview.d.ts.map +1 -1
  3. package/dist/index.js +1670 -1328
  4. package/dist/src/components/Drawer/Drawer.d.ts +1 -1
  5. package/dist/src/components/Drawer/Drawer.d.ts.map +1 -1
  6. package/dist/src/components/Modal/Modal.d.ts +8 -11
  7. package/dist/src/components/Modal/Modal.d.ts.map +1 -1
  8. package/dist/src/components/Modal/index.d.ts +1 -1
  9. package/dist/src/components/Modal/index.d.ts.map +1 -1
  10. package/dist/src/components/Notification/InlineNotification/InlineNotification.d.ts +16 -0
  11. package/dist/src/components/Notification/InlineNotification/InlineNotification.d.ts.map +1 -0
  12. package/dist/src/components/Notification/InlineNotification/index.d.ts +3 -0
  13. package/dist/src/components/Notification/InlineNotification/index.d.ts.map +1 -0
  14. package/dist/src/components/Notification/ToastNotification/ToastNotification.d.ts +23 -0
  15. package/dist/src/components/Notification/ToastNotification/ToastNotification.d.ts.map +1 -0
  16. package/dist/src/components/Notification/ToastNotification/index.d.ts +3 -0
  17. package/dist/src/components/Notification/ToastNotification/index.d.ts.map +1 -0
  18. package/dist/src/components/Notification/TopBanner/TopBanner.d.ts +14 -0
  19. package/dist/src/components/Notification/TopBanner/TopBanner.d.ts.map +1 -0
  20. package/dist/src/components/Notification/TopBanner/index.d.ts +3 -0
  21. package/dist/src/components/Notification/TopBanner/index.d.ts.map +1 -0
  22. package/dist/src/components/Notification/_shared/FeedbackIcon.d.ts +8 -0
  23. package/dist/src/components/Notification/_shared/FeedbackIcon.d.ts.map +1 -0
  24. package/dist/src/icons/InfoFilledIcon.d.ts.map +1 -1
  25. package/dist/src/icons/StarsIcon.d.ts +8 -0
  26. package/dist/src/icons/StarsIcon.d.ts.map +1 -0
  27. package/dist/src/icons/index.d.ts +2 -0
  28. package/dist/src/icons/index.d.ts.map +1 -1
  29. package/dist/src/index.d.ts +7 -1
  30. package/dist/src/index.d.ts.map +1 -1
  31. package/dist/style.css +1 -1
  32. package/dist/themes/theme-gs.css +17 -0
  33. package/dist/themes/theme-sk.css +17 -0
  34. 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 web-app
132
+ ### Local development against a consuming app
133
133
 
134
- To develop the library locally and test changes in the web-app without publishing:
134
+ There are two ways to use the library locally without publishing.
135
135
 
136
- ```bash
137
- npm run dev:copy
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
- This watches for changes, builds on each change, and copies the output directly into the web-app's `node_modules`:
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
- ../web-app/legacy/node_modules/@gostudent/shared-ui-library
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
- Minification is automatically disabled when `COPY_TO` is set (faster rebuilds, readable output for debugging).
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,OAyCd,CAAC;AAEF,eAAe,OAAO,CAAC"}
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"}