@adea-ai/ui 0.99.1 → 0.99.2
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/dist/components/layout/orbit-layout/orbit-layout.d.ts +5 -1
- package/dist/components/layout/orbit-layout/orbit-layout.d.ts.map +1 -1
- package/dist/components/layout/orbit-layout/orbit-layout.js.map +1 -1
- package/dist/components/layout/side-rail/side-rail.d.ts +4 -1
- package/dist/components/layout/side-rail/side-rail.d.ts.map +1 -1
- package/dist/components/layout/side-rail/side-rail.js +58 -64
- package/dist/components/layout/side-rail/side-rail.js.map +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav.js +2 -2
- package/dist/components/layout/sidebar-nav/sidebar-nav.js.map +1 -1
- package/dist/components/motion/presence.d.ts +17 -7
- package/dist/components/motion/presence.d.ts.map +1 -1
- package/dist/components/motion/presence.js.map +1 -1
- package/dist/components/theme/theme-picker.d.ts.map +1 -1
- package/dist/components/theme/theme-picker.js +1 -1
- package/dist/components/theme/theme-picker.js.map +1 -1
- package/dist/components/theme/theme-provider.d.ts.map +1 -1
- package/dist/components/theme/theme-provider.js +15 -4
- package/dist/components/theme/theme-provider.js.map +1 -1
- package/dist/components/ui/aspect-ratio/aspect-ratio.d.ts +2 -2
- package/dist/components/ui/aspect-ratio/aspect-ratio.d.ts.map +1 -1
- package/dist/components/ui/aspect-ratio/aspect-ratio.js +15 -1
- package/dist/components/ui/aspect-ratio/aspect-ratio.js.map +1 -1
- package/dist/components/ui/badge/badge.d.ts +1 -1
- package/dist/components/ui/button/button.d.ts +1 -1
- package/dist/components/ui/calendar/calendar.d.ts.map +1 -1
- package/dist/components/ui/calendar/calendar.js +1 -1
- package/dist/components/ui/calendar/calendar.js.map +1 -1
- package/dist/components/ui/card/card.d.ts +2 -2
- package/dist/components/ui/card/card.js +2 -2
- package/dist/components/ui/card/card.js.map +1 -1
- package/dist/components/ui/chart/chart-options.d.ts +50 -0
- package/dist/components/ui/chart/chart-options.d.ts.map +1 -0
- package/dist/components/ui/chart/chart-options.js +178 -0
- package/dist/components/ui/chart/chart-options.js.map +1 -0
- package/dist/components/ui/chart/chart.d.ts +21 -18
- package/dist/components/ui/chart/chart.d.ts.map +1 -1
- package/dist/components/ui/chart/chart.js +175 -155
- package/dist/components/ui/chart/chart.js.map +1 -1
- package/dist/components/ui/chart/index.js +2 -1
- package/dist/components/ui/input-otp/input-otp.d.ts.map +1 -1
- package/dist/components/ui/input-otp/input-otp.js +2 -2
- package/dist/components/ui/input-otp/input-otp.js.map +1 -1
- package/dist/components/ui/pagination/pagination.d.ts.map +1 -1
- package/dist/components/ui/pagination/pagination.js +1 -1
- package/dist/components/ui/pagination/pagination.js.map +1 -1
- package/dist/components/ui/resizable/resizable.d.ts +0 -12
- package/dist/components/ui/resizable/resizable.d.ts.map +1 -1
- package/dist/components/ui/resizable/resizable.js +43 -9
- package/dist/components/ui/resizable/resizable.js.map +1 -1
- package/dist/lib/cn-tables.generated.js +10 -10
- package/dist/lib/cn-tables.generated.js.map +1 -1
- package/dist/r/chart.json +5 -0
- package/dist/r/registry.json +5 -0
- package/dist/r/src/components/layout/orbit-layout/orbit-layout.tsx +5 -1
- package/dist/r/src/components/layout/side-rail/side-rail.tsx +29 -16
- package/dist/r/src/components/layout/sidebar-nav/sidebar-nav.tsx +2 -2
- package/dist/r/src/components/motion/presence.tsx +17 -7
- package/dist/r/src/components/theme/theme-picker.tsx +5 -1
- package/dist/r/src/components/theme/theme-provider.tsx +19 -9
- package/dist/r/src/components/ui/aspect-ratio/aspect-ratio.tsx +14 -3
- package/dist/r/src/components/ui/calendar/calendar.tsx +6 -1
- package/dist/r/src/components/ui/card/card.tsx +2 -2
- package/dist/r/src/components/ui/chart/chart-options.ts +196 -0
- package/dist/r/src/components/ui/chart/chart.tsx +149 -101
- package/dist/r/src/components/ui/input-otp/input-otp.tsx +14 -2
- package/dist/r/src/components/ui/pagination/pagination.tsx +8 -1
- package/dist/r/src/components/ui/resizable/resizable.tsx +46 -8
- package/dist/r/src/lib/cn-tables.generated.ts +10 -10
- package/dist/r/src/styles/base.css +4 -1
- package/dist/r/src/styles/theme.css +23 -43
- package/package.json +1 -1
- package/registry.json +5 -0
- package/src/components/layout/orbit-layout/orbit-layout.tsx +5 -1
- package/src/components/layout/side-rail/side-rail.tsx +29 -16
- package/src/components/layout/sidebar-nav/sidebar-nav.tsx +2 -2
- package/src/components/motion/presence.tsx +17 -7
- package/src/components/theme/theme-picker.tsx +5 -1
- package/src/components/theme/theme-provider.tsx +19 -9
- package/src/components/ui/aspect-ratio/aspect-ratio.tsx +14 -3
- package/src/components/ui/calendar/calendar.tsx +6 -1
- package/src/components/ui/card/card.tsx +2 -2
- package/src/components/ui/chart/chart-options.ts +196 -0
- package/src/components/ui/chart/chart.tsx +149 -101
- package/src/components/ui/input-otp/input-otp.tsx +14 -2
- package/src/components/ui/pagination/pagination.tsx +8 -1
- package/src/components/ui/resizable/resizable.tsx +46 -8
- package/src/lib/cn-tables.generated.ts +10 -10
- package/src/styles/base.css +4 -1
- package/src/styles/theme.css +23 -43
package/src/styles/theme.css
CHANGED
|
@@ -16,9 +16,10 @@
|
|
|
16
16
|
* lightness step reads as the same step in every hue and a re-hue does not
|
|
17
17
|
* need its ramp re-derived by eye.
|
|
18
18
|
* - **`@adea-ai/themes` supplies the values.** The two default themes are composed
|
|
19
|
-
* there from upstream palettes —
|
|
20
|
-
*
|
|
21
|
-
*
|
|
19
|
+
* there from upstream palettes — GitHub Dark Default's canvas and greyscale,
|
|
20
|
+
* re-greyed to violet, for Adea Dark; GitHub Light Default's white canvas for Adea
|
|
21
|
+
* Light; and GitHub's dark hues for both — and normalized against measured
|
|
22
|
+
* contrast floors. The colour declarations in sections 1 and 2
|
|
22
23
|
* are *generated* from that catalogue (`bun run theme:build`) rather than written
|
|
23
24
|
* here; everything else in this file is this system's own.
|
|
24
25
|
*
|
|
@@ -41,11 +42,11 @@
|
|
|
41
42
|
* ========================================================================== */
|
|
42
43
|
|
|
43
44
|
/* ---------------------------------------------------------------------------
|
|
44
|
-
* 1. Colour — light theme (the
|
|
45
|
+
* 1. Colour — light theme (the `:root` fallback; Storybook opens dark)
|
|
45
46
|
*
|
|
46
|
-
* Contrast: body text 8
|
|
47
|
-
*
|
|
48
|
-
*
|
|
47
|
+
* Contrast: body text 15.8:1 on the canvas and 14.3:1 on a card, `--muted-foreground`
|
|
48
|
+
* 6.2:1 on the canvas and 5.6:1 on a card and the sidebar, `--primary-foreground` on
|
|
49
|
+
* `--primary` 6.1:1. Measured rather than estimated; `tests/tokens.test.ts` asserts each pairing.
|
|
49
50
|
* ------------------------------------------------------------------------- */
|
|
50
51
|
:root {
|
|
51
52
|
/* @generated theme:root — run `bun run theme:build` after changing the catalogue */
|
|
@@ -176,13 +177,15 @@
|
|
|
176
177
|
/* ---------------------------------------------------------------------------
|
|
177
178
|
* 2. Colour — dark theme
|
|
178
179
|
*
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
* system's
|
|
180
|
+
* A near-black violet-grey canvas — GitHub Dark Default's greyscale with its chroma
|
|
181
|
+
* halved and its hue turned from blue to violet — and a bright violet primary that
|
|
182
|
+
* carries a near-black label. The tint is what pairs it with the light theme's
|
|
183
|
+
* violet; it is deliberately not the blue-tinted dark of the donor this system's
|
|
184
|
+
* structure came from.
|
|
183
185
|
*
|
|
184
|
-
* Contrast: body text
|
|
185
|
-
*
|
|
186
|
+
* Contrast: body text 16.0:1 on the canvas and 14.9:1 on a card,
|
|
187
|
+
* `--muted-foreground` 7.0:1 on the canvas and 6.5:1 on a card and the sidebar,
|
|
188
|
+
* `--primary-foreground` on `--primary` 7.5:1.
|
|
186
189
|
* ------------------------------------------------------------------------- */
|
|
187
190
|
.dark {
|
|
188
191
|
/* @generated theme:dark — run `bun run theme:build` after changing the catalogue */
|
|
@@ -304,7 +307,7 @@
|
|
|
304
307
|
/* ---------------------------------------------------------------------------
|
|
305
308
|
* 3. The accent axis
|
|
306
309
|
*
|
|
307
|
-
* adea's six
|
|
310
|
+
* adea's six accent presets, as a selection rather than a constant. `data-accent` sits on
|
|
308
311
|
* the same element as `dark` — in both applications that is `<html>` — and each
|
|
309
312
|
* block overrides the roles an accent owns: the interactive primary, its label,
|
|
310
313
|
* its hover rung, its tint and the focus ring.
|
|
@@ -319,7 +322,7 @@
|
|
|
319
322
|
* for exactly this reason: a bright violet in dark mode carries a black
|
|
320
323
|
* label, and the same accent's deep light-mode form carries a white one.
|
|
321
324
|
*
|
|
322
|
-
* `theme` (the default) is the
|
|
325
|
+
* `theme` (the default) is the theme's own primary above and needs no block.
|
|
323
326
|
* ------------------------------------------------------------------------- */
|
|
324
327
|
|
|
325
328
|
/* @generated accents — run `bun run theme:build` after changing the catalogue */
|
|
@@ -490,23 +493,6 @@
|
|
|
490
493
|
--ui-word-spacing: -2.5px;
|
|
491
494
|
}
|
|
492
495
|
|
|
493
|
-
/* The default, and it has to be declared *above* the blocks above.
|
|
494
|
-
*
|
|
495
|
-
* `:root` and `[data-font='…']` have the same specificity, so the later one wins
|
|
496
|
-
* outright. With the default written after them — which is where it naturally
|
|
497
|
-
* belongs, next to the stacks it references — every `[data-font]` block was
|
|
498
|
-
* dead: all five typefaces resolved to Space Grotesk while the toolbar reported a
|
|
499
|
-
* different selection.
|
|
500
|
-
*
|
|
501
|
-
* The references resolve fine from here even though `--font-family-*` is declared
|
|
502
|
-
* further down, because a custom property is resolved where it is used rather than
|
|
503
|
-
* where it is declared. The ordering that matters is between two declarations of
|
|
504
|
-
* the *same* property, and there is only one of those below.
|
|
505
|
-
*
|
|
506
|
-
* `tests/appearance-axes.test.ts` asserts this order, because "the block is above
|
|
507
|
-
* the default" is invisible to review and to every behavioural test.
|
|
508
|
-
*/
|
|
509
|
-
|
|
510
496
|
/* ---------------------------------------------------------------------------
|
|
511
497
|
* 4. Non-colour scales
|
|
512
498
|
*
|
|
@@ -596,12 +582,6 @@
|
|
|
596
582
|
--row-height-md: 2rem;
|
|
597
583
|
--row-height-lg: 2.25rem;
|
|
598
584
|
|
|
599
|
-
/* Space Grotesk is the default because it is the face the visual language was
|
|
600
|
-
drawn against: the donor this system's structure comes from sets it, and its
|
|
601
|
-
slightly narrow, geometric forms are part of the look. The *selection* that
|
|
602
|
-
picks between it and the other four is the `:root` block above, which has to
|
|
603
|
-
precede every `[data-font]` block for the reason given there. */
|
|
604
|
-
|
|
605
585
|
/* Shell geometry. One place to change how wide a rail or sidebar is, so the two
|
|
606
586
|
consumer apps cannot disagree. 56px keeps the icon column to its content:
|
|
607
587
|
20px glyphs centred in a 36px row need less chrome than the 74px the donor's
|
|
@@ -621,9 +601,9 @@
|
|
|
621
601
|
--tooltip-max-width: min(16rem, calc(100vw - 1.5rem));
|
|
622
602
|
|
|
623
603
|
/* Shadows. Two parts on purpose: a tinted spread that reads as elevation, plus a
|
|
624
|
-
hairline that keeps an edge visible when the surface behind a panel is
|
|
625
|
-
same colour as the panel — which is the light theme, where `--card`
|
|
626
|
-
|
|
604
|
+
hairline that keeps an edge visible when the surface behind a panel is
|
|
605
|
+
nearly the same colour as the panel — which is the light theme, where `--card`
|
|
606
|
+
is one faint step off a white `--background`. */
|
|
627
607
|
--shadow-2xs: 0 1px 2px 0 oklch(0 0 0 / 0.05);
|
|
628
608
|
--shadow-xs: 0 1px 2px 0 oklch(0 0 0 / 0.06);
|
|
629
609
|
--shadow-sm: 0 1px 2px oklch(0 0 0 / 0.06), 0 0 0 1px oklch(0 0 0 / 0.04);
|
|
@@ -631,8 +611,8 @@
|
|
|
631
611
|
--shadow-lg: 0 12px 28px oklch(0 0 0 / 0.12);
|
|
632
612
|
--shadow-xl: 0 20px 44px oklch(0 0 0 / 0.16);
|
|
633
613
|
|
|
634
|
-
/* Motion.
|
|
635
|
-
already watching, `normal` for an entrance. The easing is KiroCrew's entrance
|
|
614
|
+
/* Motion. Three durations cover the system: `fast` for a state change the user is
|
|
615
|
+
already watching, `normal` for an entrance, `slow` for a layout settle. The easing is KiroCrew's entrance
|
|
636
616
|
curve — a fast start and a long settle, which reads as decisive rather than
|
|
637
617
|
floaty. */
|
|
638
618
|
--duration-fast: 120ms;
|