@ramme-io/ui 4.1.1 → 4.2.1

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.
Files changed (29) hide show
  1. package/dist/components/ai/AIChatThread/AIChatThread.js +76 -79
  2. package/dist/components/ai/ArchitectureReferenceCard/ArchitectureReferenceCard.js +14 -13
  3. package/dist/components/ai/CompanyProfileCard/CompanyProfileCard.js +20 -19
  4. package/dist/components/ai/CounterpartyGraphCard/CounterpartyGraphCard.js +22 -21
  5. package/dist/components/ai/DivergenceMetricsCard/DivergenceMetricsCard.js +23 -22
  6. package/dist/components/ai/LiveQuoteCard/LiveQuoteCard.js +29 -28
  7. package/dist/components/ai/NewsSummaryCard/NewsSummaryCard.js +23 -22
  8. package/dist/components/ai/StockChart/StockChart.js +33 -33
  9. package/dist/components/data-display/StatusBadge.d.ts +4 -3
  10. package/dist/components/data-display/StatusBadge.js +18 -18
  11. package/dist/components/feedback/Alert.js +19 -19
  12. package/dist/components/forms/SegmentedControl.js +10 -10
  13. package/dist/components/layout/DetailDrawer.d.ts +9 -1
  14. package/dist/components/layout/DetailDrawer.js +61 -51
  15. package/dist/components/layout/Drawer.js +47 -39
  16. package/dist/components/layout/Modal.js +28 -23
  17. package/dist/components/layout/Sheet.js +38 -36
  18. package/dist/formFieldFloor.test.d.ts +1 -0
  19. package/dist/index.css +1 -1
  20. package/dist/index.d.ts +1 -0
  21. package/dist/index.js +188 -186
  22. package/dist/lib/hooks/useDialogFocus.d.ts +1 -0
  23. package/dist/lib/hooks/useDialogFocus.js +46 -0
  24. package/dist/utils/apiBaseUrl.d.ts +1 -0
  25. package/dist/utils/apiBaseUrl.js +10 -0
  26. package/dist/wizardManifest.js +9 -4
  27. package/package.json +2 -2
  28. package/src/wizardManifest.ts +9 -4
  29. package/tailwind.preset.js +8 -0
@@ -1102,7 +1102,7 @@ export const wizardManifest: WizardManifest = {
1102
1102
  {
1103
1103
  "id": "status-badge",
1104
1104
  "name": "StatusBadge",
1105
- "version": "1.0.1",
1105
+ "version": "1.0.2",
1106
1106
  "description": "A consistent status indicator featuring a color-coded dot and an optional text label. Essential for IoT devices and system states.",
1107
1107
  "tags": [
1108
1108
  "status",
@@ -1121,7 +1121,7 @@ export const wizardManifest: WizardManifest = {
1121
1121
  {
1122
1122
  "name": "color",
1123
1123
  "type": "string",
1124
- "description": "Tailwind background class for the dot (e.g. 'bg-emerald-500'). Overrides the `status` preset's color when both are given."
1124
+ "description": "Background class for the dot (e.g. 'bg-success'). Use a semantic token — a numeric shade does not adapt to the active theme. Overrides the `status` preset's colour when both are given."
1125
1125
  },
1126
1126
  {
1127
1127
  "name": "label",
@@ -3675,7 +3675,7 @@ export const wizardManifest: WizardManifest = {
3675
3675
  {
3676
3676
  "id": "detail-drawer",
3677
3677
  "name": "DetailDrawer",
3678
- "version": "1.0.0",
3678
+ "version": "1.0.2",
3679
3679
  "description": "A resizable side panel for inspecting one record without leaving the list. Strategic purpose: the master-detail companion — `push` compresses its siblings in a flex layout so the list stays visible and usable, while `overlay` floats above the page like a classic drawer. Use this for \"click a row, see the detail\" flows; use Modal when the task must block everything else.",
3680
3680
  "tags": [
3681
3681
  "layout",
@@ -3700,7 +3700,7 @@ export const wizardManifest: WizardManifest = {
3700
3700
  {
3701
3701
  "name": "variant",
3702
3702
  "type": "string",
3703
- "description": "'push' compresses sibling flex content so the list stays visible; 'overlay' floats fixed above the page. Defaults to push."
3703
+ "description": "'push' compresses sibling flex content so the list stays visible; 'overlay' floats fixed above the page. Defaults to overlay."
3704
3704
  },
3705
3705
  {
3706
3706
  "name": "side",
@@ -3732,6 +3732,11 @@ export const wizardManifest: WizardManifest = {
3732
3732
  "type": "number",
3733
3733
  "description": "Upper bound for resizing. Defaults to 60% of the window width."
3734
3734
  },
3735
+ {
3736
+ "name": "title",
3737
+ "type": "string",
3738
+ "description": "Names the panel for assistive technology. Not rendered: there is no header row to put it in, and adding one is a design decision. Without it an overlay announces only as \"dialog\"."
3739
+ },
3735
3740
  {
3736
3741
  "name": "children",
3737
3742
  "type": "ReactNode",
@@ -38,6 +38,11 @@ module.exports = {
38
38
  destructive: {
39
39
  DEFAULT: 'rgb(var(--app-danger-color) / <alpha-value>)',
40
40
  foreground: 'rgb(var(--app-danger-foreground-color) / <alpha-value>)',
41
+ // Severity text on the PAGE ground, not on the fill. `DEFAULT` is the
42
+ // fill and fails as body copy (success on white is 2.8:1); `strong` is
43
+ // the per-theme value that passes. Named `strong` rather than `text`
44
+ // so the utility reads `text-destructive-strong`, not `-text-text`.
45
+ strong: 'rgb(var(--app-danger-text-color) / <alpha-value>)',
41
46
  },
42
47
  accent: {
43
48
  DEFAULT: 'rgb(var(--app-accent-color) / <alpha-value>)',
@@ -56,14 +61,17 @@ module.exports = {
56
61
  info: {
57
62
  DEFAULT: 'rgb(var(--app-info-color) / <alpha-value>)',
58
63
  foreground: 'rgb(var(--app-info-foreground-color) / <alpha-value>)',
64
+ strong: 'rgb(var(--app-info-text-color) / <alpha-value>)',
59
65
  },
60
66
  success: {
61
67
  DEFAULT: 'rgb(var(--app-success-color) / <alpha-value>)',
62
68
  foreground: 'rgb(var(--app-success-foreground-color) / <alpha-value>)',
69
+ strong: 'rgb(var(--app-success-text-color) / <alpha-value>)',
63
70
  },
64
71
  warning: {
65
72
  DEFAULT: 'rgb(var(--app-warning-color) / <alpha-value>)',
66
73
  foreground: 'rgb(var(--app-warning-foreground-color) / <alpha-value>)',
74
+ strong: 'rgb(var(--app-warning-text-color) / <alpha-value>)',
67
75
  },
68
76
  error: {
69
77
  DEFAULT: 'rgb(var(--app-danger-color) / <alpha-value>)',