@sarastya-technology/xos-erp-component 0.0.0-stage → 0.0.1
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 +35 -2
- package/dist/index.js +3240 -0
- package/dist/styles.css +1 -0
- package/package.json +36 -4
package/README.md
CHANGED
|
@@ -1,3 +1,36 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @sarastya/erp-ui
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Shared ERP UI component library. This project will own reusable UI components, styles, Storybook, and usage documentation for ERP modules.
|
|
4
|
+
|
|
5
|
+
## Project structure
|
|
6
|
+
|
|
7
|
+
```txt
|
|
8
|
+
src/
|
|
9
|
+
components/ reusable UI components
|
|
10
|
+
styles/ tokens and shared styles
|
|
11
|
+
index.js public package exports
|
|
12
|
+
.storybook/ component catalog and documentation
|
|
13
|
+
docs/ Markdown exports from Storybook docs
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Local setup
|
|
17
|
+
|
|
18
|
+
After this folder is connected to its repository, install dependencies:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npm install
|
|
22
|
+
npm run storybook
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
The package is intentionally private until the internal npm registry and publishing workflow are ready.
|
|
26
|
+
|
|
27
|
+
## Current migration: Common List
|
|
28
|
+
|
|
29
|
+
The Common List component family has been migrated, including the List stylesheet, Storybook Catalog, Overview, pagination hook, date utility, and optional search-history hook.
|
|
30
|
+
|
|
31
|
+
Consumers must provide:
|
|
32
|
+
|
|
33
|
+
- a `react-i18next` provider, because List filter/pagination components use translations;
|
|
34
|
+
- the Host `xos:user-search-history` event handler only when using `useUserSearchHistory`.
|
|
35
|
+
|
|
36
|
+
The search-history hook does not use browser storage and remains optional.
|