arekui 1.0.0 → 2.0.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 +49 -0
- package/LICENSE +21 -21
- package/README.md +26 -198
- package/arekui.css +5930 -3279
- package/arekui.d.ts +328 -328
- package/arekui.js +817 -450
- package/assets/img/grunge-wall-texture-freepick-kues1.webp +0 -0
- package/assets/img/logo.png +0 -0
- package/dist/css/arekui.base.min.css +1 -0
- package/dist/css/arekui.broadsheet.min.css +1 -0
- package/dist/css/arekui.brutalist.min.css +1 -0
- package/dist/css/arekui.default.min.css +1 -0
- package/dist/css/arekui.full.min.css +1 -0
- package/dist/css/arekui.min.css +1 -0
- package/dist/css/arekui.neo.min.css +1 -0
- package/dist/css/arekui.pixel.min.css +1 -0
- package/dist/js/arekui.min.js +2 -0
- package/package.json +64 -57
- package/scripts/build-css.js +95 -0
- package/scripts/build-custom.js +287 -318
- package/scripts/build-js.js +68 -0
- package/scripts/clean.js +13 -0
- package/scripts/dev.js +97 -0
- package/scripts/imports.js +18 -0
- package/scripts/split.js +256 -0
- package/src/arekui.base.css +63 -0
- package/src/arekui.broadsheet.css +6 -0
- package/src/arekui.brutalist.css +8 -0
- package/src/arekui.core.css +64 -0
- package/src/arekui.css +22 -5
- package/src/arekui.default.css +6 -0
- package/src/arekui.neo.css +8 -0
- package/src/arekui.pixel.css +8 -0
- package/src/base/brutalist-overrides.css +254 -0
- package/src/base/neo-overrides.css +330 -315
- package/src/base/pixel-overrides.css +336 -0
- package/src/base/reset.css +179 -65
- package/src/base/theme-brutalist.css +111 -0
- package/src/base/theme-default.css +184 -0
- package/src/base/theme-neo.css +108 -0
- package/src/base/theme-pixel.css +111 -0
- package/src/base/tokens.css +59 -302
- package/src/components/accordion.css +32 -33
- package/src/components/alert.css +24 -25
- package/src/components/badge.css +31 -32
- package/src/components/breadcrumb.css +31 -32
- package/src/components/broadsheet.css +264 -0
- package/src/components/button.css +102 -101
- package/src/components/card.css +22 -23
- package/src/components/carousel.css +49 -13
- package/src/components/chat.css +77 -76
- package/src/components/description-list.css +34 -0
- package/src/components/docs.css +252 -0
- package/src/components/empty.css +36 -0
- package/src/components/file-upload.css +49 -50
- package/src/components/footer.css +40 -25
- package/src/components/forms.css +67 -68
- package/src/components/heading.css +27 -0
- package/src/components/hero.css +20 -21
- package/src/components/join.css +12 -13
- package/src/components/kbd.css +15 -0
- package/src/components/link.css +22 -23
- package/src/components/loading.css +109 -0
- package/src/components/menu.css +104 -54
- package/src/components/misc.css +94 -55
- package/src/components/modal.css +30 -31
- package/src/components/navbar.css +166 -36
- package/src/components/pagination.css +50 -45
- package/src/components/popover.css +68 -69
- package/src/components/progress.css +17 -18
- package/src/components/prose.css +78 -78
- package/src/components/rating.css +35 -36
- package/src/components/scroll-top.css +34 -34
- package/src/components/segmented.css +44 -0
- package/src/components/sidebar.css +377 -0
- package/src/components/skeleton.css +52 -52
- package/src/components/spinner.css +36 -0
- package/src/components/swap.css +43 -43
- package/src/components/table.css +20 -21
- package/src/components/tabs.css +22 -23
- package/src/components/tag.css +99 -99
- package/src/components/textured.css +52 -32
- package/src/components/timeline.css +32 -33
- package/src/components/toast.css +132 -132
- package/src/components/tooltip.css +22 -23
- package/src/utilities/borders.css +150 -150
- package/src/utilities/brutalist-utilities.css +49 -0
- package/src/utilities/colors.css +79 -71
- package/src/utilities/hover.css +31 -31
- package/src/utilities/layout.css +98 -98
- package/src/utilities/neo-utilities.css +86 -93
- package/src/utilities/pixel-utilities.css +88 -0
- package/src/utilities/responsive.css +131 -126
- package/src/utilities/sizing.css +98 -89
- package/src/utilities/spacing.css +132 -129
- package/src/utilities/typography.css +95 -92
- package/dist/arekui.min.css +0 -1
- package/dist/arekui.min.js +0 -2
- package/src/components/drawer.css +0 -53
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning 2.0.0](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [2.0.0] - 19-10-2026
|
|
9
|
+
|
|
10
|
+
Summary of everything since 1.0.2 (published 2026-10-06). Major bump because
|
|
11
|
+
of the renames below; the full narrative lives on the frozen
|
|
12
|
+
`draft-2.0.0` branch.
|
|
13
|
+
|
|
14
|
+
### Breaking
|
|
15
|
+
|
|
16
|
+
- `ARStyle` renamed to `ArekUI` - no alias
|
|
17
|
+
- `ar-drawer` renamed to `ar-sidebar` - no alias; `-top`/`-bottom` placements removed
|
|
18
|
+
- `data-ar-exclusive` now *enables* one-open-at-a-time on `.ar-accordion`
|
|
19
|
+
- `lightningcss` is now a runtime dependency (used by the `arekui-build` CLI)
|
|
20
|
+
- `arekui.min.css` no longer contains the neo/pixel/brutalist mappings - load the theme add-on or `arekui.full`
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
|
|
24
|
+
- **Brutalist theme** (`data-theme="brutalist"`) and **broadsheet print sheet** add-on
|
|
25
|
+
- **New components**: `ar-spinner`, `ar-heading`, scroll reveal (`[data-ar-reveal]`, `--ar-delay`), `ar-empty`, `ar-avatar-group`, `ar-segmented`, `ar-kbd`, `ar-dl`, `ar-docs-*`, `ar-search`, sidebar variants (`responsive`, `nav`, `compact`, keyboard support)
|
|
26
|
+
- **Build**: one master CSS now emits eight bundles (base / core / default / full / neo / pixel / brutalist / broadsheet)
|
|
27
|
+
|
|
28
|
+
### Improved
|
|
29
|
+
|
|
30
|
+
- **Accessibility** - per-theme `--ar-*-text` tokens push labels, tags and buttons to AA in all five themes (light and dark); tabs gain full ARIA and arrow-key navigation
|
|
31
|
+
- **arekui-build** no longer drops `docs.css`, the pixel theme, loading bar and `ar-pixel-*` utilities
|
|
32
|
+
|
|
33
|
+
### Removed
|
|
34
|
+
|
|
35
|
+
- `site/` docs site and `sync-site.js` from this branch - the site lives on the orphan `site` branch
|
|
36
|
+
|
|
37
|
+
## [1.0.2] - 06-10-2026
|
|
38
|
+
|
|
39
|
+
Published to npm on 2026-10-06.
|
|
40
|
+
|
|
41
|
+
- Pixel theme, loading bar, carousel controls, neo/pixel toggles, usage guides
|
|
42
|
+
|
|
43
|
+
## [1.0.1] - 18-09-2026
|
|
44
|
+
|
|
45
|
+
Published, then withdrawn the same day - the version number is burned.
|
|
46
|
+
|
|
47
|
+
## [1.0.0] - 12-09-2026
|
|
48
|
+
|
|
49
|
+
Initial release: 34 components, 3 themes, utilities, `arekui-build` CLI, JS API, TypeScript definitions.
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 Andika Rekatias
|
|
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.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Andika Rekatias
|
|
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
CHANGED
|
@@ -1,198 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
npm install arekui
|
|
29
|
-
# or: pnpm add arekui / yarn add arekui / bun add arekui
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
## Components
|
|
33
|
-
|
|
34
|
-
`ar-btn` · `ar-card` · `ar-modal` · `ar-navbar` · `ar-tabs` · `ar-accordion` · `ar-drawer` · `ar-toast` · `ar-badge` · `ar-alert` · `ar-table` · `ar-forms` (input, select, checkbox, radio, toggle, textarea) · `ar-carousel` · `ar-skeleton` · `ar-breadcrumb` · `ar-pagination` · `ar-rating` · `ar-chat` · `ar-tag` · `ar-popover` · `ar-file-upload` · `ar-scroll-top` · `ar-tooltip` · `ar-footer` · `ar-hero` · `ar-prose` · `ar-progress` · `ar-timeline` · `ar-divider` · `ar-stepper` · `ar-avatar` · `ar-swap` · `ar-link` · `ar-join`
|
|
35
|
-
|
|
36
|
-
All prefixed with `ar-`. No conflicts with other frameworks.
|
|
37
|
-
|
|
38
|
-
### Buttons
|
|
39
|
-
|
|
40
|
-
```html
|
|
41
|
-
<button class="ar-btn">Default</button>
|
|
42
|
-
<button class="ar-btn ar-btn-primary">Primary</button>
|
|
43
|
-
<button class="ar-btn ar-btn-outline">Outline</button>
|
|
44
|
-
<button class="ar-btn ar-btn-ghost">Ghost</button>
|
|
45
|
-
<button class="ar-btn ar-btn-disabled" disabled>Disabled</button>
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
### Cards
|
|
49
|
-
|
|
50
|
-
```html
|
|
51
|
-
<div class="ar-card">
|
|
52
|
-
<div class="ar-card-body">
|
|
53
|
-
<h3 class="ar-card-title">Title</h3>
|
|
54
|
-
<p>Content goes here.</p>
|
|
55
|
-
<button class="ar-btn ar-btn-primary">Action</button>
|
|
56
|
-
</div>
|
|
57
|
-
</div>
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
### Modal
|
|
61
|
-
|
|
62
|
-
```html
|
|
63
|
-
<dialog class="ar-modal">
|
|
64
|
-
<div class="ar-modal-box">
|
|
65
|
-
<h3>Hello</h3>
|
|
66
|
-
<p>Modal content</p>
|
|
67
|
-
<button data-ar-close>Close</button>
|
|
68
|
-
</div>
|
|
69
|
-
<form method="dialog" class="ar-modal-backdrop">
|
|
70
|
-
<button>close</button>
|
|
71
|
-
</form>
|
|
72
|
-
</dialog>
|
|
73
|
-
|
|
74
|
-
<button data-ar-open="my-modal">Open</button>
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
### Navbar
|
|
78
|
-
|
|
79
|
-
```html
|
|
80
|
-
<nav class="ar-navbar ar-bg-base-200 ar-p-4">
|
|
81
|
-
<div class="ar-navbar-start">Logo</div>
|
|
82
|
-
<div class="ar-navbar-center">Title</div>
|
|
83
|
-
<div class="ar-navbar-end">
|
|
84
|
-
<button class="ar-btn">Login</button>
|
|
85
|
-
</div>
|
|
86
|
-
</nav>
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
See `demo/index.html` for every component.
|
|
90
|
-
|
|
91
|
-
## Utilities
|
|
92
|
-
|
|
93
|
-
Spacing: `ar-p-4`, `ar-m-2`, `ar-gap-4`
|
|
94
|
-
Layout: `ar-flex`, `ar-grid`, `ar-grid-cols-3`, `ar-items-center`
|
|
95
|
-
Typography: `ar-text-lg`, `ar-font-bold`, `ar-text-center`
|
|
96
|
-
Colors: `ar-bg-primary`, `ar-text-base-content`
|
|
97
|
-
Borders: `ar-rounded-lg`, `ar-shadow-md`, `ar-border`
|
|
98
|
-
Responsive: `ar-md:grid-cols-2`, `ar-lg:flex`
|
|
99
|
-
|
|
100
|
-
## Theming
|
|
101
|
-
|
|
102
|
-
Override tokens in your own CSS:
|
|
103
|
-
|
|
104
|
-
```css
|
|
105
|
-
html[data-theme="light"] {
|
|
106
|
-
--ar-primary: oklch(65% 0.2 250);
|
|
107
|
-
--ar-radius-box: 1rem;
|
|
108
|
-
}
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
### Neo Theme
|
|
112
|
-
|
|
113
|
-
Hard shadows, thick borders, bold colors:
|
|
114
|
-
|
|
115
|
-
```css
|
|
116
|
-
--ar-shadow-md: 4px 4px 0px 0px #1e293b;
|
|
117
|
-
--ar-border-width: 3px;
|
|
118
|
-
--ar-primary: #00AEEF;
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
Use `ar-neo-*` utilities with any theme:
|
|
122
|
-
|
|
123
|
-
```html
|
|
124
|
-
<div class="ar-neo-shadow-lg ar-neo-border">Bold shadow</div>
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
## Smart Build
|
|
128
|
-
|
|
129
|
-
`arekui-build` scans your source and only includes what you use.
|
|
130
|
-
|
|
131
|
-
```bash
|
|
132
|
-
npx arekui-build -i ./src -o ./assets
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
Your HTML uses `ar-btn`, `ar-card`, and `ar-flex`? Output includes only those — not all 34 components.
|
|
136
|
-
|
|
137
|
-
### Config file (optional)
|
|
138
|
-
|
|
139
|
-
```js
|
|
140
|
-
// arekui.config.js
|
|
141
|
-
module.exports = {
|
|
142
|
-
input: "./src",
|
|
143
|
-
output: "./assets",
|
|
144
|
-
name: "app",
|
|
145
|
-
};
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
```bash
|
|
149
|
-
npx arekui-build # reads config
|
|
150
|
-
```
|
|
151
|
-
|
|
152
|
-
### CLI flags
|
|
153
|
-
|
|
154
|
-
| Flag | What it does |
|
|
155
|
-
| ------ | -------------- |
|
|
156
|
-
| `-i` | Directory to scan |
|
|
157
|
-
| `-o` | Output directory |
|
|
158
|
-
| `-n` | Output filename |
|
|
159
|
-
| `--sourcemap` | Generate sourcemap |
|
|
160
|
-
| `--full` | Include everything |
|
|
161
|
-
|
|
162
|
-
## JavaScript API
|
|
163
|
-
|
|
164
|
-
Optional. Loads via `<script src="arekui.js">`.
|
|
165
|
-
|
|
166
|
-
```js
|
|
167
|
-
ARStyle.setTheme("dark");
|
|
168
|
-
ARStyle.getTheme();
|
|
169
|
-
|
|
170
|
-
ARStyle.toast("Saved!", { type: "success", duration: 3000 });
|
|
171
|
-
ARStyle.openPopover("my-popover");
|
|
172
|
-
ARStyle.closePopover("my-popover");
|
|
173
|
-
ARStyle.setRating(el, 4);
|
|
174
|
-
ARStyle.getRating(el);
|
|
175
|
-
```
|
|
176
|
-
|
|
177
|
-
## TypeScript
|
|
178
|
-
|
|
179
|
-
Types included. Full autocomplete in VS Code.
|
|
180
|
-
|
|
181
|
-
```ts
|
|
182
|
-
import ARStyle from "arekui";
|
|
183
|
-
|
|
184
|
-
ARStyle.setTheme("dark");
|
|
185
|
-
ARStyle.toast("Hello", { type: "info" });
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
## Browser Support
|
|
189
|
-
|
|
190
|
-
Modern browsers. Chrome, Edge, Firefox, Safari. Needs CSS custom properties support.
|
|
191
|
-
|
|
192
|
-
## License
|
|
193
|
-
|
|
194
|
-
MIT — use it however you want.
|
|
195
|
-
|
|
196
|
-
---
|
|
197
|
-
|
|
198
|
-
Made by [Andika Rekatias](https://github.com/andikarekatias)
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img alt="Logo" src="https://arekui.andikarekatias.com/assets/img/logo.png">
|
|
3
|
+
</p>
|
|
4
|
+
<p align="center">
|
|
5
|
+
<img alt="NPM Version" src="https://img.shields.io/npm/v/arekui">
|
|
6
|
+
<img alt="NPM Downloads" src="https://img.shields.io/npm/d18m/arekui">
|
|
7
|
+
<img alt="NPM License" src="https://img.shields.io/npm/l/arekui">
|
|
8
|
+
<img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/andikarekatias/arekui">
|
|
9
|
+
</p>
|
|
10
|
+
|
|
11
|
+
# ArekUI
|
|
12
|
+
|
|
13
|
+
A standalone CSS framework. No browser runtime dependencies, no build step. Just link and go.
|
|
14
|
+
|
|
15
|
+
:globe_with_meridians: **[Official Website](https://arekui.andikarekatias.com)**
|
|
16
|
+
|
|
17
|
+
:file_folder: **[All Components](https://arekui.andikarekatias.com/docs/2.x/components)**
|
|
18
|
+
|
|
19
|
+
:fountain_pen: **[Quick Start](https://arekui.andikarekatias.com/docs/2.x/start/quick-start)**
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
## License
|
|
25
|
+
|
|
26
|
+
[MIT license](https://opensource.org/licenses/MIT).
|