@lukeashford/aurelius 2.9.0 → 2.10.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.
@@ -5,6 +5,9 @@
5
5
 
6
6
  @theme {
7
7
  /* ===== COLORS ===== */
8
+ /* Clears all default colors */
9
+ --color-*: initial;
10
+
8
11
  /* Black spectrum */
9
12
  --color-void: #000000;
10
13
  --color-obsidian: #0a0a0a;
@@ -249,7 +252,7 @@
249
252
  /* ===== BASE STYLES (applied via @layer base) ===== */
250
253
  @layer base {
251
254
  html {
252
- font-family: var(--font-body);
255
+ @apply font-body;
253
256
  background-color: var(--color-obsidian);
254
257
  color: var(--color-white);
255
258
  -webkit-font-smoothing: antialiased;
@@ -312,7 +315,7 @@
312
315
  h4,
313
316
  h5,
314
317
  h6 {
315
- font-family: var(--font-heading);
318
+ @apply font-heading;
316
319
  font-weight: 600;
317
320
  letter-spacing: -0.025em;
318
321
  color: var(--color-white);
@@ -434,6 +437,21 @@
434
437
  box-shadow: var(--shadow-glow-lg);
435
438
  }
436
439
 
440
+ /* Flex utility for collapsing to zero size (0 0 0%) - use with flex-1 for expand/collapse animations */
441
+ @utility flex-zero {
442
+ flex: 0 0 0%;
443
+ }
444
+
445
+ @utility font-heading {
446
+ font-family: var(--font-heading);
447
+ font-size-adjust: 0.5;
448
+ }
449
+
450
+ @utility font-body {
451
+ font-family: var(--font-body);
452
+ font-size-adjust: 0.521;
453
+ }
454
+
437
455
  @utility scroll-smooth {
438
456
  scroll-behavior: smooth;
439
457
  -webkit-overflow-scrolling: touch;
package/llms.md CHANGED
@@ -100,13 +100,13 @@ Import from `@lukeashford/aurelius`:
100
100
  |-----------|-------|
101
101
  | Accordion | defaultValue, value |
102
102
  | Alert | variant (info, success, warning, error), title |
103
+ | AttachmentPreview | attachments, removable, maxVisible |
103
104
  | Avatar | src, alt, name, size (xs, sm, md, lg, xl, 2xl), status (online, offline, busy) |
104
105
  | Badge | variant (default, gold, success, error, warning, info) |
105
106
  | BrandIcon | size (sm, md, lg), variant (solid, outline) |
106
107
  | Breadcrumb | separator |
107
108
  | Button | variant (primary, important, elevated, outlined, featured, ghost, danger), size (sm, md, lg, xl), loading |
108
109
  | Card | variant (default, elevated, outlined, ghost, featured), interactive, selected, noPadding |
109
- | ChatHistory | messages |
110
110
  | Checkbox | label |
111
111
  | Col | span (auto, full), offset, order (first, last, none) |
112
112
  | ColorSwatch | color, label |
@@ -114,15 +114,16 @@ Import from `@lukeashford/aurelius`:
114
114
  | Dialog | description, confirmText, cancelText, isLoading |
115
115
  | Divider | orientation (horizontal, vertical), variant (solid, dashed, dotted), label |
116
116
  | Drawer | isOpen, position (left, right, top, bottom), title, children, className |
117
+ | FileChip | name, size, type, status (pending, uploading, complete, error), previewUrl, removable, error |
117
118
  | HelperText | error |
118
119
  | ImageCard | src, alt, title, subtitle, aspectRatio (${number}/${number}), overlay, mediaClassName, contentClassName |
119
120
  | Input | error, leadingIcon, trailingIcon |
120
121
  | InputGroup | children |
121
122
  | Label | required |
122
123
  | List | ordered |
123
- | MarkdownContent | content, sanitizeConfig |
124
+ | MarkdownContent | content, sanitizeConfig, isStreaming, cursorClassName |
124
125
  | Menu | children, open |
125
- | Message | variant (user, assistant), content, isStreaming |
126
+ | Message | variant (user, assistant), content, isStreaming, branchInfo, actions, hideActions |
126
127
  | Modal | isOpen, title, children, className |
127
128
  | Navbar | fixed, bordered |
128
129
  | Pagination | page, totalPages, siblingCount, showEdges |
@@ -154,8 +155,30 @@ Import from `@lukeashford/aurelius`:
154
155
  - **value**: Controlled expanded item(s)
155
156
  - **onValueChange**: Callback when expanded items change
156
157
 
157
- **ChatHistory**
158
- - **messages**: Array of chat messages. Each item requires: content (string), variant ('user' | 'assistant'). Optional: id, isStreaming.
158
+ **AttachmentPreview**
159
+ - **attachments**: * Array of attachments to display
160
+ - **onRemove**: * Called when an attachment should be removed
161
+ - **removable**: * Whether attachments are removable
162
+ - **maxVisible**: * Maximum number of attachments to show before collapsing Set to 0 or undefined to show all
163
+
164
+ **FileChip**
165
+ - **name**: * File name to display
166
+ - **size**: * File size in bytes (optional, will be formatted)
167
+ - **type**: * MIME type for icon selection
168
+ - **status**: * Upload/processing status
169
+ - **previewUrl**: * Preview image URL (for images)
170
+ - **onRemove**: * Called when the remove button is clicked
171
+ - **removable**: * Whether the chip is removable
172
+ - **error**: * Error message to display (when status is 'error')
173
+
174
+ **MarkdownContent**
175
+ - **isStreaming**: * When true, injects a streaming cursor at the end of the content
176
+ - **cursorClassName**: * Additional classes for the streaming cursor
177
+
178
+ **Message**
179
+ - **branchInfo**: * Branch navigation info (shows branch indicator if provided and total > 1)
180
+ - **actions**: * Actions configuration (shows action bar if provided)
181
+ - **hideActions**: * Whether to hide actions (e.g., during streaming)
159
182
 
160
183
  **Popover**
161
184
  - **trigger**: The trigger element
@@ -217,7 +240,7 @@ Standard Tailwind classes for size (`text-sm`, `text-lg`, etc.), weight (`font-m
217
240
  **Columns (Tailwind built-in):** `col-span-{1-12}`, `col-span-full`, `col-auto`, `sm:col-span-*`, `md:col-span-*`, `lg:col-span-*`, `xl:col-span-*`
218
241
 
219
242
  ### Custom Utilities
220
- text-gradient-gold, glow, glow-sm, glow-md, glow-lg, scroll-smooth, scrollbar-hide, backdrop-glass, focus-ring, line-clamp-2, line-clamp-3, center-absolute, aspect-wide, container, container-sm, container-md, container-lg, container-xl, container-fluid, row
243
+ text-gradient-gold, glow, glow-sm, glow-md, glow-lg, flex-zero, font-heading, font-body, scroll-smooth, scrollbar-hide, backdrop-glass, focus-ring, line-clamp-2, line-clamp-3, center-absolute, aspect-wide, container, container-sm, container-md, container-lg, container-xl, container-fluid, row
221
244
 
222
245
  ### Opacity modifiers
223
246
  Append `/10`, `/20`, `/30`, etc. to colors: `bg-gold/20`, `border-ash/50`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lukeashford/aurelius",
3
- "version": "2.9.0",
3
+ "version": "2.10.0",
4
4
  "description": "Design system for Aurelius applications — A cohesive visual language for creative technologists",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -28,10 +28,12 @@
28
28
  "node": ">=22.14.0"
29
29
  },
30
30
  "scripts": {
31
- "build": "npm run typecheck && npm run lint && tsup && node scripts/generate-manifest.js",
31
+ "build": "npm run typecheck && npm run lint:core && tsup && node scripts/generate-manifest.js",
32
32
  "dev": "tsup --watch",
33
33
  "typecheck": "tsc --noEmit",
34
- "lint": "eslint src --max-warnings 0",
34
+ "lint": "npm run lint:core && npm run lint:demo",
35
+ "lint:core": "eslint src --max-warnings 0",
36
+ "lint:demo": "npm --prefix demo run lint",
35
37
  "prepublishOnly": "npm run build",
36
38
  "dev:demo": "npm --prefix demo run dev",
37
39
  "dev:all": "concurrently -k \"npm run dev\" \"npm run dev:demo\"",
@@ -82,10 +82,19 @@ export function createAureliusESLintConfig(options = {}) {
82
82
  ],
83
83
 
84
84
  // Block arbitrary value utilities like bg-[...], text-[...], shadow-[...]
85
+ // Also block intermediate rounded corners (sm/md/lg/xl/2xl/3xl) - Aurelius prefers square corners.
86
+ // Allows: rounded-none (explicit no rounding), rounded-full (circles/pills for avatars, buttons, etc.)
85
87
  'better-tailwindcss/no-restricted-classes': [
86
88
  'error',
87
89
  {
88
- restrict: ['\\[.*\\]'],
90
+ restrict: [
91
+ '\\[.*\\]',
92
+ // Block rounded-sm, rounded-md, rounded-lg, rounded-xl, rounded-2xl, rounded-3xl (base and directional variants)
93
+ '^rounded-(sm|md|lg|xl|2xl|3xl)$',
94
+ '^rounded$',
95
+ '^rounded-(t|r|b|l|tl|tr|br|bl)$',
96
+ '^rounded-(t|r|b|l|tl|tr|br|bl)-(sm|md|lg|xl|2xl|3xl)$',
97
+ ],
89
98
  // Also check variables that store class mappings (e.g., variantClasses objects)
90
99
  variables: [
91
100
  ['^.*[Cc]lass(?:es|Name)?$', [{match: 'strings'}]],