wini-web-components 8.4.98 → 8.4.99

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 (2) hide show
  1. package/README.md +7 -23
  2. package/package.json +6 -2
package/README.md CHANGED
@@ -61,28 +61,12 @@ A modern, lightweight React TypeScript UI component library with 35+ ready-to-us
61
61
  npm install wini-web-components
62
62
  ```
63
63
 
64
- > **Peer dependencies** — install these in your project if not already present:
65
- > ```bash
66
- > npm install react react-dom react-router-dom
67
- > ```
68
- > For CKEditor support: `npm install ckeditor5 @ckeditor/ckeditor5-react`
69
-
70
64
  ---
71
65
 
72
- ## Setup: Add Global Styles
73
-
74
- Add these imports at the top of your root CSS file (e.g. `App.css` or `index.css`):
75
-
76
- ```css
77
- @import url(https://cdn.jsdelivr.net/gh/WiniGit/web-component@latest/src/skin/root.css);
78
- @import url(https://cdn.jsdelivr.net/gh/WiniGit/web-component@latest/src/skin/typography.css);
79
- @import url(https://cdn.jsdelivr.net/gh/WiniGit/web-component@latest/src/skin/layout.css);
80
- ```
81
-
82
66
  These provide:
83
- - **`root.css`** — CSS design token variables (colors, borders, shadows)
84
- - **`typography.css`** — text utility classes (`heading-1` → `heading-8`, `body-1` → `body-3`, etc.)
85
- - **`layout.css`** — `row`, `col`, and responsive grid classes
67
+ - **`root.css`** — CSS design token variables (colors, borders, shadows) through https://cdn.jsdelivr.net/gh/WiniGit/web-component@latest/src/skin/root.css
68
+ - **`typography.css`** — text utility classes (`heading-1` → `heading-8`, `body-1` → `body-3`, etc.) through https://cdn.jsdelivr.net/gh/WiniGit/web-component@latest/src/skin/typography.css
69
+ - **`layout.css`** — `row`, `col`, and responsive grid classes through https://cdn.jsdelivr.net/gh/WiniGit/web-component@latest/src/skin/layout.css
86
70
 
87
71
  ---
88
72
 
@@ -117,7 +101,7 @@ ReactDOM.createRoot(document.getElementById('root')!).render(
117
101
  import { useWiniContext } from 'wini-web-components'
118
102
 
119
103
  function MyComponent() {
120
- const { theme, setTheme, userData, setUserData } = useWiniContext()
104
+ const { theme, setTheme, userData, setUserData, globalData, setGlobalData, i18n } = useWiniContext()
121
105
  return <button onClick={() => setTheme(theme === 'light' ? 'dark' : 'light')}>Toggle theme</button>
122
106
  }
123
107
  ```
@@ -788,7 +772,7 @@ const cardRef = useRef(null)
788
772
  // With query controller (search + pagination)
789
773
  <CardById
790
774
  id="CARD_ID"
791
- controller={{ page: 1, size: 10, searchRaw: '@Status:{active}', sortby: [{ prop: 'Name', direction: 'ASC' }] }}
775
+ controller={{ page: 1, size: 10, searchRaw: '@Status:[0 1]', sortby: [{ prop: 'Name', direction: 'ASC' }] }}
792
776
  onLoaded={({ data, totalCount }) => setTotal(totalCount)}
793
777
  />
794
778
 
@@ -882,8 +866,8 @@ The layout system uses a **24-column grid**. Add these classes to children insid
882
866
  ```tsx
883
867
  // 2-column on desktop, stacks on mobile
884
868
  <div className="row" style={{ gap: 16 }}>
885
- <div className="col24 col12-lg">Left panel</div>
886
- <div className="col24 col12-lg">Right panel</div>
869
+ <div className="col24 col12-lg" style={{ "--gutter": "16px" }}>Left panel</div>
870
+ <div className="col24 col12-lg" style={{ "--gutter": "16px" }}>Right panel</div>
887
871
  </div>
888
872
  ```
889
873
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "wini-web-components",
3
3
  "private": false,
4
4
  "description": "A simple ui library for React",
5
- "version": "8.4.98",
5
+ "version": "8.4.99",
6
6
  "main": "dist/index.umd.js",
7
7
  "module": "dist/index.es.js",
8
8
  "types": "dist/index.d.ts",
@@ -70,7 +70,11 @@
70
70
  "url": "git+https://github.com/WiniGit/web-component.git"
71
71
  },
72
72
  "keywords": [
73
- "wini"
73
+ "wini",
74
+ "web",
75
+ "components",
76
+ "react",
77
+ "ui"
74
78
  ],
75
79
  "author": "thunt",
76
80
  "license": "MIT",