@olundot/ui 0.1.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/CHANGELOG.md +20 -0
- package/LICENSE +21 -0
- package/README.md +31 -0
- package/dist/index.d.ts +976 -0
- package/dist/index.js +7313 -0
- package/dist/tailwind.preset.d.ts +18 -0
- package/dist/tailwind.preset.js +29 -0
- package/dist/tokens.css +73 -0
- package/package.json +80 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# @olundot/ui
|
|
2
|
+
|
|
3
|
+
## 0.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 9ac0541: Harden the light-default theme contract.
|
|
8
|
+
|
|
9
|
+
- **tokens:** declare `color-scheme` per mode in the core SSOT (light / dark / OS-prefers) so native UI (scrollbars, form controls, system dialogs) follows the active theme; promote `--semantic-*` and `--semantic-*-bg` status aliases to the core token SSOT so consumers importing only `@olundot/tokens` resolve them.
|
|
10
|
+
- **ui:** flip `--org-jbnu-emblem` to light-default (Blue on `:root`, Wine on dark + OS-prefers) — it previously injected the dark Wine color on a light first paint; align ThemeToggle/ThemeFab placeholder to the light default (removes first-paint flash); give component `--semantic-*` references a consistent `var(--semantic-x, var(--x))` fallback; `@olundot/ui/tailwind.preset` now re-exports the core `@olundot/tokens` preset (full colors / radius / shadow / darkMode) plus the UI-specific `fontVariantNumeric.tabular`, making it equivalent to `@olundot/tokens/tailwind` as the README promises.
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [9ac0541]
|
|
15
|
+
- @olundot/tokens@0.6.0
|
|
16
|
+
|
|
17
|
+
## 0.1.0-beta.0
|
|
18
|
+
|
|
19
|
+
- Initial beta extraction of the OLUN CBT/LMS shared UI package.
|
|
20
|
+
- Publishes React component exports, `tokens.css`, and `tailwind.preset`.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 OLUN.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# @olundot/ui
|
|
2
|
+
|
|
3
|
+
Shared OLUN React UI components.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
pnpm add @olundot/ui @olundot/tokens
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
```css
|
|
10
|
+
@import "tailwindcss";
|
|
11
|
+
@import "@olundot/ui/tokens.css";
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
```tsx
|
|
15
|
+
import { Button, Card, Input } from "@olundot/ui";
|
|
16
|
+
|
|
17
|
+
export function Example() {
|
|
18
|
+
return (
|
|
19
|
+
<Card>
|
|
20
|
+
<Input aria-label="Name" />
|
|
21
|
+
<Button>Continue</Button>
|
|
22
|
+
</Card>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
This beta package is extracted from the OLUN CBT/LMS shared UI implementation. API names are usable, but still considered beta until the consumer integration cycle is complete.
|
|
28
|
+
|
|
29
|
+
## Accent Contract
|
|
30
|
+
|
|
31
|
+
Filled accent buttons must pair `--accent-solid` for the background/border with `--accent-on-solid` for text and icons. `--accent-on-fill` remains a backward-compatible alias only and is not allowed in new `Button` source.
|