@aristobyte-ui/utils 2.8.0 โ 2.9.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/README.md +73 -0
- package/aristobyte-ui.settings.scss +9 -16
- package/es/.tsbuildinfo +1 -1
- package/es/helpers/ripple.d.ts +1 -0
- package/es/helpers/ripple.js +4 -4
- package/lib/.tsbuildinfo +1 -1
- package/lib/helpers/ripple.d.ts +1 -0
- package/lib/helpers/ripple.js +4 -4
- package/package.json +7 -1
package/README.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# `@aristobyte-ui/utils`
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<img src="https://img.shields.io/badge/TypeScript-5.8-blue?style=for-the-badge&logo=typescript&logoColor=white" alt="TypeScript" />
|
|
5
|
+
<img src="https://img.shields.io/badge/Build-Turbo-green?style=for-the-badge&logo=turbo&logoColor=white" alt="TurboRepo" />
|
|
6
|
+
<img src="https://img.shields.io/badge/Lint-Strict-red?style=for-the-badge&logo=eslint&logoColor=white" alt="ESLint" />
|
|
7
|
+
<img src="https://img.shields.io/badge/License-MIT-black?style=for-the-badge&logo=open-source-initiative&logoColor=white" alt="License" />
|
|
8
|
+
<img src="https://img.shields.io/badge/AristoByte-UI-purple?style=for-the-badge&logo=react&logoColor=white" alt="AristoByte UI" />
|
|
9
|
+
<img src="https://img.shields.io/badge/Node-20.17.0+-339933?style=for-the-badge&logo=node.js&logoColor=white" alt="Node.js >=20.17.0" />
|
|
10
|
+
<img src="https://img.shields.io/badge/Yarn-1.22+-2C8EBB?style=for-the-badge&logo=yarn&logoColor=white" alt="Yarn >=1.22" />
|
|
11
|
+
<img src="https://img.shields.io/badge/NPM-10.8+-CB3837?style=for-the-badge&logo=npm&logoColor=white" alt="NPM >=10.8" />
|
|
12
|
+
</p>
|
|
13
|
+
|
|
14
|
+
A collection of shared utility functions for AristoByte projects, designed to provide reusable helpers, streamline common operations, and ensure consistency across applications and packages.
|
|
15
|
+
|
|
16
|
+
## ๐ฆ Installation
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
# Install via Yarn
|
|
20
|
+
yarn add -D @aristobyte-ui/utils
|
|
21
|
+
|
|
22
|
+
# Or via npm
|
|
23
|
+
npm install -D @aristobyte-ui/utils
|
|
24
|
+
|
|
25
|
+
# Or via pnpm
|
|
26
|
+
pnpm add -D @aristobyte-ui/utils
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## ๐ Usage
|
|
30
|
+
|
|
31
|
+
```tsx
|
|
32
|
+
import { Icons } from '@aristobyte-ui/utils';
|
|
33
|
+
|
|
34
|
+
export const Demo = () => (
|
|
35
|
+
<div>
|
|
36
|
+
<Icons.PaperCode size={18} color="#51a2ff" />
|
|
37
|
+
</div>
|
|
38
|
+
);
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
| Prop | Type | Default | Description |
|
|
42
|
+
| | - | -- | -- |
|
|
43
|
+
| size | `number` | `24` | Defines the spinner animation style |
|
|
44
|
+
| color | `"#000000"`, `"#24f7b2"`, Any hex color |
|
|
45
|
+
|
|
46
|
+
## ๐ Why This Matters
|
|
47
|
+
|
|
48
|
+
- **Performance-first:** Engineered with lightweight, GPU-accelerated CSS keyframes for smooth, non-blocking animations.
|
|
49
|
+
- **Fully typed:** TypeScript-first API ensures strict type safety and predictable integration across multiple projects.
|
|
50
|
+
- **AristoByteUI ready:** Fully interoperable with AristoByteโs design tokens, semantic color palette, and styling architecture.
|
|
51
|
+
- **Flexible:** Supports multiple animation types, semantic variants, and responsive sizing to fit any UI scenario.
|
|
52
|
+
|
|
53
|
+
## ๐ Philosophy
|
|
54
|
+
|
|
55
|
+
- **Modular architecture:** Components are built for maximum reusability and composability.
|
|
56
|
+
- **Declarative styling:** SCSS modules maintain a clean separation of concerns while leveraging design tokens.
|
|
57
|
+
- **Strict typing & runtime flexibility:** Type-safe props with optional runtime overrides.
|
|
58
|
+
- **Developer experience optimized:** Intuitive API with predictable behavior and minimal setup.
|
|
59
|
+
|
|
60
|
+
## ๐ License
|
|
61
|
+
|
|
62
|
+
[MIT](./LICENSE) ยฉ AristoByte
|
|
63
|
+
|
|
64
|
+
## ๐ก Shields Showcase
|
|
65
|
+
|
|
66
|
+
<p align="center">
|
|
67
|
+
<img src="https://img.shields.io/badge/Consistency-100%25-green?style=for-the-badge&logo=typescript" />
|
|
68
|
+
<img src="https://img.shields.io/badge/Maintained-Active-brightgreen?style=for-the-badge&logo=github" />
|
|
69
|
+
<img src="https://img.shields.io/badge/Strictness-High-critical?style=for-the-badge&logo=eslint" />
|
|
70
|
+
<img src="https://img.shields.io/badge/Declarations-Enabled-blue?style=for-the-badge&logo=typescript" />
|
|
71
|
+
<img src="https://img.shields.io/badge/Monorepo-Turbo-green?style=for-the-badge&logo=monorepo" />
|
|
72
|
+
<img src="https://img.shields.io/badge/Interop-ESM%2FCJS-orange?style=for-the-badge&logo=javascript" />
|
|
73
|
+
</p>
|
|
@@ -9,20 +9,13 @@ $logo-color-2: #fec800;
|
|
|
9
9
|
$logo-color-3: #f18e35;
|
|
10
10
|
$logo-color-4: #e95f32;
|
|
11
11
|
$logo-color-5: #e2312d;
|
|
12
|
-
$logo-gradient: linear-gradient(
|
|
13
|
-
90deg,
|
|
14
|
-
$logo-color-1,
|
|
15
|
-
$logo-color-2,
|
|
16
|
-
$logo-color-3,
|
|
17
|
-
$logo-color-4,
|
|
18
|
-
$logo-color-5
|
|
19
|
-
);
|
|
12
|
+
$logo-gradient: linear-gradient(90deg, $logo-color-1, $logo-color-2, $logo-color-3, $logo-color-4, $logo-color-5);
|
|
20
13
|
|
|
21
14
|
// Base
|
|
22
|
-
$white: #
|
|
23
|
-
$white-hover: #
|
|
24
|
-
$black: #
|
|
25
|
-
$black-hover: #
|
|
15
|
+
$white: #fff;
|
|
16
|
+
$white-hover: #ddd;
|
|
17
|
+
$black: #000;
|
|
18
|
+
$black-hover: #222;
|
|
26
19
|
$transparent: transparent;
|
|
27
20
|
|
|
28
21
|
// === Black Transparent Scale === //
|
|
@@ -157,9 +150,9 @@ $shadow-lg:
|
|
|
157
150
|
0 4px 6px -2px rgba($black, 0.05);
|
|
158
151
|
|
|
159
152
|
// === Font families === //
|
|
160
|
-
$font-family-sans:
|
|
161
|
-
$font-family-serif:
|
|
162
|
-
$font-family-mono:
|
|
153
|
+
$font-family-sans: 'Inter', sans-serif;
|
|
154
|
+
$font-family-serif: 'Georgia', serif;
|
|
155
|
+
$font-family-mono: 'Fira Code', monospace;
|
|
163
156
|
|
|
164
157
|
// === Font weights === //
|
|
165
158
|
$font-weight-regular: 400;
|
|
@@ -202,4 +195,4 @@ $font-size-button-sm: 0.75rem; // 12px
|
|
|
202
195
|
// === Animations === //
|
|
203
196
|
|
|
204
197
|
$cubic-bezier-primary: cubic-bezier(0.55, -0.19, 0.59, 0.95);
|
|
205
|
-
$cubic-bezier-secondary: cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
198
|
+
$cubic-bezier-secondary: cubic-bezier(0.175, 0.885, 0.32, 1.275);
|