@ramme-io/ui 5.1.0 → 5.2.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/dist/components/layout/UserNav.d.ts +4 -0
- package/dist/components/layout/UserNav.js +28 -27
- package/dist/components/ui/Badge.d.ts +4 -4
- package/dist/components/ui/Badge.js +8 -5
- package/dist/contexts/ThemeContext.d.ts +1 -1
- package/dist/contexts/ThemeContext.js +45 -37
- package/dist/index.css +1 -1
- package/dist/markets-theme.test.d.ts +1 -0
- package/dist/wizardManifest.js +14 -6
- package/package.json +2 -2
- package/src/wizardManifest.ts +14 -6
- package/tailwind.preset.js +12 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/wizardManifest.js
CHANGED
|
@@ -2967,18 +2967,21 @@ const e = {
|
|
|
2967
2967
|
{
|
|
2968
2968
|
id: "badge",
|
|
2969
2969
|
name: "Badge",
|
|
2970
|
-
version: "1.0.
|
|
2971
|
-
description: "A small component to display a status, count, or label.",
|
|
2970
|
+
version: "1.0.1",
|
|
2971
|
+
description: "A small component to display a status, count, or label. The `gain` and `loss` variants are price chips, as on a watchlist: a move up or down, in the theme's direction colours rather than success or danger, because a fall is not an error.",
|
|
2972
2972
|
tags: [
|
|
2973
2973
|
"ui",
|
|
2974
2974
|
"label",
|
|
2975
|
-
"indicator"
|
|
2975
|
+
"indicator",
|
|
2976
|
+
"price",
|
|
2977
|
+
"gain",
|
|
2978
|
+
"loss"
|
|
2976
2979
|
],
|
|
2977
2980
|
category: "ui",
|
|
2978
2981
|
props: [
|
|
2979
2982
|
{
|
|
2980
2983
|
name: "variant",
|
|
2981
|
-
type: `"'primary' | 'secondary' | 'danger' | 'success' | 'warning' | 'outline'"`,
|
|
2984
|
+
type: `"'primary' | 'secondary' | 'danger' | 'success' | 'warning' | 'outline' | 'gain' | 'loss'"`,
|
|
2982
2985
|
description: "The visual style of the badge."
|
|
2983
2986
|
},
|
|
2984
2987
|
{
|
|
@@ -2996,7 +2999,7 @@ const e = {
|
|
|
2996
2999
|
filePath: "src/components/ui/Badge.tsx",
|
|
2997
3000
|
sku: "@atom/primitive/badge",
|
|
2998
3001
|
humanLabel: "Badge",
|
|
2999
|
-
humanDescription: "A small component to display a status, count, or label."
|
|
3002
|
+
humanDescription: "A small component to display a status, count, or label. The `gain` and `loss` variants are price chips, as on a watchlist: a move up or down, in the theme's direction colours rather than success or danger, because a fall is not an error."
|
|
3000
3003
|
},
|
|
3001
3004
|
{
|
|
3002
3005
|
id: "brand-logo",
|
|
@@ -4394,7 +4397,7 @@ const e = {
|
|
|
4394
4397
|
{
|
|
4395
4398
|
id: "user-nav",
|
|
4396
4399
|
name: "UserNav",
|
|
4397
|
-
version: "1.0.
|
|
4400
|
+
version: "1.0.1",
|
|
4398
4401
|
description: "The signed-in user's avatar menu — identity plus account actions. Strategic purpose: the standard account affordance for the app shell's header, with logout, settings, profile, and an optional theme toggle already wired. Compose extra entries with ButtonItem rather than rebuilding the menu.",
|
|
4399
4402
|
tags: [
|
|
4400
4403
|
"layout",
|
|
@@ -4432,6 +4435,11 @@ const e = {
|
|
|
4432
4435
|
type: "boolean",
|
|
4433
4436
|
description: "Adds a theme switcher inside the menu."
|
|
4434
4437
|
},
|
|
4438
|
+
{
|
|
4439
|
+
name: "themeOptions",
|
|
4440
|
+
type: "Array<ThemeMode>",
|
|
4441
|
+
description: "The themes the switcher offers, in order. Defaults to light, dark and system; an app with its own theme names it here (the terminal: markets, light, dark, system), or a viewer who taps another can never get back to it."
|
|
4442
|
+
},
|
|
4435
4443
|
{
|
|
4436
4444
|
name: "trigger",
|
|
4437
4445
|
type: "ReactNode",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ramme-io/ui",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"description": "The structural component library for the Ramme Framework.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"tailwind-merge": "^3.3.1",
|
|
59
59
|
"tippy.js": "^6.3.7",
|
|
60
60
|
"zod": "^3.23.8",
|
|
61
|
-
"@ramme-io/shared": "4.
|
|
61
|
+
"@ramme-io/shared": "4.4.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@storybook/addon-links": "^10.5.9",
|
package/src/wizardManifest.ts
CHANGED
|
@@ -2971,18 +2971,21 @@ export const wizardManifest: WizardManifest = {
|
|
|
2971
2971
|
{
|
|
2972
2972
|
"id": "badge",
|
|
2973
2973
|
"name": "Badge",
|
|
2974
|
-
"version": "1.0.
|
|
2975
|
-
"description": "A small component to display a status, count, or label.",
|
|
2974
|
+
"version": "1.0.1",
|
|
2975
|
+
"description": "A small component to display a status, count, or label. The `gain` and `loss` variants are price chips, as on a watchlist: a move up or down, in the theme's direction colours rather than success or danger, because a fall is not an error.",
|
|
2976
2976
|
"tags": [
|
|
2977
2977
|
"ui",
|
|
2978
2978
|
"label",
|
|
2979
|
-
"indicator"
|
|
2979
|
+
"indicator",
|
|
2980
|
+
"price",
|
|
2981
|
+
"gain",
|
|
2982
|
+
"loss"
|
|
2980
2983
|
],
|
|
2981
2984
|
"category": "ui",
|
|
2982
2985
|
"props": [
|
|
2983
2986
|
{
|
|
2984
2987
|
"name": "variant",
|
|
2985
|
-
"type": "\"'primary' | 'secondary' | 'danger' | 'success' | 'warning' | 'outline'\"",
|
|
2988
|
+
"type": "\"'primary' | 'secondary' | 'danger' | 'success' | 'warning' | 'outline' | 'gain' | 'loss'\"",
|
|
2986
2989
|
"description": "The visual style of the badge."
|
|
2987
2990
|
},
|
|
2988
2991
|
{
|
|
@@ -3000,7 +3003,7 @@ export const wizardManifest: WizardManifest = {
|
|
|
3000
3003
|
"filePath": "src/components/ui/Badge.tsx",
|
|
3001
3004
|
"sku": "@atom/primitive/badge",
|
|
3002
3005
|
"humanLabel": "Badge",
|
|
3003
|
-
"humanDescription": "A small component to display a status, count, or label."
|
|
3006
|
+
"humanDescription": "A small component to display a status, count, or label. The `gain` and `loss` variants are price chips, as on a watchlist: a move up or down, in the theme's direction colours rather than success or danger, because a fall is not an error."
|
|
3004
3007
|
},
|
|
3005
3008
|
{
|
|
3006
3009
|
"id": "brand-logo",
|
|
@@ -4398,7 +4401,7 @@ export const wizardManifest: WizardManifest = {
|
|
|
4398
4401
|
{
|
|
4399
4402
|
"id": "user-nav",
|
|
4400
4403
|
"name": "UserNav",
|
|
4401
|
-
"version": "1.0.
|
|
4404
|
+
"version": "1.0.1",
|
|
4402
4405
|
"description": "The signed-in user's avatar menu — identity plus account actions. Strategic purpose: the standard account affordance for the app shell's header, with logout, settings, profile, and an optional theme toggle already wired. Compose extra entries with ButtonItem rather than rebuilding the menu.",
|
|
4403
4406
|
"tags": [
|
|
4404
4407
|
"layout",
|
|
@@ -4436,6 +4439,11 @@ export const wizardManifest: WizardManifest = {
|
|
|
4436
4439
|
"type": "boolean",
|
|
4437
4440
|
"description": "Adds a theme switcher inside the menu."
|
|
4438
4441
|
},
|
|
4442
|
+
{
|
|
4443
|
+
"name": "themeOptions",
|
|
4444
|
+
"type": "Array<ThemeMode>",
|
|
4445
|
+
"description": "The themes the switcher offers, in order. Defaults to light, dark and system; an app with its own theme names it here (the terminal: markets, light, dark, system), or a viewer who taps another can never get back to it."
|
|
4446
|
+
},
|
|
4439
4447
|
{
|
|
4440
4448
|
"name": "trigger",
|
|
4441
4449
|
"type": "ReactNode",
|
package/tailwind.preset.js
CHANGED
|
@@ -77,6 +77,18 @@ module.exports = {
|
|
|
77
77
|
DEFAULT: 'rgb(var(--app-danger-color) / <alpha-value>)',
|
|
78
78
|
foreground: 'rgb(var(--app-danger-foreground-color) / <alpha-value>)',
|
|
79
79
|
},
|
|
80
|
+
// A price's direction, apart from status: `text-gain-strong` for a
|
|
81
|
+
// move written as text, `bg-gain` + `text-gain-foreground` for a chip.
|
|
82
|
+
gain: {
|
|
83
|
+
DEFAULT: 'rgb(var(--app-gain-color) / <alpha-value>)',
|
|
84
|
+
foreground: 'rgb(var(--app-gain-foreground-color) / <alpha-value>)',
|
|
85
|
+
strong: 'rgb(var(--app-gain-text-color) / <alpha-value>)',
|
|
86
|
+
},
|
|
87
|
+
loss: {
|
|
88
|
+
DEFAULT: 'rgb(var(--app-loss-color) / <alpha-value>)',
|
|
89
|
+
foreground: 'rgb(var(--app-loss-foreground-color) / <alpha-value>)',
|
|
90
|
+
strong: 'rgb(var(--app-loss-text-color) / <alpha-value>)',
|
|
91
|
+
},
|
|
80
92
|
|
|
81
93
|
// ─── Specialized Sub-Systems ───
|
|
82
94
|
// Categorical accents for colour-coded content. Distinct from `chart`:
|